1 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
3 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
5 (nds32_function_arg_advance): Deal with nameless arguments.
6 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
8 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
10 2014-09-03 Richard Biener <rguenther@suse.de>
12 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
13 (struct bb_bitmap_sets): Remove deferred member.
14 (BB_DEFERRED): Remove.
15 (defer_or_phi_translate_block): Remove.
16 (compute_antic_aux): Remove deferring of blocks, assert
17 proper iteration order.
18 (compute_antic): Do not set BB_DEFERRED.
19 (eliminate): Allocate el_avail of proper size initially.
21 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
23 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
24 according to the value of crtl->args.pretend_args_size.
26 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
28 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
31 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
33 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
34 implementation for TARGET_SETUP_INCOMING_VARARGS.
35 (nds32_strict_argument_naming): Refine comment.
36 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
37 Define for future implementation.
39 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
41 * config/i386/adxintrin.h (_subborrow_u32): New.
42 (_addcarry_u32): Ditto.
43 (_subborrow_u64): Ditto.
44 (_addcarry_u64): Ditto.
45 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
47 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
48 __builtin_ia32_sbb_u64
50 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
52 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
54 (nds32_function_arg_advance): Likewise.
55 (nds32_init_cumulative_args): Likewise.
56 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
57 (NDS32_FIRST_GPR_REGNUM): Define.
58 (NDS32_LAST_GPR_REGNUM): Define.
59 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
60 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
61 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
62 (machine_function): Use GRP-specific stuff.
64 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
66 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
67 (nds32_expand_epilogue): Likewise.
68 (nds32_expand_prologue_v3push): Likewise.
69 (nds32_expand_epilogue_v3pop): Likewise.
71 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
73 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
74 v3push/v3pop for variadic function.
75 * config/nds32/nds32.md (prologue, epilogue): Likewise.
77 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
79 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
80 Check rtx for varargs implementation.
81 (nds32_output_stack_pop): Likewise.
82 * config/nds32/nds32-protos.h: Have a rtx argument for
83 nds32_output_stack_push and nds32_output_stack_pop.
84 * config/nds32/nds32.md: Likewise.
86 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
88 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
89 to check if FUNC is an interrupt service routine.
90 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
92 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
94 * config/nds32/nds32.h (machine_function): Add some fields for variadic
95 arguments implementation.
97 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
99 * config/nds32/nds32-predicates.c
100 (nds32_valid_stack_push_pop): Rename to ...
101 (nds32_valid_stack_push_pop_p): ... this.
102 * config/nds32/nds32-protos.h: Likewise.
103 * config/nds32/predicates.md: Likewise.
105 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
107 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
108 (nds32_emit_stack_v3push): ... this.
109 (nds32_gen_stack_v3pop): Rename to ...
110 (nds32_emit_stack_v3pop): ... this and consider CFA restore
113 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
115 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
116 (nds32_emit_stack_push_multiple): ... this.
117 (nds32_gen_stack_pop_multiple): Rename to ...
118 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
121 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
124 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
125 and add a second splitter to handle the remaining cases.
127 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
129 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
131 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
133 * cfgexpand.c (label_rtx_for_bb): Change type to
134 hash_map<basic_block, rtx_code_label *> *.
135 (expand_gimple_basic_block): Adjust.
136 (pass_expand::execute): Likewise.
138 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
140 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
141 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
142 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
143 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
144 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
145 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
146 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
149 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
151 * alloc-pool.c: Include coretypes.h.
152 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
153 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
154 hash_set instead of htab.
155 * ggc-page.c (in_gc): New variable.
156 (ggc_free): Do nothing if a collection is taking place.
157 (ggc_collect): Set in_gc appropriately.
158 * ggc.h (gt_ggc_mx(const char *)): New function.
159 (gt_pch_nx(const char *)): Likewise.
160 (gt_ggc_mx(int)): Likewise.
161 (gt_pch_nx(int)): Likewise.
162 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
163 (hash_map::hash_entry::pch_nx): Likewise.
164 (hash_map::hash_entry::pch_nx_helper): Likewise.
165 (hash_map::hash_map): Adjust.
166 (hash_map::create_ggc): New function.
167 (gt_ggc_mx): Likewise.
168 (gt_pch_nx): Likewise.
169 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
170 (default_hashset_traits::pch_nx): Likewise.
171 (hash_set::hash_entry::ggc_mx): Likewise.
172 (hash_set::hash_entry::pch_nx): Likewise.
173 (hash_set::hash_entry::pch_nx_helper): Likewise.
174 (hash_set::hash_set): Adjust.
175 (hash_set::create_ggc): New function.
176 (hash_set::elements): Likewise.
177 (gt_ggc_mx): Likewise.
178 (gt_pch_nx): Likewise.
179 * hash-table.h (hash_table::hash_table): Adjust.
180 (hash_table::m_ggc): New member.
181 (hash_table::~hash_table): Adjust.
182 (hash_table::expand): Likewise.
183 (hash_table::empty): Likewise.
184 (gt_ggc_mx): New function.
185 (hashtab_entry_note_pointers): Likewise.
186 (gt_pch_nx): Likewise.
188 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
190 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
192 (XVCVUXDDP_SCALE): Likewise.
193 (XVCVDPSXDS_SCALE): Likewise.
194 (XVCVDPUXDS_SCALE): Likewise.
195 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
196 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
197 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
198 VSX_BUILTIN_XVCVDPUXDS_SCALE.
199 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
201 * config/rs6000/rs6000.c (real.h): New include.
202 (rs6000_scale_v2df): New function.
203 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
204 (UNSPEC_VSX_XVCVUXDDP): Likewise.
205 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
206 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
207 (vsx_xvcvsxddp_scale): New define_expand.
208 (vsx_xvcvsxddp): New define_insn.
209 (vsx_xvcvuxddp_scale): New define_expand.
210 (vsx_xvcvuxddp): New define_insn.
211 (vsx_xvcvdpsxds_scale): New define_expand.
212 (vsx_xvcvdpsxds): New define_insn.
213 (vsx_xvcvdpuxds_scale): New define_expand.
214 (vsx_xvcvdpuxds): New define_insn.
215 * doc/extend.texi (vec_ctf): Add new prototypes.
218 (vec_splat): Likewise.
222 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
226 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
227 <v_cmp_result>): New pattern.
228 * config/arm/iterators.md (NEON_VCVT): New int iterator.
229 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
230 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
231 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
232 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
233 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
235 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
238 * config/arm/iterators.md (FIXUORS): New code iterator.
239 (VCVT): New int iterator.
240 (su_optab): New code attribute.
242 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
244 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
246 * config/aarch64/predicates.md (aarch64_comparison_operation):
247 New special predicate.
248 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
249 aarch64_comparison_operation instead of matching an operator.
250 Update operand numbers.
251 (csinc3<mode>_insn): Likewise.
252 (*csinv3<mode>_insn): Likewise.
253 (*csneg3<mode>_insn): Likewise.
254 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
255 * config/aarch64/aarch64.c (aarch64_get_condition_code):
256 Return -1 instead of aborting on invalid condition codes.
257 (aarch64_print_operand): Update aarch64_get_condition_code callsites
258 to assert that the returned condition code is valid.
259 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
261 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
263 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
264 tree.def, and gimple.def
266 2014-09-02 Jakub Jelinek <jakub@redhat.com>
267 Balaji V. Iyer <balaji.v.iyer@intel.com>
268 Igor Zamyatin <igor.zamyatin@intel.com>
270 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
271 (__cilkrts_cilk_for_64): Likewise.
272 * cilk-common.c (declare_cilk_for_builtin): New function.
273 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
274 __cilkrts_cilk_for_64 bultins.
275 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
277 (cilk_for_32_fndecl): New define.
278 (cilk_for_64_fndecl): Likewise.
279 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
280 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
281 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
282 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
283 GF_OMP_FOR_COMBINED_INTO.
284 * gimplify.c (gimplify_scan_omp_clauses): Added
285 OMP_CLAUSE__CILK_FOR_COUNT_ case.
286 (gimplify_adjust_omp_clauses): Ditto.
287 (gimplify_omp_for): Added CILK_FOR case.
288 (gimplify_expr): Ditto.
289 * omp-low.c: Include cilk.h.
290 (extract_omp_for_data): Set appropriate kind for
291 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
292 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
293 (create_omp_child_function_name): Added second argument to handle
295 (cilk_for_check_loop_diff_type): New function.
296 (expand_cilk_for_call): Likewise.
297 (expand_cilk_for): Likewise.
298 (create_omp_child_function): Set cilk_for_count; handle the cases when
299 it is true; call create_omp_child_function_name with second argument.
300 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
301 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
302 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
303 * tree-nested.c (convert_nonlocal_omp_clauses): Added
304 OMP_CLAUSE__CILK_FOR_COUNT_ case.
305 (convert_local_omp_clauses): Ditto.
306 * tree-pretty-print.c (dump_omp_clause): Added
307 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
308 (dump_generic_node): Added CILK_FOR case.
309 * tree.c (omp_clause_num_ops): New element
310 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
311 (omp_clause_code_name): New element _Cilk_for_count_.
312 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
313 * tree.def: Add tree code for CILK_FOR.
315 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
317 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
318 (ppc403-compare): Add "exts with dot" case.
319 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
320 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
321 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
322 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
323 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
324 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
325 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
326 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
327 cell-cmp-microcoded): Similarly.
328 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
329 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
330 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
331 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
332 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
333 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
334 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
335 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
336 (power6-compare): Add "exts with dot" case.
337 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
338 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
339 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
341 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
342 if avoiding Cell microcode.
343 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
344 (is_cracked_insn): Ditto.
345 (insn_must_be_first_in_group): Ditto.
346 * config/rs6000/rs6000.md (dot): Adjust comment.
347 (cell_micro): Handle exts+dot.
348 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
349 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
350 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
351 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
352 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
353 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
354 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
356 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
358 * config/rs6000/rs6000.md (QHSI): Delete.
359 (EXTQI, EXTHI, EXTSI): New mode iterators.
360 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
361 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
362 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
363 9 anonymous instructions, and 8 splitters): Delete.
364 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
365 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
366 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
367 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
368 *zero_extendsi<mode>2_dot2): New.
370 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
372 * config/rs6000/rs6000.md (any_extend): New code iterator.
373 (u, su): New code attributes.
374 (dmode, DMODE): New mode attributes.
375 (<su>mul<mode>3_highpart): New.
376 (*<su>mul<mode>3_highpart): New.
377 (<su>mulsi3_highpart_le): New.
378 (<su>muldi3_highpart_le): New.
379 (<su>mulsi3_highpart_64): New.
380 (<u>mul<mode><dmode>3): New.
381 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
383 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
386 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
388 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
389 *mulsi3_internal2, and two splitters): Delete.
390 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
392 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
394 2014-09-02 Richard Biener <rguenther@suse.de>
396 PR tree-optimization/62695
397 * tree-ssa-structalias.c (find_func_clobbers): Add missing
400 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
403 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
405 2014-09-01 Andi Kleen <ak@linux.intel.com>
407 * file-find.c (add_prefix_begin): Add.
408 (do_add_prefix): Rename from add_prefix with first argument.
409 (add_prefix): Add new wrapper.
410 * file-find.h (add_prefix_begin): Add.
411 * gcc-ar.c (main): Support -B option.
413 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
415 * genemit.c: Include dumpfile.h.
416 (gen_split): Print name of splitter function to dump file.
418 2014-09-01 Richard Biener <rguenther@suse.de>
420 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
421 Use stack auto_vecs for constraint expressions.
422 (find_func_aliases_for_call): Likewise.
423 (find_func_aliases): Likewise.
424 (find_func_clobbers): Likewise.
426 2014-09-01 Richard Biener <rguenther@suse.de>
428 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
429 operands vector in most cases. Remove redundant code.
431 2014-09-01 Olivier Hainque <hainque@adacore.com>
433 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
434 $WIND_BASE instead of designating a harcoded arbitrary home dir.
435 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
437 2014-09-01 Richard Biener <rguenther@suse.de>
439 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
440 copy_reference_ops_from_call, vn_nary_op_compute_hash,
441 vn_reference_compute_hash, vn_reference_insert): Remove.
442 (vn_reference_lookup_call): New function.
443 * tree-ssa-sccvn.c (vn_reference_compute_hash,
444 copy_reference_ops_from_ref, copy_reference_ops_from_call,
445 vn_reference_insert, vn_nary_op_compute_hash): Make static.
446 (create_reference_ops_from_call): Remove.
447 (vn_reference_lookup_3): Properly update shared_lookup_references.
448 (vn_reference_lookup_pieces): Assert that we updated
449 shared_lookup_references properly.
450 (vn_reference_lookup): Likewise.
451 (vn_reference_lookup_call): New function.
452 (visit_reference_op_call): Use it. Avoid re-building the
454 (visit_reference_op_load): Remove redundant lookup.
455 (visit_reference_op_store): Perform special tail-merging work
456 only when possibly doing tail-merging.
457 (visit_use): Likewise.
458 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
460 2014-09-01 Jakub Jelinek <jakub@redhat.com>
463 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
464 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
465 (find_inc): Revert 2014-08-13 change.
467 2014-09-01 Marek Polacek <polacek@redhat.com>
470 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
471 Change the type of V to unsigned HOST_WIDE_INT.
473 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
475 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
476 the size of byte markers.
477 (do_shift_rotate): Fix confusion between host, target and marker byte
479 (verify_symbolic_number_p): Likewise.
480 (find_bswap_or_nop_1): Likewise.
481 (find_bswap_or_nop): Likewise.
483 2014-09-01 Olivier Hainque <hainque@adacore.com>
485 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
486 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
488 2014-09-01 Jakub Jelinek <jakub@redhat.com>
490 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
491 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
492 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
494 2014-09-01 Yury Gribov <y.gribov@samsung.com>
498 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
499 (build_check_stmt): Likewise.
500 (instrument_strlen_call): Likewise.
501 (asan_expand_check_ifn): Likewise and fix types.
502 (maybe_cast_to_ptrmode): New function.
504 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
506 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
508 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
510 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
512 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
514 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
515 prefix to function labels when generating fast indirect calls.
517 2014-08-30 David Malcolm <dmalcolm@redhat.com>
521 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
522 param back from rtx_insn * to rtx. Rename param from "label" to
523 "label_or_return", reintroducing "label" as an rtx_insn * after
524 we've ensured it's not a RETURN.
525 (first_active_target_insn): Likewise for return type and param;
526 add a checked cast to rtx_insn * once we've ensured "insn" is not
528 (steal_delay_list_from_target): Convert param "pnew_thread" back
529 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
531 (own_thread_p): Convert param "thread" back from an rtx_insn * to
532 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
533 cast once we've established we're not dealing with a RETURN,
534 renaming subsequent uses of "thread" to "thread_insn".
535 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
537 (follow_jumps): Convert return type and param "label" from
538 rtx_insn * back to rtx. Move initialization of "value" to after
539 the handling for ANY_RETURN_P, adding a checked cast there to
540 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
541 rename to "this_label_or_return", reintroducing "this_label" as
542 an rtx_insn * once we've handled the case where it could be an
544 (fill_slots_from_thread): Rename param "thread" to
545 "thread_or_return", converting from an rtx_insn * back to an rtx.
546 Reintroduce name "thread" as an rtx_insn * local with a checked
547 cast once we've handled the case of it being an ANY_RETURN_P.
548 Convert local "new_thread" from an rtx_insn * back to an rtx.
549 Add a checked cast when assigning to "trial" from "new_thread".
550 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
551 checked cast to rtx_insn * from "new_thread" when invoking
553 (fill_eager_delay_slots): Convert locals "target_label",
554 "insn_at_target" from rtx_insn * back to rtx.
555 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
556 (relax_delay_slots): Convert locals "trial", "target_label" from
557 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
558 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
559 invoking update_block.
560 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
561 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
563 * resource.h (mark_target_live_regs): Undo erroneous conversion
564 of second param of r214693, converting it back from rtx_insn * to
565 rtx, since it could be a RETURN.
567 * resource.c (find_dead_or_set_registers): Similarly, convert
568 param "jump_target" back from an rtx_insn ** to an rtx *, as we
569 could be writing back a RETURN. Rename local rtx_insn * "next" to
570 "next_insn", and introduce "lab_or_return" as a local rtx,
571 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
572 (mark_target_live_regs): Undo erroneous conversion
573 of second param of r214693, converting it back from rtx_insn * to
574 rtx, since it could be a RETURN. Rename it from "target" to
575 "target_maybe_return", reintroducing the name "target" as a local
576 rtx_insn * with a checked cast, after we've handled the case of
579 2014-08-29 DJ Delorie <dj@redhat.com>
581 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
582 pointer size up to a power of two.
583 * defaults.h (DWARF2_ADDR_SIZE): Round up.
584 (POINTER_SIZE_UNITS): New, rounded up value.
585 * dwarf2asm.c (size_of_encoded_value): Use it.
586 (dw2_output_indirect_constant_1): Likewise.
587 * expmed.c (init_expmed_one_conv): We now know the sizes of
589 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
590 * optabs.c (expand_float): Use precision, not size.
591 (expand_fix): Likewise.
592 * simplify-rtx (simplify_unary_operation_1): Likewise.
593 * tree-dfa.c (get_ref_base_and_extent): Likewise.
594 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
595 (default_assemble_integer) Likewise.
596 (dump_tm_clone_pairs): Likewise.
597 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
598 * var-tracking.c (adjust_mems): Allow partial-int modes also.
599 (prepare_call_arguments): Likewise.
600 * stor-layout.c (finalize_type_size): Preserve precision.
601 (layout_type): Use precision, not size.
603 * expr.c (convert_move): If the target has an explicit converter,
606 2014-08-29 David Malcolm <dmalcolm@redhat.com>
608 * gdbinit.in: Skip various inline functions in rtl.h when
611 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
614 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
616 2014-08-29 Richard Biener <rguenther@suse.de>
618 PR tree-optimization/62291
619 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
620 exactly the vector size needed and use quick_push.
621 (phi_translate_1): Adjust comment.
622 (valid_in_sets): Remove block argument and remove pointless
624 (dependent_clean): Adjust for removal of block argument.
626 (compute_antic_aux): Likewise.
627 (compute_partial_antic_aux): Likewise.
629 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
631 Anna Tikhonova <anna.tikhonova@intel.com>
632 Ilya Tocar <ilya.tocar@intel.com>
633 Andrey Turetskiy <andrey.turetskiy@intel.com>
634 Ilya Verbin <ilya.verbin@intel.com>
635 Kirill Yukhin <kirill.yukhin@intel.com>
636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
639 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
640 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
641 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
642 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
644 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
645 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
646 Anna Tikhonova <anna.tikhonova@intel.com>
647 Ilya Tocar <ilya.tocar@intel.com>
648 Andrey Turetskiy <andrey.turetskiy@intel.com>
649 Ilya Verbin <ilya.verbin@intel.com>
650 Kirill Yukhin <kirill.yukhin@intel.com>
651 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
653 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
655 (define_mode_iterator VI4_128_8_256): New.
656 (define_mode_iterator VI2_128_4_256): Ditto.
657 (define_mode_iterator PMOV_DST_MODE): Rename into
658 (define_mode_iterator PMOV_DST_MODE_1): this.
659 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
660 Use PMOV_DST_MODE_1 mode iterator.
661 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
663 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
665 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
666 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
667 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
668 (define_mode_iterator PMOV_DST_MODE_2): New.
669 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
670 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
671 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
673 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
674 (define_mode_attr pmov_dst_3): Ditto.
675 (define_mode_attr pmov_dst_zeroed_3): Ditto.
676 (define_mode_attr pmov_suff_3): Ditto.
677 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
678 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
679 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
680 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
681 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
682 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
683 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
684 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
685 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
686 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
687 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
688 (define_mode_attr pmov_dst_4): Ditto.
689 (define_mode_attr pmov_dst_zeroed_4): Ditto.
690 (define_mode_attr pmov_suff_4): Ditto.
691 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
692 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
693 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
694 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
695 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
696 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
697 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
698 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
699 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
700 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
701 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
703 2014-08-29 Richard Biener <rguenther@suse.de>
705 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
706 NON_LVALUE_EXPR in gimple.
708 2014-08-29 Richard Biener <rguenther@suse.de>
711 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
712 from previous refactoring.
713 (gimple_fold_builtin_strncpy): Likewise.
715 2014-08-29 David Malcolm <dmalcolm@redhat.com>
718 * function.c (assign_parm_setup_reg): Remove erroneous checked
719 cast to rtx_insn * on result of gen_extend_insn in favor of
720 introducing a new local rtx "pat".
722 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
724 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
726 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
728 2014-08-28 David Malcolm <dmalcolm@redhat.com>
730 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
731 (next_insn): Likewise.
732 * emit-rtl.c (next_insn): Likewise.
733 (previous_insn): Likewise.
734 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
735 "insn" and "next" from rtx to rtx_insn *.
736 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
737 "insn", "insn1", "vliw_start", "prologue_end_note",
738 "last_insn_in_packet".
740 2014-08-28 David Malcolm <dmalcolm@redhat.com>
742 * shrink-wrap.h (active_insn_between): Strengthen both params from
744 * function.c (active_insn_between): Likewise.
746 2014-08-28 David Malcolm <dmalcolm@redhat.com>
748 * genattr.c (main): When writing out insn-attr.h, strengthen param
749 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
750 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
751 writing out the definition of dfa_clear_single_insn_cache to the
752 generated insn-automata.c
754 2014-08-28 David Malcolm <dmalcolm@redhat.com>
756 * resource.h (clear_hashed_info_for_insn): Strengthen param from
758 (incr_ticks_for_insn): Likewise.
759 (init_resource_info): Likewise.
761 * resource.c (init_resource_info): Likewise.
762 (clear_hashed_info_for_insn): Likewise.
763 (incr_ticks_for_insn): Likewise.
765 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
767 (steal_delay_list_from_target): Use methods of "seq".
768 (try_merge_delay_insns): Use methods of "merged_insns".
769 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
770 (reorg_redirect_jump): Likewise for param "jump".
772 2014-08-28 David Malcolm <dmalcolm@redhat.com>
774 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
776 * config/s390/s390.c (s390_split_branches): Eliminate top-level
777 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
779 (s390_mainpool_finish): In three places, split out a local rtx
780 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
781 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
782 and split another local rtx "insn" out into rtx "pat" and
784 * config/sh/sh.c (output_branchy_insn): Rather than working
785 directly on operands[9], introduce local rtx_code_label *
786 variables named "lab" in two places, working on them, and then
787 assigning them to operands[9], so that the intervening operations
788 are known by the type system to be on insns.
790 2014-08-28 David Malcolm <dmalcolm@redhat.com>
792 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
795 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
796 in invocation of INSN_HAS_LOCATION.
798 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
800 * config/rs6000/altivec.h (vec_xl): New #define.
802 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
803 (XXSPLTD_V2DI): Likewise.
804 (DIV_V2DI): Likewise.
805 (UDIV_V2DI): Likewise.
806 (MUL_V2DI): Likewise.
807 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
808 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
809 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
810 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
811 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
812 (UNSPEC_VSX_DIVSD): Likewise.
813 (UNSPEC_VSX_DIVUD): Likewise.
814 (UNSPEC_VSX_MULSD): Likewise.
815 (vsx_mul_v2di): New insn-and-split.
816 (vsx_div_v2di): Likewise.
817 (vsx_udiv_v2di): Likewise.
818 (vsx_xxspltd_<mode>): New insn.
820 2014-08-28 David Malcolm <dmalcolm@redhat.com>
822 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
824 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
825 (NEXT_INSN): Likewise.
826 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
827 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
829 (no_labels_between_p): Likewise for both params.
831 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
832 cast when using NEXT_INSN on operands[2].
833 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
834 "insn" from rtx to rtx_insn *, adding a checked cast.
835 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
837 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
839 (arc_text_label): Likewise for param "insn".
840 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
842 (arc_ccfsm_record_condition): Likewise for param "jump".
843 (arc_text_label): Likewise for local "label".
844 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
845 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
846 a method for typesafety. Add a checked cast.
847 * config/arc/constraints.md (Clb): Add a checked cast when getting
848 the CODE_LABEL from a LABEL_REF.
849 * config/arm/arm.c (require_pic_register): Strengthen locals
850 "seq", "insn" from rtx to rtx_insn *.
851 (create_fix_barrier): Likewise for locals "selected", "next".
852 (thumb1_reorg): Likewise for locals "prev", "insn".
853 (arm_expand_prologue): Likewise for local "last".
854 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
856 (thumb2_output_casesi): Likewise for operands[2].
857 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
858 strengthen local "insn" from rtx to rtx_insn *.
859 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
860 type and param "insn".
861 (find_prev_insn_start): Likewise.
862 (hwloop_optimize): Likewise for locals "insn", "last_insn",
864 (gen_one_bundle): Likewise for loal "t".
865 (find_load): Likewise for param "insn".
866 (workaround_speculation): Likewise for locals "insn", "next",
867 "target", "next_tgt".
868 * config/c6x/c6x.c (assign_reservations): Likewise for both params
869 and for locals "insn", "within", "last".
870 (count_unit_reqs): Likewise for params "head", "tail" and local
872 (try_rename_operands): Likewise for params "head", "tail".
873 (reshuffle_units): Likewise for locals "head", "tail", "insn".
874 (struct c6x_sched_context): Likewise for fields
875 "last_scheduled_insn", "last_scheduled_iter0".
876 (init_sched_state): Replace NULL_RTX with NULL.
877 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
879 (undo_split_delayed_nonbranch): Likewise for param and for local
881 (conditionalize_after_sched): Likewise for local "insn".
882 (bb_earliest_end_cycle): Likewise.
883 (filter_insns_above): Likewise for locals "insn", "next".
884 (hwloop_optimize): Remove redundant checked cast.
885 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
886 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
888 (cris_simple_epilogue): Likewise.
889 (cris_expand_prologue): Likewise.
890 (cris_expand_epilogue): Likewise.
891 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
892 local "insn" from rtx to rtx_insn *.
893 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
894 (struct frv_packet_group): Likewise for the elements within array
895 fields "insns", "sorted", and for field "nop".
896 (frv_packet): Likewise for the elements within array field
898 (frv_add_insn_to_packet): Likewise for param "insn".
899 (frv_insert_nop_in_packet): Likewise for param "insn" and local
901 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
902 (frv_sort_insn_group_1): Likewise for local "insn".
903 (frv_optimize_membar_local): Likewise.
904 (frv_align_label): Likewise for locals "x", "last", "barrier",
906 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
908 (ia64_sched_init): Likewise for local "insn".
909 (scheduled_good_insn): Likewise for param "last".
910 (struct _ia64_sched_context): Likewise for field
911 "last_scheduled_insn".
912 (ia64_init_sched_context): Replace NULL_RTX with NULL.
913 (struct bundle_state): Likewise for field "insn".
914 (issue_nops_and_insn): Likewise for param "insn".
915 (get_next_important_insn): Likewise for return type and both
917 (ia64_add_bundle_selector_before): Likewise for param "insn".
918 (bundling): Likewise for params "prev_head_insn", "tail" and
919 locals "insn", "next_insn", "b". Eliminate top-level local rtx
920 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
921 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
922 Strengthen final param from rtx to rtx_insn *.
923 (iq2000_move_1word): Likewise for second param.
924 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
925 param "cur_insn" and local "next_insn".
926 (iq2000_move_1word): Likewise for param "insn".
927 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
928 casts when using NEXT_INSN on operands[1].
929 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
930 "insn" from rtx to rtx_insn *.
931 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
932 "x", introducing local rtx_insn * "insn" for when working with the
933 CODE_LABEL of the LABEL_REF.
934 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
936 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
938 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
940 (conditionalize_block): Likewise for return type and param.
941 (mcore_is_dead): Likewise for param "first" and local "insn".
942 (emit_new_cond_insn): Likewise for return type.
943 (conditionalize_block): Likewise for return type, param, and
944 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
946 (conditionalize_optimization): Likewise for local "insn".
947 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
949 * config/microblaze/microblaze.md: Add checked casts when using
951 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
952 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
953 and rtx_insn * "insn".
954 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
955 checked cast when using NEXT_INSN on operands[2].
956 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
957 local "insn" from rtx to rtx_insn *.
958 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
960 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
961 Add a checked cast when using NEXT_INSN on operands[1].
962 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
964 (pa_output_cbranch): Likewise for final param.
965 (pa_output_lbranch): Likewise for second param.
966 (pa_output_bb): Likewise for third param.
967 (pa_output_bvb): Likewise.
968 (pa_output_dbra): Likewise for second param.
969 (pa_output_movb): Likewise.
970 (pa_output_parallel_movb): Likewise.
971 (pa_output_parallel_addb): Likewise.
972 (pa_output_millicode_call): Likewise for first param.
973 (pa_output_mul_insn): Likewise for second param.
974 (pa_output_div_insn): Likewise for third param.
975 (pa_output_mod_insn): Likewise for second param.
976 (pa_jump_in_call_delay): Likewise for param.
977 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
978 (pa_output_div_insn): Likewise.
979 (pa_output_mod_insn): Likewise.
980 (pa_output_cbranch): Likewise.
981 (pa_output_lbranch): Likewise.
982 (pa_output_bb): Likewise.
983 (pa_output_bvb): Likewise.
984 (pa_output_dbra): Likewise.
985 (pa_output_movb): Likewise.
986 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
987 to simplify and for typesafety.
988 (pa_output_call): Use method of rtx_sequence *.
989 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
990 (pa_jump_in_call_delay): Likewise.
991 (pa_output_parallel_movb): Likewise.
992 (pa_output_parallel_addb): Likewise.
993 (pa_following_call): Likewise.
994 (pa_combine_instructions): Likewise for locals "anchor",
996 (pa_can_combine_p): Likewise for params "anchor", "floater" and
997 locals "start", "end".
998 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
999 param "insn" and local "local_insn".
1000 (picochip_final_prescan_insn): Likewise for local "local_insn".
1001 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1003 (uses_TOC): Likewise.
1004 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1005 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1006 splitting out to more tightly-scoped locals, 3 as rtx and one as
1008 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1010 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1012 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1014 (fixup_addr_diff_vecs): Likewise.
1015 (reg_unused_after): Likewise for param 2.
1016 (sh_can_redirect_branch): Likewise for both params.
1017 (check_use_sfunc_addr): Likewise for param 1.
1018 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1019 (find_barrier): Likewise for local "last_got".
1020 (gen_block_redirect): Likewise for return type, param "jump" and
1021 locals "prev", "scan", "next", "insn".
1022 (struct far_branch): Likewise for fields "near_label",
1023 "insert_place", "far_label".
1024 (gen_far_branch): Likewise for local "jump".
1025 (fixup_addr_diff_vecs): Likewise for param "first" and locals
1027 (barrier_align): Likewise for param and for locals "prev", "x".
1028 Introduce local rtx_sequence * "prev_seq" and use insn method for
1029 typesafety and clarity.
1030 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1031 (get_dest_uid): Likewise for local "dest".
1032 (split_branches): Likewise for locals "next", "beyond", "label",
1033 "block", "far_label". Add checked casts when assigning to
1034 bp->far_label and "far_label".
1035 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1036 (sequence_insn_p): Likewise.
1037 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
1038 more loop-scoped rtx "insn" when walking LABEL_REFS.
1039 (sh_can_redirect_branch): Strengthen both params from rtx to
1041 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
1042 new local rtx_sequence * "seq" via a dyn_cast, and use a method
1043 for clarity and typesafety.
1044 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1045 "insn" from rtx to rtx_insn *.
1046 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1047 when using NEXT_INSN on the CODE_LABEL in operands[2].
1048 (define_insn "casesi_worker_2"): Likewise.
1049 (define_insn "casesi_shift_media"): Likewise.
1050 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1052 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1053 Strengthen field "insn" from rtx to rtx_insn *.
1054 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1055 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1056 param "start_insn" and local "start_insn".
1057 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1059 (find_set_of_reg_bb): Likewise for param "insn".
1060 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1061 (trace_reg_uses): Likewise for param "start_insn".
1062 (sh_treg_combine::cbranch_trace): Likewise for field
1064 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1066 (sh_treg_combine::record_set_of_reg): Likewise for param
1067 "start_insn" and local "i".
1068 (sh_treg_combine::can_remove_cstore): Likewise for local
1070 (sh_treg_combine::try_optimize_cbranch): Likewise for param
1072 (sh_treg_combine::execute): Likewise for local "i".
1073 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1075 (sparc_check_64): Likewise for second param.
1076 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1077 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
1078 dyn_cast, using its insn method for typesafety and clarity.
1079 (empty_delay_slot): Strengthen param "insn" from rtx to
1081 (set_extends): Likewise.
1082 (sparc_check_64): Likewise.
1083 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1084 for locals "seq", "last_insn".
1085 (combine_bnp): Likewise for param "insn".
1086 (xstormy16_reorg): Likewise for local "insn".
1087 * config/v850/v850.c (substitute_ep_register): Likewise for params
1088 "first_insn", "last_insn" and local "insn".
1089 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1090 elements of "regs" array, and local "insn".
1091 * except.c (emit_note_eh_region_end): Likewise for param "insn".
1092 * final.c (final_sequence): Strengthen this global from rtx to
1094 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1096 (final_scan_insn): Update assignment to "final_sequence" to be
1097 from "seq", the cast version of "body", for type-safety.
1098 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1099 "insns" from rtx to rtx_insn *.
1100 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1101 * genattr.c (main): When writing out generated insn-attr.h,
1102 strengthen params 1 and 3 of eligible_for_delay,
1103 eligible_for_annul_true, eligible_for_annul_false from rtx to
1105 * genattrtab.c (write_eligible_delay): Likewise when writing out
1106 generated insn-attrtab.c; also local "insn" the generated
1108 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1110 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1111 "start_label" from rtx to rtx_insn *.
1112 * ira.c (decrease_live_ranges_number): Likewise for local "p".
1113 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1114 "insns" and local "insn".
1115 (validate_equiv_mem): Likewise for param "start" and local "insn".
1116 (memref_used_between_p): Likewise for params "start", "end" and
1118 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1120 * loop-doloop.c (doloop_optimize): Within region guarded by
1121 INSN_P (doloop_pat), introduce a new local rtx_insn *
1122 "doloop_insn" via a checked cast, and use it for typesafety,
1123 eventually writing the value back into doloop_pat.
1124 * output.h (final_sequence): Strengthen this global from rtx to
1126 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1127 reintroducing "insn" as an rtx_insn * via a checked cast.
1128 Strengthen param "attempt" and local "new_insn"from rtx to
1130 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1132 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1133 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1134 "p" in favor of more tightly-scoped replacements, sometimes rtx
1135 and sometimes rtx_insn *, as appropriate.
1136 (delete_output_reload): Eliminate top-level rtx "i1", splitting
1137 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1138 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
1139 local "trial" from rtx to rtx_insn *.
1140 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1141 rtx to rtx_insn *. Strenghten local "pat" from rtx to
1142 rtx_sequence * and use methods for clarity and typesafety.
1143 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1144 rtx to rtx_insn *. Strenghten local "li" from rtx to
1145 rtx_insn_list * and use its methods for clarity and typesafety.
1146 (steal_delay_list_from_target): Strengthen param "insn" from rtx
1148 (steal_delay_list_from_fallthrough): Likewise.
1149 (try_merge_delay_insns): Likewise for param "thread" and locals
1150 "trial", "next_trial", "delay_insn".
1151 (redundant_insn): Likewise for param "target" and local "trial".
1152 (own_thread_p): Likewise for param "thread" and locals
1153 "active_insn", "insn".
1154 (get_label_before): Likewise for param "insn".
1155 (fill_simple_delay_slots): Likewise for local "new_label"; use
1156 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1157 (label_before_next_insn): Strengthen return type and local "insn"
1158 from rtx to rtx_insn *.
1159 (relax_delay_slots): Likewise for locals "other", "tmp".
1160 (make_return_insns): Likewise for param "first" and locals "insn",
1161 "jump_insn", "prev". Move declaration of "pat" to its assignment
1162 and strengthen from rtx to rtx_sequence *. Use its methods for
1163 clarity and typesafety.
1164 * rtlanal.c (no_labels_between_p): Strengthen params from
1165 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
1167 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1168 from const_rtx to const rtx_insn *.
1169 (reg_set_between_p): Rename param "from_insn" to
1170 "uncast_from_insn", and reintroduce "from_insn" as a
1171 const rtx_insn * via a checked cast.
1172 (modified_between_p): Likewise for param "start" as "uncast_start".
1173 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1174 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1175 "tmp", head" from rtx to rtx_insn *.
1176 (recompute_rev_top_order): Likewise for local "insn".
1177 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1178 * store-motion.c (build_store_vectors): Likewise for local "insn".
1179 Strengthen local "st" from rtx to rtx_insn_list * and use methods
1180 for clarity and typesafety.
1181 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1183 (computation_cost): Likewise for local "seq".
1184 (get_address_cost): Likewise.
1186 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1188 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1190 (label_is_jump_target_p): Likewise for second param.
1192 * rtlanal.c (tablejump_p): Likewise for param "insn".
1193 (label_is_jump_target_p): Likewise for param "jump_insn".
1195 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1197 * rtl.h (find_first_parameter_load): Strengthen return type and
1198 both params from rtx to rtx_insn *.
1199 * rtlanal.c (find_first_parameter_load): Strengthen return type,
1200 both params and locals "before", "first_set" from rtx to
1201 rtx_insn *. Remove now-redundant cast.
1202 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1204 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1206 * rtl.h (find_last_value): Delete.
1207 * rtlanal.c (find_last_value): Delete.
1209 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1211 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1212 from rtx to rtx_insn *.
1213 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1214 rtx "note" with new local rtx_insn * "new_head" when calculating
1215 head insn of new basic block.
1216 * combine.c (combine_split_insns): Strengthen return type and local
1217 "ret" from rtx to rtx_insn *.
1218 (likely_spilled_retval_p): Likewise for locals "use" and "p".
1219 (try_combine): Eliminate local "m_split", splitting into new
1220 locals "m_split_insn" and "m_split_pat".
1221 (find_split_point): Strengthen local "seq" from rtx into
1223 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1224 locals "label", "branch".
1225 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1227 (define_expand "umulsi3_highpart"): Likewise for local "insn".
1228 * dse.c (note_add_store_info): Likewise for fields "first",
1230 (note_add_store): Likewise for local "insn".
1231 (emit_inc_dec_insn_before): Likewise for locals "insn",
1233 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1234 (replace_read): Likewise for locals "insns", "this_insn".
1235 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1236 (notice_eh_throw): Likewise for param "insn".
1237 (before_next_cfi_note): Likewise for return type, param, and local
1239 (connect_traces): Likewise for local "note".
1240 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
1241 (verify_rtl_sharing): Likewise.
1242 (unshare_all_rtl_in_chain): Likewise for param "insn".
1243 (get_first_nonnote_insn): Likewise for local "insn".
1244 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
1245 "seq" and use its methods to clarify things.
1246 (next_insn): Strengthen return type from rtx to rtx_insn *.
1247 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
1248 local rtx_insn * using a checked cast, dropping a checked cast
1249 made redundant by this change. Use a cast to and method of
1250 rtx_sequence to clarify the code.
1251 (previous_insn): Rename param "insn" to "uncast_insn" and
1252 reintroduce "insn" as a local rtx_insn * using a checked cast,
1253 dropping a checked cast made redundant by this change. Use a cast
1254 to and method of rtx_sequence to clarify the code.
1255 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
1256 reintroduce "insn" as a local rtx_insn * using a checked cast,
1257 dropping a checked cast made redundant by this change.
1258 (next_nonnote_insn_bb): Likewise.
1259 (prev_nonnote_insn): Likewise.
1260 (prev_nonnote_insn_bb): Likewise.
1261 (next_nondebug_insn): Likewise.
1262 (prev_nondebug_insn): Likewise.
1263 (next_nonnote_nondebug_insn): Likewise.
1264 (prev_nonnote_nondebug_insn): Likewise.
1265 (next_real_insn): Likewise.
1266 (prev_real_insn): Likewise.
1267 (next_active_insn): Likewise.
1268 (prev_active_insn): Likewise.
1269 (next_cc0_user): Likewise. Use rtx_sequence and a method for
1271 (prev_cc0_setter): Likewise.
1272 (try_split): Rename param "trial" to "uncast_trial" and
1273 reintroduce "insn" as a local rtx_insn * using a checked cast,
1274 dropping checked casts made redundant by this change.
1275 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
1277 (remove_insn): Rename param "insn" to "uncast_insn" and
1278 reintroduce "insn" as a local rtx_insn * using a checked cast.
1279 (emit_pattern_after_setloc): Likewise for param "after", as
1281 (emit_pattern_after): Likewise. Strengthen local "prev" from
1283 (emit_pattern_before_setloc): Rename param "before" to
1284 "uncast_before" and reintroduce "before" as a local rtx_insn *
1285 using a checked cast. Strengthen locals "first", "last" from
1287 (emit_pattern_before): Likewise rename/cast param "before" to
1288 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
1289 * except.c (copy_reg_eh_region_note_forward): Strengthen param
1290 "first" and local "insn" from rtx to rtx_insn *.
1291 (copy_reg_eh_region_note_backward): Likewise for param "last"
1293 * expr.c (fixup_args_size_notes): Rename param "last" to
1294 "uncast_last" and reintroduce "last" as a local rtx_insn *
1295 using a checked cast. Strengthen local "insn" from rtx to
1297 * function.c (set_insn_locations): Strengthen param "insn" from
1299 (record_insns): Likewise for param "insns" and local "tmp".
1300 (active_insn_between): Rename param "tail" to
1301 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
1302 using a checked cast.
1303 (thread_prologue_and_epilogue_insns): Split out top-level local
1304 rtx "seq" into three different rtx_insn * locals. Strengthen
1305 local "prologue_seq" from rtx to rtx_insn *.
1306 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
1307 from rtx to rtx_insn *.
1308 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1309 (priority): Likewise for locals "prev_first", "twin".
1310 (setup_insn_max_reg_pressure): Likewise for param "after".
1311 (sched_setup_bb_reg_pressure_info): Likewise.
1312 (no_real_insns_p): Strengthen params from const_rtx to
1314 (schedule_block): Strengthen local "next_tail" from rtx to
1316 * ifcvt.c (find_active_insn_before): Strengthen return type and
1317 param "insn" from rtx to rtx_insn *.
1318 (find_active_insn_after): Likewise.
1319 (cond_exec_process_insns): Likewise for param "start" and local "insn".
1320 (cond_exec_process_if_block): Likewise for locals "then_start",
1321 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1322 (noce_process_if_block): Likewise for local "jump".
1323 (merge_if_block): Likewise for two locals named "end".
1324 (cond_exec_find_if_block): Likewise for local "last_insn".
1325 * jump.c (delete_related_insns): Rename param "insn" to
1326 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1327 checked cast. Strengthen local "p" from rtx to rtx_insn *.
1328 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1330 (split_reg): Likewise.
1331 * lra.c (lra_process_new_insns): Likewise.
1332 * modulo-sched.c (permute_partial_schedule): Strengthen param
1333 "last" from rtx to rtx_insn *.
1334 * optabs.c (add_equal_note): Likewise for param "insns" and local
1336 (expand_binop_directly): Add checked casts to rtx_insn * within
1337 NEXT_INSN (pat) uses.
1338 (expand_unop_direct): Likewise.
1339 (maybe_emit_unop_insn): Likewise.
1340 * recog.c (peep2_attempt): Strengthen locals "last",
1341 "before_try", "x" from rtx to rtx_insn *.
1342 * reorg.c (optimize_skip): Strengthen return type and local
1343 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
1344 and locals "trial", "next_trial" from rtx to rtx_insn *.
1345 * resource.c (next_insn_no_annul): Strengthen return type and
1346 param "insn" from rtx to rtx_insn *. Use a cast to and method of
1347 rtx_sequence to clarify the code.
1348 (mark_referenced_resources): Add a checked cast to rtx_insn *
1349 within PREV_INSN (x).
1350 (find_dead_or_set_registers): Strengthen return type, param
1351 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1352 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
1354 (mark_target_live_regs): Strengthen params "insns" and "target",
1355 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1356 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
1358 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
1359 from rtx to rtx_insn *.
1360 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
1361 from rtx to rtx_insn *.
1362 (copy_reg_eh_region_note_backward): Likewise.
1363 (unshare_all_rtl_in_chain): Likewise for sole param.
1364 (dump_rtl_slim): Strengthen second and third params from const_rtx
1365 to const rtx_insn *.
1366 * sched-deps.c (sched_free_deps): Strengthen params "head" and
1367 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
1368 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
1369 "next_tail" from rtx to rtx_insn *.
1370 (begin_move_insn): Likewise for local "next".
1371 * sched-int.h (sched_free_deps): Likewise for first and second
1373 (no_real_insns_p): Strengthen both params from const_rtx to
1375 (sched_setup_bb_reg_pressure_info): Strengthen second params from
1377 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
1379 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
1380 and locals "insn", "tail" from const_rtx to const rtx_insn *.
1381 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
1383 (debug_rtl_slim): Strengthen params "first" and "last" from
1384 const_rtx to const rtx_insn *.
1385 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
1386 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
1387 (convert_to_simple_return): Likewise for param "returnjump".
1388 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
1390 (convert_to_simple_return): Likewise for param "returnjump".
1391 * valtrack.c (propagate_for_debug): Likewise for params
1393 * valtrack.h (propagate_for_debug): Likewise for second param.
1395 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1397 * output.h (insn_current_reference_address): Strengthen param
1398 from rtx to rtx_insn *.
1399 * final.c (insn_current_reference_address): Likewise.
1401 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1403 * basic-block.h (inside_basic_block_p): Strengthen param from
1404 const_rtx to const rtx_insn *.
1405 * cfgbuild.c (inside_basic_block_p): Likewise.
1407 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1409 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
1411 (get_trace_info): Likewise for param "insn".
1412 (save_point_p): Likewise.
1413 (maybe_record_trace_start): Likewise for both params.
1414 (maybe_record_trace_start_abnormal): Likewise.
1415 (create_trace_edges): Likewise for sole param and for three of the
1417 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1418 to rtx_insn *, and update a call to pat->element to pat->insn.
1420 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1422 * function.h (struct expr_status): Convert field "x_forced_labels"
1423 from rtx_expr_list * to rtx_insn_list *.
1425 * cfgbuild.c (make_edges): Convert local "x" from an
1426 rtx_expr_list * to an rtx_insn_list *, replacing use of
1427 "element" method with "insn" method.
1428 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1429 * except.c (sjlj_emit_dispatch_table): Replace use of
1430 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1432 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1433 rtx_expr_list * to an rtx_insn_list *, replacing use of
1434 "element" method with "insn" method.
1435 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1436 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1437 rtx_insn *, adding a checked cast. Replace use of
1438 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1440 (expand_label): Likewise for local "label_r".
1442 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1444 * function.h (struct rtl_data): Convert field
1445 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1447 * rtl.h (remove_node_from_insn_list): New prototype.
1449 * builtins.c (expand_builtin): When prepending to
1450 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1452 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1453 to rtx_insn_list *, and use its "insn" method rather than
1455 * cfgrtl.c (delete_insn): Use new function
1456 remove_node_from_insn_list rather than
1457 remove_node_from_expr_list.
1458 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1459 to rtx_insn_list *, and use its "insn" method rather than
1461 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1462 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1463 * rtlanal.c (remove_node_from_insn_list): New function, adapted
1464 from remove_node_from_expr_list.
1465 * stmt.c (expand_label): When prepending to
1466 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1469 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1471 * function.h (struct rtl_data): Strengthen fields "x_return_label"
1472 and "x_naked_return_label" from rtx to rtx_code_label *.
1474 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1476 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1477 (SET_NEXT_INSN): Likewise.
1478 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1480 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1481 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
1482 to split out the SEQUENCE from local "bundle", strengthening the
1483 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1484 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1485 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1486 and the type of the elements of the "slot" array from rtx to
1488 (reorg_split_calls): Likewise for locals "insn" and "next", and
1489 the type of the elements of the "slot" array.
1491 * config/frv/frv.c (frv_nops): Likewise for the elements of this
1493 (frv_function_prologue): Likewise for locals "insn", "next",
1495 (frv_register_nop): Introduce a local "nop_insn" to be the
1496 rtx_insn * containing rtx "nop".
1498 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1499 used as an insn and sometimes as a pattern, so rename it to
1500 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1501 using it where dealing with the core insn.
1503 * config/picochip/picochip.c (reorder_var_tracking_notes):
1504 Strengthen locals "insn", "next", "last_insn", "queue",
1505 "next_queue", "prev" from rtx to rtx_insn *.
1507 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1508 the second param is an rtx_insn ** rather than an rtx **.
1509 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1510 from rtx to rtx_sequence *, and introduce local named "sequence",
1511 using methods of rtx_sequence to clarify the code.
1512 (remove_insn): Introduce local rtx_sequence * named "sequence" and
1514 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1515 Rename param "after" to "uncast_after", reintroducing "after" as a
1516 local rtx_insn * with a checked cast.
1517 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1518 reintroducing "after" as a local rtx_insn * with a checked cast.
1519 Strengthen local "last" from rtx to rtx_insn * and remove the
1520 now-redundant checked casts.
1521 (copy_delay_slot_insn): Strengthen return type and param from rtx
1524 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1525 "last" from rtx to rtx_insn *.
1527 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1529 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1530 param from rtx to rtx_insn *.
1532 * emit-rtl.c (copy_delay_slot_insn): Likewise.
1534 * reorg.c (skip_consecutive_labels): Strengthen return type, param
1535 and local "insn" from rtx to rtx_insn *.
1536 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1537 (unfilled_slots_next): Likewise.
1538 (function_return_label): Strengthen from rtx to rtx_code_label *.
1539 (function_simple_return_label): Likewise.
1540 (first_active_target_insn): Strengthen return type and param from
1542 (find_end_label): Strengthen return type from rtx to
1543 rtx_code_label *; strengthen locals as appropriate.
1544 (emit_delay_sequence): Strengthen return type, param "insn" and
1545 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
1546 and local "li" from rtx to rtx_insn_list *, using methods of
1547 rtx_insn_list for clarity and typesafety.
1548 (add_to_delay_list): Strengthen return type and param "insn" from
1549 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
1550 rtx_insn_list * and use methods of rtx_insn_list.
1551 (delete_from_delay_slot): Strengthen return type, param "insn",
1552 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1553 Strengthen local "seq" from rtx to rtx_sequence *, and local
1554 "delay_list" from rtx to rtx_insn_list *, using methods of
1555 rtx_sequence for clarity and type-safety.
1556 (delete_scheduled_jump): Add checked cast when invoking
1557 delete_from_delay_slot. Strengthen local "trial" from rtx to
1559 (optimize_skip): Strengthen return type and local "delay_list"
1560 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
1562 (steal_delay_list_from_target): Strengthen return type, param
1563 "delay_list" and local "new_delay_list" from rtx to
1564 rtx_insn_list *. Strengthen param "seq" from rtx to
1565 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
1567 Split out local "temp" into multiple more-tightly scoped locals:
1568 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
1569 of rtx_insn_list and rtx_sequence for clarity and typesafety.
1570 Strengthen locals named "trial" from rtx to rtx_insn *.
1571 (steal_delay_list_from_fallthrough): Strengthen return type and
1572 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
1573 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
1574 Strengthen local "trial" from rtx to rtx_insn *.
1575 (try_merge_delay_insns): Strength local "merged_insns" from rtx
1576 to rtx_insn_list * and use its methods. Strengthen local "pat"
1577 from rtx to rtx_sequence * and use its methods. Strengthen locals
1578 "dtrial" and "new_rtx" from rtx to rtx_insn *.
1579 (get_label_before): Strengthen return type and local "label" from
1581 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1582 "next_trial", "next", prev". Strengthen local "delay_list" from
1583 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
1585 (follow_jumps): Strengthen return type, param "label" and locals
1586 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1587 (fill_slots_from_thread): Strengthen return type, param
1588 "delay_list" from rtx to rtx_insn_list *. Strengthen params
1589 "insn", "thread", "opposite_thread" and locals "new_thread",
1590 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
1591 "sequence" from a checked cast to rtx_sequence so that we can call
1592 steal_delay_list_from_target and steal_delay_list_from_fallthrough
1593 with an rtx_sequence *.
1594 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1595 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1596 Strengthen local "delay_list" from rtx to rtx_insn_list *.
1597 (relax_delay_slots): Strengthen param "first" and locals "insn",
1598 "next", "trial", "delay_insn", "target_label" from rtx to
1599 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
1600 Introduce a local "trial_seq" for PATTERN (trial) of type
1601 rtx_sequence *, in both cases using methods of rtx_sequence.
1602 (dbr_schedule): Strengthen param "first" and locals "insn",
1603 "next", "epilogue_insn" from rtx to rtx_insn *.
1605 2014-08-28 Richard Biener <rguenther@suse.de>
1607 PR tree-optimization/62283
1608 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1609 Do not peel loops for alignment where the vector loop likely
1610 doesn't run at least VF times.
1612 2014-08-28 Bin Cheng <bin.cheng@arm.com>
1614 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1615 important_candidates. Consider all important candidates if
1616 IVS doesn't give any result. Remove check on ivs->upto.
1617 (try_add_cand_for): Call iv_ca_add_use only once.
1619 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1621 Anna Tikhonova <anna.tikhonova@intel.com>
1622 Ilya Tocar <ilya.tocar@intel.com>
1623 Andrey Turetskiy <andrey.turetskiy@intel.com>
1624 Ilya Verbin <ilya.verbin@intel.com>
1625 Kirill Yukhin <kirill.yukhin@intel.com>
1626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1628 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1629 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1631 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1632 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1633 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1634 (define_insn "*mul<mode>3"): Add EVEX version.
1636 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1637 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1638 Anna Tikhonova <anna.tikhonova@intel.com>
1639 Ilya Tocar <ilya.tocar@intel.com>
1640 Andrey Turetskiy <andrey.turetskiy@intel.com>
1641 Ilya Verbin <ilya.verbin@intel.com>
1642 Kirill Yukhin <kirill.yukhin@intel.com>
1643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1645 * config/i386/sse.md
1646 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1647 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1648 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1649 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1650 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1651 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1652 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1653 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1654 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1655 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1656 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1657 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1658 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1659 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1660 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1661 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1663 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1664 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1665 Anna Tikhonova <anna.tikhonova@intel.com>
1666 Ilya Tocar <ilya.tocar@intel.com>
1667 Andrey Turetskiy <andrey.turetskiy@intel.com>
1668 Ilya Verbin <ilya.verbin@intel.com>
1669 Kirill Yukhin <kirill.yukhin@intel.com>
1670 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1672 * config/i386/sse.md
1673 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1674 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1675 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1677 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1679 Anna Tikhonova <anna.tikhonova@intel.com>
1680 Ilya Tocar <ilya.tocar@intel.com>
1681 Andrey Turetskiy <andrey.turetskiy@intel.com>
1682 Ilya Verbin <ilya.verbin@intel.com>
1683 Kirill Yukhin <kirill.yukhin@intel.com>
1684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1686 * config/i386/sse.md
1687 (define_mode_iterator VI128_256): New.
1688 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1690 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1692 Anna Tikhonova <anna.tikhonova@intel.com>
1693 Ilya Tocar <ilya.tocar@intel.com>
1694 Andrey Turetskiy <andrey.turetskiy@intel.com>
1695 Ilya Verbin <ilya.verbin@intel.com>
1696 Kirill Yukhin <kirill.yukhin@intel.com>
1697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1699 * config/i386/sse.md
1700 (define_mode_iterator VI8_256_512): New.
1701 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1703 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1704 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1706 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1708 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1710 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
1711 pointer to the cumulative reloc value and return the value for
1713 (compute_reloc_for_rtx): Take a const_rtx. Call
1714 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1715 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
1716 for_each_rtx for the CONST case.
1718 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1720 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1721 (mark_constants_in_pattern): ...this new function to iterate over
1723 (mark_constants): Update accordingly.
1725 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1727 * varasm.c: Include rtl-iter.h.
1728 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1729 Remove the pointer to the cumulative hashval_t and just return
1730 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
1731 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1732 Accumulate the hashval_ts here instead of const_rtx_hash_1.
1734 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1736 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1737 Give real type of data parameter. Remove return value.
1738 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1739 to iterate over subrtxes.
1741 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1743 * var-tracking.c (use_narrower_mode_test): Turn from being a
1744 for_each_rtx callback to being a function that examines each
1746 (adjust_mems): Update accordingly.
1748 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1750 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1751 callback to being a function that examines each subrtx itself.
1752 Remove handling of null rtxes.
1753 (add_uses): Update accordingly.
1755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1757 * var-tracking.c: Include rtl-iter.h.
1758 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1759 to being a function that examines each subrtx itself.
1760 (use_type): Update accordingly.
1762 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1764 * store-motion.c: Include rtl-iter.h.
1765 (extract_mentioned_regs_1): Delete.
1766 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1767 for_each_rtx to iterate over subrtxes.
1769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1771 * sel-sched.c: Include rtl-iter.h
1772 (count_occurrences_1): Delete.
1773 (count_occurrences_equiv): Turn rtxes into const_rtxes.
1774 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1778 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1779 * rtlanal.c (tls_referenced_p_1): Delete.
1780 (tls_referenced_p): Take a const_rtx rather than an rtx.
1781 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1783 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1785 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1786 (for_each_inc_dec): Take an rtx rather than an rtx *.
1787 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1788 (cselib_record_sets): Likewise.
1789 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1790 (check_for_inc_dec): Likewise.
1791 * rtlanal.c (for_each_inc_dec_ops): Delete.
1792 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1793 rather than a pointer to the memory address. Replace
1794 for_each_inc_dec_ops argument with separate function and data
1795 arguments. Abort on non-autoinc addresses.
1796 (for_each_inc_dec_find_mem): Delete.
1797 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
1798 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1800 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1802 * rtl.h (find_all_hard_regs): Declare.
1803 * rtlanal.c (find_all_hard_regs): New function.
1804 (record_hard_reg_uses_1): Delete.
1805 (record_hard_reg_uses): Use find_all_hard_regs.
1807 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1809 * rtl.h (replace_label_data): Delete.
1810 (replace_label): Take the old label, new label and update-nuses flag
1811 as direct arguments. Return void.
1812 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1813 * rtlanal.c (replace_label): Update interface as above. Handle
1814 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
1815 iterator. Use FOR_EACH_SUBRTX_PTR.
1817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1819 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1820 with const_rtx parameters.
1821 * varasm.c (get_pool_constant): Likewise.
1822 * rtlanal.c (rtx_referenced_p_1): Delete.
1823 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1824 Assert that the rtx we're looking for is nonnull. Allow searches
1825 for constant pool SYMBOL_REFs.
1827 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1829 * reload1.c: Include rtl-iter.h.
1830 (note_reg_elim_costly): Turn from being a for_each_rtx callback
1831 to being a function that examines each subrtx itself.
1832 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1834 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1836 * regcprop.c (cprop_find_used_regs_1): Delete.
1837 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1839 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1841 * regcprop.c: Include rtl-iter.h.
1842 (kill_value): Take a const_rtx.
1843 (kill_autoinc_value): Turn from being a for_each_rtx callback
1844 to being a function that examines each subrtx itself.
1845 (copyprop_hardreg_forward_1): Update accordingly.
1847 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1849 * reg-stack.c: Include rtl-iter.h.
1850 (subst_stack_regs_in_debug_insn): Delete.
1851 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1852 instead of for_each_rtx.
1854 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1856 * lower-subreg.c (find_decomposable_subregs): Turn from being
1857 a for_each_rtx callback to being a function that examines each
1858 subrtx itself. Remove handling of null rtxes.
1859 (decompose_multiword_subregs): Update accordingly.
1861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1863 * lower-subreg.c (adjust_decomposed_uses): Delete.
1864 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1865 Remove handling of null rtxes.
1867 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1869 * lower-subreg.c: Include rtl-iter.h.
1870 (resolve_subreg_use): Turn from being a for_each_rtx callback
1871 to being a function that examines each subrtx itself. Remove
1872 handling of null rtxes.
1873 (resolve_reg_notes, resolve_simple_move): Update accordingly.
1874 (decompose_multiword_subregs): Likewise.
1876 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1878 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1879 to being a function that examines each subrtx itself.
1880 (simplify_using_condition, simplify_using_initial_values): Update
1883 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1885 * loop-iv.c: Include rtl-iter.h.
1886 (find_single_def_src): New function.
1887 (replace_single_def_regs): Turn from being a for_each_rtx callback
1888 to being a function that examines each subrtx itself.
1889 (replace_in_expr, simplify_using_initial_values): Update accordingly.
1891 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1893 * jump.c (eh_returnjump_p_1): Delete.
1894 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1895 Remove handling of null rtxes.
1897 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1899 * jump.c: Include rtl-iter.h.
1900 (returnjump_p_1): Delete.
1901 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1902 Remove handling of null rtxes.
1904 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1906 * ira.c: Include rtl-iter.h.
1907 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1908 to being a function that examines each subrtx itself. Remove
1909 handling of null rtxes.
1910 (update_equiv_regs): Update call accordingly.
1912 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1914 * fwprop.c: Include rtl-iter.h.
1915 (varying_mem_p): Turn from being a for_each_rtx callback to being
1916 a function that examines each subrtx itself.
1917 (propagate_rtx): Update accordingly.
1919 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1921 * function.c: Include rtl-iter.h
1922 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1923 callback to being a function that examines each subrtx itself.
1924 Return the changed flag.
1925 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1926 (instantiate_virtual_regs): Update calls accordingly.
1928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1930 * final.c: Include rtl-iter.h.
1931 (mark_symbol_ref_as_used): Delete.
1932 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1935 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1937 * emit-rtl.c: Include rtl-iter.h.
1938 (find_auto_inc): Turn from being a for_each_rtx callback to being
1939 a function that examines each subrtx itself. Assume the first operand
1940 to an RTX_AUTOINC is the automodified register.
1941 (try_split): Update call accordingly.
1943 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1945 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1946 Return a bool, inverting the result so that 0/false means "not ok".
1947 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1948 subrtxes of a CONST.
1949 (mem_loc_descriptor, add_const_value_attribute)
1950 (resolve_addr_in_expr): Update calls accordingly.
1952 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1954 * dwarf2out.c: Include rtl-iter.h.
1955 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1956 Remove unused data parameter. Return a bool, inverting the result
1957 so that 0/false means "not ok".
1958 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
1959 instead of for_each_rtx.
1961 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1963 * dse.c: Include rtl-iter.h.
1964 (check_mem_read_rtx): Change void * parameter to real type.
1965 Remove return value.
1966 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
1967 for_each_rtx. Don't handle null rtxes.
1969 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1971 * df-problems.c: Include rtl-iter.h.
1972 (find_memory): Turn from being a for_each_rtx callback to being
1973 a function that examines each subrtx itself. Continue to look for
1974 volatile references even after a nonvolatile one has been found.
1975 (can_move_insns_across): Update calls accordingly.
1977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1979 * ddg.c (walk_mems_2, walk_mems_1): Delete.
1980 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1981 to iterate over subrtxes. Return a bool rather than an int.
1983 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1985 * ddg.c: Include rtl-iter.h.
1986 (mark_mem_use_1): Rename to...
1987 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
1988 instead of for_each_rtx.
1989 (mem_read_insn_p): Update accordingly.
1991 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1993 * cse.c (change_cc_mode_args): Delete.
1994 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1995 a function that examines each subrtx itself. Take the fields of
1996 change_cc_mode_args as argument and return void.
1997 (cse_change_cc_mode_insn): Update calls accordingly.
1999 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2001 * cse.c (is_dead_reg): Change argument to const_rtx.
2002 (dead_debug_insn_data): Delete.
2003 (is_dead_debug_insn): Expand commentary. Turn from being a
2004 for_each_rtx callback to being a function that examines
2005 each subrtx itself. Take the fields of dead_debug_insn_data
2007 (delete_trivially_dead_insns): Update call accordingly.
2009 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2011 * cse.c (check_for_label_ref): Move earlier in file. Turn from
2012 being a for_each_rtx callback to being a function that examines
2014 (cse_extended_basic_block): Update call accordingly.
2016 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2018 * cse.c (check_dependence_data): Delete.
2019 (check_dependence): Change from being a for_each_rtx callback to being
2020 a function that examines all subrtxes itself. Don't handle null rtxes.
2021 (invalidate): Update call accordingly.
2023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2025 * cse.c: Include rtl-iter.h.
2026 (approx_reg_cost_1): Delete.
2027 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2028 Don't handle null rtxes.
2030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2032 * cfgcleanup.c: Include rtl-iter.h.
2033 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2034 to being a function that examines each subrtx itself.
2035 (thread_jump): Update accordingly.
2037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2039 * combine-stack-adj.c: Include rtl-iter.h.
2040 (record_stack_refs_data): Delete.
2041 (record_stack_refs): Turn from being a for_each_rtx callback
2042 to being a function that examines each subrtx itself.
2043 Take a pointer to the reflist. Invert sense of return value
2044 so that true means success and false means failure. Don't
2046 (combine_stack_adjustments_for_block): Update accordingly.
2048 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2050 * combine.c (record_truncated_value): Turn from being a for_each_rtx
2051 callback to a function that takes an rtx and returns a bool
2052 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2055 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2057 * combine.c: Include rtl-iter.h.
2058 (unmentioned_reg_p_1): Delete.
2059 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2060 Don't handle null rtxes.
2062 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2064 * calls.c: Include rtl-iter.h.
2065 (internal_arg_pointer_based_exp_1): Delete.
2066 (internal_arg_pointer_based_exp): Take a const_rtx.
2067 Use FOR_EACH_SUBRTX to iterate over subrtxes.
2069 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2071 * caller-save.c: Include rtl-iter.h.
2072 (add_used_regs_1): Delete.
2073 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2074 to iterate over subrtxes. Assert that any remaining pseudos
2077 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2079 * bt-load.c: Include rtl-iter.h.
2080 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2081 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
2082 to iterate over subrtxes.
2083 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2084 find_btr_use rather than btr_referenced_p.
2086 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2088 * alias.c: Include rtl-iter.h.
2089 (refs_newer_value_cb): Delete.
2090 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2092 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2094 * rtl-iter.h: New file.
2095 * rtlanal.c: Include it.
2096 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2097 (generic_subrtx_iterator <T>::add_single_to_queue)
2098 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2099 (generic_subrtx_iterator <T>::free_array): New functions.
2100 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2101 (generic_subrtx_iterator <const_rtx_accessor>)
2102 (generic_subrtx_iterator <rtx_var_accessor>
2103 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2104 (setup_reg_subrtx_bounds): New function.
2105 (init_rtlanal): Call it.
2107 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2110 * config/sh/sh.md (ashlsi3): Handle negative shift count for
2112 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2114 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
2116 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2118 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2120 * rtl.h (JUMP_LABEL_AS_INSN): New.
2122 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2124 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2126 (alloc_EXPR_LIST): Strengthen return type from rtx to
2128 (remove_free_EXPR_LIST_node): Likewise for param.
2129 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2130 from rtx to rtx_expr_list *.
2131 * sched-int.h (struct deps_desc): Strengthen fields
2132 "pending_read_mems" and "pending_write_mems" from rtx to
2135 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2136 rtx to rtx_expr_list *.
2137 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2138 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2140 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
2141 from rtx to rtx_expr_list *.
2142 * loop-iv.c (simplify_using_initial_values): Strengthen local
2143 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2144 "pnote_next" from rtx * to rtx_expr_list **.
2145 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
2146 param "exprp" from rtx * to rtx_expr_list **.
2147 (add_insn_mem_dependence): Strengthen local "mem_list" from
2148 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
2150 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2151 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
2152 param "old_mems_p" from rtx * to rtx_expr_list **.
2153 * var-tracking.c (struct adjust_mem_data): Strengthen field
2154 "side_effects" from rtx to rtx_expr_list *.
2155 (adjust_insn): Replace NULL_RTX with NULL when assigning to
2157 (prepare_call_arguments): Likewise.
2159 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2161 * function.h (struct rtl_data): Strengthen field
2162 "x_stack_slot_list" from rtx to rtx_expr_list *.
2164 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2165 when assigning to stack_slot_list.
2167 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2169 * function.h (struct rtl_data): Strengthen field
2170 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2171 * rtl.h (remove_node_from_expr_list): Strengthen second param from
2172 rtx * to rtx_expr_list **.
2174 * cfgbuild.c (make_edges): In loop over
2175 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2176 rtx_expr_list *, and use methods of the latter class to clarify
2178 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2179 rtx_expr_list *, and use methods of the latter class to clarify
2181 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2182 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2183 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2184 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
2185 to rtx_expr_list *. Use methods of the latter class to clarify
2188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2190 * function.h (struct expr_status): Strengthen field
2191 "x_forced_labels" from rtx to rtx_expr_list *.
2193 * cfgbuild.c (make_edges): Split local "x" into two locals,
2194 strengthening one from rtx to rtx_expr_list *, and using methods
2196 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2197 loop over forced_labels, introduce strengthen it from rtx to
2198 rtx_expr_list *, using methods to clarify the code.
2199 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2200 to rtx_expr_list *, using methods of said class to clarify the
2202 * reload1.c (set_initial_label_offsets): Split local "x" into two
2203 per-loop variables, strengthening the first from rtx to
2204 rtx_expr_list * and using methods.
2206 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2208 * coretypes.h (class rtx_expr_list): Add forward declaration.
2209 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2210 * gengenrtl.c (special_rtx): Add EXPR_LIST.
2211 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2212 invariant: GET_CODE (X) == EXPR_LIST.
2213 (is_a_helper <rtx_expr_list *>::test): New.
2214 (rtx_expr_list::next): New.
2215 (rtx_expr_list::element): New.
2216 (gen_rtx_EXPR_LIST): New.
2218 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2220 * varasm.c (mark_constants): Convert a GET_CODE check into a
2221 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2222 Use methods of rtx_sequence to clarify the code.
2224 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2226 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2227 local "seq" via a checked cast, and use methods of rtx_sequence
2228 to simplify the code.
2230 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2232 * resource.c (mark_referenced_resources): Strengthen local
2233 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2234 using methods of rtx_sequence to clarify the code.
2235 (find_dead_or_set_registers): Within the switch statement, convert
2236 a GET_CODE check to a dyn_cast, introducing local "seq". Within
2237 the JUMP_P handling, introduce another local "seq", adding a
2238 checked cast to rtx_sequence *. In both cases, use methods of
2239 rtx_sequence to clarify the code.
2240 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
2241 via a checked cast, and use methods of rtx_sequence to simplify
2244 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2246 * reorg.c (redundant_insn): In two places in the function, replace
2247 a check of GET_CODE with a dyn_cast, introducing local "seq", and
2248 usings methods of rtx_sequence to clarify the code.
2250 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2252 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
2253 local "seq" with a checked cast, and use methods of rtx_sequence
2254 to clarify the code.
2256 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2258 * function.c (contains): Introduce local "seq" for PATTERN (insn),
2259 with a checked cast, in the region for where we know it's a
2260 SEQUENCE. Use methods of rtx_sequence.
2262 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2264 * final.c (get_attr_length_1): Replace GET_CODE check with a
2265 dyn_cast, introducing local "seq" and the use of methods of
2267 (shorten_branches): Likewise, introducing local "body_seq".
2268 Strengthen local "inner_insn" from rtx to rtx_insn *.
2269 (reemit_insn_block_notes): Replace GET_CODE check with a
2270 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
2271 Use methods of rtx_sequence.
2272 (final_scan_insn): Likewise, introducing local "seq" for when
2273 "body" is known to be a SEQUENCE, using its methods.
2275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2277 * except.c (can_throw_external): Strengthen local "seq" from rtx
2278 to rtx_sequence *. Use methods of rtx_sequence.
2279 (insn_nothrow_p): Likewise.
2281 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2283 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
2284 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2285 Use methods of rtx_sequence.
2286 (scan_trace): Likewise for local "pat".
2288 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2290 * coretypes.h (class rtx_sequence): Add forward declaration.
2291 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
2292 invariant: GET_CODE (X) == SEQUENCE.
2293 (is_a_helper <rtx_sequence *>::test): New.
2294 (is_a_helper <const rtx_sequence *>::test): New.
2295 (rtx_sequence::len): New.
2296 (rtx_sequence::element): New.
2297 (rtx_sequence::insn): New.
2299 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2301 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
2303 (alloc_INSN_LIST): Strengthen return type from rtx to
2305 (copy_INSN_LIST): Likewise for return type and param.
2306 (concat_INSN_LIST): Likewise for both params and return type.
2307 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
2308 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
2309 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
2310 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
2312 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
2313 "implicit_sets", "control_uses", "clobbers" from rtx to
2315 (struct deps_desc): Likewise for fields "pending_read_insns",
2316 "pending_write_insns", "pending_jump_insns",
2317 "last_pending_memory_flush", "last_function_call",
2318 "last_function_call_may_noreturn", "sched_before_next_call",
2319 "sched_before_next_jump".
2320 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2321 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2323 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2324 from rtx to rtx_insn_list *.
2325 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2328 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2329 to rtx_insn_list **.
2330 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2332 (queue_insn): Likewise for local "link".
2333 (struct haifa_saved_data): Strengthen field "insn_queue" from
2334 rtx * to rtx_insn_list **.
2335 (save_backtrack_point): Update allocation of save->insn_queue to
2336 reflect the strengthening of elements from rtx to rtx_insn_list *.
2337 (queue_to_ready): Strengthen local "link" from rtx to
2338 rtx_insn_list *; use methods "next" and "insn" when traversing the
2340 (early_queue_to_ready): Likewise for locals "link", "next_link",
2342 (schedule_block): Update allocation of insn_queue to reflect the
2343 strengthening of elements from rtx to rtx_insn_list *. Strengthen
2344 local "link" from rtx to rtx_insn_list *, and use methods when
2346 (add_to_speculative_block): Strengthen locals "twins" and
2347 "next_node" from rtx to rtx_insn_list *, and use methods when
2348 working with them. Strengthen local "twin" from rtx to
2349 rtx_insn *, eliminating a checked cast.
2350 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2351 from rtx to rtx_insn_list *, and use methods when working with
2354 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2355 from rtx to rtx_insn_list *, adding a checked cast.
2356 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
2358 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
2359 "newlink" from rtx to rtx_insn_list *. Strengthen local
2360 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
2361 from rtx to rtx_insn *.
2362 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
2363 from rtx to rtx_insn_list *. Use methods of the latter class.
2364 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
2365 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
2366 (remove_free_INSN_LIST_node): Strengthen return type and local
2367 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
2368 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
2369 rtx_insn_list *, using "insn" method.
2371 * sched-deps.c (add_dependence_list): Strengthen param "list"
2372 from rtx to rtx_insn_list *, and use methods when working with it.
2373 (add_dependence_list_and_free): Strengthen param "listp" from
2374 rtx * to rtx_insn_list **.
2375 (remove_from_dependence_list): Strenghten param "listp" from rtx *
2376 to rtx_insn_list **, and use methods when working with *listp.
2377 (remove_from_both_dependence_lists): Strengthen param "listp" from
2378 rtx * to rtx_insn_list **
2379 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
2380 to rtx_insn_list **. Eliminate local "link", in favor of two new
2381 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
2383 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
2384 by introducing local "cond_deps".
2385 (remove_from_deps): Strengthen param "insn" from rtx to
2388 * sched-rgn.c (concat_insn_mem_list): Strengthen param
2389 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
2390 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
2391 Use methods of rtx_insn_list.
2393 * store-motion.c (struct st_expr): Strengthen fields
2394 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
2395 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
2397 (find_moveable_store): Split out "tmp" into multiple more-tightly
2398 scoped locals. Use methods of rtx_insn_list *.
2399 (compute_store_table): Strengthen local "tmp" from rtx to
2400 rtx_insn *. Use methods of rtx_insn_list *.
2402 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2404 * coretypes.h (class rtx_insn_list): Add forward declaration.
2405 * rtl.h (class rtx_insn_list): New subclass of rtx_def
2406 (is_a_helper <rtx_insn_list *>::test): New.
2407 (rtx_insn_list::next): New.
2408 (rtx_insn_list::insn): New.
2409 (gen_rtx_INSN_LIST): Add prototype.
2410 * emit-rtl.c (gen_rtx_INSN_LIST): New.
2411 * gengenrtl.c (special_rtx): Add INSN_LIST.
2413 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2415 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2416 "prev" from rtx to rtx_insn *.
2418 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2420 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2421 functions. Require merely an rtx for now, not an rtx_insn *.
2422 (BLOCK_FOR_INSN): Likewise.
2423 (INSN_LOCATION): Likewise.
2424 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2426 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2428 * rtl.h (PATTERN): Convert this macro into a pair of inline
2429 functions, for now, requiring const_rtx and rtx.
2431 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2433 * target.def (unwind_emit): Strengthen param "insn" from rtx to
2435 (final_postscan_insn): Likewise.
2436 (adjust_cost): Likewise.
2437 (adjust_priority): Likewise.
2438 (variable_issue): Likewise.
2439 (macro_fusion_pair_p): Likewise.
2440 (dfa_post_cycle_insn): Likewise.
2441 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2442 (first_cycle_multipass_issue): Likewise.
2443 (dfa_new_cycle): Likewise.
2444 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2445 (speculate_insn): Likewise for param "insn".
2446 (gen_spec_check): Likewise for params "insn" and "label".
2447 (get_insn_spec_ds): Likewise for param "insn".
2448 (get_insn_checked_ds): Likewise.
2449 (dispatch_do): Likewise.
2450 (dispatch): Likewise.
2451 (cannot_copy_insn_p): Likewise.
2452 (invalid_within_doloop): Likewise.
2453 (legitimate_combined_insn): Likewise.
2457 * doc/tm.texi: Automatically updated to reflect changes to
2460 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2462 (schedule_block): Likewise.
2463 (sched_init): Likewise.
2464 (sched_speculate_insn): Strengthen param "insn" from rtx to
2466 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2468 * hooks.c (hook_bool_rtx_true): Rename to...
2469 hook_bool_rtx_insn_true): ...this, and strengthen first param from
2471 (hook_constcharptr_const_rtx_null): Rename to...
2472 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2473 first param from const_rtx to const rtx_insn *.
2474 (hook_bool_rtx_int_false): Rename to...
2475 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2476 param from rtx to rtx_insn *.
2477 (hook_void_rtx_int): Rename to...
2478 (hook_void_rtx_insn_int): ...this, and strengthen first param from
2481 * hooks.h (hook_bool_rtx_true): Rename to...
2482 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2484 (hook_bool_rtx_int_false): Rename to...
2485 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2486 param from rtx to rtx_insn *.
2487 (hook_void_rtx_int): Rename to...
2488 (hook_void_rtx_insn_int): ...this, and strengthen first param from
2490 (hook_constcharptr_const_rtx_null): Rename to...
2491 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2492 first param from const_rtx to const rtx_insn *.
2494 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2495 and local "prev" from rtx to rtx_insn *.
2497 * sched-int.h (sched_speculate_insn): Strengthen first param from
2500 * sel-sched.c (create_speculation_check): Likewise for local "label".
2501 * targhooks.c (default_invalid_within_doloop): Strengthen param
2502 "insn" from const_rtx to const rtx_insn *.
2503 * targhooks.h (default_invalid_within_doloop): Strengthen param
2504 from const_rtx to const rtx_insn *.
2506 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2507 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2509 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2511 (arc_invalid_within_doloop): Likewise, with const.
2513 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2514 (arm_cannot_copy_insn_p): Likewise for param "insn".
2515 (arm_unwind_emit): Likewise.
2517 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2520 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2521 (c6x_variable_issue): Likewise. Removed now-redundant checked
2523 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2525 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2526 Likewise for param "insn".
2527 (epiphany_mode_after): Likewise.
2528 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2529 params "insn", "dep_insn".
2530 (epiphany_mode_needed): Likewise for param "insn".
2531 (epiphany_mode_after): Likewise.
2533 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2534 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2535 (ix86_avx_u128_mode_needed): Likewise.
2536 (ix86_i387_mode_needed): Likewise.
2537 (ix86_mode_needed): Likewise.
2538 (ix86_avx_u128_mode_after): Likewise.
2539 (ix86_mode_after): Likewise.
2540 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2541 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2542 (ix86_adjust_priority): Likewise for param "insn".
2543 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2544 (do_dispatch): Likewise.
2545 (has_dispatch): Likewise.
2546 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2548 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2549 reflect renaming of default hook implementation from
2550 hook_constcharptr_const_rtx_null to
2551 hook_constcharptr_const_rtx_insn_null.
2552 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2554 (ia64_variable_issue): Likewise for param "insn".
2555 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2556 (ia64_dfa_new_cycle): Likewise.
2557 (ia64_get_insn_spec_ds): Likewise.
2558 (ia64_get_insn_checked_ds): Likewise.
2559 (ia64_speculate_insn): Likewise.
2560 (ia64_gen_spec_check): Likewise for params "insn", "label".
2561 (ia64_asm_unwind_emit): Likewise for param "insn".
2563 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2565 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2567 (m68k_sched_variable_issue): Likewise for param "insn".
2569 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2572 * config/microblaze/microblaze.c (microblaze_adjust_cost):
2573 Likewise for params "insn", "dep".
2575 * config/mips/mips.c (mips_adjust_cost): Likewise.
2576 (mips_variable_issue): Likewise for param "insn".
2577 (mips_final_postscan_insn): Likewise.
2579 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2580 for params "insn", "dep".
2582 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2584 (pa_adjust_priority): Likewise for param "insn".
2586 * config/picochip/picochip.c (picochip_sched_adjust_cost):
2587 Likewise for params "insn", "dep_insn".
2589 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2591 (rs6000_variable_issue): Likewise.
2592 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2593 (rs6000_debug_adjust_cost): Likewise.
2594 (rs6000_adjust_priority): Likewise for param "insn".
2595 (rs6000_use_sched_lookahead_guard): Likewise.
2596 (get_next_active_insn): Likewise for return type and both params.
2597 (redefine_groups): Likewise for params "prev_head_insn", "tail"
2598 and locals "insn", "next_insn".
2599 (pad_groups): Likewise.
2601 * config/s390/s390.c (s390_adjust_priority): Likewise for param
2603 (s390_cannot_copy_insn_p): Likewise.
2604 (s390_sched_variable_issue): Likewise for third param, eliminating
2606 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2607 default hook implementation from hook_constcharptr_const_rtx_null
2608 to hook_constcharptr_const_rtx_insn_null.
2610 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2611 from rtx to rtx_insn *.
2612 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2613 (sh_variable_issue): Likewise for param "insn".
2614 (sh_dfa_new_cycle): Likewise.
2615 (sh_mode_needed): Likewise.
2616 (sh_mode_after): Likewise.
2618 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2619 params "insn", "dep_insn".
2620 (hypersparc_adjust_cost): Likewise.
2621 (sparc_adjust_cost): Likewise.
2623 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2624 param, eliminated checked cast.
2625 (spu_sched_adjust_cost): Likewise for first and third params.
2627 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2628 params "insn" and "dep_insn" from rtx to rtx_insn *.
2630 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2632 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2634 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2635 (set_is_load_p): ...this, updating to work on a SET pattern rather
2637 (is_store_insn): Rename to...
2638 (set_is_store_p): ...this, updating to work on a SET pattern
2639 rather than an insn.
2640 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2641 top of function to where it is needed. Rewrite the bogus
2642 condition that checks for "insn" and "dep" being PARALLEL to
2643 instead use single_set, introducing locals "insn_set" and
2644 "dep_set". Given that we only ever returned "cost" for a non-pair
2645 of SETs, bail out early if we don't have a pair of SET.
2646 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2647 use the new locals "insn_set" and "dep_set", and update calls to
2648 is_load_insn and is_store_insn to be calls to set_is_load_p and
2651 2014-08-27 Guozhi Wei <carrot@google.com>
2654 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2655 amount before using it.
2657 2014-08-27 Richard Biener <rguenther@suse.de>
2659 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2660 get_maxval_strlen inside a more useful API.
2661 (gimple_fold_builtin_with_strlen): Remove and fold into ...
2662 (gimple_fold_builtin): ... caller.
2663 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2664 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2665 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2666 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2667 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2668 gimple_fold_builtin_sprintf): Adjust to compute maxval
2671 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
2674 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2676 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2678 Anna Tikhonova <anna.tikhonova@intel.com>
2679 Ilya Tocar <ilya.tocar@intel.com>
2680 Andrey Turetskiy <andrey.turetskiy@intel.com>
2681 Ilya Verbin <ilya.verbin@intel.com>
2682 Kirill Yukhin <kirill.yukhin@intel.com>
2683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2685 * config/i386/sse.md
2686 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2687 Use `concat_tg_mode' attribute to determine asm register size.
2689 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2691 Anna Tikhonova <anna.tikhonova@intel.com>
2692 Ilya Tocar <ilya.tocar@intel.com>
2693 Andrey Turetskiy <andrey.turetskiy@intel.com>
2694 Ilya Verbin <ilya.verbin@intel.com>
2695 Kirill Yukhin <kirill.yukhin@intel.com>
2696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2698 * config/i386/sse.md
2699 (define_mode_iterator VI48_AVX512VL): New.
2700 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2701 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2702 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2703 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2704 with VI1): Change mode iterator.
2705 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2706 with VI_ULOADSTORE_BW_AVX512VL): New.
2707 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2708 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2709 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2710 with VI1): Change mode iterator.
2711 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2712 with VI_ULOADSTORE_BW_AVX512VL): New.
2713 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2714 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2715 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2716 with VI1): Change mode iterator.
2717 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2718 with VI_ULOADSTORE_BW_AVX512VL): New.
2719 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2720 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2721 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2722 (define_insn "<avx512>_storedqu<mode>_mask" with
2723 VI48_AVX512VL): New.
2724 (define_insn "<avx512>_storedqu<mode>_mask" with
2725 VI12_AVX512VL): Ditto.
2727 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2729 Anna Tikhonova <anna.tikhonova@intel.com>
2730 Ilya Tocar <ilya.tocar@intel.com>
2731 Andrey Turetskiy <andrey.turetskiy@intel.com>
2732 Ilya Verbin <ilya.verbin@intel.com>
2733 Kirill Yukhin <kirill.yukhin@intel.com>
2734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2736 * config/i386/sse.md
2737 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2738 (define_mode_iterator VI48_AVX512BW): New.
2739 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2740 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2741 with VI48_AVX2_48_AVX512F): New.
2742 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2743 with VI2_AVX512VL): Ditto.
2745 2014-08-27 Richard Biener <rguenther@suse.de>
2748 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2749 (fold_builtin_3): Do not fold strcat_chk here.
2750 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2752 (gimple_fold_builtin): Fold strcat_chk here.
2754 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
2756 * dwarf2out.h (dwarf2out_decl): Remove prototype.
2757 * dwarf2out.c (dwarf2out_decl): Make static.
2759 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
2761 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2763 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2765 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2766 from rtx to rtx_insn *.
2767 (cselib_lookup_from_insn): Likewise for final param.
2768 (cselib_subst_to_values_from_insn): Likewise.
2769 (cselib_add_permanent_equiv): Likewise.
2771 * cselib.c (cselib_current_insn): Likewise for this variable.
2772 (cselib_subst_to_values_from_insn): Likewise for param "insn".
2773 (cselib_lookup_from_insn): Likewise.
2774 (cselib_add_permanent_equiv): Likewise for param "insn" and local
2775 "save_cselib_current_insn".
2776 (cselib_process_insn): Replace use of NULL_RTX with NULL.
2778 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2779 from rtx to rtx_insn *.
2781 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2783 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2786 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2788 * df.h (df_dump_insn_problem_function): Strengthen first param of
2789 this callback from const_rtx to const rtx_insn *.
2790 (struct df_insn_info): Strengthen field "insn" from rtx to
2792 (DF_REF_INSN): Eliminate this function, reinstating the older
2794 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2795 (df_reg_defined): Likewise.
2796 (df_find_use): Likewise.
2797 (df_reg_used): Likewise.
2798 (df_dump_insn_top): Strengthen param 1 from const_rtx to
2800 (df_dump_insn_bottom): Likewise.
2801 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2802 (df_insn_debug_regno): Likewise.
2803 (debug_df_insn): Likewise.
2804 (df_rd_simulate_one_insn): Likewise for param 2.
2805 (df_word_lr_simulate_defs): Likewise for param 1.
2806 (df_word_lr_simulate_uses): Likewise.
2807 (df_md_simulate_one_insn): Likewise for param 2.
2808 (df_simulate_find_noclobber_defs): Likewise for param 1.
2809 (df_simulate_find_defs): Likewise.
2810 (df_simulate_defs): Likewise.
2811 (df_simulate_uses): Likewise.
2812 (df_simulate_one_insn_backwards): Likewise for param 2.
2813 (df_simulate_one_insn_forwards): Likewise.
2814 (df_uses_create): Likewise for param 2.
2815 (df_insn_create_insn_record): Likewise for param 1.
2816 (df_insn_delete): Likewise.
2817 (df_insn_rescan): Likewise.
2818 (df_insn_rescan_debug_internal): Likewise.
2819 (df_insn_change_bb): Likewise.
2820 (df_notes_rescan): Likewise.
2821 * rtl.h (remove_death): Likewise for param 2.
2822 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2824 * sched-int.h (reemit_notes): Strengthen param from rtx to
2826 * valtrack.h (propagate_for_debug): Likewise for param 1.
2828 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2829 local "tmp_rtx" from const_rtx to const rtx_insn *.
2830 * combine.c (remove_death): Strengthen param "insn" from rtx to
2832 (move_deaths): Likewise for local "where_dead".
2833 * cse.c (delete_trivially_dead_insns): Introduce local
2834 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2835 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2837 (df_reg_defined): Likewise.
2838 (df_find_use): Likewise.
2839 (df_reg_used): Likewise.
2840 (df_dump_insn_problem_data): Strengthen param "insn" from
2841 const_rtx to const rtx_insn *.
2842 (df_dump_insn_top): Likewise.
2843 (df_dump_insn_bottom): Likewise.
2844 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2845 (df_insn_debug_regno): Likewise.
2846 (debug_df_insn): Likewise.
2847 (DF_REF_INSN): Delete.
2848 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2849 from rtx to rtx_insn *.
2850 (df_chain_insn_top_dump): Strengthen param "insn" from
2851 const_rtx to const rtx_insn *.
2852 (df_chain_insn_bottom_dump): Likewise.
2853 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2855 (df_word_lr_simulate_uses): Likewise.
2856 (df_print_note): Likewise.
2857 (df_remove_dead_and_unused_notes): Likewise.
2858 (df_set_unused_notes_for_mw): Likewise.
2859 (df_set_dead_notes_for_mw): Likewise.
2860 (df_create_unused_note): Likewise.
2861 (df_simulate_find_defs): Likewise.
2862 (df_simulate_find_uses): Likewise.
2863 (df_simulate_find_noclobber_defs): Likewise.
2864 (df_simulate_defs): Likewise.
2865 (df_simulate_uses): Likewise.
2866 (df_simulate_one_insn_backwards): Likewise.
2867 (df_simulate_one_insn_forwards): Likewise.
2868 (df_md_simulate_one_insn): Likewise.
2869 * df-scan.c (df_uses_create): Likewise.
2870 (df_insn_create_insn_record): Likewise.
2871 (df_insn_delete): Likewise.
2872 (df_insn_rescan): Likewise.
2873 (df_insn_rescan_debug_internal): Likewise.
2874 (df_insn_change_bb): Likewise.
2875 (df_notes_rescan): Likewise.
2876 (df_refs_add_to_chains): Likewise.
2877 (df_insn_refs_verify): Likewise.
2878 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2879 when invoking df_insn_delete.
2880 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2881 (set_unique_reg_note): Add checked cast.
2882 * final.c (cleanup_subreg_operands): Likewise.
2883 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2884 "insn" from rtx to rtx_insn *.
2885 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2886 "last" from rtx to rtx_insn *.
2887 * ira-emit.c (change_regs_in_insn): New function.
2888 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2889 Invoke change_regs_in_insn rather than change_regs.
2890 * ira.c (update_equiv_regs): Strengthen locals "insn",
2891 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
2892 for_each_rtx_in_insn rather than for_each_rtx.
2893 * recog.c (confirm_change_group): Add checked casts.
2894 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2896 (peep2_fill_buffer): Add checked cast.
2897 * rtlanal.c (remove_note): Likewise.
2898 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2899 locals "next" "end" from rtx to rtx_insn *.
2901 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2903 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2905 (struct reg_use_data): Likewise for field "insn".
2906 (insn_cost): Likewise for param.
2907 (real_insn_for_shadow): Likewise for return type and param.
2908 (increase_insn_priority): Likewise for param 1.
2909 (debug_dependencies): Likewise for both params.
2911 * haifa-sched.c (insn_delay): Likewise for param "insn".
2912 (real_insn_for_shadow): Likewise for return type and param "insn".
2913 (update_insn_after_change): Likewise for param "insn".
2914 (recompute_todo_spec): Likewise for param "next" and locals "pro",
2916 (insn_cost): Likewise for param "insn".
2917 (increase_insn_priority): Likewise.
2918 (calculate_reg_deaths): Likewise.
2919 (setup_insn_reg_pressure_info): Likewise.
2920 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2921 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2922 (model_recompute): Likewise.
2923 (must_restore_pattern_p): Likewise for param "next".
2924 (model_excess_cost): Likewise for param "insn".
2925 (queue_remove): Likewise.
2926 (adjust_priority): Likewise for param "prev".
2927 (update_register_pressure): Likewise for param "insn".
2928 (setup_insn_max_reg_pressure): Likewise for local "insn".
2929 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2930 (model_add_to_schedule): Likewise.
2931 (model_reset_queue_indices): Likewise for local "insn".
2932 (unschedule_insns_until): Strengthen local "recompute_vec" from
2933 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
2934 "con" from rtx to rtx_insn *.
2935 (restore_last_backtrack_point): Likewise for both locals "x". Add
2937 (estimate_insn_tick): Likewise for param "insn".
2938 (commit_schedule): Likewise for params "prev_head", "tail" and
2940 (verify_shadows): Likewise for locals "i1", "i2".
2941 (dump_insn_stream): Likewise for params "head", "tail" and locals
2942 "next_tail", "insn".
2943 (schedule_block): Likewise for locals "insn", "x". Add a checked
2945 (fix_inter_tick): Likewise for params "head", "tail".
2946 (create_check_block_twin): Likewise for local "jump".
2947 (haifa_change_pattern): Likewise for param "insn".
2948 (haifa_speculate_insn): Likewise.
2949 (dump_new_block_header): Likewise for params "head", "tail".
2950 (fix_jump_move): Likewise for param "jump".
2951 (move_block_after_check): Likewise.
2952 (sched_init_insn_luid): Likewise for param "insn".
2953 (sched_init_luids): Likewise for local "insn".
2954 (insn_luid): Likewise for param "insn".
2955 (init_h_i_d): Likewise.
2956 (haifa_init_h_i_d): Likewise for local "insn".
2957 (haifa_init_insn): Likewise for param "insn".
2958 * sched-deps.c (add_dependence): Likewise for local "real_pro",
2960 (create_insn_reg_use): Likewise for param "insn".
2961 (setup_insn_reg_uses): Likewise. Add a checked cast.
2962 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2963 "tail" from rtx to rtx_insn *.
2964 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2965 "insn", "next_tail".
2967 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2969 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2970 from rtx to rtx_insn *.
2971 (model_add_to_schedule): Likewise for locals "start", "end",
2974 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2976 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2978 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
2979 "to" and locals "insn", "next", "copy". Remove now-redundant
2982 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2984 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2985 rtx_insn * and param 4 from rtx * to rtx_insn **.
2986 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2987 param 2 from rtx * to rtx_insn **.
2989 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2990 rtx_insn * and final param from rtx * to rtx_insn **.
2992 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2993 from rtx to rtx_insn *.
2994 (try_head_merge_bb): Likewise for both locals named "move_upto".
2995 * df-problems.c (can_move_insns_across): Likewise for params
2996 "from", "to", "across_from", "across_to" and locals "insn",
2997 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
2999 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3000 from rtx to rtx_insn *.
3001 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3002 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3003 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3005 (noce_try_abs): Likewise.
3006 (noce_get_condition): Likewise for param "jump". Strengthen param
3007 "earliest" from rtx * to rtx_insn **.
3008 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3010 (find_cond_trap): Likewise.
3011 (dead_or_predicable): Likewise for local "earliest".
3012 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
3014 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3015 and local "prev". Strengthen param "earliest" from rtx * to
3017 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3018 Strengthen param "earliest" from rtx * to rtx_insn **.
3020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3022 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3023 "to" and local "insn" from rtx to rtx_insn *.
3025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3027 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3028 from rtx to rtx_insn *.
3029 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3030 (code_motion_path_driver): Likewise for local "last_insn".
3031 (simplify_changed_insns): Likewise for local "insn".
3033 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3035 * rtl.h (push_to_sequence): Strengthen param from rtx to
3037 (push_to_sequence2): Likewise for both params.
3038 (delete_insns_since): Likewise for param.
3039 (reorder_insns_nobb): Likewise for all three params.
3040 (set_new_first_and_last_insn): Likewise for both params.
3042 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3043 rtx_insn *. Remove now-redundant cast.
3044 (set_last_insn): Likewise.
3046 * builtins.c (expand_builtin_return): Strengthen local
3047 "call_fusage" from rtx to rtx_insn *.
3048 * cfgrtl.c (create_basic_block_structure): Likewise for local
3050 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3051 "first", "last" and local "insn".
3052 (delete_insns_since): Likewise for param "from".
3053 (reorder_insns_nobb): Likewise for params "from", "to", "after"
3055 (push_to_sequence): Likewise for param "first" and local "last".
3056 (push_to_sequence2): Likewise for params "first" and "last".
3057 * lra.c (emit_add3_insn): Likewise for local "last".
3058 (lra_emit_add): Likewise.
3059 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3061 (process_address_1): Likewise for locals "insn", last".
3062 * modulo-sched.c (ps_first_note): Likewise for return type.
3063 * optabs.c (expand_binop_directly): Likewise for param "last".
3065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3067 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3069 * emit-rtl.c (get_last_insn_anywhere): Likewise.
3071 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3073 * function.h (struct sequence_stack): Strengthen fields "first"
3074 and "last" from rtx to rtx_insn *.
3075 (struct emit_status): Likewise for fields "x_first_insn" and
3078 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3079 (set_first_insn): Add checked cast.
3080 (get_last_insn): Remove now-redundant checked cast.
3081 (set_last_insn): Add checked cast.
3083 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3084 "saved_first" and "saved_last" from rtx to rtx_insn *.
3086 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3088 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3089 (unlink_insn_chain): Strengthen both params from rtx to
3092 * cfgrtl.c (cfg_layout_function_header): Likewise for this
3094 (unlink_insn_chain): Likewise for params "first" and "last".
3095 Remove now-redundant checked cast.
3096 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3097 (fixup_reorder_chain): Strengthen local "insn" from rtx to
3099 * emit-rtl.c (link_insn_into_chain): Likewise for all three
3101 (add_insn): Likewise for param "insn" and local "prev".
3102 (add_insn_after_nobb): Likewise for both params and local "next".
3103 (add_insn_before_nobb): Likewise for both params and local "prev".
3104 (add_insn_after): Rename param "after" to "uncast_after",
3105 introducing local "after" with another checked cast.
3106 (add_insn_before): Rename params "insn" and "before", giving them
3107 "uncast_" prefixes, adding the old names back using checked casts.
3108 (emit_note_after): Likewise for param "after".
3109 (emit_note_before): Likewise for param "before".
3110 (emit_label): Add a checked cast.
3112 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3114 * cselib.h (cselib_record_sets_hook): Strengthen initial param
3115 "insn" from rtx to rtx_insn *.
3117 * cselib.c (cselib_record_sets_hook): Likewise.
3119 * var-tracking.c (add_with_sets): Likewise, renaming back from
3120 "uncast_insn" to "insn" and eliminating the checked cast from rtx
3123 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3125 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3126 and "header_" from rtx to rtx_insn *.
3127 (struct basic_block_d): Likewise for field "head_" within "x"
3128 field of union basic_block_il_dependent.
3129 (BB_HEAD): Drop function...
3130 (SET_BB_HEAD): ...and this function in favor of...
3131 (BB_HEAD): ...reinstate macro.
3132 (BB_END): Drop function...
3133 (SET_BB_END): ...and this function in favor of...
3134 (BB_END): ...reinstate macro.
3135 (BB_HEADER): Drop function...
3136 (SET_BB_HEADER): ...and this function in favor of...
3137 (BB_HEADER): ...reinstate macro.
3139 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3140 (fix_crossing_unconditional_branches): Likewise.
3141 * caller-save.c (save_call_clobbered_regs): Likewise.
3142 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3143 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3144 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3145 (merge_blocks_move_successor_nojumps): Likewise.
3146 (outgoing_edges_match): Update use of for_each_rtx to
3147 for_each_rtx_in_insn.
3148 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3149 (expand_gimple_cond): Likewise.
3150 (expand_gimple_tailcall): Likewise.
3151 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3153 (construct_exit_block): Drop use of SET_BB_END.
3154 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3156 (delete_insn): Rename param "insn" to "uncast_insn", introducing
3157 a new local "insn" with a checked cast to rtx_insn *. Drop use of
3158 SET_BB_HEAD and SET_BB_END.
3159 (create_basic_block_structure): Drop use of SET_BB_HEAD and
3161 (rtl_delete_block): Drop use of SET_BB_HEAD.
3162 (rtl_split_block): Drop use of SET_BB_END.
3163 (emit_nop_for_unique_locus_between): Likewise.
3164 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3165 (block_label): Drop use of SET_BB_HEAD.
3166 (fixup_abnormal_edges): Drop use of SET_BB_END.
3167 (record_effective_endpoints): Drop use of SET_BB_HEADER.
3168 (relink_block_chain): Likewise.
3169 (fixup_reorder_chain): Drop use of SET_BB_END.
3170 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3171 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3172 rtx_insn **. Drop use of SET_BB_HEADER.
3173 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3175 (BB_HEAD): Delete this function.
3176 (SET_BB_HEAD): Likewise.
3178 (SET_BB_END): Likewise.
3179 (BB_HEADER): Likewise.
3180 (SET_BB_HEADER): Likewise.
3181 * emit-rtl.c (add_insn_after): Rename param "insn" to
3182 "uncast_insn", adding a new local "insn" and a checked cast to
3183 rtx_insn *. Drop use of SET_BB_END.
3184 (remove_insn): Strengthen locals "next" and "prev" from rtx to
3185 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
3186 (reorder_insns): Drop use of SET_BB_END.
3187 (emit_insn_after_1): Strengthen param "first" and locals "last",
3188 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
3189 (emit_pattern_after_noloc): Add checked cast.
3190 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3191 (restore_other_notes): Likewise.
3192 (move_insn): Likewise.
3193 (sched_extend_bb): Likewise.
3194 (fix_jump_move): Likewise.
3195 * ifcvt.c (noce_process_if_block): Likewise.
3196 (dead_or_predicable): Likewise.
3197 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3198 * reg-stack.c (change_stack): Drop use of SET_BB_END.
3199 * sel-sched-ir.c (sel_move_insn): Likewise.
3200 * sel-sched.c (move_nop_to_previous_block): Likewise.
3202 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3204 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3206 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3208 * basic-block.h (create_basic_block_structure): Strengthen params
3209 1 "head" and 2 "end" from rtx to rtx_insn *.
3210 * cfgrtl.c (create_basic_block_structure): Likewise.
3211 (rtl_create_basic_block): Update casts from void * to rtx to
3212 rtx_insn *, so that we can pass them as rtx_insn * to
3213 create_basic_block_structure.
3214 * sel-sched-ir.c (sel_create_basic_block): Likewise.
3216 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3218 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3220 (check_for_inc_dec): Strengthen param "insn" from rtx to
3223 * cselib.h (cselib_process_insn): Likewise.
3225 * cselib.c (cselib_record_sets): Likewise.
3226 (cselib_process_insn): Likewise.
3228 * dse.c (struct insn_info): Likewise for field "insn".
3229 (check_for_inc_dec_1): Likewise for local "insn".
3230 (check_for_inc_dec): Likewise for param "insn".
3231 (scan_insn): Likewise.
3232 (dse_step1): Likewise for local "insn".
3234 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3235 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
3237 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3239 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
3240 from rtx to rtx_insn *.
3241 (DEP_PRO): Delete this function and...
3242 (SET_DEP_PRO): ...this function in favor of...
3243 (DEP_PRO): ...reinstate this macro.
3244 (DEP_CON): Delete this function and...
3245 (SET_DEP_CON): ...this function in favor of...
3246 (DEP_CON): ...reinstate this old macro.
3247 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
3248 (init_dep): Likewise.
3249 (set_priorities): Likewise for both params.
3250 (sd_copy_back_deps): Likewise for params 1 and 2.
3252 * haifa-sched.c (priority): Likewise for param "insn" and local
3254 (set_priorities): Likewise for params "head" and "tail" and local
3256 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
3258 (add_to_speculative_block): Add a checked cast.
3259 (create_check_block_twin): Drop use of SET_DEP_CON.
3260 (add_jump_dependencies): Strengthen params "insn" and "jump" from
3263 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
3264 Drop use of SET_DEP_PRO
3265 (init_dep): Strengthen params "pro" and "con" from rtx to
3267 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
3271 (SET_DEP_PRO): Delete.
3272 (SET_DEP_CON): Delete.
3274 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3276 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
3277 from rtx to rtx_insn *.
3278 (VINSN_INSN_RTX): Eliminate rvalue function and...
3279 (SET_VINSN_INSN): ...lvalue function in favor of...
3280 (VINSN_INSN_RTX): reinstate this old macro.
3282 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
3283 in favor of VINSN_INSN_RTX.
3284 (VINSN_INSN_RTX): Delete this function.
3285 (SET_VINSN_INSN_RTX): Likewise.
3287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3289 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
3290 (BND_TO): Delete this function and...
3291 (SET_BND_TO): ...this functions in favor of...
3292 (BND_TO): ...reinstating this macro.
3293 (struct _fence): Strengthen field "executing_insns" from
3294 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
3295 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
3296 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
3297 and param "insn" from rtx to insn_t.
3298 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
3301 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
3303 (rtx_vec_t): Likewise.
3304 (struct sched_deps_info_def): Strengthen param of "start_insn"
3305 callback from rtx to rtx_insn *. Likewise for param "insn2" of
3306 "note_mem_dep" callback and first param of "note_dep" callback.
3308 * haifa-sched.c (add_to_speculative_block): Strengthen param
3309 "insn" from rtx to rtx_insn *.
3310 (clear_priorities): Likewise.
3311 (calc_priorities): Likewise for local "insn".
3313 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3314 Remove redundant checked cast.
3315 (haifa_note_mem_dep): Likewise for param "pending_insn".
3316 (haifa_note_dep): Likewise for param "elem".
3317 (note_mem_dep): Likewise for param "e".
3318 (sched_analyze_1): Add checked casts.
3319 (sched_analyze_2): Likewise.
3321 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3322 from rtx to rtx_insn *.
3323 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3324 from vec<rtx> * to vec<rtx_insn *> *.
3326 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3328 (flist_add): Strengthen param "executing_insns" from
3329 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3330 (advance_deps_context): Remove now-redundant checked cast.
3331 (init_fences): Replace uses of NULL_RTX with NULL.
3332 (merge_fences): Strengthen params "last_scheduled_insn" and
3333 "sched_next" from rtx to rtx_insn * and "executing_insns" from
3334 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3335 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3336 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3337 an instruction, rather than doing double-duty as a pattern.
3338 (return_nop_to_pool): Update for change of insn_t.
3339 (deps_init_id): Remove now-redundant checked cast.
3340 (struct sched_scan_info_def): Strengthen param of "init_insn"
3341 callback from rtx to insn_t.
3342 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3343 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3345 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3346 "end" from rtx to rtx_insn *.
3347 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3348 (rtx insn_rtx, bool force_unique_p)
3349 (BND_TO): Delete function.
3350 (SET_BND_TO): Delete function.
3352 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3354 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3355 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3357 (undo_transformations): Likewise for param "insn".
3358 (update_liveness_on_insn): Likewise.
3359 (compute_live_below_insn): Likewise for param "insn" and local
3361 (update_data_sets): Likewise for param "insn".
3362 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
3363 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
3364 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
3366 (move_cond_jump): Likewise for param "insn".
3367 (move_cond_jump): Drop use of SET_BND_TO.
3368 (compute_av_set_on_boundaries): Likewise.
3369 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
3370 (update_and_record_unavailable_insns): Strengthen local "bb_end"
3371 from rtx to rtx_insn *.
3372 (maybe_emit_renaming_copy): Likewise for param "insn".
3373 (maybe_emit_speculative_check): Likewise.
3374 (handle_emitting_transformations): Likewise.
3375 (remove_insn_from_stream): Likewise.
3376 (code_motion_process_successors): Strengthen local "succ" from rtx
3379 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3381 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
3382 ilist_t, not _xlist_t;
3383 (ILIST_INSN): Define in terms of new union field "insn".
3384 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
3386 (struct _list_node): Add new field "insn" to the union, of type
3388 (ilist_add): Replace macro with an inline function, requiring an
3390 (ilist_remove): Define this macro directly in terms of
3391 _list_remove, rather than indirectly via _xlist_remove.
3392 (ilist_clear): Likewise, in terms of _list_clear rather than
3394 (ilist_is_in_p): Replace macro with an inline function, requiring
3396 (_list_iter_cond_insn): New function.
3397 (ilist_iter_remove): Define this macro directly in terms of
3398 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
3399 (ilist_iterator): Define directly in terms of _list_iterator
3400 rather than indirectly through _xlist_iterator.
3401 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
3402 than in terms of _FOR_EACH_X.
3403 (FOR_EACH_INSN_1): Likewise.
3405 2014-08-26 Joseph Myers <joseph@codesourcery.com>
3409 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
3410 DECL_HARD_REGISTER and return for invalid register specifications.
3411 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3412 DECL_HARD_REGISTER, call expand_one_error_var.
3413 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3414 CC_REGNUM with non-MODE_CC modes.
3415 (arm_regno_class): Return NO_REGS for PC_REGNUM.
3417 2014-08-26 Marek Polacek <polacek@redhat.com>
3420 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3422 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
3424 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3425 qi cost; add di cost.
3426 (cortexa57_addrcost_table): Likewise.
3428 2014-08-26 Marek Polacek <polacek@redhat.com>
3431 * expr.c (is_aligning_offset): Remove logical not.
3433 2014-08-26 Marek Polacek <polacek@redhat.com>
3436 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3437 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3439 2014-08-26 Richard Biener <rguenther@suse.de>
3441 PR tree-optimization/62175
3442 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3443 expand possibly trapping operations.
3445 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3447 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3448 "insn" from rtx to rtx_insn *.
3449 (permute_load): Likewise for param "insn".
3450 (permute_store): Likewise.
3451 (handle_special_swappables): Likewise for local "insn".
3452 (replace_swap_with_copy): Likewise for locals "insn" and
3454 (rs6000_analyze_swaps): Likewise for local "insn".
3456 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3458 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3461 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3463 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3464 "note_list" from rtx to rtx_insn *.
3465 (BB_NOTE_LIST): Replace this function and...
3466 (SET_BB_NOTE_LIST): ...this function with...
3467 (BB_NOTE_LIST): ...the former macro implementation.
3469 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3470 local "from_start" from rtx to rtx_insn *. Strengthen param
3471 "to_endp" from rtx * to rtx_insn **.
3473 * haifa-sched.c (concat_note_lists): Likewise.
3474 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3476 (sel_restore_notes): Likewise.
3477 (move_bb_info): Likewise.
3478 (BB_NOTE_LIST): Delete this function.
3479 (SET_BB_NOTE_LIST): Delete this function.
3480 * sel-sched.c (create_block_for_bookkeeping): Eliminate
3481 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3483 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3485 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3486 from rtx * to rtx_insn **.
3487 (reorder2): Likewise.
3488 (dependencies_evaluation_hook): Strengthen params "head", "tail"
3489 from rtx to rtx_insn *.
3491 * doc/tm.texi: Update mechanically for above change to target.def.
3493 * sched-int.h (note_list): Strengthen this variable from rtx to
3495 (remove_notes): Likewise for both params.
3496 (restore_other_notes): Likewise for return type and first param.
3497 (struct ready_list): Strengthen field "vec" from rtx * to
3499 (struct dep_replacement): Strenghten field "insn" from rtx to
3501 (struct deps_desc): Likewise for fields "last_debug_insn",
3503 (struct haifa_sched_info): Likewise for callback field
3504 "can_schedule_ready_p"'s param, for first param of "new_ready"
3505 callback field, for both params of "rank" callback field, for
3506 first field of "print_insn" callback field (with a const), for
3507 both params of "contributes_to_priority" callback, for param
3508 of "insn_finishes_block_p" callback, for fields "prev_head",
3509 "next_tail", "head", "tail", for first param of "add_remove_insn"
3510 callback, for first param of "begin_schedule_ready" callback, for
3511 both params of "begin_move_insn" callback, and for second param
3512 of "advance_target_bb" callback.
3513 (add_dependence): Likewise for params 1 and 2.
3514 (sched_analyze): Likewise for params 2 and 3.
3515 (deps_analyze_insn): Likewise for param 2.
3516 (ready_element): Likewise for return type.
3517 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3518 (try_ready): Strenghten param from rtx to rtx_insn *.
3519 (sched_emit_insn): Likewise for return type.
3520 (record_delay_slot_pair): Likewise for params 1 and 2.
3521 (add_delay_dependencies): Likewise for param.
3522 (contributes_to_priority): Likewise for both params.
3523 (find_modifiable_mems): Likewise.
3525 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
3526 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
3527 "first_older_only_insn" from rtx to rtx_insn *.
3528 (arm_sched_reorder): Strengthen param "ready" from rtx * to
3531 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3532 "last_scheduled_iter0" from rtx to rtx_insn *.
3533 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3534 (c6x_sched_reorder_1): Strengthen param "ready" and locals
3535 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3536 "insn" from rtx to rtx_insn *.
3537 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3539 (c6x_sched_reorder2): Strengthen param "ready" and locals
3540 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3541 "insn" from rtx to rtx_insn *.
3542 (c6x_variable_issue): Add a checked cast when assigning from insn
3543 to ss.last_scheduled_iter0.
3544 (split_delayed_branch): Strengthen param "insn" and local "i1"
3545 from rtx to rtx_insn *.
3546 (split_delayed_nonbranch): Likewise.
3547 (undo_split_delayed_nonbranch): Likewise for local "insn".
3548 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3549 "entry_after", "end_packet", "head_insn", "tail_insn",
3550 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3551 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3552 to rtx_insn **. Remove now-redundant checked cast on last_insn,
3553 but add a checked cast on loop->start_label. Consolidate calls to
3554 avoid assigning result of gen_spkernel to "insn", now an
3557 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3558 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
3560 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3561 rtx_insn **. Strengthen locals "top", "next" from rtx to
3563 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3564 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3565 (add_parameter_dependencies): Strengthen params "call", "head" and
3566 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3567 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3568 (add_dependee_for_func_arg): Likewise for param "arg" and local
3570 (ix86_dependencies_evaluation_hook): Likewise for params "head",
3571 "tail" and locals "insn", "first_arg".
3573 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3574 for params "head", "tail" and locals "insn", "next", "next_tail".
3575 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3576 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3577 "insn", "lowest", "highest" from rtx to rtx_insn *.
3578 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3580 (ia64_sched_reorder2): Likewise.
3582 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3583 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
3584 from rtx * to rtx_insn **.
3585 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3587 (mep_print_sched_insn): Strengthen param "insn" from rtx to
3589 (mep_sched_reorder): Strengthen param "ready" from rtx * to
3590 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
3593 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3594 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
3596 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3597 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
3598 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3600 (vr4130_reorder): Likewise.
3601 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
3603 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3605 (mips_sched_reorder): Likewise.
3606 (mips_sched_reorder2): Likewise.
3608 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3610 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3611 Strengthen local "tmp" from rtx to rtx_insn *.
3612 (rs6000_sched_reorder2): Likewise.
3614 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3615 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3616 (s390_sched_reorder): Strengthen param "ready" from rtx * to
3617 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
3619 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3620 "tmp2" from rtx to rtx_insn *.
3621 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3622 Strengthen local "insn" from rtx to rtx_insn *.
3623 (ready_reorder): Strengthen param "ready" from rtx * to
3624 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3625 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
3626 (sh_reorder2): Likewise.
3628 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
3629 local "insn" from rtx to rtx_insn *.
3631 * haifa-sched.c (note_list): Strengthen this variable from rtx to
3633 (scheduled_insns): Strengthen this variable from vec<rtx> to
3635 (set_modulo_params): Likewise for locals "i1", "i2".
3636 (record_delay_slot_pair): Likewise for params "i1", "i2".
3637 (add_delay_dependencies): Likewise for param "insn".
3638 (cond_clobbered_p): Likewise.
3639 (recompute_todo_spec): Likewise for local "prev".
3640 (last_scheduled_insn): Likewise for this variable.
3641 (nonscheduled_insns_begin): Likewise.
3642 (model_set_excess_costs): Strengthen param "insns" from rtx * to
3644 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3646 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3647 Strengthen local "insn" from rtx to rtx_insn *.
3648 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3649 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3650 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3651 (ready_remove_first): Likewise for return type and local "t".
3652 (ready_element): Likewise for return type.
3653 (ready_remove): Likewise for return type and local "t".
3654 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3655 (check_clobbered_conditions): Strengthen local "x" from rtx to
3656 rtx_insn *, adding a checked cast.
3657 (schedule_insn): Likewise for param "insn".
3658 (remove_notes): Likewise for params "head", "tail" and locals
3659 "next_tail", "insn", "next".
3660 (struct haifa_saved_data): Likewise for fields
3661 "last_scheduled_insn", "nonscheduled_insns_begin".
3662 (save_backtrack_point): Update for change to field "vec" of
3664 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3666 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
3667 from rtx to rtx_insn *
3668 (resolve_dependencies): Strengthen param "insn" from rtx to
3670 (restore_other_notes): Likewise for return type, for param "head"
3671 and local "note_head".
3672 (undo_all_replacements): Likewise for local "insn".
3673 (first_nonscheduled_insn): Likewise for return type and local "insn".
3674 (queue_to_ready): Likewise for local "insn", adding checked casts.
3675 (early_queue_to_ready): Likewise for local "insn".
3676 (debug_ready_list_1): Strengthen local "p" from rtx * to
3678 (move_insn): Strengthen param "insn" and local "note" from rtx to
3680 (insn_finishes_cycle_p): Likewise for param "insn".
3681 (max_issue): Likewise for local "insn".
3682 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
3684 (commit_schedule): Strengthen param "prev_head" and local "insn"
3685 from rtx to rtx_insn *
3686 (prune_ready_list): Likewise for local "insn".
3687 (schedule_block): Likewise for locals "prev_head", "head", "tail",
3688 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3689 (set_priorities): Likewise for local "prev_head".
3690 (try_ready): Likewise for param "next".
3691 (fix_tick_ready): Likewise.
3692 (change_queue_index): Likewise.
3693 (sched_extend_ready_list): Update for change to field "vec" of
3695 (generate_recovery_code): Strengthen param "insn" from rtx to
3697 (begin_speculative_block): Likewise.
3698 (create_check_block_twin): Likewise for param "insn" and locals
3699 "label", "check", "twin". Introduce local "check_pat" to avoid
3700 "check" being used as a plain rtx before being used as an insn.
3701 (fix_recovery_deps): Add a checked cast to rtx_insn * when
3702 extracting elements from ready_list.
3703 (sched_remove_insn): Strengthen param "insn" from rtx to
3705 (sched_emit_insn): Likewise for return type.
3706 (ready_remove_first_dispatch): Likewise for return type and local
3709 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3711 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3714 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3715 from rtx to rtx_insn *.
3716 (add_dependence_list): Likewise for param "insn". Add a checked
3718 (add_dependence_list_and_free): Strengthen param "insn" from rtx
3719 to rtx_insn *. Strengthen param "list_p" from rtx * to
3721 (chain_to_prev_insn): Strengthen param "insn" and locals
3722 "prec_nonnote", "i" from rtx to rtx_insn *.
3723 (flush_pending_lists): Likewise for param "insn".
3724 (cur_insn): Likewise for this variable.
3725 (haifa_start_insn): Add a checked cast.
3726 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3727 (sched_analyze_reg): Likewise for param "insn".
3728 (sched_analyze_1): Likewise.
3729 (sched_analyze_2): Likewise. Add checked casts.
3730 (sched_analyze_insn): Likewise. Also for local "prev".
3731 (deps_analyze_insn): Likewise for param "insn".
3732 (sched_analyze): Likewise for params "head", "tail" and local "insn".
3733 (add_dependence_1): Likewise for params "insn", "elem".
3734 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3735 (parse_add_or_inc): Likewise for param "insn".
3736 (find_inc): Likewise for local "inc_cand".
3737 (find_modifiable_mems): Likewise for params "head", "tail" and
3738 locals "insn", "next_tail".
3740 * sched-ebb.c (init_ready_list): Likewise for local "insn".
3741 (begin_schedule_ready): Likewise for param "insn".
3742 (begin_move_insn): Likewise for params "insn" and "last".
3743 (ebb_print_insn): Strengthen param "insn" from const_rtx to
3745 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3746 (ebb_contributes_to_priority): Likewise for params "next", "insn".
3747 (ebb_add_remove_insn): Likewise for param "insn".
3748 (advance_target_bb): Likewise.
3750 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3752 (check_live): Likewise for param "insn".
3753 (init_ready_list): Likewise for local "insn".
3754 (can_schedule_ready_p): Likewise for param "insn".
3755 (begin_schedule_ready): Likewise.
3756 (new_ready): Likewise for param "next".
3757 (rgn_print_insn): Likewise for param "insn".
3758 (rgn_rank): Likewise for params "insn1", "insn2".
3759 (contributes_to_priority): Likewise for params "next", "insn".
3760 (rgn_insn_finishes_block_p): Likewise for param "insn".
3761 (add_branch_dependences): Likewise for params "head", "tail" and
3762 locals "insn", "last".
3763 (rgn_add_remove_insn): Likewise for param "insn".
3764 (advance_target_bb): Likewise.
3766 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3767 const_rtx to const rtx_insn *.
3769 * sel-sched-dump.h (sel_print_insn): Likewise.
3771 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3772 (deps_init_id): Likewise.
3774 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3775 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3778 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3780 * output.h (final_start_function): Strengthen param 1 from rtx to
3783 * final.c (final_start_function): Likewise, renaming back from
3784 "uncast_first" to "first", and dropping the checked cast from rtx
3787 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3789 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3790 * final.c (final): Likewise. Rename param back from
3791 "uncast_first" to "first" and eliminate the checked cast from rtx
3794 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3796 * output.h (shorten_branches): Strengthen param from rtx to
3799 * final.c (shorten_branches): Likewise, renaming param back from
3800 "uncast_first" to "first", and dropping the checked cast from rtx
3803 * genattr.c (gen_attr): Likewise when writing out the prototype of
3806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3808 * sched-int.h (struct haifa_sched_info): Strengthen fields
3809 "prev_head" and "next_tail" from rtx to rtx_insn *.
3811 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3813 * rtl.h (rtx_jump_table_data::get_labels): New method.
3814 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3815 with use of the new rtx_jump_table_data::get_labels method.
3816 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3817 to rtx_jump_table_data *. Simplify by using get_labels method.
3818 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3819 a dyn_cast, introducing local "table", using it to replace
3820 label-lookup logic with a get_labels method call.
3821 (patch_jump_insn): Simplify using get_labels method.
3822 * dwarf2cfi.c (create_trace_edges): Likewise.
3823 * rtlanal.c (label_is_jump_target_p): Likewise.
3825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3827 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3830 * emit-rtl.c (unshare_all_rtl_1): Likewise.
3831 (unshare_all_rtl_again): Likewise, also for local "p".
3833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3835 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3837 * cfgrtl.c (delete_insn_and_edges): Likewise.
3839 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3841 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3842 from rtx to rtx_insn *.
3844 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3846 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3848 * function.c (thread_prologue_and_epilogue_insns): Likewise for
3849 locals "returnjump", "epilogue_end", "insn", "next".
3851 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3852 "returnjump" from rtx * to rtx_insn **.
3853 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3857 * basic-block.h (struct edge_def). Strengthen "r" within
3858 union edge_def_insns from rtx to rtx_insn *.
3860 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3861 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
3863 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3864 from rtx to rtx_insn *.
3865 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3867 * postreload-gcse.c (reg_killed_on_edge): Likewise.
3868 (reg_used_on_edge): Likewise.
3869 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3870 (gt_pch_nx): New overload for rtx_insn *&.
3871 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3872 from rtx to rtx_insn *.
3874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3876 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3877 from rtx to rtx_insn *.
3878 (BB_FOOTER): Replace function with access macro.
3879 (SET_BB_FOOTER): Delete.
3881 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3883 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3884 (emit_barrier_after_bb): Likewise.
3885 (record_effective_endpoints): Likewise.
3886 (relink_block_chain): Likewise.
3887 (fixup_fallthru_exit_predecessor): Likewise.
3888 (cfg_layout_duplicate_bb): Likewise.
3889 (cfg_layout_split_block): Likewise.
3890 (cfg_layout_delete_block): Likewise.
3891 (cfg_layout_merge_blocks): Likewise.
3892 (BB_FOOTER): Delete function.
3893 (SET_BB_FOOTER): Delete function.
3894 * combine.c (update_cfg_for_uncondjump): Replace uses of
3895 SET_BB_FOOTER with BB_FOOTER.
3897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3899 * except.h (struct eh_landing_pad_d): Strengthen field
3900 "landing_pad" from rtx to rtx_code_label *.
3902 * except.c (sjlj_emit_dispatch_table): Likewise for param
3904 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3908 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3909 first param from rtx to rtx_insn *.
3910 * config/xtensa/xtensa.c (struct machine_function): Likewise for
3911 field "set_frame_ptr_insn".
3912 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3913 "csend" from rtx to rtx_code_label *.
3914 (xtensa_expand_atomic): Likewise for local "csloop".
3915 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3917 (xtensa_call_tls_desc): Likewise for return type and locals
3918 "call_insn", "insns".
3919 (xtensa_legitimize_tls_address): Likewise for local "insns".
3920 (xtensa_expand_prologue): Likewise for locals "insn", "first".
3922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3924 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3925 first param from rtx to rtx_insn *.
3926 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3931 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3932 Strengthen param 1 from rtx to rtx_insn *.
3933 (tilepro_output_cbranch): Likewise.
3934 (tilepro_adjust_insn_length): Likewise.
3935 (tilepro_final_prescan_insn): Likewise for sole param.
3937 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3938 Likewise for local "last".
3939 (cbranch_predicted_p): Likewise for param "insn".
3940 (tilepro_output_simple_cbranch_with_opcode): Likewise.
3941 (tilepro_output_cbranch_with_opcode): Likewise.
3942 (tilepro_output_cbranch): Likewise.
3943 (frame_emit_load): Likewise for return type and locals "seq",
3945 (emit_sp_adjust): Likewise for return type and local "insn".
3946 (tilepro_expand_epilogue): Likewise for locals "last_insn",
3948 (tilepro_adjust_insn_length): Likewise for param "insn".
3949 (next_insn_to_bundle): Likewise for return type and params
3951 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3952 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3954 (match_addli_pcrel): Likewise for param "insn".
3955 (replace_addli_pcrel): Likewise.
3956 (match_auli_pcrel): Likewise.
3957 (replace_auli_pcrel): Likewise.
3958 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3960 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3961 "queue", "next_queue", "prev".
3962 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3963 (tilepro_final_prescan_insn): Likewise for param "insn".
3965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3967 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3968 Strengthen param 1 from rtx to rtx_insn *.
3969 (tilegx_output_cbranch): Likewise.
3970 (tilegx_adjust_insn_length): Likewise.
3971 (tilegx_final_prescan_insn): Likewise for sole param.
3973 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3975 (cbranch_predicted_p): Likewise for param "insn".
3976 (tilegx_output_simple_cbranch_with_opcode): Likewise.
3977 (tilegx_output_cbranch_with_opcode): Likewise.
3978 (tilegx_output_cbranch): Likewise.
3979 (frame_emit_load): Likewise for return type.
3980 (set_frame_related_p): Likewise for locals "seq", "insn".
3981 (emit_sp_adjust): Likewise for return type, and for local "insn".
3982 Introduce local "pat" for use in place of "insn" where the latter
3983 isn't an instruction.
3984 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3985 from rtx to rtx_insn *.
3986 (tilegx_adjust_insn_length): Likewise for param "insn".
3987 (next_insn_to_bundle): Likewise for return type and params "r" and
3989 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3991 (replace_insns): Likewise for params "old_insn", "new_insns".
3992 (replace_mov_pcrel_step1): Likewise for param "insn" and local
3994 (replace_mov_pcrel_step2): Likewise.
3995 (replace_mov_pcrel_step3): Likewise.
3996 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3998 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3999 "queue", "next_queue", "prev".
4000 (tilegx_output_mi_thunk): Likewise for local "insn".
4001 (tilegx_final_prescan_insn): Likewise for param "insn".
4003 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4005 * config/spu/spu.c (frame_emit_store): Strengthen return type from
4007 (frame_emit_load): Likewise.
4008 (frame_emit_add_imm): Likewise, also for local "insn".
4009 (spu_expand_prologue): Likewise for local "insn".
4010 (struct spu_bb_info): Likewise for field "prop_jump".
4011 (emit_nop_for_insn): Likewise for param "insn" and local
4013 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4015 (spu_emit_branch_hint): Likewise for params "before", "branch" and
4016 locals "hint", "insn".
4017 (get_branch_target): Likewise for param "branch".
4018 (insn_clobbers_hbr): Likewise for param "insn".
4019 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4020 locals "insn", "before_4", "before_16".
4021 (insert_hbrp): Likewise for local "insn".
4022 (spu_machine_dependent_reorg): Likewise for locals "branch",
4023 "insn", "next", "bbend".
4024 (uses_ls_unit): Likewise for param "insn".
4025 (get_pipe): Likewise.
4026 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4027 introducing a checked cast.
4028 (spu_sched_adjust_cost): Likewise for params "insn" and
4030 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4031 (spu_sms_res_mii): Likewise.
4033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4035 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4036 from rtx to rtx_insn *.
4037 (output_cbranch): Likewise for param 6.
4038 (output_return): Likewise for param 1.
4039 (output_sibcall): Likewise.
4040 (output_v8plus_shift): Likewise.
4041 (output_v8plus_mult): Likewise.
4042 (output_v9branch): Likewise for param 7.
4043 (output_cbcond): Likewise for param 3.
4045 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4047 (sparc_legitimize_pic_address): Likewise.
4048 (sparc_emit_call_insn): Likewise.
4049 (emit_save_or_restore_regs): Likewise.
4050 (emit_window_save): Likewise for return type and local "insn".
4051 (sparc_expand_prologue): Likewise for local "insn".
4052 (sparc_flat_expand_prologue): Likewise.
4053 (output_return): Likewise for param "insn".
4054 (output_sibcall): Likewise for param "insn" and local "delay".
4055 (output_ubranch): Likewise for param "insn".
4056 (output_cbranch): Likewise.
4057 (output_cbcond): Likewise.
4058 (output_v9branch): Likewise.
4059 (output_v8plus_shift): Likewise.
4060 (sparc_output_mi_thunk): Likewise for local "insn".
4061 (get_some_local_dynamic_name): Likewise.
4062 (output_v8plus_mult): Likewise for param "insn".
4064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4066 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4067 from rtx to rtx_insn *.
4068 (output_branchy_insn): Likewise for param 3.
4069 (output_far_jump): Likewise for param 1.
4070 (final_prescan_insn): Likewise.
4071 (sh_insn_length_adjustment): Likewise for sole param.
4073 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4074 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4076 (sh_emit_compare_and_set): Likewise for local "lab".
4077 (output_far_jump): Strengthen param "insn" and local "prev" from
4079 (output_branchy_insn): Likewise for param "insn" and local
4081 (output_ieee_ccmpeq): Likewise for param "insn".
4082 (struct label_ref_list_d): Strengthen field "label" from rtx to
4084 (pool_node): Likewise.
4085 (pool_window_label): Likewise for this global.
4086 (add_constant): Likewise for return type and locals "lab", "new_rtx".
4087 (dump_table): Strengthen params "start", "barrier" and local
4088 "scan" from rtx to rtx_insn *.
4089 (broken_move): Likewise for param "insn".
4090 (untangle_mova): Likewise for params "first_mova" and "new_mova".
4091 Strengthen param "first_mova" from rtx * to rtx_insn **.
4092 (mova_p): Likewise for param "insn".
4093 (fixup_mova): Likewise for param "mova".
4094 (find_barrier): Likewise for return type, params "mova" and
4095 "from", and locals "barrier_before_mova", "found_barrier",
4096 "good_barrier", "orig", "last_symoff", "next". Strengthen local
4097 "label" from rtx to rtx_code_label *.
4098 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4100 (sh_reorg): Likewise for locals "link", "scan", "barrier".
4101 (split_branches): Likewise for param "first" and local "insn".
4102 (final_prescan_insn): Likewise for param "insn".
4103 (sequence_insn_p): Likewise for locals "prev", "next".
4104 (sh_insn_length_adjustment): Likewise for param "insn".
4105 (sh_can_redirect_branch): Likewise for local "insn".
4106 (find_r0_life_regions): Likewise for locals "end", "insn".
4107 (sh_output_mi_thunk): Likewise for local "insns".
4109 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4111 * config/score/score.c (score_output_mi_thunk): Strengthen local
4112 "insn" from rtx to rtx_insn *.
4113 (score_prologue): Likewise.
4115 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4117 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4118 1 from rtx to rtx_insn *.
4119 (s390_emit_jump): Likewise for return type.
4120 (s390_emit_call): Likewise.
4121 (s390_load_got): Likewise.
4123 * config/s390/s390.c (last_scheduled_insn): Likewise for this
4125 (s390_match_ccmode): Likewise for param "insn".
4126 (s390_emit_jump): Likewise for return type.
4127 (s390_split_branches): Likewise for local "label".
4128 (struct constant): Strengthen field "label" from rtx to
4130 (struct constant_pool): Likewise for field "label". Strengthen
4131 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4133 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4135 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4136 (s390_end_pool): Likewise.
4137 (s390_dump_pool): Likewise for local "insn".
4138 (s390_mainpool_start): Likewise.
4139 (s390_chunkify_start): Likewise.
4140 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4141 with insns. Strengthen locals "label", "jump", "barrier", "next",
4142 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4143 (s390_chunkify_finish): Strengthen local "insn" from rtx to
4145 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4146 "jump", "label", "next_insn".
4147 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4148 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4150 (s390_load_got): Likewise for return type and local "insns".
4151 (s390_save_gprs_to_fprs): Likewise for local "insn".
4152 (s390_restore_gprs_from_fprs): Likewise.
4153 (pass_s390_early_mach::execute): Likewise.
4154 (s390_emit_prologue): Likewise for local "insns".
4155 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4157 (s390_emit_call): Strengthen return type and local "insn" from
4159 (s390_emit_tpf_eh_return): Likewise for local "insn".
4160 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4161 "next_insn", introducing locals "s_pat", "rpat" to allow this.
4162 (s390_fix_long_loop_prediction): Likewise for param "insn" and
4164 (s390_non_addr_reg_read_p): Likewise for param "insn".
4165 (find_cond_jump): Likewise for return type and param "insn".
4166 (s390_swap_cmp): Likewise for param "insn".
4167 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4168 "prev_insn", "next_insn".
4169 (s390_reorg): Likewise for locals "insn", "target".
4170 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4171 (s390_sched_variable_issue): For now, rename param "insn" to
4172 "uncast_insn", introducing a checked cast.
4173 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4175 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4176 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
4178 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4180 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4181 param from rtx to rtx_insn *.
4182 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4184 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4186 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4187 4 from rtx to rtx_insn *.
4188 (rs6000_final_prescan_insn): Likewise for first param.
4189 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4191 (rs6000_get_some_local_dynamic_name): Likewise.
4192 (output_cbranch): Likewise for param "insn".
4193 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4194 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4195 (rs6000_emit_allocate_stack): Likewise for local "insn".
4196 (load_cr_save): Likewise.
4197 (restore_saved_cr): Likewise.
4198 (restore_saved_lr): Likewise.
4199 (emit_cfa_restores): Likewise.
4200 (rs6000_output_function_epilogue): Likewise for locals "insn" and
4201 "deleted_debug_label".
4202 (rs6000_output_mi_thunk): Likewise for local "insn".
4203 (rs6000_final_prescan_insn): Likewise for param "insn".
4205 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4207 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4208 Strengthen param "insn" from rtx to rtx_insn *.
4209 * config/picochip/picochip.c (picochip_current_prescan_insn):
4210 Likewise for this variable.
4211 (picochip_final_prescan_insn): Likewise for param "insn".
4213 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4215 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4216 from rtx to rtx_insn *.
4217 (pa_output_indirect_call): Likewise.
4218 (pa_adjust_insn_length): Likewise.
4219 (pa_attr_length_millicode_call): Likewise.
4220 (pa_attr_length_call): Likewise.
4221 (pa_attr_length_indirect_call): Likewise.
4223 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4225 (pa_attr_length_millicode_call): Likewise.
4226 (pa_attr_length_call): Likewise.
4227 (pa_output_call): Likewise.
4228 (pa_attr_length_indirect_call): Likewise.
4229 (pa_output_indirect_call): Likewise.
4231 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4233 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4234 Strengthen first param from rtx to rtx_insn *.
4235 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4238 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4240 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
4241 type from rtx to rtx_insn *.
4242 (mips_expand_call): Likewise.
4243 (mips_adjust_insn_length): Likewise for first param.
4244 (mips_output_conditional_branch): Likewise.
4245 (mips_output_order_conditional_branch): Likewise.
4246 (mips_final_prescan_insn): Likewise.
4248 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
4249 rtx_insn * for the SEQUENCE case.
4250 (SEQ_END): Likewise.
4251 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
4252 (mips_emit_call_insn): Likewise, also for local "insn".
4253 (mips16_gp_pseudo_reg): Likewise for local "scan".
4254 (mips16_build_call_stub): Likewise for return type and for local
4255 "insn". Introduce a new local "pattern" so that "insn" can indeed
4257 (mips_expand_call): Strengthen return type and local "insn" from
4259 (mips_block_move_loop): Strengthen local "label" from rtx to
4261 (mips_expand_synci_loop): Likewise for locals "label",
4263 (mips_set_frame_expr): Strengthen local "insn" from rtx to
4265 (mips16e_collect_argument_saves): Likewise for locals "insn",
4267 (mips_find_gp_ref): Likewise for param of callback for "pred"
4268 param, and for local "insn".
4269 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
4270 (mips_insn_has_flexible_gp_ref_p): Likewise.
4271 (mips_epilogue_emit_cfa_restores): Likewise for return type and
4273 (mips_epilogue_set_cfa): Likewise for local "insn".
4274 (mips_expand_epilogue): Likewise.
4275 (mips_adjust_insn_length): Likewise for param "insn".
4276 (mips_output_conditional_branch): Likewise.
4277 (mips_output_order_conditional_branch): Likewise.
4278 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
4279 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
4280 "falu2_turn_enabled_insn".
4281 (mips_builtin_branch_and_move): Strengthen locals "true_label",
4282 "done_label" from rtx to rtx_code_label *.
4283 (struct mips16_constant): Likewise for field "label".
4284 (mips16_add_constant): Likewise for return type.
4285 (mips16_emit_constants_1): Strengthen return type and param "insn"
4286 from rtx to rtx_insn *.
4287 (mips16_emit_constants): Likewise for param "insn".
4288 (mips16_insn_length): Likewise.
4289 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
4290 to rtx_code_label *.
4291 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
4292 from rtx to rtx_insn *.
4293 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
4294 "jump". Strengthen local "label" from rtx to rtx_code_label *.
4295 (r10k_simplify_address): Strengthen param "insn" and local
4296 "def_insn" from rtx to rtx_insn *.
4297 (r10k_safe_address_p): Strengthen param "insn" from rtx to
4299 (r10k_needs_protection_p_1): Update target type of cast of data
4300 from to rtx to rtx_insn *.
4301 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
4302 rtx * to rtx_insn **.
4303 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
4305 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
4306 (mips_call_expr_from_insn): Likewise for param "insn".
4307 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
4308 (mips_find_pic_call_symbol): Likewise for param "insn".
4309 (mips_annotate_pic_calls): Likewise for local "insn".
4310 (mips_sim_insn): Likewise for this variable.
4311 (struct mips_sim): Likewise for field "insn" within elements of
4313 (mips_sim_wait_reg): Likewise for param "insn".
4314 (mips_sim_wait_regs): Likewise.
4315 (mips_sim_wait_units): Likewise.
4316 (mips_sim_wait_insn): Likewise.
4317 (mips_sim_issue_insn): Likewise.
4318 (mips_sim_finish_insn): Likewise.
4319 (mips_seq_time): Likewise for param "seq" and local "insn".
4320 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4321 locals "first", "second".
4322 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4323 "last", "last2", "next".
4324 (mips_avoid_hazard): Likewise for params "after", "insn".
4325 (mips_reorg_process_insns): Likewise for locals "insn",
4326 "last_insn", "subinsn", "next_insn".
4327 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4328 (mips16_split_long_branches): Likewise for locals "insn" "jump",
4330 (mips_output_mi_thunk): Likewise for local "insn".
4331 (mips_final_prescan_insn): Likewise for param "insn".
4333 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4335 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4336 Strengthen return type and local "insns" from rtx to rtx_insn *.
4337 (microblaze_legitimize_tls_address): Likewise for local "insns".
4338 (microblaze_block_move_loop): Strengthen local "label" from rtx
4339 to rtx_code_label *.
4340 (microblaze_expand_prologue): Strengthen two locals named "insn"
4341 from rtx to rtx_insn *.
4342 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4343 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4344 "insn". Strengthen locals "div_label", "div_end_label" from rtx
4345 to rtx_code_label *.
4347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4349 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4350 param from rtx to rtx_insn *.
4351 (mep_reuse_lo): Likewise for third param.
4352 (mep_use_post_modify_p): Likewise for first param.
4353 (mep_core_address_length): Likewise.
4354 (mep_cop_address_length): Likewise.
4355 (mep_final_prescan_insn): Likewise.
4356 (mep_store_data_bypass_p): Likewise for both params.
4357 (mep_mul_hilo_bypass_p): Likewise.
4358 (mep_ipipe_ldc_p): Likewise for param.
4360 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
4361 (mep_rewrite_mult): Likewise.
4362 (mep_rewrite_mulsi3): Likewise.
4363 (mep_rewrite_maddsi3): Likewise.
4364 (mep_reuse_lo_p_1): Likewise.
4365 (mep_reuse_lo_p): Likewise.
4366 (mep_frame_expr): Likewise.
4367 (mep_make_parallel): Likewise for both params.
4368 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
4370 (mep_use_post_modify_p): Likewise for param "insn".
4371 (mep_core_address_length): Likewise.
4372 (mep_cop_address_length): Likewise.
4373 (mep_reg_set_in_function): Likewise for local "insn".
4374 (mep_asm_without_operands_p): Likewise.
4375 (F): Likewise for return type and param "x".
4376 (add_constant): Likewise for local "insn".
4377 (maybe_dead_move): Likewise for return type and local "insn".
4378 (mep_expand_prologue): Likewise for local "insn".
4379 (mep_final_prescan_insn): Likewise for param "insn".
4380 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
4381 "next", "follow", "x".
4382 (mep_insert_repeat_label_last): Likewise for return type, param
4383 "last_insn", and locals "next", "prev". Strengthen param "label"
4384 from rtx to rtx_code_label *.
4385 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
4387 (struct mep_doloop_end): Likewise for fields "insn" and
4389 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
4390 Strengthen local "repeat_label" from rtx to rtx_code_label *.
4391 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
4393 (mep_invert_branch): Likewise for params "insn" and "after".
4394 (mep_reorg_erepeat): Likewise for param "insns" and locals
4395 "insn", "prev", "new_last", "barrier", "user". Strengthen local
4396 "l" from rtx to rtx_code_label *.
4397 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
4398 from rtx to rtx_insn *.
4399 (mep_reorg_addcombine): Likewise for param "insns" and locals
4401 (add_sp_insn_p): Likewise for param "insn".
4402 (mep_reorg_noframe): Likewise for param "insns" and locals
4403 "start_frame_insn", "end_frame_insn", "next".
4404 (mep_reorg): Likewise for local "insns".
4405 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
4407 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
4408 (mep_mul_hilo_bypass_p): Likewise.
4409 (mep_ipipe_ldc_p): Likewise for param "insn".
4410 (mep_make_bundle): Likewise for return type, param "cop" and local
4411 "insn", splitting out the latter into a new local "seq" for when it
4412 is a SEQUENCE rather than an insn.
4413 (core_insn_p): Likewise for param "insn".
4414 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4415 "last", "first", "note", "prev", "core_insn".
4417 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4419 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4421 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4422 (m68k_final_prescan_insn): Likewise for first param.
4424 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4425 (m68k_set_frame_related): Likewise for param "insn".
4426 (output_btst): Likewise for param "insn".
4427 (m68k_final_prescan_insn): Likewise.
4428 (m68k_move_to_reg): Likewise for local "insn".
4429 (m68k_call_tls_get_addr): Likewise for local "insns".
4430 (m68k_call_m68k_read_tp): Likewise.
4431 (strict_low_part_peephole_ok): Likewise for param "first_insn".
4432 (m68k_output_mi_thunk): Likewise for local "insn".
4434 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4436 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4437 first param from rtx to rtx_insn *.
4438 (iq2000_adjust_insn_length): Likewise.
4439 (iq2000_output_conditional_branch): Likewise.
4440 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4441 "insn" and local "nop_insn".
4442 (iq2000_annotate_frame_insn): Likewise for param "insn".
4443 (iq2000_expand_prologue): Likewise for both locals "insn".
4444 (iq2000_adjust_insn_length): Likewise for param "insn".
4445 (iq2000_output_conditional_branch): Likewise.
4447 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4449 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4450 "insns" from rtx to rtx_insn *.
4451 (ia64_emit_cond_move): Likewise for locals "insn", "first".
4452 (struct spill_fill_data): Likewise for field "init_after" and for
4453 elements of array field "prev_insn".
4454 (spill_restore_mem): Likewise for locals "insn", "first".
4455 (do_spill): Likewise for local "insn".
4456 (do_restore): Likewise.
4457 (ia64_expand_prologue): Likewise.
4458 (ia64_expand_epilogue): Likewise.
4459 (emit_insn_group_barriers): Likewise for locals "insn",
4461 (emit_all_insn_group_barriers): Likewise for locals "insn",
4463 (dfa_stop_insn): Likewise for this global.
4464 (dfa_pre_cycle_insn): Likewise.
4465 (ia64_nop): Likewise.
4466 (final_emit_insn_group_barriers): Likewise for locals "insn",
4468 (emit_predicate_relation_info): Likewise for locals "head", "n",
4470 (ia64_reorg): Likewise for local "insn".
4471 (ia64_output_mi_thunk): Likewise.
4472 (expand_vec_perm_interleave_2): Likewise for local "seq".
4474 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4476 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4477 param 1 "insn" from rtx to rtx_insn *.
4478 (ix86_use_lea_for_mov): Likewise.
4479 (ix86_avoid_lea_for_addr): Likewise.
4480 (ix86_split_lea_for_addr): Likewise.
4481 (ix86_lea_for_add_ok): Likewise.
4482 (ix86_output_call_insn): Likewise.
4484 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4485 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4486 (ix86_output_function_epilogue): Likewise for locals "insn",
4487 "deleted_debug_label".
4488 (legitimize_tls_address): Likewise for local "insn".
4489 (get_some_local_dynamic_name): Likewise.
4490 (increase_distance): Likewise for params "prev", "next".
4491 (distance_non_agu_define_in_bb): Likewise for params "insn",
4492 "start" and locals "prev", "next".
4493 (distance_non_agu_define): Likewise for param "insn".
4494 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4495 locals "next", "prev".
4496 (distance_agu_use): Likewise for param "insn".
4497 (ix86_lea_outperforms): Likewise.
4498 (ix86_ok_to_clobber_flags): Likewise.
4499 (ix86_avoid_lea_for_add): Likewise.
4500 (ix86_use_lea_for_mov): Likewise.
4501 (ix86_avoid_lea_for_addr): Likewise.
4502 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4503 (ix86_split_lea_for_addr): Likewise for param "insn".
4504 (ix86_lea_for_add_ok): Likewise for param "insn".
4505 (ix86_expand_carry_flag_compare): Likewise for local
4507 (ix86_expand_int_movcc): Likewise.
4508 (ix86_output_call_insn): Likewise for param "insn".
4509 (ix86_output_call_insn): Likewise for local "i".
4510 (x86_output_mi_thunk): Introduce local "insn", using it in place
4511 of "tmp" when dealing with insns.
4512 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4514 (ix86_pad_returns): Likewise for locals "ret", "prev".
4515 (ix86_count_insn_bb): Likewise for local "insn".
4516 (ix86_pad_short_function): Likewise for locals "ret", "insn".
4517 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4518 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4519 (expand_vec_perm_interleave2): Likewise for local "seq".
4520 (expand_vec_perm_vperm2f128_vblend): Likewise.
4521 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
4522 call to for_each_rtx with for_each_rtx_in_insn.
4524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4526 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4527 "label" from rtx to rtx_code_label *.
4528 (ix86_expand_prologue): Likewise.
4529 (ix86_expand_split_stack_prologue): Likewise for locals "label",
4531 (ix86_split_idivmod): Likewise for locals "end_label" and
4533 (ix86_expand_branch): Likewise for local "label2".
4534 (ix86_expand_aligntest): Likewise for return type and local "label".
4535 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4537 (expand_movmem_epilogue): Likewise for the various locals named
4539 (expand_setmem_epilogue): Likewise.
4540 (expand_small_movmem_or_setmem): Likewise for local "label".
4541 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4542 Strengthen param "done_label" from rtx * to rtx_code_label **.
4543 Strengthen locals "loop_label" and "label" from rtx to
4545 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4546 Likewise for locals "loop_label", "label".
4547 (ix86_expand_set_or_movmem): Likewise for locals "label",
4548 "jump_around_label", "hot_label".
4549 (ix86_expand_strlensi_unroll_1): Likewise for locals
4550 "align_2_label", align_3_label", "align_4_label", "end_0_label",
4552 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4553 (void ix86_emit_i387_log1p): Likewise for locals "label1",
4554 "label2", "jump_label".
4555 (ix86_expand_sse_compare_and_jump): Likewise for return type and
4557 (ix86_expand_lfloorceil): Likewise for local "label".
4558 (ix86_expand_rint): Likewise.
4559 (ix86_expand_floorceildf_32): Likewise.
4560 (ix86_expand_floorceil): Likewise.
4561 (ix86_expand_rounddf_32): Likewise.
4562 (ix86_expand_trunc): Likewise.
4563 (ix86_expand_truncdf_32): Likewise.
4564 (ix86_expand_round): Likewise.
4566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4568 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4569 first param from rtx to rtx_insn *.
4570 (h8300_insn_length_from_table): Likewise.
4571 * config/h8300/h8300.c (F): Likewise for return type and param
4573 (Fpa): Add a checked cast to rtx_insn *.
4574 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4576 (final_prescan_insn): Likewise for param "insn".
4577 (h8300_binary_length): Likewise.
4578 (h8300_insn_length_from_table): Likewise.
4580 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4582 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4583 Strengthen first param "insn" from rtx to rtx_insn *.
4585 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4587 (frame_insn): Likewise for return type. Introduce local "insn"
4588 for use in place of local "x" for use as an rtx_insn *.
4589 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4590 (epiphany_expand_prologue): Likewise for local "insn".
4591 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4592 * config/epiphany/resolve-sw-modes.c
4593 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4596 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4598 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4599 param from rtx to rtx_insn *.
4600 (c6x_final_prescan_insn): Likewise for first param.
4602 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4603 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4604 (c6x_expand_compare): Strengthen local "insns" from rtx to
4606 (c6x_get_unit_specifier): Likewise for param "insn".
4607 (c6x_print_unit_specifier_field): Likewise.
4608 (c6x_final_prescan_insn): Likewise.
4609 (emit_add_sp_const): Likewise for local "insn".
4610 (c6x_expand_prologue): Likewise.
4612 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4614 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4615 param 1 from rtx to rtx_insn *.
4616 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4617 the various locals named "insn".
4618 (expand_epilogue_reg_restore): Likewise.
4619 (frame_related_constant_load): Likewise.
4620 (add_to_reg): Likewise.
4621 (emit_link_insn): Likewise.
4622 (do_link): Likewise.
4623 (expand_interrupt_handler_prologue): Likewise.
4624 (branch_dest): Likewise for param "branch".
4625 (asm_conditional_branch): Likewise for param "insn".
4626 (gen_one_bundle): Likewise for elements of param "slot" and local
4628 (bfin_gen_bundles): Likewise for locals "insn", "next" and
4629 elements of local "slot".
4630 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4631 "queue", "next_queue", "prev".
4632 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4633 (add_sched_insns_for_speculation): Likewise for local "insn".
4635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4637 * config/avr/avr-protos.h (output_movqi): Strengthen first param
4638 from rtx to rtx_insn *.
4639 (output_movhi): Likewise.
4640 (output_movsisf): Likewise.
4641 (avr_out_tstsi): Likewise.
4642 (avr_out_tsthi): Likewise.
4643 (avr_out_tstpsi): Likewise.
4644 (avr_out_compare): Likewise.
4645 (avr_out_compare64): Likewise.
4646 (avr_out_movpsi): Likewise.
4647 (ashlqi3_out): Likewise.
4648 (ashlhi3_out): Likewise.
4649 (ashlsi3_out): Likewise.
4650 (ashrqi3_out): Likewise.
4651 (ashrhi3_out): Likewise.
4652 (ashrsi3_out): Likewise.
4653 (lshrqi3_out): Likewise.
4654 (lshrhi3_out): Likewise.
4655 (lshrsi3_out): Likewise.
4656 (avr_out_ashlpsi3): Likewise.
4657 (avr_out_ashrpsi3): Likewise.
4658 (avr_out_lshrpsi3): Likewise.
4659 (avr_out_fract): Likewise.
4660 (avr_out_sbxx_branch): Likewise.
4661 (avr_out_round): Likewise.
4662 (avr_out_xload): Likewise.
4663 (avr_out_movmem): Likewise.
4664 (adjust_insn_length): Likewise.
4665 (avr_out_lpm): Likewise.
4666 (reg_unused_after): Likewise.
4667 (_reg_unused_after): Likewise.
4668 (avr_jump_mode): Likewise for second param.
4669 (jump_over_one_insn): Likewise for first param.
4670 (avr_final_prescan_insn): Likewise.
4671 (out_shift_with_cnt): Likewise for second param.
4673 * config/avr/avr.c (get_sequence_length): Likewise for param
4674 "insns" and local "insn".
4675 (emit_push_byte): Likewise for local "insn".
4676 (emit_push_sfr): Likewise.
4677 (avr_prologue_setup_frame): Likewise for locals "insn",
4678 "fp_plus_insns", "sp_plus_insns".
4679 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4681 (avr_jump_mode): Likewise for param "insn".
4682 (avr_final_prescan_insn): Likewise.
4683 (avr_find_unused_d_reg): Likewise.
4684 (avr_out_lpm_no_lpmx): Likewise.
4685 (avr_out_lpm): Likewise.
4686 (avr_out_xload): Likewise.
4687 (output_movqi): Likewise.
4688 (output_movhi): Likewise.
4689 (out_movqi_r_mr): Likewise.
4690 (out_movhi_r_mr): Likewise.
4691 (out_movsi_r_mr): Likewise.
4692 (out_movsi_mr_r): Likewise.
4693 (output_movsisf): Likewise.
4694 (avr_out_load_psi): Likewise.
4695 (avr_out_store_psi): Likewise.
4696 (avr_out_movpsi): Likewise.
4697 (out_movqi_mr_r): Likewise.
4698 (avr_out_movhi_mr_r_xmega): Likewise.
4699 (out_movhi_mr_r): Likewise.
4700 (compare_condition): Likewise for param "insn" and local "next".
4701 (compare_sign_p): Likewise for param "insn".
4702 (compare_diff_p): Likewise.
4703 (compare_eq_p): Likewise.
4704 (avr_out_compare): Likewise.
4705 (avr_out_compare64): Likewise.
4706 (avr_out_tsthi): Likewise.
4707 (avr_out_tstpsi): Likewise.
4708 (avr_out_tstsi): Likewise.
4709 (out_shift_with_cnt): Likewise.
4710 (ashlqi3_out): Likewise.
4711 (ashlhi3_out): Likewise.
4712 (avr_out_ashlpsi3): Likewise.
4713 (ashlsi3_out): Likewise.
4714 (ashrqi3_out): Likewise.
4715 (ashrhi3_out): Likewise.
4716 (avr_out_ashrpsi3): Likewise.
4717 (ashrsi3_out): Likewise.
4718 (lshrqi3_out): Likewise.
4719 (lshrhi3_out): Likewise.
4720 (avr_out_lshrpsi3): Likewise.
4721 (lshrsi3_out): Likewise.
4722 (avr_out_fract): Likewise.
4723 (avr_out_round): Likewise.
4724 (avr_adjust_insn_length): Likewise.
4725 (reg_unused_after): Likewise.
4726 (_reg_unused_after): Likewise.
4727 (avr_compare_pattern): Likewise.
4728 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4729 and locals "branch1", "branch2", "insn2", "jump".
4730 (avr_reorg): Likewise for local "insn".
4731 (avr_2word_insn_p): Likewise for param "insn".
4732 (jump_over_one_insn_p): Likewise.
4733 (avr_out_sbxx_branch): Likewise.
4734 (avr_out_movmem): Likewise.
4736 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4738 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4739 param from rtx to rtx_insn *.
4740 (thumb1_final_prescan_insn): Likewise.
4741 (thumb2_final_prescan_insn): Likewise.
4743 * config/arm/arm.c (emit_set_insn): Strengthen return type from
4745 (struct minipool_node): Likewise for field "insn".
4746 (dump_minipool): Likewise for param "scan".
4747 (create_fix_barrier): Likewise for local "from". Strengthen local
4748 "label" from rtx to rtx_code_label *.
4749 (push_minipool_barrier): Strengthen param "insn" from rtx to
4751 (push_minipool_fix): Likewise.
4752 (note_invalid_constants): Likewise.
4753 (thumb2_reorg): Likewise for local "insn".
4754 (arm_reorg): Likewise.
4755 (thumb2_final_prescan_insn): Likewise for param
4756 "insn" and local "first_insn".
4757 (arm_final_prescan_insn): Likewise for param "insn" and locals
4758 "start_insn", "this_insn".
4759 (arm_debugger_arg_offset): Likewise for param "insn".
4760 (thumb1_emit_multi_reg_push): Likewise for return type and local
4762 (thumb1_final_prescan_insn): Likewise for param "insn".
4763 (thumb_far_jump_used_p): Likewise for local "insn".
4764 (thumb1_expand_prologue): Likewise.
4765 (arm_expand_epilogue_apcs_frame): Likewise.
4766 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4767 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4768 from rtx to rtx_code_label *.
4769 (arm_split_atomic_op): Likewise for local "label".
4770 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4774 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4775 first param from rtx to rtx_insn *.
4776 (arc_verify_short): Likewise.
4777 (arc_short_long): Likewise.
4778 (arc_need_delay): Likewise.
4780 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4782 (arc_ccfsm_advance): Likewise for param "insn" and locals
4783 "start_insn", "this_insn".
4784 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4785 (arc_ccfsm_post_advance): Likewise for param "insn".
4786 (arc_next_active_insn): Likewise for return type and param "insn".
4787 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
4788 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4789 (output_short_suffix): Likewise for local "insn".
4790 (arc_final_prescan_insn): Likewise for param "insn". Remove
4791 now-redundant checked cast.
4792 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4793 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4794 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
4795 for use where lc_set became an insn.
4796 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4798 (arc_get_insn_variants): Likewise for local "prev".
4799 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4801 (arc_predicate_delay_insns): Likewise for local "insn".
4802 (arc_pad_return): Likewise for local "prev". For now, add a
4803 checked cast when extracting the insn from "final_sequence".
4804 (arc_short_long): Likewise for param "insn".
4805 (arc_need_delay): Likewise for param "insn" and local "next".
4806 (arc_label_align): Likewise for locals "prev", "next".
4808 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4810 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4811 "insn" from rtx to rtx_insn *.
4812 (alpha_gp_save_rtx): Likewise for local "seq".
4813 (alpha_instantiate_decls): Likewise for local "top".
4814 (get_some_local_dynamic_name): Likewise for local "insn".
4815 (alpha_does_function_need_gp): Likewise.
4816 (set_frame_related_p): Likewise for return type and for locals
4818 (emit_frame_store_1): Likewise for local "insn".
4819 (alpha_expand_prologue): Likewise for locals "insn", "seq".
4820 (alpha_end_function): Likewise for local "insn".
4821 (alpha_output_mi_thunk_osf): Likewise.
4822 (alphaev4_insn_pipe): Likewise for param "insn".
4823 (alphaev5_insn_pipe): Likewise.
4824 (alphaev4_next_group): Likewise for return type and param 1
4826 (alphaev5_next_group): Likewise.
4827 (alpha_align_insns_1): Likewise for return type and param 1 of
4828 callback param "next_group", and for locals "i", "next", "prev",
4829 "where", "where2", "insn".
4831 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
4833 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4834 rather than modifying the stmt.
4836 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4838 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4839 cgraph_state conversion.
4841 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4843 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4844 Strengthen local "insns" from rtx to rtx_insn *.
4845 (aarch64_set_frame_expr): Likewise for local "insn".
4846 (aarch64_save_or_restore_fprs): Likewise.
4847 (aarch64_save_or_restore_callee_save_registers): Likewise.
4848 (aarch64_expand_prologue): Likewise.
4849 (aarch64_expand_epilogue): Likewise.
4850 (aarch64_output_mi_thunk): Likewise.
4851 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4852 "label2" from rtx to rtx_code_label *.
4853 (aarch64_split_atomic_op): Likewise for local "label".
4855 2014-08-25 Martin Liska <mliska@suse.cz>
4857 * cgraph.h (symtab_node):
4858 (bool needed_p (void)): created from decide_is_symbol_needed
4859 (bool referred_to_p (void)): created from referred_to_p
4860 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4861 * cgraph.h (cgraph_node):
4862 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4863 (void expand (void)): created from expand_function
4864 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4865 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4866 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4867 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4868 * cgraph.h (varpool_node):
4869 (static void add (tree decl): created from varpool_add_new_variable
4870 * cgraph.h (cgraph_edge):
4872 (void remove_caller (void)): created from cgraph_edge_remove_caller
4873 (void remove_callee (void)): created from cgraph_edge_remove_callee
4874 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4875 created from cgraph_set_call_stmt
4876 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4877 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4878 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4879 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4880 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4881 created from cgraph_speculative_call_info
4882 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4883 int freq_scale, bool update_original)): created from cgraph_clone_edge
4884 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4885 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4886 (bool recursive_p (void)): created from cgraph_edge_recursive_p
4887 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4888 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4889 (static void rebuild_references (void)): created from cgraph_rebuild_references
4890 * cgraph.h (symbol_table):
4891 (create_reference): renamed from add_reference
4892 (maybe_create_reference): renamed from maybe_add_reference
4893 (void register_symbol (symtab_node *node)): new function
4894 (void clear_asm_symbols (void)): new function
4895 (void unregister (symtab_node *node)): new function
4896 (void release_symbol (cgraph_node *node, int uid)): new function
4897 (cgraph_node * allocate_cgraph_symbol (void)): new function
4898 (void initialize (void)): created from cgraph_init
4899 (symtab_node *first_symbol (void)):new function
4900 (asm_node *first_asm_symbol (void)):new function
4901 (symtab_node *first_defined_symbol (void)):new function
4902 (varpool_node *first_variable (void)):new function
4903 (varpool_node *next_variable (varpool_node *node)):new function
4904 (varpool_node *first_static_initializer (void)):new function
4905 (varpool_node *next_static_initializer (varpool_node *node)):new function
4906 (varpool_node *first_defined_variable (void)):new function
4907 (varpool_node *next_defined_variable (varpool_node *node)):new function
4908 (cgraph_node *first_defined_function (void)):new function
4909 (cgraph_node *next_defined_function (cgraph_node *node)):new function
4910 (cgraph_node *first_function (void)):new function
4911 (cgraph_node *next_function (cgraph_node *node)):new function
4912 (cgraph_node *first_function_with_gimple_body (void)):new function
4913 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4914 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4915 created from symtab_remove_unreachable_nodes
4916 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4917 (void process_new_functions (void)): created from cgraph_process_new_functions
4918 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4919 (bool output_variables (void)): created from varpool_node::output_variables
4920 (void output_asm_statements (void)): created from output_asm_statements
4921 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4922 (void compile (void)): created from compile
4923 (void output_weakrefs (void)): created from output_weakrefs
4924 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4925 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4926 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4927 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4928 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4929 created from cgraph_next_function_with_gimple_body
4930 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4931 created from cgraph_remove_edge_removal_hook
4932 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4933 created from cgraph_add_node_removal_hook
4934 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4935 created from cgraph_remove_node_removal_hook
4936 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4937 created from varpool_add_node_removal_hook
4938 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4939 created from varpool_remove_node_removal_hook
4940 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4941 created from cgraph_add_function_insertion_hook
4942 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4943 created from cgraph_remove_function_insertion_hook
4944 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4945 created from varpool_add_variable_insertion_hook
4946 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4947 created from varpool_remove_variable_insertion_hook
4948 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4949 created from cgraph_add_edge_duplication_hook
4950 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4951 created from cgraph_remove_edge_duplication_hook
4952 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4953 created from cgraph_add_node_duplication_hook
4954 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4955 created from cgraph_remove_node_duplication_hook
4956 (void call_edge_removal_hooks (cgraph_edge *e)):
4957 created from cgraph_call_edge_removal_hooks
4958 (void call_cgraph_insertion_hooks (cgraph_node *node)):
4959 created from call_function_insertion_hooks
4960 (void call_cgraph_removal_hooks (cgraph_node *node)):
4961 created from cgraph_call_node_removal_hooks
4962 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4963 created from cgraph_node::call_duplication_hooks
4964 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4965 created from cgraph_call_edge_duplication_hooks
4966 (void call_varpool_removal_hooks (varpool_node *node)):
4967 created from varpool_call_node_removal_hooks
4968 (void call_varpool_insertion_hooks (varpool_node *node)):
4969 created from varpool_call_variable_insertion_hooks
4970 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4971 created from insert_to_assembler_name_hash
4972 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4973 created from unlink_from_assembler_name_hash
4974 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4975 created from symtab_prevail_in_asm_name_hash
4976 (void symtab_initialize_asm_name_hash (void)):
4977 created from symtab_initialize_asm_name_hash
4978 (void change_decl_assembler_name (tree decl, tree name)):
4979 created from change_decl_assembler_name
4980 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4981 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4982 created from decl_assembler_name_hash
4983 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4984 created from decl_assembler_name_equal
4985 (static hashval_t hash_node_by_assembler_name (const void *p)):
4986 created from hash_node_by_assembler_name
4987 (static int eq_assembler_name (const void *p1, const void *p2)):
4988 created from eq_assembler_name
4990 2014-08-25 Marek Polacek <polacek@redhat.com>
4992 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4994 2014-08-25 Petr Murzin <petr.murzin@intel.com>
4996 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4997 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4998 SWI1248_AVX512BW mode iterator.
5000 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
5003 * config/sh/predicates.md (general_extend_operand): Disable
5004 TRUNCATE before reload completes.
5006 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5008 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5010 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
5013 * config/sh/sh.opt (musermode): Allow negative form.
5014 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5015 targets that don't support it.
5016 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5017 Document -mno-usermode option.
5019 2014-08-24 Kito Cheng <kito@0xlab.org>
5021 * system.h (CALLER_SAVE_PROFITABLE): Poison.
5022 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5023 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5024 * doc/tm.texi: Regenerate.
5026 2014-08-24 Kito Cheng <kito@0xlab.org>
5028 * ira.c: Fix typo in comment.
5030 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5032 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5033 Deprecate c++1y. Change language to reflect greater confidence in C++14.
5035 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
5038 * config/pa/pa.c (pa_output_function_epilogue): Don't set
5039 last_address when the current function is a thunk.
5040 (pa_asm_output_mi_thunk): When we don't have named sections or they
5041 are not being used, check that thunk can reach the stub table with a
5044 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5046 * web.c (union_match_dups): Strengthen param "insn" from rtx to
5048 (pass_web::execute): Likewise for local "insn".
5050 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5052 * var-tracking.c (struct micro_operation_def): Strengthen field
5053 "insn" from rtx to rtx_insn *.
5054 (struct emit_note_data_def): Likewise.
5055 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5056 (vt_stack_adjustments): Likewise for local "insn".
5057 (adjust_insn): Likewise for param "insn".
5058 (val_store): Likewise.
5059 (val_resolve): Likewise.
5060 (struct count_use_info): Likewise for field "insn".
5061 (log_op_type): Likewise for param "insn".
5062 (reverse_op): Likewise.
5063 (prepare_call_arguments): Likewise.
5064 (add_with_sets): The initial param takes an insn, but we can't
5065 yet strengthen it from rtx to rtx_insn * since it's used as a
5066 cselib_record_sets_hook callback. For now rename initial param
5067 from "insn" to "uncast_insn", and introduce a local "insn" of
5068 the stronger rtx_insn * type, with a checked cast.
5069 (compute_bb_dataflow): Strengthen local "insn" from rtx to
5071 (emit_note_insn_var_location): Likewise.
5072 (emit_notes_for_changes): Likewise.
5073 (emit_notes_for_differences): Likewise.
5074 (next_non_note_insn_var_location): Likewise for return type and
5076 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5077 (vt_initialize): Likewise for local "insn".
5078 (delete_debug_insns): Likewise for locals "insn" and "next".
5080 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5082 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5084 (mark_constant_pool): Likewise for local "insn".
5086 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5088 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5090 (dead_debug_promote_uses): Likewise.
5091 (dead_debug_insert_temp): Likewise.
5093 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5095 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5096 from const_rtx to const rtx_insn *.
5097 (store_killed_after): Likewise. Strengthen locals "last", "act"
5098 from rtx to rtx_insn *.
5099 (store_killed_before): Strengthen param "insn" from const_rtx to
5100 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
5101 (find_moveable_store): Strengthen param "insn" from rtx to
5103 (compute_store_table): Likewise for local "insn".
5104 (insert_insn_start_basic_block): Likewise for param "insn" and
5105 locals "prev", "before", "insn".
5106 (insert_store): For now, add a checked cast to rtx_insn * on the
5107 result of gen_move_insn.
5108 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5110 (replace_store_insn): Likewise. For now, add a checked cast to
5111 rtx_insn * on the result of gen_move_insn.
5113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5115 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5117 (expand_sjlj_dispatch_table): Likewise.
5119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5121 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5122 "insn" from rtx to rtx_insn *.
5124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5126 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5127 "insn" from rtx to rtx_insn *.
5128 (dup_block_and_redirect): Likewise for param 3 "before".
5130 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5131 from rtx to rtx_insn *.
5132 (move_insn_for_shrink_wrap): Likewise.
5133 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5134 (dup_block_and_redirect): Likewise for param "before" and local
5136 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5138 (convert_to_simple_return): Likewise for local "start".
5140 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5141 Strengthen local "insn" from rtx to rtx_insn *, for use when
5142 invoking requires_stack_frame_p.
5144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5146 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5148 (speculate_expr): Likewise for locals "orig_insn_rtx",
5150 (eq_transformed_insns): Likewise for locals "i1", "i2".
5151 (check_for_new_jump): Likewise for return type and local "end".
5152 (find_new_jump): Likewise for return type and local "jump".
5153 (sel_split_edge): Likewise for local "jump".
5154 (sel_create_recovery_block): Likewise.
5155 (sel_redirect_edge_and_branch_force): Likewise.
5156 (sel_redirect_edge_and_branch): Likewise.
5158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5160 * sel-sched.c (substitute_reg_in_expr): Strengthen local
5161 "new_insn" from rtx to rtx_insn *.
5162 (create_insn_rtx_with_rhs): Likewise for return type and for local
5164 (create_insn_rtx_with_lhs): Likewise.
5165 (create_speculation_check): Likewise for local "insn_rtx".
5166 (implicit_clobber_conflict_p): Likewise for local "insn".
5167 (get_expr_cost): Likewise.
5168 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5169 (move_cond_jump): Likewise for locals "next", "prev", "link",
5170 "head", "from", "to".
5172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5174 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5175 "next" from rtx to rtx_insn *.
5176 (find_conditional_protection): Likewise for local "next".
5177 (is_conditionally_protected): Likewise for local "insn1".
5178 (is_pfree): Likewise for locals "insn1", "insn2".
5180 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5182 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5183 from rtx to rtx_insn *.
5185 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5186 locals "insn1", "insn2" from rtx to rtx_insn *.
5187 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5188 locals "insn", "prev", "last_jump", "next_tail".
5189 (schedule_ebb): Likewise for params "head", "tail".
5190 (schedule_ebbs): Likewise for locals "tail", "head".
5192 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5193 to rtx_insn on "last_insn" in one of the invocations of
5196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5198 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5199 "elem", "insn" from rtx to rtx_insn *.
5200 (change_spec_dep_to_hard): Likewise.
5201 (get_back_and_forw_lists): Likewise for local "con".
5202 (sd_add_dep): Likewise for locals "elem", "insn".
5203 (sd_resolve_dep): Likewise for locals "pro", "con".
5204 (sd_unresolve_dep): Likewise.
5205 (sd_delete_dep): Likewise.
5206 (chain_to_prev_insn): Likewise for local "pro".
5207 (find_inc): Likewise for locals "pro", "con".
5209 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5211 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5213 (reg_set_between_p): Strengthen local "insn" from const_rtx to
5215 (modified_between_p): Strengthen local "insn" from rtx to
5217 (remove_reg_equal_equiv_notes_for_regno): Likewise.
5218 (keep_with_call_p): Strengthen local "i2" from const_rtx to
5221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5223 * resource.c (next_insn_no_annul): Strengthen local "next" from
5225 (mark_referenced_resources): Likewise for local "insn".
5227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5229 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5231 (find_reloads): Likewise for param 1.
5232 (subst_reloads): Likewise for sole param.
5233 (find_equiv_reg): Likwise for param 2.
5234 (regno_clobbered_p): Likwise for param 2.
5235 (reload): Likewise for param 1.
5237 * caller-save.c (save_call_clobbered_regs): Strengthen local
5238 "insn" from rtx to rtx_insn *.
5239 (insert_one_insn): Likewise for local "insn".
5241 * reload.c (this_insn): Likewise for this global.
5242 (find_reloads): Likewise for param "insn".
5243 (find_reloads_toplev): Likewise.
5244 (find_reloads_address): Likewise.
5245 (subst_reg_equivs): Likewise.
5246 (update_auto_inc_notes): Likewise.
5247 (find_reloads_address_1): Likewise.
5248 (find_reloads_subreg_address): Likewise.
5249 (subst_reloads): Likewise.
5250 (find_equiv_reg): Likewise, also for local "p".
5251 (regno_clobbered_p): Likewise for param "insn".
5253 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
5255 (spill_reg_store): Likewise for the elements of this array.
5256 (remove_init_insns): Likewise for local "equiv_insn".
5257 (will_delete_init_insn_p): Likewise for param "insn".
5258 (reload): Likewise for param ""first" and local "insn".
5259 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
5261 (calculate_elim_costs_all_insns): Likewise.
5262 (delete_caller_save_insns): Likewise.
5263 (spill_failure): Likewise for param "insn".
5264 (delete_dead_insn): Likewise.
5265 (set_label_offsets): Likewise.
5266 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
5268 (elimination_costs_in_insn): Likewise for param "insn".
5269 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
5270 when referring to an insn.
5271 (set_initial_label_offsets): Likewise.
5272 (set_offsets_for_label): Strengthen param "insn" from rtx to
5274 (init_eliminable_invariants): Likewise for param "first" and local
5276 (fixup_eh_region_note): Likewise for param "insn".
5277 (reload_as_needed): Likewise for locals "prev", "insn",
5278 "old_next", "old_prev", "next".
5279 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
5281 (reload_inheritance_insn): Strengthen elements of this array from
5283 (failed_reload): Likewise for param "insn".
5284 (choose_reload_regs): Likewise for local "insn". Replace use of
5285 NULL_RTX with NULL when referring to an insn.
5286 (input_reload_insns): Strengthen elements of this array from rtx
5288 (other_input_address_reload_insns): Likewise for this global.
5289 (other_input_reload_insns): Likewise for this global.
5290 (input_address_reload_insns): Likwise for the elements of this
5292 (inpaddr_address_reload_insns): Likwise for the elements of this
5294 (output_reload_insns): Likewise for the elements of this array.
5295 (output_address_reload_insns): Likewise for the elements of this
5297 (outaddr_address_reload_insns): Likewise for the elements of this
5299 (operand_reload_insns): Likewise for this global.
5300 (other_operand_reload_insns): Likewise for this global.
5301 (other_output_reload_insns): Likewise for the elements of this
5303 (new_spill_reg_store): Likewise for the elements of this
5305 (emit_input_reload_insns): Likewise for locals "insn", "temp".
5306 Strengthen local "where" from rtx * to rtx_insn **.
5307 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
5308 from rtx to rtx_insn *.
5309 (do_input_reload): Likewise for local "insn".
5310 (do_output_reload): Likewise for local "insn".
5311 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
5312 (emit_insn_if_valid_for_reload): Likewise for return type and local
5313 "last". Add checked cast to rtx_insn when returning "insn" since
5314 this has been through emit_insn.
5315 (gen_reload): Strengthen return type and locals "last", "insn", "set"
5316 from rtx to rtx_insn *. Add checked cast to rtx_insn when
5317 returning "insn" since it's been through
5318 emit_insn_if_valid_for_reload at this point.
5319 (delete_output_reload): Strengthen param "insn" and locals
5320 "output_reload_insn", "i2" from rtx to rtx_insn *.
5321 (delete_address_reloads): Likewise for params "dead_insn",
5322 "current_insn" and locals "prev", "next".
5323 (delete_address_reloads_1): Likewise for params "dead_insn",
5324 "current_insn" and locals "prev", "i2".
5325 (inc_for_reload): Likewise for locals "last", "add_insn".
5326 (add_auto_inc_notes): Strengthen param "insn" from rtx to
5329 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5330 param of this duplicate of the prototype from reload.h
5332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5334 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5336 (regstat_bb_compute_calls_crossed): Likewise.
5338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5340 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5342 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5344 (regrename_analyze): Strengthen local "insn" from rtx to
5346 (scan_rtx_reg): Likewise for param "insn".
5347 (scan_rtx_address): Likewise.
5348 (scan_rtx): Likewise.
5349 (restore_operands): Likewise.
5350 (record_out_operands): Likewise.
5351 (build_def_use): Likewise for local "insn". Replace use of
5352 NULL_RTX with NULL when dealing with an insn.
5354 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5356 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5357 * reginfo.c (reg_scan): Likewise, also for local "insn".
5358 (reg_scan_mark_refs): Likewise for param "insn".
5359 (init_subregs_of_mode): Likewise for local "insn".
5361 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5363 * regcprop.c (struct queued_debug_insn_change): Strengthen field
5364 "insn" from rtx to rtx_insn *.
5365 (replace_oldest_value_reg): Likewise for param "insn".
5366 (replace_oldest_value_addr): Likewise.
5367 (replace_oldest_value_mem): Likewise.
5368 (apply_debug_insn_changes): Likewise for local "last_insn".
5369 (copyprop_hardreg_forward_1): Likewise for local "insn".
5371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5373 * reg-stack.c (next_flags_user): Strengthen return type and param
5374 "insn" from rtx to rtx_insn *.
5375 (straighten_stack): Likewise for param "insn".
5376 (check_asm_stack_operands): Likewise.
5377 (remove_regno_note): Likewise.
5378 (emit_pop_insn): Likewise for return type, param "insn", local
5380 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
5381 "limit" from rtx to rtx_insn *.
5382 (swap_to_top): Likewise for param "insn".
5383 (move_for_stack_reg): Likewise.
5384 (move_nan_for_stack_reg): Likewise.
5385 (swap_rtx_condition): Likewise.
5386 (compare_for_stack_reg): Likewise.
5387 (subst_all_stack_regs_in_debug_insn): Likewise.
5388 (subst_stack_regs_pat): Likewise, and local "insn2".
5389 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
5391 (subst_stack_regs): Likewise.
5392 (change_stack): Likewise.
5393 (convert_regs_1): Likewise for locals "insn", "next".
5395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5397 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5399 (combine_set_extension): Likewise for param "curr_insn".
5400 (transform_ifelse): Likewise for param "def_insn".
5401 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
5402 from vec<rtx> * to vec<rtx_insn *> *.
5403 (is_cond_copy_insn): Likewise for param "insn".
5404 (struct ext_state): Strengthen the four vec fields from vec<rtx>
5406 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
5407 local "def_insn" from rtx to rtx_insn *.
5408 (get_sub_rtx): Likewise for param "def_insn".
5409 (merge_def_and_ext): Likewise.
5410 (combine_reaching_defs): Likewise.
5411 (add_removable_extension): Likewise for param "insn".
5412 (find_removable_extensions): Likewise for local "insn".
5413 (find_and_remove_re): Likewise for locals "curr_insn" and
5414 "def_insn". Strengthen locals "reinsn_del_list" and
5415 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5417 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5419 * recog.c (split_insn): Strengthen param "insn" and locals
5420 "first", "last" from rtx to rtx_insn *.
5421 (split_all_insns): Likewise for locals "insn", "next".
5422 (split_all_insns_noflow): Likewise.
5424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5426 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5428 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5429 (debug_rtx_find): Likewise for param 1 "x".
5431 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5432 const_rtx to const rtx_insn *. Likewise for local "insn".
5433 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5434 (debug_rtx_find): Likewise for param 1 "x".
5435 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5436 from const_rtx to const rtx_insn * within the appropriate cases of
5437 the switch statement.
5439 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5440 Strengthen local "insns" from rtx to rtx_insn * since this is
5441 passed to a call to debug_rtx_list.
5443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5445 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5448 * function.c (stack_protect_epilogue): Add checked cast to
5449 rtx_insn for now when invoking predict_insn_def.
5451 * predict.c (predict_insn): Strengthen param "insn" from rtx to
5453 (predict_insn_def): Likewise.
5454 (rtl_predict_edge): Likewise for local "last_insn".
5455 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5457 (combine_predictions_for_insn): Strengthen param "insn" from rtx
5459 (bb_estimate_probability_locally): Likewise for local "last_insn".
5460 (expensive_function_p): Likewise for local "insn".
5462 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5463 local "jmp", since this is used when invoking predict_insn_def.
5465 2014-08-22 Marek Polacek <polacek@redhat.com>
5468 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5470 2014-08-22 Marek Polacek <polacek@redhat.com>
5473 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5474 a comparison in parens.
5475 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5480 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5483 * cprop.c (fis_get_condition): Likewise.
5485 * postreload.c (reload_cse_regs): Likewise for param "first".
5486 (reload_cse_simplify): Likewise for param "insn".
5487 (reload_cse_regs_1): Likewise for local "insn".
5488 (reload_cse_simplify_set): Likewise for param "insn".
5489 (reload_cse_simplify_operands): Likewise.
5490 (struct reg_use): Likewise for field "insn".
5491 (reload_combine_purge_insn_uses): Likewise for param "insn".
5492 (fixup_debug_insns): Likewise for params "from", "to" and local
5494 (try_replace_in_use): Likewise for local "use_insn".
5495 (reload_combine_recognize_const_pattern): Likewise for param
5496 "insn" and locals "add_moved_after_insn", "use_insn".
5497 (reload_combine_recognize_pattern): Likewise for param "insn" and
5499 (reload_combine): Likewise for locals "insn", "prev".
5500 (reload_combine_note_use): Likewise for param "insn".
5501 (move2add_use_add2_insn): Likewise.
5502 (move2add_use_add3_insn): Likewise.
5503 (reload_cse_move2add): Likewise, also for local "next".
5504 (move2add_note_store): Likewise for local "insn".
5506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5508 * postreload-gcse.c (struct occr): Strengthen field "insn" from
5510 (struct unoccr): Likewise.
5511 (struct modifies_mem): Likewise.
5512 (alloc_mem): Likewise for local "insn".
5513 (insert_expr_in_table): Likewise for param "insn".
5514 (dump_expr_hash_table_entry): Likewise for local "insn".
5515 (oprs_unchanged_p): Likewise for param "insn".
5516 (load_killed_in_block_p): Likewise for local "setter".
5517 (record_last_reg_set_info): Likewise for param "insn".
5518 (record_last_reg_set_info_regno): Likewise.
5519 (record_last_mem_set_info): Likewise.
5520 (record_last_set_info): Likewise for local "last_set_insn".
5521 (record_opr_changes): Likewise for param "insn".
5522 (hash_scan_set): Likewise.
5523 (compute_hash_table): Likewise for local "insn".
5524 (get_avail_load_store_reg): Likewise for param "insn".
5525 (eliminate_partially_redundant_load): Likewise, also for locals
5526 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
5528 (eliminate_partially_redundant_loads): Likewise for local "insn".
5530 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5532 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5534 (expand_binop): Likewise for locals "entry_last", "last", "insns"
5535 (expand_twoval_unop): Likewise for locals entry_last", "last".
5536 (expand_twoval_binop): Likewise.
5537 (expand_twoval_binop_libfunc): Likewise for local "insns".
5538 (widen_leading): Likewise for local "last".
5539 (expand_doubleword_clz): Likewise for local "seq". Strengthen
5540 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5541 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5542 (expand_parity): Likewise for locals "last" and "seq".
5543 (expand_ffs): Likewise for local "seq". Strengthen local
5544 "nonzero_label" from rtx to rtx_code_label *.
5545 (expand_absneg_bit): Strengthen local "insns" from rtx to
5547 (expand_unop_direct): Likewise for local "last".
5548 (expand_unop): Likewise for locals "last", "insns".
5549 (expand_abs_nojump): Likewise for local "last".
5550 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5551 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5553 (expand_copysign_absneg): Strengthen local "label" from rtx to
5555 (expand_copysign_bit): Strengthen local "insns" from rtx to
5557 (struct no_conflict_data): Likewise for fields "first", "insn".
5558 (emit_libcall_block_1): Likewise for param "insns" and locals
5559 "next", "last", "insn".
5560 (emit_libcall_block): For now, add a checked cast to rtx_insn *
5561 on "insns" when invoking emit_libcall_block_1. Ultimately we
5562 want to strengthen insns itself.
5563 (prepare_cmp_insn): Strengthen local "last" from rtx to
5565 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5566 (prepare_float_lib_cmp): Likewise for local "insns".
5567 (emit_conditional_move): Likewise for local "last".
5568 (emit_conditional_add): Likewise.
5569 (have_sub2_insn): Likewise for local "seq".
5570 (expand_float): Likewise for local "insns". Strengthen locals
5571 "label", "neglabel" from rtx to rtx_code_label *.
5572 (expand_fix): Likewise for locals "last", "insn", "insns" (to
5573 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5574 (expand_fixed_convert): Likewise for local "insns" (to
5576 (expand_sfix_optab): Likewise for local "last".
5577 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5578 to rtx_code_label *.
5579 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5580 from rtx to rtx_insn *.
5581 (expand_atomic_fetch_op): Likewise for local "insn".
5582 (maybe_legitimize_operand_same_code): Likewise for local "last".
5583 (maybe_legitimize_operands): Likewise.
5585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5587 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5588 "insn" from rtx to rtx_insn *.
5589 (ps_rtl_insn): Likewise for return type.
5590 (doloop_register_get): Likewise for params "head", "tail" and
5591 locals "insn", "first_insn_not_to_check".
5592 (schedule_reg_move): Likewise for local "this_insn".
5593 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5594 of gen_move_insn for now.
5595 (reset_sched_times): Strengthen local "insn" from rtx to
5597 (permute_partial_schedule): Likewise.
5598 (duplicate_insns_of_cycles): Likewise for local "u_insn".
5599 (dump_insn_location): Likewise for param "insn".
5600 (loop_canon_p): Likewise for local "insn".
5601 (sms_schedule): Likewise.
5602 (print_partial_schedule): Likewise.
5603 (ps_has_conflicts): Likewise.
5605 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5607 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5608 "tailp" from rtx * to rtx_insn **.
5610 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5611 from rtx to rtx_insn *.
5612 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5613 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
5614 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5616 * modulo-sched.c (const_iteration_count): Strengthen return type
5617 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
5618 use of NULL_RTX with NULL when working with insns.
5619 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5621 (sms_schedule): Likewise.
5622 * sched-rgn.c (init_ready_list): Likewise, also for locals
5623 "src_head" and "src_next_tail".
5624 (compute_block_dependences): Likewise.
5625 (free_block_dependencies): Likewise.
5626 (debug_rgn_dependencies): Likewise.
5627 (free_rgn_deps): Likewise.
5628 (compute_priorities): Likewise.
5629 (schedule_region): Likewise.
5630 * sel-sched.c (find_ebb_boundaries): Likewise.
5632 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5633 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5635 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5637 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5638 from rtx to rtx_insn *.
5639 (new_seginfo): Likewise for param "insn".
5640 (create_pre_exit): Likewise for locals "last_insn",
5641 "before_return_copy", "return_copy".
5642 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5647 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5648 from rtx to rtx_insn *.
5649 (lra_push_insn): Likewise for 1st param.
5650 (lra_push_insn_and_update_insn_regno_info): Likewise.
5651 (lra_pop_insn): Likewise for return type.
5652 (lra_invalidate_insn_data): Likewise for 1st param.
5653 (lra_set_insn_deleted): Likewise.
5654 (lra_delete_dead_insn): Likewise.
5655 (lra_process_new_insns): Likewise for first 3 params.
5656 (lra_set_insn_recog_data): Likewise for 1st param.
5657 (lra_update_insn_recog_data): Likewise.
5658 (lra_set_used_insn_alternative): Likewise.
5659 (lra_invalidate_insn_regno_info): Likewise.
5660 (lra_update_insn_regno_info): Likewise.
5661 (lra_former_scratch_operand_p): Likewise.
5662 (lra_eliminate_regs_1): Likewise.
5663 (lra_get_insn_recog_data): Likewise.
5665 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5668 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5670 (substitute_within_insn): New.
5671 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5672 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
5673 Replace call to "substitute" with call to substitute_within_insn.
5675 * lra-constraints.c (curr_insn): Strengthen from rtx to
5677 (get_equiv_with_elimination): Likewise for param "insn".
5678 (match_reload): Strengthen params "before" and "after" from rtx *
5680 (emit_spill_move): Likewise for return type. Add a checked cast
5681 to rtx_insn * on result of gen_move_insn for now.
5682 (check_and_process_move): Likewise for local "before". Replace
5683 NULL_RTX with NULL when referring to insns.
5684 (process_addr_reg): Strengthen params "before" and "after" from
5685 rtx * to rtx_insn **.
5686 (insert_move_for_subreg): Likewise.
5687 (simplify_operand_subreg): Strengthen locals "before" and "after"
5688 from rtx to rtx_insn *.
5689 (process_address_1): Strengthen params "before" and "after" from
5690 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
5692 (process_address): Strengthen params "before" and "after" from
5693 rtx * to rtx_insn **.
5694 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5695 (curr_insn_transform): Strengthen locals "before" and "after"
5696 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
5698 (loc_equivalence_callback): Update cast of "data", changing
5699 resulting type from rtx to rtx_insn *.
5700 (substitute_pseudo_within_insn): New.
5701 (inherit_reload_reg): Strengthen param "insn" from rtx to
5702 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
5703 NULL when referring to insns. Add a checked cast to rtx_insn *
5704 when using usage_insn to invoke lra_update_insn_regno_info.
5705 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5706 likewise for locals "restore", "save". Add checked casts to
5707 rtx_insn * when using usage_insn to invoke
5708 lra_update_insn_regno_info and lra_process_new_insns. Replace
5709 NULL_RTX with NULL when referring to insns.
5710 (split_if_necessary): Strengthen param "insn" from rtx to
5712 (update_ebb_live_info): Likewise for params "head", "tail" and local
5714 (get_last_insertion_point): Likewise for return type and local "insn".
5715 (get_live_on_other_edges): Likewise for local "last".
5716 (inherit_in_ebb): Likewise for params "head", "tail" and locals
5717 "prev_insn", "next_insn", "restore".
5718 (remove_inheritance_pseudos): Likewise for local "prev_insn".
5719 (undo_optional_reloads): Likewise for local "insn".
5721 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5723 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5725 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5727 (spill_pseudos): Likewise for local "insn".
5728 (init_elimination): Likewise.
5729 (process_insn_for_elimination): Likewise for param "insn".
5731 * lra-lives.c (curr_insn): Likewise.;
5733 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5734 (remove_pseudos): Likewise for param "insn".
5735 (spill_pseudos): Likewise for local "insn".
5736 (lra_final_code_change): Likewise for locals "insn", "curr".
5738 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5739 (lra_set_insn_deleted): Likewise.
5740 (lra_delete_dead_insn): Likewise, and for local "prev".
5741 (new_insn_reg): Likewise for param "insn".
5742 (lra_set_insn_recog_data): Likewise.
5743 (lra_update_insn_recog_data): Likewise.
5744 (lra_set_used_insn_alternative): Likewise.
5745 (get_insn_freq): Likewise.
5746 (invalidate_insn_data_regno_info): Likewise.
5747 (lra_invalidate_insn_regno_info): Likewise.
5748 (lra_update_insn_regno_info): Likewise.
5749 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5751 (lra_push_insn_1): Strengthen param "insn" from rtx to
5753 (lra_push_insn): Likewise.
5754 (lra_push_insn_and_update_insn_regno_info): Likewise.
5755 (lra_pop_insn): Likewise for return type and local "insn".
5756 (push_insns): Likewise for params "from", "to", and local "insn".
5757 (setup_sp_offset): Likewise for params "from", "last" and locals
5759 (lra_process_new_insns): Likewise for params "insn", "before",
5760 "after" and local "last".
5761 (struct sloc): Likewise for field "insn".
5762 (lra_former_scratch_operand_p): Likewise for param "insn".
5763 (remove_scratches): Likewise for locals "insn", "last".
5764 (check_rtl): Likewise for local "insn".
5765 (add_auto_inc_notes): Likewise for param "insn".
5766 (update_inc_notes): Likewise for local "insn".
5767 (lra): Replace NULL_RTX with NULL when referring to insn.
5769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5771 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5773 (resolve_reg_notes): Likewise.
5774 (resolve_simple_move): Likewise for return type, param "insn", and
5775 locals "insns", "minsn".
5776 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5777 (resolve_use): Likewise.
5778 (resolve_debug): Likewise.
5779 (find_decomposable_shift_zext): Likewise.
5780 (resolve_shift_zext): Likewise for return type, param "insn", and
5781 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
5782 (decompose_multiword_subregs): Likewise for local "insn",
5783 "orig_insn", "decomposed_shift", "end".
5785 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5787 * basic-block.h (basic_block split_edge_and_insert): Strengthen
5788 param "insns" from rtx to rtx_insn *.
5790 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5792 (struct iv_to_split): Likewise.
5793 (loop_exit_at_end_p): Likewise for local "insn".
5794 (split_edge_and_insert): Likewise for param "insns".
5795 (compare_and_jump_seq): Likewise for return type, param "cinsn",
5796 and locals "seq", "jump".
5797 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5798 "branch_code"; update invocations of compare_and_jump_seq to
5799 eliminate NULL_RTX in favor of NULL.
5800 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5802 (reset_debug_uses_in_loop): Likewise.
5803 (analyze_insn_to_expand_var): Likewise for param "insn".
5804 (analyze_iv_to_split_insn): Likewise.
5805 (analyze_insns_in_loop): Likewise for local "insn".
5806 (insert_base_initialization): Likewise for param
5807 "insn" and local "seq".
5808 (split_iv): Likewise for param "insn" and local "seq".
5809 (expand_var_during_unrolling): Likewise for param "insn".
5810 (insert_var_expansion_initialization): Likewise for local "seq".
5811 (combine_var_copies_in_loop_exit): Likewise.
5812 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5814 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5815 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5818 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5820 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5822 (iv_analyze_result): Likewise.
5823 (iv_analyze_expr): Likewise.
5826 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5827 local "def_insn" from rtx to rtx_insn *.
5828 (get_biv_step_1): Likewise for local "insn".
5829 (iv_analyze_expr): Likewise for param "insn".
5830 (iv_analyze_def): Likewise for local "insn".
5831 (iv_analyze_op): Likewise for param "insn".
5832 (iv_analyze): Likewise.
5833 (iv_analyze_result): Likewise.
5835 (suitable_set_for_replacement): Likewise.
5836 (simplify_using_initial_values): Likewise for local "insn".
5837 (iv_number_of_iterations): Likewise for param "insn".
5838 (check_simple_exit): Add checked cast to rtx_insn when invoking
5839 iv_number_of_iterations for now (until get_condition is
5842 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5843 "insn" from rtx to rtx_insn *.
5844 (analyze_insns_in_loop): Likewise for local "insn".
5846 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5848 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5850 (struct invariant): Likewise.
5851 (hash_invariant_expr_1): Likewise for param "insn".
5852 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5853 (find_exits): Likewise for local "insn".
5854 (create_new_invariant): Likewise for param "insn".
5855 (check_dependencies): Likewise.
5856 (find_invariant_insn): Likewise.
5857 (record_uses): Likewise.
5858 (find_invariants_insn): Likewise.
5859 (find_invariants_bb): Likewise for local "insn".
5860 (get_pressure_class_and_nregs): Likewise for param "insn".
5861 (calculate_loop_reg_pressure): Likewise for local "insn".
5863 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5865 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5867 (add_test): Likewise for locals "seq", "jump".
5868 (doloop_modify): Likewise for locals "sequence", "jump_insn".
5870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5872 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5874 (rebuild_jump_labels_chain): Likewise for param "chain".
5876 * cfgexpand.c (pass_expand::execute): Add checked cast to
5877 rtx_insn * when calling rebuild_jump_labels_chain in region where
5878 we know e->insns.r is non-NULL.
5880 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5882 (rebuild_jump_labels): Likewise.
5883 (rebuild_jump_labels_chain): Likewise for param "chain".
5884 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5885 (init_label_info): Likewise for param "f".
5886 (maybe_propagate_label_ref): Likewise for params "jump_insn",
5887 "prev_nonjump_insn".
5888 (mark_all_labels): Likewise for param "f" and locals "insn",
5889 "prev_nonjump_insn".
5891 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5893 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5894 from rtx to rtx_insn *insn.
5895 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5896 (ira_add_allocno_copy): Likewise.
5897 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5899 (ira_create_copy): Likewise.
5900 (ira_add_allocno_copy): Likewise.
5901 (create_bb_allocnos): Likewise for local "insn".
5902 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5903 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5904 process_regs_for_copy for rtx_insn * param.
5905 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5906 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
5907 process_regs_for_copy for rtx_insn * param.
5908 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5909 * ira-costs.c (record_reg_classes): Likewise for param "insn".
5910 (record_operand_costs): Likewise.
5911 (scan_one_insn): Likewise for return type, and for param "insn".
5912 (process_bb_for_costs): Likewise for local "insn".
5913 (process_bb_node_for_hard_reg_moves): Likewise.
5914 * ira-emit.c (struct move): Likewise for field "insn".
5915 (create_move): Eliminate use of NULL_RTX when dealing with an
5917 (emit_move_list): Strengthen return type and locals "result",
5918 "insn" from rtx to rtx_insn *insn.
5919 (emit_moves): Likewise for locals "insns", "tmp".
5920 (ira_emit): Likewise for local "insn".
5921 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5923 (find_call_crossed_cheap_reg): Likewise.
5924 (process_bb_node_lives): Likewise for local "insn".
5925 * ira.c (decrease_live_ranges_number): Likewise.
5926 (compute_regs_asm_clobbered): Likewise.
5927 (build_insn_chain): Likewise.
5928 (find_moveable_pseudos): Likewise, also locals "def_insn",
5929 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
5930 to rtx_insn **. Add a checked cast when assigning from
5931 "closest_use" into closest_uses array in a region where we know
5932 it's a non-NULL insn.
5933 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5935 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5936 "last_interesting_insn", "uin".
5937 (move_unallocated_pseudos): Likewise for locals "def_insn",
5938 "move_insn", "newinsn".
5940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5942 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5943 Strengthen locals "done_label", "do_error" from rtx to
5945 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5946 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
5948 (ubsan_expand_si_overflow_neg_check): Likewise for locals
5949 "done_label", "do_error" to rtx_code_label * and local "last" to
5951 (ubsan_expand_si_overflow_mul_check): Likewise for locals
5952 "done_label", "do_error", "large_op0", "small_op0_large_op1",
5953 "one_small_one_large", "both_ops_large", "after_hipart_neg",
5954 "after_lopart_neg", "do_overflow", "hipart_different" to
5955 rtx_code_label * and local "last" to rtx_insn *.
5957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5959 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5960 "insn" and "move_insn" from rtx to rtx_insn *.
5962 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5964 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5966 (cheap_bb_rtx_cost_p): Likewise.
5967 (first_active_insn): Likewise for return type and local "insn".
5968 (last_active_insn): Likewise for return type and locals "insn",
5970 (struct noce_if_info): Likewise for fields "jump", "insn_a",
5972 (end_ifcvt_sequence): Likewise for return type and locals "insn",
5974 (noce_try_move): Likewise for local "seq".
5975 (noce_try_store_flag): Likewise.
5976 (noce_try_store_flag_constants): Likewise.
5977 (noce_try_addcc): Likewise.
5978 (noce_try_store_flag_mask): Likewise.
5979 (noce_try_cmove): Likewise.
5980 (noce_try_minmax): Likewise.
5981 (noce_try_abs): Likewise.
5982 (noce_try_sign_mask): Likewise.
5983 (noce_try_bitop): Likewise.
5984 (noce_can_store_speculate_p): Likewise for local "insn".
5985 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5987 (check_cond_move_block): Likewise for local "insn".
5988 (cond_move_convert_if_block): Likewise.
5989 (cond_move_process_if_block): Likewise for locals "seq",
5991 (noce_find_if_block): Likewise for local "jump".
5992 (merge_if_block): Likewise for local "last".
5993 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5994 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5995 (block_has_only_trap): Likewise for return type and local "trap".
5996 (find_if_case_1): Likewise for local "jump".
5997 (dead_or_predicable): Likewise for locals "head", "end", "jump",
6000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6002 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6003 "last_insn", "loop_end" from rtx to rtx_insn *.
6005 * hw-doloop.c (scan_loop): Likewise for local "insn".
6006 (discover_loop): Likewise for param "tail_insn".
6007 (discover_loops): Likewise for local "tail".
6009 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6010 cast to rtx_insn * when assigning from an rtx local to a
6011 hwloop_info's "last_insn" field.
6013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6015 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6016 (add_delay_dependencies): Strengthen local "pro" from rtx to
6018 (recompute_todo_spec): Likewise.
6019 (dep_cost_1): Likewise for locals "insn", "used".
6020 (schedule_insn): Likewise for local "dbg".
6021 (schedule_insn): Likewise for locals "pro", "next".
6022 (unschedule_insns_until): Likewise for local "con".
6023 (restore_pattern): Likewise for local "next".
6024 (estimate_insn_tick): Likewise for local "pro".
6025 (resolve_dependencies): Likewise for local "next".
6026 (fix_inter_tick): Likewise.
6027 (fix_tick_ready): Likewise for local "pro".
6028 (add_to_speculative_block): Likewise for locals "check", "twin",
6030 (sched_extend_bb): Likewise for locals "end", "insn".
6031 (init_before_recovery): Likewise for local "x".
6032 (sched_create_recovery_block): Likewise for local "barrier".
6033 (create_check_block_twin): Likewise for local "pro".
6034 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6036 (unlink_bb_notes): Update for change to type of bb_header.
6037 Strengthen locals "prev", "label", "note", "next" from rtx to
6039 (clear_priorities): Likewise for local "pro".
6041 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6043 * gcse.c (struct occr): Strengthen field "insn" from rtx to
6045 (test_insn): Likewise for this global.
6046 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6048 (oprs_anticipatable_p): Likewise.
6049 (oprs_available_p): Likewise.
6050 (insert_expr_in_table): Strengthen param "insn" from rtx to
6052 (hash_scan_set): Likewise.
6053 (hash_scan_clobber): Likewise.
6054 (hash_scan_call): Likewise.
6055 (hash_scan_insn): Likewise.
6056 (compute_hash_table_work): Likewise for local "insn".
6057 (process_insert_insn): Likewise for return type and local "pat".
6058 (insert_insn_end_basic_block): Likewise for locals "new_insn",
6059 "pat", "pat_end", "maybe_cc0_setter".
6060 (pre_edge_insert): Likewise for local "insn".
6061 (pre_insert_copy_insn): Likewise for param "insn".
6062 (pre_insert_copies): Likewise for local "insn".
6063 (struct set_data): Likewise for field "insn".
6064 (single_set_gcse): Likewise for param "insn".
6065 (gcse_emit_move_after): Likewise.
6066 (pre_delete): Likewise for local "insn".
6067 (update_bb_reg_pressure): Likewise for param "from" and local
6069 (should_hoist_expr_to_dom): Likewise for param "from".
6070 (hoist_code): Likewise for local "insn".
6071 (get_pressure_class_and_nregs): Likewise for param "insn".
6072 (calculate_bb_reg_pressure): Likewise for local "insn".
6073 (compute_ld_motion_mems): Likewise.
6075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6077 * genpeep.c (main): Rename param back from "uncast_ins1" to
6078 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
6081 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6083 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6086 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6087 documentation to state it is only for VSX operations.
6089 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6090 constraint only active if VSX.
6092 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6093 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6098 * fwprop.c (single_def_use_dom_walker::before_dom_children):
6099 Strengthen local "insn" from rtx to rtx_insn *.
6100 (use_killed_between): Likewise for param "target_insn".
6101 (all_uses_available_at): Likewise for param "target_insn" and
6103 (update_df_init): Likewise for params "def_insn", "insn".
6104 (update_df): Likewise for param "insn".
6105 (try_fwprop_subst): Likewise for param "def_insn" and local
6107 (free_load_extend): Likewise for param "insn".
6108 (forward_propagate_subreg): Likewise for param "def_insn" and
6110 (forward_propagate_asm): Likewise for param "def_insn" and local
6112 (forward_propagate_and_simplify): Likewise for param "def_insn"
6113 and local "use_insn".
6114 (forward_propagate_into): Likewise for locals "def_insn" and
6117 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6119 * function.c (emit_initial_value_sets): Strengthen local "seq"
6120 from rtx to rtx_insn *.
6121 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6123 (instantiate_virtual_regs): Likewise for local "insn".
6124 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6125 (reorder_blocks_1): Likewise for param "insns" and local "insn".
6126 (expand_function_end): Likewise for locals "insn" and "seq".
6127 (epilogue_done): Likewise for local "insn".
6128 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6130 (reposition_prologue_and_epilogue_notes): Likewise for locals
6131 "insn", "last", "note", "first".
6132 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6133 (pass_match_asm_constraints::execute): Likewise for local "insn".
6135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6137 * output.h (final_scan_insn): Strengthen return type from rtx to
6139 (final_forward_branch_p): Likewise for param.
6140 (current_output_insn): Likewise for this global.
6142 * final.c (rtx debug_insn): Likewise for this variable.
6143 (current_output_insn): Likewise.
6144 (get_attr_length_1): Rename param "insn" to "uncast_insn",
6145 adding "insn" back in as an rtx_insn * with a checked cast, so
6146 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6148 (compute_alignments): Strengthen local "label" from rtx to
6150 (shorten_branches): Rename param from "first" to "uncast_first",
6151 introducing a new local rtx_insn * "first" using a checked cast to
6152 effectively strengthen "first" from rtx to rtx_insn * without
6153 affecting the type signature. Strengthen locals "insn", "seq",
6154 "next", "label" from rtx to rtx_insn *.
6155 (change_scope): Strengthen param "orig_insn" and local "insn" from
6157 (final_start_function): Rename param from "first" to "uncast_first",
6158 introducing a new local rtx_insn * "first" using a checked cast to
6159 effectively strengthen "first" from rtx to rtx_insn * without
6160 affecting the type signature. Strengthen local "insn" from rtx to
6162 (dump_basic_block_info): Strengthen param "insn" from rtx to
6164 (final): Rename param from "first" to "uncast_first",
6165 introducing a new local rtx_insn * "first" using a checked cast to
6166 effectively strengthen "first" from rtx to rtx_insn * without
6167 affecting the type signature. Strengthen locals "insn", "next"
6168 from rtx to rtx_insn *.
6169 (output_alternate_entry_point): Strengthen param "insn" from rtx to
6171 (call_from_call_insn): Strengthen param "insn" from rtx to
6173 (final_scan_insn): Rename param from "insn" to "uncast_insn",
6174 introducing a new local rtx_insn * "insn" using a checked cast to
6175 effectively strengthen "insn" from rtx to rtx_insn * without
6176 affecting the type signature. Strengthen return type and locals
6177 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
6178 now-redundant checked cast to rtx_insn * from both invocations of
6179 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
6180 introducing a local "call_insn" for use when invoking
6181 call_from_call_insn.
6182 (notice_source_line): Strengthen param "insn" from rtx to
6184 (leaf_function_p): Likewise for local "insn".
6185 (final_forward_branch_p): Likewise.
6186 (leaf_renumber_regs): Likewise for param "first".
6187 (rest_of_clean_state): Likewise for locals "insn" and "next".
6188 (self_recursive_call_p): Likewise for param "insn".
6189 (collect_fn_hard_reg_usage): Likewise for local "insn".
6190 (get_call_fndecl): Likewise for param "insn".
6191 (get_call_cgraph_rtl_info): Likewise.
6192 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6193 introducing a new local rtx_insn * "insn" using a checked cast to
6194 effectively strengthen "insn" from rtx to rtx_insn * without
6195 affecting the type signature.
6197 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6198 cast when assigning from param "insn" to current_output_insn.
6199 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6200 so that we can assign it back to current_output_insn.
6202 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6204 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6205 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6206 atmxt540s and atmxt540sreva devices.
6207 * config/avr/avr-tables.opt: Regenerate.
6208 * config/avr/t-multilib: Regenerate.
6209 * doc/avr-mmcu.texi: Regenerate.
6211 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6213 * expr.c (convert_move): Strengthen local "insns" from rtx to
6215 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6216 "top_label" from rtx to rtx_code_label *.
6217 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6219 (emit_single_push_insn): Likewise for locals "prev", "last".
6220 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6221 to rtx_code_label *.
6222 (store_constructor): Likewise for locals "loop_start", "loop_end".
6223 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6225 (expand_expr_real_2): Likewise.
6226 (expand_expr_real_1): Strengthen local "label" from rtx to
6229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6231 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6232 from rtx to rtx_insn *.
6233 (store_bit_field_1): Likewise.
6234 (extract_bit_field_1): Likewise.
6235 (expand_mult_const): Likewise for local "insns".
6236 (expmed_mult_highpart): Strengthen local "label" from rtx to
6238 (expand_smod_pow2): Likewise.
6239 (expand_sdiv_pow2): Likewise.
6240 (expand_divmod): Strengthen locals "last", "insn" from rtx to
6241 rtx_insn *. Strengthen locals "label", "label1", "label2",
6242 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
6243 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
6244 (emit_store_flag): Likewise.
6245 (emit_store_flag_force): Strengthen local "label" from rtx to
6247 (do_cmp_and_jump): Likewise for param "label".
6249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6251 * explow.c (force_reg): Strengthen local "insn" from rtx to
6253 (adjust_stack_1): Likewise.
6254 (allocate_dynamic_stack_space): Likewise. Strengthen locals
6255 "final_label", "available_label", "space_available" from rtx to
6257 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
6258 (anti_adjust_stack_and_probe): Likewise.
6260 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6262 * except.h (sjlj_emit_function_exit_after): Strengthen param
6263 "after" from rtx to rtx_insn *. This is only called with
6264 result of get_last_insn (in function.c) so type-change should be
6267 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
6268 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
6269 to rtx_insn *. These fields are only used from except.c so this
6270 type-change should be self-contained to this patch.
6272 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
6273 local "last" from rtx to rtx_insn *.
6274 (dw2_build_landing_pads): Likewise for local "seq".
6275 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
6276 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
6277 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
6279 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
6281 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
6282 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
6283 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
6284 referring to an insn. Strengthen local "dispatch_label" from
6285 rtx to rtx_code_label *.
6286 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
6288 (expand_eh_return): Strengthen local "around_label" from
6289 rtx to rtx_code_label *.
6290 (convert_to_eh_region_ranges): Strengthen locals "iter",
6291 "last_action_insn", "first_no_action_insn",
6292 "first_no_action_insn_before_switch",
6293 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
6295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6297 * dwarf2out.c (last_var_location_insn): Strengthen this variable
6298 from rtx to rtx_insn *.
6299 (cached_next_real_insn): Likewise.
6300 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
6302 (dwarf2out_var_location): Strengthen locals "next_real",
6303 "next_note", "expected_next_loc_note", "last_start", "insn" from
6306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6308 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
6309 from rtx to rtx_insn *.
6310 (create_pseudo_cfg): Likewise for local "insn".
6312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6314 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6315 from rtx to rtx_insn *.
6316 (df_bb_regno_last_def_find): Likewise.
6318 * df-problems.c (df_rd_bb_local_compute): Likewise.
6319 (df_lr_bb_local_compute): Likewise.
6320 (df_live_bb_local_compute): Likewise.
6321 (df_chain_remove_problem): Likewise.
6322 (df_chain_create_bb): Likewise.
6323 (df_word_lr_bb_local_compute): Likewise.
6324 (df_remove_dead_eq_notes): Likewise for param "insn".
6325 (df_note_bb_compute): Likewise for local "insn".
6326 (simulate_backwards_to_point): Likewise.
6327 (df_md_bb_local_compute): Likewise.
6329 * df-scan.c (df_scan_free_bb_info): Likewise.
6330 (df_scan_start_dump): Likewise.
6331 (df_scan_start_block): Likewise.
6332 (df_install_ref_incremental): Likewise for local "insn".
6333 (df_insn_rescan_all): Likewise.
6334 (df_reorganize_refs_by_reg_by_insn): Likewise.
6335 (df_reorganize_refs_by_insn_bb): Likewise.
6336 (df_recompute_luids): Likewise.
6337 (df_bb_refs_record): Likewise.
6338 (df_update_entry_exit_and_calls): Likewise.
6339 (df_bb_verify): Likewise.
6341 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6343 * ddg.h (struct ddg_node): Strengthen fields "insn" and
6344 "first_note" from rtx to rtx_insn *.
6345 (get_node_of_insn): Likewise for param 2 "insn".
6346 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6348 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6350 (mem_write_insn_p): Likewise.
6351 (mem_access_insn_p): Likewise.
6352 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6353 (def_has_ccmode_p): Likewise for param "insn".
6354 (add_cross_iteration_register_deps): Likewise for locals
6355 "def_insn" and "use_insn".
6356 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6357 (build_intra_loop_deps): Likewise for local "src_insn".
6358 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
6360 (get_node_of_insn): Likewise for param "insn".
6362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6364 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
6365 (deletable_insn_p): Strengthen param "insn" from rtx to
6366 rtx_insn *. Add checked cast to rtx_call_insn when invoking
6367 find_call_stack_args, since this is guarded by CALL_P (insn).
6368 (marked_insn_p): Strengthen param "insn" from rtx to
6370 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
6371 invoking find_call_stack_args, since this is guarded by
6373 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
6374 rtx_insn *; we know this is an insn since this was called by
6376 (mark_nonreg_stores_2): Likewise.
6377 (mark_nonreg_stores): Strengthen param "insn" from rtx to
6379 (find_call_stack_args): Strengthen param "call_insn" from rtx to
6380 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
6382 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
6383 from rtx to rtx_insn *.
6384 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
6386 (delete_unmarked_insns): Likewise for locals "insn", "next".
6387 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
6388 (mark_reg_dependencies): Likewise for param "insn".
6389 (rest_of_handle_ud_dce): Likewise for local "insn".
6390 (word_dce_process_block): Likewise.
6391 (dce_process_block): Likewise.
6393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6395 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
6396 from rtx to rtx_insn *.
6397 (struct change_cc_mode_args): Likewise for field "insn".
6398 (this_insn): Strengthen from rtx to rtx_insn *.
6399 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
6401 (validate_canon_reg): Strengthen param "insn" from rtx to
6403 (canon_reg): Likewise.
6404 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
6406 (record_jump_equiv): Strengthen param "insn" from rtx to
6408 (try_back_substitute_reg): Likewise, also for locals "prev",
6410 (find_sets_in_insn): Likewise for param "insn".
6411 (canonicalize_insn): Likewise.
6412 (cse_insn): Likewise. Add a checked cast.
6413 (invalidate_from_clobbers): Likewise for param "insn".
6414 (invalidate_from_sets_and_clobbers): Likewise.
6415 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6417 (cse_prescan_path): Strengthen local "insn" from rtx to
6419 (cse_extended_basic_block): Likewise for locals "insn" and
6421 (cse_main): Likewise for param "f".
6422 (check_for_label_ref): Likewise for local "insn".
6423 (set_live_p): Likewise for second param ("insn").
6424 (insn_live_p): Likewise for first param ("insn") and for local
6426 (cse_change_cc_mode_insn): Likewise for first param "insn".
6427 (cse_change_cc_mode_insns): Likewise for first and second params
6429 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6431 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6434 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6436 Anna Tikhonova <anna.tikhonova@intel.com>
6437 Ilya Tocar <ilya.tocar@intel.com>
6438 Andrey Turetskiy <andrey.turetskiy@intel.com>
6439 Ilya Verbin <ilya.verbin@intel.com>
6440 Kirill Yukhin <kirill.yukhin@intel.com>
6441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6443 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6445 * config/i386/sse.md
6446 (define_mode_iterator VI248_AVX2): Delete.
6447 (define_mode_iterator VI2_AVX2_AVX512BW): New.
6448 (define_mode_iterator VI48_AVX2): Ditto.
6449 (define_insn <shift_insn><mode>3): Delete.
6450 (define_insn "<shift_insn><mode>3<mask_name>" with
6451 VI2_AVX2_AVX512BW): New.
6452 (define_insn "<shift_insn><mode>3<mask_name>" with
6455 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6456 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6457 Anna Tikhonova <anna.tikhonova@intel.com>
6458 Ilya Tocar <ilya.tocar@intel.com>
6459 Andrey Turetskiy <andrey.turetskiy@intel.com>
6460 Ilya Verbin <ilya.verbin@intel.com>
6461 Kirill Yukhin <kirill.yukhin@intel.com>
6462 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6464 * config/i386/sse.md
6465 (define_mode_iterator VI4F_BRCST32x2): New.
6466 (define_mode_attr 64x2_mode): Ditto.
6467 (define_mode_attr 32x2mode): Ditto.
6468 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6469 with VI4F_BRCST32x2): Ditto.
6470 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6471 with V16FI mode iterator): Ditto.
6472 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6474 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6475 with VI8F_BRCST64x2): Ditto.
6477 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6479 Anna Tikhonova <anna.tikhonova@intel.com>
6480 Ilya Tocar <ilya.tocar@intel.com>
6481 Andrey Turetskiy <andrey.turetskiy@intel.com>
6482 Ilya Verbin <ilya.verbin@intel.com>
6483 Kirill Yukhin <kirill.yukhin@intel.com>
6484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6486 * config/i386/sse.md
6487 (define_mode_iterator VI8_AVX512VL): New.
6488 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6490 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
6492 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6493 (define_mode_iterator V48_AVX512VL): New.
6494 (define_mode_iterator V12_AVX512VL): Ditto.
6495 (define_insn <avx512>_load<mode>_mask): Split into two similar
6496 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6497 Refactor output template.
6498 (define_insn "<avx512>_store<mode>_mask"): Ditto.
6500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6502 * cprop.c (struct occr): Strengthen field "insn" from rtx to
6504 (reg_available_p): Likewise for param "insn".
6505 (insert_set_in_table): Likewise.
6506 (hash_scan_set): Likewise.
6507 (hash_scan_insn): Likewise.
6508 (make_set_regs_unavailable): Likewise.
6509 (compute_hash_table_work): Likewise for local "insn".
6510 (reg_not_set_p): Strengthen param "insn" from const_rtx to
6512 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6513 (try_replace_reg): Likewise.
6514 (find_avail_set): Likewise.
6515 (cprop_jump): Likewise for params "setcc", "jump".
6516 (constprop_register): Likewise for param "insn".
6517 (cprop_insn): Likewise.
6518 (do_local_cprop): Likewise.
6519 (local_cprop_pass): Likewise for local "insn".
6520 (bypass_block): Likewise for params "setcc" and "jump".
6521 (bypass_conditional_jumps): Likewise for locals "setcc" and
6523 (one_cprop_pass): Likewise for local "insn".
6525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6527 * compare-elim.c (struct comparison_use): Strengthen field "insn"
6528 from rtx to rtx_insn *.
6529 (struct comparison): Likewise, also for field "prev_clobber".
6530 (conforming_compare): Likewise for param "insn".
6531 (arithmetic_flags_clobber_p): Likewise.
6532 (find_flags_uses_in_insn): Likewise.
6533 (find_comparison_dom_walker::before_dom_children): Likewise for
6534 locals "insn", "next", "last_clobber".
6535 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6539 * combine-stack-adj.c (struct csa_reflist): Strengthen field
6540 "insn" from rtx to rtx_insn *.
6541 (single_set_for_csa): Likewise for param "insn".
6542 (record_one_stack_ref): Likewise.
6543 (try_apply_stack_adjustment): Likewise.
6544 (struct record_stack_refs_data): Likewise for field "insn".
6545 (maybe_move_args_size_note): Likewise for params "last" and "insn".
6546 (prev_active_insn_bb): Likewise for return type and param "insn".
6547 (next_active_insn_bb): Likewise.
6548 (force_move_args_size_note): Likewise for params "prev" and "last"
6549 and locals "test", "next_candidate", "prev_candidate".
6550 (combine_stack_adjustments_for_block): Strengthen locals
6551 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6554 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6556 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6557 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6558 (subst_insn): Likewise for this variable.
6559 (added_links_insn): Likewise.
6560 (struct insn_link): Likewise for field "insn".
6561 (alloc_insn_link): Likewise for param "insn".
6562 (struct undobuf): Likewise for field "other_insn".
6563 (find_single_use): Likewise for param "insn" and local "next".
6564 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6565 (delete_noop_moves): Likewise for locals "insn", "next".
6566 (create_log_links): Likewise for locals "insn", "use_insn".
6567 Strengthen local "next_use" from rtx * to rtx_insn **.
6568 (insn_a_feeds_b): Likewise for params "a", "b".
6569 (combine_instructions): Likewise for param "f" and locals "insn",
6570 "next", "prev", "first", "last_combined_insn", "link", "link1",
6571 "temp". Replace use of NULL_RTX with NULL when referring to
6573 (setup_incoming_promotions): Likewise for param "first"
6574 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6575 (can_combine_p): Likewise for params "insn", "i3", "pred",
6576 "pred2", "succ", "succ2" and for local "p".
6577 (combinable_i3pat): Likewise for param "i3".
6578 (cant_combine_insn_p): Likewise for param "insn".
6579 (likely_spilled_retval_p): Likewise.
6580 (adjust_for_new_dest): Likewise.
6581 (update_cfg_for_uncondjump): Likewise, also for local "insn".
6582 (try_combine): Likewise for return type and for params "i3", "i2",
6583 "i1", "i0", "last_combined_insn", and for locals "insn",
6584 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6585 "i0_insn". Eliminate local "tem" in favor of new locals
6586 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
6587 checked cast for now to rtx_insn * on the return type of
6588 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
6590 (find_split_point): Strengthen param "insn" from rtx to
6592 (simplify_set): Likewise for local "other_insn".
6593 (recog_for_combine): Likewise for param "insn".
6594 (record_value_for_reg): Likewise.
6595 (record_dead_and_set_regs_1): Likewise for local
6597 (record_dead_and_set_regs): Likewise for param "insn".
6598 (record_promoted_value): Likewise.
6599 (check_promoted_subreg): Likewise.
6600 (get_last_value_validate): Likewise.
6601 (reg_dead_at_p): Likewise.
6602 (move_deaths): Likewise for param "to_insn".
6603 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6604 and locals "place", "place2", "cc0_setter". Eliminate local "tem
6605 in favor of new locals "tem_note" and "tem_insn", the latter being
6607 (distribute_links): Strengthen locals "place", "insn" from rtx to
6610 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6612 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6614 (can_delete_label_p): Require a const rtx_code_label * rather than
6616 (delete_insn): Add checked cast to rtx_code_label * when we know
6617 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
6619 (delete_insn_chain): Strengthen locals "prev" and "current" from
6620 rtx to rtx_insn *. Add a checked cast when assigning from
6621 "finish" (strengthening the params will come later). Add a
6622 checked cast to rtx_note * in region where we know
6624 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6626 (compute_bb_for_insn): Likewise.
6627 (free_bb_for_insn): Likewise for local "insn".
6628 (compute_bb_for_insn): Likewise.
6629 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6630 local "insn" from rtx to rtx_insn *
6631 (flow_active_insn_p): Require a const rtx_insn * rather than a
6633 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6635 (can_fallthru): Likewise for locals "insn" and "insn2".
6636 (bb_note): Likewise for local "note".
6637 (first_insn_after_basic_block_note): Likewise for local "note" and
6639 (rtl_split_block): Likewise for locals "insn" and "next".
6640 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6642 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6643 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6645 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6646 them), "kill_from", "barrier", "new_insn".
6647 (patch_jump_insn): Likewise for params "insn", "old_label".
6648 (redirect_branch_edge): Likewise for locals "old_label", "insn".
6649 (force_nonfallthru_and_redirect): Likewise for locals "insn",
6650 "old_label", "new_label".
6651 (rtl_tidy_fallthru_edge): Likewise for local "q".
6652 (rtl_split_edge): Likewise for locals "before", "last".
6653 (commit_one_edge_insertion): Likewise for locals "before",
6654 "after", "insns", "tmp", "last", adding a checked cast where
6655 currently necessary.
6656 (commit_edge_insertions): Likewise.
6657 (rtl_dump_bb): Likewise for locals "insn", "last".
6658 (print_rtl_with_bb): Likewise for local "x".
6659 (rtl_verify_bb_insns): Likewise for local "x".
6660 (rtl_verify_bb_pointers): Likewise for local "insn".
6661 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6663 (rtl_verify_fallthru): Likewise for local "insn".
6664 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6665 (purge_dead_edges): Likewise for local "insn".
6666 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6667 (skip_insns_after_block): Likewise for return type and for locals
6668 "insn", "last_insn", "next_head", "prev".
6669 (record_effective_endpoints): Likewise for locals "next_insn",
6671 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6672 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6673 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6674 (duplicate_insn_chain): For now, add checked cast from rtx to
6675 rtx_insn * when returning insn.
6676 (cfg_layout_duplicate_bb): Likewise for local "insn".
6677 (cfg_layout_delete_block): Likewise for locals "insn", "next",
6679 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6680 (rtl_block_empty_p): Likewise.
6681 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6682 "split_point", "last".
6683 (rtl_block_ends_with_call_p): Likewise for local "insn".
6684 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6686 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6687 "split_at_insn" from rtx to rtx_insn *.
6688 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6689 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6690 to const rtx_insn *.
6691 (rtl_account_profile_record): Likewise.
6693 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6695 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6697 (average_num_loop_insns): Likewise.
6698 (init_set_costs): Likewise for local "seq".
6699 (seq_cost): Likewise for param "seq", from const_rtx to const
6702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6704 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6707 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6709 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6710 "f1" and "f2" from rtx * to rtx_insn **.
6711 (flow_find_head_matching_sequence): Likewise.
6713 * cfgcleanup.c (try_simplify_condjump): Strengthen local
6714 "cbranch_insn" from rtx to rtx_insn *.
6715 (thread_jump): Likewise for local "insn".
6716 (try_forward_edges): Likewise for local "last".
6717 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6718 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6720 (can_replace_by): Likewise for params "i1", "i2".
6721 (old_insns_match_p): Likewise.
6722 (merge_notes): Likewise.
6723 (walk_to_nondebug_insn): Likewise for param "i1".
6724 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6725 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
6726 "afterlast1", "afterlast2" from rtx to rtx_insn *.
6727 (flow_find_head_matching_sequence): Strengthen params "f1" and
6728 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
6729 "last1", "last2", "beforelast1", "beforelast2" from rtx to
6731 (outgoing_edges_match): Likewise for locals "last1", "last2".
6732 (try_crossjump_to_edge): Likewise for local "insn".
6733 Replace call to for_each_rtx with for_each_rtx_in_insn.
6735 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6736 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6737 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
6738 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6739 (try_optimize_cfg): Strengthen local "last" from rtx to
6741 (delete_dead_jumptables): Likewise for locals "insn", "next",
6744 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6745 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6746 "rtx else_first_tail", to reflect the basic-block.h changes above.
6748 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6750 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6752 (purge_dead_tablejump_edges): Likewise.
6753 (find_bb_boundaries): Likewise for locals "insn", "end",
6754 "flow_transfer_insn".
6756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6758 * caller-save.c (save_call_clobbered_regs): Strengthen locals
6759 "ins" and "prev" from rtx to rtx_insn *.
6761 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6763 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6765 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6766 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6768 (load_register_parameters): Likewise for local "before_arg".
6769 (check_sibcall_argument_overlap): Likewise for param "insn".
6770 (expand_call): Likewise for locals "normal_call_insns",
6771 "tail_call_insns", "insns", "before_call", "after_args",
6772 "before_arg", "last", "prev". Strengthen one of the "last" from
6773 rtx to rtx_call_insn *.
6774 (fixup_tail_calls): Strengthen local "insn" from rtx to
6776 (emit_library_call_value_1): Likewise for locals "before_call" and
6779 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6781 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6782 and "last" from rtx to rtx_insn *.
6783 (expand_builtin_nonlocal_goto): Likewise for local "insn".
6784 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6786 (expand_errno_check): Strengthen local "lab" from rtx to
6788 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6790 (expand_builtin_mathfn_2): Likewise.
6791 (expand_builtin_mathfn_ternary): Likewise.
6792 (expand_builtin_mathfn_3): Likewise.
6793 (expand_builtin_interclass_mathfn): Likewise for local "last".
6794 (expand_builtin_int_roundingfn): Likewise for local "insns".
6795 (expand_builtin_int_roundingfn_2): Likewise.
6796 (expand_builtin_strlen): Likewise for local "before_strlen".
6797 (expand_builtin_strncmp): Likewise for local "seq".
6798 (expand_builtin_signbit): Likewise for local "last".
6799 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6800 from rtx to rtx_code_label *.
6801 (expand_stack_restore): Strengthen local "prev" from rtx to
6804 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6806 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6808 (struct btr_def_s): Likewise.
6809 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6811 (add_btr_def): Likewise.
6812 (new_btr_user): Likewise.
6813 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6815 (link_btr_uses): Likewise.
6816 (move_btr_def): Likewise for locals "insp", "old_insn",
6817 "new_insn". Add checked cast to rtx_insn * for now on result of
6819 (can_move_up): Strengthen param "insn" from const_rtx to
6822 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6824 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6826 (get_uncond_jump_length): Likewise for locals "label", "jump".
6827 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6829 (add_labels_and_missing_jumps): Likewise for local "new_jump".
6830 (fix_up_fall_thru_edges): Likewise for local "old_jump".
6831 (find_jump_block): Likewise for local "insn".
6832 (fix_crossing_conditional_branches): Likewise for locals
6833 "old_jump", "new_jump".
6834 (fix_crossing_unconditional_branches): Likewise for locals
6835 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6836 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6840 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6842 (struct mem_insn): Likewise for field "insn".
6843 (reg_next_use): Strengthen from rtx * to rtx_insn **.
6844 (reg_next_inc_use): Likewise.
6845 (reg_next_def): Likewise.
6846 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6847 from rtx to rtx_insn *.
6848 (move_insn_before): Likewise for param "next_insn" and local "insns".
6849 (attempt_change): Likewise for local "mov_insn".
6850 (try_merge): Likewise for param "last_insn".
6851 (get_next_ref): Likewise for return type and local "insn".
6852 Strengthen param "next_array" from rtx * to rtx_insn **.
6853 (parse_add_or_inc): Strengthen param "insn" from rtx to
6855 (find_inc): Likewise for locals "insn" and "other_insn" (three of
6857 (merge_in_block): Likewise for locals "insn", "curr",
6859 (pass_inc_dec::execute): Update allocations of the arrays to
6860 reflect the stronger types.
6862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6864 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6865 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
6866 from rtx to rtx_code_label *.
6868 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6870 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6873 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6875 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6876 generated a warning and prevented bootstrapping the compiler.
6878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6880 * rtl.h (delete_related_insns): Strengthen return type from rtx to
6883 * jump.c (delete_related_insns): Likewise, also for locals "next"
6886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6888 * genautomata.c (output_internal_insn_latency_func): When writing
6889 the function "internal_insn_latency" to insn-automata.c,
6890 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6891 allowing the optional guard function of (define_bypass) clauses to
6892 expect a pair of rtx_insn *, rather than a pair of rtx.
6893 (output_insn_latency_func): When writing the function
6894 "insn_latency", add an "uncast_" prefix to params "insn" and
6895 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6896 using checked casts from the params, thus enabling the above
6897 change to the generated "internal_insn_latency" function.
6899 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
6901 PR tree-optimization/62091
6902 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6903 handle correctly arrays.
6904 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6906 (record_known_type): Walk into inner type.
6907 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6908 condition on no type changes.
6910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6912 * genattrtab.c (write_attr_get): Within the generated get_attr_
6913 functions, rename param "insn" to "uncast_insn" and reintroduce
6914 "insn" as an local rtx_insn * using a checked cast, so that "insn"
6915 is an rtx_insn * within insn-attrtab.c
6917 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6919 * output.h (peephole): Strengthen return type from rtx to
6921 * rtl.h (delete_for_peephole): Likewise for both params.
6922 * genpeep.c (main): In generated "peephole" function, strengthen
6923 return type and local "insn" from rtx to rtx_insn *. For now,
6924 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6925 rtx_insn *, with a checked cast.
6926 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6927 locals "insn", "next", "prev" from rtx to rtx_insn *.
6929 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
6931 PR tree-optimization/62112
6932 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6933 * gimple-iterator.h (gsi_replace): Return bool.
6934 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6935 moved from ref_may_alias_global_p.
6936 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6938 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6939 (stmt_kills_ref_p_1): Rename...
6940 (stmt_kills_ref_p): ... to this.
6941 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6942 stmt_kills_ref_p): Declare.
6943 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6944 Move the self-assignment case...
6945 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6947 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6949 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6951 * emit-rtl.c (try_split): Likewise, also for locals "before" and
6952 "after". For now, don't strengthen param "trial", which requires
6953 adding checked casts when returning it.
6955 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6957 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6958 "label" from rtx to rtx_code_label *. Strengthen param 1 of
6959 "var_location" hook from rtx to rtx_insn *.
6960 (debug_nothing_rtx): Delete in favor of...
6961 (debug_nothing_rtx_code_label): New prototype.
6962 (debug_nothing_rtx_rtx): Delete unused prototype.
6963 (debug_nothing_rtx_insn): New prototype.
6965 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6966 invoking debug_hooks->var_location (in two places, one in a NOTE
6967 case of a switch statement, the other guarded by a CALL_P
6968 conditional. Add checked cast to rtx_code_label * when invoking
6969 debug_hooks->label (within CODE_LABEL case of switch statement).
6971 * dbxout.c (dbx_debug_hooks): Update "label" hook from
6972 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6973 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6974 (xcoff_debug_hooks): Likewise.
6975 * debug.c (do_nothing_debug_hooks): Likewise.
6976 (debug_nothing_rtx): Delete in favor of...
6977 (debug_nothing_rtx_insn): New function.
6978 (debug_nothing_rtx_rtx): Delete unused function.
6979 (debug_nothing_rtx_code_label): New function.
6980 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6981 debug_nothing_rtx to debug_nothing_rtx_code_label.
6982 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6984 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6985 debug_nothing_rtx to debug_nothing_rtx_insn.
6986 (sdbout_label): Strengthen param "insn" from rtx to
6988 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6989 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6990 "var_location" hook from debug_nothing_rtx to
6991 debug_nothing_rtx_insn.
6993 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6995 * recog.h (insn_output_fn): Update this function typedef to match
6996 the changes below to the generated output functions, strengthening
6997 the 2nd param from rtx to rtx_insn *.
6999 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7000 insn when invoking an output function, to match the new signature
7001 of insn_output_fn with a stronger second param.
7003 * genconditions.c (write_header): In the generated code for
7004 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7005 to match the other changes in this patch.
7007 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7008 the generated "gen_" functions from rtx to rtx_insn * within their
7011 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7012 the subfunctions within the generated "recog_", "split", "peephole2"
7013 function trees from rtx to rtx_insn *. For now, the top-level
7014 generated functions ("recog", "split", "peephole2") continue to
7015 take a plain rtx for "insn", to avoid introducing dependencies on
7016 other patches. Rename this 2nd param from "insn" to
7017 "uncast_insn", and reintroduce "insn" as a local variable of type
7018 rtx_insn *, initialized at the top of the generated function with
7019 a checked cast on "uncast_insn".
7020 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7021 the generated "gen_" functions from rtx to rtx_insn * within their
7024 * genoutput.c (process_template): Strengthen the 2nd param within
7025 the generated "output_" functions "insn" from rtx to rtx_insn *.
7027 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7029 * tree-profile.c (tree_profiling): Skip external functions
7030 when doing coverage instrumentation.
7031 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7033 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7035 * config/rs6000/altivec.h (vec_cpsgn): New #define.
7036 (vec_mergee): Likewise.
7037 (vec_mergeo): Likewise.
7038 (vec_cntlz): Likewise.
7039 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7040 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7041 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7043 * doc/extend.texi: Document various forms of vec_cpsgn,
7044 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7045 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7046 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7047 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7048 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7050 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7052 * config/rs6000/rs6000.c (context.h): New include.
7053 (tree-pass.h): Likewise.
7054 (make_pass_analyze_swaps): New decl.
7055 (rs6000_option_override): Register pass_analyze_swaps.
7056 (swap_web_entry): New subsclass of web_entry_base (df.h).
7057 (special_handling_values): New enum.
7058 (union_defs): New function.
7059 (union_uses): Likewise.
7060 (insn_is_load_p): Likewise.
7061 (insn_is_store_p): Likewise.
7062 (insn_is_swap_p): Likewise.
7063 (rtx_is_swappable_p): Likewise.
7064 (insn_is_swappable_p): Likewise.
7065 (chain_purpose): New enum.
7066 (chain_contains_only_swaps): New function.
7067 (mark_swaps_for_removal): Likewise.
7068 (swap_const_vector_halves): Likewise.
7069 (adjust_subreg_index): Likewise.
7070 (permute_load): Likewise.
7071 (permute_store): Likewise.
7072 (handle_special_swappables): Likewise.
7073 (replace_swap_with_copy): Likewise.
7074 (dump_swap_insn_table): Likewise.
7075 (rs6000_analyze_swaps): Likewise.
7076 (pass_data_analyze_swaps): New pass_data.
7077 (pass_analyze_swaps): New rtl_opt_pass.
7078 (make_pass_analyze_swaps): New function.
7079 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7081 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7083 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7084 type from rtx to rtx_insn *.
7085 (create_copy_of_insn_rtx): Likewise.
7086 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7087 (create_copy_of_insn_rtx): Likewise, also for local "res".
7089 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7091 * rtl.h (find_first_parameter_load): Strengthen return type from
7093 * rtlanal.c (find_first_parameter_load): Strengthen return type
7094 from rtx to rtx_insn *. Add checked cast for now, to postpone
7095 strengthening the params.
7097 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7100 * diagnostic.c: Set default caret.
7101 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7103 * diagnostic.h (struct diagnostic_context):
7105 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7107 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7108 (sel_bb_head): Strengthen return type insn_t (currently just an
7110 (sel_bb_end): Likewise.
7112 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7113 (sel_bb_head): Strengthen return type and local "head" from
7114 insn_t (currently just an rtx) to rtx_insn *.
7115 (sel_bb_end): Likewise for return type.
7116 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7119 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7121 * basic-block.h (get_last_bb_insn): Strengthen return type from
7123 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7126 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7129 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7131 (diagnostic_report_diagnostic): ... from here.
7132 * toplev.c (general_init): Move code to c-family.
7134 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7136 * df.h (web_entry_base): Replace existing struct web_entry with a
7137 new class web_entry_base with only the predecessor member.
7138 (unionfind_root): Remove declaration and move to class member.
7139 (unionfind_union): Remove declaration and move to friend
7141 (union_defs): Remove declaration.
7142 * web.c (web_entry_base::unionfind_root): Modify to be member
7143 function and adjust accessors.
7144 (unionfind_union): Modify to be friend function and adjust
7146 (web_entry): New subclass of web_entry_base containing the reg
7148 (union_match_dups): Modify for struct -> class changes.
7149 (union_defs): Likewise.
7150 (entry_register): Likewise.
7151 (pass_web::execute): Likewise.
7153 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
7155 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7156 builtin define __VEC_ELEMENT_REG_ORDER__.
7158 2014-08-20 Martin Jambor <mjambor@suse.cz>
7159 Wei Mi <wmi@google.com>
7163 * tree-ssa-operands.c (update_stmt_operands): Remove
7164 MODIFIED_NORETURN_CALLS.
7165 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7166 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7167 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7168 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7169 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7170 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7171 (gimple_call_set_ctrl_altering): New func.
7172 (gimple_call_ctrl_altering_p): Ditto.
7173 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7174 (make_blocks): Use gimple_call_initialize_ctrl_altering.
7175 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7176 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7177 remove MODIFIED_NORETURN_CALLS.
7179 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7181 * coverage.c (coverage_compute_profile_id): Return non-0;
7182 also handle symbols with unique name.
7183 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7185 2014-08-20 Steve Ellcey <sellcey@mips.com>
7188 * doc/sourcebuild.texi (non_strict_align): New.
7190 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7192 * cgraphunit.c (ipa_passes, compile): Reshedule
7193 symtab_remove_unreachable_nodes passes; update comments.
7194 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7195 TODO_remove_functions before the pass; the functions ought to be
7197 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7198 TODO_remove_functions.
7199 * passes.c (pass_data_early_local_passes): Do not schedule function
7201 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7203 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7206 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7207 before setting the option.
7208 * diagnostic.c (diagnostic_classify_diagnostic): Record
7209 command-line status.
7211 2014-08-20 Richard Biener <rguenther@suse.de>
7214 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7215 to build uint{16,32,64}_type_node.
7217 2014-08-20 Terry Guo <terry.guo@arm.com>
7219 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7220 with immediate_operand.
7222 2014-08-20 David Malcolm <dmalcolm@redhat.com>
7224 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7225 "insn" from an as_a to a safe_as_a, for the case when "insn" is
7228 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7230 PR preprocessor/51303
7231 * incpath.c (remove_duplicates): Use cpp_warning.
7233 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7237 * doc/options.texi (CPP): Document it.
7238 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7239 * optc-gen.awk: Handle CPP.
7240 * opth-gen.awk: Likewise.
7242 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7244 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
7246 (duplicate_insn_chain): Likewise.
7247 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7248 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
7249 checked cast for now (until we can strengthen the params in the
7251 (duplicate_insn_chain): Likewise.
7253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7255 * rtl.h (next_cc0_user): Strengthen return type from rtx to
7257 (prev_cc0_setter): Likewise.
7259 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
7260 rtx_insn *, adding checked casts for now as necessary.
7261 (prev_cc0_setter): Likewise.
7263 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7265 * expr.h (emit_move_insn): Strengthen return type from rtx to
7267 (emit_move_insn_1): Likewise.
7268 (emit_move_complex_push): Likewise.
7269 (emit_move_complex_parts): Likewise.
7271 * expr.c (emit_move_via_integer): Strengthen return type from rtx
7272 to rtx_insn *. Replace use of NULL_RTX with NULL when working
7274 (emit_move_complex_push): Strengthen return type from rtx to
7276 (emit_move_complex): Likewise, also for local "ret".
7277 (emit_move_ccmode): Likewise.
7278 (emit_move_multi_word): Likewise for return type and locals
7280 (emit_move_insn_1): Likewise for return type and locals "result",
7282 (emit_move_insn): Likewise for return type and local "last_insn".
7283 (compress_float_constant): Likewise.
7285 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7287 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
7288 from rtx to rtx_insn *.
7290 * rtl.h (emit_insn_before): Likewise.
7291 (emit_insn_before_noloc): Likewise.
7292 (emit_insn_before_setloc): Likewise.
7293 (emit_jump_insn_before): Likewise.
7294 (emit_jump_insn_before_noloc): Likewise.
7295 (emit_jump_insn_before_setloc): Likewise.
7296 (emit_call_insn_before): Likewise.
7297 (emit_call_insn_before_noloc): Likewise.
7298 (emit_call_insn_before_setloc): Likewise.
7299 (emit_debug_insn_before): Likewise.
7300 (emit_debug_insn_before_noloc): Likewise.
7301 (emit_debug_insn_before_setloc): Likewise.
7302 (emit_label_before): Likewise.
7303 (emit_insn_after): Likewise.
7304 (emit_insn_after_noloc): Likewise.
7305 (emit_insn_after_setloc): Likewise.
7306 (emit_jump_insn_after): Likewise.
7307 (emit_jump_insn_after_noloc): Likewise.
7308 (emit_jump_insn_after_setloc): Likewise.
7309 (emit_call_insn_after): Likewise.
7310 (emit_call_insn_after_noloc): Likewise.
7311 (emit_call_insn_after_setloc): Likewise.
7312 (emit_debug_insn_after): Likewise.
7313 (emit_debug_insn_after_noloc): Likewise.
7314 (emit_debug_insn_after_setloc): Likewise.
7315 (emit_label_after): Likewise.
7316 (emit_insn): Likewise.
7317 (emit_debug_insn): Likewise.
7318 (emit_jump_insn): Likewise.
7319 (emit_call_insn): Likewise.
7320 (emit_label): Likewise.
7321 (gen_clobber): Likewise.
7322 (emit_clobber): Likewise.
7323 (gen_use): Likewise.
7324 (emit_use): Likewise.
7327 (emit_barrier_before): Strengthen return type from rtx to
7329 (emit_barrier_after): Likewise.
7330 (emit_barrier): Likewise.
7332 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
7333 from rtx to rtx_insn *. Add checked casts for now when converting
7334 "last" from rtx to rtx_insn *.
7335 (emit_insn_before_noloc): Likewise for return type.
7336 (emit_jump_insn_before_noloc): Likewise.
7337 (emit_call_insn_before_noloc): Likewise.
7338 (emit_debug_insn_before_noloc): Likewise.
7339 (emit_barrier_before): Strengthen return type and local "insn"
7340 from rtx to rtx_barrier *.
7341 (emit_label_before): Strengthen return type from rtx to
7342 rtx_insn *. Add checked cast for now when returning param
7343 (emit_pattern_after_noloc): Strengthen return type from rtx to
7344 rtx_insn *. Add checked casts for now when converting "last" from
7346 (emit_insn_after_noloc): Strengthen return type from rtx to
7348 (emit_jump_insn_after_noloc): Likewise.
7349 (emit_call_insn_after_noloc): Likewise.
7350 (emit_debug_insn_after_noloc): Likewise.
7351 (emit_barrier_after): Strengthen return type from rtx to
7353 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7354 Add checked cast for now when converting "label" from rtx to
7356 (emit_pattern_after_setloc): Strengthen return type from rtx to
7357 rtx_insn *. Add checked casts for now when converting "last" from
7359 (emit_pattern_after): Strengthen return type from rtx to
7361 (emit_insn_after_setloc): Likewise.
7362 (emit_insn_after): Likewise.
7363 (emit_jump_insn_after_setloc): Likewise.
7364 (emit_jump_insn_after): Likewise.
7365 (emit_call_insn_after_setloc): Likewise.
7366 (emit_call_insn_after): Likewise.
7367 (emit_debug_insn_after_setloc): Likewise.
7368 (emit_debug_insn_after): Likewise.
7369 (emit_pattern_before_setloc): Likewise. Add checked casts for now
7370 when converting "last" from rtx to rtx_insn *.
7371 (emit_pattern_before): Strengthen return type from rtx to
7373 (emit_insn_before_setloc): Likewise.
7374 (emit_insn_before): Likewise.
7375 (emit_jump_insn_before_setloc): Likewise.
7376 (emit_jump_insn_before): Likewise.
7377 (emit_call_insn_before_setloc): Likewise.
7378 (emit_call_insn_before): Likewise.
7379 (emit_debug_insn_before_setloc): Likewise.
7380 (emit_debug_insn_before): Likewise.
7381 (emit_insn): Strengthen return type and locals "last", "insn",
7382 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
7383 within cases where we know we have an insn.
7384 (emit_debug_insn): Likewise.
7385 (emit_jump_insn): Likewise.
7386 (emit_call_insn): Strengthen return type and local "insn" from rtx
7388 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
7389 a checked cast to rtx_insn * for now on "label".
7390 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
7391 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
7392 (emit_use): Likewise.
7393 (gen_use): Likewise, also for local "seq".
7394 (emit): Likewise for return type and local "insn".
7395 (rtx_insn): Likewise for return type and local "new_rtx".
7397 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
7398 from rtx to rtx_barrier *.
7400 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
7401 changed return type from rtx to rtx_insn *, we must update
7402 "emit_fn" type, and this in turn means updating...
7403 (frame_insn): ...this. Strengthen return type from rtx to
7404 rtx_insn *. Introduce a new local "insn" of the appropriate type.
7406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7408 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
7409 rtx to rtx_jump_table_data *. Also for local.
7410 * rtl.h (emit_jump_table_data): Likewise.
7412 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7414 * basic-block.h (create_basic_block_structure): Strengthen third
7415 param "bb_note" from rtx to rtx_note *.
7416 * rtl.h (emit_note_before): Strengthen return type from rtx to
7418 (emit_note_after): Likewise.
7419 (emit_note): Likewise.
7420 (emit_note_copy): Likewise. Also, strengthen param similarly.
7421 * function.h (struct rtl_data): Strengthen field
7422 "x_stack_check_probe_note" from rtx to rtx_note *.
7424 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7425 from rtx to rtx_note *.
7426 * cfgrtl.c (create_basic_block_structure): Strengthen third param
7427 "bb_note" from rtx to rtx_note *.
7428 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
7429 when calling emit_note_copy.
7430 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7432 (emit_note_after): Likewise.
7433 (emit_note_before): Likewise.
7434 (emit_note_copy): Likewise. Also, strengthen param similarly.
7435 (emit_note): Likewise.
7436 * except.c (emit_note_eh_region_end): Likewise for return type.
7437 Strengthen local "next" from rtx to rtx_insn *.
7438 (convert_to_eh_region_ranges): Strengthen local "note"
7439 from rtx to rtx_note *.
7440 * final.c (change_scope): Likewise.
7441 (reemit_insn_block_notes): Likewise, for both locals named "note".
7442 Also, strengthen local "insn" from rtx to rtx_insn *.
7443 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7445 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7446 strengthen local "seq" from rtx to rtx_insn *.
7447 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7449 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7451 (get_bb_note_from_pool): Strengthen return type from rtx to
7453 (sel_create_basic_block): Strengthen local "new_bb_note" from
7454 insn_t to rtx_note *.
7455 * var-tracking.c (emit_note_insn_var_location): Strengthen local
7456 "note" from rtx to rtx_note *.
7457 (emit_notes_in_bb): Likewise.
7459 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7461 * function.h (struct rtl_data): Strengthen field
7462 "x_parm_birth_insn" from rtx to rtx_insn *.
7463 * function.c (struct assign_parm_data_all): Strengthen fields
7464 "first_conversion_insn" and "last_conversion_insn" from rtx to
7467 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7469 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7470 to rtx_insn *; also for local "var_end_seq".
7471 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7472 (maybe_cleanup_end_of_block): Likewise for param "last" and local
7474 (expand_gimple_cond): Likewise for locals "last2" and "last".
7475 (mark_transaction_restart_calls): Likewise for local "insn".
7476 (expand_gimple_stmt): Likewise for return type and locals "last"
7478 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7479 (avoid_complex_debug_insns): Likewise for param "insn".
7480 (expand_debug_locations): Likewise for locals "insn", "last",
7481 "prev_insn" and "insn2".
7482 (expand_gimple_basic_block): Likewise for local "last".
7483 (construct_exit_block): Likewise for locals "head", "end",
7485 (pass_expand::execute): Likewise for locals "var_seq",
7486 "var_ret_seq", "next".
7488 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7490 * asan.h (asan_emit_stack_protection): Strengthen return type from
7492 * asan.c (asan_emit_stack_protection): Likewise. Add local
7493 "insns" to hold the return value.
7495 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7497 * basic-block.h (bb_note): Strengthen return type from rtx to
7499 * sched-int.h (bb_note): Likewise.
7500 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
7502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7504 * rtl.h (make_insn_raw): Strengthen return type from rtx to
7507 * emit-rtl.c (make_insn_raw): Strengthen return type and local
7508 "insn" from rtx to rtx_insn *.
7509 (make_debug_insn_raw): Strengthen return type from rtx to
7510 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7511 (make_jump_insn_raw): Strengthen return type from rtx to
7512 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7513 (make_call_insn_raw): Strengthen return type from rtx to
7514 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7515 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7516 callback from rtx to rtx_insn *; likewise for local "insn" and
7517 "next", adding a checked cast to rtx_insn in the relevant cases of
7518 the switch statement.
7519 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7520 callback from rtx to rtx_insn *.
7521 (emit_pattern_after_setloc): Likewise.
7522 (emit_pattern_after): Likewise.
7523 (emit_pattern_before_setloc): Likewise.
7524 (emit_pattern_before): Likewise.
7526 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7528 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7530 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7531 accepting an rtx_insn *.
7532 (last_call_insn): Strengthen return type from rtx to
7535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7537 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7538 "insns" from rtx to rtx_insn *.
7539 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7540 locals "insn" and "prev".
7542 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7544 * rtl.h (tablejump_p): Strengthen third param from rtx * to
7545 rtx_jump_table_data **.
7547 * cfgbuild.c (make_edges): Introduce local "table", using it in
7548 place of "tmp" for jump table data.
7549 (find_bb_boundaries): Strengthen local "table" from rtx to
7550 rtx_jump_table_data *.
7551 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7552 (outgoing_edges_match): Likewise for locals "table1" and "table2".
7553 (try_crossjump_to_edge): Likewise.
7554 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7556 (patch_jump_insn): Introduce local "table", using it in place of
7557 "tmp" for jump table data.
7558 (force_nonfallthru_and_redirect): Introduce local "table", so that
7559 call to tablejump_p can receive an rtx_jump_table_data **. Update
7560 logic around the call to overwrite "note" appropriately if
7561 tablejump_p returns non-zero.
7562 (get_last_bb_insn): Introduce local "table", using it in place of
7563 "tmp" for jump table data.
7564 * dwarf2cfi.c (create_trace_edges): Likewise.
7566 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7567 from rtx to rtx_jump_table_data *.
7568 (create_fix_barrier): Strengthen local "tmp" from rtx to
7569 rtx_jump_table_data *.
7570 (arm_reorg): Likewise for local "table".
7572 * config/s390/s390.c (s390_chunkify_start): Likewise.
7574 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7576 * jump.c (delete_related_insns): Strengthen local "lab_next" from
7577 rtx to rtx_jump_table_data *.
7579 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7580 rtx_jump_table_data **. Add a checked cast when writing through
7581 the pointer: we know there that local "table" is non-NULL and that
7582 JUMP_TABLE_DATA_P (table) holds.
7583 (label_is_jump_target_p): Introduce local "table", using it in
7584 place of "tmp" for jump table data.
7586 2014-08-19 Marek Polacek <polacek@redhat.com>
7589 * doc/invoke.texi: Document -Wbool-compare.
7591 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7593 * rtl.h (entry_of_function): Strengthen return type from rtx to
7595 * cfgrtl.c (entry_of_function): Likewise.
7597 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7599 * emit-rtl.h (get_insns): Strengthen return type from rtx to
7600 rtx_insn *, adding a checked cast for now.
7601 (get_last_insn): Likewise.
7603 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7605 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7608 * emit-rtl.c (gen_label_rtx): Likewise.
7610 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7612 * rtl.h (previous_insn): Strengthen return type from rtx to
7614 (next_insn): Likewise.
7615 (prev_nonnote_insn): Likewise.
7616 (prev_nonnote_insn_bb): Likewise.
7617 (next_nonnote_insn): Likewise.
7618 (next_nonnote_insn_bb): Likewise.
7619 (prev_nondebug_insn): Likewise.
7620 (next_nondebug_insn): Likewise.
7621 (prev_nonnote_nondebug_insn): Likewise.
7622 (next_nonnote_nondebug_insn): Likewise.
7623 (prev_real_insn): Likewise.
7624 (next_real_insn): Likewise.
7625 (prev_active_insn): Likewise.
7626 (next_active_insn): Likewise.
7628 * emit-rtl.c (next_insn): Strengthen return type from rtx to
7629 rtx_insn *, adding a checked cast.
7630 (previous_insn): Likewise.
7631 (next_nonnote_insn): Likewise.
7632 (next_nonnote_insn_bb): Likewise.
7633 (prev_nonnote_insn): Likewise.
7634 (prev_nonnote_insn_bb): Likewise.
7635 (next_nondebug_insn): Likewise.
7636 (prev_nondebug_insn): Likewise.
7637 (next_nonnote_nondebug_insn): Likewise.
7638 (prev_nonnote_nondebug_insn): Likewise.
7639 (next_real_insn): Likewise.
7640 (prev_real_insn): Likewise.
7641 (next_active_insn): Likewise.
7642 (prev_active_insn): Likewise.
7644 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7645 param "stepfunc" so that it returns an rtx_insn * rather than an
7646 rtx, to track the change to prev_nonnote_insn_bb, which is the
7647 only function this is called with.
7648 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7650 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
7652 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7657 * coretypes.h (class rtx_debug_insn): Add forward declaration.
7658 (class rtx_nonjump_insn): Likewise.
7659 (class rtx_jump_insn): Likewise.
7660 (class rtx_call_insn): Likewise.
7661 (class rtx_jump_table_data): Likewise.
7662 (class rtx_barrier): Likewise.
7663 (class rtx_code_label): Likewise.
7664 (class rtx_note): Likewise.
7666 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7667 adding the invariant DEBUG_INSN_P (X).
7668 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7669 the invariant NONJUMP_INSN_P (X).
7670 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7671 the invariant JUMP_P (X).
7672 (class rtx_call_insn): New, a subclass of rtx_insn, adding
7673 the invariant CALL_P (X).
7674 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7675 invariant JUMP_TABLE_DATA_P (X).
7676 (class rtx_barrier): New, a subclass of rtx_insn, adding the
7677 invariant BARRIER_P (X).
7678 (class rtx_code_label): New, a subclass of rtx_insn, adding
7679 the invariant LABEL_P (X).
7680 (class rtx_note): New, a subclass of rtx_insn, adding
7681 the invariant NOTE_P(X).
7682 (is_a_helper <rtx_debug_insn *>::test): New.
7683 (is_a_helper <rtx_nonjump_insn *>::test): New.
7684 (is_a_helper <rtx_jump_insn *>::test): New.
7685 (is_a_helper <rtx_call_insn *>::test): New.
7686 (is_a_helper <rtx_jump_table_data *>::test): New functions,
7687 overloaded for both rtx and rtx_insn *.
7688 (is_a_helper <rtx_barrier *>::test): New.
7689 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7690 for both rtx and rtx_insn *.
7691 (is_a_helper <rtx_note *>::test): New.
7693 2014-08-19 Marek Polacek <polacek@redhat.com>
7695 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7696 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7697 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7698 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7700 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7702 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7703 rtx_insn *. To help with transition, for now, convert from an
7704 access macro into a pair of functions: BND_TO, returning an
7706 (SET_BND_TO): New function, for use where BND_TO is used as an
7709 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7711 (BND_TO): New function, adding a checked cast.
7712 (SET_BND_TO): New function.
7714 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7716 (compute_av_set_on_boundaries): Likewise.
7718 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7720 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7721 destination if it is used in source.
7722 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7723 (*popcount<mode>2_falsedep_1): Likewise.
7725 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7728 * configure.ac: Set install_gold_as_default to no first.
7729 * configure: Regenerated.
7731 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7733 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7734 "note_list" field will eventually be an rtx_insn *. To help with
7735 transition, for now, convert from an access macro into a pair of
7736 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7737 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7740 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7741 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7743 * sel-sched-ir.c (init_bb): Likewise.
7744 (sel_restore_notes): Likewise.
7745 (move_bb_info): Likewise.
7746 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7747 (SET_BB_NOTE_LIST): New function.
7749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7751 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7752 field will eventually be an rtx_insn *. To help with transition,
7753 for now, convert from an access macro into a pair of functions:
7754 VINSN_INSN_RTX, returning an rtx_insn *, and...
7755 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7756 is used as an lvalue.
7758 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7759 SET_VINSN_INSN_RTX where it's used as an lvalue.
7760 (VINSN_INSN_RTX): New function.
7761 (SET_VINSN_INSN_RTX): New function.
7763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7765 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7766 eventually be rtx_insn *, but to help with transition, for now,
7767 convert from an access macro into a pair of functions: DEP_PRO
7768 returning an rtx_insn * and...
7769 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7770 lvalue, returning an rtx&.
7771 (DEP_CON): Analogous changes to DEP_PRO above.
7772 (SET_DEP_CON): Likewise.
7774 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7775 an lvalue to SET_DEP_CON.
7776 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7777 (sd_copy_back_deps): Likewise for DEP_CON.
7778 (DEP_PRO): New function, adding a checked cast for now.
7779 (DEP_CON): Likewise.
7780 (SET_DEP_PRO): New function.
7781 (SET_DEP_CON): Likewise.
7783 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7785 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7786 (extra_options): Add i386/cygwin.opt.
7787 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7788 (CPP_SPEC): Accept -pthread.
7790 (GOMP_SELF_SPECS): Update comment.
7791 * config/i386/cygwin.opt: New file for -pthread flag.
7793 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7795 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7796 * df.h (DF_REF_INSN): Convert from a macro to a function, so
7797 that we can return an rtx_insn *.
7799 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7801 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7802 when building executables, not DLLs. Add --large-address-aware
7803 under the same conditions.
7804 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7805 when building executables, not DLLs. Add --large-address-aware
7806 under the same conditions when using -m32.
7808 * config/i386/cygwin-stdint.h: Throughout, make type
7809 definitions dependent on target architecture, not host.
7811 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7813 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
7814 the return type from rtx to rtx_insn *, which will enable various
7815 conversions in followup patches. For now this is is done by a
7817 (NEXT_INSN): Likewise.
7818 (SET_PREV_INSN): Convert to an inline function. This is intended
7819 for use as an lvalue, and so returns an rtx& to allow in-place
7821 (SET_NEXT_INSN): Likewise.
7823 2014-07-08 Mark Wielaard <mjw@redhat.com>
7826 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7828 2014-08-19 Marek Polacek <polacek@redhat.com>
7831 * cgraphunit.c (handle_alias_pairs): Fix condition.
7833 2014-08-19 Richard Biener <rguenther@suse.de>
7835 * gimple-fold.c (fold_gimple_assign): Properly build a
7836 null-pointer constant when devirtualizing addresses.
7838 2014-07-07 Mark Wielaard <mjw@redhat.com>
7840 * dwarf2out.c (decl_quals): New function.
7841 (modified_type_die): Take one cv_quals argument instead of two,
7842 one for const and one for volatile.
7843 (add_type_attribute): Likewise.
7844 (generic_parameter_die): Call add_type_attribute with one modifier
7846 (base_type_for_mode): Likewise.
7847 (add_bounds_info): Likewise.
7848 (add_subscript_info): Likewise.
7849 (gen_array_type_die): Likewise.
7850 (gen_descr_array_type_die): Likewise.
7851 (gen_entry_point_die): Likewise.
7852 (gen_enumeration_type_die): Likewise.
7853 (gen_formal_parameter_die): Likewise.
7854 (gen_subprogram_die): Likewise.
7855 (gen_variable_die): Likewise.
7856 (gen_const_die): Likewise.
7857 (gen_field_die): Likewise.
7858 (gen_pointer_type_die): Likewise.
7859 (gen_reference_type_die): Likewise.
7860 (gen_ptr_to_mbr_type_die): Likewise.
7861 (gen_inheritance_die): Likewise.
7862 (gen_subroutine_type_die): Likewise.
7863 (gen_typedef_die): Likewise.
7864 (force_type_die): Likewise.
7866 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7868 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7870 * configure: Regenerate.
7872 2014-08-19 Richard Biener <rguenther@suse.de>
7874 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7875 DECL_EXTERNALs in BLOCKs as non-references.
7876 * tree-streamer-out.c (streamer_write_chain): Likewise.
7878 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
7879 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7880 Anna Tikhonova <anna.tikhonova@intel.com>
7881 Ilya Tocar <ilya.tocar@intel.com>
7882 Andrey Turetskiy <andrey.turetskiy@intel.com>
7883 Ilya Verbin <ilya.verbin@intel.com>
7884 Kirill Yukhin <kirill.yukhin@intel.com>
7885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7887 * config/i386/sse.md
7888 (define_mode_iterator VI48_AVX512F): Delete.
7889 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7890 (define_mode_iterator VI2_AVX512VL): Ditto.
7891 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7894 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7896 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7897 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7898 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7899 with VI48_AVX512F_AVX512VL): New.
7900 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7901 with VI2_AVX512VL): Ditto.
7903 2014-08-19 Marek Polacek <polacek@redhat.com>
7905 * doc/invoke.texi: Document -Wc99-c11-compat.
7907 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7909 * rtl.h (PREV_INSN): Split macro in two: the existing one,
7911 (SET_PREV_INSN): New macro, for use as an lvalue.
7912 (NEXT_INSN, SET_NEXT_INSN): Likewise.
7914 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7915 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7916 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7917 (fixup_abnormal_edges): Likewise.
7918 (unlink_insn_chain): Likewise.
7919 (fixup_reorder_chain): Likewise.
7920 (cfg_layout_delete_block): Likewise.
7921 (cfg_layout_merge_blocks): Likewise.
7922 * combine.c (update_cfg_for_uncondjump): Likewise.
7923 * emit-rtl.c (link_insn_into_chain): Likewise.
7924 (remove_insn): Likewise.
7925 (delete_insns_since): Likewise.
7926 (reorder_insns_nobb): Likewise.
7927 (emit_insn_after_1): Likewise.
7928 * final.c (rest_of_clean_state): Likewise.
7929 (final_scan_insn): Likewise.
7930 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7931 * haifa-sched.c (concat_note_lists): Likewise.
7932 (remove_notes): Likewise.
7933 (restore_other_notes): Likewise.
7934 (move_insn): Likewise.
7935 (unlink_bb_notes): Likewise.
7936 (restore_bb_notes): Likewise.
7937 * jump.c (delete_for_peephole): Likewise.
7938 * optabs.c (emit_libcall_block_1): Likewise.
7939 * reorg.c (emit_delay_sequence): Likewise.
7940 (fill_simple_delay_slots): Likewise.
7941 * sel-sched-ir.c (sel_move_insn): Likewise.
7942 (sel_remove_insn): Likewise.
7943 (get_bb_note_from_pool): Likewise.
7944 * sel-sched.c (move_nop_to_previous_block): Likewise.
7946 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7947 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7948 (c6x_gen_bundles): Likewise.
7949 (hwloop_optimize): Likewise.
7950 * config/frv/frv.c (frv_function_prologue): Likewise.
7951 (frv_register_nop): Likewise.
7952 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7953 (ia64_reorg): Likewise.
7954 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7955 (mep_make_bundle): Likewise.
7956 (mep_bundle_insns): Likewise.
7957 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7958 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7959 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7961 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7963 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
7964 return type from rtx to rtx_insn *.
7966 (BB_HEADER): Likewise.
7967 (BB_FOOTER): Likewise.
7968 (SET_BB_HEAD): Convert to a function.
7969 (SET_BB_END): Likewise.
7970 (SET_BB_HEADER): Likewise.
7971 (SET_BB_FOOTER): Likewise.
7973 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7974 Strengthen the return type from rtx to rtx_insn *. For now, this
7975 is done by adding a checked cast, but this will eventually
7976 become a field lookup.
7978 (BB_HEADER): Likewise.
7979 (BB_FOOTER): Likewise.
7980 (SET_BB_HEAD): New function, from macro of same name. This is
7981 intended for use as an lvalue, and so returns an rtx& to allow
7982 in-place modification.
7983 (SET_BB_END): Likewise.
7984 (SET_BB_HEADER): Likewise.
7985 (SET_BB_FOOTER): Likewise.
7987 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7989 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7991 (SET_BB_HEAD): New macro, for use as a lvalue.
7992 (BB_END, SET_BB_END): Likewise.
7993 (BB_HEADER, SET_BB_HEADER): Likewise.
7994 (BB_FOOTER, SET_BB_FOOTER): Likewise.
7996 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7997 of BB_* macros into SET_BB_* macros.
7998 (fix_crossing_unconditional_branches): Likewise.
7999 * caller-save.c (save_call_clobbered_regs): Likewise.
8000 (insert_one_insn): Likewise.
8001 * cfgbuild.c (find_bb_boundaries): Likewise.
8002 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8003 (outgoing_edges_match): Likewise.
8004 (try_optimize_cfg): Likewise.
8005 * cfgexpand.c (expand_gimple_cond): Likewise.
8006 (expand_gimple_tailcall): Likewise.
8007 (expand_gimple_basic_block): Likewise.
8008 (construct_exit_block): Likewise.
8009 * cfgrtl.c (delete_insn): Likewise.
8010 (create_basic_block_structure): Likewise.
8011 (rtl_delete_block): Likewise.
8012 (rtl_split_block): Likewise.
8013 (emit_nop_for_unique_locus_between): Likewise.
8014 (rtl_merge_blocks): Likewise.
8015 (block_label): Likewise.
8016 (try_redirect_by_replacing_jump): Likewise.
8017 (emit_barrier_after_bb): Likewise.
8018 (fixup_abnormal_edges): Likewise.
8019 (record_effective_endpoints): Likewise.
8020 (relink_block_chain): Likewise.
8021 (fixup_reorder_chain): Likewise.
8022 (fixup_fallthru_exit_predecessor): Likewise.
8023 (cfg_layout_duplicate_bb): Likewise.
8024 (cfg_layout_split_block): Likewise.
8025 (cfg_layout_delete_block): Likewise.
8026 (cfg_layout_merge_blocks): Likewise.
8027 * combine.c (update_cfg_for_uncondjump): Likewise.
8028 * emit-rtl.c (add_insn_after): Likewise.
8029 (remove_insn): Likewise.
8030 (reorder_insns): Likewise.
8031 (emit_insn_after_1): Likewise.
8032 * haifa-sched.c (get_ebb_head_tail): Likewise.
8033 (restore_other_notes): Likewise.
8034 (move_insn): Likewise.
8035 (sched_extend_bb): Likewise.
8036 (fix_jump_move): Likewise.
8037 * ifcvt.c (noce_process_if_block): Likewise.
8038 (dead_or_predicable): Likewise.
8039 * ira.c (update_equiv_regs): Likewise.
8040 * reg-stack.c (change_stack): Likewise.
8041 * sel-sched-ir.c (sel_move_insn): Likewise.
8042 * sel-sched.c (move_nop_to_previous_block): Likewise.
8044 * config/c6x/c6x.c (hwloop_optimize): Likewise.
8045 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8047 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8049 * rtl.h (for_each_rtx_in_insn): New function.
8050 * rtlanal.c (for_each_rtx_in_insn): Likewise.
8052 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8054 * coretypes.h (class rtx_insn): Add forward declaration.
8056 * rtl.h: Include is-a.h.
8057 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8058 workaround to ensure gengtype knows inheritance is occurring,
8059 whilst continuing to use the pre-existing special-casing for
8061 (class rtx_insn): New subclass of rtx_def, adding the
8062 invariant that we're dealing with something we can sanely use
8063 INSN_UID, NEXT_INSN, PREV_INSN on.
8064 (is_a_helper <rtx_insn *>::test): New.
8065 (is_a_helper <const rtx_insn *>::test): New.
8067 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8069 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8071 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8073 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8076 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8078 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8079 to BUILT_IN_UNREACHABLE.
8081 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
8084 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8086 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8087 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8088 (ffs<mode>2): Do not expand with tzcnt for
8089 TARGET_AVOID_FALSE_DEP_FOR_BMI.
8090 (ffssi2_no_cmove): Ditto.
8091 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8092 (ctz<mode>2): New expander.
8093 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8094 (*ctz<mode>2_falsedep): New insn.
8095 (*ctz<mode>2): Rename from ctz<mode>2.
8096 (clz<mode>2_lzcnt): New expander.
8097 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8098 (*clz<mode>2_lzcnt_falsedep): New insn.
8099 (*clz<mode>2): Rename from ctz<mode>2.
8100 (popcount<mode>2): New expander.
8101 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8102 (*popcount<mode>2_falsedep): New insn.
8103 (*popcount<mode>2): Rename from ctz<mode>2.
8104 (*popcount<mode>2_cmp): Remove.
8105 (*popcountsi2_cmp_zext): Ditto.
8107 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
8109 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8110 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8111 * config/microblaze/microblaze.h
8112 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8114 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
8117 * configure.ac: Set install_gold_as_default to no for
8119 * configure: Regenerated.
8121 2014-08-18 Roman Gareev <gareevroman@gmail.com>
8123 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8124 * config.in: Add undef of HAVE_isl.
8125 * configure: Regenerate.
8126 * configure.ac: Add definition of HAVE_isl.
8127 * graphite-blocking.c: Add checking of HAVE_isl.
8128 * graphite-dependences.c: Likewise.
8129 * graphite-interchange.c: Likewise.
8130 * graphite-isl-ast-to-gimple.c: Likewise.
8131 * graphite-optimize-isl.c: Likewise.
8132 * graphite-poly.c: Likewise.
8133 * graphite-scop-detection.c: Likewise.
8134 * graphite-sese-to-poly.c: Likewise.
8135 * graphite.c: Likewise.
8136 * toplev.c: Replace the checking of HAVE_cloog with the checking
8139 2014-08-18 Richard Biener <rguenther@suse.de>
8141 PR tree-optimization/62090
8142 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8143 (fold_builtin_3): Do not fold snprintf.
8144 (fold_builtin_4): Likewise.
8145 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8146 moved from builtins.c.
8147 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8148 (gimple_fold_builtin): Do not fold sprintf here.
8150 2014-08-18 Richard Biener <rguenther@suse.de>
8152 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8154 (maybe_canonicalize_mem_ref_addr): ... this function.
8155 (fold_stmt_1): Apply it here before all simplification.
8157 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
8160 * cgraph.h (cgraph_node::create_indirect_edge): Add
8161 compute_indirect_info param.
8162 * cgraph.c (cgraph_node::create_indirect_edge): Compute
8163 indirect_info only when it is required.
8164 * cgraphclones.c (cgraph_clone_edge): Do not recompute
8165 indirect_info fore cloned indirect edge.
8167 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8169 Anna Tikhonova <anna.tikhonova@intel.com>
8170 Ilya Tocar <ilya.tocar@intel.com>
8171 Andrey Turetskiy <andrey.turetskiy@intel.com>
8172 Ilya Verbin <ilya.verbin@intel.com>
8173 Kirill Yukhin <kirill.yukhin@intel.com>
8174 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8176 * config/i386/sse.md
8177 (define_mode_iterator VI8_AVX2_AVX512BW): New.
8178 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8180 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8181 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8182 Anna Tikhonova <anna.tikhonova@intel.com>
8183 Ilya Tocar <ilya.tocar@intel.com>
8184 Andrey Turetskiy <andrey.turetskiy@intel.com>
8185 Ilya Verbin <ilya.verbin@intel.com>
8186 Kirill Yukhin <kirill.yukhin@intel.com>
8187 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8189 * config/i386/sse.md
8190 (define_mode_iterator VF1_AVX512VL): New.
8191 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8192 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8195 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8197 Anna Tikhonova <anna.tikhonova@intel.com>
8198 Ilya Tocar <ilya.tocar@intel.com>
8199 Andrey Turetskiy <andrey.turetskiy@intel.com>
8200 Ilya Verbin <ilya.verbin@intel.com>
8201 Kirill Yukhin <kirill.yukhin@intel.com>
8202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8204 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8205 * config/i386/i386.md
8206 (define_code_iterator any_float): New.
8207 (define_code_attr floatsuffix): New.
8208 * config/i386/sse.md
8209 (define_mode_iterator VF1_128_256VL): New.
8210 (define_mode_iterator VF2_512_256VL): New.
8211 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8213 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8214 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8216 (define_mode_attr qq2pssuff): New.
8217 (define_mode_attr sselongvecmode): New.
8218 (define_mode_attr sselongvecmodelower): New.
8219 (define_mode_attr sseintvecmode3): New.
8220 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8222 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8223 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8224 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8225 (define_insn "ufloatv2siv2df2<mask_name>"): New.
8227 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8229 Anna Tikhonova <anna.tikhonova@intel.com>
8230 Ilya Tocar <ilya.tocar@intel.com>
8231 Andrey Turetskiy <andrey.turetskiy@intel.com>
8232 Ilya Verbin <ilya.verbin@intel.com>
8233 Kirill Yukhin <kirill.yukhin@intel.com>
8234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8236 * config/i386/sse.md
8237 (define_mode_iterator VF2_AVX512VL): New.
8238 (define_mode_attr sseintvecmode2): New.
8239 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
8240 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
8241 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
8243 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
8245 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8247 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8250 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8252 Anna Tikhonova <anna.tikhonova@intel.com>
8253 Ilya Tocar <ilya.tocar@intel.com>
8254 Andrey Turetskiy <andrey.turetskiy@intel.com>
8255 Ilya Verbin <ilya.verbin@intel.com>
8256 Kirill Yukhin <kirill.yukhin@intel.com>
8257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8259 * config/i386/i386.md
8260 (define_insn "*movoi_internal_avx"): Add evex version.
8261 (define_insn "*movti_internal"): Ditto.
8263 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8265 Anna Tikhonova <anna.tikhonova@intel.com>
8266 Ilya Tocar <ilya.tocar@intel.com>
8267 Andrey Turetskiy <andrey.turetskiy@intel.com>
8268 Ilya Verbin <ilya.verbin@intel.com>
8269 Kirill Yukhin <kirill.yukhin@intel.com>
8270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8272 * config/i386/i386.md
8273 (define_attr "isa"): Add avx512dq, noavx512dq.
8274 (define_attr "enabled"): Ditto.
8275 * config/i386/sse.md
8276 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
8278 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8280 Anna Tikhonova <anna.tikhonova@intel.com>
8281 Ilya Tocar <ilya.tocar@intel.com>
8282 Andrey Turetskiy <andrey.turetskiy@intel.com>
8283 Ilya Verbin <ilya.verbin@intel.com>
8284 Kirill Yukhin <kirill.yukhin@intel.com>
8285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8287 * config/i386/i386.c
8288 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
8289 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
8290 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
8291 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
8292 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
8293 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
8294 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
8295 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
8296 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
8297 * config/i386/sse.md
8298 (define_mode_iterator VMOVE): Allow V4TI mode.
8299 (define_mode_iterator V_AVX512VL): New.
8300 (define_mode_iterator V): New handling for AVX512VL.
8301 (define_insn "avx512f_load<mode>_mask"): Delete.
8302 (define_insn "<avx512>_load<mode>_mask"): New.
8303 (define_insn "avx512f_store<mode>_mask"): Delete.
8304 (define_insn "<avx512>_store<mode>_mask"): New.
8307 2014-08-18 Yury Gribov <y.gribov@samsung.com>
8310 * asan.c (instrument_derefs): Fix bitfield check.
8312 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8314 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8315 * config/rs6000/htm.md (ttest): Remove clobber.
8316 * config/rs6000/predicates.md (any_mask_operand): New predicate.
8317 (and_operand): Reformat.
8318 (and_2rld_operand): New predicate.
8319 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8321 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8322 parameter. Handle AND directly.
8323 (rs6000_split_logical_di): Remove last parameter.
8324 (rs6000_split_logical): Remove last parameter. Remove obsolete
8326 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8327 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8328 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
8329 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8330 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8331 and 5 anonymous splitters): Delete.
8332 (and<mode>3): New expander.
8333 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8334 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8335 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8336 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8337 (floatdisf2_internal1): Remove clobbers.
8338 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8339 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8340 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8341 (and<mode>3 for BOOL_128): Remove clobber.
8342 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
8343 rs6000_split_logical.
8344 (*bool<mode>3_internal for BOOL_128): Adjust call of
8345 rs6000_split_logical.
8346 (*boolc<mode>3_internal1 for BOOL_128,
8347 *boolc<mode>3_internal2 for BOOL_128,
8348 *boolcc<mode>3_internal1 for BOOL_128,
8349 *boolcc<mode>3_internal2 for BOOL_128,
8350 *eqv<mode>3_internal1 for BOOL_128,
8351 *eqv<mode>3_internal2 for BOOL_128,
8352 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8353 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8355 (*vec_reload_and_reg_<mptrsize>): Delete.
8357 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8359 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
8360 and split, *boolccsi3_internal3 and split): Delete.
8361 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
8362 *boolccdi3_internal3 and split): Delete.
8363 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
8364 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
8366 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8368 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
8369 and split, *boolcsi3_internal3 and split): Delete.
8370 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
8371 *boolcdi3_internal3 and split): Delete.
8372 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
8374 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8376 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
8377 <'u'>: Also support printing the low-order 16 bits.
8378 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
8379 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
8380 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
8381 *booldi3_internal3 and split): Delete.
8382 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
8383 *bool<mode>3_dot2): New.
8384 (two anonymous define_splits for non_logical_cint_operand): Merge.
8386 2014-08-17 Marek Polacek <polacek@redhat.com>
8387 Manuel López-Ibáñez <manu@gcc.gnu.org>
8390 * diagnostic.c (adjust_line): Add gcc_checking_assert.
8391 (diagnostic_show_locus): Don't print caret diagnostic
8392 if a column is larger than the line_width.
8394 2014-08-17 Roman Gareev <gareevroman@gmail.com>
8396 * common.opt: Make the ISL AST generator to be the main code generator
8399 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
8401 * wide-int.h (generic_wide_int): Declare as class instead of struct.
8403 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
8406 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
8408 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
8409 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
8410 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
8412 * config/pa/pa.md (begin_brtab): Delete insn.
8413 (end_brtab): Likewise.
8415 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8417 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8419 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
8421 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8422 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8423 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8424 (get_dynamic_type): Remove.
8425 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8426 (clear_speculation): Bring to ipa-deivrt.h
8427 (get_class_context): Rename to ...
8428 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8429 (contains_type_p): Update.
8430 (get_dynamic_type): Rename to ...
8431 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8432 (possible_polymorphic_call_targets): UPdate.
8433 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8434 * ipa-prop.c (ipa_analyze_call_uses): Update.
8436 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
8438 * doc/invoke.texi (SH options): Document missing processor variant
8439 options. Remove references to Hitachi. Undocument deprecated mspace
8442 2014-08-15 Jason Merrill <jason@redhat.com>
8444 * tree.c (type_hash_canon): Uncomment assert.
8446 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8448 * input.h (in_system_header_at): Add comment.
8450 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8453 * diagnostic.c (build_message_string): Make it extern.
8454 * diagnostic.h (build_message_string): Make it extern.
8456 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
8458 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8459 load/store from/to non-floating class pseudo.
8461 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8463 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8465 2014-08-15 Richard Biener <rguenther@suse.de>
8467 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8468 (get_constraint_for_ssa_var): Remove dead code.
8469 (get_constraint_for_1): Adjust.
8470 (find_what_var_points_to): Likewise.
8471 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
8473 2014-08-15 Ilya Tocar <tocarip@gmail.com>
8476 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8477 (_mm512_mask_cmpge_epu32_mask): Ditto.
8478 (_mm512_cmpge_epu32_mask): Ditto.
8479 (_mm512_mask_cmpge_epi64_mask): Ditto.
8480 (_mm512_cmpge_epi64_mask): Ditto.
8481 (_mm512_mask_cmpge_epu64_mask): Ditto.
8482 (_mm512_cmpge_epu64_mask): Ditto.
8483 (_mm512_mask_cmple_epi32_mask): Ditto.
8484 (_mm512_cmple_epi32_mask): Ditto.
8485 (_mm512_mask_cmple_epu32_mask): Ditto.
8486 (_mm512_cmple_epu32_mask): Ditto.
8487 (_mm512_mask_cmple_epi64_mask): Ditto.
8488 (_mm512_cmple_epi64_mask): Ditto.
8489 (_mm512_mask_cmple_epu64_mask): Ditto.
8490 (_mm512_cmple_epu64_mask): Ditto.
8491 (_mm512_mask_cmplt_epi32_mask): Ditto.
8492 (_mm512_cmplt_epi32_mask): Ditto.
8493 (_mm512_mask_cmplt_epu32_mask): Ditto.
8494 (_mm512_cmplt_epu32_mask): Ditto.
8495 (_mm512_mask_cmplt_epi64_mask): Ditto.
8496 (_mm512_cmplt_epi64_mask): Ditto.
8497 (_mm512_mask_cmplt_epu64_mask): Ditto.
8498 (_mm512_cmplt_epu64_mask): Ditto.
8499 (_mm512_mask_cmpneq_epi32_mask): Ditto.
8500 (_mm512_mask_cmpneq_epu32_mask): Ditto.
8501 (_mm512_cmpneq_epu32_mask): Ditto.
8502 (_mm512_mask_cmpneq_epi64_mask): Ditto.
8503 (_mm512_cmpneq_epi64_mask): Ditto.
8504 (_mm512_mask_cmpneq_epu64_mask): Ditto.
8505 (_mm512_cmpneq_epu64_mask): Ditto.
8506 (_mm512_castpd_ps): Ditto.
8507 (_mm512_castpd_si512): Ditto.
8508 (_mm512_castps_pd): Ditto.
8509 (_mm512_castps_si512): Ditto.
8510 (_mm512_castsi512_ps): Ditto.
8511 (_mm512_castsi512_pd): Ditto.
8512 (_mm512_castpd512_pd128): Ditto.
8513 (_mm512_castps512_ps128): Ditto.
8514 (_mm512_castsi512_si128): Ditto.
8515 (_mm512_castpd512_pd256): Ditto.
8516 (_mm512_castps512_ps256): Ditto.
8517 (_mm512_castsi512_si256): Ditto.
8518 (_mm512_castpd128_pd512): Ditto.
8519 (_mm512_castps128_ps512): Ditto.
8520 (_mm512_castsi128_si512): Ditto.
8521 (_mm512_castpd256_pd512): Ditto.
8522 (_mm512_castps256_ps512): Ditto.
8523 (_mm512_castsi256_si512): Ditto.
8524 (_mm512_cmpeq_epu32_mask): Ditto.
8525 (_mm512_mask_cmpeq_epu32_mask): Ditto.
8526 (_mm512_mask_cmpeq_epu64_mask): Ditto.
8527 (_mm512_cmpeq_epu64_mask): Ditto.
8528 (_mm512_cmpgt_epu32_mask): Ditto.
8529 (_mm512_mask_cmpgt_epu32_mask): Ditto.
8530 (_mm512_mask_cmpgt_epu64_mask): Ditto.
8531 (_mm512_cmpgt_epu64_mask): Ditto.
8532 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8533 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8534 * config/i386/i386.c (enum ix86_builtins): Add
8535 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8536 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8537 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8538 (bdesc_args): Add __builtin_ia32_si512_256si,
8539 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8540 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8541 __builtin_ia32_pd512_pd.
8542 (ix86_expand_args_builtin): Handle new FTYPEs.
8543 * config/i386/sse.md (castmode): Add 512-bit modes.
8544 (AVX512MODE2P): New.
8545 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8546 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8548 2014-08-15 Richard Biener <rguenther@suse.de>
8550 * fold-const.c (tree_swap_operands_p): Put all constants
8551 last, also strip sign-changing NOPs when considering further
8552 canonicalization. Canonicalize also when optimizing for size.
8554 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8556 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8557 one_match > zero_match case to just before simple_sequence.
8559 2014-08-15 Richard Biener <rguenther@suse.de>
8561 * data-streamer.h (streamer_string_index, string_for_index):
8563 * data-streamer-out.c (streamer_string_index): Make static.
8564 * data-streamer-in.c (string_for_index): Likewise.
8565 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8566 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8568 2014-08-15 Richard Biener <rguenther@suse.de>
8570 PR tree-optimization/62031
8571 * tree-data-ref.c (dr_analyze_indices): Do not set
8572 DR_UNCONSTRAINED_BASE.
8573 (dr_may_alias_p): All indirect accesses have to go the
8574 formerly DR_UNCONSTRAINED_BASE path.
8575 * tree-data-ref.h (struct indices): Remove
8576 unconstrained_base member.
8577 (DR_UNCONSTRAINED_BASE): Remove.
8579 2014-08-15 Jakub Jelinek <jakub@redhat.com>
8582 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8583 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8584 in OMP_CLAUSE_MAP in some outer target region.
8586 2014-08-15 Bin Cheng <bin.cheng@arm.com>
8588 * tree-ssa-loop-ivopts.c (ivopts_data): New field
8589 name_expansion_cache.
8590 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8591 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8592 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8593 (difference_cannot_overflow_p): New parameter. Use affine
8594 expansion for equality check.
8595 (iv_elimination_compare_lt): Pass new argument.
8597 2014-08-14 DJ Delorie <dj@redhat.com>
8599 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8600 variables to the accumulator.
8602 * config/rl78/predicates.md (rl78_near_mem_operand): New.
8603 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8604 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8607 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8608 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8609 (umulqihi3_virt): Likewise.
8610 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8611 (umulqihi3_real): Likewise.
8613 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8615 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8617 PR tree-optimization/62091
8618 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8619 function_entry_reached.
8620 (walk_aliased_vdefs): Clear it here.
8621 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8623 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8625 * ipa-utils.h (compare_virtual_tables): Declare.
8626 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8628 2014-08-14 Marek Polacek <polacek@redhat.com>
8631 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8632 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8634 2014-08-14 Tom de Vries <tom@codesourcery.com>
8636 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8638 2014-08-14 Tom de Vries <tom@codesourcery.com>
8640 PR rtl-optimization/62004
8641 PR rtl-optimization/62030
8642 * ifcvt.c (rtx_interchangeable_p): New function.
8643 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8644 * emit-rtl.h (mem_attrs_eq_p): Declare.
8646 2014-08-14 Roman Gareev <gareevroman@gmail.com>
8648 * graphite-scop-detection.c:
8649 Add inclusion of cp-tree.h.
8650 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8651 in case they are pointers to object types
8653 2014-08-14 Richard Biener <rguenther@suse.de>
8655 * BASE-VER: Change to 5.0.0
8657 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8658 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8659 Anna Tikhonova <anna.tikhonova@intel.com>
8660 Ilya Tocar <ilya.tocar@intel.com>
8661 Andrey Turetskiy <andrey.turetskiy@intel.com>
8662 Ilya Verbin <ilya.verbin@intel.com>
8663 Kirill Yukhin <kirill.yukhin@intel.com>
8664 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8666 * config/i386/sse.md (define_mode_attr avx512): New.
8667 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8669 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8670 (define_mode_attr ssse3_avx2): Ditto.
8671 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8672 (define_mode_attr avx2_avx512bw): New.
8673 (define_mode_attr ssedoublemodelower): New.
8674 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8676 (define_mode_attr ssebytemode): Allow V8DI modes.
8677 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8678 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8679 (define_mode_attr ssePSmode2): New.
8680 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8682 (define_mode_attr dbpsadbwmode): New.
8683 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8684 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8685 (vi8_sse4_1_avx2_avx512): New.
8686 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8688 (define_mode_attr blendbits): Move before its immediate use.
8690 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8692 Anna Tikhonova <anna.tikhonova@intel.com>
8693 Ilya Tocar <ilya.tocar@intel.com>
8694 Andrey Turetskiy <andrey.turetskiy@intel.com>
8695 Ilya Verbin <ilya.verbin@intel.com>
8696 Kirill Yukhin <kirill.yukhin@intel.com>
8697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8699 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8700 * config/i386/subst.md
8701 (define_mode_iterator SUBST_V): Update.
8702 (define_mode_iterator SUBST_A): Ditto.
8703 (define_subst_attr "mask_operand7"): New.
8704 (define_subst_attr "mask_operand10"): New.
8705 (define_subst_attr "mask_operand_arg34") : New.
8706 (define_subst_attr "mask_expand_op3"): New.
8707 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8708 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8709 (define_subst_attr "mask_avx512vl_condition"): New.
8710 (define_subst_attr "round_mask_operand4"): Ditto.
8711 (define_subst_attr "round_mask_scalar_op3"): Delete.
8712 (define_subst_attr "round_mask_op4"): New.
8713 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8715 (define_subst_attr "round_modev8sf_condition"): New.
8716 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8718 (define_subst_attr "round_saeonly_mask_operand4"): New.
8719 (define_subst_attr "round_saeonly_mask_op4"): New.
8720 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8721 V8DImode, V16SImode.
8722 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8723 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8724 (define_subst_attr "mask_expand4_args"): New.
8725 (define_subst "mask_expand4"): New.
8727 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8729 Anna Tikhonova <anna.tikhonova@intel.com>
8730 Ilya Tocar <ilya.tocar@intel.com>
8731 Andrey Turetskiy <andrey.turetskiy@intel.com>
8732 Ilya Verbin <ilya.verbin@intel.com>
8733 Kirill Yukhin <kirill.yukhin@intel.com>
8734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8736 * config/i386/i386.md
8737 (define_attr "isa"): Add avx512bw,noavx512bw.
8738 (define_attr "enabled"): Ditto.
8739 (define_split): Add 32/64-bit mask logic.
8740 (define_insn "*k<logic>qi"): New.
8741 (define_insn "*k<logic>hi"): New.
8742 (define_insn "*anddi_1"): Add mask version.
8743 (define_insn "*andsi_1"): Ditto.
8744 (define_insn "*<code><mode>_1"): Ditto.
8745 (define_insn "*<code>hi_1"): Ditto.
8746 (define_insn "kxnor<mode>"): New.
8747 (define_insn "kunpcksi"): New.
8748 (define_insn "kunpckdi"): New.
8749 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8750 (define_insn "*one_cmplhi2_1"): Ditto.
8752 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8753 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8754 Anna Tikhonova <anna.tikhonova@intel.com>
8755 Ilya Tocar <ilya.tocar@intel.com>
8756 Andrey Turetskiy <andrey.turetskiy@intel.com>
8757 Ilya Verbin <ilya.verbin@intel.com>
8758 Kirill Yukhin <kirill.yukhin@intel.com>
8759 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8761 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8764 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8766 Anna Tikhonova <anna.tikhonova@intel.com>
8767 Ilya Tocar <ilya.tocar@intel.com>
8768 Andrey Turetskiy <andrey.turetskiy@intel.com>
8769 Ilya Verbin <ilya.verbin@intel.com>
8770 Kirill Yukhin <kirill.yukhin@intel.com>
8771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8773 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8775 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8776 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8777 xmm/ymm16+ when availble.
8778 * config/i386/i386.h
8779 (HARD_REGNO_NREGS): Add mask regs.
8780 (VALID_AVX512F_REG_MODE): Ditto.
8781 (VALID_AVX512F_REG_MODE) : Define.
8782 (VALID_MASK_AVX512BW_MODE): Ditto.
8783 (reg_class) (MASK_REG_P(X)): Define.
8784 * config/i386/i386.md: Do not split long moves with mask register,
8785 use kmovb if avx512bw is availible.
8786 (movdi_internal): Handle mask registers.
8788 2014-08-14 Richard Biener <rguenther@suse.de>
8790 PR tree-optimization/62081
8791 * tree-ssa-loop.c (pass_fix_loops): New pass.
8792 (pass_tree_loop::gate): Do not fixup loops here.
8793 * tree-pass.h (make_pass_fix_loops): Declare.
8794 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8796 2014-08-14 Richard Biener <rguenther@suse.de>
8798 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8799 (type_hash_canon): ... this and avoid 2nd lookup for the add.
8801 2014-08-14 Richard Biener <rguenther@suse.de>
8803 PR tree-optimization/62090
8804 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8805 (fold_builtin_2): Do not fold sprintf.
8806 (fold_builtin_3): Likewise.
8807 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8808 moved from builtins.c.
8809 (gimple_fold_builtin): Fold sprintf.
8811 2014-08-14 Richard Biener <rguenther@suse.de>
8813 PR rtl-optimization/62079
8814 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8817 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8819 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8820 current_function_decl.
8822 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8824 * cgraph.c (cgraph_node::function_symbol): Fix wrong
8825 cgraph_function_node to cgraph_node::function_symbol
8828 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
8830 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8831 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8833 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
8835 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8838 2014-08-13 Roman Gareev <gareevroman@gmail.com>
8840 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8843 2014-08-12 Jakub Jelinek <jakub@redhat.com>
8846 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8847 any registers that are used in mem_insn.
8849 2014-08-12 Steve Ellcey <sellcey@mips.com>
8851 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
8853 2014-08-12 Steve Ellcey <sellcey@mips.com>
8855 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8856 (MULTILIB_DIRNAMES): Ditto.
8857 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8858 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8859 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8860 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8861 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8862 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8864 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8867 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8868 of __ARM_SIZEOF_WCHAR_T.
8870 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8873 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8874 Remove unnecessary attributes.
8876 2014-08-12 Yury Gribov <y.gribov@samsung.com>
8878 * internal-fn.c (init_internal_fns): Fix off-by-one.
8880 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
8881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8882 Anna Tikhonova <anna.tikhonova@intel.com>
8883 Ilya Tocar <ilya.tocar@intel.com>
8884 Andrey Turetskiy <andrey.turetskiy@intel.com>
8885 Ilya Verbin <ilya.verbin@intel.com>
8886 Kirill Yukhin <kirill.yukhin@intel.com>
8887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8889 * config/i386/i386.c (standard_sse_constant_opcode): Use
8890 vpxord/vpternlog if avx512 is availible.
8892 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8895 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8896 bitfields, that is when size doesn't match the size of type or the
8897 size of the constructor.
8899 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8901 * config/rs6000/constraints.md (wh constraint): New constraint,
8902 for FP registers if direct move is available.
8903 (wi constraint): New constraint, for VSX/FP registers that can
8904 handle 64-bit integers.
8905 (wj constraint): New constraint for VSX/FP registers that can
8906 handle 64-bit integers for direct moves.
8907 (wk constraint): New constraint for VSX/FP registers that can
8908 handle 64-bit doubles for direct moves.
8909 (wy constraint): Make documentation match implementation.
8911 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8912 scalar_in_vmx_p field to simplify tests of whether SFmode or
8913 DFmode can go in the Altivec registers.
8914 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8915 (rs6000_setup_reg_addr_masks): Likewise.
8916 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8917 field, and wh/wi/wj/wk constraints.
8918 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8919 the wh/wi/wj/wk constraints.
8920 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8921 upper registers, prefer VSX registers unless the operation is a
8922 memory operation with REG+OFFSET addressing.
8924 * config/rs6000/vsx.md (VSr mode attribute): Add support for
8925 DImode. Change SFmode to use ww constraint instead of d to allow
8926 SF registers in the upper registers.
8929 (VSr5): Fix thinko in comment.
8930 (VSa): New mode attribute that is an alternative to wa, that
8931 returns the VSX register class that a mode can go in, but may not
8932 be the preferred register class.
8933 (VS_64dm): New mode attribute for appropriate register classes for
8934 referencing 64-bit elements of vectors for direct moves and normal
8936 (VS_64reg): Likewise.
8937 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8938 register allocator to only registers the data type can handle.
8939 (vsx_le_perm_load_<mode>): Likewise.
8940 (vsx_le_perm_store_<mode>): Likewise.
8941 (vsx_xxpermdi2_le_<mode>): Likewise.
8942 (vsx_xxpermdi4_le_<mode>): Likewise.
8943 (vsx_lxvd2x2_le_<mode>): Likewise.
8944 (vsx_lxvd2x4_le_<mode>): Likewise.
8945 (vsx_stxvd2x2_le_<mode>): Likewise.
8946 (vsx_add<mode>3): Likewise.
8947 (vsx_sub<mode>3): Likewise.
8948 (vsx_mul<mode>3): Likewise.
8949 (vsx_div<mode>3): Likewise.
8950 (vsx_tdiv<mode>3_internal): Likewise.
8951 (vsx_fre<mode>2): Likewise.
8952 (vsx_neg<mode>2): Likewise.
8953 (vsx_abs<mode>2): Likewise.
8954 (vsx_nabs<mode>2): Likewise.
8955 (vsx_smax<mode>3): Likewise.
8956 (vsx_smin<mode>3): Likewise.
8957 (vsx_sqrt<mode>2): Likewise.
8958 (vsx_rsqrte<mode>2): Likewise.
8959 (vsx_tsqrt<mode>2_internal): Likewise.
8960 (vsx_fms<mode>4): Likewise.
8961 (vsx_nfma<mode>4): Likewise.
8962 (vsx_eq<mode>): Likewise.
8963 (vsx_gt<mode>): Likewise.
8964 (vsx_ge<mode>): Likewise.
8965 (vsx_eq<mode>_p): Likewise.
8966 (vsx_gt<mode>_p): Likewise.
8967 (vsx_ge<mode>_p): Likewise.
8968 (vsx_xxsel<mode>): Likewise.
8969 (vsx_xxsel<mode>_uns): Likewise.
8970 (vsx_copysign<mode>3): Likewise.
8971 (vsx_float<VSi><mode>2): Likewise.
8972 (vsx_floatuns<VSi><mode>2): Likewise.
8973 (vsx_fix_trunc<mode><VSi>2): Likewise.
8974 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8975 (vsx_x<VSv>r<VSs>i): Likewise.
8976 (vsx_x<VSv>r<VSs>ic): Likewise.
8977 (vsx_btrunc<mode>2): Likewise.
8978 (vsx_b2trunc<mode>2): Likewise.
8979 (vsx_floor<mode>2): Likewise.
8980 (vsx_ceil<mode>2): Likewise.
8981 (vsx_<VS_spdp_insn>): Likewise.
8982 (vsx_xscvspdp): Likewise.
8983 (vsx_xvcvspuxds): Likewise.
8984 (vsx_float_fix_<mode>2): Likewise.
8985 (vsx_set_<mode>): Likewise.
8986 (vsx_extract_<mode>_internal1): Likewise.
8987 (vsx_extract_<mode>_internal2): Likewise.
8988 (vsx_extract_<mode>_load): Likewise.
8989 (vsx_extract_<mode>_store): Likewise.
8990 (vsx_splat_<mode>): Likewise.
8991 (vsx_xxspltw_<mode>): Likewise.
8992 (vsx_xxspltw_<mode>_direct): Likewise.
8993 (vsx_xxmrghw_<mode>): Likewise.
8994 (vsx_xxmrglw_<mode>): Likewise.
8995 (vsx_xxsldwi_<mode>): Likewise.
8996 (vsx_xscvdpspn): Tighten constraints to only use register classes
8998 (vsx_xscvspdpn): Likewise.
8999 (vsx_xscvdpspn_scalar): Likewise.
9001 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9002 wj, and wk constraints.
9003 (GPR_REG_CLASS_P): New helper macro for register classes targeting
9004 general purpose registers.
9006 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9008 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9009 DImode instead of wm. Use wk constraint for direct move of DFmode
9011 (extendsidi2_lfiwax): Likewise.
9014 (movdi_internal64): Likewise.
9016 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9017 wk constraints. Make the wy constraint documentation match them
9020 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
9022 Replacement of isl_int by isl_val
9023 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9024 (compute_bounds_for_param): use isl_val instead of isl_int
9025 (compute_bounds_for_loop): likewise
9026 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9027 (build_linearized_memory_access): use isl_val instead of isl_int
9028 (pdr_stride_in_loop): likewise
9029 * graphite-optimize-isl.c:
9030 (getPrevectorMap): use isl_val instead of isl_int
9032 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9033 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9034 (extern the_isl_ctx): declare
9035 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9036 (extract_affine_gmp): likewise
9038 (build_loop_iteration_domains): likewise
9039 (add_param_constraints): likewise
9041 2014-08-11 Richard Biener <rguenther@suse.de>
9043 PR tree-optimization/62075
9044 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9045 handle uses in patterns.
9047 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9049 Anna Tikhonova <anna.tikhonova@intel.com>
9050 Ilya Tocar <ilya.tocar@intel.com>
9051 Andrey Turetskiy <andrey.turetskiy@intel.com>
9052 Ilya Verbin <ilya.verbin@intel.com>
9053 Kirill Yukhin <kirill.yukhin@intel.com>
9054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9056 * common/config/i386/i386-common.c
9057 (OPTION_MASK_ISA_AVX512VL_SET): Define.
9058 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9059 (ix86_handle_option): Handle OPT_mavx512vl.
9060 * config/i386/cpuid.h (bit_AVX512VL): Define.
9061 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9062 set -mavx512vl accordingly.
9063 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9064 OPTION_MASK_ISA_AVX512VL.
9065 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9066 (ix86_option_override_internal): Define PTA_AVX512VL, handle
9067 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9068 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9069 * config/i386/i386.h (TARGET_AVX512VL): Define.
9070 (TARGET_AVX512VL_P(x)): Ditto.
9071 * config/i386/i386.opt: Add mavx512vl.
9073 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
9075 PR tree-optimization/62073
9076 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9079 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9081 Anna Tikhonova <anna.tikhonova@intel.com>
9082 Ilya Tocar <ilya.tocar@intel.com>
9083 Andrey Turetskiy <andrey.turetskiy@intel.com>
9084 Ilya Verbin <ilya.verbin@intel.com>
9085 Kirill Yukhin <kirill.yukhin@intel.com>
9086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9088 * common/config/i386/i386-common.c
9089 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9090 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9091 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9092 (ix86_handle_option): Handle OPT_mavx512bw.
9093 * config/i386/cpuid.h (bit_AVX512BW): Define.
9094 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9095 set -mavx512bw accordingly.
9096 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9097 OPTION_MASK_ISA_AVX512BW.
9098 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9099 (ix86_option_override_internal): Define PTA_AVX512BW, handle
9100 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9101 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9102 * config/i386/i386.h (TARGET_AVX512BW): Define.
9103 (TARGET_AVX512BW_P(x)): Ditto.
9104 * config/i386/i386.opt: Add mavx512bw.
9106 2014-08-11 Richard Biener <rguenther@suse.de>
9108 PR tree-optimization/62070
9109 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9110 Remove SSA checking.
9112 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9114 * asan.c (asan_check_flags): New enum.
9115 (build_check_stmt_with_calls): Removed function.
9116 (build_check_stmt): Split inlining logic to
9117 asan_expand_check_ifn.
9118 (instrument_derefs): Rename parameter.
9119 (instrument_mem_region_access): Rename parameter.
9120 (instrument_strlen_call): Likewise.
9121 (asan_expand_check_ifn): New function.
9122 (asan_instrument): Remove old code.
9123 (pass_sanopt::execute): Change handling of
9124 asan-instrumentation-with-call-threshold.
9125 (asan_clear_shadow): Fix formatting.
9126 (asan_function_start): Likewise.
9127 (asan_emit_stack_protection): Likewise.
9128 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9130 * internal-fn.c (expand_ASAN_CHECK): New function.
9131 * internal-fn.def (ASAN_CHECK): New internal function.
9132 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9134 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9135 * tree.c: Small comment fix.
9137 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9139 * gimple.c (gimple_call_fnspec): Support internal functions.
9140 (gimple_call_return_flags): Use const.
9141 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9142 * internal-fn.def: Add fnspec information.
9143 * internal-fn.h (internal_fn_fnspec): New function.
9144 (init_internal_fns): Declare new function.
9145 * internal-fn.c (internal_fn_fnspec_array): New global variable.
9146 (init_internal_fns): New function.
9147 * tree-core.h: Update macro call.
9148 * tree.c (build_common_builtin_nodes): Initialize internal fns.
9150 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
9152 * lto-streamer.h (struct output_block::symbol): Change from
9153 struct symtab_node to plain symtab_node.
9154 (referenced_from_this_partition_p): Change first parameter
9155 from struct symtab_node to plain symtab_node.
9157 2014-08-10 Marek Polacek <polacek@redhat.com>
9160 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9162 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
9164 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9165 DECL correctly; do not give up on types in static storage.
9167 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
9169 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9171 2014-08-09 Roman Gareev <gareevroman@gmail.com>
9173 * graphite-isl-ast-to-gimple.c:
9174 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9176 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9178 2014-08-08 Guozhi Wei <carrot@google.com>
9180 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9182 2014-08-08 Cary Coutant <ccoutant@google.com>
9184 * dwarf2out.c (get_skeleton_type_unit): Remove.
9185 (output_skeleton_debug_sections): Remove skeleton type units.
9186 (output_comdat_type_unit): Likewise.
9187 (dwarf2out_finish): Likewise.
9189 2014-08-07 Yi Yang <ahyangyi@google.com>
9191 * predict.c (expr_expected_value_1): Remove the redundant assignment.
9193 2014-08-08 Richard Biener <rguenther@suse.de>
9195 * lto-streamer.h (struct lto_input_block): Make it a class
9197 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9198 (struct lto_function_header, struct lto_simple_header,
9199 struct lto_simple_header_with_strings,
9200 struct lto_decl_header, struct lto_function_header): Make
9201 a simple inheritance hieararchy. Remove unused fields.
9202 (struct lto_asm_header): Remove.
9203 * lto-streamer-out.c (produce_asm): Adjust.
9204 (lto_output_toplevel_asms): Likewise.
9205 (produce_asm_for_decls): Likewise.
9206 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9207 * data-streamer-in.c (string_for_index): Likewise.
9208 * ipa-inline-analysis.c (inline_read_section): Likewise.
9209 * ipa-prop.c (ipa_prop_read_section): Likewise.
9210 (read_replacements_section): Likewise.
9211 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9212 * lto-section-in.c (lto_create_simple_input_block): Likewise.
9213 (lto_destroy_simple_input_block): Likewise.
9214 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9215 (lto_input_toplevel_asms): Likewise.
9217 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
9218 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9219 Anna Tikhonova <anna.tikhonova@intel.com>
9220 Ilya Tocar <ilya.tocar@intel.com>
9221 Andrey Turetskiy <andrey.turetskiy@intel.com>
9222 Ilya Verbin <ilya.verbin@intel.com>
9223 Kirill Yukhin <kirill.yukhin@intel.com>
9224 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9226 * common/config/i386/i386-common.c
9227 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9228 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9229 (ix86_handle_option): Handle OPT_mavx512dq.
9230 * config/i386/cpuid.h (bit_AVX512DQ): Define.
9231 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9232 set -mavx512dq accordingly.
9233 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9234 OPTION_MASK_ISA_AVX512DQ.
9235 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9236 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9237 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9238 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9239 * config/i386/i386.h (TARGET_AVX512DQ): Define.
9240 (TARGET_AVX512DQ_P(x)): Ditto.
9241 * config/i386/i386.opt: Add mavx512dq.
9243 2014-08-08 Richard Biener <rguenther@suse.de>
9245 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
9246 target_percent, target_percent_s): Export.
9247 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
9248 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
9249 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
9250 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
9251 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
9252 Move to gimple-fold.c.
9253 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
9255 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
9256 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
9257 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
9258 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
9259 (rewrite_call_expr_array): Remove.
9260 (fold_builtin_sprintf_chk): Likewise.
9261 (fold_builtin_snprintf_chk): Likewise.
9262 (fold_builtin_varargs): Remove handling of sprintf_chk,
9263 vsprintf_chk, snprintf_chk and vsnprintf_chk.
9264 (gimple_fold_builtin_sprintf_chk): Remove.
9265 (gimple_fold_builtin_snprintf_chk): Likewise.
9266 (gimple_fold_builtin_varargs): Likewise.
9267 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
9268 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
9269 * gimple.c (gimple_seq_add_seq_without_update): New function.
9270 * gimple.h (gimple_seq_add_seq_without_update): Declare.
9271 * gimple-fold.c: Include output.h.
9272 (gsi_replace_with_seq_vops): New function, split out from ...
9273 (gimplify_and_update_call_from_tree): ... here.
9274 (replace_call_with_value): New function.
9275 (replace_call_with_call_and_fold): Likewise.
9276 (var_decl_component_p): Moved from builtins.c.
9277 (gimple_fold_builtin_memory_op): Moved from builtins.c
9278 fold_builtin_memory_op and rewritten to GIMPLE.
9279 (gimple_fold_builtin_memset): Likewise.
9280 (gimple_fold_builtin_strcpy): Likewise.
9281 (gimple_fold_builtin_strncpy): Likewise.
9282 (gimple_fold_builtin_strcat): Likewise.
9283 (gimple_fold_builtin_fputs): Likewise.
9284 (gimple_fold_builtin_memory_chk): Likewise.
9285 (gimple_fold_builtin_stxcpy_chk): Likewise.
9286 (gimple_fold_builtin_stxncpy_chk): Likewise.
9287 (gimple_fold_builtin_snprintf_chk): Likewise.
9288 (gimple_fold_builtin_sprintf_chk): Likewise.
9289 (gimple_fold_builtin_strlen): New function.
9290 (gimple_fold_builtin_with_strlen): New function split out from
9291 gimple_fold_builtin.
9292 (gimple_fold_builtin): Change signature and handle
9293 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
9294 here. Call gimple_fold_builtin_with_strlen.
9295 (gimple_fold_call): Adjust.
9297 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
9299 * calls.c (precompute_arguments): Check
9300 promoted_for_signed_and_unsigned_p and set the promoted mode.
9301 (promoted_for_signed_and_unsigned_p): New function.
9302 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9303 and set the promoted mode.
9304 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9305 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9306 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9309 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
9311 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
9312 instead of SUBREG_PROMOTED_UNSIGNED_SET.
9313 (expand_call): Likewise.
9314 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9315 to get promoted mode.
9316 * combine.c (record_promoted_value): Skip > 0 comparison with
9317 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9318 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9319 of SUBREG_PROMOTED_UNSIGNED_P.
9320 (convert_modes): Likewise.
9321 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9322 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9323 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9324 SUBREG_PROMOTED_UNSIGNED_SET.
9325 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9326 instead of SUBREG_PROMOTED_UNSIGNED_SET.
9327 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9328 SUBREG_PROMOTED_SET.
9329 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9330 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9331 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9332 of SUBREG_PROMOTED_UNSIGNED_P.
9333 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9334 (SUBREG_PROMOTED_SET): New define.
9335 (SUBREG_PROMOTED_GET): Likewise.
9336 (SUBREG_PROMOTED_SIGN): Likewise.
9337 (SUBREG_PROMOTED_SIGNED_P): Likewise.
9338 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9339 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9340 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9341 instead of SUBREG_PROMOTED_UNSIGNED_GET.
9342 (nonzero_bits1): Skip > 0 comparison with the results as
9343 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9344 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9345 of !SUBREG_PROMOTED_UNSIGNED_P.
9346 * simplify-rtx.c (simplify_unary_operation_1): Use new
9347 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9348 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9349 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9350 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9352 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
9354 * ipa-devirt.c: Include gimple-pretty-print.h
9355 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9357 (decl_maybe_in_construction_p): Fix conditional on cdtor check
9358 (get_polymorphic_call_info): Fix return value
9359 (type_change_info): New sturcture based on ipa-prop
9361 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
9362 based on ipa-prop variant.
9363 (extr_type_from_vtbl_ptr_store): New function
9364 based on ipa-prop variant.
9365 (record_known_type): New function.
9366 (check_stmt_for_type_change): New function.
9367 (get_dynamic_type): New function.
9368 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
9369 * tree-ssa-pre.c: ipa-utils.h
9370 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
9371 machinery; sanity check with ipa-prop devirtualization.
9372 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
9375 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
9377 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
9378 * alias.c, cfgexpand.c, cgraphbuild.c,
9379 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
9380 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
9381 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
9382 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
9383 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
9384 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9385 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
9386 dse.c, except.c, gengtype.c, gimple-expr.c,
9387 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
9388 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
9389 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
9390 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
9391 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
9392 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
9394 * pointer-set.c: Remove file.
9395 * pointer-set.h: Remove file.
9397 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9399 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
9400 * config/arm/types.md (f_sels, f_seld): Delete.
9402 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9404 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
9405 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
9406 (aarch64_movdi_<mode>high): Likewise.
9407 (aarch64_mov<mode>high_di): Likewise.
9408 (aarch64_movdi_<mode>low): Likewise.
9409 (aarch64_mov<mode>low_di): Likewise.
9410 (aarch64_movtilow_tilow): Likewise.
9411 Add comment explaining usage of fp,simd attributes and of
9412 TARGET_FLOAT and TARGET_SIMD.
9414 2014-08-07 Ian Bolton <ian.bolton@arm.com>
9415 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9417 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9418 Use MOVN when one of the half-words is 0xffff.
9420 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
9422 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9424 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9426 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
9427 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9428 (rfs_str): String corresponding to RFS_* constants.
9429 (rank_for_schedule_stats_t): New typedef.
9430 (rank_for_schedule_stats): New static variable.
9431 (rfs_result): New static function.
9432 (rank_for_schedule): Track statistics for deciding heuristics.
9433 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9435 (ready_sort): Use them for debug printouts.
9436 (schedule_block): Init statistics state. Print statistics on
9437 rank_for_schedule decisions.
9439 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9441 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9443 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
9445 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9448 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
9450 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9451 function to not conflict.
9452 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9453 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9454 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9455 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9456 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9459 2014-08-07 Marek Polacek <polacek@redhat.com>
9461 * fold-const.c (fold_binary_loc): Add folding of
9462 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9464 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
9466 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9467 instead of type size.
9468 (ASM_FINISH_DECLARE_OBJECT): Likewise.
9470 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
9472 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9473 (*thumb1_movqi_insn): Likewise.
9474 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9476 2014-08-07 Tom de Vries <tom@codesourcery.com>
9478 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9479 (glibc_2_11_or_earlier): Remove effective-target keywords.
9481 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9483 * config/arm/arm.c (bdesc_2arg): Fix typo.
9484 (arm_atomic_assign_expand_fenv): Remove The default implementation.
9486 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
9488 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9490 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
9493 * haifa-sched.c (advance_one_cycle): Fix dump.
9494 (schedule_block): Don't advance cycle if we are already at the
9495 beginning of the cycle.
9497 2014-08-06 Martin Jambor <mjambor@suse.cz>
9500 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9502 2014-08-06 Richard Biener <rguenther@suse.de>
9505 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9507 (lto_input_tree): Pop SCCs here.
9509 2014-08-06 Richard Biener <rguenther@suse.de>
9511 PR tree-optimization/61320
9512 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9513 handle misaligned loads.
9515 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
9517 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9518 (aarch64_expand_vec_perm_const): Check for dup before zip.
9520 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9522 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9523 CONST_INT_P instead of GET_CODE and compare.
9524 (aarch64_select_cc_mode): Likewise.
9525 (aarch64_print_operand): Likewise.
9526 (aarch64_rtx_costs): Likewise.
9527 (aarch64_simd_valid_immediate): Likewise.
9528 (aarch64_simd_check_vect_par_cnst_half): Likewise.
9529 (aarch64_simd_emit_pair_result_insn): Likewise.
9531 2014-08-05 David Malcolm <dmalcolm@redhat.com>
9533 * gdbhooks.py (find_gcc_source_dir): New helper function.
9534 (class PassNames): New class, locating and parsing passes.def.
9535 (class BreakOnPass): New command "break-on-pass".
9537 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
9539 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9542 2014-08-05 Richard Biener <rguenther@suse.de>
9544 PR rtl-optimization/61672
9545 * emit-rtl.h (mem_attrs_eq_p): Declare.
9546 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
9547 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9548 * cfgcleanup.c (merge_memattrs): Likewise.
9551 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9553 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9554 rather than singleton vectors.
9555 (vqdmlsls_lane_s32): Likewise.
9557 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9559 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9560 Use VSDQ_HSI mode iterator.
9561 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9562 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9563 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9564 Use BUILTIN_VDQHS macro.
9565 (sqrdmulh_laneq): Likewise.
9566 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9567 (vqdmlals_laneq_s32): Likewise.
9568 (vqdmlslh_laneq_s16): Likewise.
9569 (vqdmlsls_laneq_s32): Likewise.
9570 (vqdmulhh_laneq_s16): Likewise.
9571 (vqdmulhs_laneq_s32): Likewise.
9572 (vqrdmulhh_laneq_s16): Likewise.
9573 (vqrdmulhs_laneq_s32): Likewise.
9575 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9577 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9578 (vmuld_laneq_f64): Likewise.
9579 (vmuls_laneq_f32): Likewise.
9580 (vmul_n_f64): Likewise.
9581 (vmuld_lane_f64): Reimplement in C.
9582 (vmuls_lane_f32): Likewise.
9584 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9586 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9588 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9590 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9592 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9593 (rbitsi2): Likewise.
9594 (*arm_rev): Set predicable and predicable_short_it attributes.
9596 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9598 * convert.c (convert_to_integer): Guard transformation to lrint by
9601 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9603 * config/aarch64/aarch64-builtins.c
9604 (aarch64_simd_builtin_type_mode): Delete.
9605 (v8qi_UP): Remap to V8QImode.
9606 (v4hi_UP): Remap to V4HImode.
9607 (v2si_UP): Remap to V2SImode.
9608 (v2sf_UP): Remap to V2SFmode.
9609 (v1df_UP): Remap to V1DFmode.
9610 (di_UP): Remap to DImode.
9611 (df_UP): Remap to DFmode.
9612 (v16qi_UP):V16QImode.
9613 (v8hi_UP): Remap to V8HImode.
9614 (v4si_UP): Remap to V4SImode.
9615 (v4sf_UP): Remap to V4SFmode.
9616 (v2di_UP): Remap to V2DImode.
9617 (v2df_UP): Remap to V2DFmode.
9618 (ti_UP): Remap to TImode.
9619 (ei_UP): Remap to EImode.
9620 (oi_UP): Remap to OImode.
9621 (ci_UP): Map to CImode.
9622 (xi_UP): Remap to XImode.
9623 (si_UP): Remap to SImode.
9624 (sf_UP): Remap to SFmode.
9625 (hi_UP): Remap to HImode.
9626 (qi_UP): Remap to QImode.
9627 (aarch64_simd_builtin_datum): Make mode a machine_mode.
9628 (VAR1): Build builtin name.
9629 (aarch64_init_simd_builtins): Remove dead code.
9631 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9633 * graphite-isl-ast-to-gimple.c:
9634 (set_options): New function.
9635 (scop_to_isl_ast): Add calling of set_options.
9637 2014-08-05 Jakub Jelinek <jakub@redhat.com>
9639 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9640 (analyze_iv_to_split_insn): Don't initialize them.
9641 (get_ivts_expr): Removed.
9642 (allocate_basic_variable, insert_base_initialization): Use
9643 SET_SRC instead of *get_ivts_expr.
9644 (split_iv): Use &SET_SRC instead of get_ivts_expr.
9646 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9648 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9649 (translate_isl_ast_for_loop): Add checking of the
9650 flag_loop_parallelize_all.
9651 (ast_build_before_for): New function.
9652 (scop_to_isl_ast): Add checking of the
9653 flag_loop_parallelize_all.
9654 * graphite-dependences.c: Move the defenition of the
9655 scop_get_dependences from graphite-optimize-isl.c to this file.
9656 (apply_schedule_on_deps): Add checking of the ux's emptiness.
9657 (carries_deps): Add checking of the x's value.
9658 * graphite-optimize-isl.c: Move the defenition of the
9659 scop_get_dependences to graphite-dependences.c.
9660 * graphite-poly.h: Add declarations of scop_get_dependences
9663 2014-08-04 Rohit <rohitarulraj@freescale.com>
9666 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9668 (alt_reg_names): Likewise.
9669 (rs6000_dwarf_register_span): For SPE high registers, replace
9670 dwarf register numbers with GCC hard register numbers.
9671 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9672 (rs6000_dbx_register_number): For SPE high registers, return dwarf
9673 register number for the corresponding GCC hard register number.
9674 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9675 newly added GCC hard register numbers for SPE high registers.
9676 (DWARF_FRAME_REGISTERS): Likewise.
9677 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9678 (DWARF_FRAME_REGNUM): Likewise.
9679 (FIXED_REGISTERS): Likewise.
9680 (CALL_USED_REGISTERS): Likewise.
9681 (CALL_REALLY_USED_REGISTERS): Likewise.
9682 (REG_ALLOC_ORDER): Likewise.
9683 (enum reg_class): Likewise.
9684 (REG_CLASS_NAMES): Likewise.
9685 (REG_CLASS_CONTENTS): Likewise.
9686 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9688 2014-08-04 Richard Biener <rguenther@suse.de>
9690 * gimple-fold.h (gimple_fold_builtin): Remove.
9691 * gimple-fold.c (gimple_fold_builtin): Make static.
9692 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9693 fold_stmt, not gimple_fold_builtin.
9695 2014-08-04 Martin Liska <mliska@suse.cz>
9697 * cgraph.h (csi_end_p): Removed.
9698 (csi_next): Likewise.
9699 (csi_node): Likewise.
9700 (csi_start): Likewise.
9701 (cgraph_node_in_set_p): Likewise.
9702 (cgraph_node_set_size): Likewise.
9703 (vsi_end_p): Likewise.
9704 (vsi_next): Likewise.
9705 (vsi_node): Likewise.
9706 (vsi_start): Likewise.
9707 (varpool_node_set_size): Likewise.
9708 (cgraph_node_set_nonempty_p): Likewise.
9709 (varpool_node_set_nonempty_p): Likewise.
9710 * cgraphunit.c (cgraph_process_new_functions): vec replaces
9712 * ipa-inline-transform.c: Likewise.
9713 * ipa-utils.c (cgraph_node_set_new): Removed.
9714 (cgraph_node_set_add): Likewise.
9715 (cgraph_node_set_remove): Likewise.
9716 (cgraph_node_set_find): Likewise.
9717 (dump_cgraph_node_set): Likewise.
9718 (debug_cgraph_node_set): Likewise.
9719 (free_cgraph_node_set): Likewise.
9720 (varpool_node_set_new): Likewise.
9721 (varpool_node_set_add): Likewise.
9722 (varpool_node_set_remove): Likewise.
9723 (varpool_node_set_find): Likewise.
9724 (dump_varpool_node_set): Likewise.
9725 (free_varpool_node_set): Likewise.
9726 (debug_varpool_node_set): Likewise.
9727 * tree-emutls.c (struct tls_var_data):
9728 (emutls_index): Removed.
9729 (emutls_decl): Likewise.
9730 (gen_emutls_addr): Function implementation uses newly added
9731 hash_map<varpool_node *, tls_var_data>.
9732 (clear_access_vars): Likewise.
9733 (create_emultls_var): Likewise.
9734 (ipa_lower_emutls): Likewise.
9735 (reset_access): New function.
9737 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9739 * config/i386/i386.c (ix86_option_override_internal): Add
9740 PTA_RDRND and PTA_MOVBE for bdver4.
9742 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9743 James Greenhalgh <james.greenhalgh@arm.com>
9745 * doc/md.texi (clrsb): Document.
9746 (clz): Change reference to x into operand 1.
9748 (popcount): Likewise.
9750 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9753 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9754 move to subtarget in serial version if result is ignored.
9756 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9757 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9759 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9760 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
9761 (sched_analyze_insn): Update use of try_group_insn to
9762 sched_macro_fuse_insns.
9763 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9764 arguments that are not conditional jumps.
9766 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9768 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9769 family information. Handle BTVER2 cpu with cpuid family value.
9771 2014-08-04 Tom de Vries <tom@codesourcery.com>
9773 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9774 (glibc_2_11_or_earlier): Document effective-target keywords.
9776 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9778 * ipa-devirt.c (odr_type_warn_count): Add type.
9779 (possible_polymorphic_call_targets): Set it.
9780 (ipa_devirt): Use it.
9782 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9784 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9786 * ipa-devirt.c: Include hash-map.h
9787 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9788 (clear_speculation): Break out of ...
9789 (get_class_context): ... here; speed up handling obviously useless
9791 (odr_type_warn_count, decl_warn_count): New structures.
9792 (final_warning_record): New structure.
9793 (final_warning_records): New static variable.
9794 (possible_polymorphic_call_targets): Cleanup handling of
9795 speculative info; do not build speculation when user do not care;
9796 record info about warnings when asked for.
9797 (add_decl_warning): New function.
9798 (type_warning_cmp): New function.
9799 (decl_warning_cmp): New function.
9800 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9801 (gate): Enable pass when warnings are requested.
9802 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9805 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9807 * hash-map.h (default_hashmap_traits::mark_key_deleted):
9809 (hash_map::remove): New method.
9810 (hash_map::traverse): New method.
9811 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9812 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9813 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9814 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9815 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9816 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9819 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9821 * hash-set.h: new File.
9822 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9823 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9824 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9825 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9826 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9827 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9828 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9829 varpool.c: Use hash_set instead of pointer_set.
9831 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
9833 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9835 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9837 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9838 for frame access when strict_p is false.
9840 2014-08-01 Renlin Li <renlin.li@arm.com>
9841 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9843 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9844 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9845 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9847 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9849 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9850 aarch64_mem_pair_offset.
9852 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9854 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9856 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9857 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9859 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
9861 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9863 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
9866 * cgraphunit.c (analyze_functions): Use get_create rather than get
9867 for decls which are clones of abstract functions.
9869 2014-08-01 Martin Liska <mliska@suse.cz>
9871 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9872 * ipa-prop.h (count_formal_params): Global function created from static.
9873 * ipa-prop.c (count_formal_params): Likewise.
9874 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9875 profiles for semantically equivalent functions.
9876 * passes.c (do_per_function): If we load body of a function
9877 during WPA, this condition should behave same.
9878 * varpool.c (ctor_for_folding): More tolerant assert for variable
9879 aliases created during WPA.
9881 2014-08-01 Martin Liska <mliska@suse.cz>
9883 * doc/invoke.texi (Options That Control Optimization): Documentation
9884 for -foptimize-strlen introduced. Optimization levels default options
9887 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9889 * opts.c (common_handle_option): Handle -fsanitize=alignment.
9890 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9891 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9893 * stor-layout.h (min_align_of_type): New prototype.
9894 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9895 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
9897 * ubsan.c: Include builtins.h.
9898 (ubsan_expand_bounds_ifn): Change return type to bool,
9900 (ubsan_expand_null_ifn): Change return type to bool, change
9901 argument to gimple_stmt_iterator *. Handle both null and alignment
9902 sanitization, take type from ckind argument's type rather than
9904 (instrument_member_call): Removed.
9905 (instrument_mem_ref): Remove t argument, add mem and base arguments.
9906 Handle both null and alignment sanitization, don't say whole
9907 struct access is member access. Build 3 argument IFN_UBSAN_NULL
9908 call instead of 2 argument.
9909 (instrument_null): Adjust instrument_mem_ref caller. Don't
9910 instrument calls here.
9911 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9913 * stor-layout.c (min_align_of_type): New function.
9914 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9915 Or it into SANITIZE_UNDEFINED.
9916 * doc/invoke.texi (-fsanitize=alignment): Document.
9918 2014-07-31 Andi Kleen <ak@linux.intel.com>
9920 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9922 2014-07-31 Andi Kleen <ak@linux.intel.com>
9924 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9926 (vn_reference_compute_hash): Dito.
9927 (vn_nary_op_compute_hash): Dito.
9928 (vn_phi_compute_hash): Dito.
9929 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9931 2014-07-31 Andi Kleen <ak@linux.intel.com>
9933 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9934 Rename to inchash:add_expr_commutative. Convert to inchash.
9935 (iterative_hash_hashable_expr): Rename to
9936 inchash:add_hashable_expr. Convert to inchash.
9937 (avail_expr_hash): Dito.
9939 2014-07-31 Andi Kleen <ak@linux.intel.com>
9941 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9944 2014-07-31 Andi Kleen <ak@linux.intel.com>
9946 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9948 2014-07-31 Andi Kleen <ak@linux.intel.com>
9950 * Makefile.in (OBJS): Add rtlhash.o
9951 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9952 (loc_checksum): Dito.
9953 (loc_checksum_ordered): Dito.
9954 (hash_loc_operands): Dito.
9956 (hash_loc_list): Dito.
9957 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9958 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9959 * rtlhash.c: New file.
9960 * rtlhash.h: New file.
9962 2014-07-31 Andi Kleen <ak@linux.intel.com>
9964 * inchash.h (inchash): Change inchash class to namespace.
9965 (class hash): ... Rename from inchash.
9966 (add_object): Move from macro to class template.
9967 * lto-streamer-out.c (hash_tree): Change inchash
9969 * tree.c (build_type_attribute_qual_variant): Dito.
9970 (type_hash_list): Dito.
9971 (attribute_hash_list): Dito.
9972 (iterative_hstate_expr): Rename to inchash::add_expr
9973 (build_range_type_1): Change inchash to inchash::hash
9974 and use hash::add_expr.
9975 (build_array_type_1): Dito.
9976 (build_function_type): Dito
9977 (build_method_type_directly): Dito.
9978 (build_offset_type): Dito.
9979 (build_complex_type): Dito.
9980 (make_vector_type): Dito.
9981 * tree.h (iterative_hash_expr): Dito.
9983 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
9985 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9987 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9989 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9990 correct alphabetical position.
9991 (vpaddd_f64): Rewrite using builtins.
9992 (vpaddd_s64): Move to correct alphabetical position.
9995 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
9998 * config/sh/sh.c (sh_legitimate_address_p,
9999 sh_legitimize_reload_address): Handle reg+reg address modes when
10000 ALLOW_INDEXED_ADDRESS is false.
10001 * config/sh/predicates.md (general_movsrc_operand,
10002 general_movdst_operand): Likewise.
10004 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10006 * config/aarch64/aarch64-builtins.c
10007 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10010 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10012 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10013 the generated mask based on BYTES_BIG_ENDIAN.
10014 (aarch64_simd_check_vect_par_cnst_half): New.
10015 * config/aarch64/aarch64-protos.h
10016 (aarch64_simd_check_vect_par_cnst_half): New.
10017 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10018 the check out to aarch64_simd_check_vect_par_cnst_half.
10019 (vect_par_cnst_lo_half): Likewise.
10020 * config/aarch64/aarch64-simd.md
10021 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10022 (move_hi_quad_<mode>): Always generate a low mask.
10024 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10026 * doc/invoke.texi (AVR Options): Add documentation about
10027 __AVR_DEVICE_NAME__ built-in macro.
10029 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
10032 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10033 constraints are satisfied.
10034 (<shift>di3_neon): Likewise.
10036 2014-07-31 Richard Biener <rguenther@suse.de>
10038 PR tree-optimization/61964
10039 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10040 by structural equality.
10042 2014-07-31 Yury Gribov <y.gribov@samsung.com>
10044 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10045 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10046 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10048 * gcc.c (sanitize_spec_function): Support new option.
10049 (SANITIZER_SPEC): Remove now redundant check.
10050 * opts.c (common_handle_option): Support new option.
10051 (finish_options): Check for incompatibilities.
10052 * toplev.c (process_options): Split userspace-specific checks.
10054 2014-07-31 Richard Biener <rguenther@suse.de>
10056 * lto-streamer.h (struct output_block): Remove global.
10057 (struct data_in): Remove labels, num_named_labels and
10058 num_unnamed_labels.
10059 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10060 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10062 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
10065 * common.opt (-Wreturn-local-addr): Moved from c.opt.
10066 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10067 (isolate_path): New argument to avoid inserting a trap.
10068 (find_implicit_erroneous_behaviour): Handle returning the address
10069 of a local variable.
10070 (find_explicit_erroneous_behaviour): Likewise.
10072 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
10075 * toplev.c (init_random_seed): Move piece of code never called to
10077 (set_random_seed): see above.
10079 2014-07-31 Tom de Vries <tom@codesourcery.com>
10081 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10083 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
10085 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10086 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10088 2014-07-31 Richard Biener <rguenther@suse.de>
10090 * data-streamer.h (streamer_write_data_stream): Declare here,
10092 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
10093 * lto-cgraph.c (lto_output_node): Adjust.
10094 (lto_output_varpool_node): Likewise.
10095 * data-streamer-out.c (streamer_string_index): Likewise.
10096 (streamer_write_data_stream, lto_append_block): Move from ...
10097 * lto-section-out.c (lto_output_data_stream,
10098 lto_append_block): ... here.
10100 2014-07-30 Mike Stump <mikestump@comcast.net>
10102 * configure.ac: Also check for popen.
10103 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10104 * configure: Regenerate.
10105 * config.in: Regenerate.
10107 2014-07-30 Martin Jambor <mjambor@suse.cz>
10109 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10110 parameter to gimple.
10112 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10114 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10115 address as second parameter to __tpf_eh_return routine.
10117 2014-07-30 Jiong Wang <jiong.wang@arm.com>
10119 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10122 2014-07-30 Tom Tromey <tromey@redhat.com>
10125 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10126 * doc/extend.texi (Type Attributes): Document designated_init
10129 2014-07-30 Roman Gareev <gareevroman@gmail.com>
10131 * graphite-isl-ast-to-gimple.c:
10132 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10133 (gcc_expression_from_isl_expression): Pass type to
10134 gcc_expression_from_isl_ast_expr_id.
10136 2014-07-30 Richard Biener <rguenther@suse.de>
10138 * lto-streamer.h (lto_write_data): New function.
10139 * langhooks.c (lhd_append_data): Do not free block.
10140 * lto-section-out.c (lto_write_data): New function writing
10141 raw data to the current section.
10142 (lto_write_stream): Adjust for langhook semantic change.
10143 (lto_destroy_simple_output_block): Write header directly.
10144 * lto-opts.c (lto_write_options): Write options directly.
10145 * lto-streamer-out.c (produce_asm): Write heaeder directly.
10146 (lto_output_toplevel_asms): Likewise.
10147 (copy_function_or_variable): Copy data directly.
10148 (write_global_references): Output index table directly.
10149 (lto_output_decl_state_refs): Likewise.
10150 (write_symbol): Write data directly.
10151 (produce_symtab): Adjust.
10152 (produce_asm_for_decls): Output header and refs directly.
10154 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10156 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10157 to speculative_targets
10158 (get_class_context): Fix handling of contextes without outer type;
10159 avoid matching non-polymorphic types in LTO.
10160 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10161 parameter to speculative_targetsp; handle speculation.
10162 (dump_possible_polymorphic_call_targets): Update dumping.
10164 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10166 * common.opt (Wodr): Enable by default.
10168 2014-07-29 Olivier Hainque <hainque@adacore.com>
10170 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10172 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
10175 * gengtype.c (strtoken): New function.
10176 (create_user_defined_type): Replace strtok with strtoken.
10178 2014-07-29 Nathan Sidwell <nathan@acm.org>
10180 * gcov-io.c (gcov_var): Make hidden.
10181 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10182 (gcov_do_dump): Declare.
10183 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10185 2014-07-29 Martin Jambor <mjambor@suse.cz>
10187 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10188 parameter to gimple.
10189 (sra_modify_assign): Likewise.
10191 2014-07-29 Richard Biener <rguenther@suse.de>
10193 PR middle-end/52478
10194 * expr.c (expand_expr_real_2): Revert last change.
10196 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10198 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10199 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10200 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10202 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10203 (contains_type_p): Forward declare.
10204 (polymorphic_call_target_hasher::hash): Hash speculative info.
10205 (polymorphic_call_target_hasher::equal): Compare speculative info.
10206 (get_class_context): Handle speuclation.
10207 (contains_type_p): Update.
10208 (get_polymorphic_call_info_for_decl): Update.
10209 (walk_ssa_copies): Break out from ...
10210 (get_polymorphic_call_info): ... here; set speculative context
10212 * ipa-prop.c (ipa_write_indirect_edge_info,
10213 ipa_read_indirect_edge_info): Stream speculative context.
10214 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10215 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10216 SPECULATIVE_MAYBE_DERIVED_TYPE).
10217 (possible_polymorphic_call_targets overriders): Update.
10218 (dump_possible_polymorphic_call_targets overriders): Update.
10219 (dump_possible_polymorphic_call_target_p overriders): Update.
10221 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10223 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10224 ipa-devirt path; fix thinko there.
10226 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
10228 * config/i386/i386.c (ix86_return_in_memory): Replace one
10229 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10231 2014-07-28 Marek Polacek <polacek@redhat.com>
10233 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
10235 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
10237 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10238 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10239 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
10240 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10241 (USE_LD_AS_NEEDED): Likewise.
10242 (ASM_APP_ON): Likewise.
10243 (ASM_APP_OFF): Likewise.
10244 (TARGET_POSIX_IO): Likewise.
10245 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
10246 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10247 (USE_LD_AS_NEEDED): Likewise.
10248 (ASM_APP_ON): Likewise.
10249 (ASM_APP_OFF): Likewise.
10250 (TARGET_POSIX_IO): Likewise.
10252 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
10254 PR middle-end/61734
10255 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
10256 operators other than the equality operators.
10258 2014-07-28 Richard Biener <rguenther@suse.de>
10260 PR middle-end/52478
10261 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
10262 sure to register SImode ones, not only >= word_mode ones.
10263 * expr.c (expand_expr_real_2): When expanding -ftrapv
10264 binops do not use OPTAB_LIB_WIDEN.
10266 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
10268 PR middle-end/61919
10269 * tree-outof-ssa.c (insert_partition_copy_on_edge)
10270 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
10271 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
10272 inserting them in the insn stream.
10274 2014-07-28 Marek Polacek <polacek@redhat.com>
10276 PR middle-end/61913
10277 * common.opt (Wodr): Add Var.
10279 2014-07-28 Richard Biener <rguenther@suse.de>
10281 PR tree-optimization/61921
10282 * tree-ssa-structalias.c (create_variable_info_for_1): Check
10283 if there is a varpool node before dereferencing it.
10285 2014-07-28 Roman Gareev <gareevroman@gmail.com>
10287 * graphite-sese-to-poly.c:
10288 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
10289 id of the pbb), which contains pointer to the pbb1.
10291 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
10293 2014-07-28 Roman Gareev <gareevroman@gmail.com>
10295 * graphite-isl-ast-to-gimple.c:
10296 (graphite_create_new_guard): New function.
10297 (translate_isl_ast_node_if): New function.
10298 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
10300 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
10302 2014-07-27 Anthony Green <green@moxielogic.com>
10304 * config.gcc: Add moxie-*-moxiebox* configuration.
10305 * config/moxie/moxiebox.h: New file.
10307 2014-07-26 Andrew Pinski <apinski@cavium.com>
10309 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
10310 from the read only register.
10312 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10314 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10315 as the allocation class if it isn't likely to be spilled.
10317 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10319 * rtl.h (tls_referenced_p): Declare.
10320 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10321 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10322 (mips_cannot_force_const_mem): Use tls_referenced_p.
10323 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10324 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10325 instead of pa_tls_referenced_p.
10326 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10327 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10328 (pa_legitimate_constant_p): Likewise.
10329 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10330 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10331 (rs6000_cannot_force_const_mem, rs6000_emit_move)
10332 (rs6000_address_for_altivec): Use tls_referenced_p instead of
10333 rs6000_tls_referenced_p.
10334 (rs6000_tls_symbol_ref_1): Delete.
10336 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
10339 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10340 Optimize inverse of a VEC_CONCAT.
10342 2014-07-25 Xinliang David Li <davidxl@google.com>
10344 * params.def: New parameter.
10345 * coverage.c (get_coverage_counts): Check new flag.
10346 (coverage_compute_profile_id): Check new flag.
10347 (coverage_begin_function): Check new flag.
10348 (coverage_end_function): Check new flag.
10349 * value-prof.c (coverage_node_map_initialized_p): New function.
10350 (init_node_map): Populate map with all functions.
10351 * doc/invoke.texi: Document new parameter.
10353 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
10354 Richard Biener <rguenther@suse.de>
10356 * lto-streamer-out.c (struct sccs): Turn to ...
10357 (class DFS): ... this one; refactor the DFS walk so it can
10358 be re-done on per-SCC basis.
10359 (DFS::DFS): New constructor.
10360 (DFS::~DFS): New destructor.
10361 (hash_tree): Add new MAP argument holding in-SCC hash values;
10362 remove POINTER_TYPE hashing hack.
10363 (scc_entry_compare): Rename to ...
10364 (DFS::scc_entry_compare): ... this one.
10365 (hash_scc): Rename to ...
10366 (DFS::hash_scc): ... this one; pass output_block instead
10367 of streamer_cache; work harder to get unique and stable SCC
10369 (DFS_write_tree): Rename to ...
10370 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
10371 (lto_output_tree): Update.
10373 2014-07-25 Andi Kleen <ak@linux.intel.com>
10375 * lto-streamer-out.c (hash_tree): Convert to inchash.
10377 2014-07-25 Andi Kleen <ak@linux.intel.com>
10379 * tree.c (build_type_attribute_qual_variant): Use inchash.
10380 (type_hash_list): Dito.
10381 (attribute_hash_list): Dito
10382 (iterative_hstate_expr): Dito.
10383 (iterative_hash_expr): Dito.
10384 (build_range_type_1): Dito.
10385 (build_array_type_1): Dito.
10386 (build_function_type): Dito.
10387 (build_method_type_directly): Dito.
10388 (build_offset_type): Dito.
10389 (build_complex_type): Dito.
10390 (make_vector_type): Dito.
10391 * tree.h (iterative_hash_expr): Add compat wrapper.
10392 (iterative_hstate_expr): Add.
10394 2014-07-25 Andi Kleen <ak@linux.intel.com>
10396 * Makefile.in (OBJS): Add inchash.o.
10397 (PLUGIN_HEADERS): Add inchash.h.
10398 * ipa-devirt.c: Include inchash.h.
10399 * lto-streamer-out.c: Dito.
10400 * tree-ssa-dom.c: Dito.
10401 * tree-ssa-pre.c: Dito.
10402 * tree-ssa-sccvn.c: Dito.
10403 * tree-ssa-tail-merge.c: Dito.
10405 * tree.c (iterative_hash_hashval_t): Move to ...
10406 (iterative_hash_host_wide_int): Move to ...
10407 * inchash.c: Here. New file.
10408 * tree.h (iterative_hash_hashval_t): Move to ...
10409 (iterative_hash_host_wide_int): Move to ...
10410 * inchash.h: Here. New file.
10412 2014-07-25 Richard Biener <rguenther@suse.de>
10414 PR middle-end/61762
10415 PR middle-end/61894
10416 * fold-const.c (native_encode_int): Add and handle offset
10417 parameter to do partial encodings of expr.
10418 (native_encode_fixed): Likewise.
10419 (native_encode_real): Likewise.
10420 (native_encode_complex): Likewise.
10421 (native_encode_vector): Likewise.
10422 (native_encode_string): Likewise.
10423 (native_encode_expr): Likewise.
10424 * fold-const.c (native_encode_expr): Add offset parameter
10426 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10427 (fold_ctor_reference): Handle all reads from tcc_constant
10430 2014-07-25 Richard Biener <rguenther@suse.de>
10432 * tree-inline.c (estimate_move_cost): Mark speed_p argument
10433 as possibly unused.
10435 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10437 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10439 2014-07-24 Kyle McMartin <kyle@redhat.com>
10441 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10443 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10445 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10447 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10449 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10450 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10451 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10453 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10455 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10456 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10457 aggregate types. Instead, *all* aggregate types, except for single-
10458 element or homogeneous float/vector aggregates, are quadword-aligned
10459 if required by their type alignment. Issue -Wpsabi note when a type
10460 is now treated differently than before.
10462 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10464 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10465 does not fit fully into floating-point registers, and there is still
10466 space in the register parameter area, use GPRs to pass those parts
10467 of the argument. Issue -Wpsabi note if any parameter is now treated
10468 differently than before.
10469 (rs6000_arg_partial_bytes): Update.
10471 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
10473 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10475 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10477 * rtl.h (target_rtl): Remove lang_dependent_initialized.
10478 * toplev.c (initialize_rtl): Don't use it. Move previously
10479 "language-dependent" calls to...
10480 (backend_init): ...here.
10481 (lang_dependent_init_target): Don't set lang_dependent_initialized.
10482 Assert that RTL initialization hasn't happend yet.
10484 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10486 PR rtl-optimization/61629
10487 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10488 they have already been initialized.
10490 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10492 PR middle-end/61268
10493 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10494 DECL_INCOMING_RTL and entry_parm.
10495 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10496 * calls.c (load_register_parameters): Likewise argument values.
10497 (emit_library_call_value_1, store_one_arg): Likewise argument
10499 * config/i386/i386.c (assign_386_stack_local): Likewise the local
10501 * explow.c (validize_mem): Modify the argument in-place.
10503 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10505 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10506 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10508 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10510 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10511 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10513 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10515 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10516 (aarch64_save_callee_saves): New parameter "skip_wb".
10517 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10519 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10521 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10523 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10525 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10527 * graphite-isl-ast-to-gimple.c:
10528 (graphite_create_new_loop): Add calling of isl_id_free to properly
10529 decrement reference counts.
10531 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10533 2014-07-24 Martin Liska <mliska@suse.cz>
10534 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10536 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10537 (rs6000_code_end): Likewise.
10539 2014-07-24 Martin Liska <mliska@suse.cz>
10541 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10542 symtab_node funtion used.
10543 (rs6000_xcoff_declare_object_name): Likewise.
10545 2014-07-24 Martin Liska <mliska@suse.cz>
10547 * cgraphunit.c (compile): Correct function used.
10549 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10551 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10554 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10557 * varasm.c (bss_initializer_p): Handle offlined ctors.
10558 (align_variable, get_variable_align): Likewise.
10559 (make_decl_one_only): Likewise.
10560 (default_binds_local_p_1): Likewise.
10561 (decl_binds_to_current_def_p): Likewise.
10562 (get_variable_section): Get constructor if it is offlined.
10563 (assemble_variable_contents): Sanity check that the caller
10564 streamed in the ctor in LTO.
10566 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10568 * graphite-isl-ast-to-gimple.c:
10569 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10570 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10571 isl_ast_op_pdiv_r to the different case.
10573 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10575 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10577 PR middle-end/61876
10578 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10579 when flag_errno_math is on.
10581 2014-07-24 Martin Liska <mliska@suse.cz>
10583 * cgraph.h (varpool_node):
10584 (availability get_availability (void)):
10585 created from cgraph_variable_initializer_availability
10586 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10587 created from: cgraph_variable_initializer_availability
10588 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10589 (void finalize_named_section_flags (void)):
10590 created from varpool_finalize_named_section_flags
10591 (bool assemble_decl (void)): created from varpool_assemble_decl
10592 (void analyze (void)): created from varpool_analyze_node
10593 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10594 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10595 (void remove_initializer (void)): created from varpool_remove_initializer
10596 (tree get_constructor (void)): created from varpool_get_constructor
10597 (bool externally_visible_p (void)): created from varpool_externally_visible_p
10598 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10599 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10600 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10601 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10602 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10603 (static bool output_variables (void)): created from varpool_output_variables
10604 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10605 created from varpool_extra_name_alias
10606 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10607 (static void dump_varpool (FILE *f)): created from dump_varpool
10608 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10609 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10610 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10611 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10612 (void assemble_aliases (void)): created from assemble_aliases
10614 2014-07-24 Martin Liska <mliska@suse.cz>
10616 * cgraph.h (symtab_node):
10617 (void register_symbol (void)): created from symtab_register_node
10618 (void remove (void)): created from symtab_remove_node
10619 (void dump (FILE *f)): created from dump_symtab_node
10620 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10621 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10622 (struct ipa_ref *add_reference (symtab_node *referred_node,
10623 enum ipa_ref_use use_type)): created from add_reference
10624 (struct ipa_ref *add_reference (symtab_node *referred_node,
10625 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10626 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10627 gimple stmt)): created from maybe_add_reference
10628 (bool semantically_equivalent_p (symtab_node *target)): created from
10629 symtab_semantically_equivalent_p
10630 (void remove_from_same_comdat_group (void)): created from
10631 remove_from_same_comdat_group
10632 (void add_to_same_comdat_group (symtab_node *old_node)): created from
10633 symtab_add_to_same_comdat_group
10634 (void dissolve_same_comdat_group_list (void)): created from
10635 symtab_dissolve_same_comdat_group_list
10636 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10637 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10638 created from symtab_alias_ultimate_target
10639 (inline symtab_node *next_defined_symbol (void)): created from
10640 symtab_next_defined_symbol
10641 (bool resolve_alias (symtab_node *target)): created from
10642 symtab_resolve_alias
10643 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10644 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10645 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10646 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10647 (void set_section (const char *section)): created from set_section_1
10648 (enum availability get_availability (void)): created from symtab_node_availability
10649 (void make_decl_local (void)): created from symtab_make_decl_local
10650 (bool real_symbol_p (void)): created from symtab_read_node
10651 (can_be_discarded_p (void)): created from symtab_can_be_discarded
10652 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10653 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10654 symtab_in_same_comdat_p;
10655 (bool address_taken_from_non_vtable_p (void)): created from
10656 address_taken_from_non_vtable_p
10657 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10658 (static void dump_table (FILE *)): created from dump_symtab
10659 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10660 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10661 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10662 symtab_used_from_object_file_p
10663 (void dump_base (FILE *)): created from dump_symtab_base
10664 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10665 (void unregister (void)): created from symtab_unregister_node
10666 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10667 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10668 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10669 symtab_nonoverwritable_alias_1
10670 * cgraph.h (cgraph_node):
10671 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10672 created from cgraph_remove_node_and_inline_clones
10673 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10674 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10675 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10676 (cgraph_node *function_symbol (enum availability *avail = NULL)):
10677 created from cgraph_function_node
10678 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10679 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10680 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10681 created from cgraph_create_clone
10682 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10683 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10684 created from cgraph_create_virtual_clone
10685 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10686 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10687 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10688 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10689 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10690 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10691 created from cgraph_function_version_info
10692 (struct cgraph_function_version_info *insert_new_function_version (void)):
10693 created from insert_new_cgraph_node_version
10694 (struct cgraph_function_version_info *function_version (void)): created from
10695 get_cgraph_node_version
10696 (void analyze (void)): created from analyze_function
10697 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10698 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10699 tree real_alias) cgraph_add_thunk
10700 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10701 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10702 created from cgraph_function_or_thunk_node
10703 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10704 created from expand_thunk
10705 (void reset (void)): created from cgraph_reset_node
10706 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10707 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10708 (void remove (void)): created from cgraph_remove_node
10709 (void dump (FILE *f)): created from dump_cgraph_node
10710 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10711 (bool get_body (void)): created from cgraph_get_body
10712 (void release_body (void)): created from cgraph_release_function_body
10713 (void unnest (void)): created from cgraph_unnest_node
10714 (void make_local (void)): created from cgraph_make_node_local
10715 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10716 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10717 gcov_type count, int freq)): created from cgraph_create_edge
10718 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10719 gcov_type count, int freq)): created from cgraph_create_indirect_edge
10720 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10721 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10722 created from cgraph_create_edge_including_clones
10723 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10724 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10725 (void remove_callers (void)): created from cgraph_node_remove_callers
10726 (void remove_callees (void)): created from cgraph_node_remove_callees
10727 (enum availability get_availability (void)): created from cgraph_function_body_availability
10728 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10729 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10730 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10731 (void call_duplication_hooks (cgraph_node *node2)): created from
10732 cgraph_call_node_duplication_hooks
10733 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10734 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10735 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10736 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10737 (void call_function_insertion_hooks (void)):
10738 created from cgraph_call_function_insertion_hooks
10739 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10740 (bool local_p (void)): created from cgraph_local_node
10741 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10742 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10743 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10744 (inline bool only_called_directly_or_aliased_p (void)):
10745 created from cgraph_only_called_directly_or_aliased_p
10746 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10747 created from cgraph_will_be_removed_from_program_if_no_direct_calls
10748 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10749 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10750 (bool can_remove_if_no_direct_calls_p (void)):
10751 created from cgraph_can_remove_if_no_direct_calls_p
10752 (inline bool has_gimple_body_p (void)):
10753 created from cgraph_function_with_gimple_body_p
10754 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10755 (static void dump_cgraph (FILE *f)): created from dump_cgraph
10756 (static inline void debug_cgraph (void)): created from debug_cgraph
10757 (static void record_function_versions (tree decl1, tree decl2)):
10758 created from record_function_versions
10759 (static void delete_function_version (tree decl)):
10760 created from delete_function_version
10761 (static void add_new_function (tree fndecl, bool lowered)):
10762 created from cgraph_add_new_function
10763 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10764 (static cgraph_node * create (tree decl)): created from cgraph_create_node
10765 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10766 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10767 (static cgraph_node *get_for_asmname (tree asmname)):
10768 created from cgraph_node_for_asm
10769 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10770 created from cgraph_same_body_alias
10771 (static bool used_from_object_file_p_worker (cgraph_node *node,
10772 void *): new function
10773 (static bool non_local_p (cgraph_node *node, void *)):
10774 created from cgraph_non_local_node_p_1
10775 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10776 created from verify_cgraph
10777 (static bool make_local (cgraph_node *node, void *)):
10778 created from cgraph_make_node_local
10779 (static cgraph_node *create_alias (tree alias, tree target)):
10780 created from cgraph_create_function_alias
10781 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10782 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10783 created from cgraph_create_edge_1
10784 * cgraph.h (varpool_node):
10785 (void remove (void)): created from varpool_remove_node
10786 (void dump (FILE *f)): created from dump_varpool_node
10788 2014-07-24 Richard Biener <rguenther@suse.de>
10791 * tree-ssa-structalias.c (create_variable_info_for_1):
10792 Use varpool_get_constructor.
10793 (create_variable_info_for): Likewise.
10795 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10797 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10798 subtract outgoing area size when restoring stack_pointer_rtx.
10800 2014-07-24 Nick Clifton <nickc@redhat.com>
10802 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10803 that operations are taking place in parallel.
10804 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10806 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
10808 * omp-low.c (extract_omp_for_data): Add missing break statement.
10810 2014-07-24 Richard Biener <rguenther@suse.de>
10812 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10813 * tree-inline.c (estimate_move_cost): Add speed_p parameter
10814 and adjust MOVE_RATIO query accordingly.
10815 (estimate_num_insns): Adjust callers.
10816 * ipa-prop.c (ipa_populate_param_decls): Likewise.
10817 * ipa-cp.c (gather_context_independent_values,
10818 estimate_local_effects): Likewise.
10819 * ipa-split.c (consider_split): Likewise.
10821 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
10823 * config/i386/driver-i386.c: Remove names of unused arguments and
10824 unnecessary unused attributes.
10825 * config/i386/host-mingw32.c: Likewise.
10826 * config/i386/i386.c: Likewise.
10827 * config/i386/winnt-stubs.c: Likewise.
10828 * config/i386/winnt.c: Likewise.
10830 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10832 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10833 (aarch64_gen_loadwb_pair): New helper function.
10834 (aarch64_expand_epilogue): Simplify code using new helper functions.
10835 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10837 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10839 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10840 (aarch64_gen_storewb_pair): New helper function.
10841 (aarch64_expand_prologue): Simplify code using new helper functions.
10842 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10844 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10846 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10847 Rename to aarch64_save_callee_saves, remove restore code.
10848 (aarch64_restore_callee_saves): New function.
10850 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10852 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10853 (aarch64_save_callee_saves): New function to handle reg save
10854 for both core and vectore regs.
10856 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10858 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10859 (aarch64_gen_store_pair): New helper function.
10860 (aarch64_save_or_restore_callee_save_registers)
10861 (aarch64_save_or_restore_fprs): Use new helper functions.
10863 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10865 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10866 (aarch64_save_or_restore_callee_save_registers)
10867 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10869 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10871 * config/aarch64/aarch64.c
10872 (aarch64_save_or_restore_callee_save_registers)
10873 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10875 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10877 * config/aarch64/aarch64.c
10878 (aarch64_save_or_restore_callee_save_registers)
10879 (aarch64_save_or_restore_fprs): Remove 'increment'.
10881 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10883 * config/aarch64/aarch64.c
10884 (aarch64_save_or_restore_callee_save_registers)
10885 (aarch64_save_or_restore_fprs): Use register offset in
10886 cfun->machine->frame.reg_offset.
10888 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10890 * config/aarch64/aarch64.c
10891 (aarch64_save_or_restore_callee_save_registers)
10892 (aarch64_save_or_restore_fprs): Remove base_rtx.
10894 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10896 * config/aarch64/aarch64.c
10897 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10898 to 'start_offset'. Remove local variable 'start_offset'.
10900 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10902 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10903 type to HOST_WIDE_INT.
10905 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10907 * config/aarch64/aarch64.c (aarch64_expand_prologue)
10908 (aarch64_save_or_restore_fprs)
10909 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10911 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10913 * config/arm/t-rtems-eabi: Add
10914 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10915 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10916 mbig-endian/mthumb/march=armv7-r, and
10917 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10920 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10921 Chris Johns <chrisj@rtems.org>
10922 Joel Sherrill <joel.sherrill@oarcorp.com>
10924 * config.gcc: Add nios2-*-rtems*.
10925 * config/nios2/rtems.h: New file.
10926 * gcc/config/nios2/t-rtems: New file.
10928 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10931 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10932 constant numbers, not general constants.
10933 (rs6000_expand_vector_init): Ditto.
10935 2014-07-23 Nathan Sidwell <nathan@acm.org>
10937 * gcov-tool.c (gcov_list): Declare here.
10938 (set_gcov_list): Remove.
10939 (gcov_output_files): Set gcov_list directly.
10941 2014-07-23 Host Schirmeier <horst@schirmeier.com>
10943 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10947 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10948 callee-saved registers are available for padding purpose
10949 and r3 is not mandatory, then prefer use those callee-saved
10952 2014-07-23 Richard Biener <rguenther@suse.de>
10954 * params.def (PARAM_MAX_COMBINE_INSNS): New.
10955 * combine.c: Include statistics.h and params.h.
10956 (combine_instructions): Guard three and four insn combines
10957 with max-combine-insns value. Record statistics for combines
10959 * doc/invoke.texi (max-combine-insns): Document new param.
10961 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10963 * graphite-isl-ast-to-gimple.c:
10964 (translate_isl_ast_node_block): New function.
10965 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10967 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10968 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10970 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10972 * graphite-isl-ast-to-gimple.c:
10973 (get_max_schedule_dimensions): New function.
10974 (extend_schedule): Likewise.
10975 (generate_isl_schedule): Add calling of extend_schedule and
10976 get_max_schedule_dimensions.
10978 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10980 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10981 (case UNSPEC): Handle UNSPEC_RBIT.
10983 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10985 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10986 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10988 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10990 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10992 2014-07-22 Roman Gareev <gareevroman@gmail.com>
10994 * graphite-isl-ast-to-gimple.c:
10995 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10996 (ivs_params_clear):
10997 (build_iv_mapping): New function.
10998 (translate_isl_ast_node_user): Likewise.
10999 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11001 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11002 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11003 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11005 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11008 * config/arm/arm.md (setmem): New pattern.
11009 * config/arm/arm-protos.h (struct tune_params): New fields.
11010 (arm_gen_setmem): New prototype.
11011 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11012 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11013 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11014 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11015 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11016 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11017 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11018 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11019 (arm_const_inline_cost): New function.
11020 (arm_block_set_max_insns): New function.
11021 (arm_block_set_non_vect_profit_p): New function.
11022 (arm_block_set_vect_profit_p): New function.
11023 (arm_block_set_unaligned_vect): New function.
11024 (arm_block_set_aligned_vect): New function.
11025 (arm_block_set_unaligned_non_vect): New function.
11026 (arm_block_set_aligned_non_vect): New function.
11027 (arm_block_set_vect, arm_gen_setmem): New functions.
11029 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11031 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11033 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
11036 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11037 out of #ifdef __OPTIMIZE__.
11039 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11041 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11042 different trapping status if -fnon-call-exceptions is enabled.
11044 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11046 * expr.c (store_field): Handle VOIDmode for calls that return values
11047 in multiple locations.
11049 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11051 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
11052 (altivec_vsldoi_<mode>): Likewise.
11054 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11056 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11057 to the number of characters in the line.
11059 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11061 * graphite-isl-ast-to-gimple.c: Add using of
11062 build_nonstandard_integer_type instead of int128_integer_type_node.
11064 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
11066 * toplev.c (output_stack_usage): Adjust the location of the warning.
11068 2014-07-19 Daniel Cederman <cederman@gaisler.com>
11070 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11071 (*membar_storeload): Disable for LEON3.
11073 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11075 PR rtl-optimization/61461
11076 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11078 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
11081 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11082 Fix instruction constraint.
11083 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11085 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
11087 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11089 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
11091 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11092 GNU coding standards.
11093 (nds32_register_move_cost): Likewise.
11094 (nds32_memory_move_cost): Likewise.
11095 (nds32_address_cost): Likewise.
11097 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11099 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11101 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
11103 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11104 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11105 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11106 (HAVE_sync_compare_and_swapqi): Define.
11107 (HAVE_sync_compare_and_swaphi): Likewise.
11108 (HAVE_sync_compare_and_swapsi): Likewise.
11110 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
11112 * config/mips/p5600.md: Add missing cpu tests.
11114 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11116 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11117 (vmla_f64): Likewise.
11118 (vfms_f64): Likewise.
11119 (vmls_f64): Likewise.
11121 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11123 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11124 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11126 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11128 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11129 (vmlal_high_lane_s32): Likewise.
11130 (vmlal_high_lane_u16): Likewise.
11131 (vmlal_high_lane_u32): Likewise.
11132 (vmlsl_high_lane_s16): Likewise.
11133 (vmlsl_high_lane_s32): Likewise.
11134 (vmlsl_high_lane_u16): Likewise.
11135 (vmlsl_high_lane_u32): Likewise.
11137 2014-07-17 Terry Guo <terry.guo@arm.com>
11139 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11140 (alus_reg): Renamed to alus_sreg.
11141 * config/arm/arm-fixed.md: Change type of non-dsp instructions
11142 from alu_reg to alu_sreg. Change type of dsp instructions from
11143 alu_reg to alu_dsp_reg.
11144 * config/arm/thumb1.md: Likewise.
11145 * config/arm/thumb2.md: Likewise.
11146 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11147 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11148 with alu_sreg and alus_sreg.
11149 * config/arm/arm1026ejs.md (alu_op): Likewise.
11150 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11151 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11152 * config/arm/fa526.md (526_alu_op): Likewise.
11153 * config/arm/fa606te.md (606te_alu_op): Likewise.
11154 * config/arm/fa626te.md (626te_alu_op): Likewise.
11155 * config/arm/fa726te.md (726te_alu_op): Likewise.
11156 * config/arm/fmp626.md (mp626_alu_op): Likewise.
11157 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11158 alu_sreg, alu_dsp_reg and alus_sreg.
11159 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11160 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11161 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11162 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11163 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11164 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11165 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11166 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11167 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11168 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11169 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11170 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11171 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11172 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11173 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11174 alus_reg to alus_sreg.
11176 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
11178 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11181 2014-07-17 Richard Biener <rguenther@suse.de>
11183 PR rtl-optimization/61801
11184 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11185 don't set reg_pending_barrier if it appears in a debug-insn.
11187 2014-07-16 DJ Delorie <dj@redhat.com>
11189 * config/rx/rx.c (rx_option_override): Fix alignment values.
11190 (rx_align_for_label): Likewise.
11192 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
11195 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11196 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11197 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11199 (cris_print_index, cris_print_operand, cris_constant_index_p)
11200 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11201 (cris_address_cost): Ditto last CONSTANT_P.
11202 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
11203 callers changed. Yield cris_offsettable_symbol for non-PIC
11204 constant symbolic expressions including labels. Yield cris_unspec
11206 (cris_expand_pic_call_address): New parameter MARKERP. Set its
11207 target to pic_offset_table_rtx for calls that will likely go
11208 through PLT, const0_rtx when they can't. All callers changed.
11209 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11210 symbolic expressions to be PICified. Remove second, redundant,
11211 assert on can_create_pseudo_p returning non-zero. Use
11212 replace_equiv_address_nv, not replace_equiv_address, for final
11214 * config/cris/cris.md ("movsi"): Move variable t to pattern
11215 toplevel. Adjust assert for new cris_symbol_type member. Use
11216 CONSTANT_P instead of CONSTANT_ADDRESS_P.
11217 ("*movsi_internal") <case 9>: Make check for valid unspec operands
11219 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11220 ("call", "call_value"): Use second incoming operand as a marker
11221 for pic-offset-table-register being used.
11222 ("*expanded_call_non_v32", "*expanded_call_v32")
11223 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11224 second incoming operand to CALL, match cris_call_type_marker.
11225 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
11226 ("*expanded_call_side"): Ditto. Fix typo in comment.
11227 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11229 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11230 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11231 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
11232 users changed. Add members cris_offsettable_symbol and cris_unspec.
11233 (cris_symbol_type): Rename from cris_pic_symbol_type.
11234 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11236 * config/cris/cris-protos.h (cris_symbol_type_of,
11237 cris_expand_pic_call_address): Adjust prototypes.
11238 (cris_legitimate_constant_p): New prototype.
11240 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
11241 an existing tmake_file. Don't add t-slibgcc and t-linux.
11243 2014-07-17 Jason Merrill <jason@redhat.com>
11246 * symtab.c (symtab_remove_from_same_comdat_group): Also
11247 set_comdat_group to NULL_TREE.
11248 (verify_symtab): Fix diagnostic.
11250 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
11253 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
11255 2014-07-16 Dodji Seketeli <dodji@redhat.com>
11257 Support location tracking for built-in macro tokens
11258 * input.h (is_location_from_builtin_token): New function declaration.
11259 * input.c (is_location_from_builtin_token): New function definition.
11260 * toplev.c (general_init): Tell libcpp what the pre-defined
11261 spelling location for built-in tokens is.
11263 2014-07-16 Jakub Jelinek <jakub@redhat.com>
11265 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
11266 on the FUNCTION_DECL.
11268 2014-07-16 Richard Biener <rguenther@suse.de>
11271 * doc/extend.texi (always_inline): Clarify.
11273 2014-07-15 Eric Christopher <echristo@gmail.com>
11275 * doc/invoke.texi (Link Options): Document -z option.
11277 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
11279 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
11280 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11282 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
11284 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
11286 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
11288 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
11289 varpool_assemble_decl.
11290 * varpool.c (varpool_assemble_decl): Assert that node->definition is
11293 2014-07-15 Michael Matz <matz@suse.de>
11295 PR rtl-optimization/61772
11296 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
11298 2014-07-15 Richard Biener <rguenther@suse.de>
11300 * opts.c (default_options_table): Disable bit-ccp at -Og.
11302 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
11304 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
11306 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
11308 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
11309 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
11310 call langhook for unknown declaration.
11311 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
11312 * tree.h (DECL_ARGUMENTS): Update.
11313 * print-tree.c (print_node): Update.
11314 * tree-core.h (tree_decl_non_common): Remove arguments.
11315 (tree_function_decl): Add arguments.
11317 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
11319 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11321 2014-07-14 Richard Biener <rguenther@suse.de>
11323 PR tree-optimization/61779
11324 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11325 simplifying a condition.
11327 2014-07-14 Richard Biener <rguenther@suse.de>
11329 * builtins.c (c_strlen): Make only_value == 2 really only
11330 affect warning generation.
11332 2014-07-14 Richard Biener <rguenther@suse.de>
11334 PR tree-optimization/61757
11335 PR tree-optimization/61783
11336 PR tree-optimization/61787
11337 * tree-ssa-dom.c (record_equality): Revert canonicalization
11338 change and add comment.
11339 (propagate_rhs_into_lhs): Revert previous fix, removing
11340 loop depth restriction again.
11342 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11344 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11345 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11346 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11347 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11348 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11349 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11350 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11352 2014-07-14 Richard Biener <rguenther@suse.de>
11354 * cgraph.h (decl_in_symtab_p): Make inline.
11356 2014-07-14 Jakub Jelinek <jakub@redhat.com>
11358 PR middle-end/61294
11359 * doc/invoke.texi (-Wmemset-transposed-args): Document.
11362 * config/i386/i386.c (classify_argument): Don't merge classes above
11365 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
11367 * cgraph.h (symtab_node): Add nonzero_address.
11368 (decl_in_symtab_p): Break out from ...
11369 (symtab_get_node): ... here.
11370 * fold-const.c: Include cgraph.h
11371 (tree_single_nonzero_warnv_p): Use symtab to determine
11372 if symbol is non-zero.
11373 * symtab.c (symtab_node::nonzero_address): New method.
11375 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11377 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
11378 forgotten in previous commit.
11380 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11382 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
11384 * ipa-devirt.c: Include stor-layout.h and intl.h
11385 (odr_subtypes_equivalent_p): New function.
11386 (warn_odr): New function.
11387 (warn_type_mismatch): New function.
11388 (odr_types_equivalent_p): New function.
11389 (add_type_duplicate): Use it.
11390 * common.opt (Wodr): New flag.
11391 * doc/invoke.texi (Wodr): Document new warning.
11393 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11395 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
11396 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
11397 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
11398 (varpool_get_constructor): Push CTORS_IN timevar.
11399 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
11401 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
11403 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
11404 Remove VOID_FTYPE_PUSHORT.
11405 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
11406 Change code to USHORT_FTYPE_VOID.
11407 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
11408 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
11409 (ix86_atomic_assign_expand_fenv): Update for
11410 __builtin_ia32_fnstsw changes.
11411 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11412 (fnstsw): Change operand 0 to nonimmediate operand.
11414 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11416 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11417 (varpool_get_constructor): New function.
11418 (varpool_ctor_useable_for_folding_p): Break out from ...
11419 (ctor_for_folding): ... here; use varpool_get_constructor.
11420 (varpool_assemble_decl): Likewise.
11421 * lto-streamer.h (struct output_block): Turn cgraph_node
11423 (lto_input_variable_constructor): Declare.
11424 * ipa-visibility.c (function_and_variable_visibility): Use
11425 varpool_get_constructor.
11426 * cgraph.h (varpool_get_constructor): Declare.
11427 (varpool_ctor_useable_for_folding_p): New function.
11428 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11429 parameter; return error_mark_node for non-trivial constructors.
11430 (lto_write_tree_1, DFS_write_tree): Update use of
11431 get_symbol_initial_value.
11432 (output_function): Update initialization of symbol.
11433 (output_constructor): New function.
11434 (copy_function): Rename to ..
11435 (copy_function_or_variable): ... this one; handle vars too.
11436 (lto_output): Output variable sections.
11437 * lto-streamer-in.c (input_constructor): New function.
11438 (lto_read_body): Rename from ...
11439 (lto_read_body_or_constructor): ... this one; handle vars too.
11440 (lto_input_variable_constructor): New function.
11441 * ipa-prop.c (ipa_prop_write_jump_functions,
11442 ipa_prop_write_all_agg_replacement): Update.
11443 * lto-cgraph.c (compute_ltrans_boundary): Use it.
11444 (output_cgraph_opt_summary): Set symbol to NULL.
11446 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11448 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11449 non-polymorphic types.
11450 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11451 * ipa-devirt.c (types_same_for_odr): Do not explode when one
11452 of types is not polymorphic.
11454 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
11456 * lra-constraints.c (remove_inheritance_pseudos): Process
11457 destination pseudo too.
11459 2014-07-11 Rong Xu <xur@google.com>
11461 * gcov-tool.c (gcov_output_files): Fix build error introduced in
11464 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11466 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11467 * config/avr/avr-devices.c (AVR_MCU): Same.
11468 (avr_mcu_types): add text start value to end of device list.
11469 * config/avr/avr-mcus.def: Add text section start for all devices.
11470 (ata5782): Add new avr5 device.
11472 * config/avr/avr-tables.opt: Regenerate.
11473 * config/avr/avr.h: Add declaration for text section start handler.
11474 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11476 (LINK_SPEC): Include text section start handler to linker spec.
11477 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11478 pass -Ttext option to linker if the text section start for the device
11480 * config/avr/t-multilib: Regenerate.
11481 * doc/avr-mmcu.texi: Regenerate.
11483 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
11485 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11486 * config/rs6000/aix52.h (LINK_SPEC): Same.
11487 * config/rs6000/aix53.h (LINK_SPEC): Same.
11488 * config/rs6000/aix61.h (LINK_SPEC): Same.
11489 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11491 2014-07-11 Roman Gareev <gareevroman@gmail.com>
11493 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11494 (graphite_verify): New function.
11495 (ivs_params_clear): New function.
11496 (gcc_expression_from_isl_ast_expr_id): New function.
11497 (gcc_expression_from_isl_expr_int): New function.
11498 (binary_op_to_tree): New function.
11499 (ternary_op_to_tree): New function.
11500 (unary_op_to_tree): New function.
11501 (nary_op_to_tree): New function.
11502 (gcc_expression_from_isl_expr_op): New function.
11503 (gcc_expression_from_isl_expression): New function.
11504 (graphite_create_new_loop): New function.
11505 (translate_isl_ast_for_loop): New function.
11506 (get_upper_bound): New function.
11507 (graphite_create_new_loop_guard): New function.
11508 (translate_isl_ast_node_for): New function.
11509 (translate_isl_ast): New function.
11510 (add_parameters_to_ivs_params): New function.
11511 (scop_to_isl_ast): New parameter ip.
11512 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11514 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11516 * config/xtensa/predicates.md (call expander): Update for
11517 DECL_SECTION_NAME being string.
11519 2014-07-11 Richard Biener <rguenther@suse.de>
11521 PR middle-end/61473
11522 * builtins.c (fold_builtin_memory_op): Inline memory moves that
11523 can be implemented with a single load followed by a single store.
11524 (c_strlen): Only warn when only_value is not 2.
11526 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
11528 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11530 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
11533 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11534 (*movhi_bytes): Likewise.
11535 (*arm_movqi_insn): Likewise.
11537 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
11540 * config/alpha/alpha.c: Include tree-pass.h, context.h
11541 and pass_manager.h.
11542 (pass_data_handle_trap_shadows): New pass.
11543 (pass_handle_trap_shadows::gate): New pass gate function.
11544 (make_pass_handle_trap_shadows): New function.
11545 (rest_of_handle_trap_shadows): Ditto.
11547 (alpha_align_insns_1): Rename from alpha_align_insns.
11548 (pass_data_align_insns): New pass.
11549 (pass_align_insns::gate): New pass gate function.
11550 (make_pass_aling_insns): New function.
11551 (rest_of_align_insns): Ditto.
11552 (alpha_align_insns): Ditto.
11554 (alpha_option_override): Declare handle_trap_shadows info
11555 and align_insns_info. Register handle_trap_shadows and align_insns
11557 (alpha_reorg): Do not call alpha_trap_shadows and
11558 alpha_align_insn from here.
11560 (alpha_pad_function_end): Do not skip BARRIERs.
11562 2014-07-10 Rong Xu <xur@google.com>
11564 Add gcov-tool: an offline gcda profile processing tool support.
11565 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11566 (gcov_is_error): Ditto.
11567 (gcov_read_string): Ditto.
11568 (gcov_read_sync): Ditto.
11569 * gcov-io.h: Move counter defines to gcov-counter.def.
11570 * gcov-dump.c (tag_counters): Use gcov-counter.def.
11571 * coverage.c: Ditto.
11572 * gcov-tool.c: Offline gcda profile processing tool.
11573 (unlink_gcda_file): Remove one gcda file.
11574 (unlink_profile_dir): Remove gcda files from the profile path.
11575 (gcov_output_files): Output gcda files to an output dir.
11576 (profile_merge): Merge two profiles in directory.
11577 (print_merge_usage_message): Print merge usage.
11578 (merge_usage): Print merge usage and exit.
11579 (do_merge): Driver for profile merge sub-command.
11580 (profile_rewrite): Rewrite profile.
11581 (print_rewrite_usage_message): Print rewrite usage.
11582 (rewrite_usage): Print rewrite usage and exit.
11583 (do_rewrite): Driver for profile rewrite sub-command.
11584 (print_usage): Print gcov-info usage and exit.
11585 (print_version): Print gcov-info version.
11586 (process_args): Process arguments.
11587 (main): Main routine for gcov-tool.
11588 * Makefile.in: Build and install gcov-tool.
11589 * gcov-counter.def: New file split from gcov-io.h.
11590 * doc/gcc.texi: Include gcov-tool.texi.
11591 * doc/gcov-tool.texi: Document for gcov-tool.
11593 2014-07-10 Richard Biener <rguenther@suse.de>
11595 PR tree-optimization/61757
11596 * tree-ssa-dom.c (loop_depth_of_name): Restore.
11597 (propagate_rhs_into_lhs): Revert part of last change.
11599 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
11601 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11604 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
11606 PR middle-end/53590
11607 * function.c (allocate_struct_function): Revert r188667 change.
11609 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11611 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
11613 * doc/install.texi: Remove links to defunct package providers for
11616 2014-07-09 Tom de Vries <tom@codesourcery.com>
11618 * final.c (get_call_fndecl): Declare.
11619 (self_recursive_call_p): New function.
11620 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11622 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11624 * ipa-devirt.c (record_node): Walk through aliases.
11626 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11628 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11630 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11633 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11635 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11637 * ipa-visibility.c (function_and_variable_visibility): Remove
11638 temporary hack disabling local aliases on AIX.
11640 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11642 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11643 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11645 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11647 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11648 * rs6000/rs6000.c: Inline output of .set instruction.
11649 (declare_alias_data): New struct.
11650 (rs6000_declare_alias): New function.
11651 (rs6000_xcoff_declare_function_name): Use it.
11652 (rs6000_xcoff_declare_object_name): New function.
11653 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11654 (ASM_OUTPUT_DEF): Turn to empty definition.
11656 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11659 * hash-table.h: use hash_table::value_type instead of
11660 Descriptor::value_type in the return types of several methods.
11662 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11664 * tree-pass.h (pass_data): Remove has_execute member.
11665 * passes.c (execute_one_pass): Don't check pass->has_execute.
11666 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11667 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11668 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11669 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11670 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11671 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11672 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11673 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11674 gimple-low.c, gimple-ssa-isolate-paths.c,
11675 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11676 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11677 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11678 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11679 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11680 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11681 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11682 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11683 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11684 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11685 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11686 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11687 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11688 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11689 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11690 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11691 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11692 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11693 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11694 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11695 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11696 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11697 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11698 web.c: Remove initializer for pass_data::has_execute.
11700 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11702 * graphite-htab.h: Use hash_map instead of hash_table.
11703 * graphite-clast-to-gimple.c: Adjust.
11704 * passes.c: Use hash_map instead of hash_table.
11705 * sese.c: Likewise.
11706 * sese.h: Remove now unused code.
11708 2014-07-08 Sriraman Tallam <tmsriram@google.com>
11711 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11714 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11716 PR rtl-optimization/61673
11717 * combine.c (simplify_comparison): Test just mode's sign bit
11718 in tmode rather than the sign bit and any bits above it.
11720 2014-07-08 Roman Gareev <gareevroman@gmail.com>
11722 * graphite-isl-ast-to-gimple.c (generate_isl_context):
11723 Add __isl_give to the declaration.
11724 (generate_isl_schedule): Likewise.
11725 (scop_to_isl_ast): Likewise.
11727 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11729 * config/arm/arm.c (cortexa5_extra_costs): New table.
11730 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11732 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11734 PR tree-optimization/61725
11735 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11736 range, use range_includes_zerop_p instead of integer_zerop on
11737 vr0->min, only use log2 of max if min is not negative.
11739 2014-07-08 Richard Biener <rguenther@suse.de>
11741 * tree-ssa-dom.h (loop_depth_of_name): Remove.
11742 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11743 restriction on loop depth difference.
11744 (record_equality): Likewise.
11745 (propagate_rhs_into_lhs): Likewise. Simplify condition.
11746 (loop_depth_of_name): Remove.
11747 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11748 restriction on loop depth difference.
11749 (init_copy_prop): Likewise.
11751 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11753 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11755 (walk_aliased_vdefs): Likewise.
11756 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11757 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11758 (detect_type_change_from_memory_writes): Check if entry was reached.
11760 2014-07-08 Richard Biener <rguenther@suse.de>
11762 PR tree-optimization/61681
11763 * tree-ssa-structalias.c (find_what_var_points_to): Expand
11764 NONLOCAL inside ESCAPED.
11766 2014-07-08 Richard Biener <rguenther@suse.de>
11768 PR tree-optimization/61680
11769 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11770 Handle properly all read-write dependences with group accesses.
11772 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11774 PR tree-optimization/61576
11775 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11776 block containing reduction statement is predecessor of phi basi block.
11778 2014-07-08 Marek Polacek <polacek@redhat.com>
11781 * fold-const.c (round_up_loc): Change the parameter type.
11783 * fold-const.h (round_up_loc): Adjust declaration.
11784 * stor-layout.c (finalize_record_size): Check for too large types.
11786 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
11788 * symtab.c: Include calls.h.
11789 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11791 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
11793 * config/rs6000/rs6000.c (output_vec_const_move): Handle
11794 little-endian code generation.
11795 * config/rs6000/spe.md (spe_evmergehi): Rename to...
11796 (vec_perm00_v2si): ... this. Handle little-endian code generation.
11797 (spe_evmergehilo): Rename to...
11798 (vec_perm01_v2si): ... this. Handle little-endian code generation.
11799 (spe_evmergelo): Rename to...
11800 (vec_perm11_v2si): ... this. Handle little-endian code generation.
11801 (spe_evmergelohi): Rename to...
11802 (vec_perm10_v2si): ... this. Handle little-endian code generation.
11803 (spe_evmergehi, spe_evmergehilo): New expanders.
11804 (spe_evmergelo, spe_evmergelohi): Likewise.
11805 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11806 (*frob_tf_ti): Likewise.
11807 (*frob_<mode>_di_2): Likewise.
11808 (*frob_tf_di_8_2): Likewise.
11809 (*frob_di_<mode>): Likewise.
11810 (*frob_ti_tf): Likewise.
11811 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11812 (*frob_ti_<mode>_8_2): Likewise.
11813 (*frob_ti_tf_2): Likewise.
11814 (mov_si<mode>_e500_subreg0): Rename to...
11815 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
11817 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11818 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11819 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
11820 the big endianness only.
11821 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11822 (*mov_si<mode>_e500_subreg0_2): Rename to...
11823 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
11824 big big endianness only.
11825 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11826 (*mov_si<mode>_e500_subreg4): Rename to...
11827 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
11829 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11830 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11831 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
11832 the big endianness only.
11833 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11835 (*mov_si<mode>_e500_subreg4_2): Rename to...
11836 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
11838 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11839 (*mov_sitf_e500_subreg8): Rename to...
11840 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
11842 (*mov_sitf_e500_subreg8_le): New instruction pattern.
11843 (*mov_sitf_e500_subreg8_2): Rename to...
11844 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
11846 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11847 (*mov_sitf_e500_subreg12): Rename to...
11848 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
11850 (*mov_sitf_e500_subreg12_le): New instruction pattern.
11851 (*mov_sitf_e500_subreg12_2): Rename to...
11852 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
11854 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11856 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
11858 * asan.c (instrument_strlen_call): Do not instrument first byte
11859 in strlen if already instrumented.
11861 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11863 * config/arm/arm.opt (mwords-little-endian): Delete.
11864 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11865 of TARGET_LITTLE_WORDS.
11866 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11867 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11869 * doc/invoke.texi: Remove references to -mwords-little-endian.
11871 2014-07-07 Jakub Jelinek <jakub@redhat.com>
11873 * expmed.c (struct init_expmed_rtl): Change all fields but
11874 pow2 and cint from struct rtx_def to rtx.
11875 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11876 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
11879 2014-07-06 Marek Polacek <polacek@redhat.com>
11882 * doc/invoke.texi: Document -Wsizeof-array-argument.
11884 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
11886 * wide-int.h (wide_int_storage): Change declaration from struct
11889 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
11891 * cgraph.c (cgraph_create_indirect_edge): Update call of
11892 get_polymorphic_call_info.
11893 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11894 (possible_polymorphic_call_targets): Add parameter call.
11895 (decl_maybe_in_construction_p): New predicate.
11896 (get_polymorphic_call_info): Add parameter call;
11897 use decl_maybe_in_construction_p.
11898 * gimple-fold.c (fold_gimple_assign): Update use of
11899 possible_polymorphic_call_targets.
11900 (gimple_fold_call): Likewise.
11901 * ipa-prop.c: Inlcude calls.h
11902 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11903 (param_type_may_change_p): New predicate.
11904 (detect_type_change_from_memory_writes): Break out from ...
11905 (detect_type_change): ... this one; use param_type_may_change_p.
11906 (detect_type_change_ssa): Use param_type_may_change_p.
11907 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11909 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
11912 * config/arm/arm-protos.h (arm_legitimate_address_p,
11913 arm_is_constant_pool_ref): Add prototypes.
11914 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11915 (arm_is_constant_pool_ref) New function.
11916 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11917 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11918 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11919 operand. Remove pool_range and neg_pool_range attributes.
11920 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11921 pool_range and neg_pool_range attributes.
11922 * config/arm/constraints.md (Uh): New constraint.
11923 (Uq): Don't allow constant pool references.
11925 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
11927 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11928 (move_lo_quad_internal_be_<mode>): Likewise.
11929 (move_lo_quad_<mode>): Convert to define_expand.
11930 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11931 (aarch64_simd_move_hi_quad_be_<mode>): New.
11932 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11933 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11934 (aarch64_combinez_be<mode>): New.
11935 (aarch64_combine<mode>): Convert to define_expand.
11936 (aarch64_combine_internal<mode>): New.
11937 (aarch64_simd_combine<mode>): Remove bogus RTL description.
11939 2014-07-04 Tom de Vries <tom@codesourcery.com>
11941 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11942 combination of earlyclobber and read/write modifiers.
11944 2014-07-04 Tom de Vries <tom@codesourcery.com>
11946 * config/aarch64/aarch64-simd.md
11947 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11949 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
11952 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11954 2014-07-04 Jakub Jelinek <jakub@redhat.com>
11956 PR middle-end/61654
11957 * cgraphunit.c (expand_thunk): Call free_dominance_info.
11959 PR tree-optimization/61684
11960 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11961 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11963 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11964 Kito Cheng <kito@0xlab.org>
11965 Monk Chiang <sh.chiang04@gmail.com>
11967 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11968 (nds32_symbol_load_store_p): Move to ...
11969 (nds32_fp_as_gp_check_available): Move to ...
11970 * config/nds32/nds32-fp-as-gp.c: ... here.
11971 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11972 extern declaration.
11974 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11975 Kito Cheng <kito@0xlab.org>
11976 Monk Chiang <sh.chiang04@gmail.com>
11978 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
11979 (nds32_expand_store_multiple): Move to ...
11980 (nds32_expand_movmemqi): Move to ...
11981 * config/nds32/nds32-memory-manipulation.c: ... here.
11983 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11984 Kito Cheng <kito@0xlab.org>
11985 Monk Chiang <sh.chiang04@gmail.com>
11987 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11988 (nds32_output_casesi_pc_relative): Move to ...
11989 (nds32_output_casesi): Move to ...
11990 (nds32_mem_format): Move to ...
11991 (nds32_output_16bit_store): Move to ...
11992 (nds32_output_16bit_load): Move to ...
11993 (nds32_output_32bit_store): Move to ...
11994 (nds32_output_32bit_load): Move to ...
11995 (nds32_output_32bit_load_s): Move to ...
11996 (nds32_output_stack_push): Move to ...
11997 (nds32_output_stack_pop): Move to ...
11998 * config/nds32/nds32-md-auxiliary.c: ... here.
12000 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12001 Ling-Hua Tseng <uranus@tinlans.org>
12003 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12004 the purpose of this file.
12006 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12007 Kito Cheng <kito@0xlab.org>
12008 Monk Chiang <sh.chiang04@gmail.com>
12010 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12011 (nds32_address_cost): Move implementation to ...
12012 * config/nds32/nds32-cost.c: ... here.
12013 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12014 (nds32_address_cost_impl): Declare.
12016 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12017 Kito Cheng <kito@0xlab.org>
12018 Monk Chiang <sh.chiang04@gmail.com>
12020 * config/nds32/nds32.c
12021 (nds32_consecutive_registers_load_store_p): Move to ...
12022 (nds32_valid_multiple_load_store): Move to ...
12023 (nds32_valid_stack_push_pop): Move to ...
12024 (nds32_can_use_bclr_p): Move to ...
12025 (nds32_can_use_bset_p): Move to ...
12026 (nds32_can_use_btgl_p): Move to ...
12027 (nds32_can_use_bitci_p): Move to ...
12028 * config/nds32/nds32-predicates.c: ... here.
12030 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12031 Kito Cheng <kito@0xlab.org>
12032 Monk Chiang <sh.chiang04@gmail.com>
12034 * config/nds32/nds32.c
12035 (nds32_expand_builtin_null_ftype_reg): Move to ...
12036 (nds32_expand_builtin_reg_ftype_imm): Move to ...
12037 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12038 (nds32_init_builtins): Move implementation to ...
12039 (nds32_expand_builtin): Move implementation to ...
12040 * config/nds32/nds32-intrinsic.c: ... here.
12041 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12042 (nds32_expand_builtin_impl): Declare.
12044 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12045 Kito Cheng <kito@0xlab.org>
12046 Monk Chiang <sh.chiang04@gmail.com>
12048 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12049 (nds32_emit_section_tail_template): Move to ...
12050 (nds32_emit_isr_jmptbl_section): Move to ...
12051 (nds32_emit_isr_vector_section): Move to ...
12052 (nds32_emit_isr_reset_conten): Move to ...
12053 (nds32_check_isr_attrs_conflict): Move to ...
12054 (nds32_construct_isr_vectors_information): Move to ...
12055 (nds32_asm_file_start): Move implementation to ...
12056 (nds32_asm_file_end): Move implementation to ...
12057 * config/nds32/nds32-isr.c: ... here.
12058 * config/nds32/nds32-protos.h
12059 (nds32_check_isr_attrs_conflict): Declare.
12060 (nds32_construct_isr_vectors_information): Declare.
12061 (nds32_asm_file_start_for_isr): Declare.
12062 (nds32_asm_file_end_for_isr): Declare.
12064 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12065 Kito Cheng <kito@0xlab.org>
12066 Monk Chiang <sh.chiang04@gmail.com>
12068 * config.gcc (nds32*): Add new modules to extra_objs.
12069 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12070 (nds32be-*-*): Likewise.
12071 * config/nds32/nds32-cost.c: New file.
12072 * config/nds32/nds32-fp-as-gp.c: New file.
12073 * config/nds32/nds32-intrinsic.c: New file.
12074 * config/nds32/nds32-isr.c: New file.
12075 * config/nds32/nds32-md-auxiliary.c: New file.
12076 * config/nds32/nds32-memory-manipulation.c: New file.
12077 * config/nds32/nds32-pipelines-auxiliary.c: New file.
12078 * config/nds32/nds32-predicates.c: New file.
12079 * config/nds32/t-nds32: New file.
12081 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12083 PR tree-optimization/61682
12084 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12085 using cases and when one of the operands is equal to 1.
12087 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
12089 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12090 ashr<mode>3): Correct mode of operands[2].
12091 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12092 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12093 Correct mode of operands[2]. Fix split condition.
12095 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
12097 * arm.md (arch): Add armv6_or_vfpv3.
12098 (arch_enabled): Add test for the above.
12099 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12101 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12103 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12105 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12106 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12107 HWI 1 and negate the unsigned value.
12108 * expmed.c (expand_sdiv_pow2): For modes wider than word always
12109 use AND instead of shift.
12110 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12112 2014-07-03 Marek Polacek <polacek@redhat.com>
12114 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12115 (-fsanitize=float-divide-by-zero): Move to the table with
12116 -fsanitize=undefined suboptions.
12117 (-fsanitize=float-cast-overflow): Likewise.
12119 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
12121 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12122 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12125 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12127 * loop-invariant.c (struct invariant): Add a new member: eqno;
12128 (find_identical_invariants): Update eqno;
12129 (create_new_invariant): Init eqno;
12130 (get_inv_cost): Compute comp_cost with eqno;
12132 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
12134 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12135 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12136 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12137 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12138 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12140 2014-07-02 Christian Bruel <christian.bruel@st.com>
12144 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12145 (make_preds_opaque): Delete.
12146 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12147 (commit_mode_sets): New function.
12148 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12149 Process all modes at once.
12150 * basic-block.h (pre_edge_lcm_avs): Declare.
12151 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12152 Call clear_aux_for_edges. Fix comments.
12153 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12154 (pre_edge_rev_lcm): Idem.
12155 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12157 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12158 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12160 * config/i386/i386.c (x96_emit_mode_set): Idem.
12161 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12162 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
12163 (fpscr_toggle) Disallow from delay slot.
12164 * target.def (emit_mode_set): Add prev_mode parameter.
12165 * doc/tm.texi: Regenerate.
12167 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12169 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12172 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12174 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12175 vtable_pointer_value_to_vtable): Constify.
12176 (contains_polymorphic_type_p): Declare.
12177 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12178 vtable_pointer_value_to_vtable): Constify.
12179 (contains_polymorphic_type_p): New predicate.
12180 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12182 (ipa_set_ancestor_jf): Likewise.
12183 (detect_type_change): Return false in easy cases.
12184 (compute_complex_assign_jump_func): Require type to contain
12186 (compute_known_type_jump_func): Likewise.
12188 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12190 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12192 (type_in_anonymous_namespace_p): Constify argument.
12193 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12194 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12195 (main_odr_variant): New function.
12196 (hash_type_name): Make static; update assert; do not ICE on
12198 (types_same_for_odr): Bring here from tree.c; simplify and remove
12199 old structural comparing code that doesn't work for templates.
12200 (odr_hasher::equal): Update assert.
12201 (add_type_duplicate): Return true when bases should be computed;
12202 replace incomplete loader by complete; do not output duplicated
12203 warnings; do not ICE on non-records; set odr_violated flag.
12204 (get_odr_type): Be ready to replace incomplete type by complete
12205 one; work on ODR variants instead of main variants; reorder item
12206 in array so bases have still smaller indexes.
12207 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12208 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12210 2014-07-01 Cary Coutant <ccoutant@google.com>
12212 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12214 (resolve_addr_in_expr): When replacing the rtx in a location list
12215 entry, get a new address table entry.
12216 (dwarf2out_finish): Call index_location_lists even if there are no
12217 addr_index_table entries yet.
12219 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12221 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12222 change for not being obvious.
12224 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12226 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12229 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12231 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12232 (vcagt_f64): Likewise.
12233 (vcale_f64): Likewise.
12234 (vcaled_f64): Likewise.
12235 (vcales_f32): Likewise.
12236 (vcalt_f64): Likewise.
12237 (vcaltd_f64): Likewise.
12238 (vcalts_f32): Likewise.
12240 2014-07-01 Marek Polacek <polacek@redhat.com>
12242 * doc/invoke.texi: Document -Wint-conversion.
12244 2014-07-01 Marek Polacek <polacek@redhat.com>
12247 * doc/invoke.texi: Document -Wincompatible-pointer-types.
12249 2014-07-01 Martin Liska <mliska@suse.cz>
12251 IPA REF alias refactoring
12252 * cgraph.h (iterate_direct_aliases): New function.
12253 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
12254 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
12255 FOR_EACH_ALIAS added.
12256 (cgraph_for_node_and_aliases): Likewise.
12257 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
12258 * ipa-inline.c (reset_edge_caches): Likewise.
12259 (update_caller_keys): Likewise.
12260 * trans-mem.c (ipa_tm_execute): Likewise.
12261 *varpool.c (varpool_analyze_node): Likewise.
12262 (varpool_for_node_and_aliases): Likewise.
12263 * ipa-ref.h (first_alias): New function.
12264 (last_alias): Likewise.
12265 (has_aliases_p): Likewise.
12266 * ipa-ref.c (ipa_ref::remove_reference): Removal function
12267 is sensitive to IPA_REF_ALIASes.
12268 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
12269 are put at the beginning of the list.
12270 (symtab_node::iterate_direct_aliases): New function.
12272 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12275 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12277 (write_ts_type_common_tree_pointers): Do not stream fields not set
12278 for incomplete types; do not stream duplicated fields for variants;
12279 sanity check that variant and type match.
12280 (write_ts_type_non_common_tree_pointers): Likewise.
12281 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12282 TYPE_SIZE whether type is complete.
12283 (lto_input_ts_type_common_tree_pointers): Do same changes as in
12284 write_ts_type_common_tree_pointers
12285 (lto_input_ts_type_non_common_tree_pointers): Likewise.
12287 2014-06-30 Joseph Myers <joseph@codesourcery.com>
12289 * var-tracking.c (add_stores): Return instead of asserting if old
12290 and new values for conditional store are the same.
12292 2014-06-30 Richard Henderson <rth@redhat.com>
12296 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
12297 the cfg if there were any changes.
12298 * passes.def: Revert move of peephole2 after reorder_blocks;
12299 move duplicate_computed_gotos before peephole2.
12301 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
12303 * except.c (emit_note_eh_region_end): New helper function.
12304 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
12305 emit EH_REGION_END note.
12306 * jump.c (cleanup_barriers): Do not split a call and its
12307 corresponding CALL_ARG_LOCATION note.
12309 2014-06-30 Jeff Law <law@redhat.com>
12311 PR tree-optimization/61607
12312 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
12313 deeper into the SSA_NAME_VALUE chain.
12315 2014-06-30 Marek Polacek <polacek@redhat.com>
12317 * convert.c (convert_to_integer): Don't instrument conversions if the
12318 function has no_sanitize_undefined attribute.
12319 * ubsan.c: Don't run the ubsan pass if the function has
12320 no_sanitize_undefined attribute.
12322 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12324 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12325 -fsanitize=undefined suboptions.
12327 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
12329 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12330 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12331 against bigendian and adjust indices.
12333 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12335 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
12337 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
12340 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12341 Add alternative; make early clobber. Adjust both split patterns
12342 to use operand 0 as the working register.
12344 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12346 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12347 as ira_object_id_map might be NULL, or 1.
12349 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12351 * loop-invariant.c (get_inv_cost): Handle register class.
12352 (gain_for_invariant): Check the register pressure of the inv
12353 and its overlapped register class, other than all.
12355 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12357 * doc/invoke.texi (Optimize Options): Fix descriptions of
12358 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
12360 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
12362 * doc/extend.texi (Function Attributes): Update 'naked' attribute
12365 2014-06-29 Tobias Grosser <tobias@grosser.es>
12368 * graphite-isl-ast-to-gimple.c: Add missing guards.
12370 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12372 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
12373 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
12374 * flag-types.h: Add new enum fgraphite_generator.
12375 * graphite-isl-ast-to-gimple.c: New.
12376 * graphite-isl-ast-to-gimple.h: New.
12377 * graphite.c (graphite_transform_loops): Add choice of Graphite
12378 code generator, which depends on flag_graphite_code_gen.
12380 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12382 * graphite-dependences.c (subtract_commutative_associative_deps):
12383 Add NULL checking of the following variables: must_raw_no_source,
12384 may_raw_no_source, must_war_no_source, may_war_no_source,
12385 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
12386 must_war, may_war, must_waw, may_waw.
12388 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12390 * graphite-clast-to-gimple.c: gloog is renamed to
12391 graphite_regenerate_ast_cloog. gloog_error is renamed to
12392 graphite_regenerate_error.
12393 * graphite-clast-to-gimple.h: The definition of the struct
12394 bb_pbb_def is moved to graphite-htab.h.
12395 Add inclusion of the hash-table.h.
12396 * graphite-htab.h: The declaration of the function gloog is moved
12397 to graphite-clast-to-gimple.h and renamed to
12398 graphite_regenerate_ast_cloog.
12399 * graphite.c (graphite_transform_loops): gloog is renamed
12400 to graphite_regenerate_ast_cloog.
12402 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12404 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12406 (write_ts_type_common_tree_pointers): Do not stream fields not set
12407 for incomplete types; do not stream duplicated fields for variants;
12408 sanity check that variant and type match.
12409 (write_ts_type_non_common_tree_pointers): Likewise.
12410 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12411 TYPE_SIZE whether type is complete.
12412 (lto_input_ts_type_common_tree_pointers): Do same changes as in
12413 write_ts_type_common_tree_pointers
12414 (lto_input_ts_type_non_common_tree_pointers): Likewise.
12416 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12418 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12420 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12422 * tree-inline.c (remap_type_1): Do not duplicate fields
12423 that are shared in between type and its main variant.
12425 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12427 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12429 (ipa_set_ancestor_jf) Likewise.
12430 (check_stmt_for_type_change): Check that we work on main variant.
12431 (detect_type_change): Look into main variant.
12432 (compute_known_type_jump_func): Check that main variant has BINFO.
12434 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12436 * ipa-devirt.c (set_type_binfo): New function.
12437 (add_type_duplicate): Use it.
12438 (get_odr_type): Sanity check that binfos points to main variants.
12439 (get_class_context): Be sure the context's outer_type is main variant.
12440 (contains_type_p): Walk main variant.
12441 (get_polymorphic_call_info_for_decl): Set outer_type to be
12443 (get_polymorphic_call_info): Likewise.
12444 (possible_polymorphic_call_targets): Sanity check that we operate
12447 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12449 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12451 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12453 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12454 accidental change due to wide-int branch merge.
12456 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12458 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12459 compressed debug support.
12460 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12461 * configure: Regenerate.
12462 * config.in: Regenerate.
12463 * common.opt (compressed_debug_sections): New enum.
12464 (gz, gz=): New options.
12465 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12466 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12467 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12468 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12469 LINK_COMPRESS_DEBUG_SPEC.
12470 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12471 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12472 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12473 (Debugging Options): Document -gz[=type].
12475 2014-06-27 Martin Jambor <mjambor@suse.cz>
12478 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12479 args_to_skip, use those from node instead. Copy args_to_skip and
12480 combined_args_to_skip from node to the new thunk.
12481 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12482 (cgraph_create_virtual_clone): Moved computation of
12483 combined_args_to_skip...
12484 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12486 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
12488 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12489 redundant diagnostic machinary.
12491 2014-06-27 Richard Biener <rguenther@suse.de>
12493 * tree-ssa-math-opts.c (bswap_replace): Fix
12494 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12496 2014-06-27 Martin Liska <mliska@suse.cz>
12498 * gimple.h (gimple_location_safe): New function introduced.
12499 * cgraphunit.c (walk_polymorphic_call_targets): Usage
12500 of gimple_location_safe replaces gimple_location.
12501 (gimple_fold_call): Likewise.
12502 * ipa-devirt.c (ipa_devirt): Likewise.
12503 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12504 * ipa.c (walk_polymorphic_call_targets): Likewise.
12505 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12507 2014-06-27 Jakub Jelinek <jakub@redhat.com>
12509 PR tree-optimization/57233
12510 PR tree-optimization/61299
12511 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12513 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
12514 would be lowered to scalar shifts, check if corresponding
12515 shifts and vector BIT_IOR_EXPR are supported and don't lower
12516 or lower just to narrower vector type in that case.
12517 * expmed.c (expand_shift_1): Fix up handling of vector
12518 shifts and rotates.
12520 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
12523 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12525 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
12527 * doc/invoke.texi (-fsemantic-interposition): Document.
12528 * common.opt (fsemantic-interposition): New flag.
12529 * varasm.c (decl_replaceable_p): Use it.
12531 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12534 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12535 extraction other than index 3.
12537 2014-06-26 Teresa Johnson <tejohnson@google.com>
12539 * doc/invoke.texi: Fix typo.
12540 * dumpfile.c: Add support for documented -fdump-* options
12541 optimized/missed/note/optall.
12543 2014-06-26 Martin Jambor <mjambor@suse.cz>
12545 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12546 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12547 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12548 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12549 * opts.c (default_options_optimization): Set
12550 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12551 * doc/invoke.texi (allow-load-data-races)
12552 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12553 (allow-store-data-races): Document the new default.
12555 2014-06-26 Martin Jambor <mjambor@suse.cz>
12557 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12558 renamed to ipa_impossible_devirt_target. Fix typo.
12559 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12560 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12561 ipa_impossible_devirt_target.
12563 2014-06-26 Richard Biener <rguenther@suse.de>
12565 PR tree-optimization/61607
12566 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12567 explaining why we restrict copies on loop depth.
12568 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12570 (record_equivalences_from_phis): Instead add it here.
12572 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
12574 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12575 (LTO_WRAPPER_OBJS): New variable.
12576 (lto-wrapper$(exeext)): Use it.
12577 * collect2.c: Include "collect-utils.h".
12578 (verbose, debug): Remove variables.
12579 (at_file_supplied): No longer static.
12580 (tool_name): New variable.
12581 (do_wait, fork_execute, maybe_unlink): Don't declare.
12582 (tool_cleanup): No longer static.
12583 (notice): Remove function.
12584 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12585 fork_execute calls.
12586 (collect_wait, do_wait, collect_execute): Remove functions.
12587 (maybe_unlink): No longer static.
12588 * collect2.h (verbose, debug): Don't declare.
12589 (at_file_supplied): Declare.
12590 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
12592 (collect_execute): Replace with implementation from collect2, plus a
12593 new arg use_atfile. All callers changed.
12594 (collect_wait): Replace with implementation from collect2.
12595 (maybe_unlink_file): Remove function.
12596 (fork_execute): Replace with implementation from collect2, plus a
12597 new arg use_atfile. All callers changed.
12598 (do_wait): Add call to utils_cleanup to the error path.
12599 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12600 (tool_cleanup): Adjust declarations.
12601 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12602 * tlink.c: Include "collect-utils.h".
12603 (tlink_execute): New arg use_atfile. All callers changed.
12604 (tlink_init, tlink_execute): Remove declarations.
12606 * collect-utils.c (save_temps): New variable.
12607 (do_wait): Use it instead of debug. Use fatal_error.
12608 * collect-utils.h (save_temps): Declare.
12609 * collect2.c (verbose): Rename from vflag. All uses changed.
12610 (tool_cleanup): New function, copied from collect_atexit.
12611 (collect_atexit, handler): Just call it.
12612 * collect2.h (verbose): Declaration renamed from vflag.
12613 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12616 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12617 (lto-wrapper$(exeext)): Link with collect-utils.o.
12618 * collect-utils.c: New file.
12619 * collect-utils.h: New file.
12620 * lto-wrapper.c: Include "collect-utils.h".
12621 (args_name): Delete variable.
12622 (tool_name): New variable.
12623 (tool_cleanup): New function.
12624 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
12625 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12626 (fork_execute): Remove functions.
12628 2014-06-26 Nick Clifton <nickc@redhat.com>
12630 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12632 * doc/extend.texi (Function Attributes): Fix typo in description
12633 of RX vector attribute.
12635 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
12637 * config.gcc (supported_defaults): Error when passing either
12638 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12640 2014-06-26 Richard Biener <rguenther@suse.de>
12642 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12643 propagating volatile pointers.
12645 2014-06-26 Richard Biener <rguenther@suse.de>
12647 PR tree-optimization/61607
12648 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12649 loop if we redirected its latch edge.
12650 (thread_block_1): Do not cancel loops prematurely.
12652 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
12654 * toplev.c (backend_init_target): Move init_emit_regs and
12656 (backend_init) ... here; skip ira_init_once and backend_init_target.
12657 (target_reinit) ... and here; clear
12658 this_target_rtl->lang_dependent_initialized.
12659 (lang_dependent_init_target): Clear
12660 this_target_rtl->lang_dependent_initialized;
12661 break out rtl initialization to ...
12662 (initialize_rtl): ... here; call also backend_init_target
12664 * toplev.h (initialize_rtl): New function.
12665 * function.c: Include toplev.h
12666 (init_function_start): Call initialize_rtl.
12667 * rtl.h (target_rtl): Add target_specific_initialized,
12668 lang_dependent_initialized.
12670 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
12671 Jakub Jelinek <jakub@redhat.com>
12673 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12675 2014-06-25 Tom de Vries <tom@codesourcery.com>
12677 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12679 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12681 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12682 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12683 Issue a strict overflow warning if appropriate.
12685 2014-06-25 Martin Liska <mliska@suse.cz>
12687 IPA REF refactoring
12688 * Makefile.in: Removed header file (ipa-ref-inline.h).
12689 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12691 (cgraph_speculative_call_info): Likewise.
12692 (cgraph_for_node_thunks_and_aliases): Likewise.
12693 (cgraph_for_node_and_aliases): Likewise.
12694 (verify_cgraph_node): Likewise.
12695 * cgraph.h: Batch of IPA REF functions become member functions of
12696 symtab_node: add_reference, maybe_add_reference, clone_references,
12697 clone_referring, clone_reference, find_reference,
12698 remove_stmt_references, remove_all_references,
12699 remove_all_referring, dump_references, dump_referring,
12700 has_alias_p, iterate_reference, iterate_referring.
12701 * cgraphbuild.c (record_reference): New IPA REF function used.
12702 (record_type_list): Likewise.
12703 (record_eh_tables): Likewise.
12704 (mark_address): Likewise.
12705 (mark_load): Likewise.
12706 (mark_store): Likewise.
12707 (pass_build_cgraph_edges): Likewise.
12708 (rebuild_cgraph_edge): Likewise.
12709 (cgraph_rebuild_references): Likewise.
12710 (pass_remove_cgraph_callee_edges): Likewise.
12711 * cgraphclones.c (cgraph_clone_node): Likewise.
12712 (cgraph_create_virtual_clone): Likewise.
12713 (cgraph_materialize_clone): Likewise.
12714 (cgraph_materialize_all_clones): Likewise.
12715 * cgraphunit.c (cgraph_reset_node): Likewise.
12716 (cgraph_reset_node): Likewise.
12717 (analyze_function): Likewise.
12718 (assemble_thunks_and_aliases): Likewise.
12719 (expand_function): Likewise.
12720 * ipa-comdats.c (propagate_comdat_group): Likewise.
12721 (enqueue_references): Likewise.
12722 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12723 (create_specialized_node): Likewise.
12724 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12725 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12726 * ipa-inline.c (reset_edge_caches): Likewise.
12727 (update_caller_keys): Likewise.
12728 (execute): Likewise.
12729 * ipa-prop.c (remove_described_reference): Likewise.
12730 (propagate_controlled_uses): Likewise.
12731 (ipa_edge_duplication_hook): Likewise.
12732 (ipa_modify_call_arguments): Likewise.
12733 * ipa-pure-const.c (propagate_pure_const): Likewise.
12734 * ipa-ref-inline.h: Header file removed, functions moved
12735 to symtab_node class.
12736 * ipa-ref.c (remove_reference): New class member function.
12737 (cannot_lead_to_return): New class member function.
12738 (referring_ref_list): Likewise.
12739 (referred_ref_list): Likewise.
12740 Rest of functions moved to symtab_node class.
12741 * ipa-ref.h: New member functions remove_reference,
12742 cannot_lead_to_return, referring_ref_list, referred_ref_list added
12744 ipa_ref_list class has new member functions: first_reference,
12745 first_referring, clear, nreferences.
12746 * ipa-reference.c (analyze_function): New IPA REF function used.
12747 (write_node_summary_p): Likewise.
12748 (ipa_reference_write_optimization_summary): Likewise.
12749 * ipa-split.c (split_function): Likewise.
12750 * ipa-utils.c (ipa_reverse_postorder): Likewise.
12751 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12752 (function_and_variable_visibility): Likewise.
12753 * ipa.c (has_addr_references_p): Likewise.
12754 (process_references): Argument type changed.
12755 (symtab_remove_unreachable_nodes): New IPA REF function used.
12756 (process_references): Likewise.
12757 (set_writeonly_bit): Likewise.
12758 * lto-cgraph.c: Implementation of new symtab_node member functions
12759 that uses new IPA REF functions.
12760 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12762 * lto-streamer-out.c (output_symbol_p): Likewise.
12763 * lto-streamer.h (referenced_from_this_partition_p): Argument type
12765 * symtab.c: Implementation of new IPA REF API.
12766 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12767 (ipa_tm_create_version): Likewise.
12768 (ipa_tm_execute): Likewise.
12769 * tree-emutls.c (gen_emutls_addr): Likewise.
12770 * tree-inline.c (copy_bb): Likewise.
12771 (delete_unreachable_blocks_update_callgraph): Likewise.
12772 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12773 (varpool_for_node_and_aliases): Likewise.
12775 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12777 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12779 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12782 * fold-const.c (fold_checksum_tree): Use a hash_table of const
12783 tree_node * instead of tree_node *.
12785 (print_fold_checksum): Likewise.
12786 (fold_check_failed): Likewise.
12787 (debug_fold_checksum): Likewise.
12788 (fold_build1_stat_loc): Likewise.
12789 (fold_build2_stat_loc): Likewise.
12790 (fold_build3_stat_loc): Likewise.
12791 (fold_build_call_array_loc): Likewise.
12793 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
12795 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12796 implementation with call to...
12797 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12799 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12802 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
12804 PR tree-optimization/57742
12805 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12806 after replacing the statement.
12808 2014-06-25 Nick Clifton <nickc@redhat.com>
12810 * config/v850/v850.c (GHS_default_section_names): Change to const
12812 (GHS_current_section_names): Likewise.
12813 (v850_insert_attributes): Do not build strings, just assign the
12814 names directly. Change the type of 'chosen_section' to const
12816 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12817 directly to the array entry.
12818 * config/v850/v850.h (GHS_default_section_names): Change to const
12820 (GHS_current_section_names): Likewise.
12822 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12824 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12825 (LANG_HOOKS_DECLS): Add it.
12826 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12828 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12829 * langhooks.h (struct lang_hooks_for_decls): Add
12830 omp_clause_linear_ctor hook.
12831 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12832 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
12833 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
12834 combined simd loop use omp_clause_linear_ctor hook.
12836 2014-06-24 Cong Hou <congh@google.com>
12838 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12839 pattern recognition.
12840 (type_conversion_p): PROMOTION is true if it's a type promotion
12841 conversion, and false otherwise. Return true if the given expression
12842 is a type conversion one.
12843 * tree-vectorizer.h: Adjust the number of patterns.
12844 * tree.def: Add SAD_EXPR.
12845 * optabs.def: Add sad_optab.
12846 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12847 * expr.c (expand_expr_real_2): Likewise.
12848 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12849 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12850 * optabs.c (optab_for_tree_code): Likewise.
12851 * tree-cfg.c (estimate_operator_cost): Likewise.
12852 * tree-ssa-operands.c (get_expr_operands): Likewise.
12853 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12854 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12855 * doc/generic.texi: Add document for SAD_EXPR.
12856 * doc/md.texi: Add document for ssad and usad.
12858 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12860 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12861 qualification in cast.
12863 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
12865 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12866 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12867 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12868 (tree_function_decl): ... here.
12869 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12870 streaming of vindex to ...
12871 (write_ts_function_decl_tree_pointers): ... here.
12872 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12873 Do not stream DECL_VINDEX.
12874 (lto_input_ts_function_decl_tree_pointers): Stream it here.
12876 2014-06-24 Catherine Moore <clm@codesourcery.com>
12877 Sandra Loosemore <sandra@codesourcery.com>
12879 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12880 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12881 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12883 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12885 * doc/invoke.texi (Warning Options): Remove duplicated
12886 -Wmaybe-uninitialized.
12888 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12890 PR tree-optimization/57742
12891 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12892 (handle_builtin_malloc, handle_builtin_memset): New functions.
12893 (strlen_optimize_stmt): Call them.
12894 * passes.def: Move strlen after loop+dom but before vrp.
12896 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12899 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12900 model family 6 CPU with has_longmode never use a CPU without
12903 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
12906 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12909 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12911 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12912 * dominance.c (iterate_fix_dominators): Use hash_map instead of
12914 * hash-map.h: New file.
12915 * ipa-comdats.c: Use hash_map instead of pointer_map.
12917 * lto-section-out.c: Adjust.
12918 * lto-streamer.h: Replace pointer_map with hash_map.
12919 * symtab.c (verify_symtab): Likewise.
12920 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12921 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12922 * tree-streamer.h: Likewise.
12923 * tree-streamer.c: Adjust.
12924 * pointer-set.h: Remove pointer_map.
12926 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12928 * hash-table.h: Add a template arg to choose between storing values
12929 and storing pointers to values, and then provide partial
12930 specializations for both.
12931 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12932 should store, not the type values should point to.
12933 * tree-into-ssa.c (var_info_hasher): Likewise.
12934 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12935 * tree-complex.c: Adjust.
12936 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12937 table instead of int_tree_map *.
12938 * tree-parloops.c: Adjust.
12939 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12940 type is being stored.
12941 * tree-vectorizer.c: Adjust.
12943 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12945 * hash-table.h: Remove a layer of indirection from hash_table so that
12946 it contains the hash table's data instead of a pointer to the data.
12947 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12948 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12949 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12950 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12951 fold-const.c, gcse.c, ggc-common.c,
12952 gimple-ssa-strength-reduction.c, gimplify.c,
12953 graphite-clast-to-gimple.c, graphite-dependences.c,
12954 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12955 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12956 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12957 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12958 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12959 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12960 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12961 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12962 tree-ssa-live.c, tree-ssa-loop-im.c,
12963 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12964 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12965 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12966 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12967 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12968 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12969 vtable-verify.c, vtable-verify.h: Adjust.
12971 2014-06-24 Richard Biener <rguenther@suse.de>
12973 PR tree-optimization/61572
12974 * tree-ssa-sink.c (statement_sink_location): Do not sink
12975 loads from hard registers.
12977 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12979 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12980 not mentioned in clauses use private clause if the iterator is
12981 declared in #pragma omp for simd, and when adding lastprivate
12982 instead, add it to the outer #pragma omp for too. Diagnose
12983 if the variable is private in outer context. For simd collapse > 1
12984 loops, replace all iterators with temporaries.
12985 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12986 same even in collapse > 1 loops.
12988 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12989 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12991 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12992 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12994 (gimplify_adjust_omp_clauses): Likewise.
12995 * omp-low.c (lower_rec_simd_input_clauses,
12996 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12997 safelen the same as safelen(1).
12998 * tree-nested.c (convert_nonlocal_omp_clauses,
12999 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
13000 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13001 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13002 Fixup handling of GIMPLE_OMP_TARGET.
13003 (convert_tramp_reference_stmt, convert_gimple_call): Handle
13006 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
13008 PR tree-optimization/61554
13009 * tree-ssa-propagate.c: Include "bitmap.h".
13010 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13011 properly update constructor/destructor.
13012 (substitute_and_fold_dom_walker::before_dom_children):
13013 Remove call to gimple_purge_dead_eh_edges, add bb->index to
13014 need_eh_cleaup instead.
13015 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13018 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13020 * varpool.c (dump_varpool_node): Dump used_by_single_function.
13021 * tree-pass.h (make_pass_ipa_single_use): New pass.
13022 * cgraph.h (used_by_single_function): New flag.
13023 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13025 * passes.def (pass_ipa_single_use): Scedule.
13026 * ipa.c (BOTTOM): New macro.
13027 (meet): New function
13028 (propagate_single_user): New function.
13029 (ipa_single_use): New function.
13030 (pass_data_ipa_single_use): New pass.
13031 (pass_ipa_single_use): New pass.
13032 (pass_ipa_single_use::gate): New gate.
13033 (make_pass_ipa_single_use): New function.
13035 2014-06-23 Kai Tietz <ktietz@redhat.com>
13038 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13039 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13041 2014-06-23 Richard Biener <rguenther@suse.de>
13043 * tree-ssa-loop.c (gate_loop): New function.
13044 (pass_tree_loop::gate): Call it.
13045 (pass_data_tree_no_loop, pass_tree_no_loop,
13046 make_pass_tree_no_loop): New.
13047 * tree-vectorizer.c: Include tree-scalar-evolution.c
13048 (pass_slp_vectorize::execute): Initialize loops and SCEV if
13050 (pass_slp_vectorize::clone): New method.
13051 * timevar.def (TV_TREE_NOLOOP): New.
13052 * tree-pass.h (make_pass_tree_no_loop): Declare.
13053 * passes.def (pass_tree_no_loop): New pass group with
13056 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
13059 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13060 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13062 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13064 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13065 "yes" where needed.
13067 2014-06-23 Alan Modra <amodra@gmail.com>
13070 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13071 to zero on debug statements.
13073 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13076 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13077 Ignore third operand if present by marking qualifier_internal.
13079 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13081 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13083 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13084 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13085 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13086 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13087 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13088 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13089 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13090 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13091 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13092 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13093 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13094 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13095 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13096 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13097 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13098 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13099 logic in GCC vector extensions
13101 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13102 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13103 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13104 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13105 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13106 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13107 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13108 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13109 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13110 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13112 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13114 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13117 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13118 (vget_low_s64): Use __GET_LOW macro.
13119 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13120 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13121 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13122 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13123 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13125 (vcombine_s64): Use GCC vector extensions; remove cast.
13126 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13127 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13128 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13129 Fix type signature; remove cast.
13131 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13134 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13136 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13138 (BUILTIN_VD1): New.
13139 (BUILTIN_VD_RE): Remove.
13140 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13141 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13142 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13143 variant but not df.
13144 (vreinterpretv1df*, vreinterpret*v1df): New.
13145 (vreinterpretdf*, vreinterpret*df): Remove.
13146 * config/aarch64/aarch64-simd.md (aarch64_create,
13147 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13148 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13150 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13151 (vcreate_f64): Remove cast, use v1df builtin.
13152 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13153 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13154 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13155 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13156 vmov_n_f64, vst1_f64): Use gcc vector extensions.
13157 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13158 add range check using __builtin_aarch64_im_lane_boundsi.
13159 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13160 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13161 type signature, use gcc vector extensions.
13162 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13163 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13164 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13165 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13166 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13167 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13168 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13169 vreinterpret_u64_f64): Use v1df builtin not df.
13171 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13173 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13176 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13178 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13181 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13183 * loop-invariant.c (pre_check_invariant_p): New function.
13184 (find_invariant_insn): Call pre_check_invariant_p.
13186 2014-06-22 Richard Henderson <rth@redhat.com>
13189 * compare-elim.c (struct comparison): Add eh_note.
13190 (find_comparison_dom_walker::before_dom_children): Don't eliminate
13191 a redundant comparison in a different EH region. Purge EH edges if
13194 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13196 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13197 (var_shift): Use it.
13198 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13199 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13200 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13201 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13202 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13203 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13204 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13205 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13206 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13207 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13208 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13209 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13210 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13211 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13212 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13213 *rotldi3_internal15be): Use the new attribute. Merge register and
13214 integer alternatives.
13216 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13218 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13219 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13220 split, *ashrdi3_internal3 and split): Delete, merge into...
13221 (ashr<mode>3): New expander.
13222 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13223 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
13225 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13227 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13228 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13229 *rotldi3_internal3 and split): Delete, merge into...
13230 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13231 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
13232 Use "rotlw" extended mnemonic.
13234 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13236 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13237 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13238 and split, *ashldi3_internal3 and split): Delete, merge into...
13239 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
13240 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
13242 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13244 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
13245 (lshrsi3, two anonymous define_insns and define_splits,
13246 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
13247 *lshrdi3_internal3 and split): Delete, merge into...
13248 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
13249 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
13251 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13253 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
13254 Remove "O" alternative.
13256 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
13258 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
13259 (mips_move_from_gpr_cost): Likewise.
13260 (mips_register_move_cost): Update accordingly.
13261 (mips_secondary_reload_class): Remove name of in_p.
13263 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
13266 * config/i386/i386.md (x86_64_shrd, x86_shrd,
13267 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
13269 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13271 * config/nios2/nios2.c: Include "builtins.h".
13273 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13275 * cgraph.h (tls_model_names): New variable.
13276 * print-tree.c (print_node): Simplify.
13277 * varpool.c (tls_model_names): New variable.
13278 (dump_varpool_node): Output tls model.
13280 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13282 * ipa-visibility.c (function_and_variable_visibility): Disable
13283 temporarily local aliases for some targets.
13285 2014-06-20 Marek Polacek <polacek@redhat.com>
13287 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
13288 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
13289 into SANITIZE_UNDEFINED.
13290 * doc/invoke.texi: Describe -fsanitize=bounds.
13291 * gimplify.c (gimplify_call_expr): Add gimplification of internal
13292 functions created in the FEs.
13293 * internal-fn.c: Move "internal-fn.h" after "tree.h".
13294 (expand_UBSAN_BOUNDS): New function.
13295 * internal-fn.def (UBSAN_BOUNDS): New internal function.
13296 * internal-fn.h: Don't define internal functions here.
13297 * opts.c (common_handle_option): Add -fsanitize=bounds.
13298 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
13299 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
13300 * tree-core.h: Define internal functions here.
13301 (struct tree_base): Add ifn field.
13302 * tree-pretty-print.c: Include "internal-fn.h".
13303 (dump_generic_node): Handle functions without CALL_EXPR_FN.
13304 * tree.c (get_callee_fndecl): Likewise.
13305 (build_call_expr_internal_loc): New function.
13306 * tree.def (CALL_EXPR): Update description.
13307 * tree.h (CALL_EXPR_IFN): Define.
13308 (build_call_expr_internal_loc): Declare.
13309 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
13311 (ubsan_type_descriptor): Change bool parameter to enum
13312 ubsan_print_style. Adjust the code. Add handling of
13314 (ubsan_expand_bounds_ifn): New function.
13315 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13316 (ubsan_build_overflow_builtin): Likewise.
13317 (instrument_bool_enum_load): Likewise.
13318 (ubsan_instrument_float_cast): Likewise.
13319 * ubsan.h (enum ubsan_print_style): New enum.
13320 (ubsan_expand_bounds_ifn): Declare.
13321 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
13323 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
13325 * config/rs6000/rs6000.md: Append `DONE' to preparation
13326 statements of `bswap' pattern splitters.
13328 2014-06-20 Tom de Vries <tom@codesourcery.com>
13330 * target.def (call_fusage_contains_non_callee_clobbers): Update
13332 * doc/tm.texi: Regenerate.
13334 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13335 Max Ostapenko <m.ostapenko@partner.samsung.com>
13338 * asan.c (instrument_strlen_call): Fixed instrumentation of
13341 2014-06-20 Martin Jambor <mjambor@suse.cz>
13344 * ipa-prop.c (impossible_devirt_target): New function.
13345 (try_make_edge_direct_virtual_call): Use it, also instead of
13348 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13349 Max Ostapenko <m.ostapenko@partner.samsung.com>
13352 * asan.c (build_check_stmt): Add condition.
13354 2014-06-20 Martin Jambor <mjambor@suse.cz>
13357 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
13360 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13362 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
13364 (VCONQ): Make comment more helpful.
13366 * config/aarch64/aarch64-simd.md
13367 (aarch64_sqdmulh_lane<mode>):
13368 Use VCOND for operands 2. Update lane checking and flipping logic.
13369 (aarch64_sqrdmulh_lane<mode>): Likewise.
13370 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
13371 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
13372 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
13373 attribute of operand 3 to VCOND.
13374 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
13375 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13376 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
13377 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
13378 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13379 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
13381 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
13382 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
13383 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
13384 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
13385 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
13386 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
13387 operand to VCOND. Update lane flipping and bounds checking logic.
13388 (aarch64_sqdmlal2_lane<mode>): Likewise.
13389 (aarch64_sqdmlsl_lane<mode>): Likewise.
13390 (aarch64_sqdmull_lane<mode>): Likewise.
13391 (aarch64_sqdmull2_lane<mode>): Likewise.
13392 (aarch64_sqdmlal_laneq<mode>):
13393 Replace VCON usage with VCONQ.
13394 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
13395 (aarch64_sqdmlal2_laneq<mode>): Emit
13396 aarch64_sqdmlal2_laneq<mode>_internal insn.
13397 Replace VCON with VCONQ.
13398 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
13399 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13400 (aarch64_sqdmull_laneq<mode>): Emit
13401 aarch64_sqdmull_laneq<mode>_internal insn.
13402 Replace VCON with VCONQ.
13403 (aarch64_sqdmull2_laneq<mode>): Emit
13404 aarch64_sqdmull2_laneq<mode>_internal insn.
13405 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
13406 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
13407 of 3rd argument to int16x4_t.
13408 (vqdmlalh_lane_s16): Likewise.
13409 (vqdmlslh_lane_s16): Likewise.
13410 (vqdmull_high_lane_s16): Likewise.
13411 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13412 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13413 (vqdmlsl_lane_s16): Likewise.
13414 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13415 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13416 (vqdmlals_lane_s32): Likewise.
13417 (vqdmlsls_lane_s32): Likewise.
13418 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13419 (vqdmulls_lane_s32): Likewise.
13420 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13421 (vqdmlsl_lane_s32): Likewise.
13422 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13423 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13424 (vqrdmulhh_lane_s16): Likewise.
13425 (vqdmlsl_high_lane_s16): Likewise.
13426 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13427 (vqdmlsl_high_lane_s32): Likewise.
13428 (vqrdmulhs_lane_s32): Likewise.
13430 2014-06-20 Tom de Vries <tom@codesourcery.com>
13432 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13433 get_call_reg_set_usage.
13435 2014-06-20 Tom de Vries <tom@codesourcery.com>
13437 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13438 it contains all call_used_regs.
13440 2014-06-20 Tom de Vries <tom@codesourcery.com>
13442 * final.c (collect_fn_hard_reg_usage): Add and use variable
13443 function_used_regs.
13445 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13447 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13448 (set_init_priority, get_init_priority, set_fini_priority,
13449 get_fini_priority): New methods.
13450 * tree.c (init_priority_for_decl): Remove.
13451 (init_ttree): Do not initialize init priority.
13452 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13453 (decl_priority_info): Remove.
13454 (decl_init_priority_insert): Rewrite.
13455 (decl_fini_priority_insert): Rewrite.
13456 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13457 tree_priority_map_marked_p): Remove.
13458 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13459 * lto-streamer-out.c (hash_tree): Do not hash priorities.
13460 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13461 not output priorities.
13462 (pack_ts_function_decl_value_fields): Likewise.
13463 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13464 not input priorities.
13465 (unpack_ts_function_decl_value_fields): Likewise.
13466 * symtab.c (symbol_priority_map): Declare.
13467 (init_priority_hash): Declare.
13468 (symtab_unregister_node): Unregister from priority hash, too.
13469 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13471 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13472 (symbol_priority_info): New function.
13473 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13475 * tree-core.h (tree_priority_map): Remove.
13477 2014-06-20 Jakub Jelinek <jakub@redhat.com>
13479 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13480 0xff to uint64_t before shifting it up.
13482 2014-06-20 Julian Brown <julian@codesourcery.com>
13483 Chung-Lin Tang <cltang@codesourcery.com>
13485 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13486 TARGET_THUMB1_ONLY. Add comments.
13488 2014-06-19 Tom de Vries <tom@codesourcery.com>
13490 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13491 return type to void.
13492 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13494 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13496 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13497 as "move", from depends_on.
13499 2014-06-19 Terry Guo <terry.guo@arm.com>
13501 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13504 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
13506 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13508 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
13510 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
13513 * config/sh/sh.c (prepare_move_operands): Don't process TLS
13514 addresses here if reload in progress or completed.
13516 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13518 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13519 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13520 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13521 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13522 (mips_register_priority): New function that implements the target
13523 hook TARGET_REGISTER_PRIORITY.
13524 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13525 (mips_lra_p): Likewise for TARGET_LRA_P.
13526 (TARGET_REGISTER_PRIORITY): Define macro.
13527 (TARGET_SPILL_CLASS): Likewise.
13528 (TARGET_LRA_P): Likewise.
13529 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13531 (REG_CLASS_NAMES): Likewise.
13532 (REG_CLASS_CONTENTS): Likewise.
13533 (BASE_REG_CLASS): Use M16_SP_REGS.
13534 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13535 New set attribute to enable alternatives depending on the register
13537 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13538 (*lea64): Disable pattern for MIPS16.
13539 * config/mips/mips.opt (mlra): New option.
13541 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13543 * lra-constraints.c (base_to_reg): New function.
13544 (process_address): Use new function.
13546 2014-06-18 Tom de Vries <tom@codesourcery.com>
13548 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13549 * config/aarch64/aarch64.c
13550 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13551 (aarch64_emit_call_insn): New function.
13552 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13554 * config/aarch64/aarch64.md (define_expand "call_internal")
13555 (define_expand "call_value_internal", define_expand "sibcall_internal")
13556 (define_expand "sibcall_value_internal"): New.
13557 (define_expand "call", define_expand "call_value")
13558 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13559 expand variant and aarch64_emit_call_insn.
13561 2014-06-18 Radovan Obradovic <robradovic@mips.com>
13562 Tom de Vries <tom@codesourcery.com>
13564 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13565 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13567 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
13568 clobbers to CALL_INSN_FUNCTION_USAGE.
13569 (define_expand "sibcall_internal")
13570 (define_expand "sibcall_value_internal"): New.
13571 (define_expand "call", define_expand "call_value"): Add argument to
13572 arm_emit_call_insn.
13573 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13574 (define_expand "sibcall_value"): Use sibcall_value_internal and
13575 arm_emit_call_insn.
13577 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13579 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13581 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13583 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13586 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13588 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13589 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13590 annotations. Fix DWARF information.
13592 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13594 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13595 __udivmoddi4, and fixups for negative operands.
13597 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13599 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13601 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13603 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13606 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13608 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13611 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13613 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13614 describing register usage on function entry and exit.
13616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13618 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13619 (__aeabi_ldivmod): Fix whitespace.
13621 2014-06-18 Andreas Schwab <schwab@suse.de>
13623 * doc/md.texi (Standard Names): Use @itemx for grouped items.
13624 Remove blank line after @item.
13626 2014-06-18 Richard Henderson <rth@redhat.com>
13629 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13631 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13633 * config/arm/arm.c (neon_vector_mem_operand): Allow register
13634 POST_MODIFY for neon loads and stores.
13635 (arm_print_operand): Output post-index register for neon loads and
13638 2014-06-18 Richard Biener <rguenther@suse.de>
13640 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13642 2014-06-18 Richard Biener <rguenther@suse.de>
13644 * tree-pass.h (make_pass_dce_loop): Remove.
13645 * passes.def: Replace pass_dce_loop with pass_dce.
13646 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13647 changed free niter estimates and reset the scev cache.
13648 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13649 make_pass_dce_loop): Remove.
13650 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13651 (fini_copy_prop): Return whether something changed. Always
13652 let substitute_and_fold perform DCE and free niter estimates
13653 and reset the scev cache if so.
13654 (execute_copy_prop): If sth changed schedule cleanup-cfg.
13655 (pass_data_copy_prop): Do not unconditionally schedule
13656 cleanup-cfg or update-ssa.
13658 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13660 PR tree-optimization/61518
13661 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13662 reduction var is used in reduction stmt or phi-function only.
13664 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13666 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13668 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
13670 PR tree-optimization/61517
13671 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13672 whose rhs's first tree is the source expression instead of the
13674 (find_bswap_or_nop): Likewise.
13675 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13676 gimple stmt whose rhs's first tree is the source. In the memory source
13677 case, move the stmt to be replaced close to one of the original load to
13678 avoid the problem of a store between the load and the stmt's original
13680 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13683 2014-06-18 Andreas Schwab <schwab@suse.de>
13685 PR rtl-optimization/54555
13686 * postreload.c (move2add_use_add2_insn): Substitute
13687 STRICT_LOW_PART only if it is cheaper.
13689 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
13691 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13692 Do not use unspec as call operand. Use memory_operand instead of
13693 memory_nox32_operand and add "m" operand constraint. Disable
13694 pattern for TARGET_X32.
13695 (*sibcall_pop_memory): Ditto.
13696 (*sibcall_value_memory): Ditto.
13697 (*sibcall_value_pop_memory): Ditto.
13698 (sibcall peepholes): Merge SImode and DImode patterns using
13699 W mode iterator. Use memory_operand instead of memory_nox32_operand.
13700 Disable pattern for TARGET_X32. Check if eliminated register is
13701 really dead after call insn. Generate call RTX without unspec operand.
13702 (sibcall_value peepholes): Ditto.
13703 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
13704 instead of memory_nox32_operand. Check if eliminated register is
13705 really dead after call insn. Generate call RTX without unspec operand.
13706 (sibcall_value_pop peepholes): Ditto.
13707 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13709 2014-06-18 Terry Guo <terry.guo@arm.com>
13712 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13715 2014-06-18 Olivier Hainque <hainque@adacore.com>
13717 * tree-core.h (tree_block): Add an "end_locus" field, allowing
13718 memorization of the end of block source location.
13719 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13720 * gimplify.c (gimplify_bind_expr): Propagate the block start and
13721 end source location info we have on the block entry/exit code we
13724 2014-06-18 Richard Biener <rguenther@suse.de>
13726 * common.opt (fssa-phiopt): New option.
13727 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13729 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13730 * doc/invoke.texi (-fssa-phiopt): Document.
13732 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13734 * genattrtab.c (n_bypassed): New variable.
13735 (process_bypasses): Initialise n_bypassed.
13736 Count number of bypassed reservations.
13737 (make_automaton_attrs): Allocate space for bypassed reservations
13738 rather than number of bypasses.
13740 2014-06-18 Richard Biener <rguenther@suse.de>
13742 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13743 we propagated anything.
13744 (substitute_and_fold_dom_walker::before_dom_children): Something
13745 changed if we propagated into PHI arguments.
13746 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13749 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
13751 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13753 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13754 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13755 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13756 Introduces alternative way of loads group permutaions.
13757 (vect_transform_grouped_load): Try alternative way of permutations.
13759 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13761 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13762 changed in ORT_TARGET region, don't jump to do_outer.
13763 (struct gimplify_adjust_omp_clauses_data): New type.
13764 (gimplify_adjust_omp_clauses_1): Adjust for data being
13765 a struct gimplify_adjust_omp_clauses_data pointer instead
13766 of tree *. Pass pre_p as a new argument to
13767 lang_hooks.decls.omp_finish_clause hook.
13768 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13769 splay_tree_foreach to pass both list_p and pre_p.
13770 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13771 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13772 gimplify_adjust_omp_clauses callers.
13773 * langhooks.c (lhd_omp_finish_clause): New function.
13774 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13775 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13776 * langhooks.h (struct lang_hooks_for_decls): Add a new
13777 gimple_seq * argument to omp_finish_clause hook.
13778 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13779 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13780 (scan_omp_parallel, lower_omp_for): When adding
13781 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13782 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13783 * tree-nested.c (convert_nonlocal_omp_clauses,
13784 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13785 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13787 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
13789 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13790 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13792 2014-06-17 Xinliang David Li <davidxl@google.com>
13794 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13795 * passes.c (pass_init_dump_file): Do not set initialize
13796 flag to false unconditionally.
13798 2014-06-17 Richard Biener <rguenther@suse.de>
13800 * genopinit.c (main): Use vec<>::qsort method.
13801 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13803 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13805 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
13807 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13808 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13809 (mips_move_to_gpr_cost): Remove ST_REGS case.
13810 (mips_move_from_gpr_cost): Likewise.
13811 (mips_register_move_cost): Likewise.
13812 (mips_secondary_reload_class): Likewise.
13814 2014-06-17 Richard Biener <rguenther@suse.de>
13816 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13817 (pass_all_optimizations): Move 3rd copy-prop pass from after
13818 fre to before ifcombine/phiopt.
13820 2014-06-17 Richard Biener <rguenther@suse.de>
13822 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13823 and allow all blocks to be forwarders.
13825 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
13828 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13829 variable 'size'; calculate 'size' right in the front; use
13830 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13831 pcum->aapcs_stack_words.
13833 2014-06-17 Nick Clifton <nickc@redhat.com>
13835 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13836 (umulhi3, mulsidi3, umulsidi3): Likewise.
13838 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
13840 PR middle-end/61508
13841 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13842 check for section name.
13844 2014-06-17 Richard Biener <rguenther@suse.de>
13846 * tree-ssa-propagate.c: Include domwalk.h.
13847 (substitute_and_fold): Outline main worker into a domwalker ...
13848 (substitute_and_fold_dom_walker::before_dom_children): ... here.
13849 Schedule stmts we can fully propagate for removal. Remove
13851 (substitute_and_fold): Apply a dominator walk to perform
13852 substitution. Process stmts scheduled for removal here.
13854 2014-06-17 Richard Biener <rguenther@suse.de>
13856 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13857 of PHI node moving.
13859 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13861 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13862 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13863 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13864 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13865 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13867 (get_fpscr) : Likewise.
13869 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13871 PR rtl-optimization/61325
13872 * lra-constraints.c (valid_address_p): Add forward declaration.
13873 (simplify_operand_subreg): Check address validity before and after
13874 alter_reg of memory subreg.
13876 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
13878 * config/i386/i386.c (decide_alg): Correctly handle
13879 maximum size of stringop algorithm.
13881 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13883 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13885 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13887 PR rtl-optimization/61522
13888 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13890 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
13893 * symtab.c (symtab_node::reset_section): New method.
13894 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13896 * cgraph.h (reset_section): Declare.
13897 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13898 do not consider comdat locals.
13899 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13901 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13902 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13903 reset sections of symbols dragged out of the comdats.
13904 (function_and_variable_visibility): Reset sections of
13907 2014-06-16 Richard Biener <rguenther@suse.de>
13909 PR tree-optimization/61482
13910 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13911 [-INF(OVF), +INF(OVF)] range.
13913 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13915 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13916 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13917 handling 32-bit multiplication.
13919 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
13921 PR middle-end/61430
13922 * lra-lives.c (process_bb_lives): Skip creating copy during
13923 insn scan when src/dest has constrained to same regno.
13925 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13927 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13928 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13930 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13932 * asan.c (check_func): New function.
13933 (maybe_create_ssa_name): Likewise.
13934 (build_check_stmt_with_calls): Likewise.
13935 (use_calls_p): Likewise.
13936 (report_error_func): Change interface.
13937 (build_check_stmt): Allow non-integer lengths; add support
13939 (asan_instrument): Likewise.
13940 (instrument_mem_region_access): Moved code to build_check_stmt.
13941 (instrument_derefs): Likewise.
13942 (instrument_strlen_call): Likewise.
13943 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13944 * doc/invoke.texi: Describe new parameter.
13945 * params.def: Define new parameter.
13946 * params.h: Likewise.
13947 * sanitizer.def: Describe new builtins.
13949 2014-06-16 Richard Biener <rguenther@suse.de>
13951 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13952 Make all defs available at the end.
13953 (eliminate): If we remove a PHI node schedule cfg-cleanup.
13955 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13958 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13960 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
13963 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13964 initialization. Replace remaining use of uid.
13966 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13968 * c-family/c-common.c (handle_tls_model_attribute): Use
13969 set_decl_tls_model.
13970 * c-family/c-common.c (handle_tls_model_attribute): Use
13971 set_decl_tls_model.
13972 * cgraph.h (struct varpool_node): Add tls_model.
13973 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13974 * tree.h (DECL_TLS_MODEL): Update.
13975 (DECL_THREAD_LOCAL_P): Check that variable is static.
13976 (decl_tls_model): Declare.
13977 (set_decl_tls_model): Declare.
13978 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13979 set symbol prorperties.
13980 (get_emutls_init_templ_addr): Cleanup.
13981 (new_emutls_decl): Update.
13982 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13983 (lto_input_varpool_node): Likewise.
13984 * lto-streamer-out.c (hash_tree): Likewise.
13985 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13986 not stream DECL_TLS_MODEL.
13987 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13988 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13990 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13992 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13994 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13996 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13997 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13999 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14000 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14001 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14002 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14003 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14004 (df_get_artificial_defs, df_get_artificial_uses)
14005 (df_single_def, df_single_use): Update accordingly.
14006 (df_refs_chain_dump): Take the first element in a linked list as
14007 parameter, rather than a pointer to an array of pointers.
14008 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14009 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14010 (df_chain_create_bb_process_use): Likewise.
14011 (df_md_bb_local_compute_process_def): Likewise.
14012 * fwprop.c (process_defs, process_uses): Likewise.
14013 (register_active_defs, update_uses): Likewise.
14014 (forward_propagate_asm): Update for new df_ref linking.
14015 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14016 (df_null_ref_rec, df_null_mw_rec): Likewise.
14017 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14019 (df_scan_free_bb_info): Remove check for null artificial_defs.
14020 (df_install_ref_incremental): Adjust for new df_ref linking.
14021 Use a single-element insertion rather than a full sort.
14022 (df_ref_chain_delete_du_chain): Take the first element
14023 in a linked list as parameter, rather than a pointer to an array of
14025 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14026 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14027 (df_insn_info_delete): Remove check for null defs and call to
14028 df_scan_free_mws_vec.
14029 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14030 null rather than df_null_*_rec.
14031 (df_insn_rescan_debug_internal): Likewise, and update null
14032 checks in the same way. Remove check for null defs.
14033 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14034 Move a single element rather doing a full sort.
14035 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14037 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
14038 Initialize df_ref and df_mw_hardreg lists to null rather than
14040 (df_ref_compare): Take df_refs as parameter, transferring the
14041 old interface to...
14042 (df_ref_ptr_compare): ...this new function.
14043 (df_sort_and_compress_refs): Update accordingly.
14044 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14045 old interface to...
14046 (df_mw_ptr_compare): ...this new function.
14047 (df_sort_and_compress_mws): Update accordingly.
14048 (df_install_refs, df_install_mws): Return a linked list rather than
14049 an array of pointers.
14050 (df_refs_add_to_chains): Assert that old lists are empty rather
14052 (df_insn_refs_verify): Don't handle null defs speciailly.
14053 * web.c (union_match_dups): Update for new df_ref linking.
14055 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14057 * df.h (df_ref_create, df_ref_remove): Delete.
14058 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14059 (df_ref_remove): Likewise.
14061 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14063 * df.h (df_single_def, df_single_use): New functions.
14064 * ira.c (find_moveable_pseudos): Use them.
14066 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14068 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14069 * df-problems.c (df_note_bb_compute): Use it.
14070 * regstat.c (regstat_bb_compute_ri): Likewise.
14072 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14074 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14075 * cse.c (cse_extended_basic_block): Use them.
14076 * dce.c (mark_artificial_use): Likewise.
14077 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14078 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14079 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14080 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14081 (df_simulate_initialize_backwards): Likewise.
14082 (df_simulate_finalize_backwards): Likewise.
14083 (df_simulate_initialize_forwards): Likewise.
14084 (df_md_simulate_artificial_defs_at_top): Likewise.
14085 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14086 * regrename.c (init_rename_info): Likewise.
14087 * regstat.c (regstat_bb_compute_ri): Likewise.
14088 (regstat_bb_compute_calls_crossed): Likewise.
14090 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14092 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14093 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14094 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14095 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14096 * combine.c (create_log_links): Likewise.
14097 * compare-elim.c (find_flags_uses_in_insn): Likewise.
14098 (try_eliminate_compare): Likewise.
14099 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14100 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14101 (remove_reg_equal_equiv_notes_for_defs): Likewise.
14102 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14103 (word_dce_process_block, dce_process_block): Likewise.
14104 * ddg.c (def_has_ccmode_p): Likewise.
14105 * df-core.c (df_bb_regno_first_def_find): Likewise.
14106 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14107 * df-problems.c (df_rd_simulate_one_insn): Likewise.
14108 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14109 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14110 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14111 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14112 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14113 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14114 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14115 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14116 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14117 * fwprop.c (local_ref_killed_between_p): Likewise.
14118 (all_uses_available_at, free_load_extend): Likewise.
14119 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14120 * hw-doloop.c (scan_loop): Likewise.
14121 * ifcvt.c (dead_or_predicable): Likewise.
14122 * init-regs.c (initialize_uninitialized_regs): Likewise.
14123 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14124 (process_bb_node_lives): Likewise.
14125 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14126 (find_moveable_pseudos): Likewise.
14127 * loop-invariant.c (check_dependencies, record_uses): Likewise.
14128 * recog.c (peep2_find_free_register): Likewise.
14129 * ree.c (get_defs): Likewise.
14130 * regstat.c (regstat_bb_compute_ri): Likewise.
14131 (regstat_bb_compute_calls_crossed): Likewise.
14132 * sched-deps.c (find_inc, find_mem): Likewise.
14133 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14134 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14135 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14136 (prepare_shrink_wrap): Likewise.
14137 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14138 * web.c (union_defs, pass_web::execute): Likewise.
14139 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14140 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14142 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
14144 * lra-assign.c (assign_by_spills): Add code to assign vector regs
14145 to inheritance pseudos.
14146 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14148 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
14151 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14152 (BU_MISC_2): Rename to ...
14153 (BU_LDBL128_2): ... this.
14154 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14155 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14156 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14157 RS6000_BTM_LDBL128.
14158 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14159 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14160 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14161 (unpacktf_1): Likewise.
14162 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14163 (__builtin_longdouble_dw1): Likewise.
14164 * doc/sourcebuild.texi (longdouble128): Document.
14166 2014-06-13 Jeff Law <law@redhat.com>
14168 PR rtl-optimization/61094
14169 PR rtl-optimization/61446
14170 * ree.c (combine_reaching_defs): Get the mode for the copy from
14171 the extension insn rather than the defining insn.
14173 2014-06-13 Dehao Chen <dehao@google.com>
14175 * dwarf2out.c (add_linkage_name): Emit more linkage name.
14177 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
14179 * doc/install.texi (--enable-linker-plugin-configure-flags)
14180 (--enable-linker-plugin-flags): Document new flags.
14182 2014-06-13 Martin Jambor <mjambor@suse.cz>
14185 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14186 cache_token if returning early.
14188 2014-06-13 Nick Clifton <nickc@redhat.com>
14190 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14191 requested alignment is active.
14192 (LABEL_ALIGN): Likewise.
14193 (LOOP_ALIGN): Likewise.
14195 2014-06-13 Richard Biener <rguenther@suse.de>
14197 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14198 Rewrite to propagate the VN result into all uses where
14199 possible and to remove stmts becoming dead because of that.
14200 (eliminate): Generalize stmt removal handling, remove in
14201 reverse dominator order to support proper debug stmt
14202 generation. Update stmts before removing stmts.
14203 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14205 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14207 PR tree-optimization/61375
14208 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14209 symbolic number cannot be represented in an uint64_t.
14210 (find_bswap_or_nop_1): Likewise.
14212 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14214 * symtab.c (symtab_node::reset_section): New method.
14215 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14217 * cgraph.h (reset_section): Declare.
14218 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14219 do not consider comdat locals.
14220 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14222 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14223 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14224 reset sections of symbols dragged out of the comdats.
14225 (function_and_variable_visibility): Reset sections of
14228 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14230 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14231 to use symtab and decl_binds_to_current_def_p
14232 * tree-vectorizer.c (increase_alignment): Increase alignment
14233 of alias target, too.
14235 2014-06-12 Jakub Jelinek <jakub@redhat.com>
14237 PR middle-end/61486
14238 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14239 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
14240 if outer combined construct is distribute.
14241 (gimplify_omp_for): For OMP_DISTRIBUTE set
14242 gimplify_omp_ctxp->distribute.
14243 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
14244 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
14245 mapping into decl map.
14247 2014-06-12 Jason Merrill <jason@redhat.com>
14249 * common.opt (fabi-version): Change default to 0.
14251 2014-06-12 Jason Merrill <jason@redhat.com>
14253 * toplev.c (process_options): Reject -fabi-version=1.
14255 2014-06-12 Jeff Law <law@redhat.com>
14257 PR tree-optimization/61009
14258 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
14259 value when we stop processing a block due to problematic PHIs.
14261 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
14263 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
14264 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
14265 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
14266 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
14267 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
14268 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
14269 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
14270 are not in the spec.
14272 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
14275 * config/aarch64/aarch64-modes.def: Add V1DFmode.
14276 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
14279 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
14281 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
14283 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
14286 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
14287 loading from address spaces.
14289 2014-06-12 Martin Liska <mliska@suse.cz>
14292 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
14293 statement is reachable.
14295 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
14297 * symtab.c (section_hash): New hash.
14298 (symtab_unregister_node): Clear section before freeing.
14299 (hash_section_hash_entry): New haser.
14300 (eq_sections): New function.
14301 (symtab_node::set_section_for_node): New method.
14302 (set_section_1): Update.
14303 (symtab_node::set_section): Take string instead of tree as parameter.
14304 (symtab_resolve_alias): Update.
14305 * cgraph.h (section_hash_entry_d): New structure.
14306 (section_hash_entry): New typedef.
14307 (cgraph_node): Change comdat_group_ to x_comdat_group,
14308 change section_ to x_section and turn into section_hash_entry;
14309 update accestors; put set_section_for_node offline.
14310 * tree.c (decl_section_name): Turn into string.
14311 (set_decl_section_name): Change parameter to be string.
14312 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
14313 * sdbout.c (sdbout_one_type): Update.
14314 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14315 * varasm.c (IN_NAMED_SECTION, get_named_section,
14316 resolve_unique_section, hot_function_section, get_named_text_section,
14317 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14318 make_decl_rtl, default_unique_section): Update.
14319 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14320 (c6x_elf_unique_section): Update.
14321 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14322 * config/pa/pa.c (pa_function_section): Update.
14323 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14324 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14325 * config/arc/arc.c (arc_in_small_data_p): Update.
14326 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14327 * config/mcore/mcore.c (mcore_unique_section): Update.
14328 * config/mips/mips.c (mips16_build_function_stub): Update.
14329 (mips16_build_call_stub): Update.
14330 (mips_function_rodata_section): Update.
14331 (mips_in_small_data_p): Update.
14332 * config/score/score.c (score_in_small_data_p): Update.
14333 * config/rx/rx.c (rx_in_small_data): Update.
14334 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14335 (rs6000_xcoff_asm_named_section): Update.
14336 (rs6000_xcoff_unique_section): Update.
14337 * config/frv/frv.c (frv_string_begins_with): Update.
14338 (frv_in_small_data_p): Update.
14339 * config/v850/v850.c (v850_encode_data_area): Update.
14340 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14341 (bfin_handle_l1_data_attribute): Update.
14342 (bfin_handle_l2_attribute): Update.
14343 * config/mep/mep.c (mep_unique_section): Update.
14344 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14346 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14347 (h8300_handle_tiny_data_attribute): Update.
14348 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14349 (m32r_in_small_data_p): Update.
14350 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14351 * config/i386/i386.c (ix86_in_large_data_p): Update.
14352 * config/i386/winnt.c (i386_pe_unique_section): Update.
14353 * config/darwin.c (darwin_function_section): Update.
14354 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14355 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14356 (new_emutls_decl): Update.
14357 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
14358 input_varpool_node): Update.
14359 (ead_string_cst): Turn to ...
14360 (read_string): ... this one.
14361 * dwarf2out.c (secname_for_decl): Update.
14362 * asan.c (asan_protect_global): Update.
14364 2014-06-11 DJ Delorie <dj@redhat.com>
14366 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
14368 * config/rx/rx.c (rx_option_override): Likewise.
14369 (rx_align_for_label): Likewise.
14371 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
14373 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
14375 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
14378 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14380 * common.md: New file.
14381 * doc/md.texi: Update description of generic, machine-independent
14383 * config/s390/constraints.md (e): Delete.
14384 * Makefile.in (md_file): Include common.md.
14385 * config/m32c/t-m32c (md_file): Likewise.
14386 * genpreds.c (general_mem): New array.
14387 (generic_constraint_letters): Remove constraints now defined by
14389 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14390 Allow the first character to be '<' or '>' as well.
14391 * genoutput.c (general_mem): New array.
14392 (indep_constraints): Remove constraints now defined by common.md.
14393 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14394 Remove special handling of 'm'.
14395 * ira-costs.c (record_reg_classes): Remove special handling of
14396 constraints now defined by common.md.
14397 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14398 * ira-lives.c (single_reg_class): Likewise.
14399 (ira_implicitly_set_insn_hard_regs): Likewise.
14400 * lra-constraints.c (reg_class_from_constraints): Likewise.
14401 (process_alt_operands, process_address, curr_insn_transform): Likewise.
14402 * postreload.c (reload_cse_simplify_operands): Likewise.
14403 * reload.c (push_secondary_reload, scratch_reload_class)
14404 (find_reloads, alternative_allows_const_pool_ref): Likewise.
14405 * reload1.c (maybe_fix_stack_asms): Likewise.
14406 * targhooks.c (default_secondary_reload): Likewise.
14407 * stmt.c (parse_output_constraint): Likewise.
14408 * recog.c (preprocess_constraints): Likewise.
14409 (constrain_operands, peep2_find_free_register): Likewise.
14410 (asm_operand_ok): Likewise, but add a comment saying why 'o'
14411 must be handled specially.
14413 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14415 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14416 * genpreds.c (have_const_dbl_constraints): Delete.
14417 (add_constraint): Don't set it.
14418 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14419 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14420 constraints using the lookup_constraint logic.
14421 * ira-lives.c (single_reg_class): Likewise.
14422 * ira.c (ira_setup_alts): Likewise.
14423 * lra-constraints.c (process_alt_operands): Likewise.
14424 * recog.c (asm_operand_ok, constrain_operands): Likewise.
14425 * reload.c (find_reloads): Likewise.
14427 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14429 * genpreds.c (const_int_start, const_int_end): New variables.
14430 (choose_enum_order): Output CONST_INT constraints before memory
14432 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14434 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14435 * ira.c (ira_setup_alts): Likewise.
14436 * lra-constraints.c (process_alt_operands): Likewise.
14437 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14438 * reload.c (find_reloads): Likewise.
14440 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14442 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14443 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
14444 * recog.c (preprocess_constraints): Update accordingly.
14446 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14448 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14449 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14450 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14451 * genpreds.c (print_type_tree): New function.
14452 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14453 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14454 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14455 Write out enum constraint_type and get_constraint_type.
14456 * lra-constraints.c (satisfies_memory_constraint_p): Take a
14457 constraint_num rather than a constraint string.
14458 (satisfies_address_constraint_p): Likewise.
14459 (reg_class_from_constraints): Avoid old constraint macros.
14460 (process_alt_operands, process_address_1): Likewise.
14461 (curr_insn_transform): Likewise.
14462 * ira-costs.c (record_reg_classes): Likewise.
14463 (record_operand_costs): Likewise.
14464 * ira-lives.c (single_reg_class): Likewise.
14465 (ira_implicitly_set_insn_hard_regs): Likewise.
14466 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14467 * postreload.c (reload_cse_simplify_operands): Likewise.
14468 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14469 (constrain_operands, peep2_find_free_register): Likewise.
14470 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14471 (find_reloads, alternative_allows_const_pool_ref): Likewise.
14472 * reload1.c (maybe_fix_stack_asms): Likewise.
14473 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14474 * targhooks.c (default_secondary_reload): Likewise.
14475 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14476 to EXTRA_CONSTRAINT_STR.
14477 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14479 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14481 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14482 (write_constraint_satisfied_p_array): ...this new function.
14483 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14485 (write_insn_preds_c): Update accordingly.
14487 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14489 * genpreds.c (write_lookup_constraint): Rename to...
14490 (write_lookup_constraint_1): ...this.
14491 (write_lookup_constraint_array): New function.
14492 (write_tm_preds_h): Define lookup_constraint as an inline function
14493 that uses write_lookup_constraint_array where possible.
14494 (write_insn_preds_c): Update for the changes above.
14496 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14498 * doc/md.texi (regclass_for_constraint): Rename to...
14499 (reg_class_for_constraint): ...this.
14500 * genpreds.c (num_constraints, enum_order, register_start)
14501 (register_end, satisfied_start, memory_start, memory_end)
14502 (address_start, address_end): New variables.
14503 (add_constraint): Count the number of constraints.
14504 (choose_enum_order): New function.
14505 (write_enum_constraint_num): Iterate over enum_order.
14506 (write_regclass_for_constraint): Rename to...
14507 (write_reg_class_for_constraint_1): ...this and update output
14509 (write_constraint_satisfied_p): Rename to...
14510 (write_constraint_satisfied_p_1): ...this and update output
14511 accordingly. Do nothing if all extra constraints are register
14513 (write_insn_extra_memory_constraint): Delete.
14514 (write_insn_extra_address_constraint): Delete.
14515 (write_range_function): New function.
14516 (write_tm_preds_h): Define constraint_satisfied_p and
14517 reg_class_for_constraint as inline functions that do a range check
14518 before calling the out-of-line function. Use write_range_function
14519 to implement insn_extra_{register,memory,address}_constraint,
14520 the first of which is new.
14521 (write_insn_preds_c): Update after above changes to write_* functions.
14522 (main): Call choose_enum_order.
14524 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14526 PR tree-optimization/61306
14527 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14528 expression instead of its size.
14529 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14530 false to prevent optimization when the result is unpredictable due to
14531 arithmetic right shift of signed type with highest byte is set.
14532 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14533 (init_symbolic_number): Likewise.
14534 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14535 when the result is unpredictable due to sign extension.
14537 2014-06-11 Terry Guo <terry.guo@arm.com>
14539 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14540 (*thumb1_addsi3): Ditto.
14541 (*thumb_subdi3): Ditto.
14542 (thumb1_subsi3_insn): Ditto.
14543 (*thumb_mulsi3): Ditto.
14544 (*thumb_mulsi3_v6): Ditto.
14545 (*thumb1_andsi3_insn): Ditto.
14546 (thumb1_bicsi3): Ditto.
14547 (*thumb1_iorsi3_insn): Ditto.
14548 (*thumb1_xorsi3_insn): Ditto.
14549 (*thumb1_ashlsi3): Ditto.
14550 (*thumb1_ashrsi3): Ditto.
14551 (*thumb1_lshrsi3): Ditto.
14552 (*thumb1_rotrsi3): Ditto.
14553 (*thumb1_negdi2): Ditto.
14554 (*thumb1_negsi2): Ditto.
14555 (*thumb1_abssi2): Ditto.
14556 (*thumb1_neg_abssi2): Ditto.
14557 (*thumb1_one_cmplsi2): Ditto.
14558 (*thumb1_zero_extendhisi2): Ditto.
14559 (*thumb1_zero_extendqisi2): Ditto.
14560 (*thumb1_zero_extendqisi2_v6): Ditto.
14561 (thumb1_extendhisi2): Ditto.
14562 (thumb1_extendqisi2): Ditto.
14563 (*thumb1_movdi_insn): Ditto.
14564 (*thumb1_movsi_insn): Ditto.
14565 (*thumb1_movhi_insn): Ditto.
14566 (thumb_movhi_clobber): Ditto.
14567 (*thumb1_movqi_insn): Ditto.
14568 (*thumb1_movhf): Ditto.
14569 (*thumb1_movsf_insn): Ditto.
14570 (*thumb_movdf_insn): Ditto.
14571 (movmem12b): Ditto.
14573 (cbranchqi4): Ditto.
14574 (cbranchsi4_insn): Ditto.
14575 (cbranchsi4_scratch): Ditto.
14576 (*negated_cbranchsi4): Ditto.
14577 (*tbit_cbranch): Ditto.
14578 (*tlobits_cbranch): Ditto.
14579 (*tstsi3_cbranch): Ditto.
14580 (*cbranchne_decr1): Ditto.
14581 (*addsi3_cbranch): Ditto.
14582 (*addsi3_cbranch_scratch): Ditto.
14583 (*thumb_cmpdi_zero): Ditto.
14584 (cstoresi_eq0_thumb1): Ditto.
14585 (cstoresi_ne0_thumb1): Ditto.
14586 (*cstoresi_eq0_thumb1_insn): Ditto.
14587 (*cstoresi_ne0_thumb1_insn): Ditto.
14588 (cstoresi_nltu_thumb1): Ditto.
14589 (cstoresi_ltu_thumb1): Ditto.
14590 (thumb1_addsi3_addgeu): Ditto.
14591 (*thumb_jump): Ditto.
14592 (*call_reg_thumb1_v5): Ditto.
14593 (*call_reg_thumb1): Ditto.
14594 (*call_value_reg_thumb1_v5): Ditto.
14595 (*call_value_reg_thumb1): Ditto.
14596 (*call_insn): Ditto.
14597 (*call_value_insn): Ditto.
14598 (thumb1_casesi_internal_pic): Ditto.
14599 (thumb1_casesi_dispatch): Ditto.
14600 (*thumb1_indirect_jump): Ditto.
14601 (prologue_thumb1_interwork): Ditto.
14602 (*epilogue_insns): Ditto.
14603 (consttable_1): Ditto.
14604 (consttable_2): Ditto.
14605 (tablejump): Ditto.
14606 (*thumb1_tablejump): Ditto.
14607 (thumb_eh_return): Ditto.
14608 (define_peephole2): Two of them are thumb1 only and got moved into
14609 new file thumb1.md.
14610 (define_split): Six of them are thumb1 only and got moved into new
14612 * config/arm/thumb1.md: New file comprised of above thumb1 only
14615 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14617 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14618 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14620 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14621 (aarch64_crc_builtin_datum): New struct.
14622 (aarch64_crc_builtin_data): New.
14623 (aarch64_init_crc32_builtins): New function.
14624 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14625 (aarch64_crc32_expand_builtin): New.
14626 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14627 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14628 __ARM_FEATURE_CRC32 when appropriate.
14629 (TARGET_CRC32): Define.
14630 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14631 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14632 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14633 (aarch64_<crc_variant>): New pattern.
14634 * config/aarch64/arm_acle.h: New file.
14635 * config/aarch64/iterators.md (CRC): New int iterator.
14636 (crc_variant, crc_mode): New int attributes.
14637 * doc/aarch64-acle-intrinsics.texi: New file.
14638 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14639 Include aarch64-acle-intrinsics.texi.
14641 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
14643 * tree-vect-data-refs.c (vect_grouped_store_supported): New
14644 check for stores group of length 3.
14645 (vect_permute_store_chain): New permutations for stores group of
14647 * tree-vect-stmts.c (vect_model_store_cost): Change cost
14648 of vec_perm_shuffle for the new permutations.
14650 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
14652 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14653 table rewriting temporarily on targets not supporting ONE_ONLY.
14655 2014-06-11 Richard Biener <rguenther@suse.de>
14657 PR middle-end/61437
14659 2014-06-04 Richard Biener <rguenther@suse.de>
14661 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14662 TREE_PUBLIC and DECL_EXTERNAL decls.
14664 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14666 * varasm.c (set_implicit_section): New function.
14667 (resolve_unique_section): Use it to set implicit section
14669 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14670 (default_function_section): Likewise.
14671 (decl_binds_to_current_def_p): Constify argument.
14672 * varasm.h (decl_binds_to_current_def_p): Update prototype.
14673 * asan.c (asan_protect_global): Use
14674 symtab_get_node (decl)->implicit_section.
14675 * symtab.c (dump_symtab_base): Dump implicit sections.
14676 (verify_symtab_base): Verify sanity of sectoins and comdats.
14677 (symtab_resolve_alias): Alias share the section of its target.
14678 (set_section_1): New function.
14679 (symtab_node::set_section): Move here, recurse to aliases.
14680 (verify_symtab): Check for duplicated symtab lists.
14681 * tree-core.h (implicit_section_name_p): Remove.
14682 * tree-vect-data-refs.c: Include varasm.h.
14683 (vect_can_force_dr_alignment_p): Fix conditional on when
14684 decl bints to current definition; use
14685 symtab_get_node (decl)->implicit_section.
14686 * cgraph.c (cgraph_make_node_local_1): Fix section set.
14687 * cgraph.h (struct symtab_node): Add implicit_section.
14688 (set_section): Rename to ...
14689 (set_section_for_node): ... this one.
14690 (set_section): Declare.
14691 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14692 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14693 input_overwrite_node, input_varpool_node): Stream implicit_section.
14694 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14695 removal; it will fail in LTO.
14697 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14699 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14700 Change second alternative type to f_mcr.
14701 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14702 and 12th alternatives' types to f_mcr and f_mrc.
14703 (*movdi_aarch64): Same for 12th and 13th alternatives.
14704 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14705 (aarch64_movtilow_tilow): Change type to fmov.
14707 2014-06-10 Jiong Wang <jiong.wang@arm.com>
14709 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14710 (aarch64_save_or_restore_callee_save_registers): Fix layout.
14712 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14714 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14716 (aarch64_sqrdmulh_lane<mode>): Likewise.
14717 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14718 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14719 (aarch64_sqdmulh_laneq<mode>): New expander.
14720 (aarch64_sqrdmulh_laneq<mode>): Likewise.
14721 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14722 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14723 (aarch64_sqdmulh_lane<mode>): New expander.
14724 (aarch64_sqrdmulh_lane<mode>): Likewise.
14725 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14726 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14727 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14728 (aarch64_sqdmlal_laneq<mode>): Likewise.
14729 (aarch64_sqdmlsl_lane<mode>): Likewise.
14730 (aarch64_sqdmlsl_laneq<mode>): Likewise.
14731 (aarch64_sqdmlal2_lane<mode>): Likewise.
14732 (aarch64_sqdmlal2_laneq<mode>): Likewise.
14733 (aarch64_sqdmlsl2_lane<mode>): Likewise.
14734 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14735 (aarch64_sqdmull_lane<mode>): Likewise.
14736 (aarch64_sqdmull_laneq<mode>): Likewise.
14737 (aarch64_sqdmull2_lane<mode>): Likewise.
14738 (aarch64_sqdmull2_laneq<mode>): Likewise.
14740 2014-06-10 Richard Biener <rguenther@suse.de>
14742 PR tree-optimization/61438
14743 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14744 (eliminate_dom_walker::before_dom_children): Only try to inhibit
14745 insertion of IVs if running PRE.
14746 (eliminate): Adjust.
14747 (pass_pre::execute): Likewise.
14748 (pass_fre::execute): Likewise.
14750 2014-06-10 Richard Biener <rguenther@suse.de>
14752 PR middle-end/61456
14753 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14754 Do not use the main variant for the type comparison.
14755 (ncr_compar): Likewise.
14756 (nonoverlapping_component_refs_p): Likewise.
14758 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
14760 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14761 REG_CFA_RESTORE mode.
14763 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
14765 * config/i386/i386.c (expand_vec_perm_pblendv): New.
14766 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14767 expand_vec_perm_pblendv.
14769 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14771 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14773 Simplify description of __crc32d and __crc32cd intrinsics.
14774 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14777 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
14780 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14781 * config.in: Regenerate.
14782 * configure: Likewise.
14784 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14786 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14788 (intersect_static_var_sets): Remove.
14789 (propagate): Do not prune local statics.
14791 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14794 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14795 Set lastprivate_firstprivate even if omp_private_outer_ref
14796 langhook returns true.
14797 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14798 langhook, call unshare_expr on new_var and call
14799 build_outer_var_ref to get the last argument.
14801 2014-06-10 Marek Polacek <polacek@redhat.com>
14804 * doc/extend.texi: Add cindex for transparent_union.
14806 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14808 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14809 init_symbolic_number ().
14811 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
14813 PR middle-end/61141
14814 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14815 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14816 (verify_rtl_sharing): Likewise.
14818 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
14821 * tree.c (build_qualified_type): Use a canonical type for
14824 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14826 * config/arm/arm-modes.def: Remove XFmode.
14828 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
14831 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14832 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14833 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14834 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14835 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14836 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14837 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14838 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14839 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14841 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
14843 * tree-core.h (tree_decl_with_vis): Remove section_name.
14845 2014-06-09 Kito Cheng <kito@0xlab.org>
14847 * ira.c (ira): Don't call init_caller_save if LRA enabled
14848 since LRA use its own infrastructure to handle that.
14850 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14852 * symtab.c (dump_symtab_base): Update dumping.
14853 (symtab_make_decl_local): Clear only DECL_COMDAT.
14854 * tree-vect-data-refs.c (Check that variable is static before
14855 tampering with sections.
14856 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14857 (cgraph_create_virtual_clone): Likewise.
14858 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14859 (decl_section_name, set_decl_section_name): New accessors.
14860 (find_decls_types_r): Do not walk section name
14861 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14862 (decl_comdat_group, decl_comdat_group_id): Constify.
14863 (decl_section_name, set_decl_section_name): Update.
14864 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14865 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14866 (cgraph_make_node_local_1): Clear section and comdat group.
14867 * cgraph.h (set_comdat_group): Sanity check.
14868 (get_section, set_section): New.
14869 * ipa-comdats.c (ipa_comdats): Use get_section.
14870 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14871 * lto-streamer-out.c: Do not follow section names.
14872 * c-family/c-common.c (handle_section_attribute): Update.
14873 * lto-cgraph.c (lto_output_node): Output section.
14874 (lto_output_varpool_node): Likewise.
14875 (read_comdat_group): Rename to ...
14876 (read_identifier): ... this one.
14877 (read_string_cst): New function.
14878 (input_node, input_varpool_node): Input section names.
14879 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14880 (new_emutls_decl): Update.
14881 (secname_for_decl): Check section names only of static vars.
14882 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14883 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14884 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14885 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14886 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14887 * config/mcore/mcore.c (mcore_unique_section): Likewise.
14888 * config/mips/mips.c (mips16_build_function_stub): Likewise.
14889 * config/v850/v850.c (v850_insert_attributes): Likewise.
14890 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14892 (h8300_handle_tiny_data_attribute): Likewise.
14893 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14894 (bfin_handle_l2_attribute): Likewise.
14896 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14898 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14899 remove static initializer.
14901 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14903 * varasm.c (use_blocks_for_decl_p): Check symbol table
14904 instead of alias attribute.
14905 (place_block_symbol): Recurse on aliases.
14907 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14909 * ipa-visibility.c: Include varasm.h
14910 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14912 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14914 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14915 outputting aliases.
14917 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
14919 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14920 from test_insn into GGC space escape via SET_SRC.
14922 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
14924 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14925 call statement, if any.
14926 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14927 statements, if any. Tidy up.
14929 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14932 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14933 iterators, VSX_D that handles 64-bit types, and VSX_LE that
14934 handles swapping the two 64-bit double words on little endian
14935 systems. Include V1TImode and optionally TImode in VSX_LE so that
14936 these types are properly swapped. Change all of the insns and
14937 splits that do the 64-bit swaps to use VSX_LE.
14938 (vsx_le_perm_load_<mode>): Likewise.
14939 (vsx_le_perm_store_<mode>): Likewise.
14940 (splitters for little endian memory operations): Likewise.
14941 (vsx_xxpermdi2_le_<mode>): Likewise.
14942 (vsx_lxvd2x2_le_<mode>): Likewise.
14943 (vsx_stxvd2x2_le_<mode>): Likewise.
14945 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
14948 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14949 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14950 and corresponding splitters. Zero extend general register
14951 or memory input operand to XMM temporary. Enable for
14952 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14953 (floatunssi<mode>2): Update expander predicate.
14955 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
14957 PR rtl-optimization/61325
14958 * lra-constraints.c (process_address_1): Check scale equal to one
14959 to prevent transformation: base + scale * index => base + new_reg.
14961 2014-06-06 Richard Biener <rguenther@suse.de>
14963 PR tree-optimization/59299
14964 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14966 (nearest_common_dominator_of_uses): Likewise.
14967 (statement_sink_location): Adjust. Support sinking loads.
14969 2014-06-06 Martin Jambor <mjambor@suse.cz>
14971 * ipa-prop.c (get_place_in_agg_contents_list): New function.
14972 (build_agg_jump_func_from_list): Likewise.
14973 (determine_known_aggregate_parts): Renamed to
14974 determine_locally_known_aggregate_parts. Moved some functionality
14975 to the two functions above, removed bound checks.
14977 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
14979 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14980 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14981 (aarch64_progress_pointer): Likewise.
14982 (aarch64_copy_one_part_and_move_pointers): Likewise.
14983 (aarch64_expand_movmen): Likewise.
14984 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14985 * config/aarch64/aarch64.md (movmem<mode>): New.
14987 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
14989 * targhooks.c (default_add_stmt_cost): Call target specific
14990 hook instead of default one.
14992 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14994 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14995 endianness instead of host endianness.
14996 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14999 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15002 * function.c (instantiate_decls): Process the saved static chain.
15003 (expand_function_start): If not optimizing, save the static chain
15005 * tree-nested.c (convert_all_function_calls): Always create the static
15006 chain for nested functions if not optimizing.
15008 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15010 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15012 2014-06-06 Richard Biener <rguenther@suse.de>
15014 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15015 (construct_init_block): Likewise.
15016 (construct_exit_block): Likewise.
15017 (pass_expand::execute): Likewise.
15018 * graphite.c (graphite_transforms): Replace check for current_loops
15019 with a check for > 1 loops.
15020 (pass_graphite_transforms::execute): Adjust.
15021 * ipa-split.c (split_function): Remove check for current_loops.
15022 * omp-low.c (expand_parallel_call): Likewise.
15023 (expand_omp_for_init_counts): Likewise.
15024 (extract_omp_for_update_vars): Likewise.
15025 (expand_omp_for_generic): Likewise.
15026 (expand_omp_sections): Likewise.
15027 (expand_omp_target): Likewise.
15028 * tracer.c (tail_duplicate): Likewise.
15029 (pass_tracer::execute): Likewise.
15030 * trans-mem.c (expand_transaction): Likewise.
15031 * tree-complex.c (expand_complex_div_wide): Likewise.
15032 * tree-eh.c (lower_resx): Likewise.
15033 (cleanup_empty_eh_merge_phis): Likewise.
15034 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15035 current_loops with a check for > 1 loops.
15036 (pass_predcom::execute): Adjust.
15037 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15038 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15039 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15040 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15041 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15042 * tree-switch-conversion.c (process_switch): Likewise.
15043 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15044 * tree-vrp.c (vrp_visit_phi_node): Likewise.
15045 (execute_vrp): Likewise.
15046 * ubsan.c (ubsan_expand_null_ifn): Likewise.
15048 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15050 * rtl.h (insn_location): Declare.
15051 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15052 with UNKNOWN_LOCATION.
15053 * emit-rtl.c (insn_location): New function.
15054 * final.c (notice_source_line): Check that the instruction has a
15055 location before retrieving it and use insn_location.
15056 * modulo-sched.c (loop_single_full_bb_p): Likewise.
15057 * print-rtl.c (print_rtx): Likewise.
15059 2014-06-06 Richard Biener <rguenther@suse.de>
15061 * passes.def: Move 2nd VRP pass before phi-only-cprop.
15063 2014-06-06 Christian Bruel <christian.bruel@st.com>
15065 PR tree-optimization/43934
15066 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15069 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15071 * ira-lives.c (single_reg_class): Add missing break. Explicitly
15072 return NO_REGS for extra address and memory constraints. Handle
15073 operands that match (or are equivalent to something that matches)
15074 extra constant constraints. Ignore other non-register operands.
15076 2014-06-06 Alan Modra <amodra@gmail.com>
15079 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15080 * doc/tm.texi: Regenerate.
15081 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15082 Use throughout in place of REG_PARM_STACK_SPACE.
15083 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15084 "incoming" param. Pass to rs6000_function_parms_need_stack.
15085 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15086 prototype_p when incoming. Use function decl when incoming
15087 to handle K&R style functions.
15088 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15089 (INCOMING_REG_PARM_STACK_SPACE): Define.
15091 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15094 * cfgexpand.c (expand_debug_expr): Use address space of nested
15095 TREE_TYPE for ADDR_EXPR and MEM_REF.
15097 2014-06-05 Jeff Law <law@redhat.com>
15099 PR tree-optimization/61289
15100 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15101 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
15102 looking for those which match LHS. All callers changed.
15103 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15104 parameters and code which manipulated them. All callers changed.
15105 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15106 and DST_MAP parameters. Simplify invalidation code by just calling
15107 invalidate_equivalences. All callers changed.
15108 (thread_across_edge): Simplify now that we don't need to maintain
15109 the map of equivalences to invalidate.
15111 2014-06-05 Kai Tietz <ktietz@redhat.com>
15112 Richard Henderson <rth@redhat.com>
15115 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15116 checking for !TARGET_X32.
15117 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15118 (sibcall_intern): New define_insn, plus required peepholes.
15119 (sibcall_pop_intern): Likewise.
15120 (sibcall_value_intern): Likewise.
15121 (sibcall_value_pop_intern): Likewise.
15123 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
15125 * tree-inline.c (tree_function_versioning): Check DF info existence
15126 before accessing it.
15128 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15130 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15132 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15133 aarch64_frame hard_fp_offset and frame_size.
15134 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15135 frame_size; remove original_frame_size.
15136 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15137 (aarch64_initial_elimination_offset): Remove frame_size and
15138 offset. Use aarch64_frame frame_size.
15140 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15141 Jiong Wang <jiong.wang@arm.com>
15142 Renlin <renlin.li@arm.com>
15144 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15145 initialization of R30 offset. Update offset. Iterate core
15146 regisers upto X30. Remove X29, X30 specific code.
15148 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15149 Jiong Wang <jiong.wang@arm.com>
15151 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15152 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15153 (aarch64_register_saved_on_entry): Adjust test.
15155 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15157 * config/aarch64/aarch64.h (machine_function): Move
15158 saved_varargs_size from here...
15159 (aarch64_frame): ... to here.
15161 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15162 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15163 (aarch64_initial_elimination_offset)
15164 (aarch64_setup_incoming_varargs): Adjust location of
15165 saved_varargs_size.
15167 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15169 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15172 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
15173 Prachi Godbole <Prachi.Godbole@imgtec.com>
15175 * config/mips/mips-cpus.def: Add definition for p5600. Updated
15176 mips32r5 entry to use PROCESSOR_P5600.
15177 * config/mips/mips-tables.opt: Regenerate.
15178 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15179 * config/mips/mips.c (mips_fmadd_bypass): New function.
15180 (mips_rtx_cost_data): Add costs for p5600.
15181 (mips_issue_rate): Add support for p5600.
15182 (mips_multipass_dfa_lookahead): Likewise.
15183 * config/mips/mips.h (TUNE_P5600): New define.
15184 (TUNE_MACC_CHAINS): Add TUNE_P5600.
15185 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15186 * config/mips/mips.md: Include p5600.md.
15187 (processor): Add p5600.
15188 * config/mips/p5600.md: New file.
15190 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
15192 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15193 * config/i386/predicates.md (palignr_operand): New.
15194 Indicates if permutation is suitable for palignr instruction.
15196 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
15198 PR tree-optimization/61319
15199 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15200 stmt belongs to loop.
15202 2014-06-05 Richard Biener <rguenther@suse.de>
15204 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15205 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15206 (lookup_tmp_var): Adjust.
15207 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15209 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15211 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15213 2014-06-05 Marek Polacek <polacek@redhat.com>
15216 * doc/invoke.texi: Document -Wlogical-not-parentheses.
15218 2014-06-04 Tom de Vries <tom@codesourcery.com>
15220 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15223 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
15225 PR tree-optimization/61385
15226 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15228 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
15230 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
15231 changed to use fatal_error.
15232 (main): Ensure lto_wrapper_cleanup is run atexit.
15234 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15236 * lra-constraints.c (valid_address_p): Move earlier in file.
15237 (address_eliminator): New structure.
15238 (satisfies_memory_constraint_p): New function.
15239 (satisfies_address_constraint_p): Likewise.
15240 (process_alt_operands, process_address, curr_insn_transform): Use them.
15242 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15244 * lra-int.h (lra_static_insn_data): Make operand_alternative a
15246 (target_lra_int, default_target_lra_int, this_target_lra_int)
15247 (op_alt_data): Delete.
15248 * lra.h (lra_init): Delete.
15249 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
15250 (init_insn_code_data_once): Remove op_alt_data handling.
15251 (finish_insn_code_data_once): Likewise.
15252 (init_op_alt_data): Delete.
15253 (get_static_insn_data): Initialize operand_alternative to null.
15254 (free_insn_recog_data): Cast operand_alternative before freeing it.
15255 (setup_operand_alternative): Take the operand_alternative as
15256 parameter and assume it isn't already cached in the static
15258 (lra_set_insn_recog_data): Update accordingly.
15259 (lra_init): Delete.
15260 * ira.c (ira_init): Don't call lra_init.
15261 * target-globals.h (this_target_lra_int): Declare.
15262 (target_globals): Remove lra_int.
15263 (restore_target_globals): Update accordingly.
15264 * target-globals.c: Don't include lra-int.h.
15265 (default_target_globals, save_target_globals): Remove lra_int.
15267 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15269 * recog.h (operand_alternative): Convert reg_class, reject,
15270 matched and matches into bitfields.
15271 (preprocess_constraints): New overload.
15272 (preprocess_insn_constraints): New function.
15273 (preprocess_constraints): Take the insn as parameter.
15274 (recog_op_alt): Change into a pointer.
15275 (target_recog): Add x_op_alt.
15276 * recog.c (asm_op_alt): New variable.
15277 (recog_op_alt): Change into a pointer.
15278 (preprocess_constraints): New overload, replacing the old function
15279 definition with one that doesn't use global state.
15280 (preprocess_insn_constraints): New function.
15281 (preprocess_constraints): Use them. Take the insn as parameter.
15282 Use asm_op_alt for asms.
15283 (recog_init): Free existing x_op_alt entries.
15284 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
15286 (make_early_clobber_and_input_conflicts): Likewise.
15287 (process_bb_node_lives): Pass the insn to process_constraints.
15288 * reg-stack.c (check_asm_stack_operands): Likewise.
15289 (subst_asm_stack_regs): Likewise.
15290 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15291 * regrename.c (build_def_use): Likewise.
15292 * sched-deps.c (sched_analyze_insn): Likewise.
15293 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
15294 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15295 (note_invalid_constants): Likewise.
15296 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15297 (ix86_legitimate_combined_insn): Make operand_alternative pointer
15300 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15302 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
15303 * ira-lives.c (check_and_make_def_conflict): Check for disabled
15305 (make_early_clobber_and_input_conflicts): Likewise.
15306 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15308 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15310 * recog.h (alternative_class): New function.
15311 (which_op_alt): Return a const recog_op_alt.
15312 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
15313 (subst_asm_stack_regs): Likewise.
15314 * config/arm/arm.c (note_invalid_constants): Likewise.
15315 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
15316 the operand_alternative; use alternative class instead.
15317 * sel-sched.c (get_reg_class): Likewise.
15318 * regrename.c (build_def_use): Likewise.
15319 (hide_operands, restore_operands, record_out_operands): Update type
15322 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15324 * recog.h (recog_op_alt): Convert to a flat array.
15325 (which_op_alt): New function.
15326 * recog.c (recog_op_alt): Convert to a flat array.
15327 (preprocess_constraints): Update accordingly, grouping all
15328 operands of the same alternative together, rather than the
15330 * ira-lives.c (check_and_make_def_conflict): Likewise.
15331 (make_early_clobber_and_input_conflicts): Likewise.
15332 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15333 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15334 (subst_asm_stack_regs): Likewise.
15335 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15336 * regrename.c (hide_operands, record_out_operands): Likewise.
15337 (build_def_use): Likewise.
15338 * sel-sched.c (get_reg_class): Likewise.
15339 * config/arm/arm.c (note_invalid_constants): Likewise.
15341 2014-06-04 Jason Merrill <jason@redhat.com>
15345 * gimplify.c (gimplify_arg): Non-static.
15346 * gimplify.h: Declare it.
15348 2014-06-04 Richard Biener <rguenther@suse.de>
15350 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15351 TREE_PUBLIC and DECL_EXTERNAL decls.
15353 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
15355 * regcprop.c (copyprop_hardreg_forward_1): Account for
15356 HARD_REGNO_CALL_PART_CLOBBERED.
15358 2014-06-04 Richard Biener <rguenther@suse.de>
15360 * configure.ac: Check whether the underlying type of int64_t
15361 is long or long long.
15362 * configure: Regenerate.
15363 * config.in: Likewise.
15364 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
15365 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15367 2014-06-04 Richard Biener <rguenther@suse.de>
15369 PR tree-optimization/60098
15370 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
15372 (dse_optimize_stmt): Simplify, now that we found a kill
15375 2014-06-04 Richard Biener <rguenther@suse.de>
15377 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
15378 of accesses with non-invariant address.
15380 2014-06-04 Martin Liska <mliska@suse.cz>
15382 * cgraph.h (cgraph_make_wrapper): New function introduced.
15383 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
15384 * ipa-inline.h (inline_analyze_function): The function is global.
15385 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
15387 2014-06-04 Martin Liska <mliska@suse.cz>
15389 * tree.h (private_lookup_attribute_starting): New function.
15390 (lookup_attribute_starting): Likewise.
15391 * tree.c (private_lookup_attribute_starting): Likewise.
15393 2014-06-04 Martin Liska <mliska@suse.cz>
15395 * cgraph.h (expand_thunk): New argument added.
15396 (address_taken_from_non_vtable_p): New global function.
15397 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
15398 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
15399 * cgraphunit.c (analyze_function): Likewise.
15400 (assemble_thunks_and_aliases): Argument added to call.
15401 (expand_thunk): New argument forces to produce GIMPLE thunk.
15403 2014-06-04 Martin Liska <mliska@suse.cz>
15405 * coverage.h (coverage_compute_cfg_checksum): Argument added.
15406 * coverage.c (coverage_compute_cfg_checksum): Likewise.
15407 * profile.c (branch_prob): Likewise.
15409 2014-06-04 Martin Jambor <mjambor@suse.cz>
15412 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15413 handler for switch on an ipa_ref_use enum.
15414 * ipa-reference.c (analyze_function): Likewise.
15416 2014-06-04 Kai Tietz <ktietz@redhat.com>
15418 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15419 from old call-instruction.
15421 2014-06-04 Bin Cheng <bin.cheng@arm.com>
15423 * config/aarch64/aarch64.c (aarch64_classify_address)
15424 (aarch64_legitimize_reload_address): Support full addressing modes
15426 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15427 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15429 2014-06-03 Andrew Pinski <apinski@cavium.com>
15431 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15434 2014-06-03 Andrew Pinski <apinski@cavium.com>
15436 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15437 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15439 2014-06-03 Kai Tietz <ktietz@redhat.com>
15441 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15444 2014-06-03 Dehao Chen <dehao@google.com>
15446 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15449 2014-06-03 Marek Polacek <polacek@redhat.com>
15452 * doc/invoke.texi: Document -Wswitch-bool.
15453 * function.c (stack_protect_epilogue): Cast controlling expression of
15455 * gengtype.c (walk_type): Generate switch expression with its
15456 controlling expression cast to int.
15458 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
15460 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15462 * config/avr/avr-tables.opt: Regenerate.
15463 * config/avr/t-multilib: Regenerate.
15464 * doc/avr-mmcu.texi: Regenerate.
15466 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
15467 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15469 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15470 (ata6617c, ata664251): Add new avr35 devices.
15471 (ata6612c): Add new avr4 device.
15472 (ata6613c, ata6614q): Add new avr5 devices.
15473 * config/avr/avr-tables.opt: Regenerate.
15474 * config/avr/t-multilib: Regenerate.
15475 * doc/avr-mmcu.texi: Regenerate.
15477 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15479 * gcc/config/aarch64/aarch64-builtins.c
15480 (aarch64_types_binop_ssu_qualifiers): New static data.
15481 (TYPES_BINOP_SSU): Define.
15482 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15483 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15484 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15485 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15486 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15487 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15488 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15489 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15490 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15491 suffix to builtin function name, remove cast.
15492 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15493 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15494 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15496 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15498 * gcc/config/aarch64/aarch64-builtins.c
15499 (aarch64_types_binop_uus_qualifiers,
15500 aarch64_types_shift_to_unsigned_qualifiers,
15501 aarch64_types_unsigned_shiftacc_qualifiers): Define.
15502 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15503 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15504 sqshlu_n, uqshl_n): Update qualifiers.
15505 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15506 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15507 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15508 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15509 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15510 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15511 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15512 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15513 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15514 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15515 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15516 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15517 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15518 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15519 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15520 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15521 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15522 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15523 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15524 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15525 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15526 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15527 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15528 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15529 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15530 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15531 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15533 2014-06-03 Teresa Johnson <tejohnson@google.com>
15535 * tree-sra.c (modify_function): Record caller nodes after rebuild.
15537 2014-06-02 Jason Merrill <jason@redhat.com>
15540 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15542 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15544 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15547 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15549 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15551 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15552 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15553 * config/aarch64/iterators.md (REVERSE): New iterator.
15554 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15555 (rev_op): New int_attribute.
15556 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15557 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15558 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15559 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15560 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15561 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15562 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15563 Replace temporary __asm__ with __builtin_shuffle.
15565 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15567 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15569 * config/mips/mips-tables.opt: Regenerate.
15570 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15571 to use mips_isa_rev rather than ISA_MIPS32R2.
15572 * config/mips/mips.h (ISA_MIPS32R3): New define.
15573 (ISA_MIPS32R5): New define.
15574 (ISA_MIPS64R3): New define.
15575 (ISA_MIPS64R5): New define.
15576 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15577 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15578 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15580 (MIPS_ISA_SYNCI_SPEC): Likewise.
15581 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15582 (LINK_SPEC): Added mips32r3 and mips32r5.
15583 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15584 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15585 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15586 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15587 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15588 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15589 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15591 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15593 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15595 * config/mips/mips.opt (mxpa): New option.
15596 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15599 2014-06-03 Martin Jambor <mjambor@suse.cz>
15602 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15605 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
15607 PR tree-optimization/61328
15608 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15609 initialization from find_bswap_or_nop_1.
15610 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15611 in source_expr2 before using the size value the function sets. Also
15612 make use of init_symbolic_number () in both the old place and
15613 find_bswap_or_nop_load () to avoid reading uninitialized memory when
15614 doing recursion in the GIMPLE_BINARY_RHS case.
15616 2014-06-03 Richard Biener <rguenther@suse.de>
15618 PR tree-optimization/61383
15619 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15622 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
15624 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15625 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15626 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15627 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15629 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15630 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15631 * system.h: ...here and make it unconditional.
15632 * target.def (conditional_register_usage): Mention
15633 define_register_constraint instead of old-style constraint macros.
15634 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15635 * doc/tm.texi: Regenerate.
15636 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15637 protected by !USE_MD_CONSTRAINTS.
15638 * config/frv/frv.md: Remove quote from old version of documentation.
15639 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15640 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15641 CONST_DOUBLE_OK_FOR_LETTER.
15642 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15644 2014-06-02 Andrew Pinski <apinski@cavium.com>
15646 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15647 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15648 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15649 file whose name depends on -mabi= and -mbig-endian.
15650 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15651 Handle LP64 better and handle ilp32 too.
15652 (MULTILIB_OPTIONS): Delete.
15653 (MULTILIB_DIRNAMES): Delete.
15655 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
15657 * expr.h: Remove prototypes of functions defined in builtins.c.
15658 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15659 Remove prototypes of functions defined in builtins.c.
15660 * builtins.h: Update prototype list to include all exported functions.
15661 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15662 no_c99_libc_has_function): Move to targhooks.c
15663 (build_string_literal, build_call_expr_loc_array,
15664 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15666 (expand_builtin_object_size, fold_builtin_object_size): Make static.
15667 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15668 no_c99_libc_has_function): Relocate from builtins.c.
15669 * tree.c: Include builtins.h.
15670 (build_call_expr_loc_array, build_call_expr_loc_vec,
15671 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15673 * fold-const.h (fold_fma): Move prototype to builtins.h.
15674 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15675 * asan.c: Include builtins.h.
15676 * cfgexpand.c: Likewise.
15677 * convert.c: Likewise.
15678 * emit-rtl.c: Likewise.
15679 * except.c: Likewise.
15680 * expr.c: Likewise.
15681 * fold-const.c: Likewise.
15682 * gimple-fold.c: Likewise.
15683 * gimple-ssa-strength-reduction.c: Likewise.
15684 * gimplify.c: Likewise.
15685 * ipa-inline.c: Likewise.
15686 * ipa-prop.c: Likewise.
15687 * lto-streamer-out.c: Likewise.
15688 * stmt.c: Likewise.
15689 * tree-inline.c: Likewise.
15690 * tree-object-size.c: Likewise.
15691 * tree-sra.c: Likewise.
15692 * tree-ssa-ccp.c: Likewise.
15693 * tree-ssa-forwprop.c: Likewise.
15694 * tree-ssa-loop-ivcanon.c: Likewise.
15695 * tree-ssa-loop-ivopts.c: Likewise.
15696 * tree-ssa-math-opts.c: Likewise.
15697 * tree-ssa-reassoc.c: Likewise.
15698 * tree-ssa-threadedge.c: Likewise.
15699 * tree-streamer-in.c: Likewise.
15700 * tree-vect-data-refs.c: Likewise.
15701 * tree-vect-patterns.c: Likewise.
15702 * tree-vect-stmts.c: Likewise.
15703 * config/aarch64/aarch64.c: Likewise.
15704 * config/alpha/alpha.c: Likewise.
15705 * config/arc/arc.c: Likewise.
15706 * config/arm/arm.c: Likewise.
15707 * config/avr/avr.c: Likewise.
15708 * config/bfin/bfin.c: Likewise.
15709 * config/c6x/c6x.c: Likewise.
15710 * config/cr16/cr16.c: Likewise.
15711 * config/cris/cris.c: Likewise.
15712 * config/epiphany/epiphany.c: Likewise.
15713 * config/fr30/fr30.c: Likewise.
15714 * config/frv/frv.c: Likewise.
15715 * config/h8300/h8300.c: Likewise.
15716 * config/i386/i386.c: Likewise.
15717 * config/i386/winnt.c: Likewise.
15718 * config/ia64/ia64.c: Likewise.
15719 * config/iq2000/iq2000.c: Likewise.
15720 * config/lm32/lm32.c: Likewise.
15721 * config/m32c/m32c.c: Likewise.
15722 * config/m32r/m32r.c: Likewise.
15723 * config/m68k/m68k.c: Likewise.
15724 * config/mcore/mcore.c: Likewise.
15725 * config/mep/mep.c: Likewise.
15726 * config/microblaze/microblaze.c: Likewise.
15727 * config/mips/mips.c: Likewise.
15728 * config/mmix/mmix.c: Likewise.
15729 * config/mn10300/mn10300.c: Likewise.
15730 * config/moxie/moxie.c: Likewise.
15731 * config/msp430/msp430.c: Likewise.
15732 * config/nds32/nds32.c: Likewise.
15733 * config/pa/pa.c: Likewise.
15734 * config/pdp11/pdp11.c: Likewise.
15735 * config/picochip/picochip.c: Likewise.
15736 * config/rl78/rl78.c: Likewise.
15737 * config/rs6000/rs6000.c: Likewise.
15738 * config/rx/rx.c: Likewise.
15739 * config/s390/s390.c: Likewise.
15740 * config/score/score.c: Likewise.
15741 * config/sh/sh.c: Likewise.
15742 * config/sparc/sparc.c: Likewise.
15743 * config/spu/spu.c: Likewise.
15744 * config/stormy16/stormy16.c: Likewise.
15745 * config/tilegx/tilegx.c: Likewise.
15746 * config/tilepro/tilepro.c: Likewise.
15747 * config/v850/v850.c: Likewise.
15748 * config/vax/vax.c: Likewise.
15749 * config/xtensa/xtensa.c: Likewise.
15751 2014-06-02 Jeff Law <law@redhat.com>
15753 PR rtl-optimization/61094
15754 * ree.c (combine_reaching_defs): Do not reextend an insn if it
15755 was marked as do_no_reextend. If a copy is needed to eliminate
15756 an extension, then mark it as do_not_reextend.
15758 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
15760 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15762 2014-06-02 Richard Henderson <rth@redhat.com>
15765 * config/alpha/alpha.c (print_operand_address): Allow symbolic
15766 addresses inside asms. Use output_operand_lossage instead of
15769 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
15772 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15773 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15775 2014-06-02 Tom de Vries <tom@codesourcery.com>
15777 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15778 case that x has VOIDmode.
15780 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
15782 * varasm.c (copy_constant): Delete function.
15783 (build_constant_desc): Don't call it.
15785 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15788 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15789 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15790 with immediate_operand.
15792 2014-06-02 Andreas Schwab <schwab@suse.de>
15794 * config/ia64/ia64.c
15795 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15796 pending_data_specs first.
15798 2014-06-02 Richard Biener <rguenther@suse.de>
15800 PR tree-optimization/61378
15801 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15802 valueized_anything.
15804 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
15806 * config/i386/constraints.md (Bw): Rename from 'w'.
15807 (Bz): Rename from 'z'.
15808 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15810 2014-06-01 Kai Tietz <ktietz@redhat.com>
15813 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15814 * config/i386/i386.md (sibcall_insn_operand): Use Bs
15815 instead of m constraint.
15817 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
15819 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15820 a separate alternative where the scratch operand 2 is marked as
15823 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
15825 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15826 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15827 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15828 and __builtins_arm_get_fpscr.
15829 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15830 __builtins_arm_get_fpscr.
15831 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15832 __builtins_arm_ldfpscr.
15833 (arm_atomic_assign_expand_fenv): New function.
15834 * config/arm/vfp.md (set_fpscr): New pattern.
15835 (get_fpscr) : Likewise.
15836 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15838 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15839 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15841 2014-05-30 Jakub Jelinek <jakub@redhat.com>
15843 * asan.c (report_error_func): Add SLOW_P argument, use
15844 BUILT_IN_ASAN_*_N if set.
15845 (build_check_stmt): Likewise.
15846 (instrument_derefs): If T has insufficient alignment,
15847 force same handling as for odd sizes.
15849 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15850 BUILT_IN_ASAN_REPORT_STORE_N): New.
15851 * asan.c (struct asan_mem_ref): Change access_size type to
15853 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15854 update_mem_ref_hash_table): Likewise.
15855 (asan_mem_ref_hasher::hash): Hash in a HWI.
15856 (report_error_func): Change size_in_bytes argument to HWI.
15857 Use *_N builtins if size_in_bytes is larger than 16 or not power of
15859 (build_shadow_mem_access): New function.
15860 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
15861 Handle size_in_bytes not power of two or larger than 16.
15862 (instrument_derefs): Don't give up if size_in_bytes is not
15863 power of two or is larger than 16.
15865 2014-05-30 Kai Tietz <ktietz@redhat.com>
15868 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15869 for sibling-tail-calls.
15870 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15872 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15873 (sibcall_insn_operand): Add check for sibcall_memory_operand.
15875 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15877 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15878 * config/avr/avr-tables.opt: Regenerate.
15879 * config/avr/t-multilib: Regenerate.
15880 * doc/avr-mmcu.texi: Regenerate.
15882 2014-05-30 Ian Lance Taylor <iant@google.com>
15884 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15887 2014-05-30 Tom de Vries <tom@codesourcery.com>
15889 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15892 2014-05-30 Tom de Vries <tom@codesourcery.com>
15894 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15895 * lra.c (initialize_lra_reg_info_element): Add init of
15896 actual_call_used_reg_set field.
15897 (lra): Call lra_create_live_ranges before lra_inheritance for
15899 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15901 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15902 instead of call_used_reg_set for -fuse-caller-save.
15903 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15905 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15907 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15909 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15911 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15913 * ira.c (ira_get_dup_out_num): Check for output operands at
15914 the start of the loop. Handle cases where an included alternative
15915 follows an excluded one.
15917 2014-05-29 Mike Stump <mikestump@comcast.net>
15920 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15921 post ld passes when lto is used.
15923 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
15925 PR rtl-optimization/61325
15926 * lra-constraints.c (process_address): Rename to process_address_1.
15927 (process_address): New function.
15929 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
15931 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15932 TYPES_BINOPV): New static data.
15933 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15935 * config/aarch64/aarch64-simd.md (aarch64_ext,
15936 aarch64_im_lane_boundsi): New patterns.
15937 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15939 (aarch64_evpc_ext): New function.
15941 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15943 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15944 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15945 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15946 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15947 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15949 2014-05-29 Tom de Vries <tom@codesourcery.com>
15951 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15953 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
15954 Richard Sandiford <rdsandiford@googlemail.com>
15956 * arm/iterators.md (shiftable_ops): New code iterator.
15957 (t2_binop0, arith_shift_insn): New code attributes.
15958 * arm/predicates.md (shift_nomul_operator): New predicate.
15959 * arm/arm.md (insn_enabled): Delete.
15960 (enabled): Remove insn_enabled test.
15961 (*arith_shiftsi): Delete. Replace with ...
15962 (*<arith_shift_insn>_multsi): ... new pattern.
15963 (*<arith_shift_insn>_shiftsi): ... new pattern.
15964 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15966 2014-05-29 Radovan Obradovic <robradovic@mips.com>
15967 Tom de Vries <tom@codesourcery.com>
15969 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15970 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15972 (mips_split_call): Use POST_CALL_TMP_REG.
15973 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15975 2014-05-29 Tom de Vries <tom@codesourcery.com>
15977 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15978 with #ifdef STACK_REGS.
15980 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
15982 * varasm.c (get_variable_section): Walk aliases.
15983 (place_block_symbol): Walk aliases.
15985 2014-05-28 Tom de Vries <tom@codesourcery.com>
15988 2014-05-28 Tom de Vries <tom@codesourcery.com>
15990 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15991 * lra.c (initialize_lra_reg_info_element): Add init of
15992 actual_call_used_reg_set field.
15993 (lra): Call lra_create_live_ranges before lra_inheritance for
15995 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15997 * lra-constraints.c (need_for_call_save_p): Use
15998 actual_call_used_reg_set instead of call_used_reg_set for
16000 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16002 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16004 * doc/md.texi: Document that the % constraint character must
16005 be at the beginning of the string.
16006 * genoutput.c (validate_insn_alternatives): Check that '=',
16007 '+' and '%' only appear at the beginning of a constraint.
16008 * ira.c (commutative_constraint_p): Delete.
16009 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16010 at the start of the string.
16011 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16013 * config/arm/neon.md (bicdi3_neon): Likewise.
16014 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16015 (slt_si, sltu_si): Likewise.
16016 * config/vax/vax.md (sbcdi3): Likewise.
16017 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16018 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16019 (mul64): Move '%' to beginning of constraint.
16020 * config/arm/arm.md (*xordi3_insn): Likewise.
16021 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16022 (xorsi3): Likewise.
16024 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16026 * doc/md.texi: Document the restrictions on the "enabled" attribute.
16028 2014-05-28 Jason Merrill <jason@redhat.com>
16031 * cgraph.h (symtab_node::get_comdat_group_id): New.
16032 * cgraphunit.c (analyze_functions): Call it.
16033 * symtab.c (dump_symtab_node): Likewise.
16034 * tree.c (decl_comdat_group_id): New.
16035 * tree.h: Declare it.
16036 * lto-streamer-out.c (write_symbol): Use it.
16037 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16039 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16041 PR bootstrap/PR61146
16042 * wide-int.cc: Do not include longlong.h when compiling with clang.
16044 2014-05-28 Richard Biener <rguenther@suse.de>
16046 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16047 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16048 (vrp_visit_assignment_or_call): Print less vertical space.
16049 (vrp_visit_stmt): Likewise.
16050 (vrp_visit_phi_node): Likewise. For a PHI argument with
16051 VR_VARYING range consider recording it as copy.
16053 2014-05-28 Richard Biener <rguenther@suse.de>
16056 2014-05-28 Richard Biener <rguenther@suse.de>
16058 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16060 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16062 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16063 sufficiently aligned and an offset is used at the same time.
16064 (expand_expr_real_1): Likewise.
16066 2014-05-28 Richard Biener <rguenther@suse.de>
16068 PR middle-end/61045
16069 * fold-const.c (fold_comparison): When folding
16070 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16071 the sign of the remaining constant operand stays the same.
16073 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
16075 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16076 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16077 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16079 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16080 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16081 (m32bit-doubles) Likewise.
16082 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16083 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16086 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16088 * configure.ac ($gcc_cv_ld_clearcap): New test.
16089 * configure: Regenerate.
16090 * config.in: Regenerate.
16091 * config/sol2.opt (mclear-hwcap): New option.
16092 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16093 * config/sol2-clearcap.map: Moved here from
16094 testsuite/gcc.target/i386/clearcap.map.
16095 * config/sol2-clearcapv2.map: Move here from
16096 gcc.target/i386/clearcapv2.map.
16097 * config/t-sol2 (install): Depend on install-clearcap-map.
16098 (install-clearcap-map): New target.
16099 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16102 2014-05-28 Richard Biener <rguenther@suse.de>
16104 * hwint.h (*_HALF_WIDE_INT*): Move to ...
16105 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16106 ... here and remove the rest.
16107 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16109 2014-05-28 Richard Biener <rguenther@suse.de>
16111 PR tree-optimization/61335
16112 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16113 new range fails, drop to varying.
16115 2014-05-28 Olivier Hainque <hainque@adacore.com>
16117 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16118 (CPP_SPEC): Add entry for -mcpu=8548.
16119 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16120 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16122 2014-05-28 Tom de Vries <tom@codesourcery.com>
16124 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16125 * lra.c (initialize_lra_reg_info_element): Add init of
16126 actual_call_used_reg_set field.
16127 (lra): Call lra_create_live_ranges before lra_inheritance for
16129 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16131 * lra-constraints.c (need_for_call_save_p): Use
16132 actual_call_used_reg_set instead of call_used_reg_set for
16134 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16136 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16137 Tom de Vries <tom@codesourcery.com>
16139 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16141 (@item -fuse-caller-save): New item.
16143 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16144 Tom de Vries <tom@codesourcery.com>
16146 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16147 OPT_fuse_caller_save.
16149 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16150 Tom de Vries <tom@codesourcery.com>
16152 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16153 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16154 get_call_reg_set_usage.
16155 * resource.c (mark_set_resources, mark_target_live_regs): Use
16156 get_call_reg_set_usage.
16157 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16159 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16160 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16161 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16162 * ira-build.c (ira_create_allocno): Init
16163 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16164 (create_cap_allocno, propagate_allocno_info)
16165 (propagate_some_info_from_allocno)
16166 (copy_info_to_removed_store_destinations): Handle
16167 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16168 * ira-costs.c (ira_tune_allocno_costs): Use
16169 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16171 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16172 Tom de Vries <tom@codesourcery.com>
16174 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16175 and function_used_regs_valid fields.
16176 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16177 find_all_hard_reg_sets.
16178 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16179 (get_call_reg_set_usage): New function.
16180 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16181 * regs.h (get_call_reg_set_usage): Declare.
16183 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16186 * config/dbx.h (License): Add Runtime Library Exception.
16187 * config/newlib-stdint.h (License): Same.
16188 * config/rtems.h (License): Same
16189 * config/initfini-array.h (License): Same
16190 * config/v850/v850.h (License): Same.
16191 * config/v850/v850-opts.h (License): Same
16192 * config/v850/rtems.h (License): Same.
16194 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16197 * doc/extend.texi (Local Labels): Note that label differences are
16198 not supported for AVR.
16200 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16201 Olivier Hainque <hainque@adacore.com>
16203 * rtl.h (set_for_reg_notes): Declare.
16204 * emit-rtl.c (set_for_reg_notes): New function.
16205 (set_unique_reg_note): Use it.
16206 * optabs.c (add_equal_note): Likewise
16208 2014-05-27 Andrew Pinski <apinski@cavium.com>
16210 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16211 Use <w> for the register in assembly template.
16212 (stack_protect_test): Use the mode of operands[0] for the result.
16213 (stack_protect_test_<mode>): Use <w> for the register
16214 in assembly template.
16216 2014-05-27 DJ Delorie <dj@redhat.com>
16218 * config/rx/rx.c (add_vector_labels): New.
16219 (rx_output_function_prologue): Call it.
16220 (rx_handle_func_attribute): Don't require empty arguments.
16221 (rx_handle_vector_attribute): New.
16222 (rx_attribute_table): Add "vector" attribute.
16223 * doc/extend.texi (interrupt, vector): Document new/changed
16224 RX-specific attributes.
16226 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16228 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16230 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16231 predicate to detect a negative quotient.
16233 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16235 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16236 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16237 Add X - Y CMP 0 to X CMP Y transformation.
16238 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16240 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
16242 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
16245 2014-05-27 Steve Ellcey <sellcey@mips.com>
16247 * config/mips/mips.c: Add include of cgraph.h.
16249 2014-05-27 Richard Biener <rguenther@suse.de>
16251 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
16253 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
16256 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
16257 * config/arm/arm-cores.def (License): Same.
16258 * config/arm/arm-opts.h (License): Same.
16259 * config/arm/aout.h (License): Same.
16260 * config/arm/bpabi.h (License): Same.
16261 * config/arm/elf.h (License): Same.
16262 * config/arm/linux-elf.h (License): Same.
16263 * config/arm/linux-gas.h (License): Same.
16264 * config/arm/netbsd-elf.h (License): Same.
16265 * config/arm/uclinux-eabi.h (License): Same.
16266 * config/arm/uclinux-elf.h (License): Same.
16267 * config/arm/vxworks.h (License): Same.
16269 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16271 * config/arm/neon.md (neon_bswap<mode>): New pattern.
16272 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
16273 (arm_init_neon_builtins): Handle NEON_BSWAP.
16274 Define required type nodes.
16275 (arm_expand_neon_builtin): Handle NEON_BSWAP.
16276 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
16277 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
16278 * config/arm/iterators.md (VDQHSD): New mode iterator.
16280 2014-05-27 Richard Biener <rguenther@suse.de>
16282 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16283 Try using literal operands when comparing value-ranges failed.
16285 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16287 * ira.c (commutative_operand): Adjust for change to recog_data.
16288 [Missing from previous commit.]
16290 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16292 * system.h (TEST_BIT): New macro.
16293 * recog.h (alternative_mask): New type.
16294 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
16295 (recog_data_d): Replace alternative_enabled_p array with
16296 enabled_alternatives.
16297 (target_recog): New structure.
16298 (default_target_recog, this_target_recog): Declare.
16299 (get_enabled_alternatives, recog_init): Likewise.
16300 * recog.c (default_target_recog, this_target_recog): New variables.
16301 (get_enabled_alternatives): New function.
16302 (extract_insn): Use it.
16303 (recog_init): New function.
16304 (preprocess_constraints, constrain_operands): Adjust for change to
16306 * postreload.c (reload_cse_simplify_operands): Likewise.
16307 * reload.c (find_reloads): Likewise.
16308 * ira-costs.c (record_reg_classes): Likewise.
16309 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
16310 all alternatives after a disabled one would be skipped.
16311 (ira_implicitly_set_insn_hard_regs): Likewise.
16312 * ira.c (ira_setup_alts): Adjust for change to recog_data.
16313 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16314 with enabled_alternatives.
16315 * lra.c (free_insn_recog_data): Update accordingly.
16316 (lra_update_insn_recog_data): Likewise.
16317 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
16318 * lra-constraints.c (process_alt_operands): Likewise. Handle
16319 only_alternative as part of the enabled mask.
16320 * target-globals.h (this_target_recog): Declare.
16321 (target_globals): Add a recog field.
16322 (restore_target_globals): Restore this_target_recog.
16323 * target-globals.c: Include recog.h.
16324 (default_target_globals): Initialize recog field.
16325 (save_target_globals): Likewise.
16326 * reginfo.c (reinit_regs): Call recog_init.
16327 * toplev.c (backend_init_target): Likewise.
16329 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16331 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16332 rather than any named insn's code.
16334 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
16337 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16338 * config/arm/arm-cores.def (License): Same.
16340 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
16342 * tree.h (decl_comdat_group): Declare.
16343 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16344 * tree.c (decl_comdat_group): Here.
16346 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
16348 PR rtl-optimization/61222
16349 * combine.c (simplify_shift_const_1): When moving a PLUS outside
16350 the shift, truncate the PLUS operand to the result mode.
16352 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
16355 * config/i386/i386.c (ix86_rtx_costs)
16356 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
16359 2014-05-26 Martin Jambor <mjambor@suse.cz>
16361 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
16364 2014-05-26 Richard Biener <rguenther@suse.de>
16366 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
16367 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
16368 Provide specializations.
16369 (wi::int_traits <HOST_WIDE_INT>,
16370 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
16372 2014-05-26 Alan Modra <amodra@gmail.com>
16375 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
16376 params and return a bool. Remove dead code. Update comment.
16377 Assert we have a const_int source. Remove bogus code from
16378 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
16379 handling of constants > 2G and reg_equal note, from..
16380 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
16381 return value. Update comment. If we can, use a new pseudo
16382 for intermediate calculations.
16383 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
16385 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
16386 call to rs6000_emit_set_const in splitter.
16387 (movdi_internal64+2, +3): Likewise.
16389 2014-05-26 Richard Biener <rguenther@suse.de>
16391 * system.h: Define __STDC_FORMAT_MACROS before
16392 including inttypes.h.
16393 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
16394 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
16395 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
16396 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
16397 HOST_WIDEST_INT_C): Remove.
16398 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
16399 if C99 inttypes.h is not available.
16400 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
16401 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
16402 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
16403 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
16404 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
16405 (struct output_info): Likewise.
16406 (print_statistics): Adjust.
16407 (dump_bitmap_statistics): Likewise.
16408 * bt-load.c (migrate_btr_defs): Print with PRId64.
16409 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
16410 (MAX_SAFE_MULTIPLIER): Adjust.
16411 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16412 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16413 dump_cgraph_node): Likewise.
16414 * final.c (dump_basic_block_info): Likewise.
16415 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16416 * gcov.c (format_gcov): Likewise.
16417 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
16419 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16420 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16421 (inline_small_functions, dump_overall_stats, dump_inline_stats):
16422 Use PRId64 for dumping.
16423 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16424 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16425 (add_allocno_hard_regs): Adjust.
16426 * loop-doloop.c (doloop_modify): Print using PRId64.
16427 * loop-iv.c (inverse): Compute in uint64_t.
16428 (determine_max_iter, iv_number_of_iterations): Likewise.
16429 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16430 Print using PRId64.
16431 * lto-streamer-out.c (write_symbol): Use uint64_t.
16432 * mcf.c (CAP_INFINITY): Use int64_t maximum.
16433 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16434 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16435 * modulo-sched.c (const_iteration_count): Use int64_t.
16436 (sms_schedule): Dump using PRId64.
16437 * predict.c (dump_prediction): Likewise.
16438 * pretty-print.h (pp_widest_integer): Remove.
16439 * profile.c (get_working_sets, is_edge_inconsistent,
16440 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16441 * tree-pretty-print.c (pp_double_int): Remove case handling
16442 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16443 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16445 (pass_optimize_bswap::execute): Remove restriction on hosts.
16446 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16447 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16448 * tree.c (widest_int_cst_value): Remove.
16449 * tree.h (widest_int_cst_value): Likewise.
16450 * value-prof.c (dump_histogram_value): Print using PRId64.
16451 * gengtype.c (main): Also inject int64_t.
16452 * ggc-page.c (struct max_alignment): Use int64_t.
16453 * alloc-pool.c (struct allocation_object_def): Likewise.
16454 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16456 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16457 * doc/tm.texi: Regenerated.
16458 * gengtype-lex.l (IWORD): Handle [u]int64_t.
16459 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16460 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16461 mmix_output_register_setting): Use [u]int64_t in prototypes.
16462 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16463 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16464 mmix_output_octa, mmix_output_shifted_value): Adjust.
16465 (mmix_intval): Adjust. Remove unreachable case.
16466 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16468 2014-05-26 Richard Biener <rguenther@suse.de>
16470 * configure.ac: Drop __int64 type check. Insist that we
16471 found uint64_t and int64_t.
16472 * hwint.h (HOST_BITS_PER___INT64): Remove.
16473 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16474 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16475 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16476 (HOST_WIDEST_FAST_INT): Remove __int64 case.
16477 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16478 for dst_q_src_df_rms_cdt.
16479 * configure: Regenerate.
16480 * config.in: Likewise.
16482 2014-05-26 Michael Tautschnig <mt@debian.org>
16485 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16486 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16488 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16490 PR rtl-optimization/61278
16491 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16493 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16495 PR rtl-optimization/61220
16496 Part of PR rtl-optimization/61225
16497 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16498 insn; skip split_edge for a block with only one successor.
16500 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16502 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16505 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16507 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16508 (update_vtable_references): New function.
16509 (function_and_variable_visibility): Rewrite also vtable initializers.
16510 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16512 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16514 * ggc.h (ggc_grow): New function.
16515 * ggc-none.c (ggc_grow): New function.
16516 * ggc-page.c (ggc_grow): Likewise.
16518 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16520 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16521 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16522 comdat_can_be_unshared_p, cgraph_externally_visible_p,
16523 varpool_externally_visible_p, can_replace_by_local_alias,
16524 update_visibility_by_resolution_info, function_and_variable_visibility,
16525 pass_data_ipa_function_and_variable_visibility,
16526 make_pass_ipa_function_and_variable_visibility,
16527 whole_program_function_and_variable_visibility,
16528 pass_data_ipa_whole_program_visibility,
16529 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16530 * cgraph.h (cgraph_local_node_p): Declare.
16531 * ipa-visibility.c: New file.
16532 * Makefile.in (OBJS): Add ipa-visiblity.o
16534 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16536 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16537 that var decl is available.
16539 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16541 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16542 symtab_node pointer.
16543 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16544 (find_decls_types_r): Do not walk COMDAT_GROUP.
16545 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16546 * varasm.c (make_decl_one_only): Use set_comdat_group;
16547 create node if needed.
16548 * ipa-inline-transform.c (save_inline_function_body): Update
16549 way we decl->symtab mapping.
16550 * symtab.c (symtab_hash, hash_node, eq_node
16551 symtab_insert_node_to_hashtable): Remove.
16552 (symtab_register_node): Update.
16553 (symtab_unregister_node): Update.
16554 (symtab_get_node): Reimplement as inline function.
16555 (symtab_add_to_same_comdat_group): Update.
16556 (symtab_dissolve_same_comdat_group_list): Update.
16557 (dump_symtab_base): Update.
16558 (verify_symtab_base): Update.
16559 (symtab_make_decl_local): Update.
16560 (fixup_same_cpp_alias_visibility): Update.
16561 (symtab_nonoverwritable_alias): Update.
16562 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16563 * ipa.c (update_visibility_by_resolution_info): UPdate.
16564 * bb-reorder.c: Include cgraph.h
16565 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16566 with comdat groups.
16567 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16568 * cgraph.c (cgraph_get_create_node): Update.
16569 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16571 (symtab_get_node): Make inline.
16572 (symtab_insert_node_to_hashtable): Remove.
16573 (symtab_can_be_discarded): Update.
16574 (decl_comdat_group): New function.
16575 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16577 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16579 (read_comdat_group): New function.
16580 (input_node, input_varpool_node): Use it.
16581 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16583 * mips.c (mips_start_unique_function): Likewise.
16584 (ix86_code_end): Likewise.
16585 (rs6000_code_end): Likweise.
16586 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16588 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16590 * gengtype-state.c (fatal_reading_state): Bring offline.
16591 * optabs.c (widening_optab_handler): Bring offline.
16592 * optabs.h (widening_optab_handler): Likewise.
16593 * final.c (get_attr_length_1): Likewise.
16595 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16597 * sched-int.h (sd_iterator_cond): Manually tail recurse.
16599 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16601 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16602 (ppc440-compare): Include shift with dot.
16603 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16604 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16606 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16608 (e6500_sfx2): Include it.
16609 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16610 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16611 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16612 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16613 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16614 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16615 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16616 *lshiftrt_internal1le, *lshiftrt_internal1be,
16617 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16618 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16619 *rotldi3_internal10le, *rotldi3_internal10be,
16620 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16621 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16622 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16623 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16624 define_insns): Use type "shift" in the appropriate alternatives.
16626 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16628 * config/rs6000/rs6000.md (type): Add "logical". Delete
16630 (dot): Adjust comment.
16631 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16632 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16633 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16634 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16635 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16636 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16637 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16638 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16640 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16641 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16642 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16643 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16644 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16645 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16646 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16647 * config/rs6000/8540.md (ppc8540_su): Adjust.
16648 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16649 cell-cmp-microcoded): Adjust.
16650 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16651 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16652 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16653 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16654 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16655 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16656 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16657 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16658 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16660 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16661 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16662 Adjust. Adjust comment.
16663 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16664 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16666 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16668 * config/rs6000/rs6000.md (type): Add "add".
16669 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16670 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16671 define_insns): Use it.
16672 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16674 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16675 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16676 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16677 * config/rs6000/601.md (ppc601-integer): Adjust.
16678 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16679 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16680 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16681 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16682 * config/rs6000/8540.md (ppc8540_su): Adjust.
16683 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16684 cell-cmp-microcoded): Adjust.
16685 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16686 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16687 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16688 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16689 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16690 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16691 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16692 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16693 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16695 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16696 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16697 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16698 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16700 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16702 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16703 "delayed_compare", "var_delayed_compare".
16704 (var_shift): New attribute.
16705 (cell_micro): Adjust.
16706 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16707 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16708 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16709 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16710 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16711 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16712 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16713 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16714 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16715 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16716 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16717 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16718 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16719 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16720 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16721 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16722 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16723 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16724 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16725 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16726 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16727 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16728 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16729 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16730 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16732 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16733 * config/rs6000/440.md (ppc440-integer): Adjust.
16734 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16735 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16736 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16737 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16738 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16739 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16740 * config/rs6000/8540.md (ppc8540_su): Adjust.
16741 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16742 cell-cmp-microcoded): Adjust.
16743 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16744 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16745 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16746 e500mc64_delayed): Adjust.
16747 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16748 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16749 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16750 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16751 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16752 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16753 power6-delayed-compare, power6-var-delayed-compare): Adjust.
16754 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16755 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16757 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16758 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16760 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16762 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
16763 (bits): New mode_attr.
16764 (idiv_ldiv): Delete mode_attr.
16765 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16766 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16767 rs6000_adjust_priority, is_nonpipeline_insn,
16768 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16770 * config/rs6000/40x.md (ppc403-idiv): Adjust.
16771 * config/rs6000/440.md (ppc440-idiv): Adjust.
16772 * config/rs6000/476.md (ppc476-idiv): Adjust.
16773 * config/rs6000/601.md (ppc601-idiv): Adjust.
16774 * config/rs6000/603.md (ppc603-idiv): Adjust.
16775 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16776 ppc620-ldiv): Adjust.
16777 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16778 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16779 * config/rs6000/8540.md (ppc8540_divide): Adjust.
16780 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16781 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16782 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16783 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16784 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16785 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16786 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16787 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16788 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16789 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16790 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16791 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16792 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16793 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16794 * config/rs6000/titan.md (titan_fxu_div): Adjust.
16796 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16798 * config/rs6000/rs6000.md (type): Delete "insert_word",
16799 "insert_dword". Add "insert".
16800 (size): Update comment.
16801 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16802 insn_must_be_first_in_group): Adjust.
16803 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16804 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16805 *insvsi_internal6, insvdi_internal): Adjust.
16807 * config/rs6000/40x.md (ppc403-integer): Adjust.
16808 * config/rs6000/440.md (ppc440-integer): Adjust.
16809 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16810 * config/rs6000/601.md (ppc601-integer): Adjust.
16811 * config/rs6000/603.md (ppc603-integer): Adjust.
16812 * config/rs6000/6xx.md (ppc604-integer): Adjust.
16813 * config/rs6000/7450.md (ppc7450-integer): Adjust.
16814 * config/rs6000/7xx.md (ppc750-integer): Adjust.
16815 * config/rs6000/8540.md (ppc8540_su): Adjust.
16816 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16817 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16818 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16819 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16820 * config/rs6000/e5500.md (e5500_sfx): Adjust.
16821 * config/rs6000/e6500.md (e6500_sfx): Adjust.
16822 * config/rs6000/mpc.md (mpccore-integer): Adjust.
16823 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16824 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16825 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16826 * config/rs6000/power7.md (power7-integer): Adjust.
16827 * config/rs6000/power8.md (power8-1cyc): Adjust.
16828 * config/rs6000/rs64.md (rs64a-integer): Adjust.
16829 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16831 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16833 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
16834 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16835 (size): New attribute.
16836 (dot): New attribute.
16837 (cell_micro): Adjust.
16838 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16839 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16840 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16841 umuldi3_highpart): Adjust.
16842 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16843 rs6000_adjust_priority, is_nonpipeline_insn,
16844 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16846 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16847 ppc405-imul3): Adjust.
16848 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16849 * config/rs6000/476.md (ppc476-imul): Adjust.
16850 * config/rs6000/601.md (ppc601-imul): Adjust.
16851 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16852 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16853 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16854 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16855 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16857 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16858 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16859 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16860 cell-imul): Adjust.
16861 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16862 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16863 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16864 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16865 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16866 * config/rs6000/mpc.md (mpccore-imul): Adjust.
16867 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16868 power4-lmul, power4-imul, power4-imul3): Adjust.
16869 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16870 power5-lmul, power5-imul, power5-imul3): Adjust.
16871 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16872 power6-lmul, power6-imul, power6-imul3): Adjust.
16873 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16874 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16876 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16877 rs64a-lmul): Adjust.
16878 * config/rs6000/titan.md (titan_imul): Adjust.
16880 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16882 * config/rs6000/rs6000.md (type): Add new value "halfmul".
16883 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16884 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16885 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16886 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16887 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16888 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16889 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16890 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16891 * config/rs6000/titan.md: Delete nonsensical comment.
16892 (titan_imul): Add type imul3.
16893 (titan_mulhw): Remove type imul3; add type halfmul.
16895 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16897 * config/rs6000/rs6000.md (type): Reorder, reformat.
16899 2014-05-23 Martin Jambor <mjambor@suse.cz>
16901 PR tree-optimization/53787
16902 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16903 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16904 analysis_done, update all uses.
16905 * ipa-prop.c: Include domwalk.h
16906 (param_analysis_info): Removed.
16907 (param_aa_status): New type.
16908 (ipa_bb_info): Likewise.
16909 (func_body_info): Likewise.
16910 (ipa_get_bb_info): New function.
16911 (aa_overwalked): Likewise.
16912 (find_dominating_aa_status): Likewise.
16913 (parm_bb_aa_status_for_bb): Likewise.
16914 (parm_preserved_before_stmt_p): Changed to use new param AA info.
16915 (load_from_unmodified_param): Accept func_body_info as a parameter
16916 instead of parms_ainfo.
16917 (parm_ref_data_preserved_p): Changed to use new param AA info.
16918 (parm_ref_data_pass_through_p): Likewise.
16919 (ipa_load_from_parm_agg_1): Likewise. Update callers.
16920 (compute_complex_assign_jump_func): Changed to use new param AA info.
16921 (compute_complex_ancestor_jump_func): Likewise.
16922 (ipa_compute_jump_functions_for_edge): Likewise.
16923 (ipa_compute_jump_functions): Removed.
16924 (ipa_compute_jump_functions_for_bb): New function.
16925 (ipa_analyze_indirect_call_uses): Likewise, moved variable
16927 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16928 and info, moved variable declarations down.
16929 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16931 (ipa_analyze_stmt_uses): Likewise.
16932 (ipa_analyze_params_uses): Removed.
16933 (ipa_analyze_params_uses_in_bb): New function.
16934 (ipa_analyze_controlled_uses): Likewise.
16935 (free_ipa_bb_info): Likewise.
16936 (analysis_dom_walker): New class.
16937 (ipa_analyze_node): Handle node-specific forbidden analysis,
16938 initialize and free func_body_info, use dominator walker.
16939 (ipcp_modif_dom_walker): New class.
16940 (ipcp_transform_function): Create and free func_body_info, use
16941 ipcp_modif_dom_walker, moved a lot of functionality there.
16943 2014-05-23 Marek Polacek <polacek@redhat.com>
16944 Jakub Jelinek <jakub@redhat.com>
16946 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16947 * gcc.c (sanitize_spec_function): Likewise.
16948 * convert.c (convert_to_integer): Include "ubsan.h". Add
16949 floating-point to integer instrumentation.
16950 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16951 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16952 SANITIZE_NONDEFAULT.
16953 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16954 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16955 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16956 * ubsan.c: Include "realmpfr.h" and "dfp.h".
16957 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16958 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16959 float/double/long double.
16960 (ubsan_instrument_float_cast): New function.
16961 * ubsan.h (ubsan_instrument_float_cast): Declare.
16963 2014-05-23 Jiong Wang <jiong.wang@arm.com>
16965 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16967 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
16968 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16969 Adjust for tailcalling through registers.
16970 * config/aarch64/aarch64.h (enum reg_class): New caller save
16972 (REG_CLASS_NAMES): Likewise.
16973 (REG_CLASS_CONTENTS): Likewise.
16974 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16975 Allow tailcalling without decls.
16977 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16979 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16980 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16982 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16983 gsi, and variables v_* to v*.
16985 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
16987 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16989 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16991 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16992 * omp-low.c: Update accordingly.
16994 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16995 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16996 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16997 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16998 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16999 GF_OMP_TARGET_KIND_UPDATE.
17001 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17002 Explicitly enumerate the expected region types.
17004 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
17007 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
17008 documentation; the old documentation didn't clearly state the
17009 constraints on the contents of the pointed-to storage.
17011 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17013 Fix bootstrap error on ia64
17014 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17015 Return default value.
17017 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
17019 PR tree-optimization/54733
17020 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17022 (find_bswap_or_nop_load): New.
17023 (find_bswap_1): Renamed to ...
17024 (find_bswap_or_nop_1): This. Also add support for memory source.
17025 (find_bswap): Renamed to ...
17026 (find_bswap_or_nop): This. Also add support for memory source and
17027 detection of bitwise operations equivalent to load in target
17029 (execute_optimize_bswap): Likewise. Also move its leading comment back
17030 in place and split statement transformation into ...
17031 (bswap_replace): This.
17033 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17035 PR rtl-optimization/61215
17036 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17037 simplify_gen_subreg until final substitution.
17039 2014-05-23 Alan Modra <amodra@gmail.com>
17042 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17043 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17044 Use "Y" constraint rather than "m".
17046 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17048 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17050 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17051 New function declaration.
17052 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17053 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17054 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17055 (aarch64_init_builtins) : Initialize builtins
17056 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17057 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17058 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17059 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17060 and __builtins_aarch64_set_fpsr.
17061 (aarch64_atomic_assign_expand_fenv): New function.
17062 * config/aarch64/aarch64.md (set_fpcr): New pattern.
17063 (get_fpcr) : Likewise.
17064 (set_fpsr) : Likewise.
17065 (get_fpsr) : Likewise.
17066 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17067 and UNSPECV_SET_FPSR.
17068 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17069 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17070 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17072 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17074 PR rtl-optimization/60969
17075 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17076 constraints. Set up mem cost for NO_REGS case.
17078 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
17080 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17082 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
17084 * config/darwin.c: Include "lto-section-names.h".
17085 (LTO_SEGMENT_NAME): Don't define.
17086 * config/i386/winnt.c: Include "lto-section-names.h".
17087 * lto-streamer.c: Include "lto-section-names.h".
17088 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17089 * lto-wrapper.c: Include "lto-section-names.h".
17090 (LTO_SECTION_NAME_PREFIX): Don't define.
17091 * lto-section-names.h: New file.
17092 * cgraphunit.c: Include "lto-section-names.h".
17094 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
17096 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17098 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
17101 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17103 2014-05-22 Nick Clifton <nickc@redhat.com>
17105 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17107 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
17109 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17110 -> (T)A transformation to integer types.
17112 2014-05-22 Teresa Johnson <tejohnson@google.com>
17114 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17115 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17116 (gcov_rewrite): Use gcov_nonruntime_assert.
17117 (gcov_open): Ditto.
17118 (gcov_write_words): Ditto.
17119 (gcov_write_length): Ditto.
17120 (gcov_read_words): Use gcov_nonruntime_assert, and remove
17121 gcc_assert from IN_LIBGCOV code.
17122 (gcov_read_summary): Use gcov_error to flag profile corruption.
17123 (gcov_sync): Use gcov_nonruntime_assert.
17124 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17125 (gcov_histo_index): Use gcov_nonruntime_assert.
17126 (static void gcov_histogram_merge): Ditto.
17127 (compute_working_sets): Ditto.
17128 * gcov-io.h (gcov_nonruntime_assert): Define.
17129 (gcov_error): Define for !IN_LIBGCOV
17131 2014-05-22 Richard Biener <rguenther@suse.de>
17133 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17134 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17135 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17136 and deallocation site.
17137 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17138 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17139 passing through the incoming points-to set.
17140 (handle_lhs_call): Use flags argument instead of recomputing it.
17141 (find_func_aliases_for_call): Call handle_lhs_call with proper
17144 2014-05-22 Jakub Jelinek <jakub@redhat.com>
17146 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17147 all padding bits in REAL_VALUE_TYPE are cleared.
17149 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17151 Cleanup and improve multipass_dfa_lookahead_guard
17152 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17153 (core2i7_first_cycle_multipass_begin,)
17154 (core2i7_first_cycle_multipass_issue,)
17155 (core2i7_first_cycle_multipass_backtrack): Update signature.
17156 * config/ia64/ia64.c
17157 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17158 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17159 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17161 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17162 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
17164 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17166 * doc/tm.texi: Regenerate.
17168 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17169 * haifa-sched.c (ready_try): Make signed to allow negative values.
17170 (rebug_ready_list_1): Update.
17171 (choose_ready): Simplify.
17172 (sched_extend_ready_list): Update.
17174 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17176 Remove IA64 speculation tweaking flags
17177 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17178 speculation tuning flags.
17179 (msched-prefer-non-data-spec-insns,)
17180 (msched-prefer-non-control-spec-insns): Obsolete options.
17181 * haifa-sched.c (choose_ready): Remove handling of
17182 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17183 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17184 and PREFER_NON_DATA_SPEC.
17185 * sel-sched.c (process_spec_exprs): Remove handling of
17186 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17188 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17190 Improve scheduling debug output
17191 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17192 (advance_one_cycle): Update.
17193 (schedule_insn, queue_to_ready): Add debug printouts.
17194 (debug_ready_list_1): New static function.
17195 (debug_ready_list): Update.
17196 (max_issue): Add debug printouts.
17197 (dump_insn_stream): New static function.
17198 (schedule_block): Use it. Also better indent printouts.
17200 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17202 Fix sched_insn debug counter
17203 * haifa-sched.c (schedule_insn): Update.
17204 (struct haifa_saved_data): Add nonscheduled_insns_begin.
17205 (save_backtrack_point, restore_backtrack_point): Update.
17206 (first_nonscheduled_insn): New static function.
17207 (queue_to_ready, choose_ready): Use it.
17208 (schedule_block): Init nonscheduled_insns_begin.
17209 (sched_emit_insn): Update.
17212 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17214 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17216 (aarch64_secondary_reload) : LikeWise.
17217 (aarch64_class_max_nregs) : Remove CORE_REGS.
17218 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17219 (REG_CLASS_NAMES) : Likewise.
17220 (REG_CLASS_CONTENTS) : LikeWise.
17221 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17223 2014-05-21 Guozhi Wei <carrot@google.com>
17226 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17228 (vqdmulhq_n_s16): Likewise.
17230 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17232 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17234 2014-05-21 Marek Polacek <polacek@redhat.com>
17237 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17239 2014-05-21 Martin Jambor <mjambor@suse.cz>
17241 * doc/invoke.texi (Optimize Options): Document parameters
17242 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
17243 ipa-cp-array-index-hint-bonus.
17245 2014-05-21 Mark Wielaard <mjw@redhat.com>
17248 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
17249 version >= 3 or not strict DWARF.
17250 * langhooks.h (struct lang_hooks_for_types): Add
17251 enum_underlying_base_type.
17252 * langhooks.c (lhd_enum_underlying_base_type): New function.
17253 * gcc/langhooks.h (struct lang_hooks_for_types): Add
17254 enum_underlying_base_type.
17255 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
17256 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
17257 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
17259 2014-05-21 Richard Biener <rguenther@suse.de>
17261 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
17263 2014-05-21 John Marino <gnugcc@marino.st>
17265 * config.gcc (*-*-dragonfly*): New target.
17266 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
17267 * configure: Regenerate.
17268 * config/dragonfly-stdint.h: New.
17269 * config/dragonfly.h: New.
17270 * config/dragonfly.opt: New.
17271 * config/i386/dragonfly.h: New.
17272 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
17274 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17276 * tree.def (VOID_CST): New.
17277 * tree-core.h (TI_VOID): New.
17278 * tree.h (void_node): New.
17279 * tree.c (tree_node_structure_for_code, tree_code_size)
17280 (iterative_hash_expr): Handle VOID_CST.
17281 (build_common_tree_nodes): Initialize void_node.
17283 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
17285 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
17287 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
17289 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
17292 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
17293 flag_reorder_blocks_and_partition.
17294 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
17296 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17299 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
17301 (*addc_r_t): Add new insn_and_split.
17303 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17305 PR middle-end/61252
17306 * omp-low.c (handle_simd_reference): New function.
17307 (lower_rec_input_clauses): Use it. Defer adding reference
17308 initialization even for reduction without placeholder if in simd,
17309 handle it properly later on.
17311 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17313 PR tree-optimization/60899
17314 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17315 assume all static symbols will have definition wile parsing and
17316 check the do have definition later in compilation; check that
17317 variable referring symbol will be output before concluding that
17318 reference is safe; be conservative for referring local statics;
17319 be more precise about when comdat is output in other partition.
17321 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17324 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17326 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17327 (ipa_inline): Loop inline_to_all_callers until no more aliases
17330 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17332 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17333 set writeonly flag only for vars actually written to.
17335 2014-05-20 Dehao Chen <dehao@google.com>
17337 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17338 and callee count to get clone count.
17339 * tree-inline.c (expand_call_inline): Use callee count instead of bb
17340 count in copy_body.
17342 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
17344 PR rtl-optimization/61243
17345 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17347 2014-05-20 Xinliang David Li <davidxl@google.com>
17349 * cgraphunit.c (walk_polymorphic_call_targets): Add
17350 dbgcnt and fopt-info support.
17351 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17352 * ipa-devirt.c (ipa_devirt): Ditto.
17353 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17354 * ipa.c (walk_polymorphic_call_targets): Ditto.
17355 * gimple-fold.c (fold_gimple_assign): Ditto.
17356 (gimple_fold_call): Ditto.
17357 * dbgcnt.def: New counter.
17359 2014-05-20 DJ Delorie <dj@redhat.com>
17361 * config/msp430/msp430.md (split): Don't allow subregs when
17362 splitting SImode adds.
17363 (andneghi): Fix subtraction logic.
17364 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
17366 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17368 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
17370 * except.c (switch_to_exception_section, resolve_unique_section,
17371 get_named_text_section, default_function_rodata_section,
17372 align_variable, get_block_for_decl, default_section_type_flags):
17373 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17374 * symtab.c (symtab_add_to_same_comdat_group,
17375 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
17376 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
17378 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
17379 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
17380 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17381 (c6x_function_in_section_p): Likewise.
17382 * config/darwin.c (machopic_select_section): Likewise.
17383 * config/arm/arm.c (arm_function_in_section_p): Likewise.
17384 * config/mips/mips.c (mips_function_rodata_section): Likewise.
17385 * config/mep/mep.c (mep_select_section): LIkewise.
17386 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17388 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
17390 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
17391 EH region of calls to pure functions that can throw an exception.
17392 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
17393 (copy_reference_ops_from_call): Also copy the EH region of the call if
17394 it can throw an exception.
17396 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17398 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
17399 nested VEC_SELECTs that are inverses of each other.
17401 2014-05-20 Richard Biener <rguenther@suse.de>
17403 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
17404 (extract_and_process_scc_for_name): not here.
17405 (cond_dom_walker::before_dom_children): Only process
17406 stmts that end the BB in interesting ways.
17407 (run_scc_vn): Mark param uses as visited.
17409 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17411 * config/arm/arm.md (arith_shiftsi): Do not predicate for
17414 2014-05-20 Nick Clifton <nickc@redhat.com>
17416 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17417 (msp430_gimplify_va_arg_expr): New function.
17418 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17420 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17421 operand 0 in order to prevent confusion about the number of
17422 registers involved.
17424 2014-05-20 Richard Biener <rguenther@suse.de>
17426 PR tree-optimization/61221
17427 * tree-ssa-pre.c (el_to_update): Remove.
17428 (eliminate_dom_walker::before_dom_children): Handle released
17429 VDEFs by value-numbering them to the associated VUSE. Update
17430 stmt immediately for substituted call address.
17431 (eliminate): Remove delayed stmt updating code.
17432 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17433 possibly late re-numbered vuses.
17434 (vn_reference_lookup_2): Adjust.
17435 (vn_reference_lookup_pieces): Likewise.
17436 (vn_reference_lookup): Likewise.
17438 2014-05-20 Richard Biener <rguenther@suse.de>
17440 * config.gcc: Remove need_64bit_hwint.
17441 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17442 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17444 * config.in: Regenerate.
17445 * configure: Likewise.
17447 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
17449 * doc/extend.texi: Create Label Attributes section,
17450 move all label attributes into it and reference it.
17452 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
17454 * arm.c (thumb1_reorg): When scanning backwards skip anything
17455 that's not a proper insn.
17457 2014-05-19 Richard Biener <rguenther@suse.de>
17459 PR tree-optimization/61221
17460 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17461 Do nothing for unreachable blocks.
17462 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17463 Improve unreachability detection.
17465 2014-05-19 Richard Biener <rguenther@suse.de>
17467 PR tree-optimization/61209
17468 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17470 2014-05-19 Nick Clifton <nickc@redhat.com>
17472 * except.c (init_eh): Fix computation of builtin setjmp buffer
17473 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17475 2014-05-19 Richard Biener <rguenther@suse.de>
17477 PR tree-optimization/61184
17478 * tree-vrp.c (is_negative_overflow_infinity): Use
17479 TREE_OVERFLOW_P and do that check first.
17480 (is_positive_overflow_infinity): Likewise.
17481 (is_overflow_infinity): Likewise.
17482 (vrp_operand_equal_p): Properly treat operands with
17483 differing overflow as not equal.
17485 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
17487 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17488 shift simplification where it was intended.
17490 2014-05-19 Christian Bruel <christian.bruel@st.com>
17493 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17495 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
17498 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17501 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17503 * reg-notes.def (CROSSING_JUMP): Likewise.
17504 * rtl.h (rtx_def): Update comment for jump flag.
17505 (CROSSING_JUMP_P): Define.
17506 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17507 of a REG_CROSSING_JUMP note.
17508 * cfghooks.c (tidy_fallthru_edges): Likewise.
17509 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17510 * emit-rtl.c (try_split): Likewise.
17511 * haifa-sched.c (sched_create_recovery_edges): Likewise.
17512 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17513 * jump.c (redirect_jump_2): Likewise.
17514 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17515 (relax_delay_slots): Likewise.
17516 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17517 (bbit_di): Likewise.
17518 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17519 * config/sh/sh.md (jump_compact): Likewise.
17520 * bb-reorder.c (rotate_loop): Likewise.
17521 (pass_duplicate_computed_gotos::execute): Likewise.
17522 (add_reg_crossing_jump_notes): Rename to...
17523 (update_crossing_jump_flags): ...this.
17524 (pass_partition_blocks::execute): Update accordingly.
17526 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17528 * tree.h: Remove extraneous template <>.
17530 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17532 * ipa.c (symtab_remove_unreachable_nodes): Remove
17533 symbol from comdat group if its body was eliminated.
17534 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17535 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17536 (symtab_unregister_node): ... this one.
17537 (verify_symtab_base): More strict checking of comdats.
17538 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17540 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17542 * tree-pass.h (make_pass_ipa_comdats): New pass.
17543 * timevar.def (TV_IPA_COMDATS): New timevar.
17544 * passes.def (pass_ipa_comdats): Add.
17545 * Makefile.in (OBJS): Add ipa-comdats.o
17546 * ipa-comdats.c: New file.
17548 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17550 * ipa.c (update_visibility_by_resolution_info): New function.
17551 (function_and_variable_visibility): Use it.
17553 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17555 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17557 (FOR_EACH_DEFINED_SYMBOL): New macro.
17558 (varpool_first_static_initializer, varpool_next_static_initializer,
17559 varpool_first_defined_variable, varpool_next_defined_variable):
17561 (symtab_in_same_comdat_p): Correctly deal with inline functions.
17563 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17565 * ggc-page.c (ggc_handle_finalizers): Add comment.
17567 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17569 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17570 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17571 (ggc_internal_cleared_alloc): Likewise.
17572 * ggc-page.c (finalizer): New class.
17573 (vec_finalizer): Likewise.
17574 (globals::finalizers): New member.
17575 (globals::vec_finalizers): Likewise.
17576 (ggc_internal_alloc): Record the finalizer if any for the block being
17578 (ggc_handle_finalizers): New function.
17579 (ggc_collect): Call ggc_handle_finalizers.
17580 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17582 (ggc_internal_cleared_alloc): Likewise.
17583 (finalize): New function.
17584 (need_finalization_p): Likewise.
17585 (ggc_alloc): Install the type's destructor as the finalizer if it
17586 might do something.
17587 (ggc_cleared_alloc): Likewise.
17588 (ggc_vec_alloc): Likewise.
17589 (ggc_cleared_vec_alloc): Likewise.
17591 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17593 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17595 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17597 * alias.c (record_alias_subset): Adjust.
17598 * bitmap.c (bitmap_element_allocate): Likewise.
17599 (bitmap_gc_alloc_stat): Likewise.
17600 * cfg.c (init_flow): Likewise.
17601 (alloc_block): Likewise.
17602 (unchecked_make_edge): Likewise.
17603 * cfgloop.c (alloc_loop): Likewise.
17604 (flow_loops_find): Likewise.
17605 (rescan_loop_exit): Likewise.
17606 * cfgrtl.c (init_rtl_bb_info): Likewise.
17607 * cgraph.c (insert_new_cgraph_node_version): Likewise.
17608 (cgraph_allocate_node): Likewise.
17609 (cgraph_create_edge_1): Likewise.
17610 (cgraph_allocate_init_indirect_info): Likewise.
17611 * cgraphclones.c (cgraph_clone_edge): Likewise.
17612 * cgraphunit.c (add_asm_node): Likewise.
17613 (init_lowered_empty_function): Likewise.
17614 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17615 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17616 (alpha_use_linkage): Likewise.
17617 * config/arc/arc.c (arc_init_machine_status): Likewise.
17618 * config/arm/arm.c (arm_init_machine_status): Likewise.
17619 * config/avr/avr.c (avr_init_machine_status): Likewise.
17620 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17621 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17622 * config/cris/cris.c (cris_init_machine_status): Likewise.
17623 * config/darwin.c (machopic_indirection_name): Likewise.
17624 (darwin_build_constant_cfstring): Likewise.
17625 (darwin_enter_string_into_cfstring_table): Likewise.
17626 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17627 * config/frv/frv.c (frv_init_machine_status): Likewise.
17628 * config/i386/i386.c (get_dllimport_decl): Likewise.
17629 (ix86_init_machine_status): Likewise.
17630 (assign_386_stack_local): Likewise.
17631 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17632 (i386_pe_maybe_record_exported_symbol): Likewise.
17633 (i386_pe_record_stub): Likewise.
17634 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17635 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17636 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17637 (m32c_note_pragma_address): Likewise.
17638 * config/mep/mep.c (mep_init_machine_status): Likewise.
17639 (mep_note_pragma_flag): Likewise.
17640 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17641 (mips16_local_alias): Likewise.
17642 (mips_init_machine_status): Likewise.
17643 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17644 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17645 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17646 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17647 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17648 * config/pa/pa.c (pa_init_machine_status): Likewise.
17649 (pa_get_deferred_plabel): Likewise.
17650 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17651 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17652 (rs6000_init_machine_status): Likewise.
17653 (output_toc): Likewise.
17654 * config/s390/s390.c (s390_init_machine_status): Likewise.
17655 * config/score/score.c (score_output_external): Likewise.
17656 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17657 * config/spu/spu.c (spu_init_machine_status): Likewise.
17658 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17659 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17660 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17661 * coverage.c (coverage_end_function): Likewise.
17662 * dbxout.c (dbxout_init): Likewise.
17663 * doc/gty.texi: Don't mention variable_size attribute.
17664 * dwarf2cfi.c (new_cfi): Adjust.
17665 (new_cfi_row): Likewise.
17666 (copy_cfi_row): Likewise.
17667 (create_cie_data): Likewise.
17668 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17669 (new_loc_descr): Likewise.
17670 (find_AT_string_in_table): Likewise.
17671 (add_addr_table_entry): Likewise.
17672 (new_die): Likewise.
17673 (add_var_loc_to_decl): Likewise.
17674 (clone_die): Likewise.
17675 (clone_as_declaration): Likewise.
17676 (break_out_comdat_types): Likewise.
17677 (new_loc_list): Likewise.
17678 (add_loc_descr_to_each): Likewise.
17679 (add_location_or_const_value_attribute): Likewise.
17680 (add_linkage_name): Likewise.
17681 (lookup_filename): Likewise.
17682 (dwarf2out_var_location): Likewise.
17683 (new_line_info_table): Likewise.
17684 (dwarf2out_init): Likewise.
17685 (mem_loc_descriptor): Likewise.
17686 (loc_descriptor): Likewise.
17687 (add_const_value_attribute): Likewise.
17688 (tree_add_const_value_attribute): Likewise.
17689 (comp_dir_string): Likewise.
17690 (dwarf2out_vms_debug_main_pointer): Likewise.
17691 (string_cst_pool_decl): Likewise.
17692 * emit-rtl.c (set_mem_attrs): Likewise.
17693 (get_reg_attrs): Likewise.
17694 (start_sequence): Likewise.
17695 (init_emit): Likewise.
17696 (init_emit_regs): Likewise.
17697 * except.c (init_eh_for_function): Likewise.
17698 (gen_eh_region): Likewise.
17699 (gen_eh_region_catch): Likewise.
17700 (gen_eh_landing_pad): Likewise.
17701 (add_call_site): Likewise.
17702 * function.c (add_frame_space): Likewise.
17703 (insert_temp_slot_address): Likewise.
17704 (assign_stack_temp_for_type): Likewise.
17705 (get_hard_reg_initial_val): Likewise.
17706 (allocate_struct_function): Likewise.
17707 (prepare_function_start): Likewise.
17708 (types_used_by_var_decl_insert): Likewise.
17709 * gengtype.c (variable_size_p): Remove function.
17710 (enum alloc_quantity): Remove enum.
17711 (write_typed_alloc_def): Remove function.
17712 (write_typed_struct_alloc_def): Likewise.
17713 (write_typed_typedef_alloc_def): Likewise.
17714 (write_typed_alloc_defns): Likewise.
17716 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17717 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17718 * ggc.h (ggc_alloc): new function.
17719 (ggc_cleared_alloc): Likewise.
17720 (ggc_vec_alloc): Template on type of vector element, and remove
17721 element size argument.
17722 (ggc_cleared_vec_alloc): Likewise.
17723 * gimple.c (gimple_build_omp_for): Adjust.
17724 (gimple_copy): Likewise.
17725 * ipa-cp.c (get_replacement_map): Likewise.
17726 (find_aggregate_values_for_callers_subset): Likewise.
17727 (known_aggs_to_agg_replacement_list): Likewise.
17728 * ipa-devirt.c (get_odr_type): Likewise.
17729 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17730 (read_agg_replacement_chain): Likewise.
17731 * loop-iv.c (get_simple_loop_desc): Likewise.
17732 * lto-cgraph.c (input_node_opt_summary): Likewise.
17733 * lto-section-in.c (lto_new_in_decl_state): Likewise.
17734 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17735 (input_eh_region): Likewise.
17736 (input_eh_lp): Likewise.
17737 (input_cfg): Likewise.
17738 * optabs.c (set_optab_libfunc): Likewise.
17739 (init_tree_optimization_optabs): Likewise.
17740 (set_conv_libfunc): Likewise.
17741 * passes.c (do_per_function_toporder): Likewise.
17742 * rtl.h: Don't use variable_size gty attribute.
17743 * sese.c (if_region_set_false_region): Adjust.
17744 * stringpool.c (gt_pch_save_stringpool): Likewise.
17745 * target-globals.c (save_target_globals): Likewise.
17746 * toplev.c (general_init): Likewise.
17747 * trans-mem.c (record_tm_replacement): Likewise.
17748 (split_bb_make_tm_edge): Likewise.
17749 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17750 * tree-data-ref.h (lambda_vector_new): Likewise.
17751 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17752 * tree-iterator.c (tsi_link_before): Likewise.
17753 (tsi_link_after): Likewise.
17754 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17755 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17756 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17757 * tree-ssa-operands.h: Don't use variable_size gty attribute.
17758 * tree-ssa.c (init_tree_ssa): Adjust.
17759 * tree-ssanames.c (set_range_info): Likewise.
17760 (get_ptr_info): Likewise.
17761 (duplicate_ssa_name_ptr_info): Likewise.
17762 (duplicate_ssa_name_range_info): Likewise.
17763 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17764 (unpack_ts_fixed_cst_value_fields): Likewise.
17765 * tree.c (build_fixed): Likewise.
17766 (build_real): Likewise.
17767 (build_string): Likewise.
17768 (decl_priority_info): Likewise.
17769 (decl_debug_expr_insert): Likewise.
17770 (decl_value_expr_insert): Likewise.
17771 (decl_debug_args_insert): Likewise.
17772 (type_hash_add): Likewise.
17773 (build_omp_clause): Likewise.
17774 * ubsan.c (decl_for_type_insert): Likewise.
17775 * varasm.c (get_unnamed_section): Likewise.
17776 (get_noswitch_section): Likewise.
17777 (get_section): Likewise.
17778 (get_block_for_section): Likewise.
17779 (create_block_symbol): Likewise.
17780 (build_constant_desc): Likewise.
17781 (create_constant_pool): Likewise.
17782 (force_const_mem): Likewise.
17783 (record_tm_clone_pair): Likewise.
17784 * varpool.c (varpool_create_empty_node): Likewise.
17786 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17788 * dwarf2out.c (tree_add_const_value_attribute): Call
17789 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17790 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17791 instead of ggc_internal_<x>alloc_stat.
17792 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17793 (ggc_realloc): Likewise.
17794 * ggc-none.c (ggc_internal_alloc): Likewise.
17795 (ggc_internal_cleared_alloc): Likewise.
17796 * ggc-page.c: Likewise.
17797 * ggc.h (ggc_internal_alloc_stat): Likewise.
17798 (ggc_internal_alloc): Remove macro.
17799 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17800 (ggc_internal_cleared_alloc): Remove macro.
17801 (GGC_RESIZEVEC): Adjust.
17802 (ggc_resizevar): Remove macro.
17803 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17804 (ggc_internal_cleared_vec_alloc_stat): Likewise.
17805 (ggc_internal_vec_cleared_alloc): Remove macro.
17806 (ggc_alloc_atomic_stat): Drop _stat suffix.
17807 (ggc_alloc_atomic): Remove macro.
17808 (ggc_alloc_cleared_atomic): Remove macro.
17809 (ggc_alloc_string_stat): Drop _stat suffix.
17810 (ggc_alloc_string): Remove macro.
17811 (ggc_alloc_rtx_def_stat): Adjust.
17812 (ggc_alloc_tree_node_stat): Likewise.
17813 (ggc_alloc_cleared_tree_node_stat): Likewise.
17814 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17815 (ggc_alloc_cleared_simd_clone_stat): Likewise.
17816 * gimple.c (gimple_build_omp_for): Likewise.
17817 (gimple_copy): Likewise.
17818 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17819 * toplev.c (realloc_for_line_map): Adjust.
17820 * tree-data-ref.h (lambda_vector_new): Likewise.
17821 * tree-phinodes.c (allocate_phi_node): Likewise.
17822 * tree.c (grow_tree_vec_stat): Likewise.
17823 * vec.h (va_gc::reserve): Adjust.
17825 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
17827 * config/microblaze/microblaze.c (break_handler): New Declaration.
17828 (microblaze_break_function_p,microblaze_is_break_handler): New.
17829 (compute_frame_size): Use microblaze_break_function_p.
17830 Add the test of break_handler.
17831 (microblaze_function_prologue) : Add the test of variable
17832 break_handler. Check the fnname by BREAK_HANDLER_NAME.
17833 (microblaze_function_epilogue) : Add the test of break_handler.
17834 (microblaze_globalize_label) : Add the test of break_handler.
17835 Check the name by BREAK_HANDLER_NAME.
17837 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17839 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17840 microblaze_is_break_handler test.
17841 (call_internal1,call_value_intern): Use microblaze_break_function_p.
17842 Use SYMBOL_REF_DECL.
17844 * config/microblaze/microblaze-protos.h
17845 (microblaze_break_function_p,microblaze_is_break_handler):
17848 * doc/extend.texi (MicroBlaze break_handler Functions): Document
17849 new MicroBlaze break_handler functions.
17851 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17853 * doc/extend.texi (Size of an asm): Move node text according
17854 to its @menu entry position.
17856 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
17858 PR tree-optimization/61140
17859 PR tree-optimization/61150
17860 PR tree-optimization/61197
17861 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17863 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17865 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
17867 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
17869 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17870 __SIZEOF_INT128__ is defined.
17872 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17874 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17875 (rs6000_delegitimize_address): Use it.
17877 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17879 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17880 inplace argument. Store the new address in the original MEM when true.
17881 * emit-rtl.c (change_address_1): Likewise.
17882 (adjust_address_1, adjust_automodify_address_1, offset_address):
17883 Update accordingly.
17884 * rtl.h (plus_constant): Add an inplace argument.
17885 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
17886 when true. Avoid generating (plus X (const_int 0)).
17887 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17888 in-place. Pass true to plus_constant.
17889 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17891 2014-05-16 Dehao Chen <dehao@google.com>
17893 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17895 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17898 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17900 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17902 2014-05-16 Dehao Chen <dehao@google.com>
17904 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17905 optimize_function_for_size_p.
17906 * regs.h (REG_FREQ_FROM_BB): Likewise.
17908 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17911 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17912 negt_reg_operand cases.
17913 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17915 * config/sh/predicates.md (cbranch_treg_value): Simplify.
17917 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17919 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17922 2014-05-16 David Malcolm <dmalcolm@redhat.com>
17925 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17927 * tree-cfg.c (dump_function_to_file): Dump the return type of
17928 functions, in a line to itself before the function body, mimicking
17929 the layout of a C function.
17931 2014-05-16 Dehao Chen <dehao@google.com>
17933 * cfghooks.c (make_forwarder_block): Use direct computation to
17934 get fall-through edge's count and frequency.
17936 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
17938 * config/arc/arc.c (arc_init): Fix typo in error message.
17939 * config/i386/i386.c (ix86_expand_builtin): Likewise.
17940 (split_stack_prologue_scratch_regno): Likewise.
17941 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17942 word from error message.
17944 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17946 * ira-costs.c: Fix typo in comment.
17948 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
17950 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17952 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
17954 * varpool.c (dump_varpool_node): Dump write-only flag.
17955 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17957 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17958 write-only variables.
17959 * ipa.c (process_references): New function.
17960 (set_readonly_bit): New function.
17961 (set_writeonly_bit): New function.
17962 (clear_addressable_bit): New function.
17963 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17964 fix handling of aliases.
17965 * cgraph.h (struct varpool_node): Add writeonly flag.
17967 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
17969 PR rtl-optimization/60969
17970 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17971 Calculate costs for this case.
17973 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
17975 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17976 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17978 2014-05-16 Richard Biener <rguenther@suse.de>
17980 PR tree-optimization/61194
17981 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17982 bool patterns ending in a COND_EXPR.
17984 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17986 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17988 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17991 where we were unable to cost an RTX.
17993 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17995 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17999 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18001 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18004 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18007 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18009 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18010 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18012 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18015 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18016 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18018 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18021 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18022 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18024 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18025 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18027 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18028 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18031 rotates and shifts.
18033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18034 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18037 ZERO_EXTEND and SIGN_EXTEND better.
18039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18040 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18042 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18043 logical operations.
18045 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18046 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18048 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18049 costs when costing loads and stores to memory.
18051 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18052 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
18054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18057 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18059 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18064 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18066 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18068 (aarch64_rtx_mult_cost): New.
18069 (aarch64_rtx_costs): Use it, refactor as appropriate.
18071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18074 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18075 emit instructions, return number of instructions which would
18077 (aarch64_add_constant): Update call to aarch64_build_constant.
18078 (aarch64_output_mi_thunk): Likewise.
18079 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18082 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18084 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18085 (TARGET_RTX_COSTS): Call it.
18087 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18089 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18090 (cortexa57_vector_cost): Likewise.
18091 (cortexa57_tunings): Use them.
18093 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18095 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18096 (cpu_addrcost_table): Use it.
18097 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18098 (aarch64_address_cost): Rewrite using aarch64_classify_address,
18101 2014-05-16 Richard Biener <rguenther@suse.de>
18103 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18104 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18105 (visit_phi): Ignore edges marked as not executable.
18106 (class cond_dom_walker): New.
18107 (cond_dom_walker::before_dom_children): Value-number
18108 control statements and mark successor edges as not
18109 executable if possible.
18110 (run_scc_vn): First walk all control statements in
18111 dominator order, marking edges as not executable.
18112 * tree-inline.c (copy_edges_for_bb): Be not confused
18113 about random edge flags.
18115 2014-05-16 Richard Biener <rguenther@suse.de>
18117 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18119 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
18122 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18123 (__TM_simple_begin): Use it.
18124 (__TM_begin): Likewise.
18126 2014-05-15 Martin Jambor <mjambor@suse.cz>
18129 * ipa-prop.c (update_indirect_edges_after_inlining): Check
18130 type_preserved flag when the indirect edge is polymorphic.
18132 2014-05-15 Martin Jambor <mjambor@suse.cz>
18134 PR tree-optimization/61090
18135 * tree-sra.c (sra_modify_expr): Pass the current gsi to
18136 build_ref_for_model.
18138 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18140 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18141 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18143 2014-05-15 Jakub Jelinek <jakub@redhat.com>
18145 PR tree-optimization/61158
18146 * fold-const.c (fold_binary_loc): If X is zero-extended and
18147 shiftc >= prec, make sure zerobits is all ones instead of
18148 invoking undefined behavior.
18150 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18152 * regcprop.h: New file.
18153 * regcprop.c (skip_debug_insn_p): New decl.
18154 (replace_oldest_value_reg): Check skip_debug_insn_p.
18155 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18156 * shrink-wrap.c: Include regcprop.h.
18157 (prepare_shrink_wrap): Call
18158 copyprop_hardreg_forward_bb_without_debug_insn.
18160 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18162 * shrink-wrap.h: Update comment.
18163 * shrink-wrap.c: Update comment.
18164 (next_block_for_reg): Rename to live_edge_for_reg.
18165 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18166 (move_insn_for_shrink_wrap): Split live_edge.
18167 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18169 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18171 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18173 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18174 * config/sparc/sparc.md (fptype_ut699): New attribute.
18175 (in_branch_delay): Return false if -mfix-ut699 is specified and
18176 fptype_ut699 is set to single.
18177 (truncdfsf2): Add fptype_ut699 attribute.
18178 (fix_truncdfsi2): Likewise.
18179 (floatsisf2): Change fptype attribute.
18180 (fix_truncsfsi2): Likewise.
18181 (negtf2_notv9): Delete.
18182 (negtf2_v9): Likewise.
18183 (negtf2_hq): New instruction.
18184 (negtf2): New instruction and splitter.
18185 (negdf2_notv9): Rewrite.
18186 (abstf2_notv9): Delete.
18187 (abstf2_hq_v9): Likewise.
18188 (abstf2_v9): Likewise.
18189 (abstf2_hq): New instruction.
18190 (abstf2): New instruction and splitter.
18191 (absdf2_notv9): Rewrite.
18193 2014-05-14 Cary Coutant <ccoutant@google.com>
18196 * opts.c (common_handle_option): Don't special-case "-g".
18197 (set_debug_level): Default to at least level 2 with "-g".
18199 2014-05-14 DJ Delorie <dj@redhat.com>
18201 * config/msp430/msp430.c (msp430_builtin): Add
18202 MSP430_BUILTIN_DELAY_CYCLES.
18203 (msp430_init_builtins): Register void __delay_cycles(long long).
18204 (msp430_builtin_decl): Add it.
18205 (cg_magic_constant): New.
18206 (msp430_expand_delay_cycles): New.
18207 (msp430_expand_builtin): Call it.
18208 (msp430_print_operand_raw): Change integer printing from "int" to
18210 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18211 (delay_cycles_start): New.
18212 (delay_cycles_end): New.
18213 (delay_cycles_32): New.
18214 (delay_cycles_32x): New.
18215 (delay_cycles_16): New.
18216 (delay_cycles_16x): New.
18217 (delay_cycles_2): New.
18218 (delay_cycles_1): New.
18219 * doc/extend.texi: Document __delay_cycles().
18221 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
18223 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18224 length attribute computation.
18226 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
18229 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18231 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
18234 * config/sparc/sparc.md: Fix types of low and high in DI constant
18235 splitter. Use gen_int_mode in some other splitters.
18237 2014-05-14 Martin Jambor <mjambor@suse.cz>
18240 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
18242 2014-05-14 James Norris <jnorris@codesourcery.com>
18244 * omp-low.c (expand_parallel_call): Remove shadow variable.
18245 (expand_omp_taskreg): Likewise.
18247 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
18249 * common/config/i386/i386-common.c
18250 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
18251 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
18252 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
18253 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
18254 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
18255 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
18256 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
18257 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
18258 xsavecintrin.h, xsavesintrin.h.
18259 (x86_64-*-*): Ditto.
18260 * config/i386/clflushoptintrin.h: New.
18261 * config/i386/xsavecintrin.h: Ditto.
18262 * config/i386/xsavesintrin.h: Ditto.
18263 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
18264 (bit_XSAVES): Ditto.
18265 (bit_XSAVES): Ditto.
18266 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18267 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
18269 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18270 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
18271 OPTION_MASK_ISA_XSAVES.
18272 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
18273 -mxsavec, -mxsaves.
18274 (PTA_CLFLUSHOPT) Define.
18275 (PTA_XSAVEC): Ditto.
18276 (PTA_XSAVES): Ditto.
18277 (ix86_option_override_internal): Handle new options.
18278 (ix86_valid_target_attribute_inner_p): Ditto.
18279 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
18280 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
18281 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
18282 (bdesc_special_args): Add __builtin_ia32_xsaves,
18283 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
18284 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
18285 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
18286 (ix86_expand_builtin): Handle new builtins.
18287 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
18288 (TARGET_CLFLUSHOPT_P): Ditto.
18289 (TARGET_XSAVEC): Ditto.
18290 (TARGET_XSAVEC_P): Ditto.
18291 (TARGET_XSAVES): Ditto.
18292 (TARGET_XSAVES_P): Ditto.
18293 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
18294 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
18295 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
18297 (ANY_XRSTOR64): Ditto.
18299 (xrstor): Change into <xrstor>.
18300 (xrstor_rex64): Change into <xrstor>_rex64.
18301 (xrstor64): Change into <xrstor>64
18303 * config/i386/i386.opt (mclflushopt): New.
18306 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
18308 * doc/invoke.texi: Document new options.
18310 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
18312 PR rtl-optimization/60866
18313 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18314 Default it to -1. Pass it down to init_simplejump_data.
18315 (init_simplejump_data): New parameter old_seqno. Pass it down
18316 to get_seqno_for_a_jump.
18317 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
18318 initializing new jump seqno as a last resort. Add comment.
18319 (sel_redirect_edge_and_branch): Save old seqno of the conditional
18320 jump and pass it down to sel_init_new_insn.
18321 (sel_redirect_edge_and_branch_force): Likewise.
18323 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
18325 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18326 shifted values to avoid build warning.
18328 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18330 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18331 * cfgrtl.c (rtl_merge_blocks): Fix comment.
18332 (cfg_layout_merge_blocks): Likewise.
18333 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18335 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
18337 PR rtl-optimization/60901
18338 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18339 bb predecessor belongs to the same scheduling region. Adjust comment.
18341 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
18343 * doc/sourcebuild.texi: (dfp_hw): Document.
18344 (p8vector_hw): Likewise.
18345 (powerpc_eabi_ok): Likewise.
18346 (powerpc_elfv2): Likewise.
18347 (powerpc_htm_ok): Likewise.
18348 (ppc_recip_hw): Likewise.
18349 (vsx_hw): Likewise.
18351 2014-05-13 Cary Coutant <ccoutant@google.com>
18353 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18355 2014-05-13 David Malcolm <dmalcolm@redhat.com>
18357 * gengtype-parse.c (require3): Eliminate in favor of...
18359 (require_template_declaration): Update to support optional single *
18362 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
18363 (create_user_defined_type): Handle a single level of explicit
18364 pointerness within template arguments.
18365 (struct write_types_data): Add field "kind".
18366 (filter_type_name): Handle "*" character.
18367 (write_user_func_for_structure_ptr): Require a write_types_data
18368 rather than just a prefix string, so that we can look up the kind
18369 of the wtd and use it as an index into wrote_user_func_for_ptr,
18370 ensuring that such functions are written at most once. Support
18371 subclasses by invoking the marking function of the ultimate base class.
18372 (write_user_func_for_structure_body): Require a write_types_data
18373 rather than just a prefix string, so that we can pass this to
18374 write_user_func_for_structure_ptr.
18375 (write_func_for_structure): Likewise.
18376 (ggc_wtd): Add initializer of new "kind" field.
18377 (pch_wtd): Likewise.
18379 * gengtype.h (enum write_types_kinds): New.
18380 (struct type): Add field wrote_user_func_for_ptr to the "s"
18383 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
18385 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
18386 instead of const_binop.
18387 (fold_binary_loc): Likewise.
18389 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
18391 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
18392 calculation to match get_ref_base_and_extent.
18394 2014-05-13 Catherine Moore <clm@codesourcery.com>
18395 Sandra Loosemore <sandra@codesourcery.com>
18397 * configure.ac: Fix assembly for explicit JALR relocation check.
18398 * configure: Regenerate.
18400 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18402 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
18403 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
18404 Remove associated type declarations and initialisations.
18405 (arm_expand_neon_builtin): Likewise.
18406 (neon_emit_pair_result_insn): Delete.
18407 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
18408 * config/arm/neon.md (neon_vtrn<mode>): Delete.
18409 (neon_vzip<mode>): Likewise.
18410 (neon_vuzp<mode>): Likewise.
18412 2014-05-13 Richard Biener <rguenther@suse.de>
18415 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18416 it needs revisiting whether the call still may be tail-called.
18418 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18420 * rtl.def (SYMBOL_REF): Remove middle "0" field.
18421 * rtl.h (block_symbol): Reduce number of fields to 2.
18422 (rtx_def): Add u2.symbol_ref_flags.
18423 (SYMBOL_REF_FLAGS): Use it.
18424 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18425 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18426 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18427 Lower index of SYMBOL_REF_DATA.
18428 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18429 Print SYMBOL_REF_FLAGS at the same time.
18430 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18432 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18434 * rtl.def (VAR_LOCATION): Remove "i" field.
18435 * rtl.h (rtx_def): Add u2.var_location_status.
18436 (PAT_VAR_LOCATION_STATUS): Use it.
18437 (gen_rtx_VAR_LOCATION): Declare.
18438 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18439 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18440 * var-tracking.c (emit_note_insn_var_location): Remove casts.
18442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18444 * rtl.def (scratch): Fix outdated comment and remove "0" field.
18445 * gengtype.c (adjust_field_rtx_def): Update accordingly.
18447 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18449 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18450 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18451 * rtl.h (rtx_def): Add insn_uid to u2 field.
18452 (RTX_FLAG_CHECK8): Delete in favor of...
18453 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18454 (INSN_DELETED_P): Update accordingly.
18455 (INSN_UID): Use u2.insn_uid.
18456 (INSN_CHAIN_CODE_P): Define.
18457 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18458 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18459 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18460 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18461 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18462 indices accordingly.
18463 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18464 Update indices for insn-chain rtxes.
18465 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18466 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18467 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18468 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18469 * combine.c (try_combine): Likewise.
18470 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18472 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18474 * rtl.def (REG): Remove middle field.
18475 * rtl.h (rtx_def): Add orignal_regno to u2.
18476 (ORIGINAL_REGNO): Use it instead of field 1.
18477 (REG_ATTRS): Lower field index accordingly.
18478 * gengtype.c (adjust_field_rtx_def): Remove handling of
18479 ORIGINAL_REGNO. Move REG_ATTRS index down.
18480 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18481 code that prints the REGNO.
18483 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18485 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18488 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18490 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18492 2014-05-13 Bin Cheng <bin.cheng@arm.com>
18494 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18495 (alloc_iv): Lower base expressions containing ADDR_EXPR.
18497 2014-05-13 Ian Bolton <ian.bolton@arm.com>
18499 * config/aarch64/aarch64-protos.h
18500 (aarch64_hard_regno_caller_save_mode): New prototype.
18501 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18503 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18505 2014-05-13 Christian Bruel <christian.bruel@st.com>
18507 * target.def (mode_switching): New hook vector.
18508 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18509 (mode_exit, modepriority_to_mode): Likewise.
18510 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18511 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18512 * target.h: Include tm.h and hard-reg-set.h.
18513 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18514 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18515 * doc/tm.texi Regenerate.
18516 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18517 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18518 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18519 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18520 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18521 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18522 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18523 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18524 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18525 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18526 (ix86_emit_mode_set): Hookify.
18527 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18529 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18530 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18531 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18532 (epiphany_mode_priority_to_mode): Remove declaration.
18533 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18534 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18535 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18537 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
18538 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18539 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18541 2014-05-13 Jakub Jelinek <jakub@redhat.com>
18544 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18545 is const0_rtx, return immediately. Don't test count == 0 when
18548 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18550 * Makefile.in: add shrink-wrap.o.
18551 * config/i386/i386.c: include "shrink-wrap.h"
18552 * function.c: Likewise.
18553 (requires_stack_frame_p, next_block_for_reg,
18554 move_insn_for_shrink_wrap, prepare_shrink_wrap,
18555 dup_block_and_redirect): Move to shrink-wrap.c
18556 (thread_prologue_and_epilogue_insns): Extract three code segments
18557 as functions in shrink-wrap.c
18558 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18560 * shrink-wrap.c: New file.
18561 * shrink-wrap.h: New file.
18563 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18565 * doc/extend.texi: Reflect current numbers of pragmas. Remove
18566 reference to Solaris.
18568 2014-05-12 Mike Stump <mikestump@comcast.net>
18571 * genattrtab.c (filename): Add.
18572 (convert_set_attr_alternative): Improve error message.
18573 (check_defs): Restore read_md_filename for error messages.
18574 (gen_insn): Save filename.
18576 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
18578 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18579 -fno-local-ivars and -fivar-visibility.
18580 * c-family/c.opt: Make -Wshadow also implicitly enable
18583 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18585 * doc/tm.texi: Remove reference to deleted macro.
18586 * doc/tm.texi.in: Likewise.
18588 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18591 * config/avr/avr.c (avr_out_store_psi): Use correct constant
18594 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
18597 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18598 * config/arm/aout.h (License): Same.
18599 * config/arm/bpabi.h (License): Same.
18600 * config/arm/elf.h (License): Same.
18601 * config/arm/linux-elf.h (License): Same.
18602 * config/arm/linux-gas.h (License): Same.
18603 * config/arm/netbsd-elf.h (License): Same.
18604 * config/arm/uclinux-eabi.h (License): Same.
18605 * config/arm/uclinux-elf.h (License): Same.
18606 * config/arm/vxworks.h (License): Same.
18608 2014-05-11 Jakub Jelinek <jakub@redhat.com>
18610 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18611 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18612 number of operands to 3.
18613 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18614 * tree-nested.c (convert_nonlocal_omp_clauses,
18615 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18616 * gimplify.c (gimplify_scan_omp_clauses): Handle
18617 OMP_CLAUSE_LINEAR_STMT.
18618 * omp-low.c (lower_rec_input_clauses): Fix typo.
18619 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18620 cast between Fortran boolean_type_node and C _Bool if
18623 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
18625 PR tree-optimization/61136
18626 * wide-int.h (multiple_of_p): Define a version that doesn't return
18628 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18629 integer_zerop/const_binop pair.
18630 (multiple_of_p): Likewise, converting both operands to widest_int
18633 2014-05-09 Teresa Johnson <tejohnson@google.com>
18635 * cgraphunit.c (analyze_functions): Use correct dump file.
18637 2014-05-09 Florian Weimer <fweimer@redhat.com>
18639 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18641 (stack_protect_return_slot_p): New function.
18642 (expand_used_vars): Call stack_protect_decl_p and
18643 stack_protect_return_slot_p for -fstack-protector-strong.
18645 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
18646 Andrew Haley <aph@redhat.com>
18647 Richard Sandiford <rdsandiford@googlemail.com>
18649 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18652 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
18654 PR middle-end/61111
18655 * fold-const.c (fold_binary_loc): Changed width of mask.
18657 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18659 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18660 unsigned int initializers for regno_in, regno_out.
18662 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18665 * config/avr/avr.md (cc): Add new attribute set_vzn.
18666 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18667 Set cc insn attribute to set_vzn instead of set_zn for alternatives
18668 with INC, DEC or NEG.
18669 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18670 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18671 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18673 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18676 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18678 * wide-int.cc (UTItype): Define.
18679 (UDWtype): Define for appropriate W_TYPE_SIZE.
18681 2014-05-09 Richard Biener <rguenther@suse.de>
18683 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18684 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18685 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18686 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18687 ssa_propagate): Adjust.
18689 2014-05-08 Jeff Law <law@redhat.com>
18691 PR tree-optimization/61009
18692 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18693 tri-state rather than a boolean. When a block is too big to
18694 thread through, inform caller via negative return value.
18695 (thread_across_edge): If a block was too big for normal threading,
18696 then it's too big for a joiner too, so remove temporary equivalences
18697 and return immediately.
18699 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18700 Matthias Klose <doko@ubuntu.com>
18703 * optc-gen.awk: Fix option handling for -Wunused-parameter.
18705 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18708 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18710 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18713 * config/alpha/alpha.c: Include gimple-iterator.h.
18714 (alpha_gimple_fold_builtin): New function. Move
18715 ALPHA_BUILTIN_UMULH folding from ...
18716 (alpha_fold_builtin): ... here.
18717 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18719 2014-05-08 Wei Mi <wmi@google.com>
18722 * config/i386/i386.c (ix86_compute_frame_layout): Update
18723 preferred_stack_boundary for call, expanded from tls descriptor.
18724 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18725 to depend on SP register.
18726 (*tls_local_dynamic_base_32_gnu): Ditto.
18727 (*tls_local_dynamic_32_once): Ditto.
18728 (tls_global_dynamic_64_<mode>): Set
18729 ix86_tls_descriptor_calls_expanded_in_cfun.
18730 (tls_local_dynamic_base_64_<mode>): Ditto.
18731 (tls_global_dynamic_32): Set
18732 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18733 to depend on SP register.
18734 (tls_local_dynamic_base_32): Ditto.
18736 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18738 * config/arm/arm_neon.h: Update comment.
18739 * config/arm/neon-docgen.ml: Delete.
18740 * config/arm/neon-gen.ml: Delete.
18741 * doc/arm-neon-intrinsics.texi: Update comment.
18743 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18745 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18747 (vand, vorr, veor, vorn, vbic): Remove.
18748 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18750 (neon_vsub_unspec): Likewise.
18751 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18753 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18755 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18756 (vadd_s16): Likewise.
18757 (vadd_s32): Likewise.
18758 (vadd_f32): Likewise.
18759 (vadd_u8): Likewise.
18760 (vadd_u16): Likewise.
18761 (vadd_u32): Likewise.
18762 (vadd_s64): Likewise.
18763 (vadd_u64): Likewise.
18764 (vaddq_s8): Likewise.
18765 (vaddq_s16): Likewise.
18766 (vaddq_s32): Likewise.
18767 (vaddq_s64): Likewise.
18768 (vaddq_f32): Likewise.
18769 (vaddq_u8): Likewise.
18770 (vaddq_u16): Likewise.
18771 (vaddq_u32): Likewise.
18772 (vaddq_u64): Likewise.
18773 (vmul_s8): Likewise.
18774 (vmul_s16): Likewise.
18775 (vmul_s32): Likewise.
18776 (vmul_f32): Likewise.
18777 (vmul_u8): Likewise.
18778 (vmul_u16): Likewise.
18779 (vmul_u32): Likewise.
18780 (vmul_p8): Likewise.
18781 (vmulq_s8): Likewise.
18782 (vmulq_s16): Likewise.
18783 (vmulq_s32): Likewise.
18784 (vmulq_f32): Likewise.
18785 (vmulq_u8): Likewise.
18786 (vmulq_u16): Likewise.
18787 (vmulq_u32): Likewise.
18788 (vsub_s8): Likewise.
18789 (vsub_s16): Likewise.
18790 (vsub_s32): Likewise.
18791 (vsub_f32): Likewise.
18792 (vsub_u8): Likewise.
18793 (vsub_u16): Likewise.
18794 (vsub_u32): Likewise.
18795 (vsub_s64): Likewise.
18796 (vsub_u64): Likewise.
18797 (vsubq_s8): Likewise.
18798 (vsubq_s16): Likewise.
18799 (vsubq_s32): Likewise.
18800 (vsubq_s64): Likewise.
18801 (vsubq_f32): Likewise.
18802 (vsubq_u8): Likewise.
18803 (vsubq_u16): Likewise.
18804 (vsubq_u32): Likewise.
18805 (vsubq_u64): Likewise.
18806 (vand_s8): Likewise.
18807 (vand_s16): Likewise.
18808 (vand_s32): Likewise.
18809 (vand_u8): Likewise.
18810 (vand_u16): Likewise.
18811 (vand_u32): Likewise.
18812 (vand_s64): Likewise.
18813 (vand_u64): Likewise.
18814 (vandq_s8): Likewise.
18815 (vandq_s16): Likewise.
18816 (vandq_s32): Likewise.
18817 (vandq_s64): Likewise.
18818 (vandq_u8): Likewise.
18819 (vandq_u16): Likewise.
18820 (vandq_u32): Likewise.
18821 (vandq_u64): Likewise.
18822 (vorr_s8): Likewise.
18823 (vorr_s16): Likewise.
18824 (vorr_s32): Likewise.
18825 (vorr_u8): Likewise.
18826 (vorr_u16): Likewise.
18827 (vorr_u32): Likewise.
18828 (vorr_s64): Likewise.
18829 (vorr_u64): Likewise.
18830 (vorrq_s8): Likewise.
18831 (vorrq_s16): Likewise.
18832 (vorrq_s32): Likewise.
18833 (vorrq_s64): Likewise.
18834 (vorrq_u8): Likewise.
18835 (vorrq_u16): Likewise.
18836 (vorrq_u32): Likewise.
18837 (vorrq_u64): Likewise.
18838 (veor_s8): Likewise.
18839 (veor_s16): Likewise.
18840 (veor_s32): Likewise.
18841 (veor_u8): Likewise.
18842 (veor_u16): Likewise.
18843 (veor_u32): Likewise.
18844 (veor_s64): Likewise.
18845 (veor_u64): Likewise.
18846 (veorq_s8): Likewise.
18847 (veorq_s16): Likewise.
18848 (veorq_s32): Likewise.
18849 (veorq_s64): Likewise.
18850 (veorq_u8): Likewise.
18851 (veorq_u16): Likewise.
18852 (veorq_u32): Likewise.
18853 (veorq_u64): Likewise.
18854 (vbic_s8): Likewise.
18855 (vbic_s16): Likewise.
18856 (vbic_s32): Likewise.
18857 (vbic_u8): Likewise.
18858 (vbic_u16): Likewise.
18859 (vbic_u32): Likewise.
18860 (vbic_s64): Likewise.
18861 (vbic_u64): Likewise.
18862 (vbicq_s8): Likewise.
18863 (vbicq_s16): Likewise.
18864 (vbicq_s32): Likewise.
18865 (vbicq_s64): Likewise.
18866 (vbicq_u8): Likewise.
18867 (vbicq_u16): Likewise.
18868 (vbicq_u32): Likewise.
18869 (vbicq_u64): Likewise.
18870 (vorn_s8): Likewise.
18871 (vorn_s16): Likewise.
18872 (vorn_s32): Likewise.
18873 (vorn_u8): Likewise.
18874 (vorn_u16): Likewise.
18875 (vorn_u32): Likewise.
18876 (vorn_s64): Likewise.
18877 (vorn_u64): Likewise.
18878 (vornq_s8): Likewise.
18879 (vornq_s16): Likewise.
18880 (vornq_s32): Likewise.
18881 (vornq_s64): Likewise.
18882 (vornq_u8): Likewise.
18883 (vornq_u16): Likewise.
18884 (vornq_u32): Likewise.
18885 (vornq_u64): Likewise.
18887 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18889 * wide-int.cc (UTItype): Define.
18890 (UDWtype): Define for appropriate W_TYPE_SIZE.
18892 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
18894 PR tree-optimization/59100
18895 * tree-ssa-phiopt.c: Include tree-inline.h.
18896 (neutral_element_p, absorbing_element_p): New functions.
18897 (value_replacement): Handle conditional binary operations with a
18898 neutral or absorbing element.
18900 2014-05-08 Richard Biener <rguenther@suse.de>
18902 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18903 folding the expression.
18904 (valueize_expr): Remove.
18905 (visit_reference_op_load): Do not valueize the result of
18907 (simplify_binary_expression): Likewise.
18908 (simplify_unary_expression): Likewise.
18910 2014-05-08 Richard Biener <rguenther@suse.de>
18912 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18913 looking at TYPE_ARG_TYPES.
18915 2014-05-08 Richard Biener <rguenther@suse.de>
18917 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18918 pointer propagation special-case.
18920 2014-05-08 Bin Cheng <bin.cheng@arm.com>
18922 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18923 core part of address expressions.
18925 2014-05-08 Alan Modra <amodra@gmail.com>
18928 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18929 loads and stores when -mno-strict-align at any alignment.
18930 (expand_block_clear): Similarly. Also correct calculation of
18933 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18935 PR middle-end/39246
18936 * tree-complex.c (expand_complex_move): Keep line info when expanding
18938 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18939 of complex expression. Use new argument to display correct location
18940 for values coming from phi statement.
18941 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18942 (warn_uninitialized_phi): Pass location of phi argument to
18944 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18945 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18947 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18949 * config/rs6000/predicates.md (indexed_address_mem): New.
18950 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18951 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18952 fpstore_ux, fpstore_u.
18953 (sign_extend, indexed, update): New.
18954 (cell_micro): Adjust.
18955 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18956 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18957 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18958 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18959 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18960 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18961 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18962 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18963 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18964 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18965 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18966 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18967 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18968 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18969 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18971 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18972 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18973 *vsx_extract_<mode>_store): Adjust.
18974 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18975 is_cracked_insn, insn_must_be_first_in_group,
18976 insn_must_be_last_in_group): Adjust.
18978 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18980 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18981 ppc440-fpstore): Adjust.
18982 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18983 ppc476-fpstore): Adjust.
18984 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18985 ppc601-fpstore): Adjust.
18986 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18988 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18990 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18991 ppc7450-fpstore): Adjust.
18992 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18993 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18994 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18996 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18997 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18998 cell-fpstore, cell-fpstore-update): Adjust.
18999 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19000 ppce300c3_store, ppce300c3_fpstore): Adjust.
19001 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19002 e500mc_fpstore): Adjust.
19003 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19004 e500mc64_store, e500mc64_fpstore): Adjust.
19005 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19006 e5500_fpstore): Adjust.
19007 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19008 e6500_fpstore): Adjust.
19009 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19011 * config/rs6000/power4.md (power4-load, power4-load-ext,
19012 power4-load-ext-update, power4-load-ext-update-indexed,
19013 power4-load-update-indexed, power4-load-update, power4-fpload,
19014 power4-fpload-update, power4-store, power4-store-update,
19015 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19017 * config/rs6000/power5.md (power5-load, power5-load-ext,
19018 power5-load-ext-update, power5-load-ext-update-indexed,
19019 power5-load-update-indexed, power5-load-update, power5-fpload,
19020 power5-fpload-update, power5-store, power5-store-update,
19021 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19023 * config/rs6000/power6.md (power6-load, power6-load-ext,
19024 power6-load-update, power6-load-update-indexed,
19025 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19026 power6-fpload-update, power6-store, power6-store-update,
19027 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19029 * config/rs6000/power7.md (power7-load, power7-load-ext,
19030 power7-load-update, power7-load-update-indexed,
19031 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19032 power7-fpload-update, power7-store, power7-store-update,
19033 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19035 * config/rs6000/power8.md (power8-load, power8-load-update,
19036 power8-load-ext, power8-load-ext-update, power8-fpload,
19037 power8-fpload-update, power8-store, power8-store-update-indexed,
19038 power8-fpstore, power8-fpstore-update): Adjust.
19039 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19041 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19042 titan_lsu_store, titan_lsu_fpstore): Adjust.
19043 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19045 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19048 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19049 unrolled byte insns. Emit address increments after move insns.
19051 2014-05-07 David Malcolm <dmalcolm@redhat.com>
19053 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19054 const_gimple, rather than a gimple.
19055 (gimple_call_builtin_p): Likewise, for the three variants.
19057 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19058 (gimple_call_builtin_p): Likewise, for the three variants.
19060 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19062 PR tree-optimization/61095
19063 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19065 2014-05-07 Richard Biener <rguenther@suse.de>
19067 PR tree-optimization/61034
19068 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19069 (maybe_skip_until): Use translate to take into account
19070 lattices when trying to do disambiguations.
19071 (get_continuation_for_phi_1): Likewise.
19072 (get_continuation_for_phi): Adjust for added translate arguments.
19073 (walk_non_aliased_vuses): Likewise.
19074 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19075 (walk_non_aliased_vuses): Likewise.
19076 (call_may_clobber_ref_p_1): Declare.
19077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19078 calls. Stop early if we are only supposed to disambiguate.
19079 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19081 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
19083 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19084 Emit an error when the function has arguments.
19086 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19088 * cfgloop.h (unswitch_loops): Remove.
19089 * doc/passes.texi: Remove references to loop-unswitch.c
19090 * timevar.def (TV_LOOP_UNSWITCH): Remove.
19092 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
19094 * tree-vect-data-refs.c (vect_grouped_load_supported): New
19095 check for loads group of length 3.
19096 (vect_permute_load_chain): New permutations for loads group of
19098 * tree-vect-stmts.c (vect_model_load_cost): Change cost
19099 of vec_perm_shuffle for the new permutations.
19101 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
19103 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19104 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19105 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19106 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19107 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19108 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19109 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19110 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19112 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19114 * loop-unswitch.c: Delete.
19116 2014-05-07 Richard Biener <rguenther@suse.de>
19118 * config.gcc: Always set need_64bit_hwint to yes.
19120 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
19122 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19123 of using optimize_size.
19125 2014-05-06 Mike Stump <mikestump@comcast.net>
19127 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19129 2014-05-06 Joseph Myers <joseph@codesourcery.com>
19131 * config/i386/sse.md (*mov<mode>_internal)
19132 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19133 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19134 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19135 (*<code><mode>3, *andnot<mode>3<mask_name>)
19136 (<mask_codefor><code><mode>3<mask_name>): Only consider
19137 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19139 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19142 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19144 * lra-constraints.c (valid_address_p): Move earlier in file.
19145 Add a constraint argument to the address_info version.
19146 (satisfies_memory_constraint_p): New function.
19147 (satisfies_address_constraint_p): Likewise.
19148 (process_alt_operands, curr_insn_transform): Use them.
19149 (process_address): Pass the constraint to valid_address_p when
19150 checking address operands.
19152 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19154 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19155 to their respective blocks. Fix inadvertent use of "node".
19157 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19159 * emit-rtl.c (init_derived_machine_modes): New functionm, split
19161 (init_emit_once): ...here.
19162 * rtl.h (init_derived_machine_modes): Declare.
19163 * toplev.c (do_compile): Call it even if no_backend.
19165 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
19166 Mike Stump <mikestump@comcast.net>
19167 Richard Sandiford <rdsandiford@googlemail.com>
19168 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19170 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19171 (rtx_equal_for_memref_p): Update comment.
19172 (adjust_offset_for_component_ref): Use wide-int interfaces.
19173 * builtins.c (get_object_alignment_2): Likewise.
19174 (c_readstr): Likewise.
19175 (target_char_cast): Add comment.
19176 (determine_block_size): Use wide-int interfaces.
19177 (expand_builtin_signbit): Likewise.
19178 (fold_builtin_int_roundingfn): Likewise.
19179 (fold_builtin_bitop): Likewise.
19180 (fold_builtin_bswap): Likewise.
19181 (fold_builtin_logarithm): Use signop.
19182 (fold_builtin_pow): Likewise.
19183 (fold_builtin_memory_op): Use wide-int interfaces.
19184 (fold_builtin_object_size): Likewise.
19185 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19186 nb_iterations_estimate.
19187 (record_niter_bound): Use wide-int interfaces.
19188 (get_estimated_loop_iterations_int): Likewise.
19189 (get_estimated_loop_iterations): Likewise.
19190 (get_max_loop_iterations): Likewise.
19191 * cfgloop.h: Include wide-int.h.
19192 (struct nb_iter_bound): Change bound to widest_int.
19193 (struct loop): Change nb_iterations_upper_bound and
19194 nb_iterations_estimate to widest_int.
19195 (record_niter_bound): Switch to use widest_int.
19196 (get_estimated_loop_iterations): Likewise.
19197 (get_max_loop_iterations): Likewise.
19198 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19199 update for wide-int.
19200 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19201 * combine.c (try_combine): Likewise.
19202 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19203 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19205 (aarch64_float_const_representable_p): Likewise.
19206 * config/arc/arc.c: Include wide-int.h.
19207 (arc_can_use_doloop_p): Use wide-int interfaces.
19208 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19209 (vfp3_const_double_index): Likewise.
19210 * config/avr/avr.c (avr_out_round): Likewise.
19211 (avr_fold_builtin): Likewise.
19212 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19213 (bfin_can_use_doloop_p): Likewise.
19214 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19215 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19216 * config/i386/i386.c: Include wide-int.h.
19217 (ix86_data_alignment): Use wide-int interfaces.
19218 (ix86_local_alignment): Likewise.
19219 (ix86_emit_swsqrtsf): Update real_from_integer.
19220 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19221 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19222 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19223 (zero_constant): Likewise.
19224 (input_operand): Likewise.
19225 (splat_input_operand): Likewise.
19226 (non_logical_cint_operand): Change const_double to const_wide_int.
19227 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19228 (easy_altivec_constant): Remove comment.
19229 (paired_expand_vector_init): Use CONSTANT_P.
19230 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19231 (rs6000_emit_move): Update checks.
19232 (rs6000_aggregate_candidate): Use wide-int interfaces.
19233 (rs6000_expand_ternop_builtin): Likewise.
19234 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19235 (rs6000_assemble_integer): Likewise.
19236 (rs6000_hash_constant): Likewise.
19237 (output_toc): Likewise.
19238 (rs6000_rtx_costs): Likewise.
19239 (rs6000_emit_swrsqrt); Update call to real_from_integer.
19240 * config/rs6000/rs6000-c.c: Include wide-int.h.
19241 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
19242 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
19243 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
19244 Handle CONST_WIDE_INT.
19245 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
19246 Use tree_fits_uhwi_p.
19247 * config/sparc/sparc.c: Include wide-int.h.
19248 (sparc_fold_builtin): Use wide-int interfaces.
19249 * config/vax/vax.c: Include wide-int.h.
19250 (vax_float_literal): Use real_from_integer.
19251 * coretypes.h (struct hwivec_def): New.
19253 (const_hwivec): New.
19254 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
19255 (equiv_constant): Handle CONST_WIDE_INT.
19256 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
19257 (cselib_hash_rtx): Handle CONST_WIDE_INT.
19258 * dbxout.c (stabstr_U): Use wide-int interfaces.
19259 (dbxout_type): Update to use cst_fits_shwi_p.
19260 * defaults.h (LOG2_BITS_PER_UNIT): Define.
19261 (TARGET_SUPPORTS_WIDE_INT): Add default.
19262 * dfp.c: Include wide-int.h.
19263 (decimal_real_to_integer2): Use wide-int interfaces and rename to
19264 decimal_real_to_integer.
19265 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
19266 decimal_real_to_integer.
19267 * doc/generic.texi (Constant expressions): Update for wide_int.
19268 * doc/rtl.texi (const_double): Likewise.
19269 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
19270 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
19271 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
19272 (REAL_VALUE_FROM_INT): Remove.
19273 (TARGET_SUPPORTS_WIDE_INT): New.
19274 * doc/tm.texi: Regenerate.
19275 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
19276 * double-int.h: Include wide-int.h.
19277 (struct wi::int_traits): New.
19278 * dwarf2out.c (get_full_len): New.
19279 (dw_val_equal_p): Add case dw_val_class_wide_int.
19280 (size_of_loc_descr): Likewise.
19281 (output_loc_operands): Likewise.
19282 (insert_double): Remove.
19283 (insert_wide_int): New.
19284 (add_AT_wide): New.
19285 (print_die): Add case dw_val_class_wide_int.
19286 (attr_checksum): Likewise.
19287 (attr_checksum_ordered): Likewise.
19288 (same_dw_val_p): Likewise.
19289 (size_of_die): Likewise.
19290 (value_format): Likewise.
19291 (output_die): Likewise.
19292 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
19294 (clz_loc_descriptor): Use wide-int interfaces.
19295 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
19296 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
19297 (round_up_to_align): Use wide-int interfaces.
19298 (field_byte_offset): Likewise.
19299 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
19300 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
19301 CONST_DOUBLE handling. Use wide-int interfaces.
19302 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
19303 (gen_enumeration_type_die): Use add_AT_wide.
19304 (hash_loc_operands): Add case dw_val_class_wide_int.
19305 (compare_loc_operands): Likewise.
19306 * dwarf2out.h: Include wide-int.h.
19307 (wide_int_ptr): New.
19308 (enum dw_val_class): Add dw_val_class_wide_int.
19309 (struct dw_val_struct): Add val_wide.
19310 * emit-rtl.c (const_wide_int_htab): New.
19311 (const_wide_int_htab_hash): New.
19312 (const_wide_int_htab_eq): New.
19313 (lookup_const_wide_int): New.
19314 (const_double_htab_hash): Use wide-int interfaces.
19315 (const_double_htab_eq): Likewise.
19316 (rtx_to_double_int): Conditionally compile for wide-int.
19317 (immed_double_int_const): Rename to immed_wide_int_const and
19318 update for wide-int.
19319 (immed_double_const): Conditionally compile for wide-int.
19320 (init_emit_once): Use wide-int interfaces.
19321 * explow.c (plus_constant): Likewise.
19322 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
19323 (lshift_value): Use wide-int interfaces.
19324 (expand_mult): Likewise.
19325 (choose_multiplier): Likewise.
19326 (expand_smod_pow2): Likewise.
19327 (make_tree): Likewise.
19328 * expr.c (convert_modes): Consolidate handling of constants.
19329 Use wide-int interfaces.
19330 (emit_group_load_1): Add note.
19331 (store_expr): Update comment.
19332 (get_inner_reference): Use wide-int interfaces.
19333 (expand_constructor): Update comment.
19334 (expand_expr_real_2): Use wide-int interfaces.
19335 (expand_expr_real_1): Likewise.
19336 (reduce_to_bit_field_precision): Likewise.
19337 (const_vector_from_tree): Likewise.
19338 * final.c: Include wide-int-print.h.
19339 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
19340 * fixed-value.c: Include wide-int.h.
19341 (fixed_from_string): Use wide-int interfaces.
19342 (fixed_to_decimal): Likewise.
19343 (fixed_convert_from_real): Likewise.
19344 (real_convert_from_fixed): Likewise.
19345 * fold-const.h (mem_ref_offset): Return an offset_int.
19346 (div_if_zero_remainder): Remove code parameter.
19347 * fold-const.c (div_if_zero_remainder): Remove code parameter.
19348 Use wide-int interfaces.
19349 (may_negate_without_overflow_p): Use wide-int interfaces.
19350 (negate_expr_p): Likewise.
19351 (fold_negate_expr): Likewise.
19352 (int_const_binop_1): Likewise.
19353 (const_binop): Likewise.
19354 (fold_convert_const_int_from_int): Likewise.
19355 (fold_convert_const_int_from_real): Likewise.
19356 (fold_convert_const_int_from_fixed): Likewise.
19357 (fold_convert_const_fixed_from_int): Likewise.
19358 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
19359 (sign_bit_p): Use wide-int interfaces.
19360 (make_range_step): Likewise.
19361 (build_range_check): Likewise. Pass an integer of the correct type
19362 instead of using integer_one_node.
19363 (range_predecessor): Pass an integer of the correct type instead
19364 of using integer_one_node.
19365 (range_successor): Likewise.
19366 (merge_ranges): Likewise.
19367 (unextend): Use wide-int interfaces.
19368 (extract_muldiv_1): Likewise.
19369 (fold_div_compare): Likewise.
19370 (fold_single_bit_test): Likewise.
19371 (fold_sign_changed_comparison): Likewise.
19372 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
19373 (fold_plusminus_mult_expr): Use wide-int interfaces.
19374 (native_encode_int): Likewise.
19375 (native_interpret_int): Likewise.
19376 (fold_unary_loc): Likewise.
19377 (pointer_may_wrap_p): Likewise.
19378 (size_low_cst): Likewise.
19379 (mask_with_tz): Likewise.
19380 (fold_binary_loc): Likewise.
19381 (fold_ternary_loc): Likewise.
19382 (multiple_of_p): Likewise.
19383 (tree_call_nonnegative_warnv_p): Update calls to
19384 tree_int_cst_min_precision and real_from_integer.
19385 (fold_negate_const): Use wide-int interfaces.
19386 (fold_abs_const): Likewise.
19387 (fold_relational_const): Use tree_int_cst_lt.
19388 (round_up_loc): Use wide-int interfaces.
19389 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
19390 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
19391 * gengtype.c: Remove include of double-int.h.
19392 (do_typedef): Use wide-int interfaces.
19393 (open_base_files): Add wide-int.h.
19394 (main): Add offset_int and widest_int typedefs.
19395 * gengtype-lex.l: Handle "^".
19396 (CXX_KEYWORD): Add "static".
19397 * gengtype-parse.c (require3): New.
19398 (require_template_declaration): Handle constant template arguments
19399 and nested templates.
19400 * gengtype-state.c: Don't include "double-int.h".
19401 * genpreds.c (write_one_predicate_function): Update comment.
19402 (write_tm_constrs_h): Add check for hval and lval use in
19404 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
19405 (add_to_sequence): Likewise.
19406 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
19407 and const_double_operand.
19408 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
19410 * gimple-fold.c (get_base_constructor): Likewise.
19411 (fold_array_ctor_reference): Likewise.
19412 (fold_nonarray_ctor_reference): Likewise.
19413 (fold_const_aggregate_ref_1): Likewise.
19414 (gimple_val_nonnegative_real_p): Likewise.
19415 (gimple_fold_indirect_ref): Likewise.
19416 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19417 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19418 (struct slsr_cand_d): Change index to be widest_int.
19419 (struct incr_info_d): Change incr to be widest_int.
19420 (alloc_cand_and_find_basis): Use wide-int interfaces.
19421 (slsr_process_phi): Likewise.
19422 (backtrace_base_for_ref): Likewise. Return a widest_int.
19423 (restructure_reference): Take a widest_int instead of a double_int.
19424 (slsr_process_ref): Use wide-int interfaces.
19425 (create_mul_ssa_cand): Likewise.
19426 (create_mul_imm_cand): Likewise.
19427 (create_add_ssa_cand): Likewise.
19428 (create_add_imm_cand): Take a widest_int instead of a double_int.
19429 (slsr_process_add): Use wide-int interfaces.
19430 (slsr_process_cast): Likewise.
19431 (slsr_process_copy): Likewise.
19432 (dump_candidate): Likewise.
19433 (dump_incr_vec): Likewise.
19434 (replace_ref): Likewise.
19435 (cand_increment): Likewise. Return a widest_int.
19436 (cand_abs_increment): Likewise.
19437 (replace_mult_candidate): Take a widest_int instead of a double_int.
19438 (replace_unconditional_candidate): Use wide-int interfaces.
19439 (incr_vec_index): Take a widest_int instead of a double_int.
19440 (create_add_on_incoming_edge): Likewise.
19441 (create_phi_basis): Use wide-int interfaces.
19442 (replace_conditional_candidate): Likewise.
19443 (record_increment): Take a widest_int instead of a double_int.
19444 (record_phi_increments): Use wide-int interfaces.
19445 (phi_incr_cost): Take a widest_int instead of a double_int.
19446 (lowest_cost_path): Likewise.
19447 (total_savings): Likewise.
19448 (analyze_increments): Use wide-int interfaces.
19449 (ncd_with_phi): Take a widest_int instead of a double_int.
19450 (ncd_of_cand_and_phis): Likewise.
19451 (nearest_common_dominator_for_cands): Likewise.
19452 (insert_initializers): Use wide-int interfaces.
19453 (all_phi_incrs_profitable): Likewise.
19454 (replace_one_candidate): Likewise.
19455 (replace_profitable_candidates): Likewise.
19456 * godump.c: Include wide-int-print.h.
19457 (go_output_typedef): Use wide-int interfaces.
19458 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19459 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19460 (build_loop_iteration_domains): Likewise.
19461 * hooks.h: Include wide-int.h rather than double-int.h.
19462 (hook_bool_dint_dint_uint_bool_true): Delete.
19463 (hook_bool_wint_wint_uint_bool_true): Declare.
19464 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19465 (hook_bool_wint_wint_uint_bool_true): New.
19466 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19468 (ubsan_expand_si_overflow_mul_check): Likewise.
19469 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19470 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19471 (get_ancestor_addr_info): Likewise.
19472 (ipa_modify_call_arguments): Likewise.
19473 * loop-doloop.c (doloop_modify): Likewise.
19474 (doloop_optimize): Likewise.
19475 * loop-iv.c (iv_number_of_iterations): Likewise.
19476 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19477 (unroll_loop_constant_iterations): Likewise.
19478 (decide_unroll_runtime_iterations): Likewise.
19479 (unroll_loop_runtime_iterations): Likewise.
19480 (decide_peel_simple): Likewise.
19481 (decide_unroll_stupid): Likewise.
19482 * lto-streamer-in.c (streamer_read_wi): Add.
19483 (input_cfg): Use wide-int interfaces.
19484 (lto_input_tree_1): Likewise.
19485 * lto-streamer-out.c (streamer_write_wi): Add.
19486 (hash_tree): Use wide-int interfaces.
19487 (output_cfg): Likewise.
19488 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19489 (GTFILES): Add wide-int.h and signop.h.
19490 (TAGS): Look for .cc files too.
19491 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19492 * optabs.c (expand_subword_shift): Likewise.
19493 (expand_doubleword_shift): Likewise.
19494 (expand_absneg_bit): Likewise.
19495 (expand_copysign_absneg): Likewise.
19496 (expand_copysign_bit): Likewise.
19497 * postreload.c (reload_cse_simplify_set): Likewise.
19498 * predict.c (predict_iv_comparison): Likewise.
19499 * pretty-print.h: Include wide-int-print.h.
19501 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19502 * print-tree.c: Include wide-int-print.h.
19503 (print_node_brief): Use wide-int interfaces.
19504 (print_node): Likewise.
19505 * read-rtl.c (validate_const_wide_int): New.
19506 (read_rtx_code): Add CONST_WIDE_INT case.
19507 * real.c: Include wide-int.h.
19508 (real_to_integer2): Delete.
19509 (real_to_integer): New function, returning a wide_int.
19510 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19511 (ten_to_ptwo): Update call to real_from_integer.
19512 (real_digit): Likewise.
19513 * real.h: Include signop.h, wide-int.h and insn-modes.h.
19514 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19515 (REAL_VALUE_TO_INT): Delete.
19516 (real_to_integer): Declare a wide-int form.
19517 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19518 * recog.c (const_int_operand): Improve comment.
19519 (const_scalar_int_operand): New.
19520 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19521 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19522 (split_double): Likewise.
19523 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19524 (rtx_size): Likewise.
19525 (rtx_alloc_stat_v): New.
19526 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19527 (cwi_output_hex): New.
19528 (iterative_hash_rtx): Handle CONST_WIDE_INT.
19529 (cwi_check_failed_bounds): New.
19530 * rtl.def (CONST_WIDE_INT): New.
19531 * rtl.h: Include <utility> and wide-int.h.
19532 (struct hwivec_def): New.
19533 (CWI_GET_NUM_ELEM): New.
19534 (CWI_PUT_NUM_ELEM): New.
19535 (struct rtx_def): Add num_elem and hwiv.
19536 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19537 (CASE_CONST_UNIQUE): Likewise.
19538 (CASE_CONST_ANY): Likewise.
19539 (CONST_SCALAR_INT_P): Likewise.
19540 (CONST_WIDE_INT_P): New.
19542 (HWIVEC_CHECK): New.
19543 (cwi_check_failed_bounds): New.
19545 (HWIVEC_CHECK): New.
19546 (CONST_WIDE_INT_VEC) New.
19547 (CONST_WIDE_INT_NUNITS) New.
19548 (CONST_WIDE_INT_ELT) New.
19549 (rtx_mode_t): New type.
19550 (wi::int_traits <rtx_mode_t>): New.
19552 (wi::min_value): New.
19553 (wi::max_value): New.
19555 (const_wide_int_alloc): New.
19556 (immed_wide_int_const): New.
19557 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19558 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19559 * signop.h: New file.
19560 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19561 (simplify_const_unary_operation): Use wide-int interfaces.
19562 (simplify_binary_operation_1): Likewise.
19563 (simplify_const_binary_operation): Likewise.
19564 (simplify_const_relational_operation): Likewise.
19565 (simplify_immed_subreg): Likewise.
19566 * stmt.c (expand_case): Likewise.
19567 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19568 signop rather than a bool.
19569 * stor-layout.c (layout_type): Use wide-int interfaces.
19570 (initialize_sizetypes): Update calls to
19571 set_min_and_max_values_for_integral_type.
19572 (set_min_and_max_values_for_integral_type): Take a signop rather
19573 than a bool. Use wide-int interfaces.
19574 (fixup_signed_type): Update accordingly. Remove
19575 HOST_BITS_PER_DOUBLE_INT limit.
19576 (fixup_unsigned_type): Likewise.
19577 * system.h (STATIC_CONSTANT_P): New.
19578 (STATIC_ASSERT): New.
19579 * target.def (can_use_doloop_p): Take widest_ints rather than
19581 * target.h: Include wide-int.h rather than double-int.h.
19582 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19584 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19585 rather than INT_CST_LT_UNSIGNED.
19586 (can_use_doloop_if_innermost): Take widest_ints rather than
19588 * tree-affine.c: Include wide-int-print.h.
19589 (double_int_ext_for_comb): Delete.
19590 (wide_int_ext_for_comb): New.
19591 (aff_combination_zero): Use wide-int interfaces.
19592 (aff_combination_const): Take a widest_int instead of a double_int.
19593 (aff_combination_elt): Use wide-int interfaces.
19594 (aff_combination_scale): Take a widest_int instead of a double_int.
19595 (aff_combination_add_elt): Likewise.
19596 (aff_combination_add_cst): Likewise.
19597 (aff_combination_add): Use wide-int interfaces.
19598 (aff_combination_convert): Likewise.
19599 (tree_to_aff_combination): Likewise.
19600 (add_elt_to_tree): Take a widest_int instead of a double_int.
19601 (aff_combination_to_tree): Use wide-int interfaces.
19602 (aff_combination_remove_elt): Likewise.
19603 (aff_combination_add_product): Take a widest_int instead of
19605 (aff_combination_mult): Use wide-int interfaces.
19606 (aff_combination_expand): Likewise.
19607 (double_int_constant_multiple_p): Delete.
19608 (wide_int_constant_multiple_p): New.
19609 (aff_combination_constant_multiple_p): Take a widest_int pointer
19610 instead of a double_int pointer.
19611 (print_aff): Use wide-int interfaces.
19612 (get_inner_reference_aff): Take a widest_int pointer
19613 instead of a double_int pointer.
19614 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19615 * tree-affine.h: Include wide-int.h.
19616 (struct aff_comb_elt): Change type of coef to widest_int.
19617 (struct affine_tree_combination): Change type of offset to widest_int.
19618 (double_int_ext_for_comb): Delete.
19619 (wide_int_ext_for_comb): New.
19620 (aff_combination_const): Use widest_int instead of double_int.
19621 (aff_combination_scale): Likewise.
19622 (aff_combination_add_elt): Likewise.
19623 (aff_combination_constant_multiple_p): Likewise.
19624 (get_inner_reference_aff): Likewise.
19625 (aff_comb_cannot_overlap_p): Likewise.
19626 (aff_combination_zero_p): Use wide-int interfaces.
19627 * tree.c: Include tree.h.
19628 (init_ttree): Use make_int_cst.
19629 (tree_code_size): Removed code for INTEGER_CST case.
19630 (tree_size): Add INTEGER_CST case.
19631 (make_node_stat): Update comment.
19632 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19633 (build_int_cst_type): Use wide-int interfaces.
19634 (double_int_to_tree): Likewise.
19635 (double_int_fits_to_tree_p): Delete.
19636 (force_fit_type_double): Delete.
19637 (force_fit_type): New.
19638 (int_cst_hash_hash): Use wide-int interfaces.
19639 (int_cst_hash_eq): Likewise.
19640 (build_int_cst_wide): Delete.
19641 (wide_int_to_tree): New.
19642 (cache_integer_cst): Use wide-int interfaces.
19643 (build_low_bits_mask): Likewise.
19644 (cst_and_fits_in_hwi): Likewise.
19645 (real_value_from_int_cst): Likewise.
19646 (make_int_cst_stat): New.
19647 (integer_zerop): Use wide_int interfaces.
19648 (integer_onep): Likewise.
19649 (integer_all_onesp): Likewise.
19650 (integer_pow2p): Likewise.
19651 (integer_nonzerop): Likewise.
19652 (tree_log2): Likewise.
19653 (tree_floor_log2): Likewise.
19654 (tree_ctz): Likewise.
19655 (int_size_in_bytes): Likewise.
19656 (mem_ref_offset): Return an offset_int rather than a double_int.
19657 (build_type_attribute_qual_variant): Use wide_int interfaces.
19658 (type_hash_eq): Likewise
19659 (tree_int_cst_equal): Likewise.
19660 (tree_int_cst_lt): Delete.
19661 (tree_int_cst_compare): Likewise.
19662 (tree_fits_shwi_p): Use wide_int interfaces.
19663 (tree_fits_uhwi_p): Likewise.
19664 (tree_int_cst_sign_bit): Likewise.
19665 (tree_int_cst_sgn): Likewise.
19666 (tree_int_cst_min_precision): Take a signop rather than a bool.
19667 (simple_cst_equal): Use wide_int interfaces.
19668 (compare_tree_int): Likewise.
19669 (iterative_hash_expr): Likewise.
19670 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
19672 (get_type_static_bounds): Use wide_int interfaces.
19673 (tree_int_cst_elt_check_failed): New.
19674 (build_common_tree_nodes): Reordered to set prec before filling in
19676 (int_cst_value): Check cst_and_fits_in_hwi.
19677 (widest_int_cst_value): Use wide_int interfaces.
19678 (upper_bound_in_type): Likewise.
19679 (lower_bound_in_type): Likewise.
19680 (num_ending_zeros): Likewise.
19681 (drop_tree_overflow): Likewise.
19682 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19683 (gen_conditions_for_pow_cst_base): Likewise.
19684 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19685 (group_case_labels_stmt): Use wide-int interfaces.
19686 (verify_gimple_assign_binary): Likewise.
19687 (print_loop): Likewise.
19688 * tree-chrec.c (tree_fold_binomial): Likewise.
19689 * tree-core.h (struct tree_base): Add int_length.
19690 (struct tree_int_cst): Change rep of value.
19691 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19692 (dr_may_alias_p): Likewise.
19693 (max_stmt_executions_tree): Likewise.
19694 * tree.def (INTEGER_CST): Update comment.
19695 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19696 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19697 * tree-dump.c: Include wide-int.h and wide-int-print.h.
19698 (dequeue_and_dump): Use wide-int interfaces.
19699 * tree.h: Include wide-int.h.
19700 (NULL_TREE): Moved to earlier loc in file.
19701 (TREE_INT_CST_ELT_CHECK): New.
19702 (tree_int_cst_elt_check_failed): New.
19704 (TREE_INT_CST): Delete.
19705 (TREE_INT_CST_LOW): Use wide-int interfaces.
19706 (TREE_INT_CST_HIGH): Delete.
19707 (TREE_INT_CST_NUNITS): New.
19708 (TREE_INT_CST_EXT_NUNITS): Likewise.
19709 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19710 (TREE_INT_CST_ELT): Likewise.
19711 (INT_CST_LT): Delete.
19712 (tree_int_cst_elt_check): New (two forms).
19713 (type_code_size): Update comment.
19714 (make_int_cst_stat, make_int_cst): New.
19715 (tree_to_double_int): Delete.
19716 (double_int_fits_to_tree_p): Delete.
19717 (force_fit_type_double): Delete.
19718 (build_int_cstu): Replace with out-of-line function.
19719 (build_int_cst_wide): Delete.
19720 (tree_int_cst_lt): Define inline.
19721 (tree_int_cst_le): New.
19722 (tree_int_cst_compare): Define inline.
19723 (tree_int_cst_min_precision): Take a signop rather than a bool.
19724 (wi::int_traits <const_tree>): New.
19725 (wi::int_traits <tree>): New.
19726 (wi::extended_tree): New.
19727 (wi::int_traits <wi::extended_tree>): New.
19728 (wi::to_widest): New.
19729 (wi::to_offset): New.
19730 (wi::fits_to_tree_p): New.
19731 (wi::min_value): New.
19732 (wi::max_value): New.
19733 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19734 (copy_tree_body_r): Likewise.
19735 * tree-object-size.c (compute_object_offset): Likewise.
19736 (addr_object_size): Likewise.
19737 * tree-predcom.c: Include wide-int-print.h.
19738 (struct dref_d): Change type of offset to widest_int.
19739 (dump_dref): Call wide-int printer.
19740 (aff_combination_dr_offset): Use wide-int interfaces.
19741 (determine_offset): Take a widest_int pointer rather than a
19742 double_int pointer.
19743 (split_data_refs_to_components): Use wide-int interfaces.
19744 (suitable_component_p): Likewise.
19745 (order_drefs): Likewise.
19746 (add_ref_to_chain): Likewise.
19747 (valid_initializer_p): Likewise.
19748 (determine_roots_comp): Likewise.
19749 * tree-pretty-print.c: Include wide-int-print.h.
19750 (dump_generic_node): Use wide-int interfaces.
19751 * tree-sra.c (sra_ipa_modify_expr): Likewise.
19752 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19753 (move_fixed_address_to_symbol): Likewise.
19754 (move_hint_to_base): Likewise.
19755 (move_pointer_to_base): Likewise.
19756 (move_variant_to_index): Likewise.
19757 (most_expensive_mult_to_index): Likewise.
19758 (addr_to_parts): Likewise.
19759 (copy_ref_info): Likewise.
19760 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19761 (indirect_refs_may_alias_p): Likewise.
19762 (stmt_kills_ref_p_1): Likewise.
19763 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19764 * tree-ssa-ccp.c: Update comment at top of file. Include
19766 (struct prop_value_d): Change type of mask to widest_int.
19767 (extend_mask): New function.
19768 (dump_lattice_value): Use wide-int interfaces.
19769 (get_default_value): Likewise.
19770 (set_constant_value): Likewise.
19771 (set_value_varying): Likewise.
19772 (valid_lattice_transition): Likewise.
19773 (set_lattice_value): Likewise.
19774 (value_to_double_int): Delete.
19775 (value_to_wide_int): New.
19776 (get_value_from_alignment): Use wide-int interfaces.
19777 (get_value_for_expr): Likewise.
19778 (do_dbg_cnt): Likewise.
19779 (ccp_finalize): Likewise.
19780 (ccp_lattice_meet): Likewise.
19781 (bit_value_unop_1): Use widest_ints rather than double_ints.
19782 (bit_value_binop_1): Likewise.
19783 (bit_value_unop): Use wide-int interfaces.
19784 (bit_value_binop): Likewise.
19785 (bit_value_assume_aligned): Likewise.
19786 (evaluate_stmt): Likewise.
19787 (ccp_fold_stmt): Likewise.
19788 (visit_cond_stmt): Likewise.
19789 (ccp_visit_stmt): Likewise.
19790 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19791 (constant_pointer_difference): Likewise.
19792 (associate_pointerplus): Likewise.
19793 (combine_conversions): Likewise.
19794 * tree-ssa-loop.h: Include wide-int.h.
19795 (struct tree_niter_desc): Change type of max to widest_int.
19796 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19797 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19798 (remove_redundant_iv_tests): Likewise.
19799 (canonicalize_loop_induction_variables): Likewise.
19800 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19801 (constant_multiple_of): Take a widest_int pointer instead of
19802 a double_int pointer.
19803 (get_computation_aff): Use wide-int interfaces.
19804 (ptr_difference_cost): Likewise.
19805 (difference_cost): Likewise.
19806 (get_loop_invariant_expr_id): Likewise.
19807 (get_computation_cost_at): Likewise.
19808 (iv_elimination_compare_lt): Likewise.
19809 (may_eliminate_iv): Likewise.
19810 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19811 instead of double_int.
19812 (max_loop_iterations): Likewise.
19813 (max_stmt_executions): Likewise.
19814 (estimated_stmt_executions): Likewise.
19815 * tree-ssa-loop-niter.c: Include wide-int-print.h.
19816 (split_to_var_and_offset): Use wide-int interfaces.
19817 (determine_value_range): Likewise.
19818 (bound_difference_of_offsetted_base): Likewise.
19819 (bounds_add): Take a widest_int instead of a double_int.
19820 (number_of_iterations_ne_max): Use wide-int interfaces.
19821 (number_of_iterations_ne): Likewise.
19822 (number_of_iterations_lt_to_ne): Likewise.
19823 (assert_loop_rolls_lt): Likewise.
19824 (number_of_iterations_lt): Likewise.
19825 (number_of_iterations_le): Likewise.
19826 (number_of_iterations_cond): Likewise.
19827 (number_of_iterations_exit): Likewise.
19828 (finite_loop_p): Likewise.
19829 (derive_constant_upper_bound_assign): Likewise.
19830 (derive_constant_upper_bound): Return a widest_int.
19831 (derive_constant_upper_bound_ops): Likewise.
19832 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19833 (record_estimate): Take a widest_int rather than a double_int.
19834 (record_nonwrapping_iv): Use wide-int interfaces.
19835 (double_int_cmp): Delete.
19836 (wide_int_cmp): New.
19837 (bound_index): Take a widest_int rather than a double_int.
19838 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19839 (maybe_lower_iteration_bound): Likewise.
19840 (estimate_numbers_of_iterations_loop): Likewise.
19841 (estimated_loop_iterations): Take a widest_int pointer than than
19842 a double_int pointer.
19843 (estimated_loop_iterations_int): Use wide-int interfaces.
19844 (max_loop_iterations): Take a widest_int pointer than than
19845 a double_int pointer.
19846 (max_loop_iterations_int): Use wide-int interfaces.
19847 (max_stmt_executions): Take a widest_int pointer than than
19848 a double_int pointer.
19849 (estimated_stmt_executions): Likewise.
19850 (n_of_executions_at_most): Use wide-int interfaces.
19851 (scev_probably_wraps_p): Likewise.
19852 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19853 to real_to_integer.
19854 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19856 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19857 double_ints. Adjust for trailing_wide_ints <3> representation.
19858 (set_nonzero_bits): Likewise.
19859 (get_range_info): Return wide_ints rather than double_ints.
19860 Adjust for trailing_wide_ints <3> representation.
19861 (get_nonzero_bits): Likewise.
19862 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19864 * tree-ssanames.h (struct range_info_def): Replace min, max and
19865 nonzero_bits with a trailing_wide_ints <3>.
19866 (set_range_info): Use wide_int_refs rather than double_ints.
19867 (set_nonzero_bits): Likewise.
19868 (get_range_info): Return wide_ints rather than double_ints.
19869 (get_nonzero_bits): Likewise.
19870 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19871 * tree-ssa-pre.c (phi_translate_1): Likewise.
19872 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19873 (acceptable_pow_call): Likewise.
19874 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19876 (vn_reference_fold_indirect): Likewise.
19877 (vn_reference_maybe_forwprop_address): Likewise.
19878 (valueize_refs_1): Likewise.
19879 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19880 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19881 tree_int_cst_lt and tree_int_cst_le.
19882 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19884 (streamer_alloc_tree): Likewise.
19885 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19886 (streamer_write_tree_header): Likewise.
19887 (streamer_write_integer_cst): Likewise.
19888 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19889 (build_constructors): Likewise.
19890 (array_value_type): Likewise.
19891 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19892 (vect_check_gather): Likewise.
19893 * tree-vect-generic.c (build_replicated_const): Likewise.
19894 (expand_vector_divmod): Likewise.
19895 * tree-vect-loop.c (vect_transform_loop): Likewise.
19896 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19897 (vect_do_peeling_for_alignment): Likewise.
19898 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19899 * tree-vrp.c: Include wide-int.h.
19900 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19901 (extract_range_from_assert): Use wide-int interfaces.
19902 (vrp_int_const_binop): Likewise.
19903 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19904 double_int pointers.
19905 (ranges_from_anti_range): Use wide-int interfaces.
19906 (quad_int_cmp): Delete.
19907 (quad_int_pair_sort): Likewise.
19908 (extract_range_from_binary_expr_1): Use wide-int interfaces.
19909 (extract_range_from_unary_expr_1): Likewise.
19910 (adjust_range_with_scev): Likewise.
19911 (masked_increment): Take and return wide_ints rather than double_ints.
19912 (register_edge_assert_for_2): Use wide-int interfaces.
19913 (check_array_ref): Likewise.
19914 (search_for_addr_array): Likewise.
19915 (maybe_set_nonzero_bits): Likewise.
19916 (union_ranges): Pass an integer of the correct type instead of
19917 using integer_one_node.
19918 (intersect_ranges): Likewise.
19919 (simplify_truth_ops_using_ranges): Likewise.
19920 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19921 (range_fits_type_p): Likewise.
19922 (simplify_cond_using_ranges): Likewise. Take a signop rather than
19924 (simplify_conversion_using_ranges): Use wide-int interfaces.
19925 (simplify_float_conversion_using_ranges): Likewise.
19926 (vrp_finalize): Likewise.
19927 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19928 (gimple_stringops_transform): Likewise.
19929 * varasm.c (decode_addr_const): Likewise.
19930 (const_hash_1): Likewise.
19931 (const_rtx_hash_1): Likewise
19932 (output_constant): Likewise.
19933 (array_size_for_constructor): Likewise.
19934 (output_constructor_regular_field): Likewise.
19935 (output_constructor_bitfield): Likewise.
19936 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19937 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19939 * gencheck.c: Define BITS_PER_UNIT.
19940 * wide-int.cc: New.
19942 * wide-int-print.cc: New.
19943 * wide-int-print.h: New.
19945 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19947 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19949 2014-05-06 Richard Biener <rguenther@suse.de>
19951 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19952 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19953 (TODO_verify_all): Adjust.
19954 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19955 TODO_verify_stmts and TODO_verify_rtl_sharing.
19956 * bb-reorder.c: Likewise.
19957 * cfgexpand.c: Likewise.
19958 * cprop.c: Likewise.
19960 * function.c: Likewise.
19961 * fwprop.c: Likewise.
19962 * gcse.c: Likewise.
19963 * gimple-ssa-isolate-paths.c: Likewise.
19964 * gimple-ssa-strength-reduction.c: Likewise.
19965 * ipa-split.c: Likewise.
19966 * loop-init.c: Likewise.
19967 * loop-unroll.c: Likewise.
19968 * lower-subreg.c: Likewise.
19969 * modulo-sched.c: Likewise.
19970 * postreload-gcse.c: Likewise.
19971 * predict.c: Likewise.
19972 * recog.c: Likewise.
19973 * sched-rgn.c: Likewise.
19974 * store-motion.c: Likewise.
19975 * tracer.c: Likewise.
19976 * trans-mem.c: Likewise.
19977 * tree-call-cdce.c: Likewise.
19978 * tree-cfg.c: Likewise.
19979 * tree-cfgcleanup.c: Likewise.
19980 * tree-complex.c: Likewise.
19981 * tree-eh.c: Likewise.
19982 * tree-emutls.c: Likewise.
19983 * tree-if-conv.c: Likewise.
19984 * tree-into-ssa.c: Likewise.
19985 * tree-loop-distribution.c: Likewise.
19986 * tree-object-size.c: Likewise.
19987 * tree-parloops.c: Likewise.
19988 * tree-pass.h: Likewise.
19989 * tree-sra.c: Likewise.
19990 * tree-ssa-ccp.c: Likewise.
19991 * tree-ssa-copy.c: Likewise.
19992 * tree-ssa-copyrename.c: Likewise.
19993 * tree-ssa-dce.c: Likewise.
19994 * tree-ssa-dom.c: Likewise.
19995 * tree-ssa-dse.c: Likewise.
19996 * tree-ssa-forwprop.c: Likewise.
19997 * tree-ssa-ifcombine.c: Likewise.
19998 * tree-ssa-loop-ch.c: Likewise.
19999 * tree-ssa-loop-ivcanon.c: Likewise.
20000 * tree-ssa-loop.c: Likewise.
20001 * tree-ssa-math-opts.c: Likewise.
20002 * tree-ssa-phiopt.c: Likewise.
20003 * tree-ssa-phiprop.c: Likewise.
20004 * tree-ssa-pre.c: Likewise.
20005 * tree-ssa-reassoc.c: Likewise.
20006 * tree-ssa-sink.c: Likewise.
20007 * tree-ssa-strlen.c: Likewise.
20008 * tree-ssa-tail-merge.c: Likewise.
20009 * tree-ssa-uncprop.c: Likewise.
20010 * tree-switch-conversion.c: Likewise.
20011 * tree-tailcall.c: Likewise.
20012 * tree-vect-generic.c: Likewise.
20013 * tree-vectorizer.c: Likewise.
20014 * tree-vrp.c: Likewise.
20015 * tsan.c: Likewise.
20016 * var-tracking.c: Likewise.
20017 * bt-load.c: Likewise.
20018 * cfgcleanup.c: Likewise.
20019 * combine-stack-adj.c: Likewise.
20020 * combine.c: Likewise.
20021 * compare-elim.c: Likewise.
20022 * config/epiphany/resolve-sw-modes.c: Likewise.
20023 * config/i386/i386.c: Likewise.
20024 * config/mips/mips.c: Likewise.
20025 * config/s390/s390.c: Likewise.
20026 * config/sh/sh_treg_combine.cc: Likewise.
20027 * config/sparc/sparc.c: Likewise.
20030 * final.c: Likewise.
20031 * ifcvt.c: Likewise.
20032 * mode-switching.c: Likewise.
20033 * passes.c: Likewise.
20034 * postreload.c: Likewise.
20036 * reg-stack.c: Likewise.
20037 * regcprop.c: Likewise.
20038 * regrename.c: Likewise.
20041 2014-05-06 Richard Biener <rguenther@suse.de>
20043 PR middle-end/61070
20044 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20045 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20047 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
20050 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20052 2014-05-05 Radovan Obradovic <robradovic@mips.com>
20053 Tom de Vries <tom@codesourcery.com>
20055 * target.def (call_fusage_contains_non_callee_clobbers): New
20057 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20059 (@node Miscellaneous Register Hooks): New node.
20060 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20061 * doc/tm.texi: Regenerate.
20063 2014-05-05 Marek Polacek <polacek@redhat.com>
20066 * opts.c (common_handle_option): Call error_at instead of warning_at.
20068 2014-05-05 Richard Biener <rguenther@suse.de>
20070 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20071 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
20072 under the TODO_verify_il umbrella.
20074 2014-05-05 Richard Biener <rguenther@suse.de>
20076 * passes.c (execute_function_todo): Move TODO_verify_flow under
20077 the TODO_verify_ul umbrella.
20079 2014-05-05 Richard Biener <rguenther@suse.de>
20081 PR middle-end/61010
20082 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20083 X & CST away from a CST that is the mask of a mode.
20085 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20087 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20088 int argument to enum machine_mode.
20089 (picochip_class_max_nregs): Ditto.
20090 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20091 (picochip_class_max_nregs): Ditto.
20093 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20095 * target.def: Add new target hook.
20096 * doc/tm.texi: Regenerate.
20097 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20098 * targhooks.c (default_keep_leaf_when_profiled): New function.
20100 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20101 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20103 2014-05-05 Bin Cheng <bin.cheng@arm.com>
20105 PR tree-optimization/60363
20106 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20107 (copy_phi_args): New parameters. Call get_value_locus_in_path.
20108 (update_destination_phis): New parameter.
20109 (create_edge_and_update_destination_phis): Ditto.
20110 (ssa_fix_duplicate_block_edges): Pass new arguments.
20111 (thread_single_edge): Ditto.
20113 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
20115 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20116 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20117 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20118 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20119 Use RS6000_BTM_HARD_FLOAT.
20120 (BU_MISC_2): Likewise.
20121 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20122 RS6000_BTM_HARD_FLOAT.
20123 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20124 is explicitly used.
20125 (rs6000_invalid_builtin): Add hard floating builtin support.
20126 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20127 hard float builtins.
20128 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20130 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20132 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20133 Add missing function* argument.
20135 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20137 * lra-constraints.c (valid_address_p): Move earlier in file.
20138 Add a constraint argument to the address_info version.
20139 (satisfies_memory_constraint_p): New function.
20140 (satisfies_address_constraint_p): Likewise.
20141 (process_alt_operands, curr_insn_transform): Use them.
20142 (process_address): Pass the constraint to valid_address_p when
20143 checking address operands.
20145 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20147 * config/mips/mips.c (mips_isa_rev): New variable.
20148 (mips_set_architecture): Set it.
20149 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20151 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20152 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20153 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20154 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20155 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20156 conditions in terms of mips_isa_rev.
20157 (mips_isa_rev): Declare.
20159 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20161 * config/sh/sh-mem.cc: Use tabs instead of spaces.
20162 (prob_unlikely, prob_likely): Make variables const.
20164 2014-05-03 Denis Chertykov <chertykov@gmail.com>
20166 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20168 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20170 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20172 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20174 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20175 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20176 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20178 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20179 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20181 Replace usage of ROUND_REG with sh_round_reg.
20182 Use CEIL instead of ROUND_ADVANCE.
20184 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20187 * config/sh/sh.c: Include stdlib headers before everything else.
20189 2014-05-02 Jakub Jelinek <jakub@redhat.com>
20191 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20192 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20193 (gimplify_adjust_omp_clauses): Simd region is never
20194 directly nested in combined parallel. Instead, for linear
20195 with copyin/copyout, if in combined for simd loop, make decl
20196 firstprivate/lastprivate on OMP_FOR.
20197 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20198 expand_omp_for_static_chunk): When setting endvar, also set
20199 fd->loop.v to the same value.
20201 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20203 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20205 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
20207 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20210 2014-05-02 Marek Polacek <polacek@redhat.com>
20212 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20214 2014-05-02 Kito Cheng <kito@0xlab.org>
20216 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20217 to a C expression marco.
20218 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20219 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20220 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20221 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20222 HONOR_REG_ALLOC_ORDER.
20223 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20225 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20227 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20229 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20231 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20233 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20235 * tree-if-conv.c (is_cond_scalar_reduction): New function.
20236 (convert_scalar_cond_reduction): Likewise.
20237 (predicate_scalar_phi): Add recognition and transformation
20238 of simple conditioanl reduction to be vectorizable.
20240 2014-05-01 Marek Polacek <polacek@redhat.com>
20243 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
20245 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
20247 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
20248 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
20249 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
20250 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
20251 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
20252 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
20253 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
20254 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
20256 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
20258 * config/arc/arc.opt (mlra): Move comment above option name
20259 to avoid mis-parsing as language options.
20261 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20263 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
20264 * config/sol2.h: ... here.
20265 * config/sol2-10.h: Remove.
20267 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
20268 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
20269 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
20270 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
20271 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
20272 * config/sol2.h: ... here.
20273 (SECTION_NAME_FORMAT): Don't redefine.
20274 (STARTFILE_ARCH32_SPEC): Rename to ...
20275 (STARTFILE_ARCH_SPEC): ... this.
20276 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20277 * config/sparc/sol2.h: ... here.
20278 (SECTION_NAME_FORMAT): Don't undef.
20279 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
20280 (SUBTARGET_EXTRA_SPECS): Remove.
20281 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
20283 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
20284 (MD_STARTFILE_PREFIX): Remove.
20285 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
20286 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
20287 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
20288 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
20289 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
20290 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
20291 * config/i386/sol2.h: ... here.
20292 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
20293 * config/i386/sol2-bi.h: Remove.
20294 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
20295 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
20297 * config/i386/t-sol2-64: Rename to ...
20298 * config/i386/t-sol2: ... this.
20299 * config/sparc/t-sol2-64: Rename to ...
20300 * config/sparc/t-sol2: ... this.
20302 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
20303 sol2_tm_file_head, sol2_tm_file_tail.
20304 Include ${cpu_type}/sol2.h before sol2.h.
20306 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
20307 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
20308 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
20309 Reflect i386/t-sol2-64 renaming.
20310 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
20311 Reflect sparc/t-sol2-64 renaming.
20313 2014-04-30 Richard Biener <rguenther@suse.de>
20315 * passes.c (execute_function_todo): Move TODO_verify_stmts
20316 and TODO_verify_ssa under the TODO_verify_il umbrella.
20317 * tree-ssa.h (verify_ssa): Adjust prototype.
20318 * tree-ssa.c (verify_ssa): Add parameter to tell whether
20319 we should verify SSA operands.
20320 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20321 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20322 whether we should verify whether not throwing stmts have EH info.
20323 * graphite-scop-detection.c (create_sese_edges): Adjust.
20324 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20325 * tree-eh.c (lower_try_finally_switch): Do not add the
20326 default case label twice.
20328 2014-04-30 Marek Polacek <polacek@redhat.com>
20330 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20331 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20332 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20333 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20335 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
20337 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20338 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20339 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20340 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20341 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20342 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20343 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20344 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20346 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20348 * tree-cfg.c (dump_function_to_file): Dump the return type of
20349 functions, in a line to itself before the function body, mimicking
20350 the layout of a C function.
20352 2014-04-29 Jakub Jelinek <jakub@redhat.com>
20354 PR tree-optimization/60971
20355 * tree-tailcall.c (process_assignment): Reject conversions which
20358 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
20360 * calls.c (initialize_argument_information): Always treat
20361 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
20362 (expand_call): Likewise.
20363 (emit_library_call_calue_1): Likewise.
20364 * expr.c (PUSH_ARGS_REVERSED): Do not define.
20365 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
20368 2014-04-29 Nick Clifton <nickc@redhat.com>
20370 * config/msp430/msp430.md (umulsidi): Fix typo.
20371 (mulhisi3): Enable even inside interrupt handlers.
20372 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
20373 bigger return address pushed in large mode.
20375 2014-04-29 Nick Clifton <nickc@redhat.com>
20377 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
20378 (arc_init_reg_tables): Use a machine_mode enum to iterate over
20380 * config/m32r/m32r.c (init_reg_tables): Likewise.
20381 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
20382 enum to hold the modes.
20384 2014-04-29 Richard Biener <rguenther@suse.de>
20386 * dominance.c (free_dominance_info): Add overload with
20387 function parameter.
20388 (dom_info_state): Likewise.
20389 (dom_info_available_p): Likewise.
20390 * basic-block.h (free_dominance_info, dom_info_state,
20391 dom_info_available_p): Declare overloads.
20392 * passes.c (execute_function_todo): Verify that verifiers
20393 don't change dominator info state. Drop dominator info
20394 for IPA pass invocations.
20395 * cgraph.c (release_function_body): Restore asserts that
20396 dominator information is released.
20398 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
20400 * doc/invoke.texi: Fix typo.
20401 * tree-vrp.c: Fix typos.
20402 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
20404 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20406 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
20408 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
20410 * config/aarch64/aarch64-builtins.c
20411 (aarch64_types_storestruct_lane_qualifiers): New.
20412 (TYPES_STORESTRUCT_LANE): Likewise.
20413 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20414 (st3_lane): Likewise.
20415 (st4_lane): Likewise.
20416 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20417 (vec_store_lanesci_lane<mode>): Likewise.
20418 (vec_store_lanesxi_lane<mode>): Likewise.
20419 (aarch64_st2_lane<VQ:mode>): Likewise.
20420 (aarch64_st3_lane<VQ:mode>): Likewise.
20421 (aarch64_st4_lane<VQ:mode>): Likewise.
20422 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20423 * config/aarch64/arm_neon.h
20424 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20425 use new macro arguments.
20426 (__ST3_LANE_FUNC): Likewise.
20427 (__ST4_LANE_FUNC): Likewise.
20428 * config/aarch64/iterators.md (V_TWO_ELEM): New.
20429 (V_THREE_ELEM): Likewise.
20430 (V_FOUR_ELEM): Likewise.
20432 2014-04-28 David Malcolm <dmalcolm@redhat.com>
20434 * doc/gimple.texi: Replace the description of the now-defunct
20435 union gimple_statement_d with a diagram showing the
20436 gimple_statement_base class hierarchy and its relationships to
20437 the GSS_ and GIMPLE_ enums.
20439 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
20441 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20442 * config/aarch64/aarch64.c
20443 (aarch64_cannot_change_mode_class): Weaken conditions.
20444 (aarch64_modes_tieable_p): New.
20445 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20447 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
20449 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20450 (loadsync_<mode>): Change mode.
20451 (load_quadpti, store_quadpti): New.
20452 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20453 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20455 2014-04-28 Martin Jambor <mjambor@suse.cz>
20457 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20458 same alias type as the original statement.
20459 (subreplacement_assignment_data): New type.
20460 (handle_unscalarized_data_in_subtree): New type of parameter,
20461 generate new memory accesses with same alias type as the original
20463 (load_assign_lhs_subreplacements): Likewise.
20464 (sra_modify_constructor_assign): Generate new memory accesses with
20465 same alias type as the original statement.
20467 2014-04-28 Richard Biener <rguenther@suse.de>
20469 * tree-pass.h (TODO_verify_il): Define.
20470 (TODO_verify_all): Complete properly.
20471 * passes.c (execute_function_todo): Move existing loop-closed
20472 SSA verification under TODO_verify_il.
20473 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20474 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20475 Fix tree sharing issue.
20477 2014-04-28 Richard Biener <rguenther@suse.de>
20479 PR middle-end/60092
20480 * builtins.def (DEF_C11_BUILTIN): Add.
20481 (BUILT_IN_ALIGNED_ALLOC): Likewise.
20482 * coretypes.h (enum function_class): Add function_c11_misc.
20483 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20484 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20485 (call_may_clobber_ref_p_1): Likewise.
20486 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20487 (mark_all_reaching_defs_necessary_1): Likewise.
20488 (propagate_necessity): Likewise.
20489 (eliminate_unnecessary_stmts): Likewise.
20490 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20492 2014-04-28 Richard Biener <rguenther@suse.de>
20494 * tree-vrp.c (vrp_var_may_overflow): Remove.
20495 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20496 with overflow immediately bump to one before that value and
20497 let iteration figure out overflow status.
20499 2014-04-28 Richard Biener <rguenther@suse.de>
20501 * configure.ac: Do valgrind header checks unconditionally.
20502 Add --enable-valgrind-annotations.
20503 * system.h: Guard valgrind header inclusion with
20504 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20505 * alloc-pool.c (pool_alloc, pool_free): Use
20506 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20507 to guard possibly dead code.
20508 * config.in: Regenerated.
20509 * configure: Likewise.
20511 2014-04-28 Jeff Law <law@redhat.com>
20513 PR tree-optimization/60902
20514 * tree-ssa-threadedge.c
20515 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20516 over real defs when invalidating outputs from statements that do not
20517 produce useful outputs for threading.
20519 2014-04-28 Richard Biener <rguenther@suse.de>
20521 PR tree-optimization/60979
20522 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20523 SCOPs that end in a block with a successor with abnormal
20526 2014-04-28 Richard Biener <rguenther@suse.de>
20528 * tree-pass.h (execute_pass_list): Adjust prototype.
20529 * passes.c (pass_manager::execute_early_local_passes): Adjust.
20530 (do_per_function): Change callback signature, push all actual
20531 work to the callbals.
20532 (do_per_function_toporder): Likewise.
20533 (execute_function_dump): Adjust.
20534 (execute_function_todo): Likewise.
20535 (clear_last_verified): Likewise.
20536 (verify_curr_properties): Likewise.
20537 (update_properties_after_pass): Likewise.
20538 (execute_pass_list_1): Split out from ...
20539 (execute_pass_list): ... here. Adjust.
20540 (execute_ipa_pass_list): Likewise.
20541 * cgraphunit.c (cgraph_add_new_function): Adjust.
20542 (analyze_function): Likewise.
20543 (expand_function): Likewise.
20544 * cgraph.c (release_function_body): Free dominance info
20545 here instead of asserting it was magically freed elsewhere.
20547 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
20549 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20550 * configure: Regenerate.
20551 * config/sparc/sparc.opt (muser-mode): New option.
20552 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20554 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20555 * doc/invoke.texi (SPARC options): Document -muser-mode.
20557 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20559 * cselib.c (find_slot_memmode): Delete.
20560 (cselib_hasher): Change compare_type to a struct.
20561 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
20563 (preserve_constants_and_equivs): Adjust for new compare_type.
20564 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
20565 (wrap_constant): Delete.
20566 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20568 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
20570 * doc/install.texi (Building with profile feedback): Remove
20573 2014-04-26 Tom de Vries <tom@codesourcery.com>
20575 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20578 2014-04-25 Cary Coutant <ccoutant@google.com>
20581 * dwarf2out.c (should_move_die_to_comdat): A type definition
20582 can contain a subprogram definition, but don't move it to a
20584 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20585 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20587 (clone_tree_hash): Rename to...
20588 (clone_tree_partial): ...this; change callers. Copy
20589 DW_TAG_subprogram DIEs as declarations.
20590 (copy_decls_walk): Don't copy children of a declaration into a
20593 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
20596 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20599 2014-04-25 Jiong Wang <jiong.wang@arm.com>
20601 * config/arm/predicates.md (call_insn_operand): Add long_call check.
20602 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20604 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20607 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20609 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20611 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20613 PR tree-optimization/60930
20614 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
20615 creating a multiply candidate by folding two constant
20616 multiplicands when the result overflows.
20618 2014-04-25 Jakub Jelinek <jakub@redhat.com>
20620 PR tree-optimization/60960
20621 * tree-vect-generic.c (expand_vector_operation): Only call
20622 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20624 2014-04-25 Tom de Vries <tom@codesourcery.com>
20626 * expr.c (clobber_reg_mode): New function.
20627 * expr.h (clobber_reg): New function.
20629 2014-04-25 Tom de Vries <tom@codesourcery.com>
20631 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20634 2014-04-25 Radovan Obradovic <robradovic@mips.com>
20635 Tom de Vries <tom@codesourcery.com>
20637 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20639 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20640 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20641 new argument to find_all_hard_reg_sets call.
20643 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20645 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20646 Use HOST_WIDE_INT_C for mask literal.
20647 (aarch_rev16_shleft_mask_imm_p): Likewise.
20649 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
20652 * config/sparc/sparc.md (ashlsi3_extend): Delete.
20654 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
20656 PR preprocessor/56540
20657 * config/i386/i386-c.c (ix86_target_macros): Define
20658 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20660 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20662 * configure.ac (tga_func): Remove.
20663 (LIB_TLS_SPEC): Remove.
20664 * configure: Regenerate.
20665 * config.in: Regenerate.
20666 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20668 2014-04-25 Richard Biener <rguenther@suse.de>
20671 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20672 call stmt use/clobber sets during stmt walk instead of
20673 walking the possibly incomplete set of caller edges.
20675 2014-04-25 Richard Biener <rguenther@suse.de>
20678 * passes.c (apply_ipa_transforms): Inline into only caller ...
20679 (execute_one_pass): ... here. Properly bring in function
20680 bodies for nodes we want to apply IPA transforms to.
20682 2014-04-24 Cong Hou <congh@google.com>
20684 PR tree-optimization/60896
20685 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20686 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20687 (vect_mark_pattern_stmts): Set the def type of all statements in
20688 PATTERN_DEF_SEQ as vect_internal_def.
20690 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20692 * doc/extend.texi (PowerPC Built-in Functions): Document new
20693 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20694 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20696 * config/rs6000/predicates.md (const_0_to_3_operand): New
20697 predicate to match 0..3 integer constants.
20699 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20700 to support adding miscellaneous builtin functions.
20701 (BU_DFP_MISC_2): Likewise.
20702 (BU_P7_MISC_1): Likewise.
20703 (BU_P7_MISC_2): Likewise.
20704 (BU_P8V_MISC_3): Likewise.
20705 (BU_MISC_1): Likewise.
20706 (BU_MISC_2): Likewise.
20707 (DIVWE): Add extended divide builtin functions.
20708 (DIVWEO): Likewise.
20709 (DIVWEU): Likewise.
20710 (DIVWEUO): Likewise.
20712 (DIVDEO): Likewise.
20713 (DIVDEU): Likewise.
20714 (DIVDEUO): Likewise.
20715 (DXEX): Add decimal floating-point builtin functions.
20717 (DDEDPD): Likewise.
20718 (DDEDPDQ): Likewise.
20719 (DENBCD): Likewise.
20720 (DENBCDQ): Likewise.
20724 (DSCLIQ): Likewise.
20726 (DSCRIQ): Likewise.
20727 (CDTBCD): Add new BCD builtin functions.
20728 (CBCDTD): Likewise.
20729 (ADDG6S): Likewise.
20730 (BCDADD): Likewise.
20731 (BCDADD_LT): Likewise.
20732 (BCDADD_EQ): Likewise.
20733 (BCDADD_GT): Likewise.
20734 (BCDADD_OV): Likewise.
20735 (BCDSUB): Likewise.
20736 (BCDSUB_LT): Likewise.
20737 (BCDSUB_EQ): Likewise.
20738 (BCDSUB_GT): Likewise.
20739 (BCDSUB_OV): Likewise.
20740 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20741 (UNPACK_TD): Likewise.
20742 (PACK_TF): Likewise.
20743 (UNPACK_TF): Likewise.
20744 (UNPACK_TF_0): Likewise.
20745 (UNPACK_TF_1): Likewise.
20746 (PACK_V1TI): Likewise.
20747 (UNPACK_V1TI): Likewise.
20749 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20750 support for decimal floating point builtin functions.
20751 (rs6000_expand_ternop_builtin): Add checks for the new builtin
20752 functions that take constant arguments.
20753 (rs6000_invalid_builtin): Add decimal floating point builtin support.
20754 (rs6000_init_builtins): Setup long double, _Decimal64, and
20755 _Decimal128 types for new builtin functions.
20756 (builtin_function_type): Set the unsigned flags appropriately for
20757 the new builtin functions.
20758 (rs6000_opt_masks): Add support for decimal floating point builtin
20761 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20762 floating point builtin functions.
20763 (RS6000_BTM_COMMON): Likewise.
20764 (RS6000_BTI_long_double): Likewise.
20765 (RS6000_BTI_dfloat64): Likewise.
20766 (RS6000_BTI_dfloat128): Likewise.
20767 (long_double_type_internal_node): Likewise.
20768 (dfloat64_type_internal_node): Likewise.
20769 (dfloat128_type_internal_node): Likewise.
20771 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20772 2.07 bcd arithmetic instructions.
20773 (UNSPEC_BCDSUB): Likewise.
20774 (UNSPEC_BCD_OVERFLOW): Likewise.
20775 (UNSPEC_BCD_ADD_SUB): Likewise.
20776 (bcd_add_sub): Likewise.
20777 (BCD_TEST): Likewise.
20778 (bcd<bcd_add_sub>): Likewise.
20779 (bcd<bcd_add_sub>_test): Likewise.
20780 (bcd<bcd_add_sub>_test2): Likewise.
20781 (bcd<bcd_add_sub>_<code>): Likewise.
20782 (peephole2 for combined bcd ops): Likewise.
20784 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20785 decimal floating point builtin functions.
20786 (UNSPEC_DENBCD): Likewise.
20787 (UNSPEC_DXEX): Likewise.
20788 (UNSPEC_DIEX): Likewise.
20789 (UNSPEC_DSCLI): Likewise.
20790 (UNSPEC_DSCRI): Likewise.
20791 (D64_D128): Likewise.
20792 (dfp_suffix): Likewise.
20793 (dfp_ddedpd_<mode>): Likewise.
20794 (dfp_denbcd_<mode>): Likewise.
20795 (dfp_dxex_<mode>): Likewise.
20796 (dfp_diex_<mode>): Likewise.
20797 (dfp_dscli_<mode>): Likewise.
20798 (dfp_dscri_<mode>): Likewise.
20800 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20802 (UNSPEC_CDTBCD): Likewise.
20803 (UNSPEC_CBCDTD): Likewise.
20804 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20805 (UNSPEC_DIVEO): Likewise.
20806 (UNSPEC_DIVEU): Likewise.
20807 (UNSPEC_DIVEUO): Likewise.
20808 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20809 pack/unpack 128-bit types.
20810 (UNSPEC_PACK_128BIT): Likewise.
20811 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20812 (udiv<mode>3): Use idiv_ldiv mode attribute.
20813 (div<mode>3): Likewise.
20814 (addg6s): Add new BCD builtin functions.
20815 (cdtbcd): Likewise.
20816 (cbcdtd): Likewise.
20817 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20818 (div_extend): Likewise.
20819 (div<div_extend>_<mode>"): Likewise.
20820 (FP128_64): Add support for new builtin functions to pack/unpack
20822 (unpack<mode>): Likewise.
20823 (unpacktf_0): Likewise.
20824 (unpacktf_1): Likewise.
20825 (unpack<mode>_dm): Likewise.
20826 (unpack<mode>_nodm): Likewise.
20827 (pack<mode>): Likewise.
20828 (unpackv1ti): Likewise.
20829 (packv1ti): Likewise.
20831 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
20833 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20836 2014-04-24 Jakub Jelinek <jakub@redhat.com>
20838 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20839 * gimplify.c (omp_is_private): Change last argument's type to int.
20840 Only diagnose lastprivate if the simd argument is 1, only diagnose
20841 linear if the simd argument is 2.
20842 (gimplify_omp_for): Adjust omp_is_private callers. When adding
20843 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
20844 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
20845 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20846 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20847 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20848 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20849 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20850 * tree-nested.c (convert_nonlocal_omp_clauses,
20851 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20853 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
20856 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20859 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
20861 * flag-types.h (enum ivar_visibility): Add.
20863 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
20865 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20866 function * argument.
20868 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
20870 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20872 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20873 Tom de Vries <tom@codesourcery.com>
20875 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20876 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20878 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20879 * emit-rtl.c (try_split): Same.
20881 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20882 Tom de Vries <tom@codesourcery.com>
20884 * common.opt (fuse-caller-save): New option.
20886 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
20888 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20889 elements for big-endian.
20891 2014-04-24 Richard Biener <rguenther@suse.de>
20893 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20894 during TER and instead use the sepops interface for expanding
20895 non-GIMPLE_SINGLE_RHS.
20897 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20899 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20900 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20902 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20904 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20905 assembler 64-bit option.
20906 * configure: Regenerate.
20908 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20910 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20911 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20912 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20913 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20914 (TARGET_CRYPTO): Take TARGET_SIMD into account.
20916 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20918 * config/aarch64/aarch64-builtins.c
20919 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20920 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20921 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20922 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20924 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20925 (Vrevsuff): New mode attribute.
20927 2014-04-24 Terry Guo <terry.guo@arm.com>
20929 * config/arm/arm.h (machine_function): Define variable
20930 after_arm_reorg here.
20931 * config/arm/arm.c (after_arm_reorg): Remove the definition.
20932 (arm_split_constant): Update the way to access variable
20934 (arm_reorg): Ditto.
20935 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20937 2014-04-23 Tom de Vries <tom@codesourcery.com>
20939 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20941 2014-04-23 David Malcolm <dmalcolm@redhat.com>
20943 * is-a.h: Update comments to reflect the following changes to the
20944 "pointerness" of the API, making the template parameter match the
20945 return type, allowing use of is-a.h with typedefs of pointers.
20946 (is_a_helper::cast): Return a T rather then a pointer to a T, so
20947 that the return type matches the parameter to the is_a_helper.
20949 (dyn_cast): Likewise.
20951 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20952 pointer from the is-a.h API.
20954 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20955 (is_a_helper <cgraph_node *>::test): ...this, matching change to
20957 (is_a_helper <varpool_node>::test): Likewise, convert to...
20958 (is_a_helper <varpool_node *>::test): ...this.
20960 (varpool_first_variable): Update for removal of implicit pointer
20961 from the is-a.h API.
20962 (varpool_next_variable): Likewise.
20963 (varpool_first_static_initializer): Likewise.
20964 (varpool_next_static_initializer): Likewise.
20965 (varpool_first_defined_variable): Likewise.
20966 (varpool_next_defined_variable): Likewise.
20967 (cgraph_first_defined_function): Likewise.
20968 (cgraph_next_defined_function): Likewise.
20969 (cgraph_first_function): Likewise.
20970 (cgraph_next_function): Likewise.
20971 (cgraph_first_function_with_gimple_body): Likewise.
20972 (cgraph_next_function_with_gimple_body): Likewise.
20973 (cgraph_alias_target): Likewise.
20974 (varpool_alias_target): Likewise.
20975 (cgraph_function_or_thunk_node): Likewise.
20976 (varpool_variable_node): Likewise.
20977 (symtab_real_symbol_p): Likewise.
20978 * cgraphunit.c (referred_to_p): Likewise.
20979 (analyze_functions): Likewise.
20980 (handle_alias_pairs): Likewise.
20981 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20982 * gimple-ssa.h (gimple_vuse_op): Likewise.
20983 (gimple_vdef_op): Likewise.
20984 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20985 * gimple.c (gimple_build_asm_1): Likewise.
20986 (gimple_build_try): Likewise.
20987 (gimple_build_resx): Likewise.
20988 (gimple_build_eh_dispatch): Likewise.
20989 (gimple_build_omp_for): Likewise.
20990 (gimple_omp_for_set_clauses): Likewise.
20992 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20993 (is_a_helper <gimple_statement_asm *>::test): ...this.
20994 (is_a_helper <gimple_statement_bind>::test): Convert to...
20995 (is_a_helper <gimple_statement_bind *>::test): ...this.
20996 (is_a_helper <gimple_statement_call>::test): Convert to...
20997 (is_a_helper <gimple_statement_call *>::test): ...this.
20998 (is_a_helper <gimple_statement_catch>::test): Convert to...
20999 (is_a_helper <gimple_statement_catch *>::test): ...this.
21000 (is_a_helper <gimple_statement_resx>::test): Convert to...
21001 (is_a_helper <gimple_statement_resx *>::test): ...this.
21002 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21003 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21004 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21005 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21006 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21007 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21008 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21009 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21010 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21011 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21012 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21013 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21014 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21015 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21016 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21017 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21018 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21019 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21020 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21021 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21022 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21023 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21024 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21025 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21026 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21027 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21028 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21029 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21030 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21031 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21032 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21033 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21034 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21035 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21036 (is_a_helper <gimple_statement_phi>::test): Convert to...
21037 (is_a_helper <gimple_statement_phi *>::test): ...this.
21038 (is_a_helper <gimple_statement_transaction>::test): Convert to...
21039 (is_a_helper <gimple_statement_transaction *>::test): ...this.
21040 (is_a_helper <gimple_statement_try>::test): Convert to...
21041 (is_a_helper <gimple_statement_try *>::test): ...this.
21042 (is_a_helper <gimple_statement_wce>::test): Convert to...
21043 (is_a_helper <gimple_statement_wce *>::test): ...this.
21044 (is_a_helper <const gimple_statement_asm>::test): Convert to...
21045 (is_a_helper <const gimple_statement_asm *>::test): ...this.
21046 (is_a_helper <const gimple_statement_bind>::test): Convert to...
21047 (is_a_helper <const gimple_statement_bind *>::test): ...this.
21048 (is_a_helper <const gimple_statement_call>::test): Convert to...
21049 (is_a_helper <const gimple_statement_call *>::test): ...this.
21050 (is_a_helper <const gimple_statement_catch>::test): Convert to...
21051 (is_a_helper <const gimple_statement_catch *>::test): ...this.
21052 (is_a_helper <const gimple_statement_resx>::test): Convert to...
21053 (is_a_helper <const gimple_statement_resx *>::test): ...this.
21054 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21055 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21056 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21057 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21058 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21060 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21062 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21064 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21066 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21067 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21068 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21070 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21071 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21073 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21074 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21075 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21076 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21077 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21078 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21080 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21081 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21082 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21083 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21085 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21086 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21087 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21088 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21089 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21090 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21091 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21092 (is_a_helper <const gimple_statement_phi>::test): Convert to...
21093 (is_a_helper <const gimple_statement_phi *>::test): ...this.
21094 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21095 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21096 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21097 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21098 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21099 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21100 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21102 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21104 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21105 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21107 (gimple_use_ops): Update for removal of implicit pointer from the
21109 (gimple_set_use_ops): Likewise.
21110 (gimple_vuse): Likewise.
21111 (gimple_vdef): Likewise.
21112 (gimple_vuse_ptr): Likewise.
21113 (gimple_vdef_ptr): Likewise.
21114 (gimple_set_vuse): Likewise.
21115 (gimple_set_vdef): Likewise.
21116 (gimple_omp_return_set_lhs): Likewise.
21117 (gimple_omp_return_lhs): Likewise.
21118 (gimple_omp_return_lhs_ptr): Likewise.
21119 (gimple_call_fntype): Likewise.
21120 (gimple_call_set_fntype): Likewise.
21121 (gimple_call_set_internal_fn): Likewise.
21122 (gimple_call_use_set): Likewise.
21123 (gimple_call_clobber_set): Likewise.
21124 (gimple_bind_vars): Likewise.
21125 (gimple_bind_set_vars): Likewise.
21126 (gimple_bind_body_ptr): Likewise.
21127 (gimple_bind_set_body): Likewise.
21128 (gimple_bind_add_stmt): Likewise.
21129 (gimple_bind_block): Likewise.
21130 (gimple_bind_set_block): Likewise.
21131 (gimple_asm_ninputs): Likewise.
21132 (gimple_asm_noutputs): Likewise.
21133 (gimple_asm_nclobbers): Likewise.
21134 (gimple_asm_nlabels): Likewise.
21135 (gimple_asm_input_op): Likewise.
21136 (gimple_asm_input_op_ptr): Likewise.
21137 (gimple_asm_output_op): Likewise.
21138 (gimple_asm_output_op_ptr): Likewise.
21139 (gimple_asm_set_output_op): Likewise.
21140 (gimple_asm_clobber_op): Likewise.
21141 (gimple_asm_set_clobber_op): Likewise.
21142 (gimple_asm_label_op): Likewise.
21143 (gimple_asm_set_label_op): Likewise.
21144 (gimple_asm_string): Likewise.
21145 (gimple_catch_types): Likewise.
21146 (gimple_catch_types_ptr): Likewise.
21147 (gimple_catch_handler_ptr): Likewise.
21148 (gimple_catch_set_types): Likewise.
21149 (gimple_catch_set_handler): Likewise.
21150 (gimple_eh_filter_types): Likewise.
21151 (gimple_eh_filter_types_ptr): Likewise.
21152 (gimple_eh_filter_failure_ptr): Likewise.
21153 (gimple_eh_filter_set_types): Likewise.
21154 (gimple_eh_filter_set_failure): Likewise.
21155 (gimple_eh_must_not_throw_fndecl): Likewise.
21156 (gimple_eh_must_not_throw_set_fndecl): Likewise.
21157 (gimple_eh_else_n_body_ptr): Likewise.
21158 (gimple_eh_else_e_body_ptr): Likewise.
21159 (gimple_eh_else_set_n_body): Likewise.
21160 (gimple_eh_else_set_e_body): Likewise.
21161 (gimple_try_eval_ptr): Likewise.
21162 (gimple_try_cleanup_ptr): Likewise.
21163 (gimple_try_set_eval): Likewise.
21164 (gimple_try_set_cleanup): Likewise.
21165 (gimple_wce_cleanup_ptr): Likewise.
21166 (gimple_wce_set_cleanup): Likewise.
21167 (gimple_phi_capacity): Likewise.
21168 (gimple_phi_num_args): Likewise.
21169 (gimple_phi_result): Likewise.
21170 (gimple_phi_result_ptr): Likewise.
21171 (gimple_phi_set_result): Likewise.
21172 (gimple_phi_arg): Likewise.
21173 (gimple_phi_set_arg): Likewise.
21174 (gimple_resx_region): Likewise.
21175 (gimple_resx_set_region): Likewise.
21176 (gimple_eh_dispatch_region): Likewise.
21177 (gimple_eh_dispatch_set_region): Likewise.
21178 (gimple_omp_critical_name): Likewise.
21179 (gimple_omp_critical_name_ptr): Likewise.
21180 (gimple_omp_critical_set_name): Likewise.
21181 (gimple_omp_for_clauses): Likewise.
21182 (gimple_omp_for_clauses_ptr): Likewise.
21183 (gimple_omp_for_set_clauses): Likewise.
21184 (gimple_omp_for_collapse): Likewise.
21185 (gimple_omp_for_index): Likewise.
21186 (gimple_omp_for_index_ptr): Likewise.
21187 (gimple_omp_for_set_index): Likewise.
21188 (gimple_omp_for_initial): Likewise.
21189 (gimple_omp_for_initial_ptr): Likewise.
21190 (gimple_omp_for_set_initial): Likewise.
21191 (gimple_omp_for_final): Likewise.
21192 (gimple_omp_for_final_ptr): Likewise.
21193 (gimple_omp_for_set_final): Likewise.
21194 (gimple_omp_for_incr): Likewise.
21195 (gimple_omp_for_incr_ptr): Likewise.
21196 (gimple_omp_for_set_incr): Likewise.
21197 (gimple_omp_for_pre_body_ptr): Likewise.
21198 (gimple_omp_for_set_pre_body): Likewise.
21199 (gimple_omp_parallel_clauses): Likewise.
21200 (gimple_omp_parallel_clauses_ptr): Likewise.
21201 (gimple_omp_parallel_set_clauses): Likewise.
21202 (gimple_omp_parallel_child_fn): Likewise.
21203 (gimple_omp_parallel_child_fn_ptr): Likewise.
21204 (gimple_omp_parallel_set_child_fn): Likewise.
21205 (gimple_omp_parallel_data_arg): Likewise.
21206 (gimple_omp_parallel_data_arg_ptr): Likewise.
21207 (gimple_omp_parallel_set_data_arg): Likewise.
21208 (gimple_omp_task_clauses): Likewise.
21209 (gimple_omp_task_clauses_ptr): Likewise.
21210 (gimple_omp_task_set_clauses): Likewise.
21211 (gimple_omp_task_child_fn): Likewise.
21212 (gimple_omp_task_child_fn_ptr): Likewise.
21213 (gimple_omp_task_set_child_fn): Likewise.
21214 (gimple_omp_task_data_arg): Likewise.
21215 (gimple_omp_task_data_arg_ptr): Likewise.
21216 (gimple_omp_task_set_data_arg): Likewise.
21217 (gimple_omp_taskreg_clauses): Likewise.
21218 (gimple_omp_taskreg_clauses_ptr): Likewise.
21219 (gimple_omp_taskreg_set_clauses): Likewise.
21220 (gimple_omp_taskreg_child_fn): Likewise.
21221 (gimple_omp_taskreg_child_fn_ptr): Likewise.
21222 (gimple_omp_taskreg_set_child_fn): Likewise.
21223 (gimple_omp_taskreg_data_arg): Likewise.
21224 (gimple_omp_taskreg_data_arg_ptr): Likewise.
21225 (gimple_omp_taskreg_set_data_arg): Likewise.
21226 (gimple_omp_task_copy_fn): Likewise.
21227 (gimple_omp_task_copy_fn_ptr): Likewise.
21228 (gimple_omp_task_set_copy_fn): Likewise.
21229 (gimple_omp_task_arg_size): Likewise.
21230 (gimple_omp_task_arg_size_ptr): Likewise.
21231 (gimple_omp_task_set_arg_size): Likewise.
21232 (gimple_omp_task_arg_align): Likewise.
21233 (gimple_omp_task_arg_align_ptr): Likewise.
21234 (gimple_omp_task_set_arg_align): Likewise.
21235 (gimple_omp_single_clauses): Likewise.
21236 (gimple_omp_single_clauses_ptr): Likewise.
21237 (gimple_omp_single_set_clauses): Likewise.
21238 (gimple_omp_target_clauses): Likewise.
21239 (gimple_omp_target_clauses_ptr): Likewise.
21240 (gimple_omp_target_set_clauses): Likewise.
21241 (gimple_omp_target_child_fn): Likewise.
21242 (gimple_omp_target_child_fn_ptr): Likewise.
21243 (gimple_omp_target_set_child_fn): Likewise.
21244 (gimple_omp_target_data_arg): Likewise.
21245 (gimple_omp_target_data_arg_ptr): Likewise.
21246 (gimple_omp_target_set_data_arg): Likewise.
21247 (gimple_omp_teams_clauses): Likewise.
21248 (gimple_omp_teams_clauses_ptr): Likewise.
21249 (gimple_omp_teams_set_clauses): Likewise.
21250 (gimple_omp_sections_clauses): Likewise.
21251 (gimple_omp_sections_clauses_ptr): Likewise.
21252 (gimple_omp_sections_set_clauses): Likewise.
21253 (gimple_omp_sections_control): Likewise.
21254 (gimple_omp_sections_control_ptr): Likewise.
21255 (gimple_omp_sections_set_control): Likewise.
21256 (gimple_omp_for_set_cond): Likewise.
21257 (gimple_omp_for_cond): Likewise.
21258 (gimple_omp_atomic_store_set_val): Likewise.
21259 (gimple_omp_atomic_store_val): Likewise.
21260 (gimple_omp_atomic_store_val_ptr): Likewise.
21261 (gimple_omp_atomic_load_set_lhs): Likewise.
21262 (gimple_omp_atomic_load_lhs): Likewise.
21263 (gimple_omp_atomic_load_lhs_ptr): Likewise.
21264 (gimple_omp_atomic_load_set_rhs): Likewise.
21265 (gimple_omp_atomic_load_rhs): Likewise.
21266 (gimple_omp_atomic_load_rhs_ptr): Likewise.
21267 (gimple_omp_continue_control_def): Likewise.
21268 (gimple_omp_continue_control_def_ptr): Likewise.
21269 (gimple_omp_continue_set_control_def): Likewise.
21270 (gimple_omp_continue_control_use): Likewise.
21271 (gimple_omp_continue_control_use_ptr): Likewise.
21272 (gimple_omp_continue_set_control_use): Likewise.
21273 (gimple_transaction_body_ptr): Likewise.
21274 (gimple_transaction_label): Likewise.
21275 (gimple_transaction_label_ptr): Likewise.
21276 (gimple_transaction_set_body): Likewise.
21277 (gimple_transaction_set_label): Likewise.
21279 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
21280 * ipa-inline-analysis.c (inline_write_summary): Likewise.
21281 * ipa-ref.c (ipa_record_reference): Likewise.
21282 * ipa-reference.c (analyze_function): Likewise.
21283 (ipa_reference_write_optimization_summary): Likewise.
21284 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
21285 (address_taken_from_non_vtable_p): Likewise.
21286 (comdat_can_be_unshared_p_1): Likewise.
21287 * lto-cgraph.c (lto_output_ref): Likewise.
21288 (add_references): Likewise.
21289 (compute_ltrans_boundary): Likewise.
21290 (output_symtab): Likewise.
21291 (input_ref): Likewise.
21292 (input_cgraph_1): Likewise.
21293 (output_cgraph_opt_summary): Likewise.
21294 * lto-streamer-out.c (lto_output): Likewise.
21295 (output_symbol_p): Likewise.
21296 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
21297 (lsei_start_function_in_partition): Likewise.
21298 (lsei_next_variable_in_partition): Likewise.
21299 (lsei_start_variable_in_partition): Likewise.
21300 * symtab.c (insert_to_assembler_name_hash): Likewise.
21301 (unlink_from_assembler_name_hash): Likewise.
21302 (symtab_unregister_node): Likewise.
21303 (symtab_remove_node): Likewise.
21304 (dump_symtab_node): Likewise.
21305 (verify_symtab_base): Likewise.
21306 (verify_symtab_node): Likewise.
21307 (symtab_make_decl_local): Likewise.
21308 (symtab_alias_ultimate_target): Likewise.
21309 (symtab_resolve_alias): Likewise.
21310 (symtab_get_symbol_partitioning_class): Likewise.
21311 * tree-phinodes.c (allocate_phi_node): Likewise.
21312 (reserve_phi_args_for_new_edge): Likewise.
21313 (remove_phi_args): Likewise.
21314 * varpool.c (varpool_node_for_asm): Likewise.
21315 (varpool_remove_unreferenced_decls): Likewise.
21317 2014-04-23 Jeff Law <law@redhat.com>
21319 PR tree-optimization/60902
21320 * tree-ssa-threadedge.c
21321 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21322 invalidate outputs from statements that do not produce useful
21323 outputs for threading.
21325 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
21327 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21328 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21329 machine descriptions for Stack Smashing Protector.
21331 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
21333 * aarch64.md (<optab>_rol<mode>3): New pattern.
21334 (<optab>_rolsi3_uxtw): Likewise.
21335 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21337 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
21339 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21340 (arm_cortex_a12_tune): Likewise.
21342 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21344 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21346 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21348 * config/arm/arm.md (arm_rev16si2): New pattern.
21349 (arm_rev16si2_alt): Likewise.
21350 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21352 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21354 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21355 (rev16<mode>2_alt): Likewise.
21356 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21357 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
21358 (aarch_rev16_shleft_mask_imm_p): Likewise.
21359 (aarch_rev16_p_1): Likewise.
21360 (aarch_rev16_p): Likewise.
21361 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
21362 (aarch_rev16_shright_mask_imm_p): Likewise.
21363 (aarch_rev16_shleft_mask_imm_p): Likewise.
21365 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21367 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
21368 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
21370 (cortex_a53_extra_costs): Likewise.
21371 (cortex_a57_extra_costs): Likewise.
21372 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
21373 (cortexa7_extra_costs): Likewise.
21374 (cortexa8_extra_costs): Likewise.
21375 (cortexa12_extra_costs): Likewise.
21376 (cortexa15_extra_costs): Likewise.
21377 (v7m_extra_costs): Likewise.
21378 (arm_new_rtx_costs): Handle BSWAP.
21380 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21382 * config/arm/arm.c (cortexa8_extra_costs): New table.
21383 (arm_cortex_a8_tune): New tuning struct.
21384 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
21386 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21388 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
21390 2014-04-23 Richard Biener <rguenther@suse.de>
21392 * Makefile.in (OBJS): Remove loop-unswitch.o.
21393 * tree-pass.h (make_pass_rtl_unswitch): Remove.
21394 * passes.def (pass_rtl_unswitch): Likewise.
21395 * loop-init.c (gate_rtl_unswitch): Likewise.
21396 (rtl_unswitch): Likewise.
21397 (pass_data_rtl_unswitch): Likewise.
21398 (pass_rtl_unswitch): Likewise.
21399 (make_pass_rtl_unswitch): Likewise.
21400 * rtl.h (reversed_condition): Likewise.
21401 (compare_and_jump_seq): Likewise.
21402 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
21404 * loop-unroll.c (compare_and_jump_seq): Likewise.
21406 2014-04-23 Richard Biener <rguenther@suse.de>
21408 PR tree-optimization/60903
21409 * tree-ssa-loop-im.c (analyze_memory_references): Remove
21410 commented code block.
21411 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21412 loop flags to newly created BBs and edges.
21414 2014-04-23 Nick Clifton <nickc@redhat.com>
21416 * config/msp430/msp430.c (msp430_handle_option): Move function
21418 (msp430_option_override): Simplify mcu and mcpu option handling.
21419 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
21420 support for -mhwmult command line option.
21421 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
21422 -mhwmult command line option.
21423 (msp430_hwmult_enabled): Delete.
21424 (msp43o_output_labelref): Add support for -mhwmult command line option.
21425 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21426 (umulsidi3): Likewise.
21427 * config/msp430/msp430.opt (mmcu): Add Report attribute.
21428 (mcpu, mlarge, msmall): Likewise.
21429 (mhwmult): New option.
21430 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21432 (msp430_is_f5_mcu): Remove prototype.
21433 (msp430_use_f5_series_hwmult): Add prototype.
21434 * config/msp430/msp430-opts.h: New file.
21435 * common/config/msp430: New directory.
21436 * common/config/msp430/msp430-common.c: New file.
21437 * config.gcc (msp430): Remove target_has_targetm_common.
21438 * doc/invoke.texi: Document -mhwmult command line option.
21440 2014-04-23 Nick Clifton <nickc@redhat.com>
21442 * config/i386/cygwin.h (ENDFILE_SPEC): Include
21443 default-manifest.o if it can be found in the search path.
21444 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21446 2014-04-23 Terry Guo <terry.guo@arm.com>
21448 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21450 2014-04-23 Richard Biener <rguenther@suse.de>
21452 PR middle-end/60895
21453 * tree-inline.c (declare_return_variable): Use mark_addressable.
21455 2014-04-23 Richard Biener <rguenther@suse.de>
21457 PR middle-end/60891
21458 * loop-init.c (loop_optimizer_init): Make sure to apply
21459 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21461 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21464 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21466 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21467 if flag_sanitize_undefined_trap_on_error.
21468 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21469 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21470 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21471 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21472 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21473 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21474 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21475 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21476 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21477 * ubsan.c (ubsan_instrument_unreachable): Return
21478 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21479 (ubsan_expand_null_ifn): Emit __builtin_trap ()
21480 if flag_sanitize_undefined_trap_on_error and
21481 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21482 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21483 instrument_bool_enum_load): Emit __builtin_trap () if
21484 flag_sanitize_undefined_trap_on_error and
21485 __builtin_handle_*_abort () if !flag_sanitize_recover.
21486 * doc/invoke.texi (-fsanitize-recover,
21487 -fsanitize-undefined-trap-on-error): Document.
21489 2014-04-22 Christian Bruel <christian.bruel@st.com>
21491 * config/sh/sh.md (mov<mode>): Replace movQIHI.
21492 Force immediates to SImode.
21494 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
21496 * config/nios2/nios2.md (UNSPEC_ROUND): New.
21497 (lroundsfsi2): New.
21498 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21499 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21500 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21501 (nios2_fpu_insn): Add entry for round.
21502 (N2FPU_NO_ERRNO_P): Define.
21503 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21505 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21507 2014-04-22 Richard Henderson <rth@redhat.com>
21509 * config/aarch64/aarch64 (addti3, subti3): New expanders.
21510 (add<GPI>3_compare0): Remove leading * from name.
21511 (add<GPI>3_carryin): Likewise.
21512 (sub<GPI>3_compare0): Likewise.
21513 (sub<GPI>3_carryin): Likewise.
21514 (<su_optab>mulditi3): New expander.
21515 (multi3): New expander.
21516 (madd<GPI>): Remove leading * from name.
21518 2014-04-22 Martin Jambor <mjambor@suse.cz>
21520 * cgraphclones.c (cgraph_function_versioning): Copy
21521 ipa_transforms_to_apply instead of asserting it is empty.
21523 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
21526 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21527 on count_exp to get mode.
21529 2014-04-22 Andrew Pinski <apinski@cavium.com>
21531 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21532 Handle TLS for ILP32.
21533 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21534 (tlsie_small_<mode>): this and handle PTR.
21535 (tlsie_small_sidi): New pattern.
21536 (tlsle_small): Change to an expand to handle ILP32.
21537 (tlsle_small_<mode>): New pattern.
21538 (tlsdesc_small): Rename to ...
21539 (tlsdesc_small_<mode>): this and handle PTR.
21541 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21543 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21545 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21547 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21548 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21549 (aarch64_types_signed_poly_qualifiers): Likewise.
21550 (aarch64_types_unsigned_signed_qualifiers): Likewise.
21551 (aarch64_types_poly_signed_qualifiers): Likewise.
21552 (TYPES_REINTERP_SS): Type macro added.
21553 (TYPES_REINTERP_SU): Likewise.
21554 (TYPES_REINTERP_SP): Likewise.
21555 (TYPES_REINTERP_US): Likewise.
21556 (TYPES_REINTERP_PS): Likewise.
21557 (aarch64_fold_builtin): New expression folding added.
21558 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21559 Declarations removed.
21560 (REINTERP_SS): Declarations added.
21561 (REINTERP_US): Likewise.
21562 (REINTERP_PS): Likewise.
21563 (REINTERP_SU): Likewise.
21564 (REINTERP_SP): Likewise.
21565 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21566 (vreinterpretq_p8_f64): Likewise.
21567 (vreinterpret_p16_f64): Likewise.
21568 (vreinterpretq_p16_f64): Likewise.
21569 (vreinterpret_f32_f64): Likewise.
21570 (vreinterpretq_f32_f64): Likewise.
21571 (vreinterpret_f64_f32): Likewise.
21572 (vreinterpret_f64_p8): Likewise.
21573 (vreinterpret_f64_p16): Likewise.
21574 (vreinterpret_f64_s8): Likewise.
21575 (vreinterpret_f64_s16): Likewise.
21576 (vreinterpret_f64_s32): Likewise.
21577 (vreinterpret_f64_s64): Likewise.
21578 (vreinterpret_f64_u8): Likewise.
21579 (vreinterpret_f64_u16): Likewise.
21580 (vreinterpret_f64_u32): Likewise.
21581 (vreinterpret_f64_u64): Likewise.
21582 (vreinterpretq_f64_f32): Likewise.
21583 (vreinterpretq_f64_p8): Likewise.
21584 (vreinterpretq_f64_p16): Likewise.
21585 (vreinterpretq_f64_s8): Likewise.
21586 (vreinterpretq_f64_s16): Likewise.
21587 (vreinterpretq_f64_s32): Likewise.
21588 (vreinterpretq_f64_s64): Likewise.
21589 (vreinterpretq_f64_u8): Likewise.
21590 (vreinterpretq_f64_u16): Likewise.
21591 (vreinterpretq_f64_u32): Likewise.
21592 (vreinterpretq_f64_u64): Likewise.
21593 (vreinterpret_s64_f64): Likewise.
21594 (vreinterpretq_s64_f64): Likewise.
21595 (vreinterpret_u64_f64): Likewise.
21596 (vreinterpretq_u64_f64): Likewise.
21597 (vreinterpret_s8_f64): Likewise.
21598 (vreinterpretq_s8_f64): Likewise.
21599 (vreinterpret_s16_f64): Likewise.
21600 (vreinterpretq_s16_f64): Likewise.
21601 (vreinterpret_s32_f64): Likewise.
21602 (vreinterpretq_s32_f64): Likewise.
21603 (vreinterpret_u8_f64): Likewise.
21604 (vreinterpretq_u8_f64): Likewise.
21605 (vreinterpret_u16_f64): Likewise.
21606 (vreinterpretq_u16_f64): Likewise.
21607 (vreinterpret_u32_f64): Likewise.
21608 (vreinterpretq_u32_f64): Likewise.
21610 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21612 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21613 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21614 (vreinterpret_p8_s8): Likewise.
21615 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21616 (vreinterpret_p8_s16): Likewise.
21617 (vreinterpret_p8_s32): Likewise.
21618 (vreinterpret_p8_s64): Likewise.
21619 (vreinterpret_p8_f32): Likewise.
21620 (vreinterpret_p8_u8): Likewise.
21621 (vreinterpret_p8_u16): Likewise.
21622 (vreinterpret_p8_u32): Likewise.
21623 (vreinterpret_p8_u64): Likewise.
21624 (vreinterpret_p8_p16): Likewise.
21625 (vreinterpretq_p8_s8): Likewise.
21626 (vreinterpretq_p8_s16): Likewise.
21627 (vreinterpretq_p8_s32): Likewise.
21628 (vreinterpretq_p8_s64): Likewise.
21629 (vreinterpretq_p8_f32): Likewise.
21630 (vreinterpretq_p8_u8): Likewise.
21631 (vreinterpretq_p8_u16): Likewise.
21632 (vreinterpretq_p8_u32): Likewise.
21633 (vreinterpretq_p8_u64): Likewise.
21634 (vreinterpretq_p8_p16): Likewise.
21635 (vreinterpret_p16_s8): Likewise.
21636 (vreinterpret_p16_s16): Likewise.
21637 (vreinterpret_p16_s32): Likewise.
21638 (vreinterpret_p16_s64): Likewise.
21639 (vreinterpret_p16_f32): Likewise.
21640 (vreinterpret_p16_u8): Likewise.
21641 (vreinterpret_p16_u16): Likewise.
21642 (vreinterpret_p16_u32): Likewise.
21643 (vreinterpret_p16_u64): Likewise.
21644 (vreinterpret_p16_p8): Likewise.
21645 (vreinterpretq_p16_s8): Likewise.
21646 (vreinterpretq_p16_s16): Likewise.
21647 (vreinterpretq_p16_s32): Likewise.
21648 (vreinterpretq_p16_s64): Likewise.
21649 (vreinterpretq_p16_f32): Likewise.
21650 (vreinterpretq_p16_u8): Likewise.
21651 (vreinterpretq_p16_u16): Likewise.
21652 (vreinterpretq_p16_u32): Likewise.
21653 (vreinterpretq_p16_u64): Likewise.
21654 (vreinterpretq_p16_p8): Likewise.
21655 (vreinterpret_f32_s8): Likewise.
21656 (vreinterpret_f32_s16): Likewise.
21657 (vreinterpret_f32_s32): Likewise.
21658 (vreinterpret_f32_s64): Likewise.
21659 (vreinterpret_f32_u8): Likewise.
21660 (vreinterpret_f32_u16): Likewise.
21661 (vreinterpret_f32_u32): Likewise.
21662 (vreinterpret_f32_u64): Likewise.
21663 (vreinterpret_f32_p8): Likewise.
21664 (vreinterpret_f32_p16): Likewise.
21665 (vreinterpretq_f32_s8): Likewise.
21666 (vreinterpretq_f32_s16): Likewise.
21667 (vreinterpretq_f32_s32): Likewise.
21668 (vreinterpretq_f32_s64): Likewise.
21669 (vreinterpretq_f32_u8): Likewise.
21670 (vreinterpretq_f32_u16): Likewise.
21671 (vreinterpretq_f32_u32): Likewise.
21672 (vreinterpretq_f32_u64): Likewise.
21673 (vreinterpretq_f32_p8): Likewise.
21674 (vreinterpretq_f32_p16): Likewise.
21675 (vreinterpret_s64_s8): Likewise.
21676 (vreinterpret_s64_s16): Likewise.
21677 (vreinterpret_s64_s32): Likewise.
21678 (vreinterpret_s64_f32): Likewise.
21679 (vreinterpret_s64_u8): Likewise.
21680 (vreinterpret_s64_u16): Likewise.
21681 (vreinterpret_s64_u32): Likewise.
21682 (vreinterpret_s64_u64): Likewise.
21683 (vreinterpret_s64_p8): Likewise.
21684 (vreinterpret_s64_p16): Likewise.
21685 (vreinterpretq_s64_s8): Likewise.
21686 (vreinterpretq_s64_s16): Likewise.
21687 (vreinterpretq_s64_s32): Likewise.
21688 (vreinterpretq_s64_f32): Likewise.
21689 (vreinterpretq_s64_u8): Likewise.
21690 (vreinterpretq_s64_u16): Likewise.
21691 (vreinterpretq_s64_u32): Likewise.
21692 (vreinterpretq_s64_u64): Likewise.
21693 (vreinterpretq_s64_p8): Likewise.
21694 (vreinterpretq_s64_p16): Likewise.
21695 (vreinterpret_u64_s8): Likewise.
21696 (vreinterpret_u64_s16): Likewise.
21697 (vreinterpret_u64_s32): Likewise.
21698 (vreinterpret_u64_s64): Likewise.
21699 (vreinterpret_u64_f32): Likewise.
21700 (vreinterpret_u64_u8): Likewise.
21701 (vreinterpret_u64_u16): Likewise.
21702 (vreinterpret_u64_u32): Likewise.
21703 (vreinterpret_u64_p8): Likewise.
21704 (vreinterpret_u64_p16): Likewise.
21705 (vreinterpretq_u64_s8): Likewise.
21706 (vreinterpretq_u64_s16): Likewise.
21707 (vreinterpretq_u64_s32): Likewise.
21708 (vreinterpretq_u64_s64): Likewise.
21709 (vreinterpretq_u64_f32): Likewise.
21710 (vreinterpretq_u64_u8): Likewise.
21711 (vreinterpretq_u64_u16): Likewise.
21712 (vreinterpretq_u64_u32): Likewise.
21713 (vreinterpretq_u64_p8): Likewise.
21714 (vreinterpretq_u64_p16): Likewise.
21715 (vreinterpret_s8_s16): Likewise.
21716 (vreinterpret_s8_s32): Likewise.
21717 (vreinterpret_s8_s64): Likewise.
21718 (vreinterpret_s8_f32): Likewise.
21719 (vreinterpret_s8_u8): Likewise.
21720 (vreinterpret_s8_u16): Likewise.
21721 (vreinterpret_s8_u32): Likewise.
21722 (vreinterpret_s8_u64): Likewise.
21723 (vreinterpret_s8_p8): Likewise.
21724 (vreinterpret_s8_p16): Likewise.
21725 (vreinterpretq_s8_s16): Likewise.
21726 (vreinterpretq_s8_s32): Likewise.
21727 (vreinterpretq_s8_s64): Likewise.
21728 (vreinterpretq_s8_f32): Likewise.
21729 (vreinterpretq_s8_u8): Likewise.
21730 (vreinterpretq_s8_u16): Likewise.
21731 (vreinterpretq_s8_u32): Likewise.
21732 (vreinterpretq_s8_u64): Likewise.
21733 (vreinterpretq_s8_p8): Likewise.
21734 (vreinterpretq_s8_p16): Likewise.
21735 (vreinterpret_s16_s8): Likewise.
21736 (vreinterpret_s16_s32): Likewise.
21737 (vreinterpret_s16_s64): Likewise.
21738 (vreinterpret_s16_f32): Likewise.
21739 (vreinterpret_s16_u8): Likewise.
21740 (vreinterpret_s16_u16): Likewise.
21741 (vreinterpret_s16_u32): Likewise.
21742 (vreinterpret_s16_u64): Likewise.
21743 (vreinterpret_s16_p8): Likewise.
21744 (vreinterpret_s16_p16): Likewise.
21745 (vreinterpretq_s16_s8): Likewise.
21746 (vreinterpretq_s16_s32): Likewise.
21747 (vreinterpretq_s16_s64): Likewise.
21748 (vreinterpretq_s16_f32): Likewise.
21749 (vreinterpretq_s16_u8): Likewise.
21750 (vreinterpretq_s16_u16): Likewise.
21751 (vreinterpretq_s16_u32): Likewise.
21752 (vreinterpretq_s16_u64): Likewise.
21753 (vreinterpretq_s16_p8): Likewise.
21754 (vreinterpretq_s16_p16): Likewise.
21755 (vreinterpret_s32_s8): Likewise.
21756 (vreinterpret_s32_s16): Likewise.
21757 (vreinterpret_s32_s64): Likewise.
21758 (vreinterpret_s32_f32): Likewise.
21759 (vreinterpret_s32_u8): Likewise.
21760 (vreinterpret_s32_u16): Likewise.
21761 (vreinterpret_s32_u32): Likewise.
21762 (vreinterpret_s32_u64): Likewise.
21763 (vreinterpret_s32_p8): Likewise.
21764 (vreinterpret_s32_p16): Likewise.
21765 (vreinterpretq_s32_s8): Likewise.
21766 (vreinterpretq_s32_s16): Likewise.
21767 (vreinterpretq_s32_s64): Likewise.
21768 (vreinterpretq_s32_f32): Likewise.
21769 (vreinterpretq_s32_u8): Likewise.
21770 (vreinterpretq_s32_u16): Likewise.
21771 (vreinterpretq_s32_u32): Likewise.
21772 (vreinterpretq_s32_u64): Likewise.
21773 (vreinterpretq_s32_p8): Likewise.
21774 (vreinterpretq_s32_p16): Likewise.
21775 (vreinterpret_u8_s8): Likewise.
21776 (vreinterpret_u8_s16): Likewise.
21777 (vreinterpret_u8_s32): Likewise.
21778 (vreinterpret_u8_s64): Likewise.
21779 (vreinterpret_u8_f32): Likewise.
21780 (vreinterpret_u8_u16): Likewise.
21781 (vreinterpret_u8_u32): Likewise.
21782 (vreinterpret_u8_u64): Likewise.
21783 (vreinterpret_u8_p8): Likewise.
21784 (vreinterpret_u8_p16): Likewise.
21785 (vreinterpretq_u8_s8): Likewise.
21786 (vreinterpretq_u8_s16): Likewise.
21787 (vreinterpretq_u8_s32): Likewise.
21788 (vreinterpretq_u8_s64): Likewise.
21789 (vreinterpretq_u8_f32): Likewise.
21790 (vreinterpretq_u8_u16): Likewise.
21791 (vreinterpretq_u8_u32): Likewise.
21792 (vreinterpretq_u8_u64): Likewise.
21793 (vreinterpretq_u8_p8): Likewise.
21794 (vreinterpretq_u8_p16): Likewise.
21795 (vreinterpret_u16_s8): Likewise.
21796 (vreinterpret_u16_s16): Likewise.
21797 (vreinterpret_u16_s32): Likewise.
21798 (vreinterpret_u16_s64): Likewise.
21799 (vreinterpret_u16_f32): Likewise.
21800 (vreinterpret_u16_u8): Likewise.
21801 (vreinterpret_u16_u32): Likewise.
21802 (vreinterpret_u16_u64): Likewise.
21803 (vreinterpret_u16_p8): Likewise.
21804 (vreinterpret_u16_p16): Likewise.
21805 (vreinterpretq_u16_s8): Likewise.
21806 (vreinterpretq_u16_s16): Likewise.
21807 (vreinterpretq_u16_s32): Likewise.
21808 (vreinterpretq_u16_s64): Likewise.
21809 (vreinterpretq_u16_f32): Likewise.
21810 (vreinterpretq_u16_u8): Likewise.
21811 (vreinterpretq_u16_u32): Likewise.
21812 (vreinterpretq_u16_u64): Likewise.
21813 (vreinterpretq_u16_p8): Likewise.
21814 (vreinterpretq_u16_p16): Likewise.
21815 (vreinterpret_u32_s8): Likewise.
21816 (vreinterpret_u32_s16): Likewise.
21817 (vreinterpret_u32_s32): Likewise.
21818 (vreinterpret_u32_s64): Likewise.
21819 (vreinterpret_u32_f32): Likewise.
21820 (vreinterpret_u32_u8): Likewise.
21821 (vreinterpret_u32_u16): Likewise.
21822 (vreinterpret_u32_u64): Likewise.
21823 (vreinterpret_u32_p8): Likewise.
21824 (vreinterpret_u32_p16): Likewise.
21825 (vreinterpretq_u32_s8): Likewise.
21826 (vreinterpretq_u32_s16): Likewise.
21827 (vreinterpretq_u32_s32): Likewise.
21828 (vreinterpretq_u32_s64): Likewise.
21829 (vreinterpretq_u32_f32): Likewise.
21830 (vreinterpretq_u32_u8): Likewise.
21831 (vreinterpretq_u32_u16): Likewise.
21832 (vreinterpretq_u32_u64): Likewise.
21833 (vreinterpretq_u32_p8): Likewise.
21834 (vreinterpretq_u32_p16): Likewise.
21836 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21838 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21840 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21842 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21843 (vqnegd_s64): Likewise.
21844 (vqabs_s64): Likewise.
21845 (vqabsd_s64): Likewise.
21847 2014-04-22 Richard Henderson <rth@redhat.com>
21849 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21850 computation to the top of the loop.
21852 2014-04-22 Renlin <renlin.li@arm.com>
21853 Jiong Wang <jiong.wang@arm.com>
21855 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21856 * config/aarch64/aarch64.c (aarch64_layout_frame)
21857 (aarch64_initial_elimination_offset): Likewise.
21859 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
21861 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21864 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
21866 * machmode.h (bitwise_mode_for_mode): Declare.
21867 * stor-layout.h (bitwise_type_for_mode): Likewise.
21868 * stor-layout.c (bitwise_mode_for_mode): New function.
21869 (bitwise_type_for_mode): Likewise.
21870 * builtins.c (fold_builtin_memory_op): Use it instead of
21871 int_mode_for_mode and build_nonstandard_integer_type.
21873 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21875 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21876 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21877 (*-*-solaris2*): Simplify.
21878 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21879 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21880 *-*-solaris2.9* handling.
21882 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21884 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21885 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21886 handling, simplify.
21887 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21888 * configure: Regenerate.
21890 * config/i386/sol2-9.h: Remove.
21892 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21893 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21894 Remove Solaris 9 references.
21896 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
21898 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21899 (floatuns<GPI:mode><GPF:mode>2): Remove.
21900 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21901 and floatuns conversions.
21902 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21903 and floatuns conversions.
21904 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21905 (w1,w2): New mode attributes for inequal width conversions.
21907 2014-04-22 Renlin Li <Renlin.Li@arm.com>
21909 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21910 the output asm format.
21912 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
21914 * config/aarch64/aarch64-simd.md
21915 (aarch64_cm<optab>di): Always split.
21916 (*aarch64_cm<optab>di): New.
21917 (aarch64_cmtstdi): Always split.
21918 (*aarch64_cmtstdi): New.
21920 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21922 PR tree-optimization/60823
21923 * omp-low.c (ipa_simd_modify_function_body): Go through
21924 all SSA_NAMEs and for those refering to vector arguments
21925 which are going to be replaced adjust SSA_NAME_VAR and,
21926 if it is a default definition, change it into a non-default
21927 definition assigned at the beginning of function from new_decl.
21928 (ipa_simd_modify_stmt_ops): Rewritten.
21929 * tree-dfa.c (set_ssa_default_def): When removing default def,
21930 check for NULL loc instead of NULL *loc.
21932 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21934 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21935 restrictions on core registers for DImode values in Thumb2.
21937 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21939 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21940 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21942 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21944 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21945 (*iordi_notzesidi_di): Likewise.
21946 (*iordi_notsesidi_di): Likewise.
21948 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21950 * config/arm/arm-protos.h (tune_params): New struct members.
21951 * config/arm/arm.c: Initialise tune_params per processor.
21952 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21953 for speed, based on new tune_params.
21955 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21957 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21958 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21959 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21960 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21961 * config/aarch64/arm_neon.h (vrnd_f64): Added.
21962 (vrnda_f64): Likewise.
21963 (vrndi_f64): Likewise.
21964 (vrndm_f64): Likewise.
21965 (vrndn_f64): Likewise.
21966 (vrndp_f64): Likewise.
21967 (vrndx_f64): Likewise.
21969 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21971 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21972 GET_MODE_SIZE argument is enum machine_mode.
21974 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21977 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21978 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21980 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
21982 PR middle-end/60281
21983 * asan.c (asan_emit_stack_protection): Force the base to align to
21984 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
21985 appropriate bits if STRICT_ALIGNMENT.
21986 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21988 (expand_used_vars): Leave a space in the stack frame for alignment
21989 if STRICT_ALIGNMENT.
21991 2014-04-21 David Malcolm <dmalcolm@redhat.com>
21993 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21995 (gimple_store_p): Likewise.
21996 (gimple_assign_load_p): Likewise.
21997 (gimple_assign_cast_p): Likewise.
21998 (gimple_clobber_p): Likewise.
22000 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22001 rather than a gimple.
22002 (gimple_assign_cast_p): Likewise.
22004 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22007 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22008 If mode is DDmode and TARGET_E500_DOUBLE allow move.
22010 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22011 more debug information for E500 if -mdebug=reg.
22013 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
22016 * config/i386/i386.c (ix86_expand_builtin)
22017 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22018 register for target RTX.
22019 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22021 2014-04-18 Cong Hou <congh@google.com>
22023 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22024 the widen-mult pattern by handling two operands with different sizes,
22025 and operands whose size is smaller than half of the result type.
22027 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22029 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22030 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22031 (do_estimate_edge_time): Compute it.
22032 * ipa-inline.c (want_inline_small_function_p): Bypass
22033 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22035 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22037 * ipa-inline.c (spec_rem): New static variable.
22038 (dump_overall_stats): New function.
22039 (dump_inline_stats): New function.
22041 2014-04-18 Richard Henderson <rth@redhat.com>
22043 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22044 to GET_MODE_SIZE, not a reg_class_t.
22046 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22048 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22049 (vsx_xxmrglw_<mode>): Likewise.
22051 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
22054 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22055 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22056 (rs6000_init_hard_regno_mode_ok): Likewise.
22058 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
22060 * ipa-inline.c (inline_small_functions): Account only non-cold
22062 * doc/invoke.texi (inline-unit-growth): Update documentation.
22064 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
22066 * config/rs6000/rs6000.md (addti3, subti3): New.
22068 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
22071 * config/i386/i386.c (ix86_expand_clear): Remove outdated
22072 comment. Check optimize_insn_for_size_p instead of
22073 optimize_insn_for_speed_p.
22075 2014-04-17 Martin Jambor <mjambor@suse.cz>
22077 * gimple-iterator.c (gsi_start_edge): New function.
22078 * gimple-iterator.h (gsi_start_edge): Declare.
22079 * tree-sra.c (single_non_eh_succ): New function.
22080 (disqualify_ops_if_throwing_stmt): Renamed to
22081 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
22082 having one non-EH successor BB.
22083 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22084 generate loads into replacements.
22085 (sra_modify_assign): Likewise and and also use the simple path for
22087 (sra_modify_function_body): Commit statements on edges.
22089 2014-04-17 Richard Biener <rguenther@suse.de>
22091 PR middle-end/60849
22092 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22093 comparison results and add clarifying comment.
22095 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22097 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22098 (blank_mode): Initialize it.
22099 (emit_mode_size_inline, emit_mode_nunits_inline,
22100 emit_mode_inner_inline): New functions.
22101 (emit_insn_modes_h): Call them and surround their output with
22102 #if GCC_VERSION >= 4001 ... #endif.
22103 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22104 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22105 mode_* arrays if the argument is __builtin_constant_p.
22106 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22107 is enum machine_mode.
22109 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22111 * passes.c (opt_pass::execute): Adjust.
22112 (pass_manager::execute_pass_mode_switching): Likewise.
22113 (early_local_passes::execute): Likewise.
22114 (execute_one_pass): Pass cfun to the pass's execute method.
22115 * tree-pass.h (opt_pass::execute): Add function * argument.
22116 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22117 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22118 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22119 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22120 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22121 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22122 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22123 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22124 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22125 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22126 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22127 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22128 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22129 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22130 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22131 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22132 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22133 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22134 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22135 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22136 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22137 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22138 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22139 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22140 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22141 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22142 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22143 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22144 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22147 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22149 * passes.c (opt_pass::gate): Take function * argument.
22150 (gate_all_early_local_passes): Merge into
22151 (early_local_passes::gate): this.
22152 (gate_all_early_optimizations): Merge into
22153 (all_early_optimizations::gate): this.
22154 (gate_all_optimizations): Mege into
22155 (all_optimizations::gate): this.
22156 (gate_all_optimizations_g): Merge into
22157 (all_optimizations_g::gate): this.
22158 (gate_rest_of_compilation): Mege into
22159 (rest_of_compilation::gate): this.
22160 (gate_postreload): Merge into
22161 (postreload::gate): this.
22162 (dump_one_pass): Pass cfun to the pass's gate method.
22163 (execute_ipa_summary_passes): Likewise.
22164 (execute_one_pass): Likewise.
22165 (ipa_write_summaries_2): Likewise.
22166 (ipa_write_optimization_summaries_1): Likewise.
22167 (ipa_read_summaries_1): Likewise.
22168 (ipa_read_optimization_summaries_1): Likewise.
22169 (execute_ipa_stmt_fixups): Likewise.
22170 * tree-pass.h (opt_pass::gate): Add function * argument.
22171 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22172 combine-stack-adj.c, combine.c, compare-elim.c,
22173 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22174 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22175 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22176 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
22177 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22178 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22179 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22180 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22181 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22182 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22183 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22184 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22185 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22186 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22187 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22188 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22189 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22190 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22191 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22192 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22193 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22194 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22195 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22196 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22197 var-tracking.c, vtable-verify.c, web.c: Adjust.
22199 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22201 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22202 * configure: Regenerate.
22204 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22206 * passes.c (dump_one_pass): don't check pass->has_gate.
22207 (execute_ipa_summary_passes): Likewise.
22208 (execute_one_pass): Likewise.
22209 (ipa_write_summaries_2): Likewise.
22210 (ipa_write_optimization_summaries_1): Likewise.
22211 (ipa_read_optimization_summaries_1): Likewise.
22212 (execute_ipa_stmt_fixups): Likewise.
22213 * tree-pass.h (pass_data::has_gate): Remove.
22214 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22215 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22216 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22217 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22218 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22219 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22220 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22221 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22222 gimple-low.c, gimple-ssa-isolate-paths.c,
22223 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22224 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22225 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22226 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22227 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22228 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22229 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22230 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22231 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22232 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22233 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22234 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22235 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22236 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22237 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22238 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22239 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22240 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22241 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22242 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22243 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22244 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22247 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22249 * pass_manager.h (pass_manager::register_dump_files_1): Remove
22251 * passes.c (pass_manager::register_dump_files_1): Merge into
22252 (pass_manager::register_dump_files): this, and remove its handling of
22253 properties since the pass always has the properties anyway.
22254 (pass_manager::pass_manager): Adjust.
22256 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22258 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
22259 * passes.c (pass_manager::register_dump_files_1): Remove dead code
22260 dealing with properties.
22261 (pass_manager::register_dump_files): Adjust.
22263 2014-03-20 Mark Wielaard <mjw@redhat.com>
22265 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
22266 then represent the bound as normal constant value.
22268 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22271 Forward port from 4.8 branch
22272 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
22274 * config/i386/bmiintrin.h (_blsi_u32): New.
22275 (_blsi_u64): Ditto.
22276 (_blsr_u32): Ditto.
22277 (_blsr_u64): Ditto.
22278 (_blsmsk_u32): Ditto.
22279 (_blsmsk_u64): Ditto.
22280 (_tzcnt_u32): Ditto.
22281 (_tzcnt_u64): Ditto.
22283 2014-04-17 Kito Cheng <kito@0xlab.org>
22285 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
22287 2014-04-17 Richard Biener <rguenther@suse.de>
22289 PR middle-end/60849
22290 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
22291 boolean results for comparisons.
22293 2014-04-17 Richard Biener <rguenther@suse.de>
22295 PR tree-optimization/60836
22296 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
22297 initial PHI args to be gimple values.
22299 2014-04-17 Richard Biener <rguenther@suse.de>
22301 PR tree-optimization/60841
22302 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
22303 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
22304 of stmts to SLP build.
22305 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
22306 (vect_analyze_slp): Likewise.
22307 (vect_analyze_slp_instance): Likewise.
22308 (vect_build_slp_tree): Limit overall SLP tree growth.
22309 * tree-vectorizer.h (vect_analyze_data_refs,
22310 vect_analyze_slp): Adjust prototypes.
22312 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22314 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22317 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22319 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22320 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22321 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22322 for TARGET_SLOW_PSHUFB
22324 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22326 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22327 * config/i386/i386.c (intel_cost): Ditto.
22329 2014-04-17 Joey Ye <joey.ye@arm.com>
22331 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22333 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22335 * opts.c (common_handle_option): Disable -fipa-reference coorectly
22336 with -fuse-profile.
22338 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22340 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22341 (type_all_derivations_known_p): New predicate.
22342 (type_all_ctors_visible_p): New predicate.
22343 (type_possibly_instantiated_p): New predicate.
22344 (get_odr_type): Compute all_derivations_known.
22345 (dump_odr_type): Dump the flag.
22346 (maybe_record_type): Cleanup.
22347 (record_target_from_binfo): Add bases_to_consider array;
22348 record bases for types w/o instances and skip CXX destructor.
22349 (possible_polymorphic_call_targets_1): Add bases_to_consider
22350 and consider_construction parameters; check if type may have instance.
22351 (get_polymorphic_call_info): Set maybe_in_construction to true
22352 when we know nothing.
22353 (record_targets_from_bases): Skip CXX destructors; they are
22354 never called for types in construction.
22355 (possible_polymorphic_call_targets): Do not record target when
22356 type may not have instance.
22358 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22361 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
22362 external aliases alive, too.
22364 2014-04-16 Andrew Pinski <apinski@cavium.com>
22366 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
22369 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
22371 * final.c (compute_alignments): Do not apply loop alignment to a block
22372 falling through to the exit.
22374 2014-04-16 Catherine Moore <clm@codesourcery.com>
22376 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
22377 Adjust constraints for microMIPS store patterns.
22379 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22381 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
22383 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
22385 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
22386 (append_use): Run at -O0.
22387 (append_vdef): Likewise.
22388 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
22389 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
22391 2014-04-16 Jakub Jelinek <jakub@redhat.com>
22393 PR tree-optimization/60844
22394 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
22395 (propagate_op_to_single_use, remove_visited_stmt_chain,
22396 linearize_expr, repropagate_negates, reassociate_bb): Use it
22397 instead of gsi_remove.
22399 2014-04-16 Martin Jambor <mjambor@suse.cz>
22401 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
22402 ipa_transforms_to_apply.
22403 (cgraph_function_versioning): Assert that old_node has empty
22404 ipa_transforms_to_apply.
22405 * trans-mem.c (ipa_tm_create_version): Likewise.
22406 * tree-inline.c (tree_function_versioning): Do not duplicate
22407 ipa_transforms_to_apply.
22409 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22412 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22414 Pass necessary as flags on 64-bit Solaris/x86.
22415 Use lowercase relocs for x86_64-*-*.
22416 * configure: Regenerate.
22418 2014-04-15 Jan Hubicka <jh@suse.cz>
22420 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22421 (maybe_record_node, likely_target_p): Use it.
22423 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22426 Revert following patch
22428 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22431 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22432 software floating point or no floating point registers, do not
22433 allow any type in the FPRs. Eliminate a test for SPE SIMD types
22434 in GPRs that occurs after we tested for GPRs that would never be
22437 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22438 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22439 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
22440 specifically allow DDmode, since that does not use the SPE SIMD
22443 2014-03-21 Mark Wielaard <mjw@redhat.com>
22445 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22446 as unsigned or int depending on type and value used.
22448 2014-04-15 Richard Biener <rguenther@suse.de>
22450 PR rtl-optimization/56965
22451 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22452 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22454 * alias.c (true_dependence_1): Do not call
22455 nonoverlapping_component_refs_p.
22456 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22457 nonoverlapping_component_refs_p.
22458 (indirect_refs_may_alias_p): Likewise.
22460 2014-04-15 Teresa Johnson <tejohnson@google.com>
22462 * cfg.c (dump_bb_info): Fix flags check.
22463 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22465 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22467 PR rtl-optimization/60663
22468 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22471 2014-04-15 Richard Biener <rguenther@suse.de>
22473 * lto-streamer.h (LTO_major_version): Bump to 4.
22475 2014-04-15 Richard Biener <rguenther@suse.de>
22477 * common.opt (lto_partition_model): New enum.
22478 (flto-partition=): Merge separate options with a single with argument,
22479 add -flto-partition=one support.
22480 * flag-types.h (enum lto_partition_model): Declare.
22481 * opts.c (finish_options): Remove duplicate -flto-partition=
22483 * lto-wrapper.c (run_gcc): Adjust.
22485 2014-04-15 Richard Biener <rguenther@suse.de>
22487 * alias.c (ncr_compar): New function.
22488 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22490 2014-04-15 Richard Biener <rguenther@suse.de>
22492 * alias.c (record_component_aliases): Do not walk BINFOs.
22494 2014-04-15 Richard Biener <rguenther@suse.de>
22496 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22497 Add struct function argument and adjust.
22498 (find_func_aliases_for_call): Likewise.
22499 (find_func_aliases): Likewise.
22500 (find_func_clobbers): Likewise.
22501 (intra_create_variable_infos): Likewise.
22502 (compute_points_to_sets): Likewise.
22503 (ipa_pta_execute): Adjust. Do not push/pop cfun.
22505 2014-04-15 Richard Biener <rguenther@suse.de>
22507 * tree.c (iterative_hash_expr): Use enum tree_code_class
22508 to store TREE_CODE_CLASS.
22509 (tree_block): Likewise.
22510 (tree_set_block): Likewise.
22511 * tree.h (fold_build_pointer_plus_loc): Use
22512 convert_to_ptrofftype_loc.
22514 2014-04-15 Jakub Jelinek <jakub@redhat.com>
22517 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22520 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
22522 * cfgloop.h (struct loop): Move force_vectorize down.
22523 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22524 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22525 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22526 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22527 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22528 * tree-core.h (enum annot_expr_kind): Add new kind values.
22529 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22530 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22532 * tree.def (ANNOTATE_EXPR): Tweak comment.
22534 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22536 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22539 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
22541 * tree.h (TYPE_IDENTIFIER): Declare.
22542 * tree.c (subrange_type_for_debug_p): Use it.
22543 * godump.c (go_format_type): Likewise.
22544 * dwarf2out.c (is_cxx_auto, modified_type_die,
22545 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22546 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22548 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22551 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22553 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
22555 * config/i386/i386.c (examine_argument): Return bool. Return true if
22556 parameter should be passed in memory.
22557 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22558 (construct_container): Update calls to examine_argument.
22559 (function_arg_advance_64): Ditto.
22560 (return_in_memory_32): Merge with ix86_return_in_memory.
22561 (return_in_memory_64): Ditto.
22562 (return_in_memory_ms_64): Ditto.
22564 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22566 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22567 * coverage.c (coverage_compute_profile_id): Handle externally visible
22570 2014-04-14 Martin Jambor <mjambor@suse.cz>
22572 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22573 DECL_DISREGARD_INLINE_LIMITS functions.
22575 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22578 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22580 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22583 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22584 optimize_insn_for_speed_p instead of
22585 optimize_function_for_speed_p.
22587 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
22589 * doc/invoke.texi (free): Document AArch64.
22591 2014-04-14 Richard Biener <rguenther@suse.de>
22593 PR tree-optimization/60042
22594 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22595 (insert_into_preds_of_block): Do not prevent PHI insertion
22596 for REFERENCE exprs here ...
22597 (eliminate_dom_walker::before_dom_children): ... but prevent
22598 their use here under similar conditions when applied to the
22599 IL after PRE optimizations.
22601 2014-04-14 Richard Biener <rguenther@suse.de>
22603 * passes.def: Move early points-to after early SRA.
22605 2014-04-14 Richard Biener <rguenther@suse.de>
22607 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22608 check for which sign-changes we allow when forwarding
22609 a converted value into a switch.
22611 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22613 * stor-layout.c (place_field): Finalize non-constant offset for the
22616 2014-04-14 Richard Biener <rguenther@suse.de>
22618 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22620 (expand_switch_using_bit_tests_p): Likewise.
22621 (process_switch): Compute and pass on speed_p based on the
22623 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22624 optimize_bb_for_speed_p.
22626 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22628 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22629 * function.h (struct function): Rename has_force_vect_loops into
22630 has_force_vectorize_loops.
22631 * lto-streamer-in.c (input_cfg): Adjust for renaming.
22632 (input_struct_function_base): Likewise.
22633 * lto-streamer-out.c (output_cfg): Likewise.
22634 (output_struct_function_base): Likewise.
22635 * omp-low.c (expand_omp_simd): Likewise.
22636 * tree-cfg.c (move_sese_region_to_fn): Likewise.
22637 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22638 (version_loop_for_if_conversion): Likewise.
22639 (tree_if_conversion): Likewise.
22640 (main_tree_if_conversion): Likewise.
22641 (gate_tree_if_conversion): Likewise.
22642 * tree-inline.c (copy_loops): Likewise.
22643 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22644 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22645 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22646 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22647 * tree-vectorizer.c (vectorize_loops): Likewise.
22648 * tree-vectorizer.h (unlimited_cost_model): Likewise.
22650 2014-04-14 Richard Biener <rguenther@suse.de>
22653 * lto-streamer-out.c (wrap_refs): New function.
22654 (lto_output): Wrap symbol references in global initializes in
22655 type-preserving MEM_REFs.
22657 2014-04-14 Christian Bruel <christian.bruel@st.com>
22659 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22661 2014-04-14 Christian Bruel <christian.bruel@st.com>
22663 * config/sh/sh.md (setmemqi): New expand pattern.
22664 * config/sh/sh.h (CLEAR_RATIO): Define.
22665 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22666 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22668 2014-04-14 Richard Biener <rguenther@suse.de>
22670 PR middle-end/55022
22671 * fold-const.c (negate_expr_p): Don't negate directional rounding
22673 (fold_negate_expr): Likewise.
22675 2014-04-14 Richard Biener <rguenther@suse.de>
22677 PR tree-optimization/59817
22678 PR tree-optimization/60453
22679 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22680 recursion to catch all CHRECs in the scalar evolution and restrict
22681 the predicate for the remains appropriately.
22683 2014-04-12 Catherine Moore <clm@codesourcery.com>
22685 * config/mips/constraints.md: Add new register constraint "kb".
22686 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22687 (*movhi_internal): Likewise.
22688 (*movqi_internal): Likewise.
22689 * config/mips/mips.h (M16_STORE_REGS): New register class.
22690 (REG_CLASS_NAMES): Add M16_STORE_REGS.
22691 (REG_CLASS_CONTENTS): Likewise.
22692 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22694 2014-04-11 Tobias Burnus <burnus@net-b.de>
22697 * doc/invoke.texi (-Wformat-signedness): Document it.
22698 (Wformat=2): Mention that this enables -Wformat-signedness.
22700 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22702 * common/config/epiphany/epiphany-common.c
22703 (epiphany_option_optimization_table): Enable section anchors by
22704 default at -O1 or higher.
22705 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22706 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22707 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22708 carries no extra cost.
22709 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22710 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22711 * config/epiphany/predicates.md (memclob_operand): New predicate.
22712 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22713 Use memclob_operand predicate and X constraint for operand 3.
22715 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22717 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22718 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22721 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22723 PR rtl-optimization/60651
22724 * mode-switching.c (optimize_mode_switching): Make sure to emit
22725 sets of a lower numbered entity before sets of a higher numbered
22726 entity to a mode of the same or lower priority.
22727 When creating a seginfo for a basic block that starts with a code
22728 label, move the insertion point past the code label.
22729 (new_seginfo): Document and enforce requirement that
22730 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22731 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22732 * doc/tm.texi: Regenerate.
22734 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
22737 * config/arc/arc.c (arc_save_restore): Fix assert typo.
22739 2013-04-11 Jakub Jelinek <jakub@redhat.com>
22741 * BASE-VER: Set to 4.10.0.
22743 2014-04-11 Tobias Burnus <burnus@net-b.de>
22746 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22747 * doc/gcc.texi (Service): Update description in the @menu
22748 * doc/invoke.texi (Option Summary): Remove misplaced and
22751 2014-04-11 Steve Ellcey <sellcey@mips.com>
22752 Jakub Jelinek <jakub@redhat.com>
22754 PR middle-end/60556
22755 * expr.c (convert_move): Use emit_store_flag_force instead of
22756 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
22759 2014-04-11 Richard Biener <rguenther@suse.de>
22761 PR middle-end/60797
22762 * varasm.c (assemble_alias): Avoid endless error reporting
22763 recursion by setting TREE_ASM_WRITTEN.
22765 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22767 * config/s390/s390.md: Add a splitter for NOT rtx.
22769 2014-04-11 Jakub Jelinek <jakub@redhat.com>
22771 PR rtl-optimization/60663
22772 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22774 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
22775 Jakub Jelinek <jakub@redhat.com>
22778 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22779 flag from decl_node to node.
22781 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22784 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22785 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22786 ameliorating the cases where it can be.
22788 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
22791 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22793 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22794 (loadsync_<mode>): Change mode.
22795 (load_quadpti, store_quadpti): New.
22796 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22797 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22798 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22800 2014-04-09 Cong Hou <congh@google.com>
22803 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22806 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22808 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22809 instead of vnor to exploit possible fusion opportunity in the
22811 (altivec_expand_vec_perm_const_le): Likewise.
22813 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22815 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22816 (loadsync_<mode>): Change mode.
22817 (load_quadpti, store_quadpti): New.
22818 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22819 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22821 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
22824 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22825 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22826 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22828 2014-04-08 Richard Biener <rguenther@suse.de>
22830 PR middle-end/60706
22831 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22832 a 64bit widest int print double-int similar to on HWI64 hosts.
22834 2014-04-08 Richard Biener <rguenther@suse.de>
22836 PR tree-optimization/60785
22837 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22838 default defs properly.
22840 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
22842 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22843 (Weffc++): Likewise.
22845 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
22847 * ipa-devirt.c (maybe_record_node): When node is not recorded,
22848 set completep to false rather than true.
22850 2014-04-07 Douglas B Rupp <rupp@adacore.com>
22853 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22854 ARM_TARGET2_DWARF_FORMAT.
22856 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
22859 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22860 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22863 2014-04-07 Richard Biener <rguenther@suse.de>
22865 PR tree-optimization/60766
22866 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22867 (may_eliminate_iv): Convert cand_value_at result to desired type.
22869 2014-04-07 Jason Merrill <jason@redhat.com>
22872 * common.opt (-fno-gnu-unique): Add.
22873 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22875 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22877 * haifa-sched.c: Fix outdated function reference and minor
22878 grammar errors in introductory comment.
22880 2014-04-07 Richard Biener <rguenther@suse.de>
22882 PR middle-end/60750
22883 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22884 for noreturn calls.
22885 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22887 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
22890 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22891 size accounting for thunks.
22892 (pa_asm_output_mi_thunk): Use final_start_function() and
22893 final_end_function() to output function start and end directives.
22895 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22897 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22898 device specific ISA/ feature information. Remove short_sp and
22899 errata_skip ds. Add avr_device_specific_features enum to have device
22901 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22902 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22903 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22904 updated device specific info.
22905 * config/avr/avr-mcus.def: Merge device specific details to
22906 dev_attribute field.
22907 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22909 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22910 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22911 assembler if RMW isa supported by current device.
22912 * config/avr/genmultilib.awk: Update as device info structure changed.
22913 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22915 2014-04-04 Cong Hou <congh@google.com>
22917 PR tree-optimization/60656
22918 * tree-vect-stmts.c (supportable_widening_operation):
22919 Fix a bug that elements in a vector with vect_used_by_reduction
22920 property are incorrectly reordered when the operation on it is not
22921 consistant with the one in reduction operation.
22923 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
22925 PR rtl-optimization/60155
22926 * gcse.c (record_set_data): New function.
22927 (single_set_gcse): New function.
22928 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22929 (hoist_code): Likewise.
22930 (get_pressure_class_and_nregs): Likewise.
22932 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
22934 * explow.c (probe_stack_range): Emit a final optimization blockage.
22936 2014-04-04 Anthony Green <green@moxielogic.com>
22938 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22941 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
22944 * lto-cgraph.c (input_overwrite_node): Check that partitioning
22945 flags are set only during streaming.
22946 * ipa.c (process_references, walk_polymorphic_call_targets,
22947 symtab_remove_unreachable_nodes): Drop bodies of always inline
22948 after early inlining.
22949 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22951 2014-04-04 Jakub Jelinek <jakub@redhat.com>
22952 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22955 * dwarf2out.c (const_ok_for_output_1): Reject expressions
22958 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22961 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22963 (cortex_a53_fdivd): Likewise.
22965 2014-04-04 Martin Jambor <mjambor@suse.cz>
22968 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22969 Adjust all callers.
22970 * cgraph.c (clone_of_p): Also return true if thunks match.
22971 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22972 cgraph_function_or_thunk_node and an obsolete comment.
22973 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22975 (build_function_decl_skip_args): Likewise.
22976 (set_new_clone_decl_and_node_flags): New function.
22977 (duplicate_thunk_for_node): Likewise.
22978 (redirect_edge_duplicating_thunks): Likewise.
22979 (cgraph_clone_node): New parameter args_to_skip, pass it to
22980 redirect_edge_duplicating_thunks which is called instead of
22981 cgraph_redirect_edge_callee.
22982 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22983 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22985 2014-04-04 Jeff Law <law@redhat.com>
22988 * config/arm/predicates.md (const_int_I_operand): New predicate.
22989 (const_int_M_operand): Similarly.
22990 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22992 (insv_t2, extv_reg, extzv_t2): Likewise.
22993 (load_multiple_with_writeback): Similarly for const_int_I_operand.
22994 (pop_multiple_with_writeback_and_return): Likewise.
22995 (vfp_pop_multiple_with_writeback): Likewise
22997 2014-04-04 Richard Biener <rguenther@suse.de>
23000 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23001 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23003 * gimplify.h (gimple_add_tmp_var_fn): Declare.
23004 * gimplify.c (gimple_add_tmp_var_fn): New function.
23005 * gimple-expr.h (create_tmp_reg_fn): Declare.
23006 * gimple-expr.c (create_tmp_reg_fn): New function.
23007 * gimple-low.c (record_vars_into): Don't change cfun.
23008 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23009 code generation without cfun.
23011 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
23014 * Makefile.in (install-driver): Fix shell scripting.
23016 2014-04-03 Cong Hou <congh@google.com>
23018 PR tree-optimization/60505
23019 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23020 threshold of number of iterations below which no vectorization
23022 * tree-vect-loop.c (new_loop_vec_info):
23023 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23024 * tree-vect-loop.c (vect_analyze_loop_operations):
23025 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23026 * tree-vect-loop.c (vect_transform_loop):
23027 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23028 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23029 of iterations of the loop and see if we should build the epilogue.
23031 2014-04-03 Richard Biener <rguenther@suse.de>
23033 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23034 (streamer_tree_cache_create): Adjust.
23035 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23036 to allow optional nodes array.
23037 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23038 (streamer_tree_cache_append): Likewise.
23039 (streamer_tree_cache_create): Create nodes array optionally
23040 as specified by parameter.
23041 * lto-streamer-out.c (create_output_block): Avoid maintaining
23042 the node array in the writer cache.
23043 (DFS_write_tree): Remove assertion.
23044 (produce_asm_for_decls): Free the out decl state hash table early.
23045 * lto-streamer-in.c (lto_data_in_create): Adjust for
23046 streamer_tree_cache_create prototype change.
23048 2014-04-03 Richard Biener <rguenther@suse.de>
23050 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23051 set TREE_CHAIN to NULL_TREE.
23053 2014-04-03 Richard Biener <rguenther@suse.de>
23055 PR tree-optimization/60740
23056 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23057 over all GIMPLE_COND operands.
23059 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
23061 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23062 (Weffc++): Remove Scott's numbering, merge lists and reference
23065 2014-04-03 Nick Clifton <nickc@redhat.com>
23067 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23070 2014-04-03 Martin Jambor <mjambor@suse.cz>
23072 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23073 mention gcc_unreachable before failing.
23074 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23077 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
23080 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23081 inconsistent code and instead mark the context inconsistent.
23082 (possible_polymorphic_call_targets): For inconsistent contexts
23083 return empty complete list.
23085 2014-04-02 Anthony Green <green@moxielogic.com>
23087 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23088 (extendqisi2, extendhisi2): Define.
23089 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23090 (WCHAR_TYPE): Change to unsigned int.
23092 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23094 PR tree-optimization/60733
23095 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23096 insertion point for PHI candidates to be the end of the feeding
23097 block for the PHI argument.
23099 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
23101 PR rtl-optimization/60650
23102 * lra-constraints.c (process_alt_operands): Decrease reject for
23103 earlyclobber matching.
23105 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23107 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23109 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23111 * config/spu/spu.c (pad_bb): Do not crash when the last
23112 insn is CODE_FOR_blockage.
23114 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23116 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23117 lies outside the target mode.
23119 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23122 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23123 software floating point or no floating point registers, do not
23124 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23125 in GPRs that occurs after we tested for GPRs that would never be
23128 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23129 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23130 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23131 specifically allow DDmode, since that does not use the SPE SIMD
23134 2014-04-02 Richard Biener <rguenther@suse.de>
23136 PR middle-end/60729
23137 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23138 MODE_INTs. Properly use negv_optab.
23139 (expand_abs): Likewise.
23141 2014-04-02 Richard Biener <rguenther@suse.de>
23144 * Makefile.in (install-driver): Guard extra installs with special
23147 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23149 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23150 Document vec_vgbbd.
23152 2014-04-01 Richard Henderson <rth@redhat.com>
23155 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23156 alternative enabled before register allocation.
23158 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
23160 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23161 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23163 (nios2_large_got_address): Remove unneeded 'sym' parameter.
23164 (nios2_got_address): Update nios2_large_got_address call site.
23165 (nios2_delegitimize_address): New function.
23166 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23167 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23168 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23170 2014-04-01 Martin Husemann <martin@duskware.de>
23172 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23175 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
23177 PR rtl-optimization/60604
23178 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23179 check from register_operand.
23180 (register_operand): Redefine in terms of general_operand.
23181 (nonmemory_operand): Use register_operand for the non-constant cases.
23183 2014-04-01 Richard Biener <rguenther@suse.de>
23185 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23187 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
23189 * doc/invoke.texi (mapp-regs): Clarify.
23191 2014-03-31 Ulrich Drepper <drepper@gmail.com>
23193 * config/i386/avx512fintrin.h (__v32hi): Define type.
23194 (__v64qi): Likewise.
23195 (_mm512_set1_epi8): Define.
23196 (_mm512_set1_epi16): Define.
23197 (_mm512_set4_epi32): Define.
23198 (_mm512_set4_epi64): Define.
23199 (_mm512_set4_pd): Define.
23200 (_mm512_set4_ps): Define.
23201 (_mm512_setr4_epi64): Define.
23202 (_mm512_setr4_epi32): Define.
23203 (_mm512_setr4_pd): Define.
23204 (_mm512_setr4_ps): Define.
23205 (_mm512_setzero_epi32): Define.
23207 2014-03-31 Martin Jambor <mjambor@suse.cz>
23209 PR middle-end/60647
23210 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23211 callsite_arguments_match_p. Updated all callers. Also check types of
23212 corresponding formal parameters and actual arguments.
23213 (not_all_callers_have_enough_arguments_p) Renamed to
23214 some_callers_have_mismatched_arguments_p.
23216 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
23218 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23220 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
23223 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23226 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
23228 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23229 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23231 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23232 Use FMAMODE_NOVF512 mode iterator.
23233 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23234 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23235 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23236 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23238 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23239 Use VF_128_256 mode iterator.
23240 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
23243 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23245 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
23246 static chain if needed.
23248 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
23251 * lra-constraints.c (index_part_to_reg): New.
23252 (process_address): Use it.
23254 2014-03-27 Jeff Law <law@redhat.com>
23255 Jakub Jelinek <jakub@redhat.com>
23258 * expr.c (do_tablejump): Use simplify_gen_binary rather than
23259 gen_rtx_{PLUS,MULT} to build up the address expression.
23261 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
23262 creating non-canonical RTL.
23264 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23267 * ipa-inline.c (want_inline_small_function_p): Short circuit large
23268 functions; reorganize to make cheap checks first.
23269 (inline_small_functions): Do not estimate growth when dumping;
23271 * ipa-inline.h (inline_summary): Add min_size.
23272 (growth_likely_positive): New function.
23273 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
23274 (set_cond_stmt_execution_predicate): Cleanup.
23275 (estimate_edge_size_and_time): Compute min_size.
23276 (estimate_calls_size_and_time): Likewise.
23277 (estimate_node_size_and_time): Likewise.
23278 (inline_update_overall_summary): Update min_size.
23279 (do_estimate_edge_time): Likewise.
23280 (do_estimate_edge_size): Update.
23281 (do_estimate_edge_hints): Update.
23282 (growth_likely_positive): New function.
23284 2014-03-28 Jakub Jelinek <jakub@redhat.com>
23287 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
23288 also if addr has VOIDmode.
23290 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23292 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
23293 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
23295 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
23296 instructions as well as AdvancedSIMD loads.
23298 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23300 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
23301 Use crypto_aese type.
23302 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
23303 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
23304 crypto_aese, crypto_aesmc. Move to types.md.
23305 * config/arm/types.md (crypto_aes): Split into crypto_aese,
23307 * config/arm/iterators.md (crypto_type): Likewise.
23309 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23311 * cgraph.c: Include expr.h and tree-dfa.h.
23312 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23315 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
23318 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23319 regs from checking multi-reg pseudos.
23321 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23323 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23325 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23327 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23328 if it would clobber the stack pointer, even temporarily.
23330 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
23332 * mode-switching.c: Make small adjustments to the top comment.
23334 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
23336 * config/rs6000/constraints.md (wD constraint): New constraint to
23337 match the constant integer to get the top DImode/DFmode out of a
23338 vector in a VSX register.
23340 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23341 match the constant integer to get the top DImode/DFmode out of a
23342 vector in a VSX register.
23344 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23347 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23350 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23351 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23353 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23354 Optimize vec_extract of 64-bit values, where the value being
23355 extracted is in the top word, where we can use scalar
23356 instructions. Add direct move and store support. Combine the big
23357 endian/little endian vector select load support into a single insn.
23358 (vsx_extract_<mode>_internal1): Likewise.
23359 (vsx_extract_<mode>_internal2): Likewise.
23360 (vsx_extract_<mode>_load): Likewise.
23361 (vsx_extract_<mode>_store): Likewise.
23362 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
23363 combined into vsx_extract_<mode>_load.
23364 (vsx_extract_<mode>_one_le): Likewise.
23366 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
23367 define the top 64-bit vector element.
23369 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
23372 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23373 Document vec_vbpermq builtin.
23376 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
23377 enable use of xxsldwi and xxpermdi builtin functions.
23378 (vec_xxpermdi): Likewise.
23380 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23381 Document use of vec_xxsldwi and vec_xxpermdi builtins.
23383 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
23385 PR rtl-optimization/60650
23386 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
23388 (find_spills_for): New.
23389 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
23390 Spill all pseudos on the second iteration.
23392 2014-03-27 Marek Polacek <polacek@redhat.com>
23395 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
23398 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23400 * config/s390/s390.c (s390_can_use_return_insn): Check for
23401 call-saved FPRs on 31 bit.
23403 2014-03-27 Jakub Jelinek <jakub@redhat.com>
23405 PR middle-end/60682
23406 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
23407 if they need regimplification, just drop them instead of
23408 calling gimple_regimplify_operands on them.
23410 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
23413 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23414 (aarch64_frame_pointer_required): Adjust logic.
23415 (aarch64_can_eliminate): Adjust logic.
23416 (aarch64_override_options_after_change): Adjust logic.
23418 2014-03-27 Dehao Chen <dehao@google.com>
23420 * ipa-inline.c (early_inliner): Update node's inline info.
23422 2014-03-26 Dehao Chen <dehao@google.com>
23424 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23425 compiler inserted conditional jumps for NAN float check.
23427 2014-03-26 Jakub Jelinek <jakub@redhat.com>
23429 * ubsan.h (ubsan_create_data): Change second argument's type
23430 to const location_t *.
23431 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23433 (ubsan_create_data): Change second argument to const location_t *PLOC.
23434 Create Loc field whenever PLOC is non-NULL.
23435 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23436 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23440 * real.c (real_to_integer2): Change type of low to UHWI.
23442 2014-03-26 Tobias Burnus <burnus@net-b.de>
23444 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23445 (CILK_SELF_SPECS): New define.
23446 (driver_self_specs): Use it.
23448 2014-03-26 Richard Biener <rguenther@suse.de>
23450 * tree-pretty-print.c (percent_K_format): Implement special
23451 case for LTO and its stripped down BLOCK tree.
23453 2014-03-26 Jakub Jelinek <jakub@redhat.com>
23456 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23458 * tree-vrp.c (simplify_internal_call_using_ranges): If only
23459 one range is range_int_cst_p, but not both, at least optimize
23460 addition/subtraction of 0 and multiplication by 0 or 1.
23461 * gimple-fold.c (gimple_fold_call): Fold
23462 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23463 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23464 INTEGER_CSTs, try to fold at least x * 0 and y - y.
23466 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
23468 PR rtl-optimization/60452
23469 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23470 <case REG>: Return 1 for invalid offsets from the frame pointer.
23472 2014-03-26 Marek Polacek <polacek@redhat.com>
23475 * doc/extend.texi (C Extensions): Mention variable-length arrays in
23478 2014-03-26 Marek Polacek <polacek@redhat.com>
23481 * doc/extend.texi (Designated Inits): Describe what happens to omitted
23484 2014-03-26 Marek Polacek <polacek@redhat.com>
23487 * ira-color.c (update_conflict_hard_regno_costs): Perform the
23488 multiplication in unsigned type.
23490 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23492 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23494 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23496 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23498 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23501 * cif-code.def (UNREACHABLE) New code.
23502 * ipa-inline.c (inline_small_functions): Skip edges to
23503 __builtlin_unreachable.
23504 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23505 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23506 predicate to __bulitin_unreachable.
23507 (set_cond_stmt_execution_predicate): Fix issue when
23508 invert_tree_comparison returns ERROR_MARK.
23509 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23510 propagate to inline clones.
23511 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23513 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23514 * cgraphclones.c (cgraph_clone_node): If call destination is already
23515 ureachable, do not redirect it back.
23516 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23519 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23521 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23522 Do not modify inline clones.
23524 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23526 * config/i386/i386.md (general_sext_operand): New mode attr.
23527 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23528 don't generate (sign_extend (const_int)).
23529 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23530 operands[2]. Use We constraint instead of <i> and
23531 <general_sext_operand> predicate instead of <general_operand>.
23532 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23533 * config/i386/constraints.md (We): New constraint.
23534 * config/i386/predicates.md (x86_64_sext_operand,
23535 sext_operand): New predicates.
23537 2014-03-25 Martin Jambor <mjambor@suse.cz>
23540 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23541 inconsistent devirtualizations to __builtin_unreachable.
23543 2014-03-25 Marek Polacek <polacek@redhat.com>
23546 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23548 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
23550 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23551 order of elements for big-endian.
23553 2014-03-25 Richard Biener <rguenther@suse.de>
23555 PR middle-end/60635
23556 * gimplify-me.c (gimple_regimplify_operands): Update the
23559 2014-03-25 Martin Jambor <mjambor@suse.cz>
23562 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23563 (lto_output_varpool_node): Likewise.
23564 (input_overwrite_node): Likewise.
23565 (input_varpool_node): Likewise.
23567 2014-03-25 Richard Biener <rguenther@suse.de>
23569 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23570 (run_gcc): Likewise.
23572 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23574 * combine.c (simplify_compare_const): Add MODE argument.
23575 Handle mode_width 0 as very large mode_width.
23576 (try_combine, simplify_comparison): Adjust callers.
23578 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23579 type to avoid signed integer overflow.
23580 * explow.c (plus_constant): Likewise.
23582 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23584 * doc/generic.texi: Correct typos.
23586 2014-03-24 Tobias Burnus <burnus@net-b.de>
23588 * doc/invoke.texi (-flto): Expand section about
23589 using static libraries with LTO.
23591 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23593 PR rtl-optimization/60501
23594 * optabs.def (addptr3_optab): New optab.
23595 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23596 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23597 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23599 * lra.c (emit_add3_insn): Use the addptr pattern if available.
23601 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23603 2014-03-24 Ulrich Drepper <drepper@gmail.com>
23605 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23608 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23609 (_mm256_undefined_ps): Define.
23610 (_mm256_undefined_pd): Define.
23611 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23612 (_mm_undefined_pd): Define.
23613 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23614 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23615 (_mm512_undefined_ps): Define.
23616 (_mm512_undefined_pd): Define.
23617 Use _mm*_undefined_*.
23618 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23620 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
23622 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23623 (lshr_simd): DI mode added.
23624 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23625 (aarch64_ushr_simddi): Likewise.
23626 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23627 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23628 (vshrd_n_u64): Likewise.
23630 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23632 * Makefile.in (s-macro_list): Depend on cc1.
23634 2014-03-23 Teresa Johnson <tejohnson@google.com>
23636 * ipa-utils.c (ipa_print_order): Use specified dump file.
23638 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
23640 PR rtl-optimization/60601
23641 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23643 * gcc.c (eval_spec_function): Initialize save_growing_value.
23645 2014-03-22 Jakub Jelinek <jakub@redhat.com>
23648 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23649 code == MINUS_EXPR, never swap op0 with op1.
23651 * toplev.c (init_local_tick): Avoid signed integer multiplication
23653 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23654 shift by first operand's bitsize.
23656 2014-03-21 Jakub Jelinek <jakub@redhat.com>
23659 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23660 redefine to 1 or 0.
23661 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23662 TARGET_ISA_64BIT_P(x).
23664 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23666 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23667 pattern for vector nor instead of subtract from splat(-1).
23668 (altivec_expand_vec_perm_const_le): Likewise.
23670 2014-03-21 Richard Henderson <rth@twiddle.net>
23673 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23674 related insns after epilogue_completed.
23676 2014-03-21 Martin Jambor <mjambor@suse.cz>
23679 * cgraph.h (symtab_node): New flag body_removed.
23680 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23681 when removing bodies.
23682 * symtab.c (dump_symtab_base): Dump body_removed flag.
23683 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23684 had their bodies removed.
23686 2014-03-21 Martin Jambor <mjambor@suse.cz>
23689 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23692 2014-03-21 Richard Biener <rguenther@suse.de>
23694 PR tree-optimization/60577
23695 * tree-core.h (struct tree_base): Document nothrow_flag use
23696 in DECL_NONALIASED.
23697 * tree.h (DECL_NONALIASED): New.
23698 (may_be_aliased): Adjust.
23699 * coverage.c (build_var): Set DECL_NONALIASED.
23701 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23703 * expr.c (expand_expr_real_1): Remove outdated comment.
23705 2014-03-20 Jakub Jelinek <jakub@redhat.com>
23707 PR middle-end/60597
23708 * ira.c (adjust_cleared_regs): Call copy_rtx on
23709 *reg_equiv[REGNO (loc)].src_p before passing it to
23710 simplify_replace_fn_rtx.
23713 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23714 into CONST, put pic register as first operand of PLUS. Use
23715 gen_const_mem for both 32-bit and 64-bit PIC got loads.
23717 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23719 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23721 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23723 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23724 around for store forwarding issue in the FPU on the UT699.
23725 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23726 loads and operations if -mfix-ut699 is specified.
23727 (divtf3_hq): Tweak attribute.
23728 (sqrttf2_hq): Likewise.
23730 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23732 * calls.c (store_one_arg): Remove incorrect const qualification on the
23733 type of the temporary.
23734 * cfgexpand.c (expand_return): Likewise.
23735 * expr.c (expand_constructor): Likewise.
23736 (expand_expr_real_1): Likewise.
23738 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23740 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23743 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23746 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23748 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
23750 * config/arm/aarch-common-protos.h
23751 (alu_cost_table): Fix spelling of "extend".
23752 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23754 2014-03-19 Richard Biener <rguenther@suse.de>
23756 PR middle-end/60553
23757 * tree-core.h (tree_type_common): Re-order pointer members
23758 to reduce recursion depth during GC walks.
23760 2014-03-19 Marek Polacek <polacek@redhat.com>
23763 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23764 before accessing it.
23766 2014-03-19 Richard Biener <rguenther@suse.de>
23769 * lto-streamer-in.c (input_function): In WPA stage do not drop
23772 2014-03-19 Jakub Jelinek <jakub@redhat.com>
23774 PR tree-optimization/60559
23775 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23776 with build_zero_cst assignment.
23778 2014-03-18 Kai Tietz <ktietz@redhat.com>
23780 PR rtl-optimization/56356
23781 * sdbout.c (sdbout_parms): Verify that parms'
23782 incoming argument is valid.
23783 (sdbout_reg_parms): Likewise.
23785 2014-03-18 Richard Henderson <rth@redhat.com>
23788 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23789 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
23790 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23792 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
23794 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23795 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23796 Italicize plugin event names in description. Explain that
23797 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
23798 Remind that no GCC functions should be called after PLUGIN_FINISH.
23799 Explain what pragmas with expansion are.
23801 2014-03-18 Martin Liska <mliska@suse.cz>
23803 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23804 gimple call statement is update.
23805 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23806 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23808 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23811 * ubsan.c (ubsan_instrument_unreachable): Call
23812 initialize_sanitizer_builtins.
23813 (ubsan_pass): Likewise.
23816 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23817 varpool_finalize_decl instead of rest_of_decl_compilation.
23819 2014-03-18 Richard Biener <rguenther@suse.de>
23821 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23822 by using bitmap_and_compl instead of bitmap_and_compl_into.
23823 (df_rd_transfer_function): Likewise.
23825 2014-03-18 Richard Biener <rguenther@suse.de>
23827 * doc/lto.texi (fresolution): Fix typo.
23829 2014-03-18 Richard Biener <rguenther@suse.de>
23831 * doc/invoke.texi (flto): Update for changes in 4.9.
23833 2014-03-18 Richard Biener <rguenther@suse.de>
23835 * doc/loop.texi: Remove section on the removed lambda framework.
23836 Update loop docs with recent changes in preserving loop structure.
23838 2014-03-18 Richard Biener <rguenther@suse.de>
23840 * doc/lto.texi (-fresolution): Document.
23842 2014-03-18 Richard Biener <rguenther@suse.de>
23844 * doc/contrib.texi: Adjust my name.
23846 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23849 * internal-fn.c: Include diagnostic-core.h.
23850 (expand_BUILTIN_EXPECT): New function.
23851 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23852 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23853 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23854 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23855 IFN_BUILTIN_EXPECT.
23856 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23857 Revert 3 argument __builtin_expect code.
23858 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23859 * gimple-fold.c (gimple_fold_call): Likewise.
23860 * tree.h (fold_builtin_expect): New prototype.
23861 * builtins.c (build_builtin_expect_predicate): Add predictor
23862 argument, if non-NULL, create 3 argument __builtin_expect.
23863 (fold_builtin_expect): No longer static. Add ARG2 argument,
23864 pass it through to build_builtin_expect_predicate.
23865 (fold_builtin_2): Adjust caller.
23866 (fold_builtin_3): Handle BUILT_IN_EXPECT.
23867 * internal-fn.def (BUILTIN_EXPECT): New.
23869 2014-03-18 Tobias Burnus <burnus@net-b.de>
23872 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23873 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23874 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23876 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
23879 * predict.c (combine_predictions_for_bb): Fix up formatting.
23880 (expr_expected_value_1, expr_expected_value): Add predictor argument,
23881 fill what it points to if non-NULL.
23882 (tree_predict_by_opcode): Adjust caller, use the predictor.
23883 * predict.def (PRED_COMPARE_AND_SWAP): Add.
23885 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
23887 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23888 proper constant for the store mode.
23890 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
23892 * symtab.c (change_decl_assembler_name): Fix transparent alias
23893 chain construction.
23895 2014-03-16 Renlin Li <Renlin.Li@arm.com>
23897 * config/aarch64/aarch64.c: Correct the comments about the
23898 aarch64 stack layout.
23900 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
23902 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23903 check for GF_OMP_FOR_KIND_FOR.
23905 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
23907 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23908 ymm and zmm register names.
23910 2014-03-17 Jakub Jelinek <jakub@redhat.com>
23913 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23914 note creation for the 2010-08-31 changes.
23916 2014-03-17 Marek Polacek <polacek@redhat.com>
23918 PR middle-end/60534
23919 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23920 as -fno-tree-loop-vectorize.
23921 (expand_omp_simd): Likewise.
23923 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
23925 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23926 (eligible_for_call_delay): New prototype.
23927 * config/sparc/sparc.c (tls_call_delay): Rename into...
23928 (eligible_for_call_delay): ...this. Return false if the instruction
23929 cannot be put in the delay slot of a branch.
23930 (eligible_for_restore_insn): Simplify.
23931 (eligible_for_return_delay): Return false if the instruction cannot be
23932 put in the delay slot of a branch and simplify.
23933 (eligible_for_sibcall_delay): Return false if the instruction cannot be
23934 put in the delay slot of a branch.
23935 * config/sparc/sparc.md (fix_ut699): New attribute.
23936 (tls_call_delay): Delete.
23937 (in_call_delay): Reimplement.
23938 (eligible_for_sibcall_delay): Rename into...
23939 (in_sibcall_delay): ...this.
23940 (eligible_for_return_delay): Rename into...
23941 (in_return_delay): ...this.
23942 (in_branch_delay): Reimplement.
23943 (in_uncond_branch_delay): Delete.
23944 (in_annul_branch_delay): Delete.
23946 2014-03-14 Richard Henderson <rth@redhat.com>
23949 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23950 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23951 (*floathi<X87MODEF>2_i387_with_temp): Remove.
23952 (floathi splitters): Remove.
23953 (float<SWI48x>xf2): New pattern.
23954 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
23955 code that tried to handle DImode for 32-bit, but which was excluded
23956 by the pattern's condition. Drop allocation of stack temporary.
23957 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23958 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23959 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23960 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23961 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23962 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23963 (*float<SWI48><MODEF>2_sse_interunit): Remove.
23964 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23965 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23966 (*float<SWI48x><X87MODEF>2_i387): Remove.
23967 (all float _with_temp splitters): Remove.
23968 (*float<SWI48x><MODEF>2_i387): New pattern.
23969 (*float<SWI48><MODEF>2_sse): New pattern.
23970 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23971 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23973 2014-03-14 Jakub Jelinek <jakub@redhat.com>
23974 Marek Polacek <polacek@redhat.com>
23976 PR middle-end/60484
23977 * common.opt (dump_base_name_prefixed): New Variable.
23978 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23979 if x_dump_base_name_prefixed is already set, set it at the end.
23981 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
23983 PR rtl-optimization/60508
23984 * lra-constraints.c (get_reload_reg): Add new parameter
23986 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23987 Pass the new parameter values.
23989 2014-03-14 Richard Biener <rguenther@suse.de>
23991 * common.opt: Revert unintented changes from r205065.
23992 * opts.c: Likewise.
23994 2014-03-14 Richard Biener <rguenther@suse.de>
23996 PR middle-end/60518
23997 * cfghooks.c (split_block): Properly adjust all loops the
23998 block was a latch of.
24000 2014-03-14 Martin Jambor <mjambor@suse.cz>
24003 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24006 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
24009 * config/avr/avr.c (avr_set_current_function): Pass function name
24010 through default_strip_name_encoding before sanity checking instead
24011 of skipping the first char of the assembler name.
24013 2014-03-13 Richard Henderson <rth@redhat.com>
24016 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24017 (ix86_force_to_memory, ix86_free_from_memory): Remove.
24018 * config/i386/i386-protos.h: Likewise.
24019 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24020 in the expander instead of a splitter.
24021 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24022 any possibility of requiring a memory.
24023 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24024 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24025 (fp branch splitters): Update for ix86_split_fp_branch.
24026 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24027 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24028 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24029 (*fop_<MODEF>_2_i387): Remove f/r alternative.
24030 (*fop_<MODEF>_3_i387): Likewise.
24031 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24032 (splitters for the fop_* register patterns): Remove.
24033 (fscalexf4_i387): Rename from *fscalexf4_i387.
24034 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24036 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24038 PR tree-optimization/59779
24039 * tree-dfa.c (get_ref_base_and_extent): Use double_int
24040 type for bitsize and maxsize instead of HOST_WIDE_INT.
24042 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
24044 PR rtl-optimization/57320
24045 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24046 the CFG after thread_prologue_and_epilogue_insns.
24048 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
24050 PR rtl-optimization/57189
24051 * lra-constraints.c (process_alt_operands): Disfavor spilling
24054 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
24056 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24058 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24060 PR tree-optimization/59025
24061 PR middle-end/60418
24062 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24063 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24065 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
24068 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24069 calls of avr_out_plus_1.
24071 2014-03-13 Bin Cheng <bin.cheng@arm.com>
24073 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24074 BB's single pred and update the father loop's latch info later.
24076 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24078 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24082 (VEC_base): Likewise.
24083 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24084 registers, we need to swap double words in little endian mode.
24086 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24087 to be a container mode for 128-bit integer operations added in ISA
24088 2.07. Unlike TImode and PTImode, the preferred register set is
24089 the Altivec/VMX registers for the 128-bit operations.
24091 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24093 (rs6000_split_128bit_ok_p): Likewise.
24095 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24096 macros for creating ISA 2.07 normal and overloaded builtin
24097 functions with 3 arguments.
24098 (BU_P8V_OVERLOAD_3): Likewise.
24099 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24100 for use as overloaded functions.
24101 (VPERM_1TI_UNS): Likewise.
24102 (VSEL_1TI): Likewise.
24103 (VSEL_1TI_UNS): Likewise.
24104 (ST_INTERNAL_1ti): Likewise.
24105 (LD_INTERNAL_1ti): Likewise.
24106 (XXSEL_1TI): Likewise.
24107 (XXSEL_1TI_UNS): Likewise.
24108 (VPERM_1TI): Likewise.
24109 (VPERM_1TI_UNS): Likewise.
24110 (XXPERMDI_1TI): Likewise.
24111 (SET_1TI): Likewise.
24112 (LXVD2X_V1TI): Likewise.
24113 (STXVD2X_V1TI): Likewise.
24114 (VEC_INIT_V1TI): Likewise.
24115 (VEC_SET_V1TI): Likewise.
24116 (VEC_EXT_V1TI): Likewise.
24117 (EQV_V1TI): Likewise.
24118 (NAND_V1TI): Likewise.
24119 (ORC_V1TI): Likewise.
24120 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24121 added in ISA 2.07. Add both normal 'altivec' builtins, and the
24122 overloaded builtin.
24123 (VADDUQM): Likewise.
24124 (VSUBCUQ): Likewise.
24125 (VADDEUQM): Likewise.
24126 (VADDECUQ): Likewise.
24127 (VSUBEUQM): Likewise.
24128 (VSUBECUQ): Likewise.
24130 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24131 __int128_t and __uint128_t types.
24132 (__uint128_type): Likewise.
24133 (altivec_categorize_keyword): Add support for vector __int128_t,
24134 vector __uint128_t, vector __int128, and vector unsigned __int128
24135 as a container type for TImode operations that need to be done in
24136 VSX/Altivec registers.
24137 (rs6000_macro_to_expand): Likewise.
24138 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24139 to support 128-bit integer instructions vaddcuq, vadduqm,
24140 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24141 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24143 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24144 for V1TImode, and set up preferences to use VSX/Altivec registers.
24145 Setup VSX reload handlers.
24146 (rs6000_debug_reg_global): Likewise.
24147 (rs6000_init_hard_regno_mode_ok): Likewise.
24148 (rs6000_preferred_simd_mode): Likewise.
24149 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24150 (easy_altivec_constant): Likewise.
24151 (output_vec_const_move): Likewise.
24152 (rs6000_expand_vector_set): Convert V1TImode set and extract to
24154 (rs6000_expand_vector_extract): Likewise.
24155 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24157 (rs6000_const_vec): Add support for V1TImode.
24158 (rs6000_emit_le_vsx_load): Swap double words when loading or
24159 storing TImode/V1TImode.
24160 (rs6000_emit_le_vsx_store): Likewise.
24161 (rs6000_emit_le_vsx_move): Likewise.
24162 (rs6000_emit_move): Add support for V1TImode.
24163 (altivec_expand_ld_builtin): Likewise.
24164 (altivec_expand_st_builtin): Likewise.
24165 (altivec_expand_vec_init_builtin): Likewise.
24166 (altivec_expand_builtin): Likewise.
24167 (rs6000_init_builtins): Add support for V1TImode type. Add
24168 support for ISA 2.07 128-bit integer builtins. Define type names
24169 for the VSX/Altivec vector types.
24170 (altivec_init_builtins): Add support for overloaded vector
24171 functions with V1TImode type.
24172 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24173 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24175 (rs6000_split_128bit_ok_p): Likewise.
24176 (rs6000_handle_altivec_attribute): Create V1TImode from vector
24177 __int128_t and vector __uint128_t.
24179 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24180 and mode attributes.
24182 (VSX_M2): Likewise.
24187 (VS_scalar): Likewise.
24188 (VS_double): Likewise.
24189 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24191 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24192 we support the ISA 2.07 128-bit integer arithmetic instructions.
24193 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24194 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24195 and TImode types for use with the builtin functions.
24196 (V1TI_type_node): Likewise.
24197 (unsigned_V1TI_type_node): Likewise.
24198 (intTI_type_internal_node): Likewise.
24199 (uintTI_type_internal_node): Likewise.
24201 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24202 128-bit builtin functions.
24203 (UNSPEC_VADDEUQM): Likewise.
24204 (UNSPEC_VADDECUQ): Likewise.
24205 (UNSPEC_VSUBCUQ): Likewise.
24206 (UNSPEC_VSUBEUQM): Likewise.
24207 (UNSPEC_VSUBECUQ): Likewise.
24208 (VM): Add V1TImode to vector mode iterators.
24210 (VI_unit): Likewise.
24211 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24212 (altivec_vaddcuq): Likewise.
24213 (altivec_vsubuqm): Likewise.
24214 (altivec_vsubcuq): Likewise.
24215 (altivec_vaddeuqm): Likewise.
24216 (altivec_vaddecuq): Likewise.
24217 (altivec_vsubeuqm): Likewise.
24218 (altivec_vsubecuq): Likewise.
24220 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24222 (BOOL_128): Likewise.
24223 (BOOL_REGS_OUTPUT): Likewise.
24224 (BOOL_REGS_OP1): Likewise.
24225 (BOOL_REGS_OP2): Likewise.
24226 (BOOL_REGS_UNARY): Likewise.
24227 (BOOL_REGS_AND_CR0): Likewise.
24229 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24230 128-bit integer builtin support.
24231 (vec_vadduqm): Likewise.
24232 (vec_vaddecuq): Likewise.
24233 (vec_vaddeuqm): Likewise.
24234 (vec_vsubecuq): Likewise.
24235 (vec_vsubeuqm): Likewise.
24236 (vec_vsubcuq): Likewise.
24237 (vec_vsubuqm): Likewise.
24239 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24240 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
24241 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
24242 128-bit integer add/subtract to ISA 2.07.
24244 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
24246 * config/arc/arc.c (arc_predicate_delay_insns):
24247 Fix third argument passed to conditionalize_nonjump.
24249 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
24251 * config/aarch64/aarch64-builtins.c
24252 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
24253 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
24254 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
24255 instead of __builtin_lfloor.
24256 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
24258 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24260 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
24261 (tree_ssa_ifcombine_bb_1): New function.
24262 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
24263 is an empty forwarder block to then_bb or vice versa and then_bb
24264 and else_bb are effectively swapped.
24266 2014-03-12 Christian Bruel <christian.bruel@st.com>
24269 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
24270 REG_CFA_DEF_CFA note.
24271 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
24272 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
24274 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24276 PR tree-optimization/60454
24277 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
24279 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24281 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
24282 Do not define target_cpu_default2 to generic.
24283 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
24284 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
24285 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
24287 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24288 Marc Glisse <marc.glisse@inria.fr>
24290 PR tree-optimization/60502
24291 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
24292 instead of build_low_bits_mask.
24294 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24296 PR middle-end/60482
24297 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
24298 if there are multiple uses, but op doesn't live on E edge.
24299 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
24300 clobber stmts before __builtin_unreachable.
24302 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
24304 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
24305 hard_frame_pointer_rtx.
24306 * cse.c (cse_insn): Remove volatile check.
24307 * cselib.c (cselib_process_insn): Likewise.
24308 * dse.c (scan_insn): Likewise.
24310 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
24312 * config/arc/arc.c (conditionalize_nonjump): New function,
24314 (arc_ifcvt): ... this.
24315 (arc_predicate_delay_insns): Use it.
24317 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
24319 * config/arc/predicates.md (extend_operand): During/after reload,
24320 allow const_int_operand.
24321 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24322 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
24323 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24325 (umulsi3_highpart_i): Likewise.
24327 2014-03-11 Richard Biener <rguenther@suse.de>
24329 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24330 Add asserts to guard possible wrong-code bugs.
24332 2014-03-11 Richard Biener <rguenther@suse.de>
24334 PR tree-optimization/60429
24335 PR tree-optimization/60485
24336 * tree-ssa-structalias.c (set_union_with_increment): Properly
24337 take into account all fields that overlap the shifted vars.
24338 (do_sd_constraint): Likewise.
24339 (do_ds_constraint): Likewise.
24340 (get_constraint_for_ptr_offset): Likewise.
24342 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
24344 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24345 (nios2_compute_frame_layout):
24346 Add calculation of cfun->machine->fp_save_offset.
24347 (nios2_expand_prologue): Correct setting of frame pointer register
24349 (nios2_expand_epilogue): Update recovery of stack pointer from
24350 frame pointer accordingly.
24351 (nios2_initial_elimination_offset): Update calculation of offset
24352 for eliminating to HARD_FRAME_POINTER_REGNUM.
24354 2014-03-10 Jakub Jelinek <jakub@redhat.com>
24357 * ipa.c (symtab_remove_unreachable_nodes): Don't call
24358 cgraph_get_create_node on VAR_DECLs.
24360 2014-03-10 Richard Biener <rguenther@suse.de>
24362 PR middle-end/60474
24363 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
24365 2014-03-08 Douglas B Rupp <rupp@gnat.com>
24367 * config/vms/vms.opt (vms_float_format): New variable.
24369 2014-03-08 Tobias Burnus <burnus@net-b.de>
24371 * doc/invoke.texi (-fcilkplus): Update implementation status.
24373 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
24374 Richard Biener <rguenther@suse.de>
24376 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
24377 consistently accross all TUs.
24378 (run_gcc): Enable -fshort-double automatically at link at link-time
24379 and disallow override.
24381 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
24384 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
24385 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
24386 if they can't be used.
24388 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24390 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
24391 for Solaris 11/x86 ld.
24392 * configure: Regenerate.
24394 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24396 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
24397 (LIB_TLS_SPEC): Save as ld_tls_libs.
24398 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
24399 (HAVE_AS_IX86_TLSLDM): New test.
24400 * configure, config.in: Regenerate.
24401 * config/i386/i386.c (legitimize_tls_address): Fall back to
24402 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
24403 cannot support TLS_MODEL_LOCAL_DYNAMIC.
24404 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
24405 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
24407 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
24409 * common.opt (fira-loop-pressure): Mark as optimization.
24411 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
24413 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24414 an OpenMP mappable type.
24416 2014-03-06 Matthias Klose <doko@ubuntu.com>
24418 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24419 MULTILIB_OSDIRNAMES is not defined.
24421 2014-03-06 Jakub Jelinek <jakub@redhat.com>
24422 Meador Inge <meadori@codesourcery.com>
24425 * config/arm/arm.c (arm_tls_symbol_p): Remove.
24426 (arm_legitimize_address): Call legitimize_tls_address for any
24427 arm_tls_referenced_p expression, handle constant addend. Call it
24428 before testing for !TARGET_ARM.
24429 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24431 2014-03-06 Richard Biener <rguenther@suse.de>
24433 PR middle-end/60445
24437 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
24439 * tree-streamer.c (record_common_node): Assert we don't record
24440 nodes with type double.
24441 (preload_common_node): Skip type double, complex double and double
24442 pointer since it is now frontend dependent due to fshort-double option.
24444 2014-03-06 Richard Biener <rguenther@suse.de>
24446 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24447 or -fno-lto is specified and the linker has full plugin support.
24448 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24449 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24450 * lto-wrapper.c (merge_and_complain): Merge compile-time
24451 optimization levels.
24452 (run_gcc): And pass it through to the link options.
24454 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
24458 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24460 * cselib.c (remove_useless_values): Skip to avoid quadratic
24461 behavior if the condition moved from...
24462 (cselib_process_insn): ... here holds.
24464 2014-03-05 Jakub Jelinek <jakub@redhat.com>
24467 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24468 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24471 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24472 (TM_H): Add x86-tune.def.
24474 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24476 * config/aarch64/aarch64.c (generic_tunings):
24477 Use cortexa57_extra_costs.
24479 2014-03-05 Jakub Jelinek <jakub@redhat.com>
24482 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24483 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24484 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24487 2014-03-04 Heiher <r@hev.cc>
24489 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24490 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24492 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
24494 * config/i386/predicates.md (const2356_operand): Change to ...
24495 (const2367_operand): ... this.
24496 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24498 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24499 (*avx512pf_scatterpf<mode>sf): Ditto.
24500 (avx512pf_scatterpf<mode>df): Ditto.
24501 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24502 (*avx512pf_scatterpf<mode>df): Ditto.
24503 * config/i386/i386.c (ix86_expand_builtin): Update
24504 incorrect hint operand error message.
24506 2014-03-04 Richard Biener <rguenther@suse.de>
24508 * lto-section-in.c (lto_get_section_data): Fix const cast.
24510 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
24512 * tree-streamer.c (record_common_node): Assert we don't record
24513 nodes with type double.
24514 (preload_common_node): Skip type double, complex double and double
24515 pointer since it is now frontend dependent due to fshort-double option.
24517 2014-03-04 Richard Biener <rguenther@suse.de>
24520 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24521 (lto_input_toplevel_asms): Likewise.
24522 * lto-section-in.c (lto_get_section_data): Instead do it here
24525 2014-03-04 Richard Biener <rguenther@suse.de>
24527 PR tree-optimization/60382
24528 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24529 dead PHIs a reduction.
24531 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
24533 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24535 (_mm_prefetch): Move out of GCC target("sse") pragma.
24536 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24537 GCC target("prfchw") pragma.
24538 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24540 * config/i386/i386.c (ix86_option_override_internal): Enable
24541 -mprfchw with -mprefetchwt1.
24543 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24545 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24548 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24550 * opts.h (CL_PCH_IGNORE): Define.
24551 * targhooks.c (option_affects_pch_p):
24552 Return false for options that have CL_PCH_IGNORE set.
24553 * opt-functions.awk: Process PchIgnore.
24554 * doc/options.texi: Document PchIgnore.
24556 * config/arc/arc.opt (misize): Add PchIgnore property.
24558 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24560 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24561 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24562 constraint on constants to permit them being loaded into
24563 GENERAL_REGS or BASE_REGS.
24565 2014-03-03 Nick Clifton <nickc@redhat.com>
24567 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24568 anti-cacnonical alternatives.
24569 (negandhi3_real): New pattern.
24570 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24572 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24574 * config/avr/avr-mcus.def: Remove atxmega16x1.
24575 * config/avr/avr-tables.opt: Regenerate.
24576 * config/avr/t-multilib: Regenerate.
24577 * doc/avr-mmcu.texi: Regenerate.
24579 2014-03-03 Tobias Grosser <tobias@grosser.es>
24580 Mircea Namolaru <mircea.namolaru@inria.fr>
24582 PR tree-optimization/58028
24583 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24586 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24588 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24589 not handled by recognizers.
24591 2014-03-03 Jakub Jelinek <jakub@redhat.com>
24593 PR middle-end/60175
24594 * function.c (expand_function_end): Don't emit
24595 clobber_return_register sequence if clobber_after is a BARRIER.
24596 * cfgexpand.c (construct_exit_block): Append instructions before
24597 return_label to prev_bb.
24599 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24601 * config/rs6000/constraints.md: Document reserved use of "wc".
24603 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24606 * ipa.c (function_and_variable_visibility): When dissolving comdat
24607 group, also set all symbols to local.
24609 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24614 2013-12-14 Jan Hubicka <jh@suse.cz>
24615 PR middle-end/58477
24616 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24618 2014-03-02 Jon Beniston <jon@beniston.com>
24624 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24625 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24626 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24627 (simple_return, *simple_return): New patterns
24628 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24629 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24631 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
24633 * dwarf2out.c (gen_subprogram_die): Tidy.
24635 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
24638 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24639 (*mov_t_msb_neg_negc): ... this new insn.
24641 2014-02-28 Jason Merrill <jason@redhat.com>
24644 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24647 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
24650 * dwarf2out.c (decltype_auto_die): New static.
24651 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24652 (gen_type_die_with_usage): Handle 'decltype(auto)'.
24653 (is_cxx_auto): Likewise.
24655 2014-02-28 Ian Bolton <ian.bolton@arm.com>
24657 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24658 we are not using general regs only.
24660 2014-02-28 Richard Biener <rguenther@suse.de>
24663 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24664 previous fix and only allow to remove trivial pre-headers
24665 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24666 (remove_forwarder_block): Properly update the latch of a loop.
24668 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24671 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24672 (cselib_preserved_hash_table): New.
24673 (preserve_constants_and_equivs): Move preserved vals to it.
24674 (cselib_find_slot): Look it up first.
24675 (cselib_init): Initialize it.
24676 (cselib_finish): Release it.
24677 (dump_cselib_table): Dump it.
24679 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24682 * cselib.c (remove_useless_values): Skip to avoid quadratic
24683 behavior if the condition moved from...
24684 (cselib_process_insn): ... here holds.
24686 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24689 * var-tracking.c (vt_initialize): Apply the same condition to
24690 preserve the CFA base value.
24692 2014-02-28 Joey Ye <joey.ye@arm.com>
24695 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24696 if reload in progress or completed.
24698 2014-02-28 Tobias Burnus <burnus@net-b.de>
24700 PR middle-end/60147
24701 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24704 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
24706 * doc/tm.texi.in (Condition Code Status): Update documention for
24707 relative locations of cc0-setter and cc0-user.
24709 2014-02-27 Jeff Law <law@redhat.com>
24711 PR rtl-optimization/52714
24712 * combine.c (try_combine): When splitting an unrecognized PARALLEL
24713 into two independent simple sets, if I3 is a jump, ensure the
24714 pattern we place into I3 is a (set (pc) ...).
24716 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
24717 Jeff Law <law@redhat.com>
24719 PR rtl-optimization/49847
24720 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24721 are in different blocks.
24722 * doc/tm.texi (Condition Code Status): Update documention for
24723 relative locations of cc0-setter and cc0-user.
24725 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
24728 * lra.c (lra_emit_add): Check SUBREG too.
24730 2014-02-27 Andreas Schwab <schwab@suse.de>
24732 * config/m68k/m68k.c (m68k_option_override): Disable
24733 -flive-range-shrinkage for classic m68k.
24734 (m68k_override_options_after_change): Likewise.
24736 2014-02-27 Marek Polacek <polacek@redhat.com>
24738 PR middle-end/59223
24739 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24740 -Wmaybe-uninitialized.
24742 2014-02-27 Alan Modra <amodra@gmail.com>
24745 * reload1.c (emit_input_reload_insns): When reload_override_in,
24746 set old to rl->in_reg when rl->in_reg is a subreg.
24748 2014-02-26 Richard Biener <rguenther@suse.de>
24751 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24753 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24755 * common/config/i386/predicates.md (const1256_operand): Remove.
24756 (const2356_operand): New.
24757 (const_1_to_2_operand): Remove.
24758 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24759 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24760 (*avx512pf_gatherpf<mode>sf): Ditto.
24761 (avx512pf_gatherpf<mode>df): Ditto.
24762 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24763 (*avx512pf_gatherpf<mode>df): Ditto.
24764 (avx512pf_scatterpf<mode>sf): Ditto.
24765 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24766 (*avx512pf_scatterpf<mode>sf): Ditto.
24767 (avx512pf_scatterpf<mode>df): Ditto.
24768 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24769 (*avx512pf_scatterpf<mode>df): Ditto.
24770 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24772 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
24774 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24775 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24776 (_mm512_mask_testn_epi64_mask): Move to ...
24777 * config/i386/avx512cdintrin.h: Here.
24778 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24779 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24780 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24781 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24782 TARGET_AVX512F from TARGET_AVX512CD.
24784 2014-02-26 Richard Biener <rguenther@suse.de>
24787 * ipa.c (walk_polymorphic_call_targets): Properly guard
24788 call to inline_update_overall_summary.
24790 2014-02-26 Bin Cheng <bin.cheng@arm.com>
24793 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24794 and latches only if requested. Fix latch if it is removed.
24795 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24796 LOOPS_HAVE_PREHEADERS.
24798 2014-02-25 Andrew Pinski <apinski@cavium.com>
24800 * builtins.c (expand_builtin_thread_pointer): Create a new target
24801 when the target is NULL.
24803 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
24805 PR rtl-optimization/60317
24806 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24807 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24808 * lra-assigns.c: Include params.h.
24809 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24810 other reload pseudos considerations.
24812 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24814 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24815 to use canonical form for nor<mode>3.
24817 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24820 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24823 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24825 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24826 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24827 (ix86_handle_option): Handle OPT_mprefetchwt1.
24828 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24829 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24831 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24832 OPTION_MASK_ISA_PREFETCHWT1.
24833 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24834 (PTA_PREFETCHWT1): New.
24835 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24836 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24837 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24838 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24839 (*prefetch_avx512pf_<mode>_: Change into ...
24840 (*prefetch_prefetchwt1_<mode>: This.
24841 * config/i386/i386.opt (mprefetchwt1): New.
24842 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24843 (_mm_prefetch): Handle intent to write.
24844 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24846 2014-02-25 Richard Biener <rguenther@suse.de>
24848 PR middle-end/60291
24849 * emit-rtl.c (mem_attrs_htab): Remove.
24850 (mem_attrs_htab_hash): Likewise.
24851 (mem_attrs_htab_eq): Likewise.
24852 (set_mem_attrs): Always allocate new mem-attrs when something changed.
24853 (init_emit_once): Do not allocate mem_attrs_htab.
24855 2014-02-25 Richard Biener <rguenther@suse.de>
24858 * lto-opts.c (lto_write_options): Output non-explicit conservative
24859 -fwrapv, -fno-trapv and -fno-strict-overflow.
24860 * lto-wrapper.c (merge_and_complain): Handle merging those options.
24861 (run_gcc): And pass them through.
24863 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24865 * sel-sched.c (calculate_new_fences): New parameter ptime.
24866 Calculate it as a maximum over all fence cycles.
24867 (sel_sched_region_2): Adjust the call to calculate_new_fences.
24868 Print the final schedule timing when sched_verbose.
24870 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24872 PR rtl-optimization/60292
24873 * sel-sched.c (fill_vec_av_set): Do not reset target availability
24874 bit fot the fence instruction.
24876 2014-02-24 Alangi Derick <alangiderick@gmail.com>
24878 * calls.h: Fix typo in comment.
24880 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
24882 * config/pa/pa.c (pa_output_move_double): Don't valididate when
24883 adjusting offsetable addresses.
24885 2014-02-24 Guozhi Wei <carrot@google.com>
24887 * sparseset.h (sparseset_pop): Fix the wrong index.
24889 2014-02-24 Walter Lee <walt@tilera.com>
24891 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24892 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24894 * common/config/tilegx/tilegx-common.c
24895 (TARGET_DEFAULT_TARGET_FLAGS): Define.
24896 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24897 (LINK_SPEC): Ditto.
24898 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24899 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24900 (tilegx_gimplify_va_arg_expr): Handle big endian.
24901 (tilegx_expand_unaligned_load): Ditto.
24902 (tilegx_expand_unaligned_store): Ditto.
24903 (TARGET_RETURN_IN_MSB): New.
24904 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24905 (TARGET_ENDIAN_DEFAULT): New.
24906 (TARGET_BIG_ENDIAN): Handle big endian.
24907 (BYTES_BIG_ENDIAN): Ditto.
24908 (WORDS_BIG_ENDIAN): Ditto.
24909 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24910 (ENDIAN_SPEC): New.
24911 (EXTRA_SPECS): New.
24912 * config/tilegx/tilegx.md (extv): Handle big endian.
24914 (insn_st<n>): Ditto.
24915 (insn_st<n>_add<bitsuffix>): Ditto.
24916 (insn_stnt<n>): Ditto.
24917 (insn_stnt<n>_add<bitsuffix>):Ditto.
24918 (vec_interleave_highv8qi): Handle big endian.
24919 (vec_interleave_highv8qi_be): New.
24920 (vec_interleave_highv8qi_le): New.
24921 (insn_v1int_h): Handle big endian.
24922 (vec_interleave_lowv8qi): Handle big endian.
24923 (vec_interleave_lowv8qi_be): New.
24924 (vec_interleave_lowv8qi_le): New.
24925 (insn_v1int_l): Handle big endian.
24926 (vec_interleave_highv4hi): Handle big endian.
24927 (vec_interleave_highv4hi_be): New.
24928 (vec_interleave_highv4hi_le): New.
24929 (insn_v2int_h): Handle big endian.
24930 (vec_interleave_lowv4hi): Handle big endian.
24931 (vec_interleave_lowv4hi_be): New.
24932 (vec_interleave_lowv4hi_le): New.
24933 (insn_v2int_l): Handle big endian.
24934 (vec_interleave_highv2si): Handle big endian.
24935 (vec_interleave_highv2si_be): New.
24936 (vec_interleave_highv2si_le): New.
24937 (insn_v4int_h): Handle big endian.
24938 (vec_interleave_lowv2si): Handle big endian.
24939 (vec_interleave_lowv2si_be): New.
24940 (vec_interleave_lowv2si_le): New.
24941 (insn_v4int_l): Handle big endian.
24942 * config/tilegx/tilegx.opt (mbig-endian): New option.
24943 (mlittle-endian): New option.
24944 * doc/install.texi: Document tilegxbe-linux.
24945 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24947 2014-02-24 Martin Jambor <mjambor@suse.cz>
24950 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24951 there are no parameter descriptors.
24953 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
24955 PR rtl-optimization/60268
24956 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24957 initialization to ...
24958 (sched_rgn_init): ... here.
24959 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24961 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24963 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24966 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
24968 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24971 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24973 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24974 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24976 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24978 * config/microblaze/predicates.md: Add cmp_op predicate.
24979 * config/microblaze/microblaze.md: Add branch_compare instruction
24980 which uses cmp_op predicate and emits cmp insn before branch.
24981 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24982 to microblaze_expand_conditional_branch and consolidate logic.
24983 (microblaze_expand_conditional_branch): emit branch_compare
24984 insn instead of handling cmp op separate from branch insn.
24986 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24988 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24991 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24993 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24994 define_insn with define_expand and new define_insn
24995 *altivec_lve<VI_char>x_internal.
24996 (altivec_stve<VI_char>x): Replace define_insn with define_expand
24997 and new define_insn *altivec_stve<VI_char>x_internal.
24998 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25000 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25002 (altivec_expand_stvex_be): New function.
25004 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
25006 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25007 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25008 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25009 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25011 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
25014 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25015 instead of emit_move_insn.
25017 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25019 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25020 vspltw with vsldoi.
25021 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25022 gen_altivec_vsumsws.
25024 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25026 * config/rs6000/altivec.md (altivec_lvxl): Rename as
25027 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25028 (altivec_lvxl_<mode>): New define_expand incorporating
25029 -maltivec=be semantics where needed.
25030 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25031 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25032 semantics where needed.
25033 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25034 (altivec_stvx_<mode>): New define_expand incorporating
25035 -maltivec=be semantics where needed.
25036 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25037 VM2 iterator instead of V4SI.
25038 (altivec_stvxl_<mode>): New define_expand incorporating
25039 -maltivec=be semantics where needed.
25040 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25041 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25042 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25043 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25044 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25045 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25046 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25047 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25048 ALTIVEC_BUILTIN_STVXL.
25049 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25050 (altivec_expand_stvx_be): Likewise.
25051 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25052 (altivec_expand_lvx_be): Likewise.
25053 (altivec_expand_stvx_be): Likewise.
25054 (altivec_expand_builtin): Add cases for
25055 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25056 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25057 (altivec_init_builtins): Add definitions for
25058 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25059 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25061 2014-02-21 Catherine Moore <clm@codesourcery.com>
25063 * doc/invoke.texi (mvirt, mno-virt): Document.
25064 * config/mips/mips.opt (mvirt): New option.
25065 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25067 2014-02-21 Richard Biener <rguenther@suse.de>
25069 PR tree-optimization/60276
25070 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25071 (STMT_VINFO_MIN_NEG_DIST): New macro.
25072 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25073 STMT_VINFO_MIN_NEG_DIST.
25074 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25075 made for negative dependence distances still hold.
25077 2014-02-21 Richard Biener <rguenther@suse.de>
25079 PR middle-end/60291
25080 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25081 DECL_INITIAL for globals not in the current function context.
25083 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25085 PR tree-optimization/56490
25086 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25087 * tree-ssa-uninit.c: Include params.h.
25088 (compute_control_dep_chain): Add num_calls argument, return false
25089 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25090 num_calls to recursive call.
25091 (find_predicates): Change dep_chain into normal array,
25092 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25093 variable and adjust compute_control_dep_chain caller.
25094 (find_def_preds): Likewise.
25096 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
25098 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25099 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25101 2014-02-21 Nick Clifton <nickc@redhat.com>
25103 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25104 (pushhi1): Likewise.
25105 (popqi1): Add mode to pre_dec.
25106 (pophi1): Likewise.
25108 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25110 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25111 mode for mask of V8SFmode permutation.
25113 2014-02-20 Richard Henderson <rth@redhat.com>
25116 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25117 a new pseudo for OLDVAL.
25119 2014-02-20 Jakub Jelinek <jakub@redhat.com>
25122 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25123 gen_reg_rtx if d->testing_p.
25124 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25125 if d->testing_p and we will certainly return true.
25126 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
25129 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
25131 * emit-rtl.c (gen_reg_rtx): Assert that
25132 crtl->emit.regno_pointer_align_length is non-zero.
25134 2014-02-20 Richard Henderson <rth@redhat.com>
25137 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25138 on failure the store back into EXPECT.
25140 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
25141 Sandra Loosemore <sandra@codesourcery.com>
25143 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25144 * config/nios2/nios2.c (nios2_function_profiler): Add
25145 -fPIC (flag_pic == 2) support.
25146 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25147 (nios2_large_offset_p): New function.
25148 (nios2_unspec_reloc_p): Move up position, update to use
25149 nios2_large_offset_p.
25150 (nios2_unspec_address): Remove function.
25151 (nios2_unspec_offset): New function.
25152 (nios2_large_got_address): New function.
25153 (nios2_got_address): Add large offset support.
25154 (nios2_legitimize_tls_address): Update usage of removed and new
25156 (nios2_symbol_binds_local_p): New function.
25157 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25158 (nios2_legitimize_address): Update to use nios2_large_offset_p.
25159 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25160 (nios2_print_operand): Merge H/L processing, add hiadj/lo
25161 processing for (const (unspec ...)).
25162 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25164 2014-02-20 Richard Biener <rguenther@suse.de>
25166 * tree-cfg.c (replace_uses_by): Mark altered BBs before
25167 doing the substitution.
25168 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25170 2014-02-20 Martin Jambor <mjambor@suse.cz>
25173 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25174 info when checking whether lattices are bottom.
25176 2014-02-20 Richard Biener <rguenther@suse.de>
25178 PR middle-end/60221
25179 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25182 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
25185 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25186 parameter specifying the scaling.
25187 (inline_call): Update.
25188 (want_inline_recursively): Guard division by zero.
25189 (recursive_inlining): Update.
25190 * ipa-inline.h (clone_inlined_nodes): Update.
25192 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25195 * config/i386/i386.c (classify_argument): Pass structures of size
25196 64 bytes or less in register.
25198 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25199 Kirill Yukhin <kirill.yukhin@intel.com>
25201 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25202 (_mm_rcp28_round_ss): Ditto.
25203 (_mm_rsqrt28_round_sd): Ditto.
25204 (_mm_rsqrt28_round_ss): Ditto.
25205 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25206 (_mm_rcp14_round_ss): Ditto.
25207 (_mm_rsqrt14_round_sd): Ditto.
25208 (_mm_rsqrt14_round_ss): Ditto.
25209 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25210 the first input operand, get rid of match_dup.
25211 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25213 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25215 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25216 operand as the first input operand, set type attribute.
25217 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25218 Set type attribute.
25219 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25220 operand as the first input operand, set type attribute.
25222 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25224 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25227 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
25230 * config/i386/i386.c (construct_container): Remove TFmode check
25231 for X86_64_INTEGER_CLASS.
25233 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
25236 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25237 only when -Wpsabi is enabled.
25239 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
25242 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
25243 passing arrays in registers are the same as for structs, so remove the
25244 special case for them.
25246 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
25248 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
25249 destination type, extract only the valid bits if the source type is not
25250 integral and has a different mode.
25252 2014-02-19 Richard Biener <rguenther@suse.de>
25255 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
25258 2014-02-19 Richard Biener <rguenther@suse.de>
25261 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
25262 (ipa_modify_call_arguments): Emit an argument load explicitely and
25263 preserve virtual SSA form there and for the replacement call.
25264 Do not update SSA form nor free dominance info.
25266 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25268 * ipa.c (function_and_variable_visibility): Also clear WEAK
25269 flag when disolving COMDAT_GROUP.
25271 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25273 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
25274 * ipa-prop.c (ipa_set_jf_known_type): Return early when
25275 not devirtualizing.
25276 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
25277 do more sanity checks.
25278 (detect_type_change): Return true when giving up early.
25279 (compute_complex_assign_jump_func): Fix type parameter of
25280 ipa_set_ancestor_jf.
25281 (compute_complex_ancestor_jump_func): Likewise.
25282 (update_jump_functions_after_inlining): Fix updating of
25284 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
25286 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25288 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
25289 inline clones when edge disappears.
25291 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
25294 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
25295 Split 64-bit moves into 2 patterns. Do not allow the use of
25296 direct move for TDmode in little endian, since the decimal value
25297 has little endian bytes within a word, but the 64-bit pieces are
25298 ordered in a big endian fashion, and normal subreg's of TDmode are
25300 (mov<mode>_64bit_dm): Likewise.
25301 (movtd_64bit_nodm): Likewise.
25303 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
25305 PR tree-optimization/60174
25306 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
25307 statement of an SSA_NAME that occurs in an abnormal PHI node.
25309 2014-02-18 Jakub Jelinek <jakub@redhat.com>
25312 * final.c (SEEN_BB): Remove.
25313 (SEEN_NOTE, SEEN_EMITTED): Renumber.
25314 (final_scan_insn): Don't force_source_line on second
25315 NOTE_INSN_BASIC_BLOCK.
25317 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
25320 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25321 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25322 (type_natural_mode): Warn ABI change when %zmm register is not
25323 available for AVX512F vector value passing.
25325 2014-02-18 Kai Tietz <ktietz@redhat.com>
25328 * config/i386/i386.c (ix86_expand_prologue): Use value in
25329 rax register as displacement when restoring %r10 or %rax.
25330 Fix wrong offset when restoring both registers.
25332 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
25334 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25335 assertion with conditional return.
25337 2014-02-18 Jakub Jelinek <jakub@redhat.com>
25338 Uros Bizjak <ubizjak@gmail.com>
25341 * config/i386/driver-i386.c (host_detect_local_cpu): If
25342 YMM state is not saved by the OS, also clear has_f16c. Move
25343 CPUID 0x80000001 handling before YMM state saving checking.
25345 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
25347 PR rtl-optimization/58960
25348 * haifa-sched.c (alloc_global_sched_pressure_data): New,
25349 factored out from ...
25350 (sched_init): ... here.
25351 (free_global_sched_pressure_data): New, factored out from ...
25352 (sched_finish): ... here.
25353 * sched-int.h (free_global_sched_pressure_data): Declare.
25354 * sched-rgn.c (nr_regions_initial): New static global.
25355 (haifa_find_rgns): Initialize it.
25356 (schedule_region): Disable sched-pressure for the newly
25359 2014-02-17 Richard Biener <rguenther@suse.de>
25361 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
25362 release SSA defs of pattern stmts.
25364 2014-02-17 Richard Biener <rguenther@suse.de>
25366 * tree-inline.c (expand_call_inline): Release the virtual
25367 operand defined by the call we are about to inline.
25369 2014-02-17 Richard Biener <rguenther@suse.de>
25371 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
25373 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
25374 Ilya Tocar <ilya.tocar@intel.com>
25376 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
25377 arguments order in builtin.
25378 (_mm512_permutexvar_epi64): Ditto.
25379 (_mm512_mask_permutexvar_epi64): Ditto
25380 (_mm512_maskz_permutexvar_epi32): Ditto
25381 (_mm512_permutexvar_epi32): Ditto
25382 (_mm512_mask_permutexvar_epi32): Ditto
25384 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25386 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
25387 (p8_vmrgow): Likewise.
25389 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25391 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
25394 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
25397 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
25398 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
25399 into 64-bit and 32-bit moves. On 64-bit moves, add support for
25400 using direct move instructions on ISA 2.07. Also adjust
25401 instruction length for 64-bit.
25402 (mov<mode>_64bit, TFmode/TDmode): Likewise.
25403 (mov<mode>_32bit, TFmode/TDmode): Likewise.
25405 2014-02-15 Alan Modra <amodra@gmail.com>
25409 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25410 find_replacement on parts of insn rtl that might be reloaded.
25412 2014-02-15 Richard Biener <rguenther@suse.de>
25414 PR tree-optimization/60183
25415 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25416 (tree_ssa_phiprop): Calculate and free post-dominators.
25418 2014-02-14 Jeff Law <law@redhat.com>
25420 PR rtl-optimization/60131
25421 * ree.c (get_extended_src_reg): New function.
25422 (combine_reaching_defs): Use it rather than assuming location of REG.
25423 (find_and_remove_re): Verify first operand of extension is
25424 a REG before adding the insns to the copy list.
25426 2014-02-14 Roland McGrath <mcgrathr@google.com>
25428 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25429 * configure: Regenerated.
25430 * config.in: Regenerated.
25431 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25432 instead of ASM_SHORT.
25434 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
25435 Richard Earnshaw <rearnsha@arm.com>
25437 PR rtl-optimization/59535
25438 * lra-constraints.c (process_alt_operands): Encourage alternative
25439 when unassigned pseudo class is superset of the alternative class.
25440 (inherit_reload_reg): Don't inherit when optimizing for code size.
25441 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25442 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25443 modes not less than 4 for Thumb1.
25445 2014-02-14 Kyle McMartin <kyle@redhat.com>
25448 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25450 2014-02-14 Richard Biener <rguenther@suse.de>
25452 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25453 (get_frame_arg): Drop the assert with langhook types_compatible_p.
25454 Do not strip INDIRECT_REFs.
25456 2014-02-14 Richard Biener <rguenther@suse.de>
25459 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25460 DECL_FUNCTION_SPECIFIC_TARGET.
25461 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25462 * tree-streamer-out.c (pack_ts_target_option): Remove.
25463 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25464 (write_ts_function_decl_tree_pointers): Do not stream
25465 DECL_FUNCTION_SPECIFIC_TARGET.
25466 * tree-streamer-in.c (unpack_ts_target_option): Remove.
25467 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25468 (lto_input_ts_function_decl_tree_pointers): Do not stream
25469 DECL_FUNCTION_SPECIFIC_TARGET.
25471 2014-02-14 Jakub Jelinek <jakub@redhat.com>
25473 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25474 (get_initial_def_for_induction, vectorizable_induction): Ignore
25475 debug stmts when looking for exit_phi.
25476 (vectorizable_live_operation): Fix up condition.
25478 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25480 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25481 nreverse() because it changes the content of original tree list.
25483 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25485 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25486 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25488 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25490 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25491 GNU coding standards.
25493 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25496 * dwarf2out.c (gen_subprogram_die): Don't call
25497 add_calling_convention_attribute if subr_die is old_die.
25499 2014-02-13 Sharad Singhai <singhai@google.com>
25501 * doc/optinfo.texi: Fix order of nodes.
25503 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
25505 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25506 operands[2], not operands[3].
25508 2014-02-13 Richard Biener <rguenther@suse.de>
25511 * doc/install.texi (ISL): Update recommended version to 0.12.2,
25512 mention the possibility of an in-tree build.
25513 (CLooG): Update recommended version to 0.18.1, mention the
25514 possibility of an in-tree build and clarify that the ISL
25515 bundled with CLooG does not work.
25517 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25520 * expr.c (compress_float_constant): If x is a hard register,
25521 extend into a pseudo and then move to x.
25523 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
25525 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25526 caused by bad second argument to warning_at() with -mhotpatch and
25527 nested functions (e.g. with gfortran).
25529 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
25531 * opts.c (option_name): Remove "enabled by default" rider.
25533 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
25535 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25537 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
25538 Uros Bizjak <ubizjak@gmail.com>
25541 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25542 * configure: Regenerated.
25544 2014-02-12 Richard Biener <rguenther@suse.de>
25546 * vec.c (vec_prefix::calculate_allocation): Move as
25547 inline variant to vec.h.
25548 (vec_prefix::calculate_allocation_1): New out-of-line version.
25549 * vec.h (vec_prefix::calculate_allocation_1): Declare.
25550 (vec_prefix::m_has_auto_buf): Rename to ...
25551 (vec_prefix::m_using_auto_storage): ... this.
25552 (vec_prefix::calculate_allocation): Inline the easy cases
25553 and dispatch to calculate_allocation_1 which doesn't need the
25555 (va_heap::reserve): Use gcc_checking_assert.
25556 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25557 m_using_auto_storage.
25558 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25560 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25561 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25562 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25564 2014-02-12 Richard Biener <rguenther@suse.de>
25566 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25567 when we found a dependence.
25569 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
25571 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25573 (maybe_fold_stmt): ... into this new function.
25574 * omp-low.c (lower_omp): Update comment.
25576 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25579 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25582 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
25584 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25585 identifiers in comments.
25586 (cortexa53_extra_costs): Likewise.
25587 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25588 (cortexa7_extra_costs): Likewise.
25589 (cortexa12_extra_costs): Likewise.
25590 (cortexa15_extra_costs): Likewise.
25591 (v7m_extra_costs): Likewise.
25593 2014-02-12 Richard Biener <rguenther@suse.de>
25595 PR middle-end/60092
25596 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25597 of posix_memalign being successful.
25598 (lower_stmt): Restrict lowering of posix_memalign to when
25599 -ftree-bit-ccp is enabled.
25601 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25603 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25605 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25607 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
25609 PR rtl-optimization/60116
25610 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25611 other_insn once the combination has been validated.
25613 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
25616 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25618 * ipa-devirt.c: Include demangle.h
25619 (odr_violation_reported): New static variable.
25620 (add_type_duplicate): Update odr_violations.
25621 (maybe_record_node): Add completep parameter; update it.
25622 (record_target_from_binfo): Add COMPLETEP parameter;
25623 update it as needed.
25624 (possible_polymorphic_call_targets_1): Likewise.
25625 (struct polymorphic_call_target_d): Add nonconstruction_targets;
25626 rename FINAL to COMPLETE.
25627 (record_targets_from_bases): Sanity check we found the binfo;
25628 fix COMPLETEP updating.
25629 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25630 parameter, fix computing of COMPLETEP.
25631 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25632 at LTO time do demangling.
25633 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25634 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25636 (gimple_get_virt_method_for_binfo): Likewise.
25637 * gimple-fold.h (gimple_get_virt_method_for_binfo,
25638 gimple_get_virt_method_for_vtable): Update prototypes.
25640 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
25643 * genautomata.c (add_presence_absence): Fix typo with
25644 {final_}presence_list.
25646 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25649 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25650 for VSX/Altivec vectors that land in GPR registers.
25652 2014-02-11 Richard Henderson <rth@redhat.com>
25653 Jakub Jelinek <jakub@redhat.com>
25656 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25657 around drhs if type conversion to lacc->type is not useless.
25659 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25661 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25663 (cortex-a57.cortex-a53): Likewise.
25664 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25666 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25668 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25671 2014-02-11 Renlin Li <Renlin.Li@arm.com>
25673 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25674 add_options_for_arm_vfp3.
25676 2014-02-11 Jeff Law <law@redhat.com>
25678 PR middle-end/54041
25679 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25680 object with an undesirable mode.
25682 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25685 * config/i386/sol2-9.h: New file.
25686 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25687 *-*-solaris2.9*): Use it.
25689 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25691 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25692 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25694 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25696 * config/microblaze/microblaze.c: Extend mcpu version format
25698 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
25700 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25702 2014-02-10 Richard Henderson <rth@redhat.com>
25705 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25706 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25707 ms-abi vs -mno-accumulate-outgoing-args.
25708 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25709 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25712 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
25714 PR middle-end/60080
25715 * cfgexpand.c (expand_asm_operands): Attach source location to
25716 ASM_INPUT rtx objects.
25717 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25719 2014-02-10 Nick Clifton <nickc@redhat.com>
25721 * config/mn10300/mn10300.c (popcount): New function.
25722 (mn10300_expand_prologue): Include saved registers in stack usage
25725 2014-02-10 Jeff Law <law@redhat.com>
25727 PR middle-end/52306
25728 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25729 when changing the SET_DEST of a prior insn to avoid an input reload.
25731 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25733 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25734 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25735 -mcall-openbsd, or -mcall-linux.
25736 (CC1_ENDIAN_BIG_SPEC): Remove.
25737 (CC1_ENDIAN_LITTLE_SPEC): Remove.
25738 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25739 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25740 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25741 and %cc1_endian_default.
25742 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25744 2014-02-10 Richard Biener <rguenther@suse.de>
25746 PR tree-optimization/60115
25747 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25748 MEM_REF handling. Properly verify that the accesses are not
25749 out of the objects bound.
25751 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25753 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25756 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
25758 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25759 proper constants and fix formatting.
25760 (possible_polymorphic_call_targets): Fix formatting.
25762 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
25763 Ilya Tocar <ilya.tocar@intel.com>
25765 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25766 (_mm512_loadu_epi32): Renamed into...
25767 (_mm512_loadu_si512): This.
25768 (_mm512_storeu_epi32): Renamed into...
25769 (_mm512_storeu_si512): This.
25770 (_mm512_maskz_ceil_ps): Removed.
25771 (_mm512_maskz_ceil_pd): Ditto.
25772 (_mm512_maskz_floor_ps): Ditto.
25773 (_mm512_maskz_floor_pd): Ditto.
25774 (_mm512_floor_round_ps): Ditto.
25775 (_mm512_floor_round_pd): Ditto.
25776 (_mm512_ceil_round_ps): Ditto.
25777 (_mm512_ceil_round_pd): Ditto.
25778 (_mm512_mask_floor_round_ps): Ditto.
25779 (_mm512_mask_floor_round_pd): Ditto.
25780 (_mm512_mask_ceil_round_ps): Ditto.
25781 (_mm512_mask_ceil_round_pd): Ditto.
25782 (_mm512_maskz_floor_round_ps): Ditto.
25783 (_mm512_maskz_floor_round_pd): Ditto.
25784 (_mm512_maskz_ceil_round_ps): Ditto.
25785 (_mm512_maskz_ceil_round_pd): Ditto.
25786 (_mm512_expand_pd): Ditto.
25787 (_mm512_expand_ps): Ditto.
25788 * config/i386/i386.c (ix86_builtins): Remove
25789 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25790 (bdesc_args): Ditto.
25791 * config/i386/predicates.md (const1256_operand): New.
25792 (const_1_to_2_operand): Ditto.
25793 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25794 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25795 (*avx512pf_gatherpf<mode>sf): Ditto.
25796 (avx512pf_gatherpf<mode>df): Ditto.
25797 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25798 (*avx512pf_gatherpf<mode>df): Ditto.
25799 (avx512pf_scatterpf<mode>sf): Ditto.
25800 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25801 (*avx512pf_scatterpf<mode>sf): Ditto.
25802 (avx512pf_scatterpf<mode>df): Ditto.
25803 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25804 (*avx512pf_scatterpf<mode>df): Ditto.
25805 (avx512f_expand<mode>): Removed.
25806 (<shift_insn><mode>3<mask_name>): Change predicate type.
25808 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25810 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25811 not at the end of datarefs vector use ordered_remove to avoid
25812 reordering datarefs vector.
25815 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25816 mark local addressable non-static vars as GOVD_PRIVATE
25817 instead of GOVD_LOCAL.
25818 * omp-low.c (lower_omp_for): Move gimple_bind_vars
25819 and BLOCK_VARS of gimple_bind_block to new_stmt rather
25822 PR middle-end/60092
25823 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25824 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25825 assume_aligned or alloc_align attributes.
25826 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25827 arguments. Handle also assume_aligned and alloc_align attributes.
25828 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
25829 calls to functions with assume_aligned or alloc_align attributes.
25830 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25832 2014-02-08 Terry Guo <terry.guo@arm.com>
25834 * doc/invoke.texi: Document ARM -march=armv7e-m.
25836 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25838 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25839 flag on __cilkrts_rethrow builtin.
25842 * ipa-cp.c (determine_versionability): Fail at -O0
25843 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25844 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25847 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25850 * tree-inline.c (copy_forbidden): Fail for
25851 __attribute__((optimize (0))) functions.
25853 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25855 * varpool.c: Include pointer-set.h.
25856 (varpool_remove_unreferenced_decls): Variables in other partitions
25857 will not be output; be however careful to not lose information
25858 about partitioning.
25860 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25862 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25863 lookup in the vtable constructor.
25865 2014-02-07 Jeff Law <law@redhat.com>
25868 * config/m68k/m68k.md (ashldi_extsi): Turn into a
25869 define_insn_and_split.
25871 * ipa-inline.c (inline_small_functions): Fix typos.
25873 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25875 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25876 (s390_can_use_return_insn): Declare.
25877 * config/s390/s390.h (EPILOGUE_USES): Define.
25878 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25880 (s390_chunkify_start): Handle return JUMP_LABELs.
25881 (s390_early_mach): Emit a main_pool instruction on the entry edge.
25882 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25883 (s390_can_use_return_insn): New functions.
25884 (s390_fix_long_loop_prediction): Handle conditional returns.
25885 (TARGET_SET_UP_BY_PROLOGUE): Define.
25886 * config/s390/s390.md (ANY_RETURN): New code iterator.
25887 (*creturn, *csimple_return, return, simple_return): New patterns.
25889 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25891 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25892 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
25893 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
25894 REG_CFA_RESTORE list when deciding not to restore a register.
25896 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25898 * config/s390/s390.c: Include tree-pass.h and context.h.
25899 (s390_early_mach): New function, split out from...
25900 (s390_emit_prologue): ...here.
25901 (pass_data_s390_early_mach): New pass structure.
25902 (pass_s390_early_mach): New class.
25903 (s390_option_override): Create and register early_mach pass.
25904 Move to end of file.
25906 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25908 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25909 to match for the exit block.
25911 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25913 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25914 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25915 Reject misaligned operands.
25917 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25919 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25921 2014-02-07 Richard Biener <rguenther@suse.de>
25923 PR middle-end/60092
25924 * gimple-low.c (lower_builtin_posix_memalign): New function.
25925 (lower_stmt): Call it to lower posix_memalign in a way
25926 to make alignment info accessible.
25928 2014-02-07 Jakub Jelinek <jakub@redhat.com>
25931 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25932 __builtin_setjmp_receiver.
25934 2014-02-07 Richard Biener <rguenther@suse.de>
25936 PR middle-end/60092
25937 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25938 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25939 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25940 Handle BUILT_IN_POSIX_MEMALIGN.
25941 (find_func_clobbers): Likewise.
25942 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25943 (call_may_clobber_ref_p_1): Likewise.
25945 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25948 * ipa-devirt.c (record_target_from_binfo): Remove overactive
25951 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25954 * lto-cgraph.c (lto_output_node): Use
25955 symtab_get_symbol_partitioning_class.
25956 (lto_output_varpool_node): likewise.
25957 (symtab_get_symbol_partitioning_class): Move here from
25958 lto/lto-partition.c
25959 * cgraph.h (symbol_partitioning_class): Likewise.
25960 (symtab_get_symbol_partitioning_class): Declare.
25962 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25964 * ggc.h (ggc_internal_cleared_alloc): New macro.
25965 * vec.h (vec_safe_copy): Handle memory stats.
25966 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25967 * target-globals.c (save_target_globals): Likewise.
25969 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25972 * expr.c (emit_move_resolve_push): Export; be bit more selective
25973 on when to clear alias set.
25974 * expr.h (emit_move_resolve_push): Declare.
25975 * function.h (struct function): Add tail_call_marked.
25976 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25977 * config/i386/i386-protos.h (ix86_expand_push): Remove.
25978 * config/i386/i386.md (TImode move expander): De not call
25980 (FP push expanders): Preserve memory attributes.
25981 * config/i386/sse.md (push<mode>1): Remove.
25982 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25983 (ix86_expand_push): Remove.
25984 * config/i386/mmx.md (push<mode>1): Remove.
25986 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25988 PR rtl-optimization/60030
25989 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25990 lopart with paradoxical subreg before shifting it up by hprec.
25992 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25994 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25995 Remove extra newline at end of file.
25996 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25997 (arm_issue_rate): Handle cortexa57.
25998 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25999 (cortex-a57.cortex-a53): Likewise.
26001 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26004 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26005 don't record in REG_FRAME_RELATED_EXPR registers not set in that
26007 (arm_expand_prologue): Adjust all callers.
26008 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26009 info, registers also at the lowest numbered registers side. Use
26010 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26014 * var-tracking.c (adjust_mems): Before adding a SET to
26015 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26017 2014-02-06 Alan Modra <amodra@gmail.com>
26020 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26021 change SDmode to DDmode when lra_in_progress.
26023 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26025 PR middle-end/59150
26026 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26027 free_data_ref on the dr first, and before goto again also set dr
26028 to the next dr. For simd_lane_access, free old datarefs[i] before
26029 overwriting it. For get_vectype_for_scalar_type failure, don't
26030 free_data_ref if simd_lane_access.
26032 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26035 * tree.h (opts_for_fn): New inline function.
26036 (opt_for_fn): Define.
26037 * config/i386/i386.c (ix86_function_regparm): Use
26038 opt_for_fn (decl, optimize) instead of optimize.
26040 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
26042 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26043 for SYMBOL_REF in large memory model.
26045 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26047 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26048 and crypto support.
26049 (cortex-a57): Likewise.
26050 (cortex-a57.cortex-a53): Likewise.
26052 2014-02-06 Yury Gribov <y.gribov@samsung.com>
26053 Kugan Vivekanandarajah <kuganv@linaro.org>
26055 * config/arm/arm.c (arm_vector_alignment_reachable): Check
26057 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26059 2014-02-06 Richard Biener <rguenther@suse.de>
26061 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26062 set_loop_copy and initialize_original_copy_tables.
26064 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
26066 * config/aarch64/aarch64-simd.md
26067 (aarch64_ashr_simddi): Change QI to SI.
26069 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26070 Jakub Jelinek <jakub@redhat.com>
26072 PR middle-end/60013
26073 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26076 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26078 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26079 CODE_FOR_altivec_vpku[hw]um to
26080 CODE_FOR_altivec_vpku[hw]um_direct.
26081 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26082 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26083 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26084 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26086 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26088 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26089 generation for -maltivec=be.
26090 (altivec_vsumsws): Simplify redundant test.
26092 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26094 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26095 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26096 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26097 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26098 gen_altivec_vpkuwum.
26099 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26101 (altivec_vpks<VI_char>ss): Likewise.
26102 (altivec_vpks<VI_char>us): Likewise.
26103 (altivec_vpku<VI_char>us): Likewise.
26104 (altivec_vpku<VI_char>um): Likewise.
26105 (altivec_vpku<VI_char>um_direct): New (copy of
26106 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26108 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26109 target is little endian and -maltivec=be is not specified.
26110 (*altivec_vupkhs<VU_char>_direct): New (copy of
26111 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26112 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26113 target is little endian and -maltivec=be is not specified.
26114 (*altivec_vupkls<VU_char>_direct): New (copy of
26115 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26116 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26117 little endian and -maltivec=be is not specified.
26118 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26119 little endian and -maltivec=be is not specified.
26121 2014-02-05 Richard Henderson <rth@redhat.com>
26124 * combine-stack-adj.c: Revert r206943.
26125 * sched-int.h (struct deps_desc): Add last_args_size.
26126 * sched-deps.c (init_deps): Initialize it.
26127 (sched_analyze_insn): Add OUTPUT dependencies between insns that
26128 contain REG_ARGS_SIZE notes.
26130 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26132 * lto-cgraph.c (asm_nodes_output): Make global.
26133 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26134 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26135 (driver_handle_option): Handle OPT_fwpa.
26137 2014-02-05 Jakub Jelinek <jakub@redhat.com>
26140 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26141 a comment typo and formatting issue. If odr_hash hasn't been
26142 created, return vNULL and set *completep to false.
26144 PR middle-end/57499
26145 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26146 bb with no successors.
26148 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
26151 * doc/invoke.texi (-march): Clarify documentation for ARM.
26152 (-mtune): Likewise.
26155 2014-02-05 Richard Biener <rguenther@suse.de>
26157 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26158 when not vectorizing because of too many alias checks.
26159 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26160 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26162 2014-02-05 Nick Clifton <nickc@redhat.com>
26164 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26165 accept extended registers in any mode when compiling for the MN10300.
26167 2014-02-05 Yury Gribov <y.gribov@samsung.com>
26169 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26170 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26171 sanitization attributes.
26172 (can_inline_edge_p): Likewise.
26173 (sanitize_attrs_match_for_inline_p): New function.
26175 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26177 * ipa-prop.c (detect_type_change): Shor circuit testing of
26178 type changes on THIS pointer.
26180 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
26183 * config/pa/pa.c (legitimize_tls_address): Return original address
26184 if not passed a SYMBOL_REF rtx.
26185 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26187 (pa_emit_move_sequence): Simplify TLS source operands.
26188 (pa_legitimate_constant_p): Reject all TLS constants.
26189 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26190 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26192 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26194 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26195 groups when we know they are controlled by LTO.
26196 * varasm.c (default_binds_local_p_1): If object is in other partition,
26197 it will be resolved locally.
26199 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26201 * config/host-linux.c (linux_gt_pch_use_address): Don't
26202 use SSIZE_MAX because it is not always defined.
26204 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
26207 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26208 threshold for pseudo splitting.
26209 (update_ebb_live_info): Process call argument hard registers and
26210 hard registers from insn definition too.
26211 (max_small_class_regs_num): New constant.
26212 (inherit_in_ebb): Update live hard regs through EBBs. Update
26213 reloads_num only for small register classes. Don't split for
26216 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
26219 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26222 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26224 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26225 visibility is safe.
26227 2014-02-04 Marek Polacek <polacek@redhat.com>
26229 * gdbinit.in (pel): Define.
26231 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26233 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26236 2014-02-04 Richard Biener <rguenther@suse.de>
26239 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
26240 in function context local.
26241 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
26242 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
26243 similar to LTO_imported_decl_ref.
26245 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26247 PR tree-optimization/60002
26248 * cgraphclones.c (build_function_decl_skip_args): Clear
26249 DECL_LANG_SPECIFIC.
26251 PR tree-optimization/60023
26252 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
26253 false to gsi_replace.
26254 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
26255 has been in some EH region and vec_stmt could throw, add
26256 vec_stmt into the same EH region.
26257 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
26258 has no lhs, ignore it.
26259 * internal-fn.c (expand_MASK_LOAD): Likewise.
26262 * tree-inline.c (copy_forbidden): Fail for
26263 __attribute__((optimize (0))) functions.
26266 * omp-low.c (simd_clone_struct_copy): If from->inbranch
26267 is set, copy one less argument.
26268 (expand_simd_clones): Don't subtract clone_info->inbranch
26269 from simd_clone_struct_alloc argument.
26271 PR rtl-optimization/57915
26272 * recog.c (simplify_while_replacing): If all unary/binary/relational
26273 operation arguments are constant, attempt to simplify those.
26275 PR middle-end/59261
26276 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
26277 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
26279 2014-02-04 Richard Biener <rguenther@suse.de>
26281 PR tree-optimization/60012
26282 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
26283 TBAA disambiguation to all DDRs.
26285 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26288 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
26289 (LINK_SPEC): Use it for -shared, -shared-libgcc.
26291 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26294 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
26296 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26298 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
26299 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
26301 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26304 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
26305 to figure out targets of polymorphic calls with known decl.
26306 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26307 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
26308 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
26309 (get_polymorphic_call_info): ... here.
26310 (get_polymorphic_call_info_from_invariant): New function.
26312 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26314 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26315 lookup via vtable pointer; check for type consistency
26316 and turn inconsitent facts into UNREACHABLE.
26317 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26318 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26319 type inconsistent querries; return UNREACHABLE instead.
26321 2014-02-03 Richard Henderson <rth@twiddle.net>
26324 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26325 already processed this node.
26326 (normalize_one_pred_1): Pass along mark_set.
26327 (normalize_one_pred): Create and destroy a pointer_set_t.
26328 (normalize_one_pred_chain): Likewise.
26330 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
26332 PR gcov-profile/58602
26333 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26335 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26338 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26339 -fno-devirtualize; try to devirtualize by the knowledge of
26340 virtual table pointer given by aggregate propagation.
26341 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26342 (ipa_print_node_jump_functions): Dump also offset that
26343 is relevant for polymorphic calls.
26344 (determine_known_aggregate_parts): Add arg_type parameter; use it
26345 instead of determining the type from pointer type.
26346 (ipa_compute_jump_functions_for_edge): Update call of
26347 determine_known_aggregate_parts.
26348 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26349 (gimple_get_virt_method_for_binfo): ... here; simplify using
26350 vtable_pointer_value_to_vtable.
26351 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26352 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26353 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26354 (vtable_pointer_value_to_vtable): Break out from ...; handle also
26356 (vtable_pointer_value_to_binfo): ... here.
26357 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
26359 2014-02-03 Teresa Johnson <tejohnson@google.com>
26361 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
26362 redef of outer loop index variable.
26364 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
26368 * doc/extend.texi (Function Attributes): Typo.
26370 2014-02-03 Cong Hou <congh@google.com>
26372 PR tree-optimization/60000
26373 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
26374 if the vectorized statement is a store. A store statement can only
26375 appear at the end of pattern statements.
26377 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
26379 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
26380 (ix86_option_override_internal): Default long double to 64-bit for
26381 32-bit Bionic and to 128-bit for 64-bit Bionic.
26383 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
26384 TARGET_LONG_DOUBLE_128 is true.
26385 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
26387 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
26388 (mlong-double-64): Negate -mlong-double-128.
26389 (mlong-double-128): New option.
26391 * config/i386/i386-c.c (ix86_target_macros): Define
26392 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
26394 * doc/invoke.texi: Document -mlong-double-128.
26396 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
26398 PR rtl-optimization/60024
26399 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
26401 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
26403 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
26405 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
26407 PR rtl-optimization/57662
26408 * sel-sched.c (code_motion_path_driver): Do not mark already not
26409 existing blocks in the visiting bitmap.
26411 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
26413 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26414 on the insn being emitted.
26416 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
26417 Will Deacon <will.deacon@arm.com>
26419 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26421 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26423 * config/arm/arm-tables.opt: Regenerate.
26425 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26427 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26428 for vector types other than V16QImode.
26429 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26430 define_expand, and call altivec_expand_vec_perm_le when producing
26431 code with little endian element order.
26432 (*altivec_vperm_<mode>_internal): New insn having previous
26433 behavior of altivec_vperm_<mode>.
26434 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26435 altivec_expand_vec_perm_le when producing code with little endian
26437 (*altivec_vperm_<mode>_uns_internal): New insn having previous
26438 behavior of altivec_vperm_<mode>_uns.
26440 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26442 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26443 (altivec_vsumsws): Add handling for -maltivec=be with a little
26445 (altivec_vsumsws_direct): New.
26446 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26447 gen_altivec_vsumsws.
26449 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
26451 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26452 vtable_pointer_value_to_binfo): New functions.
26453 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26454 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26456 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
26458 * config/nios2/nios2.md (load_got_register): Initialize GOT
26459 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26460 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26462 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
26464 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26465 preserverd by passthrough, do not propagate the type.
26467 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26469 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26470 (mips_atomic_assign_expand_fenv): New function.
26471 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26473 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26475 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26476 (__builtin_mips_set_fcsr): Likewise.
26477 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26478 MIPS_USI_FTYPE_VOID.
26479 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26480 (mips16_expand_set_fcsr): Likewise.
26481 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26482 (mips16_set_fcsr_stub): Likewise.
26483 (mips16_get_fcsr_one_only_stub): New class.
26484 (mips16_set_fcsr_one_only_stub): Likewise.
26485 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26486 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26487 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26488 (hard_float): New availability predicate.
26489 (mips_builtins): Add get_fcsr and set_fcsr.
26490 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26491 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26492 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26493 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26494 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26497 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26499 * config/mips/mips.c (mips_one_only_stub): New class.
26500 (mips_need_mips16_rdhwr_p): Replace with...
26501 (mips16_rdhwr_stub): ...this new variable.
26502 (mips16_stub_call_address): New function.
26503 (mips16_rdhwr_one_only_stub): New class.
26504 (mips_expand_thread_pointer): Use mips16_stub_call_address.
26505 (mips_output_mips16_rdhwr): Delete.
26506 (mips_finish_stub): New function.
26507 (mips_code_end): Use it to handle rdhwr stubs.
26509 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
26512 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26513 when calculating size of integer atomic types.
26515 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
26517 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26519 2014-02-01 Jakub Jelinek <jakub@redhat.com>
26521 PR tree-optimization/60003
26522 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26523 * profile.c (branch_prob): Use gimple_call_builtin_p
26524 to check for BUILT_IN_SETJMP_RECEIVER.
26525 * tree-inline.c (copy_bb): Call notice_special_calls.
26527 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
26530 * lra-constraints.c (process_alt_operands): Update reload_sum only
26533 2014-01-31 Richard Henderson <rth@redhat.com>
26535 PR middle-end/60004
26536 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26537 until after else_eh is processed.
26539 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26541 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26542 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26543 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26544 in smmintrin.h, remove them.
26545 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26546 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26547 * config/i386/i386.md (ROUND_SAE): Fix value.
26548 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26549 (const48_operand): New.
26550 * config/i386/subst.md (round), (round_expand): Use
26551 const_4_or_8_to_11_operand.
26552 (round_saeonly), (round_saeonly_expand): Use const48_operand.
26554 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26556 * config/i386/constraints.md (Yk): Swap meaning with k.
26557 * config/i386/i386.md (movhi_internal): Change Yk to k.
26558 (movqi_internal): Ditto.
26559 (*k<logic><mode>): Ditto.
26562 (kandn<mode>): Ditto.
26563 (*<code>hi_1): Ditto.
26564 (*<code>qi_1): Ditto.
26565 (kxnor<mode>): Ditto.
26566 (kortestzhi): Ditto.
26567 (kortestchi): Ditto.
26569 (*one_cmplhi2_1): Ditto.
26570 (*one_cmplqi2_1): Ditto.
26571 * config/i386/sse.md (): Change k to Yk.
26572 (avx512f_load<mode>_mask): Ditto.
26573 (avx512f_blendm<mode>): Ditto.
26574 (avx512f_store<mode>_mask): Ditto.
26575 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26576 (avx512f_storedqu<mode>_mask): Ditto.
26577 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26579 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26580 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26581 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26582 (avx512f_maskcmp<mode>3): Ditto.
26583 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26584 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26585 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26586 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26587 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26588 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26589 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26590 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26591 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26592 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26593 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26594 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26595 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26596 (vec_extract_lo_<mode>_maskm): Ditto.
26597 (vec_extract_hi_<mode>_maskm): Ditto.
26598 (avx512f_vternlog<mode>_mask): Ditto.
26599 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26600 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26601 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26602 (avx512f_<code>v8div16qi2_mask): Ditto.
26603 (avx512f_<code>v8div16qi2_mask_store): Ditto.
26604 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26605 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26606 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26607 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26608 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26609 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26610 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26611 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26612 (avx512cd_maskb_vec_dupv8di): Ditto.
26613 (avx512cd_maskw_vec_dupv16si): Ditto.
26614 (avx512f_vpermi2var<mode>3_maskz): Ditto.
26615 (avx512f_vpermi2var<mode>3_mask): Ditto.
26616 (avx512f_vpermi2var<mode>3_mask): Ditto.
26617 (avx512f_vpermt2var<mode>3_maskz): Ditto.
26618 (*avx512f_gathersi<mode>): Ditto.
26619 (*avx512f_gathersi<mode>_2): Ditto.
26620 (*avx512f_gatherdi<mode>): Ditto.
26621 (*avx512f_gatherdi<mode>_2): Ditto.
26622 (*avx512f_scattersi<mode>): Ditto.
26623 (*avx512f_scatterdi<mode>): Ditto.
26624 (avx512f_compress<mode>_mask): Ditto.
26625 (avx512f_compressstore<mode>_mask): Ditto.
26626 (avx512f_expand<mode>_mask): Ditto.
26627 * config/i386/subst.md (mask): Change k to Yk.
26628 (mask_scalar_merge): Ditto.
26631 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
26633 * doc/extend.texi (Vector Extensions): Document ?: in C++.
26635 2014-01-31 Richard Biener <rguenther@suse.de>
26637 PR middle-end/59990
26638 * builtins.c (fold_builtin_memory_op): Make sure to not
26639 use a floating-point mode or a boolean or enumeral type for
26640 the copy operation.
26642 2014-01-30 DJ Delorie <dj@redhat.com>
26644 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26645 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26646 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26647 whenever main() has an epilogue.
26649 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26651 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26652 unused variable "field".
26653 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26654 (vsx_mergeh_<mode>): Likewise.
26655 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26656 (altivec_vmrghh): Likewise.
26657 (altivec_vmrghw): Likewise.
26658 (altivec_vmrglb): Likewise.
26659 (altivec_vmrglh): Likewise.
26660 (altivec_vmrglw): Likewise.
26661 (altivec_vspltb): Add missing uses.
26662 (altivec_vsplth): Likewise.
26663 (altivec_vspltw): Likewise.
26664 (altivec_vspltsf): Likewise.
26666 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26669 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26670 frame related instructions.
26672 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
26674 PR rtl-optimization/59959
26675 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26676 any reload of register whose subreg is invalid.
26678 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26680 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26681 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26682 Add missing return type - void.
26684 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26686 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26687 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26688 remove element index adjustment for endian (now handled in vsx.md
26690 (altivec_expand_vec_perm_const): Use
26691 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26692 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26693 (vsx_xxspltw_<mode>): Adjust element index for little endian.
26694 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26695 define_expand and a new define_insn *altivec_vspltb_internal;
26696 adjust for -maltivec=be on a little endian target.
26697 (altivec_vspltb_direct): New.
26698 (altivec_vsplth): Divide into a define_expand and a new
26699 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26700 little endian target.
26701 (altivec_vsplth_direct): New.
26702 (altivec_vspltw): Divide into a define_expand and a new
26703 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26704 little endian target.
26705 (altivec_vspltw_direct): New.
26706 (altivec_vspltsf): Divide into a define_expand and a new
26707 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26708 a little endian target.
26710 2014-01-30 Richard Biener <rguenther@suse.de>
26712 PR tree-optimization/59993
26713 * tree-ssa-forwprop.c (associate_pointerplus): Check we
26714 can propagate form the earlier stmt and avoid the transform
26715 when the intermediate result is needed.
26717 2014-01-30 Alangi Derick <alangiderick@gmail.com>
26719 * README.Portability: Fix typo.
26721 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
26723 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26724 comparison_operator with ordered_comparison_operator.
26726 2014-01-30 Nick Clifton <nickc@redhat.com>
26728 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26729 Rename to mn10300_store_multiple_regs.
26730 * config/mn10300/mn10300.c: Likewise.
26731 * config/mn10300/mn10300.md (store_movm): Fix typo: call
26732 store_multiple_regs.
26733 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26734 Call mn10300_store_multiple_regs.
26736 2014-01-30 Nick Clifton <nickc@redhat.com>
26737 DJ Delorie <dj@redhat.com>
26739 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26740 %fp 2 to keep registers after it properly word-aligned.
26741 (rl78_alloc_physical_registers_umul): Handle the case where both
26742 input operands are the same.
26744 2014-01-30 Richard Biener <rguenther@suse.de>
26746 PR tree-optimization/59903
26747 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26750 2014-01-30 Jason Merrill <jason@redhat.com>
26753 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26756 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26758 2014-01-30 Richard Biener <rguenther@suse.de>
26760 PR tree-optimization/59951
26761 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26763 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
26766 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26767 SFmode to DFmode case.
26769 2014-01-29 DJ Delorie <dj@redhat.com>
26771 * config/msp430/msp430.opt (-minrt): New.
26772 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26774 (ENDFILE_SPEC): Likewise.
26776 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
26778 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26779 (estimate_function_body_sizes): Use it.
26781 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
26784 * dwarf2out.c (is_cxx_auto): New.
26785 (is_base_type): Use it.
26786 (gen_type_die_with_usage): Likewise.
26788 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26790 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
26791 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26792 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26793 -maltivec=be with LE targets.
26794 (vsx_mergeh_<mode>): Likewise.
26795 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26796 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26797 (altivec_vmrghb): Replace with define_expand and new
26798 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26799 (altivec_vmrghb_direct): New define_insn.
26800 (altivec_vmrghh): Replace with define_expand and new
26801 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26802 (altivec_vmrghh_direct): New define_insn.
26803 (altivec_vmrghw): Replace with define_expand and new
26804 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26805 (altivec_vmrghw_direct): New define_insn.
26806 (*altivec_vmrghsf): Adjust for endianness.
26807 (altivec_vmrglb): Replace with define_expand and new
26808 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26809 (altivec_vmrglb_direct): New define_insn.
26810 (altivec_vmrglh): Replace with define_expand and new
26811 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26812 (altivec_vmrglh_direct): New define_insn.
26813 (altivec_vmrglw): Replace with define_expand and new
26814 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26815 (altivec_vmrglw_direct): New define_insn.
26816 (*altivec_vmrglsf): Adjust for endianness.
26817 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26818 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26819 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26820 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26821 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26822 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26823 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26824 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26826 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
26828 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26829 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26832 2014-01-29 Richard Biener <rguenther@suse.de>
26834 PR tree-optimization/58742
26835 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26836 associate_pointerplus_align.
26837 (associate_pointerplus_diff): New function.
26838 (associate_pointerplus): Likewise. Call associate_pointerplus_align
26839 and associate_pointerplus_diff.
26841 2014-01-29 Richard Biener <rguenther@suse.de>
26843 * lto-streamer.h (LTO_major_version): Bump to 3.
26844 (LTO_minor_version): Reset to 0.
26846 2014-01-29 Renlin Li <Renlin.Li@arm.com>
26848 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26849 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26850 (arm_file_start): Generate correct asm header for armv7ve.
26851 * config/arm/bpabi.h: Add multilib support for armv7ve.
26852 * config/arm/driver-arm.c: Change the architectures of cortex-a7
26853 and cortex-a15 to armv7ve.
26854 * config/arm/t-aprofile: Add multilib support for armv7ve.
26855 * doc/invoke.texi: Document -march=armv7ve.
26857 2014-01-29 Richard Biener <rguenther@suse.de>
26859 PR tree-optimization/58742
26860 * tree-ssa-forwprop.c (associate_plusminus): Return true
26861 if we changed sth, defer EH cleanup to ...
26862 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
26863 (simplify_mult): New function.
26865 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26867 PR middle-end/59917
26868 PR tree-optimization/59920
26869 * tree.c (build_common_builtin_nodes): Remove
26870 __builtin_setjmp_dispatcher initialization.
26871 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26872 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26873 instead of gsi_after_labels + manually skipping debug stmts.
26874 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26875 ignore bbs with IFN_ABNORMAL_DISPATCHER.
26876 * tree-inline.c (copy_edges_for_bb): Remove
26877 can_make_abnormal_goto argument, instead add abnormal_goto_dest
26878 argument. Ignore computed_goto_p stmts. Don't call
26879 make_abnormal_goto_edges. If a call might need abnormal edges
26880 for non-local gotos, see if it already has an edge to
26881 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26882 with true argument, don't do anything then, otherwise add
26883 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26884 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26886 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26887 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26888 (lower_stmt): Don't set data->calls_builtin_setjmp.
26889 (lower_builtin_setjmp): Adjust comment.
26890 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26891 * tree-cfg.c (found_computed_goto): Remove.
26892 (factor_computed_gotos): Remove.
26893 (make_goto_expr_edges): Return bool, true for computed gotos.
26894 Don't call make_abnormal_goto_edges.
26895 (build_gimple_cfg): Don't set found_computed_goto, don't call
26896 factor_computed_gotos.
26897 (computed_goto_p): No longer static.
26898 (make_blocks): Don't set found_computed_goto.
26899 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26900 (make_edges): If make_goto_expr_edges returns true, push bb
26901 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26902 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26903 vector. Record mapping between bbs and OpenMP regions if there
26904 are any, adjust make_gimple_omp_edges caller. Call
26905 handle_abnormal_edges.
26906 (make_abnormal_goto_edges): Remove.
26907 * tree-cfg.h (make_abnormal_goto_edges): Remove.
26908 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26909 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26910 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26911 * internal-fn.def (ABNORMAL_DISPATCHER): New.
26912 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26913 filling *region also set *region_idx to (*region)->entry->index.
26916 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26917 For REGs set ORIGINAL_REGNO.
26919 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
26921 * doc/md.texi: Mention that a target shouldn't implement
26922 vec_widen_(s|u)mul_even/odd pair if it is less efficient
26925 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26927 PR tree-optimization/59594
26928 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26929 a copy of the datarefs vector rather than the vector itself.
26931 2014-01-28 Jason Merrill <jason@redhat.com>
26934 * dwarf2out.c (auto_die): New static.
26935 (gen_type_die_with_usage): Handle C++1y 'auto'.
26936 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26939 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
26942 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26943 (SPEC_X32): Likewise.
26944 (SPEC_64): Likewise.
26945 * config/i386/i386.c (ix86_option_override_internal): Turn off
26946 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26948 (x86_file_start): Output .code16gcc for TARGET_16BIT.
26949 * config/i386/i386.h (TARGET_16BIT): New macro.
26950 (TARGET_16BIT_P): Likewise.
26951 * config/i386/i386.opt: Add m16.
26952 * doc/invoke.texi: Document -m16.
26954 2014-01-28 Jakub Jelinek <jakub@redhat.com>
26956 PR preprocessor/59935
26957 * input.c (location_get_source_line): Bail out on when line number
26958 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26960 2014-01-28 Richard Biener <rguenther@suse.de>
26962 PR tree-optimization/58742
26963 * tree-ssa-forwprop.c (associate_plusminus): Handle
26964 pointer subtraction of the form (T)(P + A) - (T)P.
26966 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26968 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26971 2014-01-28 Richard Biener <rguenther@suse.de>
26974 2014-01-28 Richard Biener <rguenther@suse.de>
26976 PR rtl-optimization/45364
26977 PR rtl-optimization/59890
26978 * var-tracking.c (local_get_addr_clear_given_value): Handle
26979 already cleared slot.
26980 (val_reset): Handle not allocated local_get_addr_cache.
26981 (vt_find_locations): Use post-order on the inverted CFG.
26983 2014-01-28 Richard Biener <rguenther@suse.de>
26985 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26987 2014-01-28 Richard Biener <rguenther@suse.de>
26989 PR rtl-optimization/45364
26990 PR rtl-optimization/59890
26991 * var-tracking.c (local_get_addr_clear_given_value): Handle
26992 already cleared slot.
26993 (val_reset): Handle not allocated local_get_addr_cache.
26994 (vt_find_locations): Use post-order on the inverted CFG.
26996 2014-01-28 Alan Modra <amodra@gmail.com>
26998 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26999 * configure.ac <recursive call for build != host>: Define
27000 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27001 and LD_FOR_BUILD too.
27002 * configure: Regenerate.
27004 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
27006 * config/i386/i386.c (get_builtin_code_for_version): Separate
27007 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27008 Broadwell from Haswell.
27010 2014-01-27 Steve Ellcey <sellcey@mips.com>
27012 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27013 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27014 * config/mips/mips.c (mips_option_override): Change setting
27016 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27017 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27018 Change from Mask to Var.
27020 2014-01-27 Jeff Law <law@redhat.com>
27022 * ipa-inline.c (inline_small_functions): Fix typo.
27024 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
27026 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27027 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27028 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27029 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27030 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27031 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27032 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27033 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27034 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27035 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27036 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27037 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27038 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27039 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27040 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27041 (_mm512_storeu_epi64): Ditto.
27042 (_mm512_cmpge_epi32_mask): Ditto.
27043 (_mm512_cmpge_epu32_mask): Ditto.
27044 (_mm512_cmpge_epi64_mask): Ditto.
27045 (_mm512_cmpge_epu64_mask): Ditto.
27046 (_mm512_cmple_epi32_mask): Ditto.
27047 (_mm512_cmple_epu32_mask): Ditto.
27048 (_mm512_cmple_epi64_mask): Ditto.
27049 (_mm512_cmple_epu64_mask): Ditto.
27050 (_mm512_cmplt_epi32_mask): Ditto.
27051 (_mm512_cmplt_epu32_mask): Ditto.
27052 (_mm512_cmplt_epi64_mask): Ditto.
27053 (_mm512_cmplt_epu64_mask): Ditto.
27054 (_mm512_cmpneq_epi32_mask): Ditto.
27055 (_mm512_cmpneq_epu32_mask): Ditto.
27056 (_mm512_cmpneq_epi64_mask): Ditto.
27057 (_mm512_cmpneq_epu64_mask): Ditto.
27058 (_mm512_expand_pd): Ditto.
27059 (_mm512_expand_ps): Ditto.
27060 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27061 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27062 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27063 * config/i386/i386.c (ix86_builtins): Add
27064 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27065 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27066 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27067 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27068 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27069 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27070 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27071 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27072 IX86_BUILTIN_PMOVUSQW512_MEM.
27073 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27074 __builtin_ia32_pmovsqd512mem_mask,
27075 __builtin_ia32_pmovqd512mem_mask,
27076 __builtin_ia32_pmovusqw512mem_mask,
27077 __builtin_ia32_pmovsqw512mem_mask,
27078 __builtin_ia32_pmovqw512mem_mask,
27079 __builtin_ia32_pmovusdw512mem_mask,
27080 __builtin_ia32_pmovsdw512mem_mask,
27081 __builtin_ia32_pmovdw512mem_mask,
27082 __builtin_ia32_pmovqb512mem_mask,
27083 __builtin_ia32_pmovusqb512mem_mask,
27084 __builtin_ia32_pmovsqb512mem_mask,
27085 __builtin_ia32_pmovusdb512mem_mask,
27086 __builtin_ia32_pmovsdb512mem_mask,
27087 __builtin_ia32_pmovdb512mem_mask.
27088 (bdesc_args): Add __builtin_ia32_expanddf512,
27089 __builtin_ia32_expandsf512.
27090 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27091 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27092 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27093 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27094 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27095 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27096 (avx512f_<code>v8div16qi2_mask_store): This.
27097 (avx512f_expand<mode>): New.
27099 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
27101 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27103 (_mm512_mask_prefetch_i64gather_pd): Ditto.
27104 (_mm512_prefetch_i32scatter_pd): Ditto.
27105 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27106 (_mm512_prefetch_i64scatter_pd): Ditto.
27107 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27108 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27109 (_mm512_mask_prefetch_i64gather_ps): Ditto.
27110 (_mm512_prefetch_i32scatter_ps): Ditto.
27111 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27112 (_mm512_prefetch_i64scatter_ps): Ditto.
27113 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27114 * config/i386/i386-builtin-types.def: Define
27115 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27116 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27117 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27118 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27119 IX86_BUILTIN_SCATTERPFQPD.
27120 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27121 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27122 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27123 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27124 __builtin_ia32_scatterpfqps.
27125 (ix86_expand_builtin): Expand new built-ins.
27126 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27127 fix memory access data type.
27128 (*avx512pf_gatherpf<mode>_mask): Ditto.
27129 (*avx512pf_gatherpf<mode>): Ditto.
27130 (avx512pf_scatterpf<mode>): Ditto.
27131 (*avx512pf_scatterpf<mode>_mask): Ditto.
27132 (*avx512pf_scatterpf<mode>): Ditto.
27133 (GATHER_SCATTER_SF_MEM_MODE): New.
27134 (avx512pf_gatherpf<mode>df): Ditto.
27135 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27136 (*avx512pf_scatterpf<mode>df): Ditto.
27138 2014-01-27 Jakub Jelinek <jakub@redhat.com>
27141 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27142 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27145 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27147 * common/config/arm/arm-common.c
27148 (arm_rewrite_mcpu): Handle multiple names.
27150 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27152 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27154 * gimple-builder.h (create_gimple_tmp): Delete.
27156 2014-01-27 Christian Bruel <christian.bruel@st.com>
27158 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27161 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
27163 * config/pa/pa.md (call): Generate indirect long calls to non-local
27164 functions when outputing 32-bit code.
27165 (call_value): Likewise except for special call to buggy powf function.
27167 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27168 portable runtime and PIC indirect calls.
27169 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27170 and PIC call sequences. Use ldo instead of blr to set return register
27171 in PIC call sequence.
27173 2014-01-25 Walter Lee <walt@tilera.com>
27175 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27176 avoid clobbering a live register.
27178 2014-01-25 Walter Lee <walt@tilera.com>
27180 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27181 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27182 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27183 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27185 2014-01-25 Walter Lee <walt@tilera.com>
27187 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27188 arguments on even registers.
27189 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27191 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27192 (BIGGEST_ALIGNMENT): Ditto.
27193 (BIGGEST_FIELD_ALIGNMENT): Ditto.
27195 2014-01-25 Walter Lee <walt@tilera.com>
27197 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27198 insns before bundling.
27199 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27201 2014-01-25 Walter Lee <walt@tilera.com>
27203 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27204 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27205 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27207 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27209 * config/mips/constraints.md (kl): Delete.
27210 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27211 define expands, using...
27212 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27213 instructions for MIPS16.
27214 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27215 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27217 2014-01-25 Walter Lee <walt@tilera.com>
27219 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27223 2014-01-25 Walter Lee <walt@tilera.com>
27225 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27226 (TARGET_EXPAND_TO_RTL_HOOK): Define.
27228 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27230 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27233 2014-01-25 Jakub Jelinek <jakub@redhat.com>
27235 * print-rtl.c (in_call_function_usage): New var.
27236 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27237 EXPR_LIST mode as mode and not as reg note name.
27239 PR middle-end/59561
27240 * cfgloopmanip.c (copy_loop_info): If
27241 loop->warned_aggressive_loop_optimizations, make sure
27242 the flag is set in target loop too.
27244 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
27246 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
27248 * builtins.def: Likewise.
27249 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
27250 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
27251 * ira.c (ira_setup_eliminable_regset): Likewise.
27252 * omp-low.c (gate_expand_omp): Likewise.
27253 (execute_lower_omp): Likewise.
27254 (diagnose_sb_0): Likewise.
27255 (gate_diagnose_omp_blocks): Likewise.
27256 (simd_clone_clauses_extract): Likewise.
27259 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27261 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
27262 correction for little endian...
27263 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
27266 2014-01-24 Jeff Law <law@redhat.com>
27268 PR tree-optimization/59919
27269 * tree-vrp.c (find_assert_locations_1): Do not register asserts
27270 for non-returning calls.
27272 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
27274 * common/config/aarch64/aarch64-common.c
27275 (aarch64_rewrite_mcpu): Handle multiple names.
27276 * config/aarch64/aarch64.h
27277 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27279 2014-01-24 Dodji Seketeli <dodji@redhat.com>
27281 * input.c (add_file_to_cache_tab): Handle the case where fopen
27284 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
27287 * config/i386/i386.md (pushsf splitter): Get stack adjustment
27288 from push operand if code of push isn't PRE_DEC.
27290 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
27293 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27294 -mquad-memory-atomic. Update -mquad-memory documentation to say
27295 it is only used for non-atomic loads/stores.
27297 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
27298 -mquad-memory or -mquad-memory-atomic switches.
27300 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
27301 -mquad-memory-atomic to ISA 2.07 support.
27303 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
27304 to separate support of normal quad word memory operations (ldq, stq)
27305 from the atomic quad word memory operations.
27307 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
27308 support to separate non-atomic quad word operations from atomic
27309 quad word operations. Disable non-atomic quad word operations in
27310 little endian mode so that we don't have to swap words after the
27311 load and before the store.
27312 (quad_load_store_p): Add comment about atomic quad word support.
27313 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27314 options printed with -mdebug=reg.
27316 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27317 -mquad-memory-atomic as the test for whether we have quad word
27318 atomic instructions.
27319 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27320 or -mp8-vector are used, allow byte/half-word atomic operations.
27322 * config/rs6000/sync.md (load_lockedti): Insure that the address
27323 is a proper indexed or indirect address for the lqarx instruction.
27324 On little endian systems, swap the hi/lo registers after the lqarx
27326 (load_lockedpti): Use indexed_or_indirect_operand predicate to
27327 insure the address is valid for the lqarx instruction.
27328 (store_conditionalti): Insure that the address is a proper indexed
27329 or indirect address for the stqcrx. instruction. On little endian
27330 systems, swap the hi/lo registers before doing the stqcrx.
27332 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27333 insure the address is valid for the stqcrx. instruction.
27335 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27336 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27337 type of quad memory support is available.
27339 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
27341 PR regression/59915
27342 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27343 there is a danger of looping.
27345 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
27347 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27348 force flag_ira_loop_pressure if set via command line.
27350 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
27352 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27353 (ashr_simd): New builtin handling DI mode.
27354 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27355 (aarch64_sshr_simddi): New match pattern.
27356 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27357 (vshrd_n_s64): Likewise.
27358 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
27360 2014-01-23 Nick Clifton <nickc@redhat.com>
27362 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
27363 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
27364 favour of mcu specific scripts.
27365 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
27368 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
27369 Alex Velenko <Alex.Velenko@arm.com>
27371 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
27372 (vaddv_s16): Likewise.
27373 (vaddv_s32): Likewise.
27374 (vaddv_u8): Likewise.
27375 (vaddv_u16): Likewise.
27376 (vaddv_u32): Likewise.
27377 (vaddvq_s8): Likewise.
27378 (vaddvq_s16): Likewise.
27379 (vaddvq_s32): Likewise.
27380 (vaddvq_s64): Likewise.
27381 (vaddvq_u8): Likewise.
27382 (vaddvq_u16): Likewise.
27383 (vaddvq_u32): Likewise.
27384 (vaddvq_u64): Likewise.
27385 (vaddv_f32): Likewise.
27386 (vaddvq_f32): Likewise.
27387 (vaddvq_f64): Likewise.
27388 (vmaxv_f32): Likewise.
27389 (vmaxv_s8): Likewise.
27390 (vmaxv_s16): Likewise.
27391 (vmaxv_s32): Likewise.
27392 (vmaxv_u8): Likewise.
27393 (vmaxv_u16): Likewise.
27394 (vmaxv_u32): Likewise.
27395 (vmaxvq_f32): Likewise.
27396 (vmaxvq_f64): Likewise.
27397 (vmaxvq_s8): Likewise.
27398 (vmaxvq_s16): Likewise.
27399 (vmaxvq_s32): Likewise.
27400 (vmaxvq_u8): Likewise.
27401 (vmaxvq_u16): Likewise.
27402 (vmaxvq_u32): Likewise.
27403 (vmaxnmv_f32): Likewise.
27404 (vmaxnmvq_f32): Likewise.
27405 (vmaxnmvq_f64): Likewise.
27406 (vminv_f32): Likewise.
27407 (vminv_s8): Likewise.
27408 (vminv_s16): Likewise.
27409 (vminv_s32): Likewise.
27410 (vminv_u8): Likewise.
27411 (vminv_u16): Likewise.
27412 (vminv_u32): Likewise.
27413 (vminvq_f32): Likewise.
27414 (vminvq_f64): Likewise.
27415 (vminvq_s8): Likewise.
27416 (vminvq_s16): Likewise.
27417 (vminvq_s32): Likewise.
27418 (vminvq_u8): Likewise.
27419 (vminvq_u16): Likewise.
27420 (vminvq_u32): Likewise.
27421 (vminnmv_f32): Likewise.
27422 (vminnmvq_f32): Likewise.
27423 (vminnmvq_f64): Likewise.
27425 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
27427 * config/aarch64/aarch64-simd.md
27428 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27429 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27430 (*aarch64_mul3_elt<mode>): Likewise.
27431 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27432 (*aarch64_mul3_elt_to_64v2df): Likewise.
27433 (*aarch64_mla_elt<mode>): Likewise.
27434 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27435 (*aarch64_mls_elt<mode>): Likewise.
27436 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27437 (*aarch64_fma4_elt<mode>): Likewise.
27438 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27439 (*aarch64_fma4_elt_to_64v2df): Likewise.
27440 (*aarch64_fnma4_elt<mode>): Likewise.
27441 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27442 (*aarch64_fnma4_elt_to_64v2df): Likewise.
27443 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27444 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27445 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27446 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27447 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27448 (aarch64_sqdmull_lane<mode>_internal): Likewise.
27449 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27451 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
27453 * config/aarch64/aarch64-simd.md
27454 (aarch64_be_checked_get_lane<mode>): New define_expand.
27455 * config/aarch64/aarch64-simd-builtins.def
27456 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27457 New builtin definition.
27458 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27459 Use new safe be builtin.
27461 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
27463 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27465 (aarch64_be_st1<mode>): Likewise.
27466 (aarch_ld1<VALL:mode>): Define_expand modified.
27467 (aarch_st1<VALL:mode>): Likewise.
27468 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27469 (UNSPEC_ST1): Likewise.
27471 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
27473 * config/microblaze/microblaze.md: Add trap insn and attribute
27475 2014-01-23 Dodji Seketeli <dodji@redhat.com>
27477 PR preprocessor/58580
27478 * input.h (location_get_source_line): Take an additional line_size
27480 (void diagnostics_file_cache_fini): Declare new function.
27481 * input.c (struct fcache): New type.
27482 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27483 New static constants.
27484 (diagnostic_file_cache_init, total_lines_num)
27485 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27486 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27487 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27488 (get_next_line, read_next_line, goto_next_line, read_line_num):
27489 New static function definitions.
27490 (diagnostic_file_cache_fini): New function.
27491 (location_get_source_line): Take an additional output line_len
27492 parameter. Re-write using lookup_or_add_file_to_cache_tab and
27494 * diagnostic.c (diagnostic_finish): Call
27495 diagnostic_file_cache_fini.
27496 (adjust_line): Take an additional input parameter for the length
27497 of the line, rather than calculating it with strlen.
27498 (diagnostic_show_locus): Adjust the use of
27499 location_get_source_line and adjust_line with respect to their new
27500 signature. While displaying a line now, do not stop at the first
27501 null byte. Rather, display the zero byte as a space and keep
27502 going until we reach the size of the line.
27503 * Makefile.in: Add vec.o to OBJS-libcommon
27505 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27506 Ilya Tocar <ilya.tocar@intel.com>
27508 * config/i386/avx512fintrin.h (_mm512_kmov): New.
27509 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27510 (__builtin_ia32_kmov16): Ditto.
27511 * config/i386/i386.md (UNSPEC_KMOV): New.
27514 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27516 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27517 (_mm512_storeu_si512): Ditto.
27519 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
27522 * rtl.h (get_referenced_operands): Declare.
27523 * recog.c (get_referenced_operands): New function.
27524 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27525 operands have been referenced when recording LO_SUM references.
27527 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
27529 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27531 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27533 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27534 Enable for generic and recent AMD targets.
27536 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27538 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27539 ARG_SIZE note when adjustment was eliminated.
27541 2014-01-22 Jeff Law <law@redhat.com>
27543 PR tree-optimization/59597
27544 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27545 in file. Accept new argument REGISTERING and use it to modify
27546 dump output appropriately.
27547 (register_jump_thread): Corresponding changes.
27548 (mark_threaded_blocks): Reinstate code to cancel unprofitable
27549 thread paths involving joiner blocks. Add code to dump cancelled
27550 jump threading paths.
27552 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
27554 PR rtl-optimization/59477
27555 * lra-constraints.c (inherit_in_ebb): Process call for living hard
27556 regs. Update reloads_num and potential_reload_hard_regs for all insns.
27558 2014-01-22 Tom Tromey <tromey@redhat.com>
27560 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27562 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27564 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27566 PR rtl-optimization/59896
27567 * lra-constraints.c (process_alt_operands): Check unused note for
27568 matched operands of insn with no output reloads.
27570 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
27572 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27573 (mips_move_from_gpr_cost): Likewise.
27575 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27577 PR rtl-optimization/59858
27578 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27579 ira_class_hard_regs_num.
27580 (process_alt_operands): Increase reject for dying matched operand.
27582 2014-01-21 Jakub Jelinek <jakub@redhat.com>
27585 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27586 smaller than size, perform several stores or loads and stores
27587 at dst + count - size to store or copy all of size bytes, rather
27588 than just last modesize bytes.
27590 2014-01-20 DJ Delorie <dj@redhat.com>
27592 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27593 that CLOBBERs are REGs before propogating their values.
27595 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
27597 PR middle-end/59789
27598 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27599 (cgraph_inline_failed_type): New function.
27600 * cgraph.h (DEFCIFCODE): Add type.
27601 (cgraph_inline_failed_type_t): New enum.
27602 (cgraph_inline_failed_type): New prototype.
27603 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27604 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27605 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27606 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27607 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27608 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27609 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27610 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27611 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27612 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27613 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27614 OPTIMIZATION_MISMATCH.
27615 * tree-inline.c (expand_call_inline): Emit errors during
27616 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27618 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27621 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27622 mode attribute in insn output.
27624 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
27626 * output.h (output_constant): Delete.
27627 * varasm.c (output_constant): Make private.
27629 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
27631 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27633 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27635 PR middle-end/59860
27636 * tree.h (fold_builtin_strcat): New prototype.
27637 * builtins.c (fold_builtin_strcat): No longer static. Add len
27638 argument, if non-NULL, don't call c_strlen. Optimize
27639 directly into __builtin_memcpy instead of __builtin_strcpy.
27640 (fold_builtin_2): Adjust fold_builtin_strcat caller.
27641 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27643 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27645 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27646 for SImode_address_operand operands, having only a REG argument.
27648 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
27650 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27651 loader name using mbig-endian.
27652 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27654 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27656 * doc/invoke.texi (-march): Clarify documentation for AArch64.
27657 (-mtune): Likewise.
27660 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
27662 * config/aarch64/aarch64-protos.h
27663 (aarch64_cannot_change_mode_class_ptr): Declare.
27664 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27665 aarch64_cannot_change_mode_class_ptr): New.
27666 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27667 backend hook aarch64_cannot_change_mode_class.
27669 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27671 * common/config/aarch64/aarch64-common.c
27672 (aarch64_handle_option): Don't handle any option order logic here.
27673 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27674 selected_cpu, warn on architecture version mismatch.
27675 (aarch64_override_options): Fix parsing order for option strings.
27677 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27678 Iain Sandoe <iain@codesourcery.com>
27681 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27682 warning. Amend comment to reflect current functionality.
27684 2014-01-20 Richard Biener <rguenther@suse.de>
27686 PR middle-end/59860
27687 * builtins.c (fold_builtin_strcat): Remove case better handled
27688 by tree-ssa-strlen.c.
27690 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
27692 * config/aarch64/aarch64.opt
27693 (mcpu, march, mtune): Make case-insensitive.
27695 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27698 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27699 if operands[1] is a REG or ZERO_EXTEND of a REG.
27701 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
27703 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27705 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
27707 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27708 long non-pic millicode calls.
27710 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27712 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27714 2014-01-19 Kito Cheng <kito@0xlab.org>
27716 * builtins.c (expand_movstr): Check movstr expand done or fail.
27718 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27719 H.J. Lu <hongjiu.lu@intel.com>
27722 * config/i386/i386.md (*lea<mode>): Zero-extend return register
27723 to DImode for zero-extended addresses.
27725 2014-01-19 Jakub Jelinek <jakub@redhat.com>
27727 PR rtl-optimization/57763
27728 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27729 on the new indirect jump_insn and increment LABEL_NUSES (label).
27731 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
27735 * config.gcc (x86_archs): New variable.
27736 (x86_64_archs): Likewise.
27737 (x86_cpus): Likewise.
27738 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27739 --with-arch/--with-cpu= options.
27740 Support --with-arch=/--with-cpu={nehalem,westmere,
27741 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27743 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27745 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27746 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
27748 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27750 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27752 2014-01-18 Jakub Jelinek <jakub@redhat.com>
27755 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27756 clear cpp_get_options (parse_in)->warn_unused_macros for
27757 ix86_target_macros_internal with cpp_define.
27759 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
27761 * jump.c (delete_related_insns): Keep (use (insn))s.
27762 * reorg.c (redundant_insn): Check for barriers too.
27764 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27766 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27768 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
27770 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27771 call to $$dyncall when TARGET_LONG_CALLS is true.
27773 2014-01-17 Jeff Law <law@redhat.com>
27775 * ree.c (combine_set_extension): Temporarily disable test for
27776 changing number of hard registers.
27778 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27780 PR middle-end/58125
27781 * ipa-inline-analysis.c (inline_free_summary):
27782 Do not free summary of aliases.
27784 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27786 PR middle-end/59706
27787 * gimplify.c (gimplify_expr): Use create_tmp_var
27788 instead of create_tmp_var_raw. If cond doesn't have
27789 integral type, don't add the IFN_ANNOTATE builtin at all.
27791 2014-01-17 Martin Jambor <mjambor@suse.cz>
27794 * ipa-cp.c (prev_edge_clone): New variable.
27795 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27796 Also resize prev_edge_clone vector.
27797 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27798 (ipcp_edge_removal_hook): New function.
27799 (ipcp_driver): Register ipcp_edge_removal_hook.
27801 2014-01-17 Andrew Pinski <apinski@cavium.com>
27802 Steve Ellcey <sellcey@mips.com>
27805 * config/mips/mips.c (mips_print_operand): Check operand mode instead
27808 2014-01-17 Jeff Law <law@redhat.com>
27810 PR middle-end/57904
27811 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27812 so that pass_ccp runs first.
27814 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27816 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27817 (ix86_adjust_cost): Use !TARGET_XXX.
27818 (do_reorder_for_imul): Likewise.
27819 (swap_top_of_ready_list): Likewise.
27820 (ix86_sched_reorder): Likewise.
27822 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27824 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27825 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
27826 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
27827 (intel_memset): New. Duplicate slm_memset.
27828 (intel_cost): New. Duplicate slm_cost.
27829 (m_INTEL): New macro.
27830 (processor_target_table): Add "intel".
27831 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27832 with PROCESSOR_INTEL for "intel".
27833 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
27834 PROCESSOR_SILVERMONT.
27835 (ix86_issue_rate): Likewise.
27836 (ix86_adjust_cost): Likewise.
27837 (ia32_multipass_dfa_lookahead): Likewise.
27838 (swap_top_of_ready_list): Likewise.
27839 (ix86_sched_reorder): Likewise.
27840 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27841 instead of TARGET_OPT_AGU.
27842 * config/i386/i386.h (TARGET_INTEL): New.
27843 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27844 (processor_type): Add PROCESSOR_INTEL.
27845 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27846 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27848 2014-01-17 Marek Polacek <polacek@redhat.com>
27851 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27854 2014-01-17 Richard Biener <rguenther@suse.de>
27856 PR tree-optimization/46590
27857 * opts.c (default_options_table): Add entries for
27858 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27859 all enabled at -O1 but not for -Og.
27860 * common.opt (fbranch-count-reg): Remove Init(1).
27861 (fmove-loop-invariants): Likewise.
27862 (ftree-pta): Likewise.
27864 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27866 * config/i386/i386.c (ix86_data_alignment): For compatibility with
27867 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27868 decls to at least the GCC 4.8 used alignments.
27871 * tree-nested.c (convert_nonlocal_reference_stmt,
27872 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27873 of GIMPLE_BIND stmts, adjust associated decls.
27875 2014-01-17 Richard Biener <rguenther@suse.de>
27877 PR tree-optimization/46590
27878 * vec.h (vec<>::bseach): New member function implementing
27879 binary search according to C89 bsearch.
27880 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27881 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27882 bitmap pointer again. Make accesses_in_loop a flat array.
27883 (mem_ref_obstack): New global.
27884 (outermost_indep_loop): Adjust for mem_ref->stored changes.
27885 (mark_ref_stored): Likewise.
27886 (ref_indep_loop_p_2): Likewise.
27887 (set_ref_stored_in_loop): New helper function.
27888 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27889 (memref_free): Adjust.
27890 (record_mem_ref_loc): Simplify.
27891 (gather_mem_refs_stmt): Adjust.
27892 (sort_locs_in_loop_postorder_cmp): New function.
27893 (analyze_memory_references): Sort accesses_in_loop after
27894 loop postorder number.
27895 (find_ref_loc_in_loop_cmp): New function.
27896 (for_all_locs_in_loop): Find relevant cluster of locs in
27897 accesses_in_loop and iterate without recursion.
27898 (execute_sm): Avoid uninit warning.
27899 (struct ref_always_accessed): Simplify.
27900 (ref_always_accessed::operator ()): Likewise.
27901 (ref_always_accessed_p): Likewise.
27902 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27903 loop postorder numbers here.
27904 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27907 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27910 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27911 on decls for which assemble_alias has been called.
27913 2014-01-17 Nick Clifton <nickc@redhat.com>
27915 * config/msp430/msp430.opt: (mcpu): New option.
27916 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27917 (msp430_option_override): Parse target_cpu. If the MCU name
27918 matches a generic string, clear target_mcu.
27919 (msp430_attr): Allow numeric interrupt values up to 63.
27920 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27921 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27923 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27925 * config/msp430/msp430.md (popm): Use %J rather than %I.
27926 (addsi3): Use msp430_nonimmediate_operand for operand 2.
27927 (addhi_cy_i): Use immediate_operand for operand 2.
27928 * doc/invoke.texi: Document -mcpu option.
27930 2014-01-17 Richard Biener <rguenther@suse.de>
27932 PR rtl-optimization/38518
27933 * df.h (df_analyze_loop): Declare.
27934 * df-core.c: Include cfgloop.h.
27935 (df_analyze_1): Split out main part of df_analyze.
27936 (df_analyze): Adjust.
27937 (loop_inverted_post_order_compute): New function.
27938 (loop_post_order_compute): Likewise.
27939 (df_analyze_loop): New function avoiding whole-function
27940 postorder computes.
27941 * loop-invariant.c (find_defs): Use df_analyze_loop.
27942 (find_invariants): Adjust.
27943 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27945 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
27947 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27948 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27950 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27952 * ipa-ref.c (ipa_remove_stmt_references): Fix references
27953 traversal when removing references.
27955 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
27958 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27960 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
27962 PR middle-end/56791
27963 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27964 pushing a reload for an autoinc when we had previously reloaded an
27965 inner part of the address.
27967 2014-01-16 Jakub Jelinek <jakub@redhat.com>
27969 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27971 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27972 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27973 when not giving up or versioning for alias only because of
27975 (vect_analyze_data_ref_dependences): Set to true.
27976 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27978 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27979 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27982 PR middle-end/58344
27983 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27986 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27987 operand 0 predicate for gathers, use a new pseudo as subtarget.
27989 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27991 PR middle-end/59609
27992 * lra-constraints.c (process_alt_operands): Add printing debug info.
27993 Check absence of input/output reloads for matched operands too.
27995 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27997 PR rtl-optimization/59835
27998 * ira.c (ira_init_register_move_cost): Increase cost for
28001 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
28003 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28005 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
28008 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28009 non-register objects. Use gen_(high/low)part more consistently.
28012 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
28015 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28016 endian support, remove tests for WORDS_BIG_ENDIAN.
28017 (p8_mfvsrd_3_<mode>): Likewise.
28018 (reload_gpr_from_vsx<mode>): Likewise.
28019 (reload_gpr_from_vsxsf): Likewise.
28020 (p8_mfvsrd_4_disf): Likewise.
28022 2014-01-16 Richard Biener <rguenther@suse.de>
28024 PR rtl-optimization/46590
28025 * lcm.c (compute_antinout_edge): Use postorder iteration.
28026 (compute_laterin): Use inverted postorder iteration.
28028 2014-01-16 Nick Clifton <nickc@redhat.com>
28030 PR middle-end/28865
28031 * varasm.c (output_constant): Return the number of bytes actually
28033 (output_constructor_array_range): Update the field size with the
28034 number of bytes emitted by output_constant.
28035 (output_constructor_regular_field): Likewise. Also do not
28036 complain if the total number of bytes emitted is now greater
28037 than the expected fieldpos.
28038 * output.h (output_constant): Update prototype and descriptive comment.
28040 2014-01-16 Marek Polacek <polacek@redhat.com>
28042 PR middle-end/59827
28043 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28044 it is error_mark_node.
28046 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
28048 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28049 VALID_AVX256_REG_OR_OI_MODE.
28051 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
28053 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28054 current procedure should be profiled.
28056 2014-01-15 Andrew Pinski <apinski@cavium.com>
28058 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28059 of moving from/to the STACK_REG register class.
28061 2014-01-15 Richard Henderson <rth@redhat.com>
28064 * reginfo.c (global_regs_decl): Globalize.
28065 * rtl.h (global_regs_decl): Declare.
28066 * ira.c (do_reload): Diagnose frame_pointer_needed and it
28067 reserved via global_regs.
28069 2014-01-15 Teresa Johnson <tejohnson@google.com>
28071 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28073 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
28075 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28076 and vmulosh rather than call gen_vec_widen_smult_*.
28077 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28078 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28079 (vec_widen_smult_even_v16qi): Likewise.
28080 (vec_widen_umult_even_v8hi): Likewise.
28081 (vec_widen_smult_even_v8hi): Likewise.
28082 (vec_widen_umult_odd_v16qi): Likewise.
28083 (vec_widen_smult_odd_v16qi): Likewise.
28084 (vec_widen_umult_odd_v8hi): Likewise.
28085 (vec_widen_smult_odd_v8hi): Likewise.
28086 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28087 vmuloub rather than call gen_vec_widen_umult_*.
28088 (vec_widen_umult_lo_v16qi): Likewise.
28089 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28090 vmulosb rather than call gen_vec_widen_smult_*.
28091 (vec_widen_smult_lo_v16qi): Likewise.
28092 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28093 rather than call gen_vec_widen_umult_*.
28094 (vec_widen_umult_lo_v8hi): Likewise.
28095 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28096 rather than call gen_vec_widen_smult_*.
28097 (vec_widen_smult_lo_v8hi): Likewise.
28099 2014-01-15 Jeff Law <law@redhat.com>
28101 PR tree-optimization/59747
28102 * ree.c (find_and_remove_re): Properly handle case where a second
28103 eliminated extension requires widening a copy created for elimination
28104 of a prior extension.
28105 (combine_set_extension): Ensure that the number of hard regs needed
28106 for a destination register does not change when we widen it.
28108 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
28110 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28111 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28112 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28113 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28114 (avr-*-rtems*): Likewise.
28115 (bfin*-rtems*): Likewise.
28116 (moxie-*-rtems*): Likewise.
28117 (h8300-*-rtems*): Likewise.
28118 (i[34567]86-*-rtems*): Likewise.
28119 (lm32-*-rtems*): Likewise.
28120 (m32r-*-rtems*): Likewise.
28121 (m68k-*-rtems*): Likewise.
28122 (microblaze*-*-rtems*): Likewise.
28123 (mips*-*-rtems*): Likewise.
28124 (powerpc-*-rtems*): Likewise.
28125 (sh-*-rtems*): Likewise.
28126 (sparc-*-rtems*): Likewise.
28127 (sparc64-*-rtems*): Likewise.
28128 (v850-*-rtems*): Likewise.
28129 (m32c-*-rtems*): Likewise.
28131 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
28133 PR rtl-optimization/59511
28134 * ira.c (ira_init_register_move_cost): Use memory costs for some
28135 cases of register move cost calculations.
28136 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28137 instead of BB frequency.
28138 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28139 * lra-assigns.c (find_hard_regno_for): Ditto.
28141 2014-01-15 Richard Biener <rguenther@suse.de>
28143 PR tree-optimization/59822
28144 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28145 (vectorizable_load): Use it to hoist defs of uses of invariant
28146 loads out of the loop.
28148 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
28149 Kugan Vivekanandarajah <kuganv@linaro.org>
28152 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28155 2014-01-15 Richard Biener <rguenther@suse.de>
28157 PR rtl-optimization/59802
28158 * lcm.c (compute_available): Use inverted postorder to seed
28159 the initial worklist.
28161 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28164 * config/s390/s390.c (s390_preferred_reload_class): Don't return
28165 ADDR_REGS for invalid symrefs in non-PIC code.
28167 2014-01-15 Jakub Jelinek <jakub@redhat.com>
28170 * builtins.c (determine_block_size): Initialize *probable_max_size
28171 even if len_rtx is CONST_INT.
28173 2014-01-14 Andrew Pinski <apinski@cavium.com>
28175 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28176 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28177 (cortexa53_tunings): Likewise.
28178 (aarch64_sched_issue_rate): New function.
28179 (TARGET_SCHED_ISSUE_RATE): Define.
28181 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28183 * ira-costs.c (find_costs_and_classes): Add missed
28184 ira_init_register_move_cost_if_necessary.
28186 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28189 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28191 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
28194 * config/i386/i386.c (type_natural_mode): Add a bool parameter
28195 to indicate if type is used for function return value. Warn ABI
28196 change if the vector mode isn't available for function return value.
28197 (ix86_function_arg_advance): Pass false to type_natural_mode.
28198 (ix86_function_arg): Likewise.
28199 (ix86_gimplify_va_arg): Likewise.
28200 (function_arg_32): Don't warn ABI change.
28201 (ix86_function_value): Pass true to type_natural_mode.
28202 (ix86_return_in_memory): Likewise.
28203 (ix86_struct_value_rtx): Removed.
28204 (TARGET_STRUCT_VALUE_RTX): Likewise.
28206 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28208 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28209 converting a conditional jump into a conditional return.
28211 2014-01-14 Richard Biener <rguenther@suse.de>
28213 PR tree-optimization/58921
28214 PR tree-optimization/59006
28215 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28216 hoisting invariant stmts.
28217 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28218 invariant loads on the preheader edge if possible.
28220 2014-01-14 Joey Ye <joey.ye@arm.com>
28222 * doc/plugin.texi (Building GCC plugins): Update to C++.
28224 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
28226 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28227 (_mm_rcp28_round_ss): Ditto.
28228 (_mm_rsqrt28_round_sd): Ditto.
28229 (_mm_rsqrt28_round_ss): Ditto.
28230 (_mm_rcp28_sd): Ditto.
28231 (_mm_rcp28_ss): Ditto.
28232 (_mm_rsqrt28_sd): Ditto.
28233 (_mm_rsqrt28_ss): Ditto.
28234 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28235 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28236 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28237 (IX86_BUILTIN_RCP28SD): Ditto.
28238 (IX86_BUILTIN_RCP28SS): Ditto.
28239 (IX86_BUILTIN_RSQRT28SD): Ditto.
28240 (IX86_BUILTIN_RSQRT28SS): Ditto.
28241 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
28242 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
28243 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
28244 (ix86_expand_special_args_builtin): Expand new FTYPE.
28245 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
28246 (srcp14<mode>): Make insn unary.
28247 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
28248 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
28249 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
28250 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
28251 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
28252 Fix rounding: make it SAE only.
28253 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28255 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28257 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
28258 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
28259 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
28260 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
28261 (round_saeonly_mask_scalar_operand4): Ditto.
28262 (round_saeonly_mask_scalar_op3): Ditto.
28263 (round_saeonly_mask_scalar_op4): Ditto.
28265 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28267 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28268 Implement -maltivec=be for vec_insert and vec_extract.
28270 2014-01-10 DJ Delorie <dj@redhat.com>
28272 * config/msp430/msp430.md (call_internal): Don't allow memory
28273 references with SP as the base register.
28274 (call_value_internal): Likewise.
28275 * config/msp430/constraints.md (Yc): New. For memory references
28276 that don't use SP as a base register.
28278 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
28279 "an integer without a # prefix"
28280 * config/msp430/msp430.md (epilogue_helper): Use it.
28282 2014-01-13 Jakub Jelinek <jakub@redhat.com>
28285 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
28286 AVX512F gather builtins.
28287 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
28288 on gather decls with INTEGER_TYPE masktype.
28289 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
28290 directly into the builtin rather than hoisting it before loop.
28292 PR tree-optimization/59387
28293 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
28294 (scev_const_prop): If folded_casts and type has undefined overflow,
28295 use force_gimple_operand instead of force_gimple_operand_gsi and
28296 for each added stmt if it is assign with
28297 arith_code_with_undefined_signed_overflow, call
28298 rewrite_to_defined_overflow.
28299 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
28300 gimple-fold.h instead.
28301 (arith_code_with_undefined_signed_overflow,
28302 rewrite_to_defined_overflow): Moved to ...
28303 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
28304 rewrite_to_defined_overflow): ... here. No longer static.
28305 Include gimplify-me.h.
28306 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
28307 rewrite_to_defined_overflow): New prototypes.
28309 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28311 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
28313 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
28315 * builtins.c (get_object_alignment_2): Minor tweak.
28316 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28318 2014-01-13 Christian Bruel <christian.bruel@st.com>
28320 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28321 optimized non constant lengths.
28323 2014-01-13 Jakub Jelinek <jakub@redhat.com>
28326 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28327 load as __atomic_load_N if possible.
28329 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28331 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28333 (rs6000_expand_builtin): Adjust call.
28335 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28338 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28339 * config/rs6000/rs6000.c: Include target-globals.h.
28340 (rs6000_set_current_function): Instead of doing target_reinit
28341 unconditionally, use save_target_globals_default_opts and
28342 restore_target_globals.
28344 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28346 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28347 (rs6000_expand_builtin): Handle mffs and mtfsf.
28348 (rs6000_init_builtins): Define mffs and mtfsf.
28349 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28350 (rs6000_mffs): New pattern.
28351 (rs6000_mtfsf): New pattern.
28353 2014-01-11 Bin Cheng <bin.cheng@arm.com>
28355 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28356 Start narrowing with START. Apply candidate-use pair
28357 and check overall cost in narrowing.
28358 (iv_ca_prune): Pass new argument.
28360 2014-01-10 Jeff Law <law@redhat.com>
28362 PR middle-end/59743
28363 * ree.c (combine_reaching_defs): Ensure the defining statement
28364 occurs before the extension when optimizing extensions with
28365 different source and destination hard registers.
28367 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
28370 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
28371 vtables into the type inheritance graph.
28373 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28375 PR rtl-optimization/59754
28376 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
28377 modes in the REGNO != REGNO case.
28379 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28381 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
28383 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28385 PR tree-optimization/59745
28386 * tree-predcom.c (tree_predictive_commoning_loop): Call
28387 free_affine_expand_cache if giving up because components is NULL.
28389 * target-globals.c (save_target_globals): Allocate < 4KB structs using
28390 GC in payload of target_globals struct instead of allocating them on
28391 the heap and the larger structs separately using GC.
28392 * target-globals.h (struct target_globals): Make regs, hard_regs,
28393 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
28394 of GTY((skip)) and change type to void *.
28395 (reset_target_globals): Cast loads from those fields to corresponding
28398 2014-01-10 Steve Ellcey <sellcey@mips.com>
28401 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
28402 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
28403 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
28405 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
28408 * aarch64-modes.def (CC_Zmode): New flags mode.
28409 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
28410 represents an equality.
28411 (aarch64_get_condition_code): Handle CC_Zmode.
28412 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28414 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28416 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28417 extraction in good case.
28419 2014-01-10 Richard Biener <rguenther@suse.de>
28421 PR tree-optimization/59374
28422 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28423 checking after SLP discovery. Mark stmts not participating
28424 in any SLP instance properly.
28426 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28428 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28429 when handling a SET rtx.
28431 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28433 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28434 (cortex-a57): Likewise.
28435 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28437 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28439 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28440 non-iwmmxt builtins.
28442 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
28446 * ipa-devirt.c record_target_from_binfo): Take as argument
28447 stack of binfos and lookup matching one for virtual inheritance.
28448 (possible_polymorphic_call_targets_1): Update.
28450 2014-01-10 Huacai Chen <chenhc@lemote.com>
28452 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28453 kernel strings for Loongson-2E/2F/3A.
28455 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28457 PR middle-end/59670
28458 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28459 is_gimple_call before calling gimple_call_internal_p.
28461 2014-01-09 Steve Ellcey <sellcey@mips.com>
28463 * Makefile.in (TREE_FLOW_H): Remove.
28464 (TREE_SSA_H): Add file names from tree-flow.h.
28465 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28466 * tree.h: Remove tree-flow.h reference.
28467 * hash-table.h: Remove tree-flow.h reference.
28468 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28469 reference with tree-ssa-loop.h.
28471 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28473 * doc/invoke.texi: Add -maltivec={be,le} options, and document
28474 default element-order behavior for -maltivec.
28475 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28476 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28477 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28478 when targeting big endian, at least for now.
28479 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28481 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28483 PR middle-end/47735
28484 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28485 var satisfies use_register_for_decl, just take into account type
28486 alignment, rather than decl alignment.
28488 PR tree-optimization/59622
28489 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
28490 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28491 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28492 Don't devirtualize for inplace at all. For targets.length () == 1,
28493 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28495 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28497 * config/i386/i386.md (cpu): Remove the unused btver1.
28499 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28501 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28503 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28506 * tree-core.h (struct target_globals): New forward declaration.
28507 (struct tree_target_option): Add globals field.
28508 * tree.h (TREE_TARGET_GLOBALS): Define.
28509 (prepare_target_option_nodes_for_pch): New prototype.
28510 * target-globals.h (struct target_globals): Define even if
28511 !SWITCHABLE_TARGET.
28512 * tree.c (prepare_target_option_node_for_pch,
28513 prepare_target_option_nodes_for_pch): New functions.
28514 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28515 * config/i386/i386.c: Include target-globals.h.
28516 (ix86_set_current_function): Instead of doing target_reinit
28517 unconditionally, use save_target_globals_default_opts and
28518 restore_target_globals.
28520 2014-01-09 Richard Biener <rguenther@suse.de>
28522 PR tree-optimization/59715
28523 * tree-cfg.h (split_critical_edges): Declare.
28524 * tree-cfg.c (split_critical_edges): Export.
28525 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28527 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
28529 * cfgexpand.c (expand_stack_vars): Optionally disable
28530 asan stack protection.
28531 (expand_used_vars): Likewise.
28532 (partition_stack_vars): Likewise.
28533 * asan.c (asan_emit_stack_protection): Optionally disable
28534 after return stack usage.
28535 (instrument_derefs): Optionally disable memory access instrumentation.
28536 (instrument_builtin_call): Likewise.
28537 (instrument_strlen_call): Likewise.
28538 (asan_protect_global): Optionally disable global variables protection.
28539 * doc/invoke.texi: Added doc for new options.
28540 * params.def: Added new options.
28541 * params.h: Likewise.
28543 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28545 PR rtl-optimization/59724
28546 * ifcvt.c (cond_exec_process_if_block): Don't call
28547 flow_find_head_matching_sequence with 0 longest_match.
28548 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28549 non-active insns if !stop_after.
28550 (try_head_merge_bb): Revert 2014-01-07 changes.
28552 2014-01-08 Jeff Law <law@redhat.com>
28554 * ree.c (get_sub_rtx): New function, extracted from...
28555 (merge_def_and_ext): Here.
28556 (combine_reaching_defs): Use get_sub_rtx.
28558 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
28560 * cgraph.h (varpool_variable_node): Do not choke on null node.
28562 2014-01-08 Catherine Moore <clm@codesourcery.com>
28564 * config/mips/mips.md (simple_return): Attempt to use JRC
28566 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28568 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28570 PR rtl-optimization/59137
28571 * reorg.c (steal_delay_list_from_target): Call update_block for
28573 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28575 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28577 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28578 two duplicate entries.
28580 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28583 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
28585 * config/mips/mips.c (mips_truncated_op_cost): New function.
28586 (mips_rtx_costs): Adjust test for BADDU.
28587 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28589 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
28591 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28592 (*baddu_si): ...this new pattern.
28594 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28597 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28599 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
28601 PR middle-end/57748
28602 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28604 (expand_expr, expand_normal): Adjust.
28605 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28606 inner_reference_p. Use inner_reference_p to expand inner references.
28607 (store_expr): Adjust.
28608 * cfgexpand.c (expand_call_stmt): Adjust.
28610 2014-01-08 Rong Xu <xur@google.com>
28612 * gcov-io.c (gcov_var): Move from gcov-io.h.
28613 (gcov_position): Ditto.
28614 (gcov_is_error): Ditto.
28615 (gcov_rewrite): Ditto.
28616 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28617 only part to libgcc/libgcov.h.
28619 2014-01-08 Marek Polacek <polacek@redhat.com>
28621 PR middle-end/59669
28622 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28624 2014-01-08 Marek Polacek <polacek@redhat.com>
28627 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28629 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28631 PR rtl-optimization/59649
28632 * stor-layout.c (get_mode_bounds): For BImode return
28633 0 and STORE_FLAG_VALUE.
28635 2014-01-08 Richard Biener <rguenther@suse.de>
28637 PR middle-end/59630
28638 * gimple.h (is_gimple_builtin_call): Remove.
28639 (gimple_builtin_call_types_compatible_p): New.
28640 (gimple_call_builtin_p): New overload.
28641 * gimple.c (is_gimple_builtin_call): Remove.
28642 (validate_call): Rename to ...
28643 (gimple_builtin_call_types_compatible_p): ... this and export. Also
28644 check return types.
28645 (validate_type): New static function.
28646 (gimple_call_builtin_p): New overload and adjust.
28647 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28648 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
28649 (gimple_fold_stmt_to_constant_1): Likewise.
28650 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28652 2014-01-08 Richard Biener <rguenther@suse.de>
28654 PR middle-end/59471
28655 * gimplify.c (gimplify_expr): Gimplify register-register type
28656 VIEW_CONVERT_EXPRs to separate stmts.
28658 2014-01-07 Jeff Law <law@redhat.com>
28660 PR middle-end/53623
28661 * ree.c (combine_set_extension): Handle case where source
28662 and destination registers in an extension insn are different.
28663 (combine_reaching_defs): Allow source and destination registers
28664 in extension to be different under limited circumstances.
28665 (add_removable_extension): Remove restriction that the
28666 source and destination registers in the extension are the same.
28667 (find_and_remove_re): Emit a copy from the extension's
28668 destination to its source after the defining insn if
28669 the source and destination registers are different.
28671 PR middle-end/59285
28672 * ifcvt.c (merge_if_block): If we are merging a block with more than
28673 one successor with a block with no successors, remove any BARRIER
28674 after the second block.
28676 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
28678 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28680 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
28683 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28684 for 14-bit register offsets when INT14_OK_STRICT is false.
28686 2014-01-07 Roland Stigge <stigge@antcom.de>
28687 Michael Meissner <meissner@linux.vnet.ibm.com>
28690 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28691 Only check TFmode for SPE constants. Don't check TImode or TDmode.
28693 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
28695 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28698 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
28700 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28701 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28702 rtx is const0_rtx or not.
28704 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
28707 * target-globals.c (save_target_globals): Remove this_fn_optab
28709 * toplev.c: Include optabs.h.
28710 (target_reinit): Temporarily restore the global options if another
28711 set of options are in force.
28713 2014-01-07 Jakub Jelinek <jakub@redhat.com>
28715 PR rtl-optimization/58668
28716 * cfgcleanup.c (flow_find_cross_jump): Don't count
28717 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
28718 to determine what is counted.
28719 (flow_find_head_matching_sequence): Use active_insn_p to determine
28721 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28723 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28724 determine what is counted.
28726 PR tree-optimization/59643
28727 * tree-predcom.c (split_data_refs_to_components): If one dr is
28728 read and one write, determine_offset fails and the write isn't
28729 in the bad component, just put the read into the bad component.
28731 2014-01-07 Mike Stump <mikestump@comcast.net>
28732 Jakub Jelinek <jakub@redhat.com>
28735 * tree-core.h (struct tree_optimization_option): Change optabs
28736 type from unsigned char * to void *.
28737 * optabs.c (init_tree_optimization_optabs): Adjust
28738 TREE_OPTIMIZATION_OPTABS initialization.
28740 2014-01-06 Jakub Jelinek <jakub@redhat.com>
28743 * config/i386/i386.h (struct machine_function): Add
28744 no_drap_save_restore field.
28745 * config/i386/i386.c (ix86_save_reg): Use
28746 !cfun->machine->no_drap_save_restore instead of
28747 crtl->stack_realign_needed.
28748 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28749 this function clears frame_pointer_needed. Set
28750 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28751 and DRAP reg is needed.
28753 2014-01-06 Marek Polacek <polacek@redhat.com>
28756 * doc/implement-c.texi: Mention that other integer types are
28757 permitted as bit-field types in strictly conforming mode.
28759 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
28761 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28762 is newly allocated.
28764 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
28766 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28768 2014-01-06 Martin Jambor <mjambor@suse.cz>
28771 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28773 * ipa-prop.c (ipa_print_node_params): Fix indentation.
28775 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
28779 * var-tracking.c (add_stores): Preserve the value of the source even if
28780 we don't record the store.
28782 2014-01-06 Terry Guo <terry.guo@arm.com>
28784 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28786 2014-01-05 Iain Sandoe <iain@codesourcery.com>
28789 * config/darwin.c (darwin_function_section): Adjust return values to
28790 correspond to optimisation changes made in r206070.
28792 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
28794 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28795 from prefetch_block tune setting.
28796 (nocona_cost): Correct size of prefetch block to 64.
28798 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
28800 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28801 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28802 used to save the static chain register in the computation of the offset
28803 from which the FP registers need to be restored.
28805 2014-01-04 Jakub Jelinek <jakub@redhat.com>
28807 PR tree-optimization/59519
28808 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28809 ICE if get_current_def (current_new_name) is already non-NULL, as long
28810 as it is a phi result of some other phi in *new_exit_bb that has
28813 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28814 or vmovdqu* for misaligned_operand.
28815 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28816 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28817 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28818 aligned_mem for AVX512F masked aligned load and store builtins and for
28819 non-temporal moves.
28821 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
28823 PR tree-optimization/59651
28824 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28825 Address range for negative step should be added by TYPE_SIZE_UNIT.
28827 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
28829 * config/m68k/m68k.c (handle_move_double): Handle pushes with
28830 overlapping registers also for registers other than the stack pointer.
28832 2014-01-03 Marek Polacek <polacek@redhat.com>
28835 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28838 2014-01-03 Jakub Jelinek <jakub@redhat.com>
28841 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28844 * config/i386/i386.md (MODE_SIZE): New mode attribute.
28845 (push splitter): Use <P:MODE_SIZE> instead of
28846 GET_MODE_SIZE (<P:MODE>mode).
28847 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28848 (mov -1, reg peephole2): Likewise.
28849 * config/i386/sse.md (*mov<mode>_internal,
28850 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28851 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28852 *<code><mode>3, *andnot<mode>3<mask_name>,
28853 <mask_codefor><code><mode>3<mask_name>): Likewise.
28854 * config/i386/subst.md (mask_mode512bit_condition,
28855 sd_mask_mode512bit_condition): Likewise.
28857 2014-01-02 Xinliang David Li <davidxl@google.com>
28859 PR tree-optimization/59303
28860 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28861 (dump_predicates): Better output format.
28862 (pred_equal_p): New function.
28863 (is_neq_relop_p): Ditto.
28864 (is_neq_zero_form_p): Ditto.
28865 (pred_expr_equal_p): Ditto.
28866 (pred_neg_p): Ditto.
28867 (simplify_pred): Ditto.
28868 (simplify_preds_2): Ditto.
28869 (simplify_preds_3): Ditto.
28870 (simplify_preds_4): Ditto.
28871 (simplify_preds): Ditto.
28872 (push_pred): Ditto.
28873 (push_to_worklist): Ditto.
28874 (get_pred_info_from_cmp): Ditto.
28875 (is_degenerated_phi): Ditto.
28876 (normalize_one_pred_1): Ditto.
28877 (normalize_one_pred): Ditto.
28878 (normalize_one_pred_chain): Ditto.
28879 (normalize_preds): Ditto.
28880 (normalize_cond_1): Remove function.
28881 (normalize_cond): Ditto.
28882 (is_gcond_subset_of): Ditto.
28883 (is_subset_of_any): Ditto.
28884 (is_or_set_subset_of): Ditto.
28885 (is_and_set_subset_of): Ditto.
28886 (is_norm_cond_subset_of): Ditto.
28887 (pred_chain_length_cmp): Ditto.
28888 (convert_control_dep_chain_into_preds): Type change.
28889 (find_predicates): Ditto.
28890 (find_def_preds): Ditto.
28891 (destroy_predicates_vecs): Ditto.
28892 (find_matching_predicates_in_rest_chains): Ditto.
28893 (use_pred_not_overlap_with_undef_path_pred): Ditto.
28894 (is_pred_expr_subset): Ditto.
28895 (is_pred_chain_subset_of): Ditto.
28896 (is_included_in): Ditto.
28897 (is_superset_of): Ditto.
28899 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28901 Update copyright years.
28903 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28905 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28906 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28907 config/arc/arc.md, config/arc/arc.opt,
28908 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28909 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28910 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28911 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28912 config/linux-protos.h, config/linux.c, config/winnt-c.c,
28913 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28914 vtable-verify.c, vtable-verify.h: Use the standard form for the
28917 2014-01-02 Tobias Burnus <burnus@net-b.de>
28919 * gcc.c (process_command): Update copyright notice dates.
28920 * gcov-dump.c: Ditto.
28922 * doc/cpp.texi: Bump @copying's copyright year.
28923 * doc/cppinternals.texi: Ditto.
28924 * doc/gcc.texi: Ditto.
28925 * doc/gccint.texi: Ditto.
28926 * doc/gcov.texi: Ditto.
28927 * doc/install.texi: Ditto.
28928 * doc/invoke.texi: Ditto.
28930 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28932 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28934 2014-01-01 Jakub Jelinek <jakub@redhat.com>
28936 * config/i386/sse.md (*mov<mode>_internal): Guard
28937 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28939 PR rtl-optimization/59647
28940 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28941 new_rtx into UNSIGNED_FLOAT rtxes.
28943 Copyright (C) 2014 Free Software Foundation, Inc.
28945 Copying and distribution of this file, with or without modification,
28946 are permitted in any medium without royalty provided the copyright
28947 notice and this notice are preserved.