1 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
3 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4 (ppc403-compare): Add "exts with dot" case.
5 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
8 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
9 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
10 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
11 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
12 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13 cell-cmp-microcoded): Similarly.
14 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
15 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
16 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
17 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
18 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
19 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
21 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
22 (power6-compare): Add "exts with dot" case.
23 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
24 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
25 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
27 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
28 if avoiding Cell microcode.
29 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
30 (is_cracked_insn): Ditto.
31 (insn_must_be_first_in_group): Ditto.
32 * config/rs6000/rs6000.md (dot): Adjust comment.
33 (cell_micro): Handle exts+dot.
34 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
35 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
36 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
37 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
38 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
39 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
40 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
42 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
44 * config/rs6000/rs6000.md (QHSI): Delete.
45 (EXTQI, EXTHI, EXTSI): New mode iterators.
46 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
47 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
48 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
49 9 anonymous instructions, and 8 splitters): Delete.
50 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
51 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
52 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
53 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
54 *zero_extendsi<mode>2_dot2): New.
56 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
58 * config/rs6000/rs6000.md (any_extend): New code iterator.
59 (u, su): New code attributes.
60 (dmode, DMODE): New mode attributes.
61 (<su>mul<mode>3_highpart): New.
62 (*<su>mul<mode>3_highpart): New.
63 (<su>mulsi3_highpart_le): New.
64 (<su>muldi3_highpart_le): New.
65 (<su>mulsi3_highpart_64): New.
66 (<u>mul<mode><dmode>3): New.
67 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
69 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
72 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
74 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
75 *mulsi3_internal2, and two splitters): Delete.
76 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
78 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
80 2014-09-02 Richard Biener <rguenther@suse.de>
82 PR tree-optimization/62695
83 * tree-ssa-structalias.c (find_func_clobbers): Add missing
86 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
89 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
91 2014-09-01 Andi Kleen <ak@linux.intel.com>
93 * file-find.c (add_prefix_begin): Add.
94 (do_add_prefix): Rename from add_prefix with first argument.
95 (add_prefix): Add new wrapper.
96 * file-find.h (add_prefix_begin): Add.
97 * gcc-ar.c (main): Support -B option.
99 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
101 * genemit.c: Include dumpfile.h.
102 (gen_split): Print name of splitter function to dump file.
104 2014-09-01 Richard Biener <rguenther@suse.de>
106 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
107 Use stack auto_vecs for constraint expressions.
108 (find_func_aliases_for_call): Likewise.
109 (find_func_aliases): Likewise.
110 (find_func_clobbers): Likewise.
112 2014-09-01 Richard Biener <rguenther@suse.de>
114 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
115 operands vector in most cases. Remove redundant code.
117 2014-09-01 Olivier Hainque <hainque@adacore.com>
119 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
120 $WIND_BASE instead of designating a harcoded arbitrary home dir.
121 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
123 2014-09-01 Richard Biener <rguenther@suse.de>
125 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
126 copy_reference_ops_from_call, vn_nary_op_compute_hash,
127 vn_reference_compute_hash, vn_reference_insert): Remove.
128 (vn_reference_lookup_call): New function.
129 * tree-ssa-sccvn.c (vn_reference_compute_hash,
130 copy_reference_ops_from_ref, copy_reference_ops_from_call,
131 vn_reference_insert, vn_nary_op_compute_hash): Make static.
132 (create_reference_ops_from_call): Remove.
133 (vn_reference_lookup_3): Properly update shared_lookup_references.
134 (vn_reference_lookup_pieces): Assert that we updated
135 shared_lookup_references properly.
136 (vn_reference_lookup): Likewise.
137 (vn_reference_lookup_call): New function.
138 (visit_reference_op_call): Use it. Avoid re-building the
140 (visit_reference_op_load): Remove redundant lookup.
141 (visit_reference_op_store): Perform special tail-merging work
142 only when possibly doing tail-merging.
143 (visit_use): Likewise.
144 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
146 2014-09-01 Jakub Jelinek <jakub@redhat.com>
149 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
150 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
151 (find_inc): Revert 2014-08-13 change.
153 2014-09-01 Marek Polacek <polacek@redhat.com>
156 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
157 Change the type of V to unsigned HOST_WIDE_INT.
159 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
161 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
162 the size of byte markers.
163 (do_shift_rotate): Fix confusion between host, target and marker byte
165 (verify_symbolic_number_p): Likewise.
166 (find_bswap_or_nop_1): Likewise.
167 (find_bswap_or_nop): Likewise.
169 2014-09-01 Olivier Hainque <hainque@adacore.com>
171 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
172 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
174 2014-09-01 Jakub Jelinek <jakub@redhat.com>
176 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
177 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
178 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
180 2014-09-01 Yury Gribov <y.gribov@samsung.com>
184 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
185 (build_check_stmt): Likewise.
186 (instrument_strlen_call): Likewise.
187 (asan_expand_check_ifn): Likewise and fix types.
188 (maybe_cast_to_ptrmode): New function.
190 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
192 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
194 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
196 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
198 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
200 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
201 prefix to function labels when generating fast indirect calls.
203 2014-08-30 David Malcolm <dmalcolm@redhat.com>
207 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
208 param back from rtx_insn * to rtx. Rename param from "label" to
209 "label_or_return", reintroducing "label" as an rtx_insn * after
210 we've ensured it's not a RETURN.
211 (first_active_target_insn): Likewise for return type and param;
212 add a checked cast to rtx_insn * once we've ensured "insn" is not
214 (steal_delay_list_from_target): Convert param "pnew_thread" back
215 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
217 (own_thread_p): Convert param "thread" back from an rtx_insn * to
218 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
219 cast once we've established we're not dealing with a RETURN,
220 renaming subsequent uses of "thread" to "thread_insn".
221 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
223 (follow_jumps): Convert return type and param "label" from
224 rtx_insn * back to rtx. Move initialization of "value" to after
225 the handling for ANY_RETURN_P, adding a checked cast there to
226 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
227 rename to "this_label_or_return", reintroducing "this_label" as
228 an rtx_insn * once we've handled the case where it could be an
230 (fill_slots_from_thread): Rename param "thread" to
231 "thread_or_return", converting from an rtx_insn * back to an rtx.
232 Reintroduce name "thread" as an rtx_insn * local with a checked
233 cast once we've handled the case of it being an ANY_RETURN_P.
234 Convert local "new_thread" from an rtx_insn * back to an rtx.
235 Add a checked cast when assigning to "trial" from "new_thread".
236 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
237 checked cast to rtx_insn * from "new_thread" when invoking
239 (fill_eager_delay_slots): Convert locals "target_label",
240 "insn_at_target" from rtx_insn * back to rtx.
241 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
242 (relax_delay_slots): Convert locals "trial", "target_label" from
243 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
244 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
245 invoking update_block.
246 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
247 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
249 * resource.h (mark_target_live_regs): Undo erroneous conversion
250 of second param of r214693, converting it back from rtx_insn * to
251 rtx, since it could be a RETURN.
253 * resource.c (find_dead_or_set_registers): Similarly, convert
254 param "jump_target" back from an rtx_insn ** to an rtx *, as we
255 could be writing back a RETURN. Rename local rtx_insn * "next" to
256 "next_insn", and introduce "lab_or_return" as a local rtx,
257 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
258 (mark_target_live_regs): Undo erroneous conversion
259 of second param of r214693, converting it back from rtx_insn * to
260 rtx, since it could be a RETURN. Rename it from "target" to
261 "target_maybe_return", reintroducing the name "target" as a local
262 rtx_insn * with a checked cast, after we've handled the case of
265 2014-08-29 DJ Delorie <dj@redhat.com>
267 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
268 pointer size up to a power of two.
269 * defaults.h (DWARF2_ADDR_SIZE): Round up.
270 (POINTER_SIZE_UNITS): New, rounded up value.
271 * dwarf2asm.c (size_of_encoded_value): Use it.
272 (dw2_output_indirect_constant_1): Likewise.
273 * expmed.c (init_expmed_one_conv): We now know the sizes of
275 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
276 * optabs.c (expand_float): Use precision, not size.
277 (expand_fix): Likewise.
278 * simplify-rtx (simplify_unary_operation_1): Likewise.
279 * tree-dfa.c (get_ref_base_and_extent): Likewise.
280 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
281 (default_assemble_integer) Likewise.
282 (dump_tm_clone_pairs): Likewise.
283 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
284 * var-tracking.c (adjust_mems): Allow partial-int modes also.
285 (prepare_call_arguments): Likewise.
286 * stor-layout.c (finalize_type_size): Preserve precision.
287 (layout_type): Use precision, not size.
289 * expr.c (convert_move): If the target has an explicit converter,
292 2014-08-29 David Malcolm <dmalcolm@redhat.com>
294 * gdbinit.in: Skip various inline functions in rtl.h when
297 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
300 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
302 2014-08-29 Richard Biener <rguenther@suse.de>
304 PR tree-optimization/62291
305 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
306 exactly the vector size needed and use quick_push.
307 (phi_translate_1): Adjust comment.
308 (valid_in_sets): Remove block argument and remove pointless
310 (dependent_clean): Adjust for removal of block argument.
312 (compute_antic_aux): Likewise.
313 (compute_partial_antic_aux): Likewise.
315 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
316 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
317 Anna Tikhonova <anna.tikhonova@intel.com>
318 Ilya Tocar <ilya.tocar@intel.com>
319 Andrey Turetskiy <andrey.turetskiy@intel.com>
320 Ilya Verbin <ilya.verbin@intel.com>
321 Kirill Yukhin <kirill.yukhin@intel.com>
322 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
325 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
326 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
327 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
328 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
330 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
331 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
332 Anna Tikhonova <anna.tikhonova@intel.com>
333 Ilya Tocar <ilya.tocar@intel.com>
334 Andrey Turetskiy <andrey.turetskiy@intel.com>
335 Ilya Verbin <ilya.verbin@intel.com>
336 Kirill Yukhin <kirill.yukhin@intel.com>
337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
339 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
341 (define_mode_iterator VI4_128_8_256): New.
342 (define_mode_iterator VI2_128_4_256): Ditto.
343 (define_mode_iterator PMOV_DST_MODE): Rename into
344 (define_mode_iterator PMOV_DST_MODE_1): this.
345 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
346 Use PMOV_DST_MODE_1 mode iterator.
347 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
349 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
351 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
352 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
353 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
354 (define_mode_iterator PMOV_DST_MODE_2): New.
355 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
356 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
357 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
359 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
360 (define_mode_attr pmov_dst_3): Ditto.
361 (define_mode_attr pmov_dst_zeroed_3): Ditto.
362 (define_mode_attr pmov_suff_3): Ditto.
363 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
364 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
365 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
366 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
367 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
368 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
369 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
370 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
371 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
372 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
373 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
374 (define_mode_attr pmov_dst_4): Ditto.
375 (define_mode_attr pmov_dst_zeroed_4): Ditto.
376 (define_mode_attr pmov_suff_4): Ditto.
377 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
378 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
379 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
380 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
381 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
382 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
383 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
384 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
385 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
386 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
387 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
389 2014-08-29 Richard Biener <rguenther@suse.de>
391 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
392 NON_LVALUE_EXPR in gimple.
394 2014-08-29 Richard Biener <rguenther@suse.de>
397 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
398 from previous refactoring.
399 (gimple_fold_builtin_strncpy): Likewise.
401 2014-08-29 David Malcolm <dmalcolm@redhat.com>
404 * function.c (assign_parm_setup_reg): Remove erroneous checked
405 cast to rtx_insn * on result of gen_extend_insn in favor of
406 introducing a new local rtx "pat".
408 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
410 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
412 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
414 2014-08-28 David Malcolm <dmalcolm@redhat.com>
416 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
417 (next_insn): Likewise.
418 * emit-rtl.c (next_insn): Likewise.
419 (previous_insn): Likewise.
420 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
421 "insn" and "next" from rtx to rtx_insn *.
422 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
423 "insn", "insn1", "vliw_start", "prologue_end_note",
424 "last_insn_in_packet".
426 2014-08-28 David Malcolm <dmalcolm@redhat.com>
428 * shrink-wrap.h (active_insn_between): Strengthen both params from
430 * function.c (active_insn_between): Likewise.
432 2014-08-28 David Malcolm <dmalcolm@redhat.com>
434 * genattr.c (main): When writing out insn-attr.h, strengthen param
435 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
436 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
437 writing out the definition of dfa_clear_single_insn_cache to the
438 generated insn-automata.c
440 2014-08-28 David Malcolm <dmalcolm@redhat.com>
442 * resource.h (clear_hashed_info_for_insn): Strengthen param from
444 (incr_ticks_for_insn): Likewise.
445 (init_resource_info): Likewise.
447 * resource.c (init_resource_info): Likewise.
448 (clear_hashed_info_for_insn): Likewise.
449 (incr_ticks_for_insn): Likewise.
451 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
453 (steal_delay_list_from_target): Use methods of "seq".
454 (try_merge_delay_insns): Use methods of "merged_insns".
455 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
456 (reorg_redirect_jump): Likewise for param "jump".
458 2014-08-28 David Malcolm <dmalcolm@redhat.com>
460 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
462 * config/s390/s390.c (s390_split_branches): Eliminate top-level
463 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
465 (s390_mainpool_finish): In three places, split out a local rtx
466 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
467 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
468 and split another local rtx "insn" out into rtx "pat" and
470 * config/sh/sh.c (output_branchy_insn): Rather than working
471 directly on operands[9], introduce local rtx_code_label *
472 variables named "lab" in two places, working on them, and then
473 assigning them to operands[9], so that the intervening operations
474 are known by the type system to be on insns.
476 2014-08-28 David Malcolm <dmalcolm@redhat.com>
478 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
481 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
482 in invocation of INSN_HAS_LOCATION.
484 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
486 * config/rs6000/altivec.h (vec_xl): New #define.
488 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
489 (XXSPLTD_V2DI): Likewise.
490 (DIV_V2DI): Likewise.
491 (UDIV_V2DI): Likewise.
492 (MUL_V2DI): Likewise.
493 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
494 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
495 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
496 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
497 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
498 (UNSPEC_VSX_DIVSD): Likewise.
499 (UNSPEC_VSX_DIVUD): Likewise.
500 (UNSPEC_VSX_MULSD): Likewise.
501 (vsx_mul_v2di): New insn-and-split.
502 (vsx_div_v2di): Likewise.
503 (vsx_udiv_v2di): Likewise.
504 (vsx_xxspltd_<mode>): New insn.
506 2014-08-28 David Malcolm <dmalcolm@redhat.com>
508 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
510 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
511 (NEXT_INSN): Likewise.
512 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
513 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
515 (no_labels_between_p): Likewise for both params.
517 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
518 cast when using NEXT_INSN on operands[2].
519 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
520 "insn" from rtx to rtx_insn *, adding a checked cast.
521 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
523 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
525 (arc_text_label): Likewise for param "insn".
526 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
528 (arc_ccfsm_record_condition): Likewise for param "jump".
529 (arc_text_label): Likewise for local "label".
530 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
531 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
532 a method for typesafety. Add a checked cast.
533 * config/arc/constraints.md (Clb): Add a checked cast when getting
534 the CODE_LABEL from a LABEL_REF.
535 * config/arm/arm.c (require_pic_register): Strengthen locals
536 "seq", "insn" from rtx to rtx_insn *.
537 (create_fix_barrier): Likewise for locals "selected", "next".
538 (thumb1_reorg): Likewise for locals "prev", "insn".
539 (arm_expand_prologue): Likewise for local "last".
540 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
542 (thumb2_output_casesi): Likewise for operands[2].
543 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
544 strengthen local "insn" from rtx to rtx_insn *.
545 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
546 type and param "insn".
547 (find_prev_insn_start): Likewise.
548 (hwloop_optimize): Likewise for locals "insn", "last_insn",
550 (gen_one_bundle): Likewise for loal "t".
551 (find_load): Likewise for param "insn".
552 (workaround_speculation): Likewise for locals "insn", "next",
553 "target", "next_tgt".
554 * config/c6x/c6x.c (assign_reservations): Likewise for both params
555 and for locals "insn", "within", "last".
556 (count_unit_reqs): Likewise for params "head", "tail" and local
558 (try_rename_operands): Likewise for params "head", "tail".
559 (reshuffle_units): Likewise for locals "head", "tail", "insn".
560 (struct c6x_sched_context): Likewise for fields
561 "last_scheduled_insn", "last_scheduled_iter0".
562 (init_sched_state): Replace NULL_RTX with NULL.
563 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
565 (undo_split_delayed_nonbranch): Likewise for param and for local
567 (conditionalize_after_sched): Likewise for local "insn".
568 (bb_earliest_end_cycle): Likewise.
569 (filter_insns_above): Likewise for locals "insn", "next".
570 (hwloop_optimize): Remove redundant checked cast.
571 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
572 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
574 (cris_simple_epilogue): Likewise.
575 (cris_expand_prologue): Likewise.
576 (cris_expand_epilogue): Likewise.
577 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
578 local "insn" from rtx to rtx_insn *.
579 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
580 (struct frv_packet_group): Likewise for the elements within array
581 fields "insns", "sorted", and for field "nop".
582 (frv_packet): Likewise for the elements within array field
584 (frv_add_insn_to_packet): Likewise for param "insn".
585 (frv_insert_nop_in_packet): Likewise for param "insn" and local
587 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
588 (frv_sort_insn_group_1): Likewise for local "insn".
589 (frv_optimize_membar_local): Likewise.
590 (frv_align_label): Likewise for locals "x", "last", "barrier",
592 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
594 (ia64_sched_init): Likewise for local "insn".
595 (scheduled_good_insn): Likewise for param "last".
596 (struct _ia64_sched_context): Likewise for field
597 "last_scheduled_insn".
598 (ia64_init_sched_context): Replace NULL_RTX with NULL.
599 (struct bundle_state): Likewise for field "insn".
600 (issue_nops_and_insn): Likewise for param "insn".
601 (get_next_important_insn): Likewise for return type and both
603 (ia64_add_bundle_selector_before): Likewise for param "insn".
604 (bundling): Likewise for params "prev_head_insn", "tail" and
605 locals "insn", "next_insn", "b". Eliminate top-level local rtx
606 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
607 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
608 Strengthen final param from rtx to rtx_insn *.
609 (iq2000_move_1word): Likewise for second param.
610 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
611 param "cur_insn" and local "next_insn".
612 (iq2000_move_1word): Likewise for param "insn".
613 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
614 casts when using NEXT_INSN on operands[1].
615 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
616 "insn" from rtx to rtx_insn *.
617 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
618 "x", introducing local rtx_insn * "insn" for when working with the
619 CODE_LABEL of the LABEL_REF.
620 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
622 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
624 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
626 (conditionalize_block): Likewise for return type and param.
627 (mcore_is_dead): Likewise for param "first" and local "insn".
628 (emit_new_cond_insn): Likewise for return type.
629 (conditionalize_block): Likewise for return type, param, and
630 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
632 (conditionalize_optimization): Likewise for local "insn".
633 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
635 * config/microblaze/microblaze.md: Add checked casts when using
637 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
638 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
639 and rtx_insn * "insn".
640 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
641 checked cast when using NEXT_INSN on operands[2].
642 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
643 local "insn" from rtx to rtx_insn *.
644 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
646 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
647 Add a checked cast when using NEXT_INSN on operands[1].
648 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
650 (pa_output_cbranch): Likewise for final param.
651 (pa_output_lbranch): Likewise for second param.
652 (pa_output_bb): Likewise for third param.
653 (pa_output_bvb): Likewise.
654 (pa_output_dbra): Likewise for second param.
655 (pa_output_movb): Likewise.
656 (pa_output_parallel_movb): Likewise.
657 (pa_output_parallel_addb): Likewise.
658 (pa_output_millicode_call): Likewise for first param.
659 (pa_output_mul_insn): Likewise for second param.
660 (pa_output_div_insn): Likewise for third param.
661 (pa_output_mod_insn): Likewise for second param.
662 (pa_jump_in_call_delay): Likewise for param.
663 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
664 (pa_output_div_insn): Likewise.
665 (pa_output_mod_insn): Likewise.
666 (pa_output_cbranch): Likewise.
667 (pa_output_lbranch): Likewise.
668 (pa_output_bb): Likewise.
669 (pa_output_bvb): Likewise.
670 (pa_output_dbra): Likewise.
671 (pa_output_movb): Likewise.
672 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
673 to simplify and for typesafety.
674 (pa_output_call): Use method of rtx_sequence *.
675 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
676 (pa_jump_in_call_delay): Likewise.
677 (pa_output_parallel_movb): Likewise.
678 (pa_output_parallel_addb): Likewise.
679 (pa_following_call): Likewise.
680 (pa_combine_instructions): Likewise for locals "anchor",
682 (pa_can_combine_p): Likewise for params "anchor", "floater" and
683 locals "start", "end".
684 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
685 param "insn" and local "local_insn".
686 (picochip_final_prescan_insn): Likewise for local "local_insn".
687 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
689 (uses_TOC): Likewise.
690 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
691 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
692 splitting out to more tightly-scoped locals, 3 as rtx and one as
694 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
696 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
698 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
700 (fixup_addr_diff_vecs): Likewise.
701 (reg_unused_after): Likewise for param 2.
702 (sh_can_redirect_branch): Likewise for both params.
703 (check_use_sfunc_addr): Likewise for param 1.
704 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
705 (find_barrier): Likewise for local "last_got".
706 (gen_block_redirect): Likewise for return type, param "jump" and
707 locals "prev", "scan", "next", "insn".
708 (struct far_branch): Likewise for fields "near_label",
709 "insert_place", "far_label".
710 (gen_far_branch): Likewise for local "jump".
711 (fixup_addr_diff_vecs): Likewise for param "first" and locals
713 (barrier_align): Likewise for param and for locals "prev", "x".
714 Introduce local rtx_sequence * "prev_seq" and use insn method for
715 typesafety and clarity.
716 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
717 (get_dest_uid): Likewise for local "dest".
718 (split_branches): Likewise for locals "next", "beyond", "label",
719 "block", "far_label". Add checked casts when assigning to
720 bp->far_label and "far_label".
721 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
722 (sequence_insn_p): Likewise.
723 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
724 more loop-scoped rtx "insn" when walking LABEL_REFS.
725 (sh_can_redirect_branch): Strengthen both params from rtx to
727 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
728 new local rtx_sequence * "seq" via a dyn_cast, and use a method
729 for clarity and typesafety.
730 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
731 "insn" from rtx to rtx_insn *.
732 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
733 when using NEXT_INSN on the CODE_LABEL in operands[2].
734 (define_insn "casesi_worker_2"): Likewise.
735 (define_insn "casesi_shift_media"): Likewise.
736 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
738 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
739 Strengthen field "insn" from rtx to rtx_insn *.
740 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
741 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
742 param "start_insn" and local "start_insn".
743 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
745 (find_set_of_reg_bb): Likewise for param "insn".
746 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
747 (trace_reg_uses): Likewise for param "start_insn".
748 (sh_treg_combine::cbranch_trace): Likewise for field
750 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
752 (sh_treg_combine::record_set_of_reg): Likewise for param
753 "start_insn" and local "i".
754 (sh_treg_combine::can_remove_cstore): Likewise for local
756 (sh_treg_combine::try_optimize_cbranch): Likewise for param
758 (sh_treg_combine::execute): Likewise for local "i".
759 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
761 (sparc_check_64): Likewise for second param.
762 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
763 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
764 dyn_cast, using its insn method for typesafety and clarity.
765 (empty_delay_slot): Strengthen param "insn" from rtx to
767 (set_extends): Likewise.
768 (sparc_check_64): Likewise.
769 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
770 for locals "seq", "last_insn".
771 (combine_bnp): Likewise for param "insn".
772 (xstormy16_reorg): Likewise for local "insn".
773 * config/v850/v850.c (substitute_ep_register): Likewise for params
774 "first_insn", "last_insn" and local "insn".
775 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
776 elements of "regs" array, and local "insn".
777 * except.c (emit_note_eh_region_end): Likewise for param "insn".
778 * final.c (final_sequence): Strengthen this global from rtx to
780 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
782 (final_scan_insn): Update assignment to "final_sequence" to be
783 from "seq", the cast version of "body", for type-safety.
784 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
785 "insns" from rtx to rtx_insn *.
786 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
787 * genattr.c (main): When writing out generated insn-attr.h,
788 strengthen params 1 and 3 of eligible_for_delay,
789 eligible_for_annul_true, eligible_for_annul_false from rtx to
791 * genattrtab.c (write_eligible_delay): Likewise when writing out
792 generated insn-attrtab.c; also local "insn" the generated
794 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
796 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
797 "start_label" from rtx to rtx_insn *.
798 * ira.c (decrease_live_ranges_number): Likewise for local "p".
799 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
800 "insns" and local "insn".
801 (validate_equiv_mem): Likewise for param "start" and local "insn".
802 (memref_used_between_p): Likewise for params "start", "end" and
804 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
806 * loop-doloop.c (doloop_optimize): Within region guarded by
807 INSN_P (doloop_pat), introduce a new local rtx_insn *
808 "doloop_insn" via a checked cast, and use it for typesafety,
809 eventually writing the value back into doloop_pat.
810 * output.h (final_sequence): Strengthen this global from rtx to
812 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
813 reintroducing "insn" as an rtx_insn * via a checked cast.
814 Strengthen param "attempt" and local "new_insn"from rtx to
816 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
818 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
819 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
820 "p" in favor of more tightly-scoped replacements, sometimes rtx
821 and sometimes rtx_insn *, as appropriate.
822 (delete_output_reload): Eliminate top-level rtx "i1", splitting
823 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
824 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
825 local "trial" from rtx to rtx_insn *.
826 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
827 rtx to rtx_insn *. Strenghten local "pat" from rtx to
828 rtx_sequence * and use methods for clarity and typesafety.
829 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
830 rtx to rtx_insn *. Strenghten local "li" from rtx to
831 rtx_insn_list * and use its methods for clarity and typesafety.
832 (steal_delay_list_from_target): Strengthen param "insn" from rtx
834 (steal_delay_list_from_fallthrough): Likewise.
835 (try_merge_delay_insns): Likewise for param "thread" and locals
836 "trial", "next_trial", "delay_insn".
837 (redundant_insn): Likewise for param "target" and local "trial".
838 (own_thread_p): Likewise for param "thread" and locals
839 "active_insn", "insn".
840 (get_label_before): Likewise for param "insn".
841 (fill_simple_delay_slots): Likewise for local "new_label"; use
842 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
843 (label_before_next_insn): Strengthen return type and local "insn"
844 from rtx to rtx_insn *.
845 (relax_delay_slots): Likewise for locals "other", "tmp".
846 (make_return_insns): Likewise for param "first" and locals "insn",
847 "jump_insn", "prev". Move declaration of "pat" to its assignment
848 and strengthen from rtx to rtx_sequence *. Use its methods for
849 clarity and typesafety.
850 * rtlanal.c (no_labels_between_p): Strengthen params from
851 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
853 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
854 from const_rtx to const rtx_insn *.
855 (reg_set_between_p): Rename param "from_insn" to
856 "uncast_from_insn", and reintroduce "from_insn" as a
857 const rtx_insn * via a checked cast.
858 (modified_between_p): Likewise for param "start" as "uncast_start".
859 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
860 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
861 "tmp", head" from rtx to rtx_insn *.
862 (recompute_rev_top_order): Likewise for local "insn".
863 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
864 * store-motion.c (build_store_vectors): Likewise for local "insn".
865 Strengthen local "st" from rtx to rtx_insn_list * and use methods
866 for clarity and typesafety.
867 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
869 (computation_cost): Likewise for local "seq".
870 (get_address_cost): Likewise.
872 2014-08-28 David Malcolm <dmalcolm@redhat.com>
874 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
876 (label_is_jump_target_p): Likewise for second param.
878 * rtlanal.c (tablejump_p): Likewise for param "insn".
879 (label_is_jump_target_p): Likewise for param "jump_insn".
881 2014-08-28 David Malcolm <dmalcolm@redhat.com>
883 * rtl.h (find_first_parameter_load): Strengthen return type and
884 both params from rtx to rtx_insn *.
885 * rtlanal.c (find_first_parameter_load): Strengthen return type,
886 both params and locals "before", "first_set" from rtx to
887 rtx_insn *. Remove now-redundant cast.
888 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
890 2014-08-28 David Malcolm <dmalcolm@redhat.com>
892 * rtl.h (find_last_value): Delete.
893 * rtlanal.c (find_last_value): Delete.
895 2014-08-28 David Malcolm <dmalcolm@redhat.com>
897 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
898 from rtx to rtx_insn *.
899 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
900 rtx "note" with new local rtx_insn * "new_head" when calculating
901 head insn of new basic block.
902 * combine.c (combine_split_insns): Strengthen return type and local
903 "ret" from rtx to rtx_insn *.
904 (likely_spilled_retval_p): Likewise for locals "use" and "p".
905 (try_combine): Eliminate local "m_split", splitting into new
906 locals "m_split_insn" and "m_split_pat".
907 (find_split_point): Strengthen local "seq" from rtx into
909 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
910 locals "label", "branch".
911 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
913 (define_expand "umulsi3_highpart"): Likewise for local "insn".
914 * dse.c (note_add_store_info): Likewise for fields "first",
916 (note_add_store): Likewise for local "insn".
917 (emit_inc_dec_insn_before): Likewise for locals "insn",
919 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
920 (replace_read): Likewise for locals "insns", "this_insn".
921 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
922 (notice_eh_throw): Likewise for param "insn".
923 (before_next_cfi_note): Likewise for return type, param, and local
925 (connect_traces): Likewise for local "note".
926 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
927 (verify_rtl_sharing): Likewise.
928 (unshare_all_rtl_in_chain): Likewise for param "insn".
929 (get_first_nonnote_insn): Likewise for local "insn".
930 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
931 "seq" and use its methods to clarify things.
932 (next_insn): Strengthen return type from rtx to rtx_insn *.
933 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
934 local rtx_insn * using a checked cast, dropping a checked cast
935 made redundant by this change. Use a cast to and method of
936 rtx_sequence to clarify the code.
937 (previous_insn): Rename param "insn" to "uncast_insn" and
938 reintroduce "insn" as a local rtx_insn * using a checked cast,
939 dropping a checked cast made redundant by this change. Use a cast
940 to and method of rtx_sequence to clarify the code.
941 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
942 reintroduce "insn" as a local rtx_insn * using a checked cast,
943 dropping a checked cast made redundant by this change.
944 (next_nonnote_insn_bb): Likewise.
945 (prev_nonnote_insn): Likewise.
946 (prev_nonnote_insn_bb): Likewise.
947 (next_nondebug_insn): Likewise.
948 (prev_nondebug_insn): Likewise.
949 (next_nonnote_nondebug_insn): Likewise.
950 (prev_nonnote_nondebug_insn): Likewise.
951 (next_real_insn): Likewise.
952 (prev_real_insn): Likewise.
953 (next_active_insn): Likewise.
954 (prev_active_insn): Likewise.
955 (next_cc0_user): Likewise. Use rtx_sequence and a method for
957 (prev_cc0_setter): Likewise.
958 (try_split): Rename param "trial" to "uncast_trial" and
959 reintroduce "insn" as a local rtx_insn * using a checked cast,
960 dropping checked casts made redundant by this change.
961 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
963 (remove_insn): Rename param "insn" to "uncast_insn" and
964 reintroduce "insn" as a local rtx_insn * using a checked cast.
965 (emit_pattern_after_setloc): Likewise for param "after", as
967 (emit_pattern_after): Likewise. Strengthen local "prev" from
969 (emit_pattern_before_setloc): Rename param "before" to
970 "uncast_before" and reintroduce "before" as a local rtx_insn *
971 using a checked cast. Strengthen locals "first", "last" from
973 (emit_pattern_before): Likewise rename/cast param "before" to
974 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
975 * except.c (copy_reg_eh_region_note_forward): Strengthen param
976 "first" and local "insn" from rtx to rtx_insn *.
977 (copy_reg_eh_region_note_backward): Likewise for param "last"
979 * expr.c (fixup_args_size_notes): Rename param "last" to
980 "uncast_last" and reintroduce "last" as a local rtx_insn *
981 using a checked cast. Strengthen local "insn" from rtx to
983 * function.c (set_insn_locations): Strengthen param "insn" from
985 (record_insns): Likewise for param "insns" and local "tmp".
986 (active_insn_between): Rename param "tail" to
987 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
988 using a checked cast.
989 (thread_prologue_and_epilogue_insns): Split out top-level local
990 rtx "seq" into three different rtx_insn * locals. Strengthen
991 local "prologue_seq" from rtx to rtx_insn *.
992 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
993 from rtx to rtx_insn *.
994 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
995 (priority): Likewise for locals "prev_first", "twin".
996 (setup_insn_max_reg_pressure): Likewise for param "after".
997 (sched_setup_bb_reg_pressure_info): Likewise.
998 (no_real_insns_p): Strengthen params from const_rtx to
1000 (schedule_block): Strengthen local "next_tail" from rtx to
1002 * ifcvt.c (find_active_insn_before): Strengthen return type and
1003 param "insn" from rtx to rtx_insn *.
1004 (find_active_insn_after): Likewise.
1005 (cond_exec_process_insns): Likewise for param "start" and local "insn".
1006 (cond_exec_process_if_block): Likewise for locals "then_start",
1007 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1008 (noce_process_if_block): Likewise for local "jump".
1009 (merge_if_block): Likewise for two locals named "end".
1010 (cond_exec_find_if_block): Likewise for local "last_insn".
1011 * jump.c (delete_related_insns): Rename param "insn" to
1012 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1013 checked cast. Strengthen local "p" from rtx to rtx_insn *.
1014 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1016 (split_reg): Likewise.
1017 * lra.c (lra_process_new_insns): Likewise.
1018 * modulo-sched.c (permute_partial_schedule): Strengthen param
1019 "last" from rtx to rtx_insn *.
1020 * optabs.c (add_equal_note): Likewise for param "insns" and local
1022 (expand_binop_directly): Add checked casts to rtx_insn * within
1023 NEXT_INSN (pat) uses.
1024 (expand_unop_direct): Likewise.
1025 (maybe_emit_unop_insn): Likewise.
1026 * recog.c (peep2_attempt): Strengthen locals "last",
1027 "before_try", "x" from rtx to rtx_insn *.
1028 * reorg.c (optimize_skip): Strengthen return type and local
1029 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
1030 and locals "trial", "next_trial" from rtx to rtx_insn *.
1031 * resource.c (next_insn_no_annul): Strengthen return type and
1032 param "insn" from rtx to rtx_insn *. Use a cast to and method of
1033 rtx_sequence to clarify the code.
1034 (mark_referenced_resources): Add a checked cast to rtx_insn *
1035 within PREV_INSN (x).
1036 (find_dead_or_set_registers): Strengthen return type, param
1037 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1038 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
1040 (mark_target_live_regs): Strengthen params "insns" and "target",
1041 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1042 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
1044 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
1045 from rtx to rtx_insn *.
1046 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
1047 from rtx to rtx_insn *.
1048 (copy_reg_eh_region_note_backward): Likewise.
1049 (unshare_all_rtl_in_chain): Likewise for sole param.
1050 (dump_rtl_slim): Strengthen second and third params from const_rtx
1051 to const rtx_insn *.
1052 * sched-deps.c (sched_free_deps): Strengthen params "head" and
1053 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
1054 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
1055 "next_tail" from rtx to rtx_insn *.
1056 (begin_move_insn): Likewise for local "next".
1057 * sched-int.h (sched_free_deps): Likewise for first and second
1059 (no_real_insns_p): Strengthen both params from const_rtx to
1061 (sched_setup_bb_reg_pressure_info): Strengthen second params from
1063 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
1065 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
1066 and locals "insn", "tail" from const_rtx to const rtx_insn *.
1067 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
1069 (debug_rtl_slim): Strengthen params "first" and "last" from
1070 const_rtx to const rtx_insn *.
1071 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
1072 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
1073 (convert_to_simple_return): Likewise for param "returnjump".
1074 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
1076 (convert_to_simple_return): Likewise for param "returnjump".
1077 * valtrack.c (propagate_for_debug): Likewise for params
1079 * valtrack.h (propagate_for_debug): Likewise for second param.
1081 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1083 * output.h (insn_current_reference_address): Strengthen param
1084 from rtx to rtx_insn *.
1085 * final.c (insn_current_reference_address): Likewise.
1087 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1089 * basic-block.h (inside_basic_block_p): Strengthen param from
1090 const_rtx to const rtx_insn *.
1091 * cfgbuild.c (inside_basic_block_p): Likewise.
1093 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1095 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
1097 (get_trace_info): Likewise for param "insn".
1098 (save_point_p): Likewise.
1099 (maybe_record_trace_start): Likewise for both params.
1100 (maybe_record_trace_start_abnormal): Likewise.
1101 (create_trace_edges): Likewise for sole param and for three of the
1103 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1104 to rtx_insn *, and update a call to pat->element to pat->insn.
1106 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1108 * function.h (struct expr_status): Convert field "x_forced_labels"
1109 from rtx_expr_list * to rtx_insn_list *.
1111 * cfgbuild.c (make_edges): Convert local "x" from an
1112 rtx_expr_list * to an rtx_insn_list *, replacing use of
1113 "element" method with "insn" method.
1114 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1115 * except.c (sjlj_emit_dispatch_table): Replace use of
1116 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1118 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1119 rtx_expr_list * to an rtx_insn_list *, replacing use of
1120 "element" method with "insn" method.
1121 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1122 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1123 rtx_insn *, adding a checked cast. Replace use of
1124 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1126 (expand_label): Likewise for local "label_r".
1128 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1130 * function.h (struct rtl_data): Convert field
1131 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1133 * rtl.h (remove_node_from_insn_list): New prototype.
1135 * builtins.c (expand_builtin): When prepending to
1136 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1138 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1139 to rtx_insn_list *, and use its "insn" method rather than
1141 * cfgrtl.c (delete_insn): Use new function
1142 remove_node_from_insn_list rather than
1143 remove_node_from_expr_list.
1144 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1145 to rtx_insn_list *, and use its "insn" method rather than
1147 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1148 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1149 * rtlanal.c (remove_node_from_insn_list): New function, adapted
1150 from remove_node_from_expr_list.
1151 * stmt.c (expand_label): When prepending to
1152 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1155 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1157 * function.h (struct rtl_data): Strengthen fields "x_return_label"
1158 and "x_naked_return_label" from rtx to rtx_code_label *.
1160 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1162 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1163 (SET_NEXT_INSN): Likewise.
1164 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1166 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1167 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
1168 to split out the SEQUENCE from local "bundle", strengthening the
1169 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1170 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1171 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1172 and the type of the elements of the "slot" array from rtx to
1174 (reorg_split_calls): Likewise for locals "insn" and "next", and
1175 the type of the elements of the "slot" array.
1177 * config/frv/frv.c (frv_nops): Likewise for the elements of this
1179 (frv_function_prologue): Likewise for locals "insn", "next",
1181 (frv_register_nop): Introduce a local "nop_insn" to be the
1182 rtx_insn * containing rtx "nop".
1184 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1185 used as an insn and sometimes as a pattern, so rename it to
1186 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1187 using it where dealing with the core insn.
1189 * config/picochip/picochip.c (reorder_var_tracking_notes):
1190 Strengthen locals "insn", "next", "last_insn", "queue",
1191 "next_queue", "prev" from rtx to rtx_insn *.
1193 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1194 the second param is an rtx_insn ** rather than an rtx **.
1195 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1196 from rtx to rtx_sequence *, and introduce local named "sequence",
1197 using methods of rtx_sequence to clarify the code.
1198 (remove_insn): Introduce local rtx_sequence * named "sequence" and
1200 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1201 Rename param "after" to "uncast_after", reintroducing "after" as a
1202 local rtx_insn * with a checked cast.
1203 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1204 reintroducing "after" as a local rtx_insn * with a checked cast.
1205 Strengthen local "last" from rtx to rtx_insn * and remove the
1206 now-redundant checked casts.
1207 (copy_delay_slot_insn): Strengthen return type and param from rtx
1210 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1211 "last" from rtx to rtx_insn *.
1213 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1215 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1216 param from rtx to rtx_insn *.
1218 * emit-rtl.c (copy_delay_slot_insn): Likewise.
1220 * reorg.c (skip_consecutive_labels): Strengthen return type, param
1221 and local "insn" from rtx to rtx_insn *.
1222 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1223 (unfilled_slots_next): Likewise.
1224 (function_return_label): Strengthen from rtx to rtx_code_label *.
1225 (function_simple_return_label): Likewise.
1226 (first_active_target_insn): Strengthen return type and param from
1228 (find_end_label): Strengthen return type from rtx to
1229 rtx_code_label *; strengthen locals as appropriate.
1230 (emit_delay_sequence): Strengthen return type, param "insn" and
1231 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
1232 and local "li" from rtx to rtx_insn_list *, using methods of
1233 rtx_insn_list for clarity and typesafety.
1234 (add_to_delay_list): Strengthen return type and param "insn" from
1235 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
1236 rtx_insn_list * and use methods of rtx_insn_list.
1237 (delete_from_delay_slot): Strengthen return type, param "insn",
1238 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1239 Strengthen local "seq" from rtx to rtx_sequence *, and local
1240 "delay_list" from rtx to rtx_insn_list *, using methods of
1241 rtx_sequence for clarity and type-safety.
1242 (delete_scheduled_jump): Add checked cast when invoking
1243 delete_from_delay_slot. Strengthen local "trial" from rtx to
1245 (optimize_skip): Strengthen return type and local "delay_list"
1246 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
1248 (steal_delay_list_from_target): Strengthen return type, param
1249 "delay_list" and local "new_delay_list" from rtx to
1250 rtx_insn_list *. Strengthen param "seq" from rtx to
1251 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
1253 Split out local "temp" into multiple more-tightly scoped locals:
1254 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
1255 of rtx_insn_list and rtx_sequence for clarity and typesafety.
1256 Strengthen locals named "trial" from rtx to rtx_insn *.
1257 (steal_delay_list_from_fallthrough): Strengthen return type and
1258 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
1259 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
1260 Strengthen local "trial" from rtx to rtx_insn *.
1261 (try_merge_delay_insns): Strength local "merged_insns" from rtx
1262 to rtx_insn_list * and use its methods. Strengthen local "pat"
1263 from rtx to rtx_sequence * and use its methods. Strengthen locals
1264 "dtrial" and "new_rtx" from rtx to rtx_insn *.
1265 (get_label_before): Strengthen return type and local "label" from
1267 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1268 "next_trial", "next", prev". Strengthen local "delay_list" from
1269 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
1271 (follow_jumps): Strengthen return type, param "label" and locals
1272 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1273 (fill_slots_from_thread): Strengthen return type, param
1274 "delay_list" from rtx to rtx_insn_list *. Strengthen params
1275 "insn", "thread", "opposite_thread" and locals "new_thread",
1276 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
1277 "sequence" from a checked cast to rtx_sequence so that we can call
1278 steal_delay_list_from_target and steal_delay_list_from_fallthrough
1279 with an rtx_sequence *.
1280 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1281 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1282 Strengthen local "delay_list" from rtx to rtx_insn_list *.
1283 (relax_delay_slots): Strengthen param "first" and locals "insn",
1284 "next", "trial", "delay_insn", "target_label" from rtx to
1285 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
1286 Introduce a local "trial_seq" for PATTERN (trial) of type
1287 rtx_sequence *, in both cases using methods of rtx_sequence.
1288 (dbr_schedule): Strengthen param "first" and locals "insn",
1289 "next", "epilogue_insn" from rtx to rtx_insn *.
1291 2014-08-28 Richard Biener <rguenther@suse.de>
1293 PR tree-optimization/62283
1294 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1295 Do not peel loops for alignment where the vector loop likely
1296 doesn't run at least VF times.
1298 2014-08-28 Bin Cheng <bin.cheng@arm.com>
1300 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1301 important_candidates. Consider all important candidates if
1302 IVS doesn't give any result. Remove check on ivs->upto.
1303 (try_add_cand_for): Call iv_ca_add_use only once.
1305 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1306 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1307 Anna Tikhonova <anna.tikhonova@intel.com>
1308 Ilya Tocar <ilya.tocar@intel.com>
1309 Andrey Turetskiy <andrey.turetskiy@intel.com>
1310 Ilya Verbin <ilya.verbin@intel.com>
1311 Kirill Yukhin <kirill.yukhin@intel.com>
1312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1314 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1315 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1317 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1318 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1319 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1320 (define_insn "*mul<mode>3"): Add EVEX version.
1322 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1324 Anna Tikhonova <anna.tikhonova@intel.com>
1325 Ilya Tocar <ilya.tocar@intel.com>
1326 Andrey Turetskiy <andrey.turetskiy@intel.com>
1327 Ilya Verbin <ilya.verbin@intel.com>
1328 Kirill Yukhin <kirill.yukhin@intel.com>
1329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1331 * config/i386/sse.md
1332 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1333 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1334 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1335 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1336 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1337 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1338 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1339 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1340 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1341 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1342 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1343 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1344 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1345 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1346 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1347 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1349 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1350 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1351 Anna Tikhonova <anna.tikhonova@intel.com>
1352 Ilya Tocar <ilya.tocar@intel.com>
1353 Andrey Turetskiy <andrey.turetskiy@intel.com>
1354 Ilya Verbin <ilya.verbin@intel.com>
1355 Kirill Yukhin <kirill.yukhin@intel.com>
1356 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1358 * config/i386/sse.md
1359 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1360 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1361 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1363 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1364 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1365 Anna Tikhonova <anna.tikhonova@intel.com>
1366 Ilya Tocar <ilya.tocar@intel.com>
1367 Andrey Turetskiy <andrey.turetskiy@intel.com>
1368 Ilya Verbin <ilya.verbin@intel.com>
1369 Kirill Yukhin <kirill.yukhin@intel.com>
1370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1372 * config/i386/sse.md
1373 (define_mode_iterator VI128_256): New.
1374 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1376 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1377 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1378 Anna Tikhonova <anna.tikhonova@intel.com>
1379 Ilya Tocar <ilya.tocar@intel.com>
1380 Andrey Turetskiy <andrey.turetskiy@intel.com>
1381 Ilya Verbin <ilya.verbin@intel.com>
1382 Kirill Yukhin <kirill.yukhin@intel.com>
1383 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1385 * config/i386/sse.md
1386 (define_mode_iterator VI8_256_512): New.
1387 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1389 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1390 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1392 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1394 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1396 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
1397 pointer to the cumulative reloc value and return the value for
1399 (compute_reloc_for_rtx): Take a const_rtx. Call
1400 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1401 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
1402 for_each_rtx for the CONST case.
1404 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1406 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1407 (mark_constants_in_pattern): ...this new function to iterate over
1409 (mark_constants): Update accordingly.
1411 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1413 * varasm.c: Include rtl-iter.h.
1414 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1415 Remove the pointer to the cumulative hashval_t and just return
1416 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
1417 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1418 Accumulate the hashval_ts here instead of const_rtx_hash_1.
1420 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1422 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1423 Give real type of data parameter. Remove return value.
1424 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1425 to iterate over subrtxes.
1427 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1429 * var-tracking.c (use_narrower_mode_test): Turn from being a
1430 for_each_rtx callback to being a function that examines each
1432 (adjust_mems): Update accordingly.
1434 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1436 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1437 callback to being a function that examines each subrtx itself.
1438 Remove handling of null rtxes.
1439 (add_uses): Update accordingly.
1441 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1443 * var-tracking.c: Include rtl-iter.h.
1444 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1445 to being a function that examines each subrtx itself.
1446 (use_type): Update accordingly.
1448 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1450 * store-motion.c: Include rtl-iter.h.
1451 (extract_mentioned_regs_1): Delete.
1452 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1453 for_each_rtx to iterate over subrtxes.
1455 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1457 * sel-sched.c: Include rtl-iter.h
1458 (count_occurrences_1): Delete.
1459 (count_occurrences_equiv): Turn rtxes into const_rtxes.
1460 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1462 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1464 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1465 * rtlanal.c (tls_referenced_p_1): Delete.
1466 (tls_referenced_p): Take a const_rtx rather than an rtx.
1467 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1469 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1471 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1472 (for_each_inc_dec): Take an rtx rather than an rtx *.
1473 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1474 (cselib_record_sets): Likewise.
1475 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1476 (check_for_inc_dec): Likewise.
1477 * rtlanal.c (for_each_inc_dec_ops): Delete.
1478 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1479 rather than a pointer to the memory address. Replace
1480 for_each_inc_dec_ops argument with separate function and data
1481 arguments. Abort on non-autoinc addresses.
1482 (for_each_inc_dec_find_mem): Delete.
1483 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
1484 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1486 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1488 * rtl.h (find_all_hard_regs): Declare.
1489 * rtlanal.c (find_all_hard_regs): New function.
1490 (record_hard_reg_uses_1): Delete.
1491 (record_hard_reg_uses): Use find_all_hard_regs.
1493 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1495 * rtl.h (replace_label_data): Delete.
1496 (replace_label): Take the old label, new label and update-nuses flag
1497 as direct arguments. Return void.
1498 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1499 * rtlanal.c (replace_label): Update interface as above. Handle
1500 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
1501 iterator. Use FOR_EACH_SUBRTX_PTR.
1503 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1505 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1506 with const_rtx parameters.
1507 * varasm.c (get_pool_constant): Likewise.
1508 * rtlanal.c (rtx_referenced_p_1): Delete.
1509 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1510 Assert that the rtx we're looking for is nonnull. Allow searches
1511 for constant pool SYMBOL_REFs.
1513 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1515 * reload1.c: Include rtl-iter.h.
1516 (note_reg_elim_costly): Turn from being a for_each_rtx callback
1517 to being a function that examines each subrtx itself.
1518 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1520 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1522 * regcprop.c (cprop_find_used_regs_1): Delete.
1523 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1527 * regcprop.c: Include rtl-iter.h.
1528 (kill_value): Take a const_rtx.
1529 (kill_autoinc_value): Turn from being a for_each_rtx callback
1530 to being a function that examines each subrtx itself.
1531 (copyprop_hardreg_forward_1): Update accordingly.
1533 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1535 * reg-stack.c: Include rtl-iter.h.
1536 (subst_stack_regs_in_debug_insn): Delete.
1537 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1538 instead of for_each_rtx.
1540 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1542 * lower-subreg.c (find_decomposable_subregs): Turn from being
1543 a for_each_rtx callback to being a function that examines each
1544 subrtx itself. Remove handling of null rtxes.
1545 (decompose_multiword_subregs): Update accordingly.
1547 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1549 * lower-subreg.c (adjust_decomposed_uses): Delete.
1550 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1551 Remove handling of null rtxes.
1553 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1555 * lower-subreg.c: Include rtl-iter.h.
1556 (resolve_subreg_use): Turn from being a for_each_rtx callback
1557 to being a function that examines each subrtx itself. Remove
1558 handling of null rtxes.
1559 (resolve_reg_notes, resolve_simple_move): Update accordingly.
1560 (decompose_multiword_subregs): Likewise.
1562 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1564 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1565 to being a function that examines each subrtx itself.
1566 (simplify_using_condition, simplify_using_initial_values): Update
1569 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1571 * loop-iv.c: Include rtl-iter.h.
1572 (find_single_def_src): New function.
1573 (replace_single_def_regs): Turn from being a for_each_rtx callback
1574 to being a function that examines each subrtx itself.
1575 (replace_in_expr, simplify_using_initial_values): Update accordingly.
1577 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1579 * jump.c (eh_returnjump_p_1): Delete.
1580 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1581 Remove handling of null rtxes.
1583 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1585 * jump.c: Include rtl-iter.h.
1586 (returnjump_p_1): Delete.
1587 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1588 Remove handling of null rtxes.
1590 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1592 * ira.c: Include rtl-iter.h.
1593 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1594 to being a function that examines each subrtx itself. Remove
1595 handling of null rtxes.
1596 (update_equiv_regs): Update call accordingly.
1598 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1600 * fwprop.c: Include rtl-iter.h.
1601 (varying_mem_p): Turn from being a for_each_rtx callback to being
1602 a function that examines each subrtx itself.
1603 (propagate_rtx): Update accordingly.
1605 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1607 * function.c: Include rtl-iter.h
1608 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1609 callback to being a function that examines each subrtx itself.
1610 Return the changed flag.
1611 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1612 (instantiate_virtual_regs): Update calls accordingly.
1614 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1616 * final.c: Include rtl-iter.h.
1617 (mark_symbol_ref_as_used): Delete.
1618 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1621 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1623 * emit-rtl.c: Include rtl-iter.h.
1624 (find_auto_inc): Turn from being a for_each_rtx callback to being
1625 a function that examines each subrtx itself. Assume the first operand
1626 to an RTX_AUTOINC is the automodified register.
1627 (try_split): Update call accordingly.
1629 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1631 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1632 Return a bool, inverting the result so that 0/false means "not ok".
1633 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1634 subrtxes of a CONST.
1635 (mem_loc_descriptor, add_const_value_attribute)
1636 (resolve_addr_in_expr): Update calls accordingly.
1638 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1640 * dwarf2out.c: Include rtl-iter.h.
1641 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1642 Remove unused data parameter. Return a bool, inverting the result
1643 so that 0/false means "not ok".
1644 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
1645 instead of for_each_rtx.
1647 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1649 * dse.c: Include rtl-iter.h.
1650 (check_mem_read_rtx): Change void * parameter to real type.
1651 Remove return value.
1652 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
1653 for_each_rtx. Don't handle null rtxes.
1655 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1657 * df-problems.c: Include rtl-iter.h.
1658 (find_memory): Turn from being a for_each_rtx callback to being
1659 a function that examines each subrtx itself. Continue to look for
1660 volatile references even after a nonvolatile one has been found.
1661 (can_move_insns_across): Update calls accordingly.
1663 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1665 * ddg.c (walk_mems_2, walk_mems_1): Delete.
1666 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1667 to iterate over subrtxes. Return a bool rather than an int.
1669 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1671 * ddg.c: Include rtl-iter.h.
1672 (mark_mem_use_1): Rename to...
1673 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
1674 instead of for_each_rtx.
1675 (mem_read_insn_p): Update accordingly.
1677 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1679 * cse.c (change_cc_mode_args): Delete.
1680 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1681 a function that examines each subrtx itself. Take the fields of
1682 change_cc_mode_args as argument and return void.
1683 (cse_change_cc_mode_insn): Update calls accordingly.
1685 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1687 * cse.c (is_dead_reg): Change argument to const_rtx.
1688 (dead_debug_insn_data): Delete.
1689 (is_dead_debug_insn): Expand commentary. Turn from being a
1690 for_each_rtx callback to being a function that examines
1691 each subrtx itself. Take the fields of dead_debug_insn_data
1693 (delete_trivially_dead_insns): Update call accordingly.
1695 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1697 * cse.c (check_for_label_ref): Move earlier in file. Turn from
1698 being a for_each_rtx callback to being a function that examines
1700 (cse_extended_basic_block): Update call accordingly.
1702 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1704 * cse.c (check_dependence_data): Delete.
1705 (check_dependence): Change from being a for_each_rtx callback to being
1706 a function that examines all subrtxes itself. Don't handle null rtxes.
1707 (invalidate): Update call accordingly.
1709 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1711 * cse.c: Include rtl-iter.h.
1712 (approx_reg_cost_1): Delete.
1713 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1714 Don't handle null rtxes.
1716 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1718 * cfgcleanup.c: Include rtl-iter.h.
1719 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
1720 to being a function that examines each subrtx itself.
1721 (thread_jump): Update accordingly.
1723 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1725 * combine-stack-adj.c: Include rtl-iter.h.
1726 (record_stack_refs_data): Delete.
1727 (record_stack_refs): Turn from being a for_each_rtx callback
1728 to being a function that examines each subrtx itself.
1729 Take a pointer to the reflist. Invert sense of return value
1730 so that true means success and false means failure. Don't
1732 (combine_stack_adjustments_for_block): Update accordingly.
1734 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1736 * combine.c (record_truncated_value): Turn from being a for_each_rtx
1737 callback to a function that takes an rtx and returns a bool
1738 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
1741 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1743 * combine.c: Include rtl-iter.h.
1744 (unmentioned_reg_p_1): Delete.
1745 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1746 Don't handle null rtxes.
1748 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1750 * calls.c: Include rtl-iter.h.
1751 (internal_arg_pointer_based_exp_1): Delete.
1752 (internal_arg_pointer_based_exp): Take a const_rtx.
1753 Use FOR_EACH_SUBRTX to iterate over subrtxes.
1755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1757 * caller-save.c: Include rtl-iter.h.
1758 (add_used_regs_1): Delete.
1759 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
1760 to iterate over subrtxes. Assert that any remaining pseudos
1763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1765 * bt-load.c: Include rtl-iter.h.
1766 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
1767 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
1768 to iterate over subrtxes.
1769 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
1770 find_btr_use rather than btr_referenced_p.
1772 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1774 * alias.c: Include rtl-iter.h.
1775 (refs_newer_value_cb): Delete.
1776 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1780 * rtl-iter.h: New file.
1781 * rtlanal.c: Include it.
1782 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
1783 (generic_subrtx_iterator <T>::add_single_to_queue)
1784 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
1785 (generic_subrtx_iterator <T>::free_array): New functions.
1786 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
1787 (generic_subrtx_iterator <const_rtx_accessor>)
1788 (generic_subrtx_iterator <rtx_var_accessor>
1789 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
1790 (setup_reg_subrtx_bounds): New function.
1791 (init_rtlanal): Call it.
1793 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
1796 * config/sh/sh.md (ashlsi3): Handle negative shift count for
1798 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1800 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
1802 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
1804 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1806 * rtl.h (JUMP_LABEL_AS_INSN): New.
1808 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1810 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
1812 (alloc_EXPR_LIST): Strengthen return type from rtx to
1814 (remove_free_EXPR_LIST_node): Likewise for param.
1815 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
1816 from rtx to rtx_expr_list *.
1817 * sched-int.h (struct deps_desc): Strengthen fields
1818 "pending_read_mems" and "pending_write_mems" from rtx to
1821 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
1822 rtx to rtx_expr_list *.
1823 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
1824 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
1826 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
1827 from rtx to rtx_expr_list *.
1828 * loop-iv.c (simplify_using_initial_values): Strengthen local
1829 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
1830 "pnote_next" from rtx * to rtx_expr_list **.
1831 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
1832 param "exprp" from rtx * to rtx_expr_list **.
1833 (add_insn_mem_dependence): Strengthen local "mem_list" from
1834 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
1836 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
1837 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
1838 param "old_mems_p" from rtx * to rtx_expr_list **.
1839 * var-tracking.c (struct adjust_mem_data): Strengthen field
1840 "side_effects" from rtx to rtx_expr_list *.
1841 (adjust_insn): Replace NULL_RTX with NULL when assigning to
1843 (prepare_call_arguments): Likewise.
1845 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1847 * function.h (struct rtl_data): Strengthen field
1848 "x_stack_slot_list" from rtx to rtx_expr_list *.
1850 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
1851 when assigning to stack_slot_list.
1853 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1855 * function.h (struct rtl_data): Strengthen field
1856 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
1857 * rtl.h (remove_node_from_expr_list): Strengthen second param from
1858 rtx * to rtx_expr_list **.
1860 * cfgbuild.c (make_edges): In loop over
1861 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
1862 rtx_expr_list *, and use methods of the latter class to clarify
1864 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
1865 rtx_expr_list *, and use methods of the latter class to clarify
1867 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1868 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1869 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
1870 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
1871 to rtx_expr_list *. Use methods of the latter class to clarify
1874 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1876 * function.h (struct expr_status): Strengthen field
1877 "x_forced_labels" from rtx to rtx_expr_list *.
1879 * cfgbuild.c (make_edges): Split local "x" into two locals,
1880 strengthening one from rtx to rtx_expr_list *, and using methods
1882 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
1883 loop over forced_labels, introduce strengthen it from rtx to
1884 rtx_expr_list *, using methods to clarify the code.
1885 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
1886 to rtx_expr_list *, using methods of said class to clarify the
1888 * reload1.c (set_initial_label_offsets): Split local "x" into two
1889 per-loop variables, strengthening the first from rtx to
1890 rtx_expr_list * and using methods.
1892 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1894 * coretypes.h (class rtx_expr_list): Add forward declaration.
1895 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
1896 * gengenrtl.c (special_rtx): Add EXPR_LIST.
1897 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
1898 invariant: GET_CODE (X) == EXPR_LIST.
1899 (is_a_helper <rtx_expr_list *>::test): New.
1900 (rtx_expr_list::next): New.
1901 (rtx_expr_list::element): New.
1902 (gen_rtx_EXPR_LIST): New.
1904 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1906 * varasm.c (mark_constants): Convert a GET_CODE check into a
1907 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1908 Use methods of rtx_sequence to clarify the code.
1910 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1912 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
1913 local "seq" via a checked cast, and use methods of rtx_sequence
1914 to simplify the code.
1916 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1918 * resource.c (mark_referenced_resources): Strengthen local
1919 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
1920 using methods of rtx_sequence to clarify the code.
1921 (find_dead_or_set_registers): Within the switch statement, convert
1922 a GET_CODE check to a dyn_cast, introducing local "seq". Within
1923 the JUMP_P handling, introduce another local "seq", adding a
1924 checked cast to rtx_sequence *. In both cases, use methods of
1925 rtx_sequence to clarify the code.
1926 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
1927 via a checked cast, and use methods of rtx_sequence to simplify
1930 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1932 * reorg.c (redundant_insn): In two places in the function, replace
1933 a check of GET_CODE with a dyn_cast, introducing local "seq", and
1934 usings methods of rtx_sequence to clarify the code.
1936 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1938 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
1939 local "seq" with a checked cast, and use methods of rtx_sequence
1940 to clarify the code.
1942 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1944 * function.c (contains): Introduce local "seq" for PATTERN (insn),
1945 with a checked cast, in the region for where we know it's a
1946 SEQUENCE. Use methods of rtx_sequence.
1948 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1950 * final.c (get_attr_length_1): Replace GET_CODE check with a
1951 dyn_cast, introducing local "seq" and the use of methods of
1953 (shorten_branches): Likewise, introducing local "body_seq".
1954 Strengthen local "inner_insn" from rtx to rtx_insn *.
1955 (reemit_insn_block_notes): Replace GET_CODE check with a
1956 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
1957 Use methods of rtx_sequence.
1958 (final_scan_insn): Likewise, introducing local "seq" for when
1959 "body" is known to be a SEQUENCE, using its methods.
1961 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1963 * except.c (can_throw_external): Strengthen local "seq" from rtx
1964 to rtx_sequence *. Use methods of rtx_sequence.
1965 (insn_nothrow_p): Likewise.
1967 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1969 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
1970 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1971 Use methods of rtx_sequence.
1972 (scan_trace): Likewise for local "pat".
1974 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1976 * coretypes.h (class rtx_sequence): Add forward declaration.
1977 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
1978 invariant: GET_CODE (X) == SEQUENCE.
1979 (is_a_helper <rtx_sequence *>::test): New.
1980 (is_a_helper <const rtx_sequence *>::test): New.
1981 (rtx_sequence::len): New.
1982 (rtx_sequence::element): New.
1983 (rtx_sequence::insn): New.
1985 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1987 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
1989 (alloc_INSN_LIST): Strengthen return type from rtx to
1991 (copy_INSN_LIST): Likewise for return type and param.
1992 (concat_INSN_LIST): Likewise for both params and return type.
1993 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
1994 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
1995 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
1996 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
1998 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
1999 "implicit_sets", "control_uses", "clobbers" from rtx to
2001 (struct deps_desc): Likewise for fields "pending_read_insns",
2002 "pending_write_insns", "pending_jump_insns",
2003 "last_pending_memory_flush", "last_function_call",
2004 "last_function_call_may_noreturn", "sched_before_next_call",
2005 "sched_before_next_jump".
2006 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2007 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2009 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2010 from rtx to rtx_insn_list *.
2011 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2014 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2015 to rtx_insn_list **.
2016 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2018 (queue_insn): Likewise for local "link".
2019 (struct haifa_saved_data): Strengthen field "insn_queue" from
2020 rtx * to rtx_insn_list **.
2021 (save_backtrack_point): Update allocation of save->insn_queue to
2022 reflect the strengthening of elements from rtx to rtx_insn_list *.
2023 (queue_to_ready): Strengthen local "link" from rtx to
2024 rtx_insn_list *; use methods "next" and "insn" when traversing the
2026 (early_queue_to_ready): Likewise for locals "link", "next_link",
2028 (schedule_block): Update allocation of insn_queue to reflect the
2029 strengthening of elements from rtx to rtx_insn_list *. Strengthen
2030 local "link" from rtx to rtx_insn_list *, and use methods when
2032 (add_to_speculative_block): Strengthen locals "twins" and
2033 "next_node" from rtx to rtx_insn_list *, and use methods when
2034 working with them. Strengthen local "twin" from rtx to
2035 rtx_insn *, eliminating a checked cast.
2036 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2037 from rtx to rtx_insn_list *, and use methods when working with
2040 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2041 from rtx to rtx_insn_list *, adding a checked cast.
2042 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
2044 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
2045 "newlink" from rtx to rtx_insn_list *. Strengthen local
2046 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
2047 from rtx to rtx_insn *.
2048 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
2049 from rtx to rtx_insn_list *. Use methods of the latter class.
2050 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
2051 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
2052 (remove_free_INSN_LIST_node): Strengthen return type and local
2053 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
2054 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
2055 rtx_insn_list *, using "insn" method.
2057 * sched-deps.c (add_dependence_list): Strengthen param "list"
2058 from rtx to rtx_insn_list *, and use methods when working with it.
2059 (add_dependence_list_and_free): Strengthen param "listp" from
2060 rtx * to rtx_insn_list **.
2061 (remove_from_dependence_list): Strenghten param "listp" from rtx *
2062 to rtx_insn_list **, and use methods when working with *listp.
2063 (remove_from_both_dependence_lists): Strengthen param "listp" from
2064 rtx * to rtx_insn_list **
2065 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
2066 to rtx_insn_list **. Eliminate local "link", in favor of two new
2067 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
2069 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
2070 by introducing local "cond_deps".
2071 (remove_from_deps): Strengthen param "insn" from rtx to
2074 * sched-rgn.c (concat_insn_mem_list): Strengthen param
2075 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
2076 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
2077 Use methods of rtx_insn_list.
2079 * store-motion.c (struct st_expr): Strengthen fields
2080 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
2081 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
2083 (find_moveable_store): Split out "tmp" into multiple more-tightly
2084 scoped locals. Use methods of rtx_insn_list *.
2085 (compute_store_table): Strengthen local "tmp" from rtx to
2086 rtx_insn *. Use methods of rtx_insn_list *.
2088 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2090 * coretypes.h (class rtx_insn_list): Add forward declaration.
2091 * rtl.h (class rtx_insn_list): New subclass of rtx_def
2092 (is_a_helper <rtx_insn_list *>::test): New.
2093 (rtx_insn_list::next): New.
2094 (rtx_insn_list::insn): New.
2095 (gen_rtx_INSN_LIST): Add prototype.
2096 * emit-rtl.c (gen_rtx_INSN_LIST): New.
2097 * gengenrtl.c (special_rtx): Add INSN_LIST.
2099 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2101 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2102 "prev" from rtx to rtx_insn *.
2104 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2106 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2107 functions. Require merely an rtx for now, not an rtx_insn *.
2108 (BLOCK_FOR_INSN): Likewise.
2109 (INSN_LOCATION): Likewise.
2110 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2112 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2114 * rtl.h (PATTERN): Convert this macro into a pair of inline
2115 functions, for now, requiring const_rtx and rtx.
2117 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2119 * target.def (unwind_emit): Strengthen param "insn" from rtx to
2121 (final_postscan_insn): Likewise.
2122 (adjust_cost): Likewise.
2123 (adjust_priority): Likewise.
2124 (variable_issue): Likewise.
2125 (macro_fusion_pair_p): Likewise.
2126 (dfa_post_cycle_insn): Likewise.
2127 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2128 (first_cycle_multipass_issue): Likewise.
2129 (dfa_new_cycle): Likewise.
2130 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2131 (speculate_insn): Likewise for param "insn".
2132 (gen_spec_check): Likewise for params "insn" and "label".
2133 (get_insn_spec_ds): Likewise for param "insn".
2134 (get_insn_checked_ds): Likewise.
2135 (dispatch_do): Likewise.
2136 (dispatch): Likewise.
2137 (cannot_copy_insn_p): Likewise.
2138 (invalid_within_doloop): Likewise.
2139 (legitimate_combined_insn): Likewise.
2143 * doc/tm.texi: Automatically updated to reflect changes to
2146 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2148 (schedule_block): Likewise.
2149 (sched_init): Likewise.
2150 (sched_speculate_insn): Strengthen param "insn" from rtx to
2152 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2154 * hooks.c (hook_bool_rtx_true): Rename to...
2155 hook_bool_rtx_insn_true): ...this, and strengthen first param from
2157 (hook_constcharptr_const_rtx_null): Rename to...
2158 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2159 first param from const_rtx to const rtx_insn *.
2160 (hook_bool_rtx_int_false): Rename to...
2161 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2162 param from rtx to rtx_insn *.
2163 (hook_void_rtx_int): Rename to...
2164 (hook_void_rtx_insn_int): ...this, and strengthen first param from
2167 * hooks.h (hook_bool_rtx_true): Rename to...
2168 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2170 (hook_bool_rtx_int_false): Rename to...
2171 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2172 param from rtx to rtx_insn *.
2173 (hook_void_rtx_int): Rename to...
2174 (hook_void_rtx_insn_int): ...this, and strengthen first param from
2176 (hook_constcharptr_const_rtx_null): Rename to...
2177 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2178 first param from const_rtx to const rtx_insn *.
2180 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2181 and local "prev" from rtx to rtx_insn *.
2183 * sched-int.h (sched_speculate_insn): Strengthen first param from
2186 * sel-sched.c (create_speculation_check): Likewise for local "label".
2187 * targhooks.c (default_invalid_within_doloop): Strengthen param
2188 "insn" from const_rtx to const rtx_insn *.
2189 * targhooks.h (default_invalid_within_doloop): Strengthen param
2190 from const_rtx to const rtx_insn *.
2192 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2193 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2195 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2197 (arc_invalid_within_doloop): Likewise, with const.
2199 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2200 (arm_cannot_copy_insn_p): Likewise for param "insn".
2201 (arm_unwind_emit): Likewise.
2203 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2206 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2207 (c6x_variable_issue): Likewise. Removed now-redundant checked
2209 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2211 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2212 Likewise for param "insn".
2213 (epiphany_mode_after): Likewise.
2214 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2215 params "insn", "dep_insn".
2216 (epiphany_mode_needed): Likewise for param "insn".
2217 (epiphany_mode_after): Likewise.
2219 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2220 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2221 (ix86_avx_u128_mode_needed): Likewise.
2222 (ix86_i387_mode_needed): Likewise.
2223 (ix86_mode_needed): Likewise.
2224 (ix86_avx_u128_mode_after): Likewise.
2225 (ix86_mode_after): Likewise.
2226 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2227 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2228 (ix86_adjust_priority): Likewise for param "insn".
2229 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2230 (do_dispatch): Likewise.
2231 (has_dispatch): Likewise.
2232 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2234 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2235 reflect renaming of default hook implementation from
2236 hook_constcharptr_const_rtx_null to
2237 hook_constcharptr_const_rtx_insn_null.
2238 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2240 (ia64_variable_issue): Likewise for param "insn".
2241 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2242 (ia64_dfa_new_cycle): Likewise.
2243 (ia64_get_insn_spec_ds): Likewise.
2244 (ia64_get_insn_checked_ds): Likewise.
2245 (ia64_speculate_insn): Likewise.
2246 (ia64_gen_spec_check): Likewise for params "insn", "label".
2247 (ia64_asm_unwind_emit): Likewise for param "insn".
2249 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2251 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2253 (m68k_sched_variable_issue): Likewise for param "insn".
2255 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2258 * config/microblaze/microblaze.c (microblaze_adjust_cost):
2259 Likewise for params "insn", "dep".
2261 * config/mips/mips.c (mips_adjust_cost): Likewise.
2262 (mips_variable_issue): Likewise for param "insn".
2263 (mips_final_postscan_insn): Likewise.
2265 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2266 for params "insn", "dep".
2268 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2270 (pa_adjust_priority): Likewise for param "insn".
2272 * config/picochip/picochip.c (picochip_sched_adjust_cost):
2273 Likewise for params "insn", "dep_insn".
2275 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2277 (rs6000_variable_issue): Likewise.
2278 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2279 (rs6000_debug_adjust_cost): Likewise.
2280 (rs6000_adjust_priority): Likewise for param "insn".
2281 (rs6000_use_sched_lookahead_guard): Likewise.
2282 (get_next_active_insn): Likewise for return type and both params.
2283 (redefine_groups): Likewise for params "prev_head_insn", "tail"
2284 and locals "insn", "next_insn".
2285 (pad_groups): Likewise.
2287 * config/s390/s390.c (s390_adjust_priority): Likewise for param
2289 (s390_cannot_copy_insn_p): Likewise.
2290 (s390_sched_variable_issue): Likewise for third param, eliminating
2292 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2293 default hook implementation from hook_constcharptr_const_rtx_null
2294 to hook_constcharptr_const_rtx_insn_null.
2296 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2297 from rtx to rtx_insn *.
2298 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2299 (sh_variable_issue): Likewise for param "insn".
2300 (sh_dfa_new_cycle): Likewise.
2301 (sh_mode_needed): Likewise.
2302 (sh_mode_after): Likewise.
2304 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2305 params "insn", "dep_insn".
2306 (hypersparc_adjust_cost): Likewise.
2307 (sparc_adjust_cost): Likewise.
2309 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2310 param, eliminated checked cast.
2311 (spu_sched_adjust_cost): Likewise for first and third params.
2313 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2314 params "insn" and "dep_insn" from rtx to rtx_insn *.
2316 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2318 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2320 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2321 (set_is_load_p): ...this, updating to work on a SET pattern rather
2323 (is_store_insn): Rename to...
2324 (set_is_store_p): ...this, updating to work on a SET pattern
2325 rather than an insn.
2326 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2327 top of function to where it is needed. Rewrite the bogus
2328 condition that checks for "insn" and "dep" being PARALLEL to
2329 instead use single_set, introducing locals "insn_set" and
2330 "dep_set". Given that we only ever returned "cost" for a non-pair
2331 of SETs, bail out early if we don't have a pair of SET.
2332 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2333 use the new locals "insn_set" and "dep_set", and update calls to
2334 is_load_insn and is_store_insn to be calls to set_is_load_p and
2337 2014-08-27 Guozhi Wei <carrot@google.com>
2340 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2341 amount before using it.
2343 2014-08-27 Richard Biener <rguenther@suse.de>
2345 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2346 get_maxval_strlen inside a more useful API.
2347 (gimple_fold_builtin_with_strlen): Remove and fold into ...
2348 (gimple_fold_builtin): ... caller.
2349 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2350 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2351 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2352 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2353 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2354 gimple_fold_builtin_sprintf): Adjust to compute maxval
2357 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
2360 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2362 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2363 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2364 Anna Tikhonova <anna.tikhonova@intel.com>
2365 Ilya Tocar <ilya.tocar@intel.com>
2366 Andrey Turetskiy <andrey.turetskiy@intel.com>
2367 Ilya Verbin <ilya.verbin@intel.com>
2368 Kirill Yukhin <kirill.yukhin@intel.com>
2369 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2371 * config/i386/sse.md
2372 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2373 Use `concat_tg_mode' attribute to determine asm register size.
2375 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2376 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2377 Anna Tikhonova <anna.tikhonova@intel.com>
2378 Ilya Tocar <ilya.tocar@intel.com>
2379 Andrey Turetskiy <andrey.turetskiy@intel.com>
2380 Ilya Verbin <ilya.verbin@intel.com>
2381 Kirill Yukhin <kirill.yukhin@intel.com>
2382 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2384 * config/i386/sse.md
2385 (define_mode_iterator VI48_AVX512VL): New.
2386 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2387 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2388 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2389 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2390 with VI1): Change mode iterator.
2391 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2392 with VI_ULOADSTORE_BW_AVX512VL): New.
2393 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2394 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2395 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2396 with VI1): Change mode iterator.
2397 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2398 with VI_ULOADSTORE_BW_AVX512VL): New.
2399 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2400 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2401 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2402 with VI1): Change mode iterator.
2403 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2404 with VI_ULOADSTORE_BW_AVX512VL): New.
2405 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2406 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2407 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2408 (define_insn "<avx512>_storedqu<mode>_mask" with
2409 VI48_AVX512VL): New.
2410 (define_insn "<avx512>_storedqu<mode>_mask" with
2411 VI12_AVX512VL): Ditto.
2413 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2414 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2415 Anna Tikhonova <anna.tikhonova@intel.com>
2416 Ilya Tocar <ilya.tocar@intel.com>
2417 Andrey Turetskiy <andrey.turetskiy@intel.com>
2418 Ilya Verbin <ilya.verbin@intel.com>
2419 Kirill Yukhin <kirill.yukhin@intel.com>
2420 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2422 * config/i386/sse.md
2423 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2424 (define_mode_iterator VI48_AVX512BW): New.
2425 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2426 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2427 with VI48_AVX2_48_AVX512F): New.
2428 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2429 with VI2_AVX512VL): Ditto.
2431 2014-08-27 Richard Biener <rguenther@suse.de>
2434 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2435 (fold_builtin_3): Do not fold strcat_chk here.
2436 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2438 (gimple_fold_builtin): Fold strcat_chk here.
2440 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
2442 * dwarf2out.h (dwarf2out_decl): Remove prototype.
2443 * dwarf2out.c (dwarf2out_decl): Make static.
2445 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
2447 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2449 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2451 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2452 from rtx to rtx_insn *.
2453 (cselib_lookup_from_insn): Likewise for final param.
2454 (cselib_subst_to_values_from_insn): Likewise.
2455 (cselib_add_permanent_equiv): Likewise.
2457 * cselib.c (cselib_current_insn): Likewise for this variable.
2458 (cselib_subst_to_values_from_insn): Likewise for param "insn".
2459 (cselib_lookup_from_insn): Likewise.
2460 (cselib_add_permanent_equiv): Likewise for param "insn" and local
2461 "save_cselib_current_insn".
2462 (cselib_process_insn): Replace use of NULL_RTX with NULL.
2464 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2465 from rtx to rtx_insn *.
2467 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2469 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2472 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2474 * df.h (df_dump_insn_problem_function): Strengthen first param of
2475 this callback from const_rtx to const rtx_insn *.
2476 (struct df_insn_info): Strengthen field "insn" from rtx to
2478 (DF_REF_INSN): Eliminate this function, reinstating the older
2480 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2481 (df_reg_defined): Likewise.
2482 (df_find_use): Likewise.
2483 (df_reg_used): Likewise.
2484 (df_dump_insn_top): Strengthen param 1 from const_rtx to
2486 (df_dump_insn_bottom): Likewise.
2487 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2488 (df_insn_debug_regno): Likewise.
2489 (debug_df_insn): Likewise.
2490 (df_rd_simulate_one_insn): Likewise for param 2.
2491 (df_word_lr_simulate_defs): Likewise for param 1.
2492 (df_word_lr_simulate_uses): Likewise.
2493 (df_md_simulate_one_insn): Likewise for param 2.
2494 (df_simulate_find_noclobber_defs): Likewise for param 1.
2495 (df_simulate_find_defs): Likewise.
2496 (df_simulate_defs): Likewise.
2497 (df_simulate_uses): Likewise.
2498 (df_simulate_one_insn_backwards): Likewise for param 2.
2499 (df_simulate_one_insn_forwards): Likewise.
2500 (df_uses_create): Likewise for param 2.
2501 (df_insn_create_insn_record): Likewise for param 1.
2502 (df_insn_delete): Likewise.
2503 (df_insn_rescan): Likewise.
2504 (df_insn_rescan_debug_internal): Likewise.
2505 (df_insn_change_bb): Likewise.
2506 (df_notes_rescan): Likewise.
2507 * rtl.h (remove_death): Likewise for param 2.
2508 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2510 * sched-int.h (reemit_notes): Strengthen param from rtx to
2512 * valtrack.h (propagate_for_debug): Likewise for param 1.
2514 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2515 local "tmp_rtx" from const_rtx to const rtx_insn *.
2516 * combine.c (remove_death): Strengthen param "insn" from rtx to
2518 (move_deaths): Likewise for local "where_dead".
2519 * cse.c (delete_trivially_dead_insns): Introduce local
2520 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2521 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2523 (df_reg_defined): Likewise.
2524 (df_find_use): Likewise.
2525 (df_reg_used): Likewise.
2526 (df_dump_insn_problem_data): Strengthen param "insn" from
2527 const_rtx to const rtx_insn *.
2528 (df_dump_insn_top): Likewise.
2529 (df_dump_insn_bottom): Likewise.
2530 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2531 (df_insn_debug_regno): Likewise.
2532 (debug_df_insn): Likewise.
2533 (DF_REF_INSN): Delete.
2534 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2535 from rtx to rtx_insn *.
2536 (df_chain_insn_top_dump): Strengthen param "insn" from
2537 const_rtx to const rtx_insn *.
2538 (df_chain_insn_bottom_dump): Likewise.
2539 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2541 (df_word_lr_simulate_uses): Likewise.
2542 (df_print_note): Likewise.
2543 (df_remove_dead_and_unused_notes): Likewise.
2544 (df_set_unused_notes_for_mw): Likewise.
2545 (df_set_dead_notes_for_mw): Likewise.
2546 (df_create_unused_note): Likewise.
2547 (df_simulate_find_defs): Likewise.
2548 (df_simulate_find_uses): Likewise.
2549 (df_simulate_find_noclobber_defs): Likewise.
2550 (df_simulate_defs): Likewise.
2551 (df_simulate_uses): Likewise.
2552 (df_simulate_one_insn_backwards): Likewise.
2553 (df_simulate_one_insn_forwards): Likewise.
2554 (df_md_simulate_one_insn): Likewise.
2555 * df-scan.c (df_uses_create): Likewise.
2556 (df_insn_create_insn_record): Likewise.
2557 (df_insn_delete): Likewise.
2558 (df_insn_rescan): Likewise.
2559 (df_insn_rescan_debug_internal): Likewise.
2560 (df_insn_change_bb): Likewise.
2561 (df_notes_rescan): Likewise.
2562 (df_refs_add_to_chains): Likewise.
2563 (df_insn_refs_verify): Likewise.
2564 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2565 when invoking df_insn_delete.
2566 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2567 (set_unique_reg_note): Add checked cast.
2568 * final.c (cleanup_subreg_operands): Likewise.
2569 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2570 "insn" from rtx to rtx_insn *.
2571 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2572 "last" from rtx to rtx_insn *.
2573 * ira-emit.c (change_regs_in_insn): New function.
2574 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2575 Invoke change_regs_in_insn rather than change_regs.
2576 * ira.c (update_equiv_regs): Strengthen locals "insn",
2577 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
2578 for_each_rtx_in_insn rather than for_each_rtx.
2579 * recog.c (confirm_change_group): Add checked casts.
2580 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2582 (peep2_fill_buffer): Add checked cast.
2583 * rtlanal.c (remove_note): Likewise.
2584 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2585 locals "next" "end" from rtx to rtx_insn *.
2587 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2589 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2591 (struct reg_use_data): Likewise for field "insn".
2592 (insn_cost): Likewise for param.
2593 (real_insn_for_shadow): Likewise for return type and param.
2594 (increase_insn_priority): Likewise for param 1.
2595 (debug_dependencies): Likewise for both params.
2597 * haifa-sched.c (insn_delay): Likewise for param "insn".
2598 (real_insn_for_shadow): Likewise for return type and param "insn".
2599 (update_insn_after_change): Likewise for param "insn".
2600 (recompute_todo_spec): Likewise for param "next" and locals "pro",
2602 (insn_cost): Likewise for param "insn".
2603 (increase_insn_priority): Likewise.
2604 (calculate_reg_deaths): Likewise.
2605 (setup_insn_reg_pressure_info): Likewise.
2606 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2607 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2608 (model_recompute): Likewise.
2609 (must_restore_pattern_p): Likewise for param "next".
2610 (model_excess_cost): Likewise for param "insn".
2611 (queue_remove): Likewise.
2612 (adjust_priority): Likewise for param "prev".
2613 (update_register_pressure): Likewise for param "insn".
2614 (setup_insn_max_reg_pressure): Likewise for local "insn".
2615 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2616 (model_add_to_schedule): Likewise.
2617 (model_reset_queue_indices): Likewise for local "insn".
2618 (unschedule_insns_until): Strengthen local "recompute_vec" from
2619 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
2620 "con" from rtx to rtx_insn *.
2621 (restore_last_backtrack_point): Likewise for both locals "x". Add
2623 (estimate_insn_tick): Likewise for param "insn".
2624 (commit_schedule): Likewise for params "prev_head", "tail" and
2626 (verify_shadows): Likewise for locals "i1", "i2".
2627 (dump_insn_stream): Likewise for params "head", "tail" and locals
2628 "next_tail", "insn".
2629 (schedule_block): Likewise for locals "insn", "x". Add a checked
2631 (fix_inter_tick): Likewise for params "head", "tail".
2632 (create_check_block_twin): Likewise for local "jump".
2633 (haifa_change_pattern): Likewise for param "insn".
2634 (haifa_speculate_insn): Likewise.
2635 (dump_new_block_header): Likewise for params "head", "tail".
2636 (fix_jump_move): Likewise for param "jump".
2637 (move_block_after_check): Likewise.
2638 (sched_init_insn_luid): Likewise for param "insn".
2639 (sched_init_luids): Likewise for local "insn".
2640 (insn_luid): Likewise for param "insn".
2641 (init_h_i_d): Likewise.
2642 (haifa_init_h_i_d): Likewise for local "insn".
2643 (haifa_init_insn): Likewise for param "insn".
2644 * sched-deps.c (add_dependence): Likewise for local "real_pro",
2646 (create_insn_reg_use): Likewise for param "insn".
2647 (setup_insn_reg_uses): Likewise. Add a checked cast.
2648 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2649 "tail" from rtx to rtx_insn *.
2650 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2651 "insn", "next_tail".
2653 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2655 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2656 from rtx to rtx_insn *.
2657 (model_add_to_schedule): Likewise for locals "start", "end",
2660 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2662 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2664 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
2665 "to" and locals "insn", "next", "copy". Remove now-redundant
2668 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2670 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2671 rtx_insn * and param 4 from rtx * to rtx_insn **.
2672 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2673 param 2 from rtx * to rtx_insn **.
2675 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2676 rtx_insn * and final param from rtx * to rtx_insn **.
2678 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2679 from rtx to rtx_insn *.
2680 (try_head_merge_bb): Likewise for both locals named "move_upto".
2681 * df-problems.c (can_move_insns_across): Likewise for params
2682 "from", "to", "across_from", "across_to" and locals "insn",
2683 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
2685 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
2686 from rtx to rtx_insn *.
2687 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
2688 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
2689 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
2691 (noce_try_abs): Likewise.
2692 (noce_get_condition): Likewise for param "jump". Strengthen param
2693 "earliest" from rtx * to rtx_insn **.
2694 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
2696 (find_cond_trap): Likewise.
2697 (dead_or_predicable): Likewise for local "earliest".
2698 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
2700 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
2701 and local "prev". Strengthen param "earliest" from rtx * to
2703 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
2704 Strengthen param "earliest" from rtx * to rtx_insn **.
2706 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2708 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
2709 "to" and local "insn" from rtx to rtx_insn *.
2711 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2713 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
2714 from rtx to rtx_insn *.
2715 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
2716 (code_motion_path_driver): Likewise for local "last_insn".
2717 (simplify_changed_insns): Likewise for local "insn".
2719 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2721 * rtl.h (push_to_sequence): Strengthen param from rtx to
2723 (push_to_sequence2): Likewise for both params.
2724 (delete_insns_since): Likewise for param.
2725 (reorder_insns_nobb): Likewise for all three params.
2726 (set_new_first_and_last_insn): Likewise for both params.
2728 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
2729 rtx_insn *. Remove now-redundant cast.
2730 (set_last_insn): Likewise.
2732 * builtins.c (expand_builtin_return): Strengthen local
2733 "call_fusage" from rtx to rtx_insn *.
2734 * cfgrtl.c (create_basic_block_structure): Likewise for local
2736 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
2737 "first", "last" and local "insn".
2738 (delete_insns_since): Likewise for param "from".
2739 (reorder_insns_nobb): Likewise for params "from", "to", "after"
2741 (push_to_sequence): Likewise for param "first" and local "last".
2742 (push_to_sequence2): Likewise for params "first" and "last".
2743 * lra.c (emit_add3_insn): Likewise for local "last".
2744 (lra_emit_add): Likewise.
2745 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
2747 (process_address_1): Likewise for locals "insn", last".
2748 * modulo-sched.c (ps_first_note): Likewise for return type.
2749 * optabs.c (expand_binop_directly): Likewise for param "last".
2751 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2753 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
2755 * emit-rtl.c (get_last_insn_anywhere): Likewise.
2757 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2759 * function.h (struct sequence_stack): Strengthen fields "first"
2760 and "last" from rtx to rtx_insn *.
2761 (struct emit_status): Likewise for fields "x_first_insn" and
2764 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
2765 (set_first_insn): Add checked cast.
2766 (get_last_insn): Remove now-redundant checked cast.
2767 (set_last_insn): Add checked cast.
2769 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
2770 "saved_first" and "saved_last" from rtx to rtx_insn *.
2772 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2774 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
2775 (unlink_insn_chain): Strengthen both params from rtx to
2778 * cfgrtl.c (cfg_layout_function_header): Likewise for this
2780 (unlink_insn_chain): Likewise for params "first" and "last".
2781 Remove now-redundant checked cast.
2782 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
2783 (fixup_reorder_chain): Strengthen local "insn" from rtx to
2785 * emit-rtl.c (link_insn_into_chain): Likewise for all three
2787 (add_insn): Likewise for param "insn" and local "prev".
2788 (add_insn_after_nobb): Likewise for both params and local "next".
2789 (add_insn_before_nobb): Likewise for both params and local "prev".
2790 (add_insn_after): Rename param "after" to "uncast_after",
2791 introducing local "after" with another checked cast.
2792 (add_insn_before): Rename params "insn" and "before", giving them
2793 "uncast_" prefixes, adding the old names back using checked casts.
2794 (emit_note_after): Likewise for param "after".
2795 (emit_note_before): Likewise for param "before".
2796 (emit_label): Add a checked cast.
2798 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2800 * cselib.h (cselib_record_sets_hook): Strengthen initial param
2801 "insn" from rtx to rtx_insn *.
2803 * cselib.c (cselib_record_sets_hook): Likewise.
2805 * var-tracking.c (add_with_sets): Likewise, renaming back from
2806 "uncast_insn" to "insn" and eliminating the checked cast from rtx
2809 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2811 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
2812 and "header_" from rtx to rtx_insn *.
2813 (struct basic_block_d): Likewise for field "head_" within "x"
2814 field of union basic_block_il_dependent.
2815 (BB_HEAD): Drop function...
2816 (SET_BB_HEAD): ...and this function in favor of...
2817 (BB_HEAD): ...reinstate macro.
2818 (BB_END): Drop function...
2819 (SET_BB_END): ...and this function in favor of...
2820 (BB_END): ...reinstate macro.
2821 (BB_HEADER): Drop function...
2822 (SET_BB_HEADER): ...and this function in favor of...
2823 (BB_HEADER): ...reinstate macro.
2825 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
2826 (fix_crossing_unconditional_branches): Likewise.
2827 * caller-save.c (save_call_clobbered_regs): Likewise.
2828 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
2829 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
2830 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2831 (merge_blocks_move_successor_nojumps): Likewise.
2832 (outgoing_edges_match): Update use of for_each_rtx to
2833 for_each_rtx_in_insn.
2834 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
2835 (expand_gimple_cond): Likewise.
2836 (expand_gimple_tailcall): Likewise.
2837 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
2839 (construct_exit_block): Drop use of SET_BB_END.
2840 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
2842 (delete_insn): Rename param "insn" to "uncast_insn", introducing
2843 a new local "insn" with a checked cast to rtx_insn *. Drop use of
2844 SET_BB_HEAD and SET_BB_END.
2845 (create_basic_block_structure): Drop use of SET_BB_HEAD and
2847 (rtl_delete_block): Drop use of SET_BB_HEAD.
2848 (rtl_split_block): Drop use of SET_BB_END.
2849 (emit_nop_for_unique_locus_between): Likewise.
2850 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
2851 (block_label): Drop use of SET_BB_HEAD.
2852 (fixup_abnormal_edges): Drop use of SET_BB_END.
2853 (record_effective_endpoints): Drop use of SET_BB_HEADER.
2854 (relink_block_chain): Likewise.
2855 (fixup_reorder_chain): Drop use of SET_BB_END.
2856 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
2857 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
2858 rtx_insn **. Drop use of SET_BB_HEADER.
2859 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
2861 (BB_HEAD): Delete this function.
2862 (SET_BB_HEAD): Likewise.
2864 (SET_BB_END): Likewise.
2865 (BB_HEADER): Likewise.
2866 (SET_BB_HEADER): Likewise.
2867 * emit-rtl.c (add_insn_after): Rename param "insn" to
2868 "uncast_insn", adding a new local "insn" and a checked cast to
2869 rtx_insn *. Drop use of SET_BB_END.
2870 (remove_insn): Strengthen locals "next" and "prev" from rtx to
2871 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
2872 (reorder_insns): Drop use of SET_BB_END.
2873 (emit_insn_after_1): Strengthen param "first" and locals "last",
2874 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
2875 (emit_pattern_after_noloc): Add checked cast.
2876 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
2877 (restore_other_notes): Likewise.
2878 (move_insn): Likewise.
2879 (sched_extend_bb): Likewise.
2880 (fix_jump_move): Likewise.
2881 * ifcvt.c (noce_process_if_block): Likewise.
2882 (dead_or_predicable): Likewise.
2883 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
2884 * reg-stack.c (change_stack): Drop use of SET_BB_END.
2885 * sel-sched-ir.c (sel_move_insn): Likewise.
2886 * sel-sched.c (move_nop_to_previous_block): Likewise.
2888 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
2890 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2892 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2894 * basic-block.h (create_basic_block_structure): Strengthen params
2895 1 "head" and 2 "end" from rtx to rtx_insn *.
2896 * cfgrtl.c (create_basic_block_structure): Likewise.
2897 (rtl_create_basic_block): Update casts from void * to rtx to
2898 rtx_insn *, so that we can pass them as rtx_insn * to
2899 create_basic_block_structure.
2900 * sel-sched-ir.c (sel_create_basic_block): Likewise.
2902 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2904 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
2906 (check_for_inc_dec): Strengthen param "insn" from rtx to
2909 * cselib.h (cselib_process_insn): Likewise.
2911 * cselib.c (cselib_record_sets): Likewise.
2912 (cselib_process_insn): Likewise.
2914 * dse.c (struct insn_info): Likewise for field "insn".
2915 (check_for_inc_dec_1): Likewise for local "insn".
2916 (check_for_inc_dec): Likewise for param "insn".
2917 (scan_insn): Likewise.
2918 (dse_step1): Likewise for local "insn".
2920 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
2921 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
2923 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2925 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
2926 from rtx to rtx_insn *.
2927 (DEP_PRO): Delete this function and...
2928 (SET_DEP_PRO): ...this function in favor of...
2929 (DEP_PRO): ...reinstate this macro.
2930 (DEP_CON): Delete this function and...
2931 (SET_DEP_CON): ...this function in favor of...
2932 (DEP_CON): ...reinstate this old macro.
2933 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
2934 (init_dep): Likewise.
2935 (set_priorities): Likewise for both params.
2936 (sd_copy_back_deps): Likewise for params 1 and 2.
2938 * haifa-sched.c (priority): Likewise for param "insn" and local
2940 (set_priorities): Likewise for params "head" and "tail" and local
2942 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
2944 (add_to_speculative_block): Add a checked cast.
2945 (create_check_block_twin): Drop use of SET_DEP_CON.
2946 (add_jump_dependencies): Strengthen params "insn" and "jump" from
2949 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
2950 Drop use of SET_DEP_PRO
2951 (init_dep): Strengthen params "pro" and "con" from rtx to
2953 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
2957 (SET_DEP_PRO): Delete.
2958 (SET_DEP_CON): Delete.
2960 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2962 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
2963 from rtx to rtx_insn *.
2964 (VINSN_INSN_RTX): Eliminate rvalue function and...
2965 (SET_VINSN_INSN): ...lvalue function in favor of...
2966 (VINSN_INSN_RTX): reinstate this old macro.
2968 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
2969 in favor of VINSN_INSN_RTX.
2970 (VINSN_INSN_RTX): Delete this function.
2971 (SET_VINSN_INSN_RTX): Likewise.
2973 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2975 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
2976 (BND_TO): Delete this function and...
2977 (SET_BND_TO): ...this functions in favor of...
2978 (BND_TO): ...reinstating this macro.
2979 (struct _fence): Strengthen field "executing_insns" from
2980 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
2981 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
2982 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
2983 and param "insn" from rtx to insn_t.
2984 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
2987 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
2989 (rtx_vec_t): Likewise.
2990 (struct sched_deps_info_def): Strengthen param of "start_insn"
2991 callback from rtx to rtx_insn *. Likewise for param "insn2" of
2992 "note_mem_dep" callback and first param of "note_dep" callback.
2994 * haifa-sched.c (add_to_speculative_block): Strengthen param
2995 "insn" from rtx to rtx_insn *.
2996 (clear_priorities): Likewise.
2997 (calc_priorities): Likewise for local "insn".
2999 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3000 Remove redundant checked cast.
3001 (haifa_note_mem_dep): Likewise for param "pending_insn".
3002 (haifa_note_dep): Likewise for param "elem".
3003 (note_mem_dep): Likewise for param "e".
3004 (sched_analyze_1): Add checked casts.
3005 (sched_analyze_2): Likewise.
3007 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3008 from rtx to rtx_insn *.
3009 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3010 from vec<rtx> * to vec<rtx_insn *> *.
3012 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3014 (flist_add): Strengthen param "executing_insns" from
3015 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3016 (advance_deps_context): Remove now-redundant checked cast.
3017 (init_fences): Replace uses of NULL_RTX with NULL.
3018 (merge_fences): Strengthen params "last_scheduled_insn" and
3019 "sched_next" from rtx to rtx_insn * and "executing_insns" from
3020 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3021 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3022 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3023 an instruction, rather than doing double-duty as a pattern.
3024 (return_nop_to_pool): Update for change of insn_t.
3025 (deps_init_id): Remove now-redundant checked cast.
3026 (struct sched_scan_info_def): Strengthen param of "init_insn"
3027 callback from rtx to insn_t.
3028 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3029 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3031 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3032 "end" from rtx to rtx_insn *.
3033 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3034 (rtx insn_rtx, bool force_unique_p)
3035 (BND_TO): Delete function.
3036 (SET_BND_TO): Delete function.
3038 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3040 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3041 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3043 (undo_transformations): Likewise for param "insn".
3044 (update_liveness_on_insn): Likewise.
3045 (compute_live_below_insn): Likewise for param "insn" and local
3047 (update_data_sets): Likewise for param "insn".
3048 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
3049 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
3050 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
3052 (move_cond_jump): Likewise for param "insn".
3053 (move_cond_jump): Drop use of SET_BND_TO.
3054 (compute_av_set_on_boundaries): Likewise.
3055 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
3056 (update_and_record_unavailable_insns): Strengthen local "bb_end"
3057 from rtx to rtx_insn *.
3058 (maybe_emit_renaming_copy): Likewise for param "insn".
3059 (maybe_emit_speculative_check): Likewise.
3060 (handle_emitting_transformations): Likewise.
3061 (remove_insn_from_stream): Likewise.
3062 (code_motion_process_successors): Strengthen local "succ" from rtx
3065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3067 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
3068 ilist_t, not _xlist_t;
3069 (ILIST_INSN): Define in terms of new union field "insn".
3070 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
3072 (struct _list_node): Add new field "insn" to the union, of type
3074 (ilist_add): Replace macro with an inline function, requiring an
3076 (ilist_remove): Define this macro directly in terms of
3077 _list_remove, rather than indirectly via _xlist_remove.
3078 (ilist_clear): Likewise, in terms of _list_clear rather than
3080 (ilist_is_in_p): Replace macro with an inline function, requiring
3082 (_list_iter_cond_insn): New function.
3083 (ilist_iter_remove): Define this macro directly in terms of
3084 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
3085 (ilist_iterator): Define directly in terms of _list_iterator
3086 rather than indirectly through _xlist_iterator.
3087 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
3088 than in terms of _FOR_EACH_X.
3089 (FOR_EACH_INSN_1): Likewise.
3091 2014-08-26 Joseph Myers <joseph@codesourcery.com>
3095 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
3096 DECL_HARD_REGISTER and return for invalid register specifications.
3097 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3098 DECL_HARD_REGISTER, call expand_one_error_var.
3099 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3100 CC_REGNUM with non-MODE_CC modes.
3101 (arm_regno_class): Return NO_REGS for PC_REGNUM.
3103 2014-08-26 Marek Polacek <polacek@redhat.com>
3106 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3108 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
3110 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3111 qi cost; add di cost.
3112 (cortexa57_addrcost_table): Likewise.
3114 2014-08-26 Marek Polacek <polacek@redhat.com>
3117 * expr.c (is_aligning_offset): Remove logical not.
3119 2014-08-26 Marek Polacek <polacek@redhat.com>
3122 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3123 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3125 2014-08-26 Richard Biener <rguenther@suse.de>
3127 PR tree-optimization/62175
3128 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3129 expand possibly trapping operations.
3131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3133 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3134 "insn" from rtx to rtx_insn *.
3135 (permute_load): Likewise for param "insn".
3136 (permute_store): Likewise.
3137 (handle_special_swappables): Likewise for local "insn".
3138 (replace_swap_with_copy): Likewise for locals "insn" and
3140 (rs6000_analyze_swaps): Likewise for local "insn".
3142 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3144 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3149 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3150 "note_list" from rtx to rtx_insn *.
3151 (BB_NOTE_LIST): Replace this function and...
3152 (SET_BB_NOTE_LIST): ...this function with...
3153 (BB_NOTE_LIST): ...the former macro implementation.
3155 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3156 local "from_start" from rtx to rtx_insn *. Strengthen param
3157 "to_endp" from rtx * to rtx_insn **.
3159 * haifa-sched.c (concat_note_lists): Likewise.
3160 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3162 (sel_restore_notes): Likewise.
3163 (move_bb_info): Likewise.
3164 (BB_NOTE_LIST): Delete this function.
3165 (SET_BB_NOTE_LIST): Delete this function.
3166 * sel-sched.c (create_block_for_bookkeeping): Eliminate
3167 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3171 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3172 from rtx * to rtx_insn **.
3173 (reorder2): Likewise.
3174 (dependencies_evaluation_hook): Strengthen params "head", "tail"
3175 from rtx to rtx_insn *.
3177 * doc/tm.texi: Update mechanically for above change to target.def.
3179 * sched-int.h (note_list): Strengthen this variable from rtx to
3181 (remove_notes): Likewise for both params.
3182 (restore_other_notes): Likewise for return type and first param.
3183 (struct ready_list): Strengthen field "vec" from rtx * to
3185 (struct dep_replacement): Strenghten field "insn" from rtx to
3187 (struct deps_desc): Likewise for fields "last_debug_insn",
3189 (struct haifa_sched_info): Likewise for callback field
3190 "can_schedule_ready_p"'s param, for first param of "new_ready"
3191 callback field, for both params of "rank" callback field, for
3192 first field of "print_insn" callback field (with a const), for
3193 both params of "contributes_to_priority" callback, for param
3194 of "insn_finishes_block_p" callback, for fields "prev_head",
3195 "next_tail", "head", "tail", for first param of "add_remove_insn"
3196 callback, for first param of "begin_schedule_ready" callback, for
3197 both params of "begin_move_insn" callback, and for second param
3198 of "advance_target_bb" callback.
3199 (add_dependence): Likewise for params 1 and 2.
3200 (sched_analyze): Likewise for params 2 and 3.
3201 (deps_analyze_insn): Likewise for param 2.
3202 (ready_element): Likewise for return type.
3203 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3204 (try_ready): Strenghten param from rtx to rtx_insn *.
3205 (sched_emit_insn): Likewise for return type.
3206 (record_delay_slot_pair): Likewise for params 1 and 2.
3207 (add_delay_dependencies): Likewise for param.
3208 (contributes_to_priority): Likewise for both params.
3209 (find_modifiable_mems): Likewise.
3211 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
3212 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
3213 "first_older_only_insn" from rtx to rtx_insn *.
3214 (arm_sched_reorder): Strengthen param "ready" from rtx * to
3217 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3218 "last_scheduled_iter0" from rtx to rtx_insn *.
3219 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3220 (c6x_sched_reorder_1): Strengthen param "ready" and locals
3221 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3222 "insn" from rtx to rtx_insn *.
3223 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3225 (c6x_sched_reorder2): Strengthen param "ready" and locals
3226 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3227 "insn" from rtx to rtx_insn *.
3228 (c6x_variable_issue): Add a checked cast when assigning from insn
3229 to ss.last_scheduled_iter0.
3230 (split_delayed_branch): Strengthen param "insn" and local "i1"
3231 from rtx to rtx_insn *.
3232 (split_delayed_nonbranch): Likewise.
3233 (undo_split_delayed_nonbranch): Likewise for local "insn".
3234 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3235 "entry_after", "end_packet", "head_insn", "tail_insn",
3236 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3237 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3238 to rtx_insn **. Remove now-redundant checked cast on last_insn,
3239 but add a checked cast on loop->start_label. Consolidate calls to
3240 avoid assigning result of gen_spkernel to "insn", now an
3243 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3244 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
3246 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3247 rtx_insn **. Strengthen locals "top", "next" from rtx to
3249 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3250 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3251 (add_parameter_dependencies): Strengthen params "call", "head" and
3252 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3253 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3254 (add_dependee_for_func_arg): Likewise for param "arg" and local
3256 (ix86_dependencies_evaluation_hook): Likewise for params "head",
3257 "tail" and locals "insn", "first_arg".
3259 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3260 for params "head", "tail" and locals "insn", "next", "next_tail".
3261 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3262 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3263 "insn", "lowest", "highest" from rtx to rtx_insn *.
3264 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3266 (ia64_sched_reorder2): Likewise.
3268 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3269 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
3270 from rtx * to rtx_insn **.
3271 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3273 (mep_print_sched_insn): Strengthen param "insn" from rtx to
3275 (mep_sched_reorder): Strengthen param "ready" from rtx * to
3276 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
3279 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3280 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
3282 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3283 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
3284 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3286 (vr4130_reorder): Likewise.
3287 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
3289 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3291 (mips_sched_reorder): Likewise.
3292 (mips_sched_reorder2): Likewise.
3294 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3296 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3297 Strengthen local "tmp" from rtx to rtx_insn *.
3298 (rs6000_sched_reorder2): Likewise.
3300 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3301 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3302 (s390_sched_reorder): Strengthen param "ready" from rtx * to
3303 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
3305 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3306 "tmp2" from rtx to rtx_insn *.
3307 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3308 Strengthen local "insn" from rtx to rtx_insn *.
3309 (ready_reorder): Strengthen param "ready" from rtx * to
3310 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3311 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
3312 (sh_reorder2): Likewise.
3314 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
3315 local "insn" from rtx to rtx_insn *.
3317 * haifa-sched.c (note_list): Strengthen this variable from rtx to
3319 (scheduled_insns): Strengthen this variable from vec<rtx> to
3321 (set_modulo_params): Likewise for locals "i1", "i2".
3322 (record_delay_slot_pair): Likewise for params "i1", "i2".
3323 (add_delay_dependencies): Likewise for param "insn".
3324 (cond_clobbered_p): Likewise.
3325 (recompute_todo_spec): Likewise for local "prev".
3326 (last_scheduled_insn): Likewise for this variable.
3327 (nonscheduled_insns_begin): Likewise.
3328 (model_set_excess_costs): Strengthen param "insns" from rtx * to
3330 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3332 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3333 Strengthen local "insn" from rtx to rtx_insn *.
3334 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3335 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3336 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3337 (ready_remove_first): Likewise for return type and local "t".
3338 (ready_element): Likewise for return type.
3339 (ready_remove): Likewise for return type and local "t".
3340 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3341 (check_clobbered_conditions): Strengthen local "x" from rtx to
3342 rtx_insn *, adding a checked cast.
3343 (schedule_insn): Likewise for param "insn".
3344 (remove_notes): Likewise for params "head", "tail" and locals
3345 "next_tail", "insn", "next".
3346 (struct haifa_saved_data): Likewise for fields
3347 "last_scheduled_insn", "nonscheduled_insns_begin".
3348 (save_backtrack_point): Update for change to field "vec" of
3350 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3352 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
3353 from rtx to rtx_insn *
3354 (resolve_dependencies): Strengthen param "insn" from rtx to
3356 (restore_other_notes): Likewise for return type, for param "head"
3357 and local "note_head".
3358 (undo_all_replacements): Likewise for local "insn".
3359 (first_nonscheduled_insn): Likewise for return type and local "insn".
3360 (queue_to_ready): Likewise for local "insn", adding checked casts.
3361 (early_queue_to_ready): Likewise for local "insn".
3362 (debug_ready_list_1): Strengthen local "p" from rtx * to
3364 (move_insn): Strengthen param "insn" and local "note" from rtx to
3366 (insn_finishes_cycle_p): Likewise for param "insn".
3367 (max_issue): Likewise for local "insn".
3368 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
3370 (commit_schedule): Strengthen param "prev_head" and local "insn"
3371 from rtx to rtx_insn *
3372 (prune_ready_list): Likewise for local "insn".
3373 (schedule_block): Likewise for locals "prev_head", "head", "tail",
3374 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3375 (set_priorities): Likewise for local "prev_head".
3376 (try_ready): Likewise for param "next".
3377 (fix_tick_ready): Likewise.
3378 (change_queue_index): Likewise.
3379 (sched_extend_ready_list): Update for change to field "vec" of
3381 (generate_recovery_code): Strengthen param "insn" from rtx to
3383 (begin_speculative_block): Likewise.
3384 (create_check_block_twin): Likewise for param "insn" and locals
3385 "label", "check", "twin". Introduce local "check_pat" to avoid
3386 "check" being used as a plain rtx before being used as an insn.
3387 (fix_recovery_deps): Add a checked cast to rtx_insn * when
3388 extracting elements from ready_list.
3389 (sched_remove_insn): Strengthen param "insn" from rtx to
3391 (sched_emit_insn): Likewise for return type.
3392 (ready_remove_first_dispatch): Likewise for return type and local
3395 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3397 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3400 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3401 from rtx to rtx_insn *.
3402 (add_dependence_list): Likewise for param "insn". Add a checked
3404 (add_dependence_list_and_free): Strengthen param "insn" from rtx
3405 to rtx_insn *. Strengthen param "list_p" from rtx * to
3407 (chain_to_prev_insn): Strengthen param "insn" and locals
3408 "prec_nonnote", "i" from rtx to rtx_insn *.
3409 (flush_pending_lists): Likewise for param "insn".
3410 (cur_insn): Likewise for this variable.
3411 (haifa_start_insn): Add a checked cast.
3412 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3413 (sched_analyze_reg): Likewise for param "insn".
3414 (sched_analyze_1): Likewise.
3415 (sched_analyze_2): Likewise. Add checked casts.
3416 (sched_analyze_insn): Likewise. Also for local "prev".
3417 (deps_analyze_insn): Likewise for param "insn".
3418 (sched_analyze): Likewise for params "head", "tail" and local "insn".
3419 (add_dependence_1): Likewise for params "insn", "elem".
3420 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3421 (parse_add_or_inc): Likewise for param "insn".
3422 (find_inc): Likewise for local "inc_cand".
3423 (find_modifiable_mems): Likewise for params "head", "tail" and
3424 locals "insn", "next_tail".
3426 * sched-ebb.c (init_ready_list): Likewise for local "insn".
3427 (begin_schedule_ready): Likewise for param "insn".
3428 (begin_move_insn): Likewise for params "insn" and "last".
3429 (ebb_print_insn): Strengthen param "insn" from const_rtx to
3431 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3432 (ebb_contributes_to_priority): Likewise for params "next", "insn".
3433 (ebb_add_remove_insn): Likewise for param "insn".
3434 (advance_target_bb): Likewise.
3436 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3438 (check_live): Likewise for param "insn".
3439 (init_ready_list): Likewise for local "insn".
3440 (can_schedule_ready_p): Likewise for param "insn".
3441 (begin_schedule_ready): Likewise.
3442 (new_ready): Likewise for param "next".
3443 (rgn_print_insn): Likewise for param "insn".
3444 (rgn_rank): Likewise for params "insn1", "insn2".
3445 (contributes_to_priority): Likewise for params "next", "insn".
3446 (rgn_insn_finishes_block_p): Likewise for param "insn".
3447 (add_branch_dependences): Likewise for params "head", "tail" and
3448 locals "insn", "last".
3449 (rgn_add_remove_insn): Likewise for param "insn".
3450 (advance_target_bb): Likewise.
3452 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3453 const_rtx to const rtx_insn *.
3455 * sel-sched-dump.h (sel_print_insn): Likewise.
3457 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3458 (deps_init_id): Likewise.
3460 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3461 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3464 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3466 * output.h (final_start_function): Strengthen param 1 from rtx to
3469 * final.c (final_start_function): Likewise, renaming back from
3470 "uncast_first" to "first", and dropping the checked cast from rtx
3473 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3475 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3476 * final.c (final): Likewise. Rename param back from
3477 "uncast_first" to "first" and eliminate the checked cast from rtx
3480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3482 * output.h (shorten_branches): Strengthen param from rtx to
3485 * final.c (shorten_branches): Likewise, renaming param back from
3486 "uncast_first" to "first", and dropping the checked cast from rtx
3489 * genattr.c (gen_attr): Likewise when writing out the prototype of
3492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3494 * sched-int.h (struct haifa_sched_info): Strengthen fields
3495 "prev_head" and "next_tail" from rtx to rtx_insn *.
3497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3499 * rtl.h (rtx_jump_table_data::get_labels): New method.
3500 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3501 with use of the new rtx_jump_table_data::get_labels method.
3502 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3503 to rtx_jump_table_data *. Simplify by using get_labels method.
3504 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3505 a dyn_cast, introducing local "table", using it to replace
3506 label-lookup logic with a get_labels method call.
3507 (patch_jump_insn): Simplify using get_labels method.
3508 * dwarf2cfi.c (create_trace_edges): Likewise.
3509 * rtlanal.c (label_is_jump_target_p): Likewise.
3511 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3513 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3516 * emit-rtl.c (unshare_all_rtl_1): Likewise.
3517 (unshare_all_rtl_again): Likewise, also for local "p".
3519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3521 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3523 * cfgrtl.c (delete_insn_and_edges): Likewise.
3525 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3527 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3528 from rtx to rtx_insn *.
3530 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3534 * function.c (thread_prologue_and_epilogue_insns): Likewise for
3535 locals "returnjump", "epilogue_end", "insn", "next".
3537 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3538 "returnjump" from rtx * to rtx_insn **.
3539 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3541 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3543 * basic-block.h (struct edge_def). Strengthen "r" within
3544 union edge_def_insns from rtx to rtx_insn *.
3546 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3547 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
3549 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3550 from rtx to rtx_insn *.
3551 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3553 * postreload-gcse.c (reg_killed_on_edge): Likewise.
3554 (reg_used_on_edge): Likewise.
3555 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3556 (gt_pch_nx): New overload for rtx_insn *&.
3557 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3558 from rtx to rtx_insn *.
3560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3562 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3563 from rtx to rtx_insn *.
3564 (BB_FOOTER): Replace function with access macro.
3565 (SET_BB_FOOTER): Delete.
3567 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3569 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3570 (emit_barrier_after_bb): Likewise.
3571 (record_effective_endpoints): Likewise.
3572 (relink_block_chain): Likewise.
3573 (fixup_fallthru_exit_predecessor): Likewise.
3574 (cfg_layout_duplicate_bb): Likewise.
3575 (cfg_layout_split_block): Likewise.
3576 (cfg_layout_delete_block): Likewise.
3577 (cfg_layout_merge_blocks): Likewise.
3578 (BB_FOOTER): Delete function.
3579 (SET_BB_FOOTER): Delete function.
3580 * combine.c (update_cfg_for_uncondjump): Replace uses of
3581 SET_BB_FOOTER with BB_FOOTER.
3583 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3585 * except.h (struct eh_landing_pad_d): Strengthen field
3586 "landing_pad" from rtx to rtx_code_label *.
3588 * except.c (sjlj_emit_dispatch_table): Likewise for param
3590 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3594 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3595 first param from rtx to rtx_insn *.
3596 * config/xtensa/xtensa.c (struct machine_function): Likewise for
3597 field "set_frame_ptr_insn".
3598 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3599 "csend" from rtx to rtx_code_label *.
3600 (xtensa_expand_atomic): Likewise for local "csloop".
3601 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3603 (xtensa_call_tls_desc): Likewise for return type and locals
3604 "call_insn", "insns".
3605 (xtensa_legitimize_tls_address): Likewise for local "insns".
3606 (xtensa_expand_prologue): Likewise for locals "insn", "first".
3608 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3610 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3611 first param from rtx to rtx_insn *.
3612 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3617 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3618 Strengthen param 1 from rtx to rtx_insn *.
3619 (tilepro_output_cbranch): Likewise.
3620 (tilepro_adjust_insn_length): Likewise.
3621 (tilepro_final_prescan_insn): Likewise for sole param.
3623 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3624 Likewise for local "last".
3625 (cbranch_predicted_p): Likewise for param "insn".
3626 (tilepro_output_simple_cbranch_with_opcode): Likewise.
3627 (tilepro_output_cbranch_with_opcode): Likewise.
3628 (tilepro_output_cbranch): Likewise.
3629 (frame_emit_load): Likewise for return type and locals "seq",
3631 (emit_sp_adjust): Likewise for return type and local "insn".
3632 (tilepro_expand_epilogue): Likewise for locals "last_insn",
3634 (tilepro_adjust_insn_length): Likewise for param "insn".
3635 (next_insn_to_bundle): Likewise for return type and params
3637 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3638 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3640 (match_addli_pcrel): Likewise for param "insn".
3641 (replace_addli_pcrel): Likewise.
3642 (match_auli_pcrel): Likewise.
3643 (replace_auli_pcrel): Likewise.
3644 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3646 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3647 "queue", "next_queue", "prev".
3648 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3649 (tilepro_final_prescan_insn): Likewise for param "insn".
3651 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3653 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3654 Strengthen param 1 from rtx to rtx_insn *.
3655 (tilegx_output_cbranch): Likewise.
3656 (tilegx_adjust_insn_length): Likewise.
3657 (tilegx_final_prescan_insn): Likewise for sole param.
3659 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3661 (cbranch_predicted_p): Likewise for param "insn".
3662 (tilegx_output_simple_cbranch_with_opcode): Likewise.
3663 (tilegx_output_cbranch_with_opcode): Likewise.
3664 (tilegx_output_cbranch): Likewise.
3665 (frame_emit_load): Likewise for return type.
3666 (set_frame_related_p): Likewise for locals "seq", "insn".
3667 (emit_sp_adjust): Likewise for return type, and for local "insn".
3668 Introduce local "pat" for use in place of "insn" where the latter
3669 isn't an instruction.
3670 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3671 from rtx to rtx_insn *.
3672 (tilegx_adjust_insn_length): Likewise for param "insn".
3673 (next_insn_to_bundle): Likewise for return type and params "r" and
3675 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3677 (replace_insns): Likewise for params "old_insn", "new_insns".
3678 (replace_mov_pcrel_step1): Likewise for param "insn" and local
3680 (replace_mov_pcrel_step2): Likewise.
3681 (replace_mov_pcrel_step3): Likewise.
3682 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3684 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3685 "queue", "next_queue", "prev".
3686 (tilegx_output_mi_thunk): Likewise for local "insn".
3687 (tilegx_final_prescan_insn): Likewise for param "insn".
3689 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3691 * config/spu/spu.c (frame_emit_store): Strengthen return type from
3693 (frame_emit_load): Likewise.
3694 (frame_emit_add_imm): Likewise, also for local "insn".
3695 (spu_expand_prologue): Likewise for local "insn".
3696 (struct spu_bb_info): Likewise for field "prop_jump".
3697 (emit_nop_for_insn): Likewise for param "insn" and local
3699 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
3701 (spu_emit_branch_hint): Likewise for params "before", "branch" and
3702 locals "hint", "insn".
3703 (get_branch_target): Likewise for param "branch".
3704 (insn_clobbers_hbr): Likewise for param "insn".
3705 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
3706 locals "insn", "before_4", "before_16".
3707 (insert_hbrp): Likewise for local "insn".
3708 (spu_machine_dependent_reorg): Likewise for locals "branch",
3709 "insn", "next", "bbend".
3710 (uses_ls_unit): Likewise for param "insn".
3711 (get_pipe): Likewise.
3712 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
3713 introducing a checked cast.
3714 (spu_sched_adjust_cost): Likewise for params "insn" and
3716 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
3717 (spu_sms_res_mii): Likewise.
3719 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3721 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
3722 from rtx to rtx_insn *.
3723 (output_cbranch): Likewise for param 6.
3724 (output_return): Likewise for param 1.
3725 (output_sibcall): Likewise.
3726 (output_v8plus_shift): Likewise.
3727 (output_v8plus_mult): Likewise.
3728 (output_v9branch): Likewise for param 7.
3729 (output_cbcond): Likewise for param 3.
3731 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
3733 (sparc_legitimize_pic_address): Likewise.
3734 (sparc_emit_call_insn): Likewise.
3735 (emit_save_or_restore_regs): Likewise.
3736 (emit_window_save): Likewise for return type and local "insn".
3737 (sparc_expand_prologue): Likewise for local "insn".
3738 (sparc_flat_expand_prologue): Likewise.
3739 (output_return): Likewise for param "insn".
3740 (output_sibcall): Likewise for param "insn" and local "delay".
3741 (output_ubranch): Likewise for param "insn".
3742 (output_cbranch): Likewise.
3743 (output_cbcond): Likewise.
3744 (output_v9branch): Likewise.
3745 (output_v8plus_shift): Likewise.
3746 (sparc_output_mi_thunk): Likewise for local "insn".
3747 (get_some_local_dynamic_name): Likewise.
3748 (output_v8plus_mult): Likewise for param "insn".
3750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3752 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
3753 from rtx to rtx_insn *.
3754 (output_branchy_insn): Likewise for param 3.
3755 (output_far_jump): Likewise for param 1.
3756 (final_prescan_insn): Likewise.
3757 (sh_insn_length_adjustment): Likewise for sole param.
3759 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
3760 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
3762 (sh_emit_compare_and_set): Likewise for local "lab".
3763 (output_far_jump): Strengthen param "insn" and local "prev" from
3765 (output_branchy_insn): Likewise for param "insn" and local
3767 (output_ieee_ccmpeq): Likewise for param "insn".
3768 (struct label_ref_list_d): Strengthen field "label" from rtx to
3770 (pool_node): Likewise.
3771 (pool_window_label): Likewise for this global.
3772 (add_constant): Likewise for return type and locals "lab", "new_rtx".
3773 (dump_table): Strengthen params "start", "barrier" and local
3774 "scan" from rtx to rtx_insn *.
3775 (broken_move): Likewise for param "insn".
3776 (untangle_mova): Likewise for params "first_mova" and "new_mova".
3777 Strengthen param "first_mova" from rtx * to rtx_insn **.
3778 (mova_p): Likewise for param "insn".
3779 (fixup_mova): Likewise for param "mova".
3780 (find_barrier): Likewise for return type, params "mova" and
3781 "from", and locals "barrier_before_mova", "found_barrier",
3782 "good_barrier", "orig", "last_symoff", "next". Strengthen local
3783 "label" from rtx to rtx_code_label *.
3784 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
3786 (sh_reorg): Likewise for locals "link", "scan", "barrier".
3787 (split_branches): Likewise for param "first" and local "insn".
3788 (final_prescan_insn): Likewise for param "insn".
3789 (sequence_insn_p): Likewise for locals "prev", "next".
3790 (sh_insn_length_adjustment): Likewise for param "insn".
3791 (sh_can_redirect_branch): Likewise for local "insn".
3792 (find_r0_life_regions): Likewise for locals "end", "insn".
3793 (sh_output_mi_thunk): Likewise for local "insns".
3795 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3797 * config/score/score.c (score_output_mi_thunk): Strengthen local
3798 "insn" from rtx to rtx_insn *.
3799 (score_prologue): Likewise.
3801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3803 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
3804 1 from rtx to rtx_insn *.
3805 (s390_emit_jump): Likewise for return type.
3806 (s390_emit_call): Likewise.
3807 (s390_load_got): Likewise.
3809 * config/s390/s390.c (last_scheduled_insn): Likewise for this
3811 (s390_match_ccmode): Likewise for param "insn".
3812 (s390_emit_jump): Likewise for return type.
3813 (s390_split_branches): Likewise for local "label".
3814 (struct constant): Strengthen field "label" from rtx to
3816 (struct constant_pool): Likewise for field "label". Strengthen
3817 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
3819 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
3821 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
3822 (s390_end_pool): Likewise.
3823 (s390_dump_pool): Likewise for local "insn".
3824 (s390_mainpool_start): Likewise.
3825 (s390_chunkify_start): Likewise.
3826 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
3827 with insns. Strengthen locals "label", "jump", "barrier", "next",
3828 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
3829 (s390_chunkify_finish): Strengthen local "insn" from rtx to
3831 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
3832 "jump", "label", "next_insn".
3833 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
3834 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
3836 (s390_load_got): Likewise for return type and local "insns".
3837 (s390_save_gprs_to_fprs): Likewise for local "insn".
3838 (s390_restore_gprs_from_fprs): Likewise.
3839 (pass_s390_early_mach::execute): Likewise.
3840 (s390_emit_prologue): Likewise for local "insns".
3841 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
3843 (s390_emit_call): Strengthen return type and local "insn" from
3845 (s390_emit_tpf_eh_return): Likewise for local "insn".
3846 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
3847 "next_insn", introducing locals "s_pat", "rpat" to allow this.
3848 (s390_fix_long_loop_prediction): Likewise for param "insn" and
3850 (s390_non_addr_reg_read_p): Likewise for param "insn".
3851 (find_cond_jump): Likewise for return type and param "insn".
3852 (s390_swap_cmp): Likewise for param "insn".
3853 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
3854 "prev_insn", "next_insn".
3855 (s390_reorg): Likewise for locals "insn", "target".
3856 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
3857 (s390_sched_variable_issue): For now, rename param "insn" to
3858 "uncast_insn", introducing a checked cast.
3859 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
3861 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
3862 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
3864 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3866 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
3867 param from rtx to rtx_insn *.
3868 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
3870 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3872 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
3873 4 from rtx to rtx_insn *.
3874 (rs6000_final_prescan_insn): Likewise for first param.
3875 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
3877 (rs6000_get_some_local_dynamic_name): Likewise.
3878 (output_cbranch): Likewise for param "insn".
3879 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
3880 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
3881 (rs6000_emit_allocate_stack): Likewise for local "insn".
3882 (load_cr_save): Likewise.
3883 (restore_saved_cr): Likewise.
3884 (restore_saved_lr): Likewise.
3885 (emit_cfa_restores): Likewise.
3886 (rs6000_output_function_epilogue): Likewise for locals "insn" and
3887 "deleted_debug_label".
3888 (rs6000_output_mi_thunk): Likewise for local "insn".
3889 (rs6000_final_prescan_insn): Likewise for param "insn".
3891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3893 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
3894 Strengthen param "insn" from rtx to rtx_insn *.
3895 * config/picochip/picochip.c (picochip_current_prescan_insn):
3896 Likewise for this variable.
3897 (picochip_final_prescan_insn): Likewise for param "insn".
3899 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3901 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
3902 from rtx to rtx_insn *.
3903 (pa_output_indirect_call): Likewise.
3904 (pa_adjust_insn_length): Likewise.
3905 (pa_attr_length_millicode_call): Likewise.
3906 (pa_attr_length_call): Likewise.
3907 (pa_attr_length_indirect_call): Likewise.
3909 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
3911 (pa_attr_length_millicode_call): Likewise.
3912 (pa_attr_length_call): Likewise.
3913 (pa_output_call): Likewise.
3914 (pa_attr_length_indirect_call): Likewise.
3915 (pa_output_indirect_call): Likewise.
3917 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3919 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
3920 Strengthen first param from rtx to rtx_insn *.
3921 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
3924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3926 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
3927 type from rtx to rtx_insn *.
3928 (mips_expand_call): Likewise.
3929 (mips_adjust_insn_length): Likewise for first param.
3930 (mips_output_conditional_branch): Likewise.
3931 (mips_output_order_conditional_branch): Likewise.
3932 (mips_final_prescan_insn): Likewise.
3934 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
3935 rtx_insn * for the SEQUENCE case.
3936 (SEQ_END): Likewise.
3937 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
3938 (mips_emit_call_insn): Likewise, also for local "insn".
3939 (mips16_gp_pseudo_reg): Likewise for local "scan".
3940 (mips16_build_call_stub): Likewise for return type and for local
3941 "insn". Introduce a new local "pattern" so that "insn" can indeed
3943 (mips_expand_call): Strengthen return type and local "insn" from
3945 (mips_block_move_loop): Strengthen local "label" from rtx to
3947 (mips_expand_synci_loop): Likewise for locals "label",
3949 (mips_set_frame_expr): Strengthen local "insn" from rtx to
3951 (mips16e_collect_argument_saves): Likewise for locals "insn",
3953 (mips_find_gp_ref): Likewise for param of callback for "pred"
3954 param, and for local "insn".
3955 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
3956 (mips_insn_has_flexible_gp_ref_p): Likewise.
3957 (mips_epilogue_emit_cfa_restores): Likewise for return type and
3959 (mips_epilogue_set_cfa): Likewise for local "insn".
3960 (mips_expand_epilogue): Likewise.
3961 (mips_adjust_insn_length): Likewise for param "insn".
3962 (mips_output_conditional_branch): Likewise.
3963 (mips_output_order_conditional_branch): Likewise.
3964 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
3965 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
3966 "falu2_turn_enabled_insn".
3967 (mips_builtin_branch_and_move): Strengthen locals "true_label",
3968 "done_label" from rtx to rtx_code_label *.
3969 (struct mips16_constant): Likewise for field "label".
3970 (mips16_add_constant): Likewise for return type.
3971 (mips16_emit_constants_1): Strengthen return type and param "insn"
3972 from rtx to rtx_insn *.
3973 (mips16_emit_constants): Likewise for param "insn".
3974 (mips16_insn_length): Likewise.
3975 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
3976 to rtx_code_label *.
3977 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
3978 from rtx to rtx_insn *.
3979 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
3980 "jump". Strengthen local "label" from rtx to rtx_code_label *.
3981 (r10k_simplify_address): Strengthen param "insn" and local
3982 "def_insn" from rtx to rtx_insn *.
3983 (r10k_safe_address_p): Strengthen param "insn" from rtx to
3985 (r10k_needs_protection_p_1): Update target type of cast of data
3986 from to rtx to rtx_insn *.
3987 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
3988 rtx * to rtx_insn **.
3989 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
3991 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
3992 (mips_call_expr_from_insn): Likewise for param "insn".
3993 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
3994 (mips_find_pic_call_symbol): Likewise for param "insn".
3995 (mips_annotate_pic_calls): Likewise for local "insn".
3996 (mips_sim_insn): Likewise for this variable.
3997 (struct mips_sim): Likewise for field "insn" within elements of
3999 (mips_sim_wait_reg): Likewise for param "insn".
4000 (mips_sim_wait_regs): Likewise.
4001 (mips_sim_wait_units): Likewise.
4002 (mips_sim_wait_insn): Likewise.
4003 (mips_sim_issue_insn): Likewise.
4004 (mips_sim_finish_insn): Likewise.
4005 (mips_seq_time): Likewise for param "seq" and local "insn".
4006 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4007 locals "first", "second".
4008 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4009 "last", "last2", "next".
4010 (mips_avoid_hazard): Likewise for params "after", "insn".
4011 (mips_reorg_process_insns): Likewise for locals "insn",
4012 "last_insn", "subinsn", "next_insn".
4013 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4014 (mips16_split_long_branches): Likewise for locals "insn" "jump",
4016 (mips_output_mi_thunk): Likewise for local "insn".
4017 (mips_final_prescan_insn): Likewise for param "insn".
4019 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4021 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4022 Strengthen return type and local "insns" from rtx to rtx_insn *.
4023 (microblaze_legitimize_tls_address): Likewise for local "insns".
4024 (microblaze_block_move_loop): Strengthen local "label" from rtx
4025 to rtx_code_label *.
4026 (microblaze_expand_prologue): Strengthen two locals named "insn"
4027 from rtx to rtx_insn *.
4028 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4029 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4030 "insn". Strengthen locals "div_label", "div_end_label" from rtx
4031 to rtx_code_label *.
4033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4035 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4036 param from rtx to rtx_insn *.
4037 (mep_reuse_lo): Likewise for third param.
4038 (mep_use_post_modify_p): Likewise for first param.
4039 (mep_core_address_length): Likewise.
4040 (mep_cop_address_length): Likewise.
4041 (mep_final_prescan_insn): Likewise.
4042 (mep_store_data_bypass_p): Likewise for both params.
4043 (mep_mul_hilo_bypass_p): Likewise.
4044 (mep_ipipe_ldc_p): Likewise for param.
4046 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
4047 (mep_rewrite_mult): Likewise.
4048 (mep_rewrite_mulsi3): Likewise.
4049 (mep_rewrite_maddsi3): Likewise.
4050 (mep_reuse_lo_p_1): Likewise.
4051 (mep_reuse_lo_p): Likewise.
4052 (mep_frame_expr): Likewise.
4053 (mep_make_parallel): Likewise for both params.
4054 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
4056 (mep_use_post_modify_p): Likewise for param "insn".
4057 (mep_core_address_length): Likewise.
4058 (mep_cop_address_length): Likewise.
4059 (mep_reg_set_in_function): Likewise for local "insn".
4060 (mep_asm_without_operands_p): Likewise.
4061 (F): Likewise for return type and param "x".
4062 (add_constant): Likewise for local "insn".
4063 (maybe_dead_move): Likewise for return type and local "insn".
4064 (mep_expand_prologue): Likewise for local "insn".
4065 (mep_final_prescan_insn): Likewise for param "insn".
4066 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
4067 "next", "follow", "x".
4068 (mep_insert_repeat_label_last): Likewise for return type, param
4069 "last_insn", and locals "next", "prev". Strengthen param "label"
4070 from rtx to rtx_code_label *.
4071 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
4073 (struct mep_doloop_end): Likewise for fields "insn" and
4075 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
4076 Strengthen local "repeat_label" from rtx to rtx_code_label *.
4077 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
4079 (mep_invert_branch): Likewise for params "insn" and "after".
4080 (mep_reorg_erepeat): Likewise for param "insns" and locals
4081 "insn", "prev", "new_last", "barrier", "user". Strengthen local
4082 "l" from rtx to rtx_code_label *.
4083 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
4084 from rtx to rtx_insn *.
4085 (mep_reorg_addcombine): Likewise for param "insns" and locals
4087 (add_sp_insn_p): Likewise for param "insn".
4088 (mep_reorg_noframe): Likewise for param "insns" and locals
4089 "start_frame_insn", "end_frame_insn", "next".
4090 (mep_reorg): Likewise for local "insns".
4091 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
4093 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
4094 (mep_mul_hilo_bypass_p): Likewise.
4095 (mep_ipipe_ldc_p): Likewise for param "insn".
4096 (mep_make_bundle): Likewise for return type, param "cop" and local
4097 "insn", splitting out the latter into a new local "seq" for when it
4098 is a SEQUENCE rather than an insn.
4099 (core_insn_p): Likewise for param "insn".
4100 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4101 "last", "first", "note", "prev", "core_insn".
4103 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4105 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4107 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4108 (m68k_final_prescan_insn): Likewise for first param.
4110 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4111 (m68k_set_frame_related): Likewise for param "insn".
4112 (output_btst): Likewise for param "insn".
4113 (m68k_final_prescan_insn): Likewise.
4114 (m68k_move_to_reg): Likewise for local "insn".
4115 (m68k_call_tls_get_addr): Likewise for local "insns".
4116 (m68k_call_m68k_read_tp): Likewise.
4117 (strict_low_part_peephole_ok): Likewise for param "first_insn".
4118 (m68k_output_mi_thunk): Likewise for local "insn".
4120 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4122 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4123 first param from rtx to rtx_insn *.
4124 (iq2000_adjust_insn_length): Likewise.
4125 (iq2000_output_conditional_branch): Likewise.
4126 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4127 "insn" and local "nop_insn".
4128 (iq2000_annotate_frame_insn): Likewise for param "insn".
4129 (iq2000_expand_prologue): Likewise for both locals "insn".
4130 (iq2000_adjust_insn_length): Likewise for param "insn".
4131 (iq2000_output_conditional_branch): Likewise.
4133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4135 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4136 "insns" from rtx to rtx_insn *.
4137 (ia64_emit_cond_move): Likewise for locals "insn", "first".
4138 (struct spill_fill_data): Likewise for field "init_after" and for
4139 elements of array field "prev_insn".
4140 (spill_restore_mem): Likewise for locals "insn", "first".
4141 (do_spill): Likewise for local "insn".
4142 (do_restore): Likewise.
4143 (ia64_expand_prologue): Likewise.
4144 (ia64_expand_epilogue): Likewise.
4145 (emit_insn_group_barriers): Likewise for locals "insn",
4147 (emit_all_insn_group_barriers): Likewise for locals "insn",
4149 (dfa_stop_insn): Likewise for this global.
4150 (dfa_pre_cycle_insn): Likewise.
4151 (ia64_nop): Likewise.
4152 (final_emit_insn_group_barriers): Likewise for locals "insn",
4154 (emit_predicate_relation_info): Likewise for locals "head", "n",
4156 (ia64_reorg): Likewise for local "insn".
4157 (ia64_output_mi_thunk): Likewise.
4158 (expand_vec_perm_interleave_2): Likewise for local "seq".
4160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4162 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4163 param 1 "insn" from rtx to rtx_insn *.
4164 (ix86_use_lea_for_mov): Likewise.
4165 (ix86_avoid_lea_for_addr): Likewise.
4166 (ix86_split_lea_for_addr): Likewise.
4167 (ix86_lea_for_add_ok): Likewise.
4168 (ix86_output_call_insn): Likewise.
4170 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4171 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4172 (ix86_output_function_epilogue): Likewise for locals "insn",
4173 "deleted_debug_label".
4174 (legitimize_tls_address): Likewise for local "insn".
4175 (get_some_local_dynamic_name): Likewise.
4176 (increase_distance): Likewise for params "prev", "next".
4177 (distance_non_agu_define_in_bb): Likewise for params "insn",
4178 "start" and locals "prev", "next".
4179 (distance_non_agu_define): Likewise for param "insn".
4180 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4181 locals "next", "prev".
4182 (distance_agu_use): Likewise for param "insn".
4183 (ix86_lea_outperforms): Likewise.
4184 (ix86_ok_to_clobber_flags): Likewise.
4185 (ix86_avoid_lea_for_add): Likewise.
4186 (ix86_use_lea_for_mov): Likewise.
4187 (ix86_avoid_lea_for_addr): Likewise.
4188 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4189 (ix86_split_lea_for_addr): Likewise for param "insn".
4190 (ix86_lea_for_add_ok): Likewise for param "insn".
4191 (ix86_expand_carry_flag_compare): Likewise for local
4193 (ix86_expand_int_movcc): Likewise.
4194 (ix86_output_call_insn): Likewise for param "insn".
4195 (ix86_output_call_insn): Likewise for local "i".
4196 (x86_output_mi_thunk): Introduce local "insn", using it in place
4197 of "tmp" when dealing with insns.
4198 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4200 (ix86_pad_returns): Likewise for locals "ret", "prev".
4201 (ix86_count_insn_bb): Likewise for local "insn".
4202 (ix86_pad_short_function): Likewise for locals "ret", "insn".
4203 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4204 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4205 (expand_vec_perm_interleave2): Likewise for local "seq".
4206 (expand_vec_perm_vperm2f128_vblend): Likewise.
4207 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
4208 call to for_each_rtx with for_each_rtx_in_insn.
4210 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4212 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4213 "label" from rtx to rtx_code_label *.
4214 (ix86_expand_prologue): Likewise.
4215 (ix86_expand_split_stack_prologue): Likewise for locals "label",
4217 (ix86_split_idivmod): Likewise for locals "end_label" and
4219 (ix86_expand_branch): Likewise for local "label2".
4220 (ix86_expand_aligntest): Likewise for return type and local "label".
4221 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4223 (expand_movmem_epilogue): Likewise for the various locals named
4225 (expand_setmem_epilogue): Likewise.
4226 (expand_small_movmem_or_setmem): Likewise for local "label".
4227 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4228 Strengthen param "done_label" from rtx * to rtx_code_label **.
4229 Strengthen locals "loop_label" and "label" from rtx to
4231 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4232 Likewise for locals "loop_label", "label".
4233 (ix86_expand_set_or_movmem): Likewise for locals "label",
4234 "jump_around_label", "hot_label".
4235 (ix86_expand_strlensi_unroll_1): Likewise for locals
4236 "align_2_label", align_3_label", "align_4_label", "end_0_label",
4238 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4239 (void ix86_emit_i387_log1p): Likewise for locals "label1",
4240 "label2", "jump_label".
4241 (ix86_expand_sse_compare_and_jump): Likewise for return type and
4243 (ix86_expand_lfloorceil): Likewise for local "label".
4244 (ix86_expand_rint): Likewise.
4245 (ix86_expand_floorceildf_32): Likewise.
4246 (ix86_expand_floorceil): Likewise.
4247 (ix86_expand_rounddf_32): Likewise.
4248 (ix86_expand_trunc): Likewise.
4249 (ix86_expand_truncdf_32): Likewise.
4250 (ix86_expand_round): Likewise.
4252 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4254 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4255 first param from rtx to rtx_insn *.
4256 (h8300_insn_length_from_table): Likewise.
4257 * config/h8300/h8300.c (F): Likewise for return type and param
4259 (Fpa): Add a checked cast to rtx_insn *.
4260 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4262 (final_prescan_insn): Likewise for param "insn".
4263 (h8300_binary_length): Likewise.
4264 (h8300_insn_length_from_table): Likewise.
4266 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4268 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4269 Strengthen first param "insn" from rtx to rtx_insn *.
4271 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4273 (frame_insn): Likewise for return type. Introduce local "insn"
4274 for use in place of local "x" for use as an rtx_insn *.
4275 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4276 (epiphany_expand_prologue): Likewise for local "insn".
4277 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4278 * config/epiphany/resolve-sw-modes.c
4279 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4284 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4285 param from rtx to rtx_insn *.
4286 (c6x_final_prescan_insn): Likewise for first param.
4288 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4289 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4290 (c6x_expand_compare): Strengthen local "insns" from rtx to
4292 (c6x_get_unit_specifier): Likewise for param "insn".
4293 (c6x_print_unit_specifier_field): Likewise.
4294 (c6x_final_prescan_insn): Likewise.
4295 (emit_add_sp_const): Likewise for local "insn".
4296 (c6x_expand_prologue): Likewise.
4298 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4300 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4301 param 1 from rtx to rtx_insn *.
4302 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4303 the various locals named "insn".
4304 (expand_epilogue_reg_restore): Likewise.
4305 (frame_related_constant_load): Likewise.
4306 (add_to_reg): Likewise.
4307 (emit_link_insn): Likewise.
4308 (do_link): Likewise.
4309 (expand_interrupt_handler_prologue): Likewise.
4310 (branch_dest): Likewise for param "branch".
4311 (asm_conditional_branch): Likewise for param "insn".
4312 (gen_one_bundle): Likewise for elements of param "slot" and local
4314 (bfin_gen_bundles): Likewise for locals "insn", "next" and
4315 elements of local "slot".
4316 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4317 "queue", "next_queue", "prev".
4318 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4319 (add_sched_insns_for_speculation): Likewise for local "insn".
4321 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4323 * config/avr/avr-protos.h (output_movqi): Strengthen first param
4324 from rtx to rtx_insn *.
4325 (output_movhi): Likewise.
4326 (output_movsisf): Likewise.
4327 (avr_out_tstsi): Likewise.
4328 (avr_out_tsthi): Likewise.
4329 (avr_out_tstpsi): Likewise.
4330 (avr_out_compare): Likewise.
4331 (avr_out_compare64): Likewise.
4332 (avr_out_movpsi): Likewise.
4333 (ashlqi3_out): Likewise.
4334 (ashlhi3_out): Likewise.
4335 (ashlsi3_out): Likewise.
4336 (ashrqi3_out): Likewise.
4337 (ashrhi3_out): Likewise.
4338 (ashrsi3_out): Likewise.
4339 (lshrqi3_out): Likewise.
4340 (lshrhi3_out): Likewise.
4341 (lshrsi3_out): Likewise.
4342 (avr_out_ashlpsi3): Likewise.
4343 (avr_out_ashrpsi3): Likewise.
4344 (avr_out_lshrpsi3): Likewise.
4345 (avr_out_fract): Likewise.
4346 (avr_out_sbxx_branch): Likewise.
4347 (avr_out_round): Likewise.
4348 (avr_out_xload): Likewise.
4349 (avr_out_movmem): Likewise.
4350 (adjust_insn_length): Likewise.
4351 (avr_out_lpm): Likewise.
4352 (reg_unused_after): Likewise.
4353 (_reg_unused_after): Likewise.
4354 (avr_jump_mode): Likewise for second param.
4355 (jump_over_one_insn): Likewise for first param.
4356 (avr_final_prescan_insn): Likewise.
4357 (out_shift_with_cnt): Likewise for second param.
4359 * config/avr/avr.c (get_sequence_length): Likewise for param
4360 "insns" and local "insn".
4361 (emit_push_byte): Likewise for local "insn".
4362 (emit_push_sfr): Likewise.
4363 (avr_prologue_setup_frame): Likewise for locals "insn",
4364 "fp_plus_insns", "sp_plus_insns".
4365 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4367 (avr_jump_mode): Likewise for param "insn".
4368 (avr_final_prescan_insn): Likewise.
4369 (avr_find_unused_d_reg): Likewise.
4370 (avr_out_lpm_no_lpmx): Likewise.
4371 (avr_out_lpm): Likewise.
4372 (avr_out_xload): Likewise.
4373 (output_movqi): Likewise.
4374 (output_movhi): Likewise.
4375 (out_movqi_r_mr): Likewise.
4376 (out_movhi_r_mr): Likewise.
4377 (out_movsi_r_mr): Likewise.
4378 (out_movsi_mr_r): Likewise.
4379 (output_movsisf): Likewise.
4380 (avr_out_load_psi): Likewise.
4381 (avr_out_store_psi): Likewise.
4382 (avr_out_movpsi): Likewise.
4383 (out_movqi_mr_r): Likewise.
4384 (avr_out_movhi_mr_r_xmega): Likewise.
4385 (out_movhi_mr_r): Likewise.
4386 (compare_condition): Likewise for param "insn" and local "next".
4387 (compare_sign_p): Likewise for param "insn".
4388 (compare_diff_p): Likewise.
4389 (compare_eq_p): Likewise.
4390 (avr_out_compare): Likewise.
4391 (avr_out_compare64): Likewise.
4392 (avr_out_tsthi): Likewise.
4393 (avr_out_tstpsi): Likewise.
4394 (avr_out_tstsi): Likewise.
4395 (out_shift_with_cnt): Likewise.
4396 (ashlqi3_out): Likewise.
4397 (ashlhi3_out): Likewise.
4398 (avr_out_ashlpsi3): Likewise.
4399 (ashlsi3_out): Likewise.
4400 (ashrqi3_out): Likewise.
4401 (ashrhi3_out): Likewise.
4402 (avr_out_ashrpsi3): Likewise.
4403 (ashrsi3_out): Likewise.
4404 (lshrqi3_out): Likewise.
4405 (lshrhi3_out): Likewise.
4406 (avr_out_lshrpsi3): Likewise.
4407 (lshrsi3_out): Likewise.
4408 (avr_out_fract): Likewise.
4409 (avr_out_round): Likewise.
4410 (avr_adjust_insn_length): Likewise.
4411 (reg_unused_after): Likewise.
4412 (_reg_unused_after): Likewise.
4413 (avr_compare_pattern): Likewise.
4414 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4415 and locals "branch1", "branch2", "insn2", "jump".
4416 (avr_reorg): Likewise for local "insn".
4417 (avr_2word_insn_p): Likewise for param "insn".
4418 (jump_over_one_insn_p): Likewise.
4419 (avr_out_sbxx_branch): Likewise.
4420 (avr_out_movmem): Likewise.
4422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4424 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4425 param from rtx to rtx_insn *.
4426 (thumb1_final_prescan_insn): Likewise.
4427 (thumb2_final_prescan_insn): Likewise.
4429 * config/arm/arm.c (emit_set_insn): Strengthen return type from
4431 (struct minipool_node): Likewise for field "insn".
4432 (dump_minipool): Likewise for param "scan".
4433 (create_fix_barrier): Likewise for local "from". Strengthen local
4434 "label" from rtx to rtx_code_label *.
4435 (push_minipool_barrier): Strengthen param "insn" from rtx to
4437 (push_minipool_fix): Likewise.
4438 (note_invalid_constants): Likewise.
4439 (thumb2_reorg): Likewise for local "insn".
4440 (arm_reorg): Likewise.
4441 (thumb2_final_prescan_insn): Likewise for param
4442 "insn" and local "first_insn".
4443 (arm_final_prescan_insn): Likewise for param "insn" and locals
4444 "start_insn", "this_insn".
4445 (arm_debugger_arg_offset): Likewise for param "insn".
4446 (thumb1_emit_multi_reg_push): Likewise for return type and local
4448 (thumb1_final_prescan_insn): Likewise for param "insn".
4449 (thumb_far_jump_used_p): Likewise for local "insn".
4450 (thumb1_expand_prologue): Likewise.
4451 (arm_expand_epilogue_apcs_frame): Likewise.
4452 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4453 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4454 from rtx to rtx_code_label *.
4455 (arm_split_atomic_op): Likewise for local "label".
4456 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4458 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4460 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4461 first param from rtx to rtx_insn *.
4462 (arc_verify_short): Likewise.
4463 (arc_short_long): Likewise.
4464 (arc_need_delay): Likewise.
4466 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4468 (arc_ccfsm_advance): Likewise for param "insn" and locals
4469 "start_insn", "this_insn".
4470 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4471 (arc_ccfsm_post_advance): Likewise for param "insn".
4472 (arc_next_active_insn): Likewise for return type and param "insn".
4473 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
4474 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4475 (output_short_suffix): Likewise for local "insn".
4476 (arc_final_prescan_insn): Likewise for param "insn". Remove
4477 now-redundant checked cast.
4478 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4479 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4480 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
4481 for use where lc_set became an insn.
4482 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4484 (arc_get_insn_variants): Likewise for local "prev".
4485 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4487 (arc_predicate_delay_insns): Likewise for local "insn".
4488 (arc_pad_return): Likewise for local "prev". For now, add a
4489 checked cast when extracting the insn from "final_sequence".
4490 (arc_short_long): Likewise for param "insn".
4491 (arc_need_delay): Likewise for param "insn" and local "next".
4492 (arc_label_align): Likewise for locals "prev", "next".
4494 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4496 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4497 "insn" from rtx to rtx_insn *.
4498 (alpha_gp_save_rtx): Likewise for local "seq".
4499 (alpha_instantiate_decls): Likewise for local "top".
4500 (get_some_local_dynamic_name): Likewise for local "insn".
4501 (alpha_does_function_need_gp): Likewise.
4502 (set_frame_related_p): Likewise for return type and for locals
4504 (emit_frame_store_1): Likewise for local "insn".
4505 (alpha_expand_prologue): Likewise for locals "insn", "seq".
4506 (alpha_end_function): Likewise for local "insn".
4507 (alpha_output_mi_thunk_osf): Likewise.
4508 (alphaev4_insn_pipe): Likewise for param "insn".
4509 (alphaev5_insn_pipe): Likewise.
4510 (alphaev4_next_group): Likewise for return type and param 1
4512 (alphaev5_next_group): Likewise.
4513 (alpha_align_insns_1): Likewise for return type and param 1 of
4514 callback param "next_group", and for locals "i", "next", "prev",
4515 "where", "where2", "insn".
4517 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
4519 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4520 rather than modifying the stmt.
4522 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4524 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4525 cgraph_state conversion.
4527 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4529 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4530 Strengthen local "insns" from rtx to rtx_insn *.
4531 (aarch64_set_frame_expr): Likewise for local "insn".
4532 (aarch64_save_or_restore_fprs): Likewise.
4533 (aarch64_save_or_restore_callee_save_registers): Likewise.
4534 (aarch64_expand_prologue): Likewise.
4535 (aarch64_expand_epilogue): Likewise.
4536 (aarch64_output_mi_thunk): Likewise.
4537 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4538 "label2" from rtx to rtx_code_label *.
4539 (aarch64_split_atomic_op): Likewise for local "label".
4541 2014-08-25 Martin Liska <mliska@suse.cz>
4543 * cgraph.h (symtab_node):
4544 (bool needed_p (void)): created from decide_is_symbol_needed
4545 (bool referred_to_p (void)): created from referred_to_p
4546 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4547 * cgraph.h (cgraph_node):
4548 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4549 (void expand (void)): created from expand_function
4550 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4551 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4552 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4553 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4554 * cgraph.h (varpool_node):
4555 (static void add (tree decl): created from varpool_add_new_variable
4556 * cgraph.h (cgraph_edge):
4558 (void remove_caller (void)): created from cgraph_edge_remove_caller
4559 (void remove_callee (void)): created from cgraph_edge_remove_callee
4560 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4561 created from cgraph_set_call_stmt
4562 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4563 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4564 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4565 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4566 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4567 created from cgraph_speculative_call_info
4568 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4569 int freq_scale, bool update_original)): created from cgraph_clone_edge
4570 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4571 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4572 (bool recursive_p (void)): created from cgraph_edge_recursive_p
4573 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4574 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4575 (static void rebuild_references (void)): created from cgraph_rebuild_references
4576 * cgraph.h (symbol_table):
4577 (create_reference): renamed from add_reference
4578 (maybe_create_reference): renamed from maybe_add_reference
4579 (void register_symbol (symtab_node *node)): new function
4580 (void clear_asm_symbols (void)): new function
4581 (void unregister (symtab_node *node)): new function
4582 (void release_symbol (cgraph_node *node, int uid)): new function
4583 (cgraph_node * allocate_cgraph_symbol (void)): new function
4584 (void initialize (void)): created from cgraph_init
4585 (symtab_node *first_symbol (void)):new function
4586 (asm_node *first_asm_symbol (void)):new function
4587 (symtab_node *first_defined_symbol (void)):new function
4588 (varpool_node *first_variable (void)):new function
4589 (varpool_node *next_variable (varpool_node *node)):new function
4590 (varpool_node *first_static_initializer (void)):new function
4591 (varpool_node *next_static_initializer (varpool_node *node)):new function
4592 (varpool_node *first_defined_variable (void)):new function
4593 (varpool_node *next_defined_variable (varpool_node *node)):new function
4594 (cgraph_node *first_defined_function (void)):new function
4595 (cgraph_node *next_defined_function (cgraph_node *node)):new function
4596 (cgraph_node *first_function (void)):new function
4597 (cgraph_node *next_function (cgraph_node *node)):new function
4598 (cgraph_node *first_function_with_gimple_body (void)):new function
4599 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4600 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4601 created from symtab_remove_unreachable_nodes
4602 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4603 (void process_new_functions (void)): created from cgraph_process_new_functions
4604 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4605 (bool output_variables (void)): created from varpool_node::output_variables
4606 (void output_asm_statements (void)): created from output_asm_statements
4607 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4608 (void compile (void)): created from compile
4609 (void output_weakrefs (void)): created from output_weakrefs
4610 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4611 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4612 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4613 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4614 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4615 created from cgraph_next_function_with_gimple_body
4616 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4617 created from cgraph_remove_edge_removal_hook
4618 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4619 created from cgraph_add_node_removal_hook
4620 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4621 created from cgraph_remove_node_removal_hook
4622 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4623 created from varpool_add_node_removal_hook
4624 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4625 created from varpool_remove_node_removal_hook
4626 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4627 created from cgraph_add_function_insertion_hook
4628 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4629 created from cgraph_remove_function_insertion_hook
4630 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4631 created from varpool_add_variable_insertion_hook
4632 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4633 created from varpool_remove_variable_insertion_hook
4634 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4635 created from cgraph_add_edge_duplication_hook
4636 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4637 created from cgraph_remove_edge_duplication_hook
4638 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4639 created from cgraph_add_node_duplication_hook
4640 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4641 created from cgraph_remove_node_duplication_hook
4642 (void call_edge_removal_hooks (cgraph_edge *e)):
4643 created from cgraph_call_edge_removal_hooks
4644 (void call_cgraph_insertion_hooks (cgraph_node *node)):
4645 created from call_function_insertion_hooks
4646 (void call_cgraph_removal_hooks (cgraph_node *node)):
4647 created from cgraph_call_node_removal_hooks
4648 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4649 created from cgraph_node::call_duplication_hooks
4650 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4651 created from cgraph_call_edge_duplication_hooks
4652 (void call_varpool_removal_hooks (varpool_node *node)):
4653 created from varpool_call_node_removal_hooks
4654 (void call_varpool_insertion_hooks (varpool_node *node)):
4655 created from varpool_call_variable_insertion_hooks
4656 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4657 created from insert_to_assembler_name_hash
4658 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4659 created from unlink_from_assembler_name_hash
4660 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4661 created from symtab_prevail_in_asm_name_hash
4662 (void symtab_initialize_asm_name_hash (void)):
4663 created from symtab_initialize_asm_name_hash
4664 (void change_decl_assembler_name (tree decl, tree name)):
4665 created from change_decl_assembler_name
4666 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4667 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4668 created from decl_assembler_name_hash
4669 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4670 created from decl_assembler_name_equal
4671 (static hashval_t hash_node_by_assembler_name (const void *p)):
4672 created from hash_node_by_assembler_name
4673 (static int eq_assembler_name (const void *p1, const void *p2)):
4674 created from eq_assembler_name
4676 2014-08-25 Marek Polacek <polacek@redhat.com>
4678 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4680 2014-08-25 Petr Murzin <petr.murzin@intel.com>
4682 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4683 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4684 SWI1248_AVX512BW mode iterator.
4686 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
4689 * config/sh/predicates.md (general_extend_operand): Disable
4690 TRUNCATE before reload completes.
4692 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
4694 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
4696 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
4699 * config/sh/sh.opt (musermode): Allow negative form.
4700 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
4701 targets that don't support it.
4702 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
4703 Document -mno-usermode option.
4705 2014-08-24 Kito Cheng <kito@0xlab.org>
4707 * system.h (CALLER_SAVE_PROFITABLE): Poison.
4708 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
4709 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
4710 * doc/tm.texi: Regenerate.
4712 2014-08-24 Kito Cheng <kito@0xlab.org>
4714 * ira.c: Fix typo in comment.
4716 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4718 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
4719 Deprecate c++1y. Change language to reflect greater confidence in C++14.
4721 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
4724 * config/pa/pa.c (pa_output_function_epilogue): Don't set
4725 last_address when the current function is a thunk.
4726 (pa_asm_output_mi_thunk): When we don't have named sections or they
4727 are not being used, check that thunk can reach the stub table with a
4730 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4732 * web.c (union_match_dups): Strengthen param "insn" from rtx to
4734 (pass_web::execute): Likewise for local "insn".
4736 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4738 * var-tracking.c (struct micro_operation_def): Strengthen field
4739 "insn" from rtx to rtx_insn *.
4740 (struct emit_note_data_def): Likewise.
4741 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
4742 (vt_stack_adjustments): Likewise for local "insn".
4743 (adjust_insn): Likewise for param "insn".
4744 (val_store): Likewise.
4745 (val_resolve): Likewise.
4746 (struct count_use_info): Likewise for field "insn".
4747 (log_op_type): Likewise for param "insn".
4748 (reverse_op): Likewise.
4749 (prepare_call_arguments): Likewise.
4750 (add_with_sets): The initial param takes an insn, but we can't
4751 yet strengthen it from rtx to rtx_insn * since it's used as a
4752 cselib_record_sets_hook callback. For now rename initial param
4753 from "insn" to "uncast_insn", and introduce a local "insn" of
4754 the stronger rtx_insn * type, with a checked cast.
4755 (compute_bb_dataflow): Strengthen local "insn" from rtx to
4757 (emit_note_insn_var_location): Likewise.
4758 (emit_notes_for_changes): Likewise.
4759 (emit_notes_for_differences): Likewise.
4760 (next_non_note_insn_var_location): Likewise for return type and
4762 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
4763 (vt_initialize): Likewise for local "insn".
4764 (delete_debug_insns): Likewise for locals "insn" and "next".
4766 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4768 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
4770 (mark_constant_pool): Likewise for local "insn".
4772 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4774 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
4776 (dead_debug_promote_uses): Likewise.
4777 (dead_debug_insert_temp): Likewise.
4779 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4781 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
4782 from const_rtx to const rtx_insn *.
4783 (store_killed_after): Likewise. Strengthen locals "last", "act"
4784 from rtx to rtx_insn *.
4785 (store_killed_before): Strengthen param "insn" from const_rtx to
4786 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
4787 (find_moveable_store): Strengthen param "insn" from rtx to
4789 (compute_store_table): Likewise for local "insn".
4790 (insert_insn_start_basic_block): Likewise for param "insn" and
4791 locals "prev", "before", "insn".
4792 (insert_store): For now, add a checked cast to rtx_insn * on the
4793 result of gen_move_insn.
4794 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
4796 (replace_store_insn): Likewise. For now, add a checked cast to
4797 rtx_insn * on the result of gen_move_insn.
4799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4801 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
4803 (expand_sjlj_dispatch_table): Likewise.
4805 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4807 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
4808 "insn" from rtx to rtx_insn *.
4810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4812 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
4813 "insn" from rtx to rtx_insn *.
4814 (dup_block_and_redirect): Likewise for param 3 "before".
4816 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
4817 from rtx to rtx_insn *.
4818 (move_insn_for_shrink_wrap): Likewise.
4819 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
4820 (dup_block_and_redirect): Likewise for param "before" and local
4822 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
4824 (convert_to_simple_return): Likewise for local "start".
4826 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
4827 Strengthen local "insn" from rtx to rtx_insn *, for use when
4828 invoking requires_stack_frame_p.
4830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4832 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
4834 (speculate_expr): Likewise for locals "orig_insn_rtx",
4836 (eq_transformed_insns): Likewise for locals "i1", "i2".
4837 (check_for_new_jump): Likewise for return type and local "end".
4838 (find_new_jump): Likewise for return type and local "jump".
4839 (sel_split_edge): Likewise for local "jump".
4840 (sel_create_recovery_block): Likewise.
4841 (sel_redirect_edge_and_branch_force): Likewise.
4842 (sel_redirect_edge_and_branch): Likewise.
4844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4846 * sel-sched.c (substitute_reg_in_expr): Strengthen local
4847 "new_insn" from rtx to rtx_insn *.
4848 (create_insn_rtx_with_rhs): Likewise for return type and for local
4850 (create_insn_rtx_with_lhs): Likewise.
4851 (create_speculation_check): Likewise for local "insn_rtx".
4852 (implicit_clobber_conflict_p): Likewise for local "insn".
4853 (get_expr_cost): Likewise.
4854 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
4855 (move_cond_jump): Likewise for locals "next", "prev", "link",
4856 "head", "from", "to".
4858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4860 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
4861 "next" from rtx to rtx_insn *.
4862 (find_conditional_protection): Likewise for local "next".
4863 (is_conditionally_protected): Likewise for local "insn1".
4864 (is_pfree): Likewise for locals "insn1", "insn2".
4866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4868 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
4869 from rtx to rtx_insn *.
4871 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
4872 locals "insn1", "insn2" from rtx to rtx_insn *.
4873 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
4874 locals "insn", "prev", "last_jump", "next_tail".
4875 (schedule_ebb): Likewise for params "head", "tail".
4876 (schedule_ebbs): Likewise for locals "tail", "head".
4878 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
4879 to rtx_insn on "last_insn" in one of the invocations of
4882 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4884 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
4885 "elem", "insn" from rtx to rtx_insn *.
4886 (change_spec_dep_to_hard): Likewise.
4887 (get_back_and_forw_lists): Likewise for local "con".
4888 (sd_add_dep): Likewise for locals "elem", "insn".
4889 (sd_resolve_dep): Likewise for locals "pro", "con".
4890 (sd_unresolve_dep): Likewise.
4891 (sd_delete_dep): Likewise.
4892 (chain_to_prev_insn): Likewise for local "pro".
4893 (find_inc): Likewise for locals "pro", "con".
4895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4897 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
4899 (reg_set_between_p): Strengthen local "insn" from const_rtx to
4901 (modified_between_p): Strengthen local "insn" from rtx to
4903 (remove_reg_equal_equiv_notes_for_regno): Likewise.
4904 (keep_with_call_p): Strengthen local "i2" from const_rtx to
4907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4909 * resource.c (next_insn_no_annul): Strengthen local "next" from
4911 (mark_referenced_resources): Likewise for local "insn".
4913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4915 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
4917 (find_reloads): Likewise for param 1.
4918 (subst_reloads): Likewise for sole param.
4919 (find_equiv_reg): Likwise for param 2.
4920 (regno_clobbered_p): Likwise for param 2.
4921 (reload): Likewise for param 1.
4923 * caller-save.c (save_call_clobbered_regs): Strengthen local
4924 "insn" from rtx to rtx_insn *.
4925 (insert_one_insn): Likewise for local "insn".
4927 * reload.c (this_insn): Likewise for this global.
4928 (find_reloads): Likewise for param "insn".
4929 (find_reloads_toplev): Likewise.
4930 (find_reloads_address): Likewise.
4931 (subst_reg_equivs): Likewise.
4932 (update_auto_inc_notes): Likewise.
4933 (find_reloads_address_1): Likewise.
4934 (find_reloads_subreg_address): Likewise.
4935 (subst_reloads): Likewise.
4936 (find_equiv_reg): Likewise, also for local "p".
4937 (regno_clobbered_p): Likewise for param "insn".
4939 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
4941 (spill_reg_store): Likewise for the elements of this array.
4942 (remove_init_insns): Likewise for local "equiv_insn".
4943 (will_delete_init_insn_p): Likewise for param "insn".
4944 (reload): Likewise for param ""first" and local "insn".
4945 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
4947 (calculate_elim_costs_all_insns): Likewise.
4948 (delete_caller_save_insns): Likewise.
4949 (spill_failure): Likewise for param "insn".
4950 (delete_dead_insn): Likewise.
4951 (set_label_offsets): Likewise.
4952 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
4954 (elimination_costs_in_insn): Likewise for param "insn".
4955 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
4956 when referring to an insn.
4957 (set_initial_label_offsets): Likewise.
4958 (set_offsets_for_label): Strengthen param "insn" from rtx to
4960 (init_eliminable_invariants): Likewise for param "first" and local
4962 (fixup_eh_region_note): Likewise for param "insn".
4963 (reload_as_needed): Likewise for locals "prev", "insn",
4964 "old_next", "old_prev", "next".
4965 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
4967 (reload_inheritance_insn): Strengthen elements of this array from
4969 (failed_reload): Likewise for param "insn".
4970 (choose_reload_regs): Likewise for local "insn". Replace use of
4971 NULL_RTX with NULL when referring to an insn.
4972 (input_reload_insns): Strengthen elements of this array from rtx
4974 (other_input_address_reload_insns): Likewise for this global.
4975 (other_input_reload_insns): Likewise for this global.
4976 (input_address_reload_insns): Likwise for the elements of this
4978 (inpaddr_address_reload_insns): Likwise for the elements of this
4980 (output_reload_insns): Likewise for the elements of this array.
4981 (output_address_reload_insns): Likewise for the elements of this
4983 (outaddr_address_reload_insns): Likewise for the elements of this
4985 (operand_reload_insns): Likewise for this global.
4986 (other_operand_reload_insns): Likewise for this global.
4987 (other_output_reload_insns): Likewise for the elements of this
4989 (new_spill_reg_store): Likewise for the elements of this
4991 (emit_input_reload_insns): Likewise for locals "insn", "temp".
4992 Strengthen local "where" from rtx * to rtx_insn **.
4993 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
4994 from rtx to rtx_insn *.
4995 (do_input_reload): Likewise for local "insn".
4996 (do_output_reload): Likewise for local "insn".
4997 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
4998 (emit_insn_if_valid_for_reload): Likewise for return type and local
4999 "last". Add checked cast to rtx_insn when returning "insn" since
5000 this has been through emit_insn.
5001 (gen_reload): Strengthen return type and locals "last", "insn", "set"
5002 from rtx to rtx_insn *. Add checked cast to rtx_insn when
5003 returning "insn" since it's been through
5004 emit_insn_if_valid_for_reload at this point.
5005 (delete_output_reload): Strengthen param "insn" and locals
5006 "output_reload_insn", "i2" from rtx to rtx_insn *.
5007 (delete_address_reloads): Likewise for params "dead_insn",
5008 "current_insn" and locals "prev", "next".
5009 (delete_address_reloads_1): Likewise for params "dead_insn",
5010 "current_insn" and locals "prev", "i2".
5011 (inc_for_reload): Likewise for locals "last", "add_insn".
5012 (add_auto_inc_notes): Strengthen param "insn" from rtx to
5015 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5016 param of this duplicate of the prototype from reload.h
5018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5020 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5022 (regstat_bb_compute_calls_crossed): Likewise.
5024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5026 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5028 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5030 (regrename_analyze): Strengthen local "insn" from rtx to
5032 (scan_rtx_reg): Likewise for param "insn".
5033 (scan_rtx_address): Likewise.
5034 (scan_rtx): Likewise.
5035 (restore_operands): Likewise.
5036 (record_out_operands): Likewise.
5037 (build_def_use): Likewise for local "insn". Replace use of
5038 NULL_RTX with NULL when dealing with an insn.
5040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5042 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5043 * reginfo.c (reg_scan): Likewise, also for local "insn".
5044 (reg_scan_mark_refs): Likewise for param "insn".
5045 (init_subregs_of_mode): Likewise for local "insn".
5047 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5049 * regcprop.c (struct queued_debug_insn_change): Strengthen field
5050 "insn" from rtx to rtx_insn *.
5051 (replace_oldest_value_reg): Likewise for param "insn".
5052 (replace_oldest_value_addr): Likewise.
5053 (replace_oldest_value_mem): Likewise.
5054 (apply_debug_insn_changes): Likewise for local "last_insn".
5055 (copyprop_hardreg_forward_1): Likewise for local "insn".
5057 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5059 * reg-stack.c (next_flags_user): Strengthen return type and param
5060 "insn" from rtx to rtx_insn *.
5061 (straighten_stack): Likewise for param "insn".
5062 (check_asm_stack_operands): Likewise.
5063 (remove_regno_note): Likewise.
5064 (emit_pop_insn): Likewise for return type, param "insn", local
5066 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
5067 "limit" from rtx to rtx_insn *.
5068 (swap_to_top): Likewise for param "insn".
5069 (move_for_stack_reg): Likewise.
5070 (move_nan_for_stack_reg): Likewise.
5071 (swap_rtx_condition): Likewise.
5072 (compare_for_stack_reg): Likewise.
5073 (subst_all_stack_regs_in_debug_insn): Likewise.
5074 (subst_stack_regs_pat): Likewise, and local "insn2".
5075 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
5077 (subst_stack_regs): Likewise.
5078 (change_stack): Likewise.
5079 (convert_regs_1): Likewise for locals "insn", "next".
5081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5083 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5085 (combine_set_extension): Likewise for param "curr_insn".
5086 (transform_ifelse): Likewise for param "def_insn".
5087 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
5088 from vec<rtx> * to vec<rtx_insn *> *.
5089 (is_cond_copy_insn): Likewise for param "insn".
5090 (struct ext_state): Strengthen the four vec fields from vec<rtx>
5092 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
5093 local "def_insn" from rtx to rtx_insn *.
5094 (get_sub_rtx): Likewise for param "def_insn".
5095 (merge_def_and_ext): Likewise.
5096 (combine_reaching_defs): Likewise.
5097 (add_removable_extension): Likewise for param "insn".
5098 (find_removable_extensions): Likewise for local "insn".
5099 (find_and_remove_re): Likewise for locals "curr_insn" and
5100 "def_insn". Strengthen locals "reinsn_del_list" and
5101 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5105 * recog.c (split_insn): Strengthen param "insn" and locals
5106 "first", "last" from rtx to rtx_insn *.
5107 (split_all_insns): Likewise for locals "insn", "next".
5108 (split_all_insns_noflow): Likewise.
5110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5112 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5114 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5115 (debug_rtx_find): Likewise for param 1 "x".
5117 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5118 const_rtx to const rtx_insn *. Likewise for local "insn".
5119 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5120 (debug_rtx_find): Likewise for param 1 "x".
5121 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5122 from const_rtx to const rtx_insn * within the appropriate cases of
5123 the switch statement.
5125 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5126 Strengthen local "insns" from rtx to rtx_insn * since this is
5127 passed to a call to debug_rtx_list.
5129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5131 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5134 * function.c (stack_protect_epilogue): Add checked cast to
5135 rtx_insn for now when invoking predict_insn_def.
5137 * predict.c (predict_insn): Strengthen param "insn" from rtx to
5139 (predict_insn_def): Likewise.
5140 (rtl_predict_edge): Likewise for local "last_insn".
5141 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5143 (combine_predictions_for_insn): Strengthen param "insn" from rtx
5145 (bb_estimate_probability_locally): Likewise for local "last_insn".
5146 (expensive_function_p): Likewise for local "insn".
5148 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5149 local "jmp", since this is used when invoking predict_insn_def.
5151 2014-08-22 Marek Polacek <polacek@redhat.com>
5154 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5156 2014-08-22 Marek Polacek <polacek@redhat.com>
5159 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5160 a comparison in parens.
5161 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5166 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5169 * cprop.c (fis_get_condition): Likewise.
5171 * postreload.c (reload_cse_regs): Likewise for param "first".
5172 (reload_cse_simplify): Likewise for param "insn".
5173 (reload_cse_regs_1): Likewise for local "insn".
5174 (reload_cse_simplify_set): Likewise for param "insn".
5175 (reload_cse_simplify_operands): Likewise.
5176 (struct reg_use): Likewise for field "insn".
5177 (reload_combine_purge_insn_uses): Likewise for param "insn".
5178 (fixup_debug_insns): Likewise for params "from", "to" and local
5180 (try_replace_in_use): Likewise for local "use_insn".
5181 (reload_combine_recognize_const_pattern): Likewise for param
5182 "insn" and locals "add_moved_after_insn", "use_insn".
5183 (reload_combine_recognize_pattern): Likewise for param "insn" and
5185 (reload_combine): Likewise for locals "insn", "prev".
5186 (reload_combine_note_use): Likewise for param "insn".
5187 (move2add_use_add2_insn): Likewise.
5188 (move2add_use_add3_insn): Likewise.
5189 (reload_cse_move2add): Likewise, also for local "next".
5190 (move2add_note_store): Likewise for local "insn".
5192 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5194 * postreload-gcse.c (struct occr): Strengthen field "insn" from
5196 (struct unoccr): Likewise.
5197 (struct modifies_mem): Likewise.
5198 (alloc_mem): Likewise for local "insn".
5199 (insert_expr_in_table): Likewise for param "insn".
5200 (dump_expr_hash_table_entry): Likewise for local "insn".
5201 (oprs_unchanged_p): Likewise for param "insn".
5202 (load_killed_in_block_p): Likewise for local "setter".
5203 (record_last_reg_set_info): Likewise for param "insn".
5204 (record_last_reg_set_info_regno): Likewise.
5205 (record_last_mem_set_info): Likewise.
5206 (record_last_set_info): Likewise for local "last_set_insn".
5207 (record_opr_changes): Likewise for param "insn".
5208 (hash_scan_set): Likewise.
5209 (compute_hash_table): Likewise for local "insn".
5210 (get_avail_load_store_reg): Likewise for param "insn".
5211 (eliminate_partially_redundant_load): Likewise, also for locals
5212 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
5214 (eliminate_partially_redundant_loads): Likewise for local "insn".
5216 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5218 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5220 (expand_binop): Likewise for locals "entry_last", "last", "insns"
5221 (expand_twoval_unop): Likewise for locals entry_last", "last".
5222 (expand_twoval_binop): Likewise.
5223 (expand_twoval_binop_libfunc): Likewise for local "insns".
5224 (widen_leading): Likewise for local "last".
5225 (expand_doubleword_clz): Likewise for local "seq". Strengthen
5226 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5227 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5228 (expand_parity): Likewise for locals "last" and "seq".
5229 (expand_ffs): Likewise for local "seq". Strengthen local
5230 "nonzero_label" from rtx to rtx_code_label *.
5231 (expand_absneg_bit): Strengthen local "insns" from rtx to
5233 (expand_unop_direct): Likewise for local "last".
5234 (expand_unop): Likewise for locals "last", "insns".
5235 (expand_abs_nojump): Likewise for local "last".
5236 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5237 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5239 (expand_copysign_absneg): Strengthen local "label" from rtx to
5241 (expand_copysign_bit): Strengthen local "insns" from rtx to
5243 (struct no_conflict_data): Likewise for fields "first", "insn".
5244 (emit_libcall_block_1): Likewise for param "insns" and locals
5245 "next", "last", "insn".
5246 (emit_libcall_block): For now, add a checked cast to rtx_insn *
5247 on "insns" when invoking emit_libcall_block_1. Ultimately we
5248 want to strengthen insns itself.
5249 (prepare_cmp_insn): Strengthen local "last" from rtx to
5251 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5252 (prepare_float_lib_cmp): Likewise for local "insns".
5253 (emit_conditional_move): Likewise for local "last".
5254 (emit_conditional_add): Likewise.
5255 (have_sub2_insn): Likewise for local "seq".
5256 (expand_float): Likewise for local "insns". Strengthen locals
5257 "label", "neglabel" from rtx to rtx_code_label *.
5258 (expand_fix): Likewise for locals "last", "insn", "insns" (to
5259 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5260 (expand_fixed_convert): Likewise for local "insns" (to
5262 (expand_sfix_optab): Likewise for local "last".
5263 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5264 to rtx_code_label *.
5265 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5266 from rtx to rtx_insn *.
5267 (expand_atomic_fetch_op): Likewise for local "insn".
5268 (maybe_legitimize_operand_same_code): Likewise for local "last".
5269 (maybe_legitimize_operands): Likewise.
5271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5273 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5274 "insn" from rtx to rtx_insn *.
5275 (ps_rtl_insn): Likewise for return type.
5276 (doloop_register_get): Likewise for params "head", "tail" and
5277 locals "insn", "first_insn_not_to_check".
5278 (schedule_reg_move): Likewise for local "this_insn".
5279 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5280 of gen_move_insn for now.
5281 (reset_sched_times): Strengthen local "insn" from rtx to
5283 (permute_partial_schedule): Likewise.
5284 (duplicate_insns_of_cycles): Likewise for local "u_insn".
5285 (dump_insn_location): Likewise for param "insn".
5286 (loop_canon_p): Likewise for local "insn".
5287 (sms_schedule): Likewise.
5288 (print_partial_schedule): Likewise.
5289 (ps_has_conflicts): Likewise.
5291 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5293 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5294 "tailp" from rtx * to rtx_insn **.
5296 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5297 from rtx to rtx_insn *.
5298 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5299 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
5300 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5302 * modulo-sched.c (const_iteration_count): Strengthen return type
5303 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
5304 use of NULL_RTX with NULL when working with insns.
5305 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5307 (sms_schedule): Likewise.
5308 * sched-rgn.c (init_ready_list): Likewise, also for locals
5309 "src_head" and "src_next_tail".
5310 (compute_block_dependences): Likewise.
5311 (free_block_dependencies): Likewise.
5312 (debug_rgn_dependencies): Likewise.
5313 (free_rgn_deps): Likewise.
5314 (compute_priorities): Likewise.
5315 (schedule_region): Likewise.
5316 * sel-sched.c (find_ebb_boundaries): Likewise.
5318 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5319 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5321 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5323 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5324 from rtx to rtx_insn *.
5325 (new_seginfo): Likewise for param "insn".
5326 (create_pre_exit): Likewise for locals "last_insn",
5327 "before_return_copy", "return_copy".
5328 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5331 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5333 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5334 from rtx to rtx_insn *.
5335 (lra_push_insn): Likewise for 1st param.
5336 (lra_push_insn_and_update_insn_regno_info): Likewise.
5337 (lra_pop_insn): Likewise for return type.
5338 (lra_invalidate_insn_data): Likewise for 1st param.
5339 (lra_set_insn_deleted): Likewise.
5340 (lra_delete_dead_insn): Likewise.
5341 (lra_process_new_insns): Likewise for first 3 params.
5342 (lra_set_insn_recog_data): Likewise for 1st param.
5343 (lra_update_insn_recog_data): Likewise.
5344 (lra_set_used_insn_alternative): Likewise.
5345 (lra_invalidate_insn_regno_info): Likewise.
5346 (lra_update_insn_regno_info): Likewise.
5347 (lra_former_scratch_operand_p): Likewise.
5348 (lra_eliminate_regs_1): Likewise.
5349 (lra_get_insn_recog_data): Likewise.
5351 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5354 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5356 (substitute_within_insn): New.
5357 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5358 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
5359 Replace call to "substitute" with call to substitute_within_insn.
5361 * lra-constraints.c (curr_insn): Strengthen from rtx to
5363 (get_equiv_with_elimination): Likewise for param "insn".
5364 (match_reload): Strengthen params "before" and "after" from rtx *
5366 (emit_spill_move): Likewise for return type. Add a checked cast
5367 to rtx_insn * on result of gen_move_insn for now.
5368 (check_and_process_move): Likewise for local "before". Replace
5369 NULL_RTX with NULL when referring to insns.
5370 (process_addr_reg): Strengthen params "before" and "after" from
5371 rtx * to rtx_insn **.
5372 (insert_move_for_subreg): Likewise.
5373 (simplify_operand_subreg): Strengthen locals "before" and "after"
5374 from rtx to rtx_insn *.
5375 (process_address_1): Strengthen params "before" and "after" from
5376 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
5378 (process_address): Strengthen params "before" and "after" from
5379 rtx * to rtx_insn **.
5380 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5381 (curr_insn_transform): Strengthen locals "before" and "after"
5382 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
5384 (loc_equivalence_callback): Update cast of "data", changing
5385 resulting type from rtx to rtx_insn *.
5386 (substitute_pseudo_within_insn): New.
5387 (inherit_reload_reg): Strengthen param "insn" from rtx to
5388 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
5389 NULL when referring to insns. Add a checked cast to rtx_insn *
5390 when using usage_insn to invoke lra_update_insn_regno_info.
5391 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5392 likewise for locals "restore", "save". Add checked casts to
5393 rtx_insn * when using usage_insn to invoke
5394 lra_update_insn_regno_info and lra_process_new_insns. Replace
5395 NULL_RTX with NULL when referring to insns.
5396 (split_if_necessary): Strengthen param "insn" from rtx to
5398 (update_ebb_live_info): Likewise for params "head", "tail" and local
5400 (get_last_insertion_point): Likewise for return type and local "insn".
5401 (get_live_on_other_edges): Likewise for local "last".
5402 (inherit_in_ebb): Likewise for params "head", "tail" and locals
5403 "prev_insn", "next_insn", "restore".
5404 (remove_inheritance_pseudos): Likewise for local "prev_insn".
5405 (undo_optional_reloads): Likewise for local "insn".
5407 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5409 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5411 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5413 (spill_pseudos): Likewise for local "insn".
5414 (init_elimination): Likewise.
5415 (process_insn_for_elimination): Likewise for param "insn".
5417 * lra-lives.c (curr_insn): Likewise.;
5419 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5420 (remove_pseudos): Likewise for param "insn".
5421 (spill_pseudos): Likewise for local "insn".
5422 (lra_final_code_change): Likewise for locals "insn", "curr".
5424 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5425 (lra_set_insn_deleted): Likewise.
5426 (lra_delete_dead_insn): Likewise, and for local "prev".
5427 (new_insn_reg): Likewise for param "insn".
5428 (lra_set_insn_recog_data): Likewise.
5429 (lra_update_insn_recog_data): Likewise.
5430 (lra_set_used_insn_alternative): Likewise.
5431 (get_insn_freq): Likewise.
5432 (invalidate_insn_data_regno_info): Likewise.
5433 (lra_invalidate_insn_regno_info): Likewise.
5434 (lra_update_insn_regno_info): Likewise.
5435 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5437 (lra_push_insn_1): Strengthen param "insn" from rtx to
5439 (lra_push_insn): Likewise.
5440 (lra_push_insn_and_update_insn_regno_info): Likewise.
5441 (lra_pop_insn): Likewise for return type and local "insn".
5442 (push_insns): Likewise for params "from", "to", and local "insn".
5443 (setup_sp_offset): Likewise for params "from", "last" and locals
5445 (lra_process_new_insns): Likewise for params "insn", "before",
5446 "after" and local "last".
5447 (struct sloc): Likewise for field "insn".
5448 (lra_former_scratch_operand_p): Likewise for param "insn".
5449 (remove_scratches): Likewise for locals "insn", "last".
5450 (check_rtl): Likewise for local "insn".
5451 (add_auto_inc_notes): Likewise for param "insn".
5452 (update_inc_notes): Likewise for local "insn".
5453 (lra): Replace NULL_RTX with NULL when referring to insn.
5455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5457 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5459 (resolve_reg_notes): Likewise.
5460 (resolve_simple_move): Likewise for return type, param "insn", and
5461 locals "insns", "minsn".
5462 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5463 (resolve_use): Likewise.
5464 (resolve_debug): Likewise.
5465 (find_decomposable_shift_zext): Likewise.
5466 (resolve_shift_zext): Likewise for return type, param "insn", and
5467 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
5468 (decompose_multiword_subregs): Likewise for local "insn",
5469 "orig_insn", "decomposed_shift", "end".
5471 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5473 * basic-block.h (basic_block split_edge_and_insert): Strengthen
5474 param "insns" from rtx to rtx_insn *.
5476 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5478 (struct iv_to_split): Likewise.
5479 (loop_exit_at_end_p): Likewise for local "insn".
5480 (split_edge_and_insert): Likewise for param "insns".
5481 (compare_and_jump_seq): Likewise for return type, param "cinsn",
5482 and locals "seq", "jump".
5483 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5484 "branch_code"; update invocations of compare_and_jump_seq to
5485 eliminate NULL_RTX in favor of NULL.
5486 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5488 (reset_debug_uses_in_loop): Likewise.
5489 (analyze_insn_to_expand_var): Likewise for param "insn".
5490 (analyze_iv_to_split_insn): Likewise.
5491 (analyze_insns_in_loop): Likewise for local "insn".
5492 (insert_base_initialization): Likewise for param
5493 "insn" and local "seq".
5494 (split_iv): Likewise for param "insn" and local "seq".
5495 (expand_var_during_unrolling): Likewise for param "insn".
5496 (insert_var_expansion_initialization): Likewise for local "seq".
5497 (combine_var_copies_in_loop_exit): Likewise.
5498 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5500 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5501 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5506 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5508 (iv_analyze_result): Likewise.
5509 (iv_analyze_expr): Likewise.
5512 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5513 local "def_insn" from rtx to rtx_insn *.
5514 (get_biv_step_1): Likewise for local "insn".
5515 (iv_analyze_expr): Likewise for param "insn".
5516 (iv_analyze_def): Likewise for local "insn".
5517 (iv_analyze_op): Likewise for param "insn".
5518 (iv_analyze): Likewise.
5519 (iv_analyze_result): Likewise.
5521 (suitable_set_for_replacement): Likewise.
5522 (simplify_using_initial_values): Likewise for local "insn".
5523 (iv_number_of_iterations): Likewise for param "insn".
5524 (check_simple_exit): Add checked cast to rtx_insn when invoking
5525 iv_number_of_iterations for now (until get_condition is
5528 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5529 "insn" from rtx to rtx_insn *.
5530 (analyze_insns_in_loop): Likewise for local "insn".
5532 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5534 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5536 (struct invariant): Likewise.
5537 (hash_invariant_expr_1): Likewise for param "insn".
5538 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5539 (find_exits): Likewise for local "insn".
5540 (create_new_invariant): Likewise for param "insn".
5541 (check_dependencies): Likewise.
5542 (find_invariant_insn): Likewise.
5543 (record_uses): Likewise.
5544 (find_invariants_insn): Likewise.
5545 (find_invariants_bb): Likewise for local "insn".
5546 (get_pressure_class_and_nregs): Likewise for param "insn".
5547 (calculate_loop_reg_pressure): Likewise for local "insn".
5549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5551 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5553 (add_test): Likewise for locals "seq", "jump".
5554 (doloop_modify): Likewise for locals "sequence", "jump_insn".
5556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5558 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5560 (rebuild_jump_labels_chain): Likewise for param "chain".
5562 * cfgexpand.c (pass_expand::execute): Add checked cast to
5563 rtx_insn * when calling rebuild_jump_labels_chain in region where
5564 we know e->insns.r is non-NULL.
5566 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5568 (rebuild_jump_labels): Likewise.
5569 (rebuild_jump_labels_chain): Likewise for param "chain".
5570 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5571 (init_label_info): Likewise for param "f".
5572 (maybe_propagate_label_ref): Likewise for params "jump_insn",
5573 "prev_nonjump_insn".
5574 (mark_all_labels): Likewise for param "f" and locals "insn",
5575 "prev_nonjump_insn".
5577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5579 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5580 from rtx to rtx_insn *insn.
5581 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5582 (ira_add_allocno_copy): Likewise.
5583 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5585 (ira_create_copy): Likewise.
5586 (ira_add_allocno_copy): Likewise.
5587 (create_bb_allocnos): Likewise for local "insn".
5588 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5589 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5590 process_regs_for_copy for rtx_insn * param.
5591 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5592 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
5593 process_regs_for_copy for rtx_insn * param.
5594 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5595 * ira-costs.c (record_reg_classes): Likewise for param "insn".
5596 (record_operand_costs): Likewise.
5597 (scan_one_insn): Likewise for return type, and for param "insn".
5598 (process_bb_for_costs): Likewise for local "insn".
5599 (process_bb_node_for_hard_reg_moves): Likewise.
5600 * ira-emit.c (struct move): Likewise for field "insn".
5601 (create_move): Eliminate use of NULL_RTX when dealing with an
5603 (emit_move_list): Strengthen return type and locals "result",
5604 "insn" from rtx to rtx_insn *insn.
5605 (emit_moves): Likewise for locals "insns", "tmp".
5606 (ira_emit): Likewise for local "insn".
5607 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5609 (find_call_crossed_cheap_reg): Likewise.
5610 (process_bb_node_lives): Likewise for local "insn".
5611 * ira.c (decrease_live_ranges_number): Likewise.
5612 (compute_regs_asm_clobbered): Likewise.
5613 (build_insn_chain): Likewise.
5614 (find_moveable_pseudos): Likewise, also locals "def_insn",
5615 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
5616 to rtx_insn **. Add a checked cast when assigning from
5617 "closest_use" into closest_uses array in a region where we know
5618 it's a non-NULL insn.
5619 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5621 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5622 "last_interesting_insn", "uin".
5623 (move_unallocated_pseudos): Likewise for locals "def_insn",
5624 "move_insn", "newinsn".
5626 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5628 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5629 Strengthen locals "done_label", "do_error" from rtx to
5631 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5632 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
5634 (ubsan_expand_si_overflow_neg_check): Likewise for locals
5635 "done_label", "do_error" to rtx_code_label * and local "last" to
5637 (ubsan_expand_si_overflow_mul_check): Likewise for locals
5638 "done_label", "do_error", "large_op0", "small_op0_large_op1",
5639 "one_small_one_large", "both_ops_large", "after_hipart_neg",
5640 "after_lopart_neg", "do_overflow", "hipart_different" to
5641 rtx_code_label * and local "last" to rtx_insn *.
5643 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5645 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5646 "insn" and "move_insn" from rtx to rtx_insn *.
5648 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5650 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5652 (cheap_bb_rtx_cost_p): Likewise.
5653 (first_active_insn): Likewise for return type and local "insn".
5654 (last_active_insn): Likewise for return type and locals "insn",
5656 (struct noce_if_info): Likewise for fields "jump", "insn_a",
5658 (end_ifcvt_sequence): Likewise for return type and locals "insn",
5660 (noce_try_move): Likewise for local "seq".
5661 (noce_try_store_flag): Likewise.
5662 (noce_try_store_flag_constants): Likewise.
5663 (noce_try_addcc): Likewise.
5664 (noce_try_store_flag_mask): Likewise.
5665 (noce_try_cmove): Likewise.
5666 (noce_try_minmax): Likewise.
5667 (noce_try_abs): Likewise.
5668 (noce_try_sign_mask): Likewise.
5669 (noce_try_bitop): Likewise.
5670 (noce_can_store_speculate_p): Likewise for local "insn".
5671 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5673 (check_cond_move_block): Likewise for local "insn".
5674 (cond_move_convert_if_block): Likewise.
5675 (cond_move_process_if_block): Likewise for locals "seq",
5677 (noce_find_if_block): Likewise for local "jump".
5678 (merge_if_block): Likewise for local "last".
5679 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5680 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5681 (block_has_only_trap): Likewise for return type and local "trap".
5682 (find_if_case_1): Likewise for local "jump".
5683 (dead_or_predicable): Likewise for locals "head", "end", "jump",
5686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5688 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
5689 "last_insn", "loop_end" from rtx to rtx_insn *.
5691 * hw-doloop.c (scan_loop): Likewise for local "insn".
5692 (discover_loop): Likewise for param "tail_insn".
5693 (discover_loops): Likewise for local "tail".
5695 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
5696 cast to rtx_insn * when assigning from an rtx local to a
5697 hwloop_info's "last_insn" field.
5699 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5701 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
5702 (add_delay_dependencies): Strengthen local "pro" from rtx to
5704 (recompute_todo_spec): Likewise.
5705 (dep_cost_1): Likewise for locals "insn", "used".
5706 (schedule_insn): Likewise for local "dbg".
5707 (schedule_insn): Likewise for locals "pro", "next".
5708 (unschedule_insns_until): Likewise for local "con".
5709 (restore_pattern): Likewise for local "next".
5710 (estimate_insn_tick): Likewise for local "pro".
5711 (resolve_dependencies): Likewise for local "next".
5712 (fix_inter_tick): Likewise.
5713 (fix_tick_ready): Likewise for local "pro".
5714 (add_to_speculative_block): Likewise for locals "check", "twin",
5716 (sched_extend_bb): Likewise for locals "end", "insn".
5717 (init_before_recovery): Likewise for local "x".
5718 (sched_create_recovery_block): Likewise for local "barrier".
5719 (create_check_block_twin): Likewise for local "pro".
5720 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
5722 (unlink_bb_notes): Update for change to type of bb_header.
5723 Strengthen locals "prev", "label", "note", "next" from rtx to
5725 (clear_priorities): Likewise for local "pro".
5727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5729 * gcse.c (struct occr): Strengthen field "insn" from rtx to
5731 (test_insn): Likewise for this global.
5732 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
5734 (oprs_anticipatable_p): Likewise.
5735 (oprs_available_p): Likewise.
5736 (insert_expr_in_table): Strengthen param "insn" from rtx to
5738 (hash_scan_set): Likewise.
5739 (hash_scan_clobber): Likewise.
5740 (hash_scan_call): Likewise.
5741 (hash_scan_insn): Likewise.
5742 (compute_hash_table_work): Likewise for local "insn".
5743 (process_insert_insn): Likewise for return type and local "pat".
5744 (insert_insn_end_basic_block): Likewise for locals "new_insn",
5745 "pat", "pat_end", "maybe_cc0_setter".
5746 (pre_edge_insert): Likewise for local "insn".
5747 (pre_insert_copy_insn): Likewise for param "insn".
5748 (pre_insert_copies): Likewise for local "insn".
5749 (struct set_data): Likewise for field "insn".
5750 (single_set_gcse): Likewise for param "insn".
5751 (gcse_emit_move_after): Likewise.
5752 (pre_delete): Likewise for local "insn".
5753 (update_bb_reg_pressure): Likewise for param "from" and local
5755 (should_hoist_expr_to_dom): Likewise for param "from".
5756 (hoist_code): Likewise for local "insn".
5757 (get_pressure_class_and_nregs): Likewise for param "insn".
5758 (calculate_bb_reg_pressure): Likewise for local "insn".
5759 (compute_ld_motion_mems): Likewise.
5761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5763 * genpeep.c (main): Rename param back from "uncast_ins1" to
5764 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
5767 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
5769 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5772 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
5773 documentation to state it is only for VSX operations.
5775 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
5776 constraint only active if VSX.
5778 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
5779 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
5782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5784 * fwprop.c (single_def_use_dom_walker::before_dom_children):
5785 Strengthen local "insn" from rtx to rtx_insn *.
5786 (use_killed_between): Likewise for param "target_insn".
5787 (all_uses_available_at): Likewise for param "target_insn" and
5789 (update_df_init): Likewise for params "def_insn", "insn".
5790 (update_df): Likewise for param "insn".
5791 (try_fwprop_subst): Likewise for param "def_insn" and local
5793 (free_load_extend): Likewise for param "insn".
5794 (forward_propagate_subreg): Likewise for param "def_insn" and
5796 (forward_propagate_asm): Likewise for param "def_insn" and local
5798 (forward_propagate_and_simplify): Likewise for param "def_insn"
5799 and local "use_insn".
5800 (forward_propagate_into): Likewise for locals "def_insn" and
5803 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5805 * function.c (emit_initial_value_sets): Strengthen local "seq"
5806 from rtx to rtx_insn *.
5807 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
5809 (instantiate_virtual_regs): Likewise for local "insn".
5810 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
5811 (reorder_blocks_1): Likewise for param "insns" and local "insn".
5812 (expand_function_end): Likewise for locals "insn" and "seq".
5813 (epilogue_done): Likewise for local "insn".
5814 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
5816 (reposition_prologue_and_epilogue_notes): Likewise for locals
5817 "insn", "last", "note", "first".
5818 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
5819 (pass_match_asm_constraints::execute): Likewise for local "insn".
5821 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5823 * output.h (final_scan_insn): Strengthen return type from rtx to
5825 (final_forward_branch_p): Likewise for param.
5826 (current_output_insn): Likewise for this global.
5828 * final.c (rtx debug_insn): Likewise for this variable.
5829 (current_output_insn): Likewise.
5830 (get_attr_length_1): Rename param "insn" to "uncast_insn",
5831 adding "insn" back in as an rtx_insn * with a checked cast, so
5832 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
5834 (compute_alignments): Strengthen local "label" from rtx to
5836 (shorten_branches): Rename param from "first" to "uncast_first",
5837 introducing a new local rtx_insn * "first" using a checked cast to
5838 effectively strengthen "first" from rtx to rtx_insn * without
5839 affecting the type signature. Strengthen locals "insn", "seq",
5840 "next", "label" from rtx to rtx_insn *.
5841 (change_scope): Strengthen param "orig_insn" and local "insn" from
5843 (final_start_function): Rename param from "first" to "uncast_first",
5844 introducing a new local rtx_insn * "first" using a checked cast to
5845 effectively strengthen "first" from rtx to rtx_insn * without
5846 affecting the type signature. Strengthen local "insn" from rtx to
5848 (dump_basic_block_info): Strengthen param "insn" from rtx to
5850 (final): Rename param from "first" to "uncast_first",
5851 introducing a new local rtx_insn * "first" using a checked cast to
5852 effectively strengthen "first" from rtx to rtx_insn * without
5853 affecting the type signature. Strengthen locals "insn", "next"
5854 from rtx to rtx_insn *.
5855 (output_alternate_entry_point): Strengthen param "insn" from rtx to
5857 (call_from_call_insn): Strengthen param "insn" from rtx to
5859 (final_scan_insn): Rename param from "insn" to "uncast_insn",
5860 introducing a new local rtx_insn * "insn" using a checked cast to
5861 effectively strengthen "insn" from rtx to rtx_insn * without
5862 affecting the type signature. Strengthen return type and locals
5863 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
5864 now-redundant checked cast to rtx_insn * from both invocations of
5865 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
5866 introducing a local "call_insn" for use when invoking
5867 call_from_call_insn.
5868 (notice_source_line): Strengthen param "insn" from rtx to
5870 (leaf_function_p): Likewise for local "insn".
5871 (final_forward_branch_p): Likewise.
5872 (leaf_renumber_regs): Likewise for param "first".
5873 (rest_of_clean_state): Likewise for locals "insn" and "next".
5874 (self_recursive_call_p): Likewise for param "insn".
5875 (collect_fn_hard_reg_usage): Likewise for local "insn".
5876 (get_call_fndecl): Likewise for param "insn".
5877 (get_call_cgraph_rtl_info): Likewise.
5878 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
5879 introducing a new local rtx_insn * "insn" using a checked cast to
5880 effectively strengthen "insn" from rtx to rtx_insn * without
5881 affecting the type signature.
5883 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
5884 cast when assigning from param "insn" to current_output_insn.
5885 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
5886 so that we can assign it back to current_output_insn.
5888 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5890 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
5891 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
5892 atmxt540s and atmxt540sreva devices.
5893 * config/avr/avr-tables.opt: Regenerate.
5894 * config/avr/t-multilib: Regenerate.
5895 * doc/avr-mmcu.texi: Regenerate.
5897 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5899 * expr.c (convert_move): Strengthen local "insns" from rtx to
5901 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
5902 "top_label" from rtx to rtx_code_label *.
5903 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
5905 (emit_single_push_insn): Likewise for locals "prev", "last".
5906 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
5907 to rtx_code_label *.
5908 (store_constructor): Likewise for locals "loop_start", "loop_end".
5909 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
5911 (expand_expr_real_2): Likewise.
5912 (expand_expr_real_1): Strengthen local "label" from rtx to
5915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5917 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
5918 from rtx to rtx_insn *.
5919 (store_bit_field_1): Likewise.
5920 (extract_bit_field_1): Likewise.
5921 (expand_mult_const): Likewise for local "insns".
5922 (expmed_mult_highpart): Strengthen local "label" from rtx to
5924 (expand_smod_pow2): Likewise.
5925 (expand_sdiv_pow2): Likewise.
5926 (expand_divmod): Strengthen locals "last", "insn" from rtx to
5927 rtx_insn *. Strengthen locals "label", "label1", "label2",
5928 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
5929 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
5930 (emit_store_flag): Likewise.
5931 (emit_store_flag_force): Strengthen local "label" from rtx to
5933 (do_cmp_and_jump): Likewise for param "label".
5935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5937 * explow.c (force_reg): Strengthen local "insn" from rtx to
5939 (adjust_stack_1): Likewise.
5940 (allocate_dynamic_stack_space): Likewise. Strengthen locals
5941 "final_label", "available_label", "space_available" from rtx to
5943 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
5944 (anti_adjust_stack_and_probe): Likewise.
5946 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5948 * except.h (sjlj_emit_function_exit_after): Strengthen param
5949 "after" from rtx to rtx_insn *. This is only called with
5950 result of get_last_insn (in function.c) so type-change should be
5953 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
5954 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
5955 to rtx_insn *. These fields are only used from except.c so this
5956 type-change should be self-contained to this patch.
5958 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
5959 local "last" from rtx to rtx_insn *.
5960 (dw2_build_landing_pads): Likewise for local "seq".
5961 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
5962 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
5963 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
5965 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
5967 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
5968 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
5969 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
5970 referring to an insn. Strengthen local "dispatch_label" from
5971 rtx to rtx_code_label *.
5972 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
5974 (expand_eh_return): Strengthen local "around_label" from
5975 rtx to rtx_code_label *.
5976 (convert_to_eh_region_ranges): Strengthen locals "iter",
5977 "last_action_insn", "first_no_action_insn",
5978 "first_no_action_insn_before_switch",
5979 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
5981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5983 * dwarf2out.c (last_var_location_insn): Strengthen this variable
5984 from rtx to rtx_insn *.
5985 (cached_next_real_insn): Likewise.
5986 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
5988 (dwarf2out_var_location): Strengthen locals "next_real",
5989 "next_note", "expected_next_loc_note", "last_start", "insn" from
5992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5994 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
5995 from rtx to rtx_insn *.
5996 (create_pseudo_cfg): Likewise for local "insn".
5998 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6000 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6001 from rtx to rtx_insn *.
6002 (df_bb_regno_last_def_find): Likewise.
6004 * df-problems.c (df_rd_bb_local_compute): Likewise.
6005 (df_lr_bb_local_compute): Likewise.
6006 (df_live_bb_local_compute): Likewise.
6007 (df_chain_remove_problem): Likewise.
6008 (df_chain_create_bb): Likewise.
6009 (df_word_lr_bb_local_compute): Likewise.
6010 (df_remove_dead_eq_notes): Likewise for param "insn".
6011 (df_note_bb_compute): Likewise for local "insn".
6012 (simulate_backwards_to_point): Likewise.
6013 (df_md_bb_local_compute): Likewise.
6015 * df-scan.c (df_scan_free_bb_info): Likewise.
6016 (df_scan_start_dump): Likewise.
6017 (df_scan_start_block): Likewise.
6018 (df_install_ref_incremental): Likewise for local "insn".
6019 (df_insn_rescan_all): Likewise.
6020 (df_reorganize_refs_by_reg_by_insn): Likewise.
6021 (df_reorganize_refs_by_insn_bb): Likewise.
6022 (df_recompute_luids): Likewise.
6023 (df_bb_refs_record): Likewise.
6024 (df_update_entry_exit_and_calls): Likewise.
6025 (df_bb_verify): Likewise.
6027 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6029 * ddg.h (struct ddg_node): Strengthen fields "insn" and
6030 "first_note" from rtx to rtx_insn *.
6031 (get_node_of_insn): Likewise for param 2 "insn".
6032 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6034 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6036 (mem_write_insn_p): Likewise.
6037 (mem_access_insn_p): Likewise.
6038 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6039 (def_has_ccmode_p): Likewise for param "insn".
6040 (add_cross_iteration_register_deps): Likewise for locals
6041 "def_insn" and "use_insn".
6042 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6043 (build_intra_loop_deps): Likewise for local "src_insn".
6044 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
6046 (get_node_of_insn): Likewise for param "insn".
6048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6050 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
6051 (deletable_insn_p): Strengthen param "insn" from rtx to
6052 rtx_insn *. Add checked cast to rtx_call_insn when invoking
6053 find_call_stack_args, since this is guarded by CALL_P (insn).
6054 (marked_insn_p): Strengthen param "insn" from rtx to
6056 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
6057 invoking find_call_stack_args, since this is guarded by
6059 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
6060 rtx_insn *; we know this is an insn since this was called by
6062 (mark_nonreg_stores_2): Likewise.
6063 (mark_nonreg_stores): Strengthen param "insn" from rtx to
6065 (find_call_stack_args): Strengthen param "call_insn" from rtx to
6066 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
6068 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
6069 from rtx to rtx_insn *.
6070 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
6072 (delete_unmarked_insns): Likewise for locals "insn", "next".
6073 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
6074 (mark_reg_dependencies): Likewise for param "insn".
6075 (rest_of_handle_ud_dce): Likewise for local "insn".
6076 (word_dce_process_block): Likewise.
6077 (dce_process_block): Likewise.
6079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6081 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
6082 from rtx to rtx_insn *.
6083 (struct change_cc_mode_args): Likewise for field "insn".
6084 (this_insn): Strengthen from rtx to rtx_insn *.
6085 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
6087 (validate_canon_reg): Strengthen param "insn" from rtx to
6089 (canon_reg): Likewise.
6090 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
6092 (record_jump_equiv): Strengthen param "insn" from rtx to
6094 (try_back_substitute_reg): Likewise, also for locals "prev",
6096 (find_sets_in_insn): Likewise for param "insn".
6097 (canonicalize_insn): Likewise.
6098 (cse_insn): Likewise. Add a checked cast.
6099 (invalidate_from_clobbers): Likewise for param "insn".
6100 (invalidate_from_sets_and_clobbers): Likewise.
6101 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6103 (cse_prescan_path): Strengthen local "insn" from rtx to
6105 (cse_extended_basic_block): Likewise for locals "insn" and
6107 (cse_main): Likewise for param "f".
6108 (check_for_label_ref): Likewise for local "insn".
6109 (set_live_p): Likewise for second param ("insn").
6110 (insn_live_p): Likewise for first param ("insn") and for local
6112 (cse_change_cc_mode_insn): Likewise for first param "insn".
6113 (cse_change_cc_mode_insns): Likewise for first and second params
6115 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6117 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6120 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6122 Anna Tikhonova <anna.tikhonova@intel.com>
6123 Ilya Tocar <ilya.tocar@intel.com>
6124 Andrey Turetskiy <andrey.turetskiy@intel.com>
6125 Ilya Verbin <ilya.verbin@intel.com>
6126 Kirill Yukhin <kirill.yukhin@intel.com>
6127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6129 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6131 * config/i386/sse.md
6132 (define_mode_iterator VI248_AVX2): Delete.
6133 (define_mode_iterator VI2_AVX2_AVX512BW): New.
6134 (define_mode_iterator VI48_AVX2): Ditto.
6135 (define_insn <shift_insn><mode>3): Delete.
6136 (define_insn "<shift_insn><mode>3<mask_name>" with
6137 VI2_AVX2_AVX512BW): New.
6138 (define_insn "<shift_insn><mode>3<mask_name>" with
6141 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6143 Anna Tikhonova <anna.tikhonova@intel.com>
6144 Ilya Tocar <ilya.tocar@intel.com>
6145 Andrey Turetskiy <andrey.turetskiy@intel.com>
6146 Ilya Verbin <ilya.verbin@intel.com>
6147 Kirill Yukhin <kirill.yukhin@intel.com>
6148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6150 * config/i386/sse.md
6151 (define_mode_iterator VI4F_BRCST32x2): New.
6152 (define_mode_attr 64x2_mode): Ditto.
6153 (define_mode_attr 32x2mode): Ditto.
6154 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6155 with VI4F_BRCST32x2): Ditto.
6156 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6157 with V16FI mode iterator): Ditto.
6158 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6160 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6161 with VI8F_BRCST64x2): Ditto.
6163 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
6164 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6165 Anna Tikhonova <anna.tikhonova@intel.com>
6166 Ilya Tocar <ilya.tocar@intel.com>
6167 Andrey Turetskiy <andrey.turetskiy@intel.com>
6168 Ilya Verbin <ilya.verbin@intel.com>
6169 Kirill Yukhin <kirill.yukhin@intel.com>
6170 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6172 * config/i386/sse.md
6173 (define_mode_iterator VI8_AVX512VL): New.
6174 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6176 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
6178 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6179 (define_mode_iterator V48_AVX512VL): New.
6180 (define_mode_iterator V12_AVX512VL): Ditto.
6181 (define_insn <avx512>_load<mode>_mask): Split into two similar
6182 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6183 Refactor output template.
6184 (define_insn "<avx512>_store<mode>_mask"): Ditto.
6186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6188 * cprop.c (struct occr): Strengthen field "insn" from rtx to
6190 (reg_available_p): Likewise for param "insn".
6191 (insert_set_in_table): Likewise.
6192 (hash_scan_set): Likewise.
6193 (hash_scan_insn): Likewise.
6194 (make_set_regs_unavailable): Likewise.
6195 (compute_hash_table_work): Likewise for local "insn".
6196 (reg_not_set_p): Strengthen param "insn" from const_rtx to
6198 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6199 (try_replace_reg): Likewise.
6200 (find_avail_set): Likewise.
6201 (cprop_jump): Likewise for params "setcc", "jump".
6202 (constprop_register): Likewise for param "insn".
6203 (cprop_insn): Likewise.
6204 (do_local_cprop): Likewise.
6205 (local_cprop_pass): Likewise for local "insn".
6206 (bypass_block): Likewise for params "setcc" and "jump".
6207 (bypass_conditional_jumps): Likewise for locals "setcc" and
6209 (one_cprop_pass): Likewise for local "insn".
6211 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6213 * compare-elim.c (struct comparison_use): Strengthen field "insn"
6214 from rtx to rtx_insn *.
6215 (struct comparison): Likewise, also for field "prev_clobber".
6216 (conforming_compare): Likewise for param "insn".
6217 (arithmetic_flags_clobber_p): Likewise.
6218 (find_flags_uses_in_insn): Likewise.
6219 (find_comparison_dom_walker::before_dom_children): Likewise for
6220 locals "insn", "next", "last_clobber".
6221 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6225 * combine-stack-adj.c (struct csa_reflist): Strengthen field
6226 "insn" from rtx to rtx_insn *.
6227 (single_set_for_csa): Likewise for param "insn".
6228 (record_one_stack_ref): Likewise.
6229 (try_apply_stack_adjustment): Likewise.
6230 (struct record_stack_refs_data): Likewise for field "insn".
6231 (maybe_move_args_size_note): Likewise for params "last" and "insn".
6232 (prev_active_insn_bb): Likewise for return type and param "insn".
6233 (next_active_insn_bb): Likewise.
6234 (force_move_args_size_note): Likewise for params "prev" and "last"
6235 and locals "test", "next_candidate", "prev_candidate".
6236 (combine_stack_adjustments_for_block): Strengthen locals
6237 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6240 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6242 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6243 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6244 (subst_insn): Likewise for this variable.
6245 (added_links_insn): Likewise.
6246 (struct insn_link): Likewise for field "insn".
6247 (alloc_insn_link): Likewise for param "insn".
6248 (struct undobuf): Likewise for field "other_insn".
6249 (find_single_use): Likewise for param "insn" and local "next".
6250 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6251 (delete_noop_moves): Likewise for locals "insn", "next".
6252 (create_log_links): Likewise for locals "insn", "use_insn".
6253 Strengthen local "next_use" from rtx * to rtx_insn **.
6254 (insn_a_feeds_b): Likewise for params "a", "b".
6255 (combine_instructions): Likewise for param "f" and locals "insn",
6256 "next", "prev", "first", "last_combined_insn", "link", "link1",
6257 "temp". Replace use of NULL_RTX with NULL when referring to
6259 (setup_incoming_promotions): Likewise for param "first"
6260 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6261 (can_combine_p): Likewise for params "insn", "i3", "pred",
6262 "pred2", "succ", "succ2" and for local "p".
6263 (combinable_i3pat): Likewise for param "i3".
6264 (cant_combine_insn_p): Likewise for param "insn".
6265 (likely_spilled_retval_p): Likewise.
6266 (adjust_for_new_dest): Likewise.
6267 (update_cfg_for_uncondjump): Likewise, also for local "insn".
6268 (try_combine): Likewise for return type and for params "i3", "i2",
6269 "i1", "i0", "last_combined_insn", and for locals "insn",
6270 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6271 "i0_insn". Eliminate local "tem" in favor of new locals
6272 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
6273 checked cast for now to rtx_insn * on the return type of
6274 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
6276 (find_split_point): Strengthen param "insn" from rtx to
6278 (simplify_set): Likewise for local "other_insn".
6279 (recog_for_combine): Likewise for param "insn".
6280 (record_value_for_reg): Likewise.
6281 (record_dead_and_set_regs_1): Likewise for local
6283 (record_dead_and_set_regs): Likewise for param "insn".
6284 (record_promoted_value): Likewise.
6285 (check_promoted_subreg): Likewise.
6286 (get_last_value_validate): Likewise.
6287 (reg_dead_at_p): Likewise.
6288 (move_deaths): Likewise for param "to_insn".
6289 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6290 and locals "place", "place2", "cc0_setter". Eliminate local "tem
6291 in favor of new locals "tem_note" and "tem_insn", the latter being
6293 (distribute_links): Strengthen locals "place", "insn" from rtx to
6296 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6298 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6300 (can_delete_label_p): Require a const rtx_code_label * rather than
6302 (delete_insn): Add checked cast to rtx_code_label * when we know
6303 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
6305 (delete_insn_chain): Strengthen locals "prev" and "current" from
6306 rtx to rtx_insn *. Add a checked cast when assigning from
6307 "finish" (strengthening the params will come later). Add a
6308 checked cast to rtx_note * in region where we know
6310 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6312 (compute_bb_for_insn): Likewise.
6313 (free_bb_for_insn): Likewise for local "insn".
6314 (compute_bb_for_insn): Likewise.
6315 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6316 local "insn" from rtx to rtx_insn *
6317 (flow_active_insn_p): Require a const rtx_insn * rather than a
6319 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6321 (can_fallthru): Likewise for locals "insn" and "insn2".
6322 (bb_note): Likewise for local "note".
6323 (first_insn_after_basic_block_note): Likewise for local "note" and
6325 (rtl_split_block): Likewise for locals "insn" and "next".
6326 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6328 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6329 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6331 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6332 them), "kill_from", "barrier", "new_insn".
6333 (patch_jump_insn): Likewise for params "insn", "old_label".
6334 (redirect_branch_edge): Likewise for locals "old_label", "insn".
6335 (force_nonfallthru_and_redirect): Likewise for locals "insn",
6336 "old_label", "new_label".
6337 (rtl_tidy_fallthru_edge): Likewise for local "q".
6338 (rtl_split_edge): Likewise for locals "before", "last".
6339 (commit_one_edge_insertion): Likewise for locals "before",
6340 "after", "insns", "tmp", "last", adding a checked cast where
6341 currently necessary.
6342 (commit_edge_insertions): Likewise.
6343 (rtl_dump_bb): Likewise for locals "insn", "last".
6344 (print_rtl_with_bb): Likewise for local "x".
6345 (rtl_verify_bb_insns): Likewise for local "x".
6346 (rtl_verify_bb_pointers): Likewise for local "insn".
6347 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6349 (rtl_verify_fallthru): Likewise for local "insn".
6350 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6351 (purge_dead_edges): Likewise for local "insn".
6352 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6353 (skip_insns_after_block): Likewise for return type and for locals
6354 "insn", "last_insn", "next_head", "prev".
6355 (record_effective_endpoints): Likewise for locals "next_insn",
6357 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6358 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6359 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6360 (duplicate_insn_chain): For now, add checked cast from rtx to
6361 rtx_insn * when returning insn.
6362 (cfg_layout_duplicate_bb): Likewise for local "insn".
6363 (cfg_layout_delete_block): Likewise for locals "insn", "next",
6365 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6366 (rtl_block_empty_p): Likewise.
6367 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6368 "split_point", "last".
6369 (rtl_block_ends_with_call_p): Likewise for local "insn".
6370 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6372 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6373 "split_at_insn" from rtx to rtx_insn *.
6374 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6375 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6376 to const rtx_insn *.
6377 (rtl_account_profile_record): Likewise.
6379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6381 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6383 (average_num_loop_insns): Likewise.
6384 (init_set_costs): Likewise for local "seq".
6385 (seq_cost): Likewise for param "seq", from const_rtx to const
6388 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6390 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6393 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6395 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6396 "f1" and "f2" from rtx * to rtx_insn **.
6397 (flow_find_head_matching_sequence): Likewise.
6399 * cfgcleanup.c (try_simplify_condjump): Strengthen local
6400 "cbranch_insn" from rtx to rtx_insn *.
6401 (thread_jump): Likewise for local "insn".
6402 (try_forward_edges): Likewise for local "last".
6403 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6404 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6406 (can_replace_by): Likewise for params "i1", "i2".
6407 (old_insns_match_p): Likewise.
6408 (merge_notes): Likewise.
6409 (walk_to_nondebug_insn): Likewise for param "i1".
6410 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6411 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
6412 "afterlast1", "afterlast2" from rtx to rtx_insn *.
6413 (flow_find_head_matching_sequence): Strengthen params "f1" and
6414 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
6415 "last1", "last2", "beforelast1", "beforelast2" from rtx to
6417 (outgoing_edges_match): Likewise for locals "last1", "last2".
6418 (try_crossjump_to_edge): Likewise for local "insn".
6419 Replace call to for_each_rtx with for_each_rtx_in_insn.
6421 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6422 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6423 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
6424 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6425 (try_optimize_cfg): Strengthen local "last" from rtx to
6427 (delete_dead_jumptables): Likewise for locals "insn", "next",
6430 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6431 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6432 "rtx else_first_tail", to reflect the basic-block.h changes above.
6434 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6436 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6438 (purge_dead_tablejump_edges): Likewise.
6439 (find_bb_boundaries): Likewise for locals "insn", "end",
6440 "flow_transfer_insn".
6442 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6444 * caller-save.c (save_call_clobbered_regs): Strengthen locals
6445 "ins" and "prev" from rtx to rtx_insn *.
6447 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6449 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6451 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6452 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6454 (load_register_parameters): Likewise for local "before_arg".
6455 (check_sibcall_argument_overlap): Likewise for param "insn".
6456 (expand_call): Likewise for locals "normal_call_insns",
6457 "tail_call_insns", "insns", "before_call", "after_args",
6458 "before_arg", "last", "prev". Strengthen one of the "last" from
6459 rtx to rtx_call_insn *.
6460 (fixup_tail_calls): Strengthen local "insn" from rtx to
6462 (emit_library_call_value_1): Likewise for locals "before_call" and
6465 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6467 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6468 and "last" from rtx to rtx_insn *.
6469 (expand_builtin_nonlocal_goto): Likewise for local "insn".
6470 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6472 (expand_errno_check): Strengthen local "lab" from rtx to
6474 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6476 (expand_builtin_mathfn_2): Likewise.
6477 (expand_builtin_mathfn_ternary): Likewise.
6478 (expand_builtin_mathfn_3): Likewise.
6479 (expand_builtin_interclass_mathfn): Likewise for local "last".
6480 (expand_builtin_int_roundingfn): Likewise for local "insns".
6481 (expand_builtin_int_roundingfn_2): Likewise.
6482 (expand_builtin_strlen): Likewise for local "before_strlen".
6483 (expand_builtin_strncmp): Likewise for local "seq".
6484 (expand_builtin_signbit): Likewise for local "last".
6485 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6486 from rtx to rtx_code_label *.
6487 (expand_stack_restore): Strengthen local "prev" from rtx to
6490 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6492 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6494 (struct btr_def_s): Likewise.
6495 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6497 (add_btr_def): Likewise.
6498 (new_btr_user): Likewise.
6499 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6501 (link_btr_uses): Likewise.
6502 (move_btr_def): Likewise for locals "insp", "old_insn",
6503 "new_insn". Add checked cast to rtx_insn * for now on result of
6505 (can_move_up): Strengthen param "insn" from const_rtx to
6508 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6510 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6512 (get_uncond_jump_length): Likewise for locals "label", "jump".
6513 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6515 (add_labels_and_missing_jumps): Likewise for local "new_jump".
6516 (fix_up_fall_thru_edges): Likewise for local "old_jump".
6517 (find_jump_block): Likewise for local "insn".
6518 (fix_crossing_conditional_branches): Likewise for locals
6519 "old_jump", "new_jump".
6520 (fix_crossing_unconditional_branches): Likewise for locals
6521 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6522 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6524 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6526 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6528 (struct mem_insn): Likewise for field "insn".
6529 (reg_next_use): Strengthen from rtx * to rtx_insn **.
6530 (reg_next_inc_use): Likewise.
6531 (reg_next_def): Likewise.
6532 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6533 from rtx to rtx_insn *.
6534 (move_insn_before): Likewise for param "next_insn" and local "insns".
6535 (attempt_change): Likewise for local "mov_insn".
6536 (try_merge): Likewise for param "last_insn".
6537 (get_next_ref): Likewise for return type and local "insn".
6538 Strengthen param "next_array" from rtx * to rtx_insn **.
6539 (parse_add_or_inc): Strengthen param "insn" from rtx to
6541 (find_inc): Likewise for locals "insn" and "other_insn" (three of
6543 (merge_in_block): Likewise for locals "insn", "curr",
6545 (pass_inc_dec::execute): Update allocations of the arrays to
6546 reflect the stronger types.
6548 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6550 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6551 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
6552 from rtx to rtx_code_label *.
6554 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6556 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6559 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6561 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6562 generated a warning and prevented bootstrapping the compiler.
6564 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6566 * rtl.h (delete_related_insns): Strengthen return type from rtx to
6569 * jump.c (delete_related_insns): Likewise, also for locals "next"
6572 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6574 * genautomata.c (output_internal_insn_latency_func): When writing
6575 the function "internal_insn_latency" to insn-automata.c,
6576 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6577 allowing the optional guard function of (define_bypass) clauses to
6578 expect a pair of rtx_insn *, rather than a pair of rtx.
6579 (output_insn_latency_func): When writing the function
6580 "insn_latency", add an "uncast_" prefix to params "insn" and
6581 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6582 using checked casts from the params, thus enabling the above
6583 change to the generated "internal_insn_latency" function.
6585 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
6587 PR tree-optimization/62091
6588 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6589 handle correctly arrays.
6590 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6592 (record_known_type): Walk into inner type.
6593 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6594 condition on no type changes.
6596 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6598 * genattrtab.c (write_attr_get): Within the generated get_attr_
6599 functions, rename param "insn" to "uncast_insn" and reintroduce
6600 "insn" as an local rtx_insn * using a checked cast, so that "insn"
6601 is an rtx_insn * within insn-attrtab.c
6603 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6605 * output.h (peephole): Strengthen return type from rtx to
6607 * rtl.h (delete_for_peephole): Likewise for both params.
6608 * genpeep.c (main): In generated "peephole" function, strengthen
6609 return type and local "insn" from rtx to rtx_insn *. For now,
6610 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6611 rtx_insn *, with a checked cast.
6612 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6613 locals "insn", "next", "prev" from rtx to rtx_insn *.
6615 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
6617 PR tree-optimization/62112
6618 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6619 * gimple-iterator.h (gsi_replace): Return bool.
6620 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6621 moved from ref_may_alias_global_p.
6622 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6624 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6625 (stmt_kills_ref_p_1): Rename...
6626 (stmt_kills_ref_p): ... to this.
6627 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6628 stmt_kills_ref_p): Declare.
6629 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6630 Move the self-assignment case...
6631 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6633 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6635 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6637 * emit-rtl.c (try_split): Likewise, also for locals "before" and
6638 "after". For now, don't strengthen param "trial", which requires
6639 adding checked casts when returning it.
6641 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6643 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6644 "label" from rtx to rtx_code_label *. Strengthen param 1 of
6645 "var_location" hook from rtx to rtx_insn *.
6646 (debug_nothing_rtx): Delete in favor of...
6647 (debug_nothing_rtx_code_label): New prototype.
6648 (debug_nothing_rtx_rtx): Delete unused prototype.
6649 (debug_nothing_rtx_insn): New prototype.
6651 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6652 invoking debug_hooks->var_location (in two places, one in a NOTE
6653 case of a switch statement, the other guarded by a CALL_P
6654 conditional. Add checked cast to rtx_code_label * when invoking
6655 debug_hooks->label (within CODE_LABEL case of switch statement).
6657 * dbxout.c (dbx_debug_hooks): Update "label" hook from
6658 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6659 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6660 (xcoff_debug_hooks): Likewise.
6661 * debug.c (do_nothing_debug_hooks): Likewise.
6662 (debug_nothing_rtx): Delete in favor of...
6663 (debug_nothing_rtx_insn): New function.
6664 (debug_nothing_rtx_rtx): Delete unused function.
6665 (debug_nothing_rtx_code_label): New function.
6666 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6667 debug_nothing_rtx to debug_nothing_rtx_code_label.
6668 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6670 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6671 debug_nothing_rtx to debug_nothing_rtx_insn.
6672 (sdbout_label): Strengthen param "insn" from rtx to
6674 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6675 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6676 "var_location" hook from debug_nothing_rtx to
6677 debug_nothing_rtx_insn.
6679 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6681 * recog.h (insn_output_fn): Update this function typedef to match
6682 the changes below to the generated output functions, strengthening
6683 the 2nd param from rtx to rtx_insn *.
6685 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
6686 insn when invoking an output function, to match the new signature
6687 of insn_output_fn with a stronger second param.
6689 * genconditions.c (write_header): In the generated code for
6690 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
6691 to match the other changes in this patch.
6693 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
6694 the generated "gen_" functions from rtx to rtx_insn * within their
6697 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
6698 the subfunctions within the generated "recog_", "split", "peephole2"
6699 function trees from rtx to rtx_insn *. For now, the top-level
6700 generated functions ("recog", "split", "peephole2") continue to
6701 take a plain rtx for "insn", to avoid introducing dependencies on
6702 other patches. Rename this 2nd param from "insn" to
6703 "uncast_insn", and reintroduce "insn" as a local variable of type
6704 rtx_insn *, initialized at the top of the generated function with
6705 a checked cast on "uncast_insn".
6706 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
6707 the generated "gen_" functions from rtx to rtx_insn * within their
6710 * genoutput.c (process_template): Strengthen the 2nd param within
6711 the generated "output_" functions "insn" from rtx to rtx_insn *.
6713 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6715 * tree-profile.c (tree_profiling): Skip external functions
6716 when doing coverage instrumentation.
6717 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
6719 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6721 * config/rs6000/altivec.h (vec_cpsgn): New #define.
6722 (vec_mergee): Likewise.
6723 (vec_mergeo): Likewise.
6724 (vec_cntlz): Likewise.
6725 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
6726 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
6727 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
6729 * doc/extend.texi: Document various forms of vec_cpsgn,
6730 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
6731 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
6732 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
6733 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
6734 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
6736 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6738 * config/rs6000/rs6000.c (context.h): New include.
6739 (tree-pass.h): Likewise.
6740 (make_pass_analyze_swaps): New decl.
6741 (rs6000_option_override): Register pass_analyze_swaps.
6742 (swap_web_entry): New subsclass of web_entry_base (df.h).
6743 (special_handling_values): New enum.
6744 (union_defs): New function.
6745 (union_uses): Likewise.
6746 (insn_is_load_p): Likewise.
6747 (insn_is_store_p): Likewise.
6748 (insn_is_swap_p): Likewise.
6749 (rtx_is_swappable_p): Likewise.
6750 (insn_is_swappable_p): Likewise.
6751 (chain_purpose): New enum.
6752 (chain_contains_only_swaps): New function.
6753 (mark_swaps_for_removal): Likewise.
6754 (swap_const_vector_halves): Likewise.
6755 (adjust_subreg_index): Likewise.
6756 (permute_load): Likewise.
6757 (permute_store): Likewise.
6758 (handle_special_swappables): Likewise.
6759 (replace_swap_with_copy): Likewise.
6760 (dump_swap_insn_table): Likewise.
6761 (rs6000_analyze_swaps): Likewise.
6762 (pass_data_analyze_swaps): New pass_data.
6763 (pass_analyze_swaps): New rtl_opt_pass.
6764 (make_pass_analyze_swaps): New function.
6765 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
6767 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6769 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
6770 type from rtx to rtx_insn *.
6771 (create_copy_of_insn_rtx): Likewise.
6772 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
6773 (create_copy_of_insn_rtx): Likewise, also for local "res".
6775 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6777 * rtl.h (find_first_parameter_load): Strengthen return type from
6779 * rtlanal.c (find_first_parameter_load): Strengthen return type
6780 from rtx to rtx_insn *. Add checked cast for now, to postpone
6781 strengthening the params.
6783 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6786 * diagnostic.c: Set default caret.
6787 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
6789 * diagnostic.h (struct diagnostic_context):
6791 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6793 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
6794 (sel_bb_head): Strengthen return type insn_t (currently just an
6796 (sel_bb_end): Likewise.
6798 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
6799 (sel_bb_head): Strengthen return type and local "head" from
6800 insn_t (currently just an rtx) to rtx_insn *.
6801 (sel_bb_end): Likewise for return type.
6802 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
6805 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6807 * basic-block.h (get_last_bb_insn): Strengthen return type from
6809 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
6812 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6815 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
6817 (diagnostic_report_diagnostic): ... from here.
6818 * toplev.c (general_init): Move code to c-family.
6820 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6822 * df.h (web_entry_base): Replace existing struct web_entry with a
6823 new class web_entry_base with only the predecessor member.
6824 (unionfind_root): Remove declaration and move to class member.
6825 (unionfind_union): Remove declaration and move to friend
6827 (union_defs): Remove declaration.
6828 * web.c (web_entry_base::unionfind_root): Modify to be member
6829 function and adjust accessors.
6830 (unionfind_union): Modify to be friend function and adjust
6832 (web_entry): New subclass of web_entry_base containing the reg
6834 (union_match_dups): Modify for struct -> class changes.
6835 (union_defs): Likewise.
6836 (entry_register): Likewise.
6837 (pass_web::execute): Likewise.
6839 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
6841 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
6842 builtin define __VEC_ELEMENT_REG_ORDER__.
6844 2014-08-20 Martin Jambor <mjambor@suse.cz>
6845 Wei Mi <wmi@google.com>
6849 * tree-ssa-operands.c (update_stmt_operands): Remove
6850 MODIFIED_NORETURN_CALLS.
6851 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
6852 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
6853 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
6854 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
6855 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
6856 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
6857 (gimple_call_set_ctrl_altering): New func.
6858 (gimple_call_ctrl_altering_p): Ditto.
6859 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
6860 (make_blocks): Use gimple_call_initialize_ctrl_altering.
6861 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
6862 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
6863 remove MODIFIED_NORETURN_CALLS.
6865 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6867 * coverage.c (coverage_compute_profile_id): Return non-0;
6868 also handle symbols with unique name.
6869 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
6871 2014-08-20 Steve Ellcey <sellcey@mips.com>
6874 * doc/sourcebuild.texi (non_strict_align): New.
6876 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6878 * cgraphunit.c (ipa_passes, compile): Reshedule
6879 symtab_remove_unreachable_nodes passes; update comments.
6880 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
6881 TODO_remove_functions before the pass; the functions ought to be
6883 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
6884 TODO_remove_functions.
6885 * passes.c (pass_data_early_local_passes): Do not schedule function
6887 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
6889 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6892 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
6893 before setting the option.
6894 * diagnostic.c (diagnostic_classify_diagnostic): Record
6895 command-line status.
6897 2014-08-20 Richard Biener <rguenther@suse.de>
6900 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
6901 to build uint{16,32,64}_type_node.
6903 2014-08-20 Terry Guo <terry.guo@arm.com>
6905 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
6906 with immediate_operand.
6908 2014-08-20 David Malcolm <dmalcolm@redhat.com>
6910 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
6911 "insn" from an as_a to a safe_as_a, for the case when "insn" is
6914 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6916 PR preprocessor/51303
6917 * incpath.c (remove_duplicates): Use cpp_warning.
6919 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6923 * doc/options.texi (CPP): Document it.
6924 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
6925 * optc-gen.awk: Handle CPP.
6926 * opth-gen.awk: Likewise.
6928 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6930 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
6932 (duplicate_insn_chain): Likewise.
6933 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
6934 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
6935 checked cast for now (until we can strengthen the params in the
6937 (duplicate_insn_chain): Likewise.
6939 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6941 * rtl.h (next_cc0_user): Strengthen return type from rtx to
6943 (prev_cc0_setter): Likewise.
6945 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
6946 rtx_insn *, adding checked casts for now as necessary.
6947 (prev_cc0_setter): Likewise.
6949 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6951 * expr.h (emit_move_insn): Strengthen return type from rtx to
6953 (emit_move_insn_1): Likewise.
6954 (emit_move_complex_push): Likewise.
6955 (emit_move_complex_parts): Likewise.
6957 * expr.c (emit_move_via_integer): Strengthen return type from rtx
6958 to rtx_insn *. Replace use of NULL_RTX with NULL when working
6960 (emit_move_complex_push): Strengthen return type from rtx to
6962 (emit_move_complex): Likewise, also for local "ret".
6963 (emit_move_ccmode): Likewise.
6964 (emit_move_multi_word): Likewise for return type and locals
6966 (emit_move_insn_1): Likewise for return type and locals "result",
6968 (emit_move_insn): Likewise for return type and local "last_insn".
6969 (compress_float_constant): Likewise.
6971 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6973 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
6974 from rtx to rtx_insn *.
6976 * rtl.h (emit_insn_before): Likewise.
6977 (emit_insn_before_noloc): Likewise.
6978 (emit_insn_before_setloc): Likewise.
6979 (emit_jump_insn_before): Likewise.
6980 (emit_jump_insn_before_noloc): Likewise.
6981 (emit_jump_insn_before_setloc): Likewise.
6982 (emit_call_insn_before): Likewise.
6983 (emit_call_insn_before_noloc): Likewise.
6984 (emit_call_insn_before_setloc): Likewise.
6985 (emit_debug_insn_before): Likewise.
6986 (emit_debug_insn_before_noloc): Likewise.
6987 (emit_debug_insn_before_setloc): Likewise.
6988 (emit_label_before): Likewise.
6989 (emit_insn_after): Likewise.
6990 (emit_insn_after_noloc): Likewise.
6991 (emit_insn_after_setloc): Likewise.
6992 (emit_jump_insn_after): Likewise.
6993 (emit_jump_insn_after_noloc): Likewise.
6994 (emit_jump_insn_after_setloc): Likewise.
6995 (emit_call_insn_after): Likewise.
6996 (emit_call_insn_after_noloc): Likewise.
6997 (emit_call_insn_after_setloc): Likewise.
6998 (emit_debug_insn_after): Likewise.
6999 (emit_debug_insn_after_noloc): Likewise.
7000 (emit_debug_insn_after_setloc): Likewise.
7001 (emit_label_after): Likewise.
7002 (emit_insn): Likewise.
7003 (emit_debug_insn): Likewise.
7004 (emit_jump_insn): Likewise.
7005 (emit_call_insn): Likewise.
7006 (emit_label): Likewise.
7007 (gen_clobber): Likewise.
7008 (emit_clobber): Likewise.
7009 (gen_use): Likewise.
7010 (emit_use): Likewise.
7013 (emit_barrier_before): Strengthen return type from rtx to
7015 (emit_barrier_after): Likewise.
7016 (emit_barrier): Likewise.
7018 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
7019 from rtx to rtx_insn *. Add checked casts for now when converting
7020 "last" from rtx to rtx_insn *.
7021 (emit_insn_before_noloc): Likewise for return type.
7022 (emit_jump_insn_before_noloc): Likewise.
7023 (emit_call_insn_before_noloc): Likewise.
7024 (emit_debug_insn_before_noloc): Likewise.
7025 (emit_barrier_before): Strengthen return type and local "insn"
7026 from rtx to rtx_barrier *.
7027 (emit_label_before): Strengthen return type from rtx to
7028 rtx_insn *. Add checked cast for now when returning param
7029 (emit_pattern_after_noloc): Strengthen return type from rtx to
7030 rtx_insn *. Add checked casts for now when converting "last" from
7032 (emit_insn_after_noloc): Strengthen return type from rtx to
7034 (emit_jump_insn_after_noloc): Likewise.
7035 (emit_call_insn_after_noloc): Likewise.
7036 (emit_debug_insn_after_noloc): Likewise.
7037 (emit_barrier_after): Strengthen return type from rtx to
7039 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7040 Add checked cast for now when converting "label" from rtx to
7042 (emit_pattern_after_setloc): Strengthen return type from rtx to
7043 rtx_insn *. Add checked casts for now when converting "last" from
7045 (emit_pattern_after): Strengthen return type from rtx to
7047 (emit_insn_after_setloc): Likewise.
7048 (emit_insn_after): Likewise.
7049 (emit_jump_insn_after_setloc): Likewise.
7050 (emit_jump_insn_after): Likewise.
7051 (emit_call_insn_after_setloc): Likewise.
7052 (emit_call_insn_after): Likewise.
7053 (emit_debug_insn_after_setloc): Likewise.
7054 (emit_debug_insn_after): Likewise.
7055 (emit_pattern_before_setloc): Likewise. Add checked casts for now
7056 when converting "last" from rtx to rtx_insn *.
7057 (emit_pattern_before): Strengthen return type from rtx to
7059 (emit_insn_before_setloc): Likewise.
7060 (emit_insn_before): Likewise.
7061 (emit_jump_insn_before_setloc): Likewise.
7062 (emit_jump_insn_before): Likewise.
7063 (emit_call_insn_before_setloc): Likewise.
7064 (emit_call_insn_before): Likewise.
7065 (emit_debug_insn_before_setloc): Likewise.
7066 (emit_debug_insn_before): Likewise.
7067 (emit_insn): Strengthen return type and locals "last", "insn",
7068 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
7069 within cases where we know we have an insn.
7070 (emit_debug_insn): Likewise.
7071 (emit_jump_insn): Likewise.
7072 (emit_call_insn): Strengthen return type and local "insn" from rtx
7074 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
7075 a checked cast to rtx_insn * for now on "label".
7076 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
7077 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
7078 (emit_use): Likewise.
7079 (gen_use): Likewise, also for local "seq".
7080 (emit): Likewise for return type and local "insn".
7081 (rtx_insn): Likewise for return type and local "new_rtx".
7083 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
7084 from rtx to rtx_barrier *.
7086 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
7087 changed return type from rtx to rtx_insn *, we must update
7088 "emit_fn" type, and this in turn means updating...
7089 (frame_insn): ...this. Strengthen return type from rtx to
7090 rtx_insn *. Introduce a new local "insn" of the appropriate type.
7092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7094 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
7095 rtx to rtx_jump_table_data *. Also for local.
7096 * rtl.h (emit_jump_table_data): Likewise.
7098 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7100 * basic-block.h (create_basic_block_structure): Strengthen third
7101 param "bb_note" from rtx to rtx_note *.
7102 * rtl.h (emit_note_before): Strengthen return type from rtx to
7104 (emit_note_after): Likewise.
7105 (emit_note): Likewise.
7106 (emit_note_copy): Likewise. Also, strengthen param similarly.
7107 * function.h (struct rtl_data): Strengthen field
7108 "x_stack_check_probe_note" from rtx to rtx_note *.
7110 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7111 from rtx to rtx_note *.
7112 * cfgrtl.c (create_basic_block_structure): Strengthen third param
7113 "bb_note" from rtx to rtx_note *.
7114 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
7115 when calling emit_note_copy.
7116 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7118 (emit_note_after): Likewise.
7119 (emit_note_before): Likewise.
7120 (emit_note_copy): Likewise. Also, strengthen param similarly.
7121 (emit_note): Likewise.
7122 * except.c (emit_note_eh_region_end): Likewise for return type.
7123 Strengthen local "next" from rtx to rtx_insn *.
7124 (convert_to_eh_region_ranges): Strengthen local "note"
7125 from rtx to rtx_note *.
7126 * final.c (change_scope): Likewise.
7127 (reemit_insn_block_notes): Likewise, for both locals named "note".
7128 Also, strengthen local "insn" from rtx to rtx_insn *.
7129 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7131 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7132 strengthen local "seq" from rtx to rtx_insn *.
7133 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7135 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7137 (get_bb_note_from_pool): Strengthen return type from rtx to
7139 (sel_create_basic_block): Strengthen local "new_bb_note" from
7140 insn_t to rtx_note *.
7141 * var-tracking.c (emit_note_insn_var_location): Strengthen local
7142 "note" from rtx to rtx_note *.
7143 (emit_notes_in_bb): Likewise.
7145 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7147 * function.h (struct rtl_data): Strengthen field
7148 "x_parm_birth_insn" from rtx to rtx_insn *.
7149 * function.c (struct assign_parm_data_all): Strengthen fields
7150 "first_conversion_insn" and "last_conversion_insn" from rtx to
7153 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7155 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7156 to rtx_insn *; also for local "var_end_seq".
7157 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7158 (maybe_cleanup_end_of_block): Likewise for param "last" and local
7160 (expand_gimple_cond): Likewise for locals "last2" and "last".
7161 (mark_transaction_restart_calls): Likewise for local "insn".
7162 (expand_gimple_stmt): Likewise for return type and locals "last"
7164 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7165 (avoid_complex_debug_insns): Likewise for param "insn".
7166 (expand_debug_locations): Likewise for locals "insn", "last",
7167 "prev_insn" and "insn2".
7168 (expand_gimple_basic_block): Likewise for local "last".
7169 (construct_exit_block): Likewise for locals "head", "end",
7171 (pass_expand::execute): Likewise for locals "var_seq",
7172 "var_ret_seq", "next".
7174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7176 * asan.h (asan_emit_stack_protection): Strengthen return type from
7178 * asan.c (asan_emit_stack_protection): Likewise. Add local
7179 "insns" to hold the return value.
7181 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7183 * basic-block.h (bb_note): Strengthen return type from rtx to
7185 * sched-int.h (bb_note): Likewise.
7186 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
7188 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7190 * rtl.h (make_insn_raw): Strengthen return type from rtx to
7193 * emit-rtl.c (make_insn_raw): Strengthen return type and local
7194 "insn" from rtx to rtx_insn *.
7195 (make_debug_insn_raw): Strengthen return type from rtx to
7196 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7197 (make_jump_insn_raw): Strengthen return type from rtx to
7198 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7199 (make_call_insn_raw): Strengthen return type from rtx to
7200 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7201 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7202 callback from rtx to rtx_insn *; likewise for local "insn" and
7203 "next", adding a checked cast to rtx_insn in the relevant cases of
7204 the switch statement.
7205 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7206 callback from rtx to rtx_insn *.
7207 (emit_pattern_after_setloc): Likewise.
7208 (emit_pattern_after): Likewise.
7209 (emit_pattern_before_setloc): Likewise.
7210 (emit_pattern_before): Likewise.
7212 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7214 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7216 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7217 accepting an rtx_insn *.
7218 (last_call_insn): Strengthen return type from rtx to
7221 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7223 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7224 "insns" from rtx to rtx_insn *.
7225 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7226 locals "insn" and "prev".
7228 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7230 * rtl.h (tablejump_p): Strengthen third param from rtx * to
7231 rtx_jump_table_data **.
7233 * cfgbuild.c (make_edges): Introduce local "table", using it in
7234 place of "tmp" for jump table data.
7235 (find_bb_boundaries): Strengthen local "table" from rtx to
7236 rtx_jump_table_data *.
7237 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7238 (outgoing_edges_match): Likewise for locals "table1" and "table2".
7239 (try_crossjump_to_edge): Likewise.
7240 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7242 (patch_jump_insn): Introduce local "table", using it in place of
7243 "tmp" for jump table data.
7244 (force_nonfallthru_and_redirect): Introduce local "table", so that
7245 call to tablejump_p can receive an rtx_jump_table_data **. Update
7246 logic around the call to overwrite "note" appropriately if
7247 tablejump_p returns non-zero.
7248 (get_last_bb_insn): Introduce local "table", using it in place of
7249 "tmp" for jump table data.
7250 * dwarf2cfi.c (create_trace_edges): Likewise.
7252 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7253 from rtx to rtx_jump_table_data *.
7254 (create_fix_barrier): Strengthen local "tmp" from rtx to
7255 rtx_jump_table_data *.
7256 (arm_reorg): Likewise for local "table".
7258 * config/s390/s390.c (s390_chunkify_start): Likewise.
7260 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7262 * jump.c (delete_related_insns): Strengthen local "lab_next" from
7263 rtx to rtx_jump_table_data *.
7265 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7266 rtx_jump_table_data **. Add a checked cast when writing through
7267 the pointer: we know there that local "table" is non-NULL and that
7268 JUMP_TABLE_DATA_P (table) holds.
7269 (label_is_jump_target_p): Introduce local "table", using it in
7270 place of "tmp" for jump table data.
7272 2014-08-19 Marek Polacek <polacek@redhat.com>
7275 * doc/invoke.texi: Document -Wbool-compare.
7277 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7279 * rtl.h (entry_of_function): Strengthen return type from rtx to
7281 * cfgrtl.c (entry_of_function): Likewise.
7283 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7285 * emit-rtl.h (get_insns): Strengthen return type from rtx to
7286 rtx_insn *, adding a checked cast for now.
7287 (get_last_insn): Likewise.
7289 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7291 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7294 * emit-rtl.c (gen_label_rtx): Likewise.
7296 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7298 * rtl.h (previous_insn): Strengthen return type from rtx to
7300 (next_insn): Likewise.
7301 (prev_nonnote_insn): Likewise.
7302 (prev_nonnote_insn_bb): Likewise.
7303 (next_nonnote_insn): Likewise.
7304 (next_nonnote_insn_bb): Likewise.
7305 (prev_nondebug_insn): Likewise.
7306 (next_nondebug_insn): Likewise.
7307 (prev_nonnote_nondebug_insn): Likewise.
7308 (next_nonnote_nondebug_insn): Likewise.
7309 (prev_real_insn): Likewise.
7310 (next_real_insn): Likewise.
7311 (prev_active_insn): Likewise.
7312 (next_active_insn): Likewise.
7314 * emit-rtl.c (next_insn): Strengthen return type from rtx to
7315 rtx_insn *, adding a checked cast.
7316 (previous_insn): Likewise.
7317 (next_nonnote_insn): Likewise.
7318 (next_nonnote_insn_bb): Likewise.
7319 (prev_nonnote_insn): Likewise.
7320 (prev_nonnote_insn_bb): Likewise.
7321 (next_nondebug_insn): Likewise.
7322 (prev_nondebug_insn): Likewise.
7323 (next_nonnote_nondebug_insn): Likewise.
7324 (prev_nonnote_nondebug_insn): Likewise.
7325 (next_real_insn): Likewise.
7326 (prev_real_insn): Likewise.
7327 (next_active_insn): Likewise.
7328 (prev_active_insn): Likewise.
7330 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7331 param "stepfunc" so that it returns an rtx_insn * rather than an
7332 rtx, to track the change to prev_nonnote_insn_bb, which is the
7333 only function this is called with.
7334 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7336 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
7338 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7341 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7343 * coretypes.h (class rtx_debug_insn): Add forward declaration.
7344 (class rtx_nonjump_insn): Likewise.
7345 (class rtx_jump_insn): Likewise.
7346 (class rtx_call_insn): Likewise.
7347 (class rtx_jump_table_data): Likewise.
7348 (class rtx_barrier): Likewise.
7349 (class rtx_code_label): Likewise.
7350 (class rtx_note): Likewise.
7352 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7353 adding the invariant DEBUG_INSN_P (X).
7354 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7355 the invariant NONJUMP_INSN_P (X).
7356 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7357 the invariant JUMP_P (X).
7358 (class rtx_call_insn): New, a subclass of rtx_insn, adding
7359 the invariant CALL_P (X).
7360 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7361 invariant JUMP_TABLE_DATA_P (X).
7362 (class rtx_barrier): New, a subclass of rtx_insn, adding the
7363 invariant BARRIER_P (X).
7364 (class rtx_code_label): New, a subclass of rtx_insn, adding
7365 the invariant LABEL_P (X).
7366 (class rtx_note): New, a subclass of rtx_insn, adding
7367 the invariant NOTE_P(X).
7368 (is_a_helper <rtx_debug_insn *>::test): New.
7369 (is_a_helper <rtx_nonjump_insn *>::test): New.
7370 (is_a_helper <rtx_jump_insn *>::test): New.
7371 (is_a_helper <rtx_call_insn *>::test): New.
7372 (is_a_helper <rtx_jump_table_data *>::test): New functions,
7373 overloaded for both rtx and rtx_insn *.
7374 (is_a_helper <rtx_barrier *>::test): New.
7375 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7376 for both rtx and rtx_insn *.
7377 (is_a_helper <rtx_note *>::test): New.
7379 2014-08-19 Marek Polacek <polacek@redhat.com>
7381 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7382 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7383 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7384 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7388 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7389 rtx_insn *. To help with transition, for now, convert from an
7390 access macro into a pair of functions: BND_TO, returning an
7392 (SET_BND_TO): New function, for use where BND_TO is used as an
7395 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7397 (BND_TO): New function, adding a checked cast.
7398 (SET_BND_TO): New function.
7400 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7402 (compute_av_set_on_boundaries): Likewise.
7404 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7406 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7407 destination if it is used in source.
7408 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7409 (*popcount<mode>2_falsedep_1): Likewise.
7411 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7414 * configure.ac: Set install_gold_as_default to no first.
7415 * configure: Regenerated.
7417 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7419 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7420 "note_list" field will eventually be an rtx_insn *. To help with
7421 transition, for now, convert from an access macro into a pair of
7422 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7423 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7426 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7427 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7429 * sel-sched-ir.c (init_bb): Likewise.
7430 (sel_restore_notes): Likewise.
7431 (move_bb_info): Likewise.
7432 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7433 (SET_BB_NOTE_LIST): New function.
7435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7437 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7438 field will eventually be an rtx_insn *. To help with transition,
7439 for now, convert from an access macro into a pair of functions:
7440 VINSN_INSN_RTX, returning an rtx_insn *, and...
7441 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7442 is used as an lvalue.
7444 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7445 SET_VINSN_INSN_RTX where it's used as an lvalue.
7446 (VINSN_INSN_RTX): New function.
7447 (SET_VINSN_INSN_RTX): New function.
7449 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7451 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7452 eventually be rtx_insn *, but to help with transition, for now,
7453 convert from an access macro into a pair of functions: DEP_PRO
7454 returning an rtx_insn * and...
7455 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7456 lvalue, returning an rtx&.
7457 (DEP_CON): Analogous changes to DEP_PRO above.
7458 (SET_DEP_CON): Likewise.
7460 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7461 an lvalue to SET_DEP_CON.
7462 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7463 (sd_copy_back_deps): Likewise for DEP_CON.
7464 (DEP_PRO): New function, adding a checked cast for now.
7465 (DEP_CON): Likewise.
7466 (SET_DEP_PRO): New function.
7467 (SET_DEP_CON): Likewise.
7469 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7471 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7472 (extra_options): Add i386/cygwin.opt.
7473 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7474 (CPP_SPEC): Accept -pthread.
7476 (GOMP_SELF_SPECS): Update comment.
7477 * config/i386/cygwin.opt: New file for -pthread flag.
7479 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7481 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7482 * df.h (DF_REF_INSN): Convert from a macro to a function, so
7483 that we can return an rtx_insn *.
7485 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7487 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7488 when building executables, not DLLs. Add --large-address-aware
7489 under the same conditions.
7490 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7491 when building executables, not DLLs. Add --large-address-aware
7492 under the same conditions when using -m32.
7494 * config/i386/cygwin-stdint.h: Throughout, make type
7495 definitions dependent on target architecture, not host.
7497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7499 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
7500 the return type from rtx to rtx_insn *, which will enable various
7501 conversions in followup patches. For now this is is done by a
7503 (NEXT_INSN): Likewise.
7504 (SET_PREV_INSN): Convert to an inline function. This is intended
7505 for use as an lvalue, and so returns an rtx& to allow in-place
7507 (SET_NEXT_INSN): Likewise.
7509 2014-07-08 Mark Wielaard <mjw@redhat.com>
7512 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7514 2014-08-19 Marek Polacek <polacek@redhat.com>
7517 * cgraphunit.c (handle_alias_pairs): Fix condition.
7519 2014-08-19 Richard Biener <rguenther@suse.de>
7521 * gimple-fold.c (fold_gimple_assign): Properly build a
7522 null-pointer constant when devirtualizing addresses.
7524 2014-07-07 Mark Wielaard <mjw@redhat.com>
7526 * dwarf2out.c (decl_quals): New function.
7527 (modified_type_die): Take one cv_quals argument instead of two,
7528 one for const and one for volatile.
7529 (add_type_attribute): Likewise.
7530 (generic_parameter_die): Call add_type_attribute with one modifier
7532 (base_type_for_mode): Likewise.
7533 (add_bounds_info): Likewise.
7534 (add_subscript_info): Likewise.
7535 (gen_array_type_die): Likewise.
7536 (gen_descr_array_type_die): Likewise.
7537 (gen_entry_point_die): Likewise.
7538 (gen_enumeration_type_die): Likewise.
7539 (gen_formal_parameter_die): Likewise.
7540 (gen_subprogram_die): Likewise.
7541 (gen_variable_die): Likewise.
7542 (gen_const_die): Likewise.
7543 (gen_field_die): Likewise.
7544 (gen_pointer_type_die): Likewise.
7545 (gen_reference_type_die): Likewise.
7546 (gen_ptr_to_mbr_type_die): Likewise.
7547 (gen_inheritance_die): Likewise.
7548 (gen_subroutine_type_die): Likewise.
7549 (gen_typedef_die): Likewise.
7550 (force_type_die): Likewise.
7552 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7554 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7556 * configure: Regenerate.
7558 2014-08-19 Richard Biener <rguenther@suse.de>
7560 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7561 DECL_EXTERNALs in BLOCKs as non-references.
7562 * tree-streamer-out.c (streamer_write_chain): Likewise.
7564 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
7565 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7566 Anna Tikhonova <anna.tikhonova@intel.com>
7567 Ilya Tocar <ilya.tocar@intel.com>
7568 Andrey Turetskiy <andrey.turetskiy@intel.com>
7569 Ilya Verbin <ilya.verbin@intel.com>
7570 Kirill Yukhin <kirill.yukhin@intel.com>
7571 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7573 * config/i386/sse.md
7574 (define_mode_iterator VI48_AVX512F): Delete.
7575 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7576 (define_mode_iterator VI2_AVX512VL): Ditto.
7577 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7580 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7582 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7583 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7584 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7585 with VI48_AVX512F_AVX512VL): New.
7586 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7587 with VI2_AVX512VL): Ditto.
7589 2014-08-19 Marek Polacek <polacek@redhat.com>
7591 * doc/invoke.texi: Document -Wc99-c11-compat.
7593 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7595 * rtl.h (PREV_INSN): Split macro in two: the existing one,
7597 (SET_PREV_INSN): New macro, for use as an lvalue.
7598 (NEXT_INSN, SET_NEXT_INSN): Likewise.
7600 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7601 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7602 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7603 (fixup_abnormal_edges): Likewise.
7604 (unlink_insn_chain): Likewise.
7605 (fixup_reorder_chain): Likewise.
7606 (cfg_layout_delete_block): Likewise.
7607 (cfg_layout_merge_blocks): Likewise.
7608 * combine.c (update_cfg_for_uncondjump): Likewise.
7609 * emit-rtl.c (link_insn_into_chain): Likewise.
7610 (remove_insn): Likewise.
7611 (delete_insns_since): Likewise.
7612 (reorder_insns_nobb): Likewise.
7613 (emit_insn_after_1): Likewise.
7614 * final.c (rest_of_clean_state): Likewise.
7615 (final_scan_insn): Likewise.
7616 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7617 * haifa-sched.c (concat_note_lists): Likewise.
7618 (remove_notes): Likewise.
7619 (restore_other_notes): Likewise.
7620 (move_insn): Likewise.
7621 (unlink_bb_notes): Likewise.
7622 (restore_bb_notes): Likewise.
7623 * jump.c (delete_for_peephole): Likewise.
7624 * optabs.c (emit_libcall_block_1): Likewise.
7625 * reorg.c (emit_delay_sequence): Likewise.
7626 (fill_simple_delay_slots): Likewise.
7627 * sel-sched-ir.c (sel_move_insn): Likewise.
7628 (sel_remove_insn): Likewise.
7629 (get_bb_note_from_pool): Likewise.
7630 * sel-sched.c (move_nop_to_previous_block): Likewise.
7632 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7633 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7634 (c6x_gen_bundles): Likewise.
7635 (hwloop_optimize): Likewise.
7636 * config/frv/frv.c (frv_function_prologue): Likewise.
7637 (frv_register_nop): Likewise.
7638 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7639 (ia64_reorg): Likewise.
7640 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7641 (mep_make_bundle): Likewise.
7642 (mep_bundle_insns): Likewise.
7643 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7644 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7645 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7647 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7649 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
7650 return type from rtx to rtx_insn *.
7652 (BB_HEADER): Likewise.
7653 (BB_FOOTER): Likewise.
7654 (SET_BB_HEAD): Convert to a function.
7655 (SET_BB_END): Likewise.
7656 (SET_BB_HEADER): Likewise.
7657 (SET_BB_FOOTER): Likewise.
7659 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7660 Strengthen the return type from rtx to rtx_insn *. For now, this
7661 is done by adding a checked cast, but this will eventually
7662 become a field lookup.
7664 (BB_HEADER): Likewise.
7665 (BB_FOOTER): Likewise.
7666 (SET_BB_HEAD): New function, from macro of same name. This is
7667 intended for use as an lvalue, and so returns an rtx& to allow
7668 in-place modification.
7669 (SET_BB_END): Likewise.
7670 (SET_BB_HEADER): Likewise.
7671 (SET_BB_FOOTER): Likewise.
7673 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7675 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7677 (SET_BB_HEAD): New macro, for use as a lvalue.
7678 (BB_END, SET_BB_END): Likewise.
7679 (BB_HEADER, SET_BB_HEADER): Likewise.
7680 (BB_FOOTER, SET_BB_FOOTER): Likewise.
7682 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7683 of BB_* macros into SET_BB_* macros.
7684 (fix_crossing_unconditional_branches): Likewise.
7685 * caller-save.c (save_call_clobbered_regs): Likewise.
7686 (insert_one_insn): Likewise.
7687 * cfgbuild.c (find_bb_boundaries): Likewise.
7688 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7689 (outgoing_edges_match): Likewise.
7690 (try_optimize_cfg): Likewise.
7691 * cfgexpand.c (expand_gimple_cond): Likewise.
7692 (expand_gimple_tailcall): Likewise.
7693 (expand_gimple_basic_block): Likewise.
7694 (construct_exit_block): Likewise.
7695 * cfgrtl.c (delete_insn): Likewise.
7696 (create_basic_block_structure): Likewise.
7697 (rtl_delete_block): Likewise.
7698 (rtl_split_block): Likewise.
7699 (emit_nop_for_unique_locus_between): Likewise.
7700 (rtl_merge_blocks): Likewise.
7701 (block_label): Likewise.
7702 (try_redirect_by_replacing_jump): Likewise.
7703 (emit_barrier_after_bb): Likewise.
7704 (fixup_abnormal_edges): Likewise.
7705 (record_effective_endpoints): Likewise.
7706 (relink_block_chain): Likewise.
7707 (fixup_reorder_chain): Likewise.
7708 (fixup_fallthru_exit_predecessor): Likewise.
7709 (cfg_layout_duplicate_bb): Likewise.
7710 (cfg_layout_split_block): Likewise.
7711 (cfg_layout_delete_block): Likewise.
7712 (cfg_layout_merge_blocks): Likewise.
7713 * combine.c (update_cfg_for_uncondjump): Likewise.
7714 * emit-rtl.c (add_insn_after): Likewise.
7715 (remove_insn): Likewise.
7716 (reorder_insns): Likewise.
7717 (emit_insn_after_1): Likewise.
7718 * haifa-sched.c (get_ebb_head_tail): Likewise.
7719 (restore_other_notes): Likewise.
7720 (move_insn): Likewise.
7721 (sched_extend_bb): Likewise.
7722 (fix_jump_move): Likewise.
7723 * ifcvt.c (noce_process_if_block): Likewise.
7724 (dead_or_predicable): Likewise.
7725 * ira.c (update_equiv_regs): Likewise.
7726 * reg-stack.c (change_stack): Likewise.
7727 * sel-sched-ir.c (sel_move_insn): Likewise.
7728 * sel-sched.c (move_nop_to_previous_block): Likewise.
7730 * config/c6x/c6x.c (hwloop_optimize): Likewise.
7731 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7733 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7735 * rtl.h (for_each_rtx_in_insn): New function.
7736 * rtlanal.c (for_each_rtx_in_insn): Likewise.
7738 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7740 * coretypes.h (class rtx_insn): Add forward declaration.
7742 * rtl.h: Include is-a.h.
7743 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
7744 workaround to ensure gengtype knows inheritance is occurring,
7745 whilst continuing to use the pre-existing special-casing for
7747 (class rtx_insn): New subclass of rtx_def, adding the
7748 invariant that we're dealing with something we can sanely use
7749 INSN_UID, NEXT_INSN, PREV_INSN on.
7750 (is_a_helper <rtx_insn *>::test): New.
7751 (is_a_helper <const rtx_insn *>::test): New.
7753 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7755 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
7757 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7759 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
7762 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7764 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
7765 to BUILT_IN_UNREACHABLE.
7767 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
7770 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
7772 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
7773 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
7774 (ffs<mode>2): Do not expand with tzcnt for
7775 TARGET_AVOID_FALSE_DEP_FOR_BMI.
7776 (ffssi2_no_cmove): Ditto.
7777 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
7778 (ctz<mode>2): New expander.
7779 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
7780 (*ctz<mode>2_falsedep): New insn.
7781 (*ctz<mode>2): Rename from ctz<mode>2.
7782 (clz<mode>2_lzcnt): New expander.
7783 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
7784 (*clz<mode>2_lzcnt_falsedep): New insn.
7785 (*clz<mode>2): Rename from ctz<mode>2.
7786 (popcount<mode>2): New expander.
7787 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
7788 (*popcount<mode>2_falsedep): New insn.
7789 (*popcount<mode>2): Rename from ctz<mode>2.
7790 (*popcount<mode>2_cmp): Remove.
7791 (*popcountsi2_cmp_zext): Ditto.
7793 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
7795 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
7796 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
7797 * config/microblaze/microblaze.h
7798 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
7800 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
7803 * configure.ac: Set install_gold_as_default to no for
7805 * configure: Regenerated.
7807 2014-08-18 Roman Gareev <gareevroman@gmail.com>
7809 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
7810 * config.in: Add undef of HAVE_isl.
7811 * configure: Regenerate.
7812 * configure.ac: Add definition of HAVE_isl.
7813 * graphite-blocking.c: Add checking of HAVE_isl.
7814 * graphite-dependences.c: Likewise.
7815 * graphite-interchange.c: Likewise.
7816 * graphite-isl-ast-to-gimple.c: Likewise.
7817 * graphite-optimize-isl.c: Likewise.
7818 * graphite-poly.c: Likewise.
7819 * graphite-scop-detection.c: Likewise.
7820 * graphite-sese-to-poly.c: Likewise.
7821 * graphite.c: Likewise.
7822 * toplev.c: Replace the checking of HAVE_cloog with the checking
7825 2014-08-18 Richard Biener <rguenther@suse.de>
7827 PR tree-optimization/62090
7828 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
7829 (fold_builtin_3): Do not fold snprintf.
7830 (fold_builtin_4): Likewise.
7831 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
7832 moved from builtins.c.
7833 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
7834 (gimple_fold_builtin): Do not fold sprintf here.
7836 2014-08-18 Richard Biener <rguenther@suse.de>
7838 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
7840 (maybe_canonicalize_mem_ref_addr): ... this function.
7841 (fold_stmt_1): Apply it here before all simplification.
7843 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
7846 * cgraph.h (cgraph_node::create_indirect_edge): Add
7847 compute_indirect_info param.
7848 * cgraph.c (cgraph_node::create_indirect_edge): Compute
7849 indirect_info only when it is required.
7850 * cgraphclones.c (cgraph_clone_edge): Do not recompute
7851 indirect_info fore cloned indirect edge.
7853 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7855 Anna Tikhonova <anna.tikhonova@intel.com>
7856 Ilya Tocar <ilya.tocar@intel.com>
7857 Andrey Turetskiy <andrey.turetskiy@intel.com>
7858 Ilya Verbin <ilya.verbin@intel.com>
7859 Kirill Yukhin <kirill.yukhin@intel.com>
7860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7862 * config/i386/sse.md
7863 (define_mode_iterator VI8_AVX2_AVX512BW): New.
7864 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
7866 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7868 Anna Tikhonova <anna.tikhonova@intel.com>
7869 Ilya Tocar <ilya.tocar@intel.com>
7870 Andrey Turetskiy <andrey.turetskiy@intel.com>
7871 Ilya Verbin <ilya.verbin@intel.com>
7872 Kirill Yukhin <kirill.yukhin@intel.com>
7873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7875 * config/i386/sse.md
7876 (define_mode_iterator VF1_AVX512VL): New.
7877 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
7878 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
7881 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7883 Anna Tikhonova <anna.tikhonova@intel.com>
7884 Ilya Tocar <ilya.tocar@intel.com>
7885 Andrey Turetskiy <andrey.turetskiy@intel.com>
7886 Ilya Verbin <ilya.verbin@intel.com>
7887 Kirill Yukhin <kirill.yukhin@intel.com>
7888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7890 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
7891 * config/i386/i386.md
7892 (define_code_iterator any_float): New.
7893 (define_code_attr floatsuffix): New.
7894 * config/i386/sse.md
7895 (define_mode_iterator VF1_128_256VL): New.
7896 (define_mode_iterator VF2_512_256VL): New.
7897 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
7899 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
7900 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
7902 (define_mode_attr qq2pssuff): New.
7903 (define_mode_attr sselongvecmode): New.
7904 (define_mode_attr sselongvecmodelower): New.
7905 (define_mode_attr sseintvecmode3): New.
7906 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
7908 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
7909 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
7910 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
7911 (define_insn "ufloatv2siv2df2<mask_name>"): New.
7913 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7915 Anna Tikhonova <anna.tikhonova@intel.com>
7916 Ilya Tocar <ilya.tocar@intel.com>
7917 Andrey Turetskiy <andrey.turetskiy@intel.com>
7918 Ilya Verbin <ilya.verbin@intel.com>
7919 Kirill Yukhin <kirill.yukhin@intel.com>
7920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7922 * config/i386/sse.md
7923 (define_mode_iterator VF2_AVX512VL): New.
7924 (define_mode_attr sseintvecmode2): New.
7925 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
7926 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
7927 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
7929 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
7931 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7933 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7936 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7938 Anna Tikhonova <anna.tikhonova@intel.com>
7939 Ilya Tocar <ilya.tocar@intel.com>
7940 Andrey Turetskiy <andrey.turetskiy@intel.com>
7941 Ilya Verbin <ilya.verbin@intel.com>
7942 Kirill Yukhin <kirill.yukhin@intel.com>
7943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7945 * config/i386/i386.md
7946 (define_insn "*movoi_internal_avx"): Add evex version.
7947 (define_insn "*movti_internal"): Ditto.
7949 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7951 Anna Tikhonova <anna.tikhonova@intel.com>
7952 Ilya Tocar <ilya.tocar@intel.com>
7953 Andrey Turetskiy <andrey.turetskiy@intel.com>
7954 Ilya Verbin <ilya.verbin@intel.com>
7955 Kirill Yukhin <kirill.yukhin@intel.com>
7956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7958 * config/i386/i386.md
7959 (define_attr "isa"): Add avx512dq, noavx512dq.
7960 (define_attr "enabled"): Ditto.
7961 * config/i386/sse.md
7962 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
7964 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7966 Anna Tikhonova <anna.tikhonova@intel.com>
7967 Ilya Tocar <ilya.tocar@intel.com>
7968 Andrey Turetskiy <andrey.turetskiy@intel.com>
7969 Ilya Verbin <ilya.verbin@intel.com>
7970 Kirill Yukhin <kirill.yukhin@intel.com>
7971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7973 * config/i386/i386.c
7974 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
7975 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
7976 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
7977 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
7978 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
7979 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
7980 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
7981 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
7982 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
7983 * config/i386/sse.md
7984 (define_mode_iterator VMOVE): Allow V4TI mode.
7985 (define_mode_iterator V_AVX512VL): New.
7986 (define_mode_iterator V): New handling for AVX512VL.
7987 (define_insn "avx512f_load<mode>_mask"): Delete.
7988 (define_insn "<avx512>_load<mode>_mask"): New.
7989 (define_insn "avx512f_store<mode>_mask"): Delete.
7990 (define_insn "<avx512>_store<mode>_mask"): New.
7993 2014-08-18 Yury Gribov <y.gribov@samsung.com>
7996 * asan.c (instrument_derefs): Fix bitfield check.
7998 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8000 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8001 * config/rs6000/htm.md (ttest): Remove clobber.
8002 * config/rs6000/predicates.md (any_mask_operand): New predicate.
8003 (and_operand): Reformat.
8004 (and_2rld_operand): New predicate.
8005 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8007 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8008 parameter. Handle AND directly.
8009 (rs6000_split_logical_di): Remove last parameter.
8010 (rs6000_split_logical): Remove last parameter. Remove obsolete
8012 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8013 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8014 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
8015 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8016 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8017 and 5 anonymous splitters): Delete.
8018 (and<mode>3): New expander.
8019 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8020 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8021 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8022 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8023 (floatdisf2_internal1): Remove clobbers.
8024 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8025 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8026 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8027 (and<mode>3 for BOOL_128): Remove clobber.
8028 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
8029 rs6000_split_logical.
8030 (*bool<mode>3_internal for BOOL_128): Adjust call of
8031 rs6000_split_logical.
8032 (*boolc<mode>3_internal1 for BOOL_128,
8033 *boolc<mode>3_internal2 for BOOL_128,
8034 *boolcc<mode>3_internal1 for BOOL_128,
8035 *boolcc<mode>3_internal2 for BOOL_128,
8036 *eqv<mode>3_internal1 for BOOL_128,
8037 *eqv<mode>3_internal2 for BOOL_128,
8038 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8039 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8041 (*vec_reload_and_reg_<mptrsize>): Delete.
8043 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8045 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
8046 and split, *boolccsi3_internal3 and split): Delete.
8047 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
8048 *boolccdi3_internal3 and split): Delete.
8049 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
8050 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
8052 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8054 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
8055 and split, *boolcsi3_internal3 and split): Delete.
8056 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
8057 *boolcdi3_internal3 and split): Delete.
8058 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
8060 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8062 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
8063 <'u'>: Also support printing the low-order 16 bits.
8064 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
8065 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
8066 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
8067 *booldi3_internal3 and split): Delete.
8068 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
8069 *bool<mode>3_dot2): New.
8070 (two anonymous define_splits for non_logical_cint_operand): Merge.
8072 2014-08-17 Marek Polacek <polacek@redhat.com>
8073 Manuel López-Ibáñez <manu@gcc.gnu.org>
8076 * diagnostic.c (adjust_line): Add gcc_checking_assert.
8077 (diagnostic_show_locus): Don't print caret diagnostic
8078 if a column is larger than the line_width.
8080 2014-08-17 Roman Gareev <gareevroman@gmail.com>
8082 * common.opt: Make the ISL AST generator to be the main code generator
8085 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
8087 * wide-int.h (generic_wide_int): Declare as class instead of struct.
8089 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
8092 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
8094 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
8095 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
8096 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
8098 * config/pa/pa.md (begin_brtab): Delete insn.
8099 (end_brtab): Likewise.
8101 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8103 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8105 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
8107 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8108 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8109 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8110 (get_dynamic_type): Remove.
8111 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8112 (clear_speculation): Bring to ipa-deivrt.h
8113 (get_class_context): Rename to ...
8114 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8115 (contains_type_p): Update.
8116 (get_dynamic_type): Rename to ...
8117 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8118 (possible_polymorphic_call_targets): UPdate.
8119 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8120 * ipa-prop.c (ipa_analyze_call_uses): Update.
8122 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
8124 * doc/invoke.texi (SH options): Document missing processor variant
8125 options. Remove references to Hitachi. Undocument deprecated mspace
8128 2014-08-15 Jason Merrill <jason@redhat.com>
8130 * tree.c (type_hash_canon): Uncomment assert.
8132 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8134 * input.h (in_system_header_at): Add comment.
8136 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8139 * diagnostic.c (build_message_string): Make it extern.
8140 * diagnostic.h (build_message_string): Make it extern.
8142 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
8144 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8145 load/store from/to non-floating class pseudo.
8147 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8149 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8151 2014-08-15 Richard Biener <rguenther@suse.de>
8153 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8154 (get_constraint_for_ssa_var): Remove dead code.
8155 (get_constraint_for_1): Adjust.
8156 (find_what_var_points_to): Likewise.
8157 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
8159 2014-08-15 Ilya Tocar <tocarip@gmail.com>
8162 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8163 (_mm512_mask_cmpge_epu32_mask): Ditto.
8164 (_mm512_cmpge_epu32_mask): Ditto.
8165 (_mm512_mask_cmpge_epi64_mask): Ditto.
8166 (_mm512_cmpge_epi64_mask): Ditto.
8167 (_mm512_mask_cmpge_epu64_mask): Ditto.
8168 (_mm512_cmpge_epu64_mask): Ditto.
8169 (_mm512_mask_cmple_epi32_mask): Ditto.
8170 (_mm512_cmple_epi32_mask): Ditto.
8171 (_mm512_mask_cmple_epu32_mask): Ditto.
8172 (_mm512_cmple_epu32_mask): Ditto.
8173 (_mm512_mask_cmple_epi64_mask): Ditto.
8174 (_mm512_cmple_epi64_mask): Ditto.
8175 (_mm512_mask_cmple_epu64_mask): Ditto.
8176 (_mm512_cmple_epu64_mask): Ditto.
8177 (_mm512_mask_cmplt_epi32_mask): Ditto.
8178 (_mm512_cmplt_epi32_mask): Ditto.
8179 (_mm512_mask_cmplt_epu32_mask): Ditto.
8180 (_mm512_cmplt_epu32_mask): Ditto.
8181 (_mm512_mask_cmplt_epi64_mask): Ditto.
8182 (_mm512_cmplt_epi64_mask): Ditto.
8183 (_mm512_mask_cmplt_epu64_mask): Ditto.
8184 (_mm512_cmplt_epu64_mask): Ditto.
8185 (_mm512_mask_cmpneq_epi32_mask): Ditto.
8186 (_mm512_mask_cmpneq_epu32_mask): Ditto.
8187 (_mm512_cmpneq_epu32_mask): Ditto.
8188 (_mm512_mask_cmpneq_epi64_mask): Ditto.
8189 (_mm512_cmpneq_epi64_mask): Ditto.
8190 (_mm512_mask_cmpneq_epu64_mask): Ditto.
8191 (_mm512_cmpneq_epu64_mask): Ditto.
8192 (_mm512_castpd_ps): Ditto.
8193 (_mm512_castpd_si512): Ditto.
8194 (_mm512_castps_pd): Ditto.
8195 (_mm512_castps_si512): Ditto.
8196 (_mm512_castsi512_ps): Ditto.
8197 (_mm512_castsi512_pd): Ditto.
8198 (_mm512_castpd512_pd128): Ditto.
8199 (_mm512_castps512_ps128): Ditto.
8200 (_mm512_castsi512_si128): Ditto.
8201 (_mm512_castpd512_pd256): Ditto.
8202 (_mm512_castps512_ps256): Ditto.
8203 (_mm512_castsi512_si256): Ditto.
8204 (_mm512_castpd128_pd512): Ditto.
8205 (_mm512_castps128_ps512): Ditto.
8206 (_mm512_castsi128_si512): Ditto.
8207 (_mm512_castpd256_pd512): Ditto.
8208 (_mm512_castps256_ps512): Ditto.
8209 (_mm512_castsi256_si512): Ditto.
8210 (_mm512_cmpeq_epu32_mask): Ditto.
8211 (_mm512_mask_cmpeq_epu32_mask): Ditto.
8212 (_mm512_mask_cmpeq_epu64_mask): Ditto.
8213 (_mm512_cmpeq_epu64_mask): Ditto.
8214 (_mm512_cmpgt_epu32_mask): Ditto.
8215 (_mm512_mask_cmpgt_epu32_mask): Ditto.
8216 (_mm512_mask_cmpgt_epu64_mask): Ditto.
8217 (_mm512_cmpgt_epu64_mask): Ditto.
8218 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8219 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8220 * config/i386/i386.c (enum ix86_builtins): Add
8221 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8222 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8223 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8224 (bdesc_args): Add __builtin_ia32_si512_256si,
8225 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8226 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8227 __builtin_ia32_pd512_pd.
8228 (ix86_expand_args_builtin): Handle new FTYPEs.
8229 * config/i386/sse.md (castmode): Add 512-bit modes.
8230 (AVX512MODE2P): New.
8231 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8232 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8234 2014-08-15 Richard Biener <rguenther@suse.de>
8236 * fold-const.c (tree_swap_operands_p): Put all constants
8237 last, also strip sign-changing NOPs when considering further
8238 canonicalization. Canonicalize also when optimizing for size.
8240 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8242 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8243 one_match > zero_match case to just before simple_sequence.
8245 2014-08-15 Richard Biener <rguenther@suse.de>
8247 * data-streamer.h (streamer_string_index, string_for_index):
8249 * data-streamer-out.c (streamer_string_index): Make static.
8250 * data-streamer-in.c (string_for_index): Likewise.
8251 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8252 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8254 2014-08-15 Richard Biener <rguenther@suse.de>
8256 PR tree-optimization/62031
8257 * tree-data-ref.c (dr_analyze_indices): Do not set
8258 DR_UNCONSTRAINED_BASE.
8259 (dr_may_alias_p): All indirect accesses have to go the
8260 formerly DR_UNCONSTRAINED_BASE path.
8261 * tree-data-ref.h (struct indices): Remove
8262 unconstrained_base member.
8263 (DR_UNCONSTRAINED_BASE): Remove.
8265 2014-08-15 Jakub Jelinek <jakub@redhat.com>
8268 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8269 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8270 in OMP_CLAUSE_MAP in some outer target region.
8272 2014-08-15 Bin Cheng <bin.cheng@arm.com>
8274 * tree-ssa-loop-ivopts.c (ivopts_data): New field
8275 name_expansion_cache.
8276 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8277 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8278 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8279 (difference_cannot_overflow_p): New parameter. Use affine
8280 expansion for equality check.
8281 (iv_elimination_compare_lt): Pass new argument.
8283 2014-08-14 DJ Delorie <dj@redhat.com>
8285 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8286 variables to the accumulator.
8288 * config/rl78/predicates.md (rl78_near_mem_operand): New.
8289 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8290 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8293 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8294 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8295 (umulqihi3_virt): Likewise.
8296 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8297 (umulqihi3_real): Likewise.
8299 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8301 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8303 PR tree-optimization/62091
8304 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8305 function_entry_reached.
8306 (walk_aliased_vdefs): Clear it here.
8307 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8309 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8311 * ipa-utils.h (compare_virtual_tables): Declare.
8312 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8314 2014-08-14 Marek Polacek <polacek@redhat.com>
8317 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8318 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8320 2014-08-14 Tom de Vries <tom@codesourcery.com>
8322 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8324 2014-08-14 Tom de Vries <tom@codesourcery.com>
8326 PR rtl-optimization/62004
8327 PR rtl-optimization/62030
8328 * ifcvt.c (rtx_interchangeable_p): New function.
8329 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8330 * emit-rtl.h (mem_attrs_eq_p): Declare.
8332 2014-08-14 Roman Gareev <gareevroman@gmail.com>
8334 * graphite-scop-detection.c:
8335 Add inclusion of cp-tree.h.
8336 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8337 in case they are pointers to object types
8339 2014-08-14 Richard Biener <rguenther@suse.de>
8341 * BASE-VER: Change to 5.0.0
8343 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8344 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8345 Anna Tikhonova <anna.tikhonova@intel.com>
8346 Ilya Tocar <ilya.tocar@intel.com>
8347 Andrey Turetskiy <andrey.turetskiy@intel.com>
8348 Ilya Verbin <ilya.verbin@intel.com>
8349 Kirill Yukhin <kirill.yukhin@intel.com>
8350 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8352 * config/i386/sse.md (define_mode_attr avx512): New.
8353 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8355 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8356 (define_mode_attr ssse3_avx2): Ditto.
8357 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8358 (define_mode_attr avx2_avx512bw): New.
8359 (define_mode_attr ssedoublemodelower): New.
8360 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8362 (define_mode_attr ssebytemode): Allow V8DI modes.
8363 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8364 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8365 (define_mode_attr ssePSmode2): New.
8366 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8368 (define_mode_attr dbpsadbwmode): New.
8369 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8370 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8371 (vi8_sse4_1_avx2_avx512): New.
8372 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8374 (define_mode_attr blendbits): Move before its immediate use.
8376 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8377 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8378 Anna Tikhonova <anna.tikhonova@intel.com>
8379 Ilya Tocar <ilya.tocar@intel.com>
8380 Andrey Turetskiy <andrey.turetskiy@intel.com>
8381 Ilya Verbin <ilya.verbin@intel.com>
8382 Kirill Yukhin <kirill.yukhin@intel.com>
8383 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8385 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8386 * config/i386/subst.md
8387 (define_mode_iterator SUBST_V): Update.
8388 (define_mode_iterator SUBST_A): Ditto.
8389 (define_subst_attr "mask_operand7"): New.
8390 (define_subst_attr "mask_operand10"): New.
8391 (define_subst_attr "mask_operand_arg34") : New.
8392 (define_subst_attr "mask_expand_op3"): New.
8393 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8394 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8395 (define_subst_attr "mask_avx512vl_condition"): New.
8396 (define_subst_attr "round_mask_operand4"): Ditto.
8397 (define_subst_attr "round_mask_scalar_op3"): Delete.
8398 (define_subst_attr "round_mask_op4"): New.
8399 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8401 (define_subst_attr "round_modev8sf_condition"): New.
8402 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8404 (define_subst_attr "round_saeonly_mask_operand4"): New.
8405 (define_subst_attr "round_saeonly_mask_op4"): New.
8406 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8407 V8DImode, V16SImode.
8408 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8409 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8410 (define_subst_attr "mask_expand4_args"): New.
8411 (define_subst "mask_expand4"): New.
8413 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8414 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8415 Anna Tikhonova <anna.tikhonova@intel.com>
8416 Ilya Tocar <ilya.tocar@intel.com>
8417 Andrey Turetskiy <andrey.turetskiy@intel.com>
8418 Ilya Verbin <ilya.verbin@intel.com>
8419 Kirill Yukhin <kirill.yukhin@intel.com>
8420 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8422 * config/i386/i386.md
8423 (define_attr "isa"): Add avx512bw,noavx512bw.
8424 (define_attr "enabled"): Ditto.
8425 (define_split): Add 32/64-bit mask logic.
8426 (define_insn "*k<logic>qi"): New.
8427 (define_insn "*k<logic>hi"): New.
8428 (define_insn "*anddi_1"): Add mask version.
8429 (define_insn "*andsi_1"): Ditto.
8430 (define_insn "*<code><mode>_1"): Ditto.
8431 (define_insn "*<code>hi_1"): Ditto.
8432 (define_insn "kxnor<mode>"): New.
8433 (define_insn "kunpcksi"): New.
8434 (define_insn "kunpckdi"): New.
8435 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8436 (define_insn "*one_cmplhi2_1"): Ditto.
8438 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8439 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8440 Anna Tikhonova <anna.tikhonova@intel.com>
8441 Ilya Tocar <ilya.tocar@intel.com>
8442 Andrey Turetskiy <andrey.turetskiy@intel.com>
8443 Ilya Verbin <ilya.verbin@intel.com>
8444 Kirill Yukhin <kirill.yukhin@intel.com>
8445 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8447 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8450 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8452 Anna Tikhonova <anna.tikhonova@intel.com>
8453 Ilya Tocar <ilya.tocar@intel.com>
8454 Andrey Turetskiy <andrey.turetskiy@intel.com>
8455 Ilya Verbin <ilya.verbin@intel.com>
8456 Kirill Yukhin <kirill.yukhin@intel.com>
8457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8459 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8461 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8462 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8463 xmm/ymm16+ when availble.
8464 * config/i386/i386.h
8465 (HARD_REGNO_NREGS): Add mask regs.
8466 (VALID_AVX512F_REG_MODE): Ditto.
8467 (VALID_AVX512F_REG_MODE) : Define.
8468 (VALID_MASK_AVX512BW_MODE): Ditto.
8469 (reg_class) (MASK_REG_P(X)): Define.
8470 * config/i386/i386.md: Do not split long moves with mask register,
8471 use kmovb if avx512bw is availible.
8472 (movdi_internal): Handle mask registers.
8474 2014-08-14 Richard Biener <rguenther@suse.de>
8476 PR tree-optimization/62081
8477 * tree-ssa-loop.c (pass_fix_loops): New pass.
8478 (pass_tree_loop::gate): Do not fixup loops here.
8479 * tree-pass.h (make_pass_fix_loops): Declare.
8480 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8482 2014-08-14 Richard Biener <rguenther@suse.de>
8484 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8485 (type_hash_canon): ... this and avoid 2nd lookup for the add.
8487 2014-08-14 Richard Biener <rguenther@suse.de>
8489 PR tree-optimization/62090
8490 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8491 (fold_builtin_2): Do not fold sprintf.
8492 (fold_builtin_3): Likewise.
8493 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8494 moved from builtins.c.
8495 (gimple_fold_builtin): Fold sprintf.
8497 2014-08-14 Richard Biener <rguenther@suse.de>
8499 PR rtl-optimization/62079
8500 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8503 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8505 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8506 current_function_decl.
8508 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8510 * cgraph.c (cgraph_node::function_symbol): Fix wrong
8511 cgraph_function_node to cgraph_node::function_symbol
8514 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
8516 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8517 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8519 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
8521 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8524 2014-08-13 Roman Gareev <gareevroman@gmail.com>
8526 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8529 2014-08-12 Jakub Jelinek <jakub@redhat.com>
8532 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8533 any registers that are used in mem_insn.
8535 2014-08-12 Steve Ellcey <sellcey@mips.com>
8537 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
8539 2014-08-12 Steve Ellcey <sellcey@mips.com>
8541 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8542 (MULTILIB_DIRNAMES): Ditto.
8543 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8544 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8545 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8546 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8547 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8548 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8550 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8553 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8554 of __ARM_SIZEOF_WCHAR_T.
8556 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8559 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8560 Remove unnecessary attributes.
8562 2014-08-12 Yury Gribov <y.gribov@samsung.com>
8564 * internal-fn.c (init_internal_fns): Fix off-by-one.
8566 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
8567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8568 Anna Tikhonova <anna.tikhonova@intel.com>
8569 Ilya Tocar <ilya.tocar@intel.com>
8570 Andrey Turetskiy <andrey.turetskiy@intel.com>
8571 Ilya Verbin <ilya.verbin@intel.com>
8572 Kirill Yukhin <kirill.yukhin@intel.com>
8573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8575 * config/i386/i386.c (standard_sse_constant_opcode): Use
8576 vpxord/vpternlog if avx512 is availible.
8578 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8581 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8582 bitfields, that is when size doesn't match the size of type or the
8583 size of the constructor.
8585 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8587 * config/rs6000/constraints.md (wh constraint): New constraint,
8588 for FP registers if direct move is available.
8589 (wi constraint): New constraint, for VSX/FP registers that can
8590 handle 64-bit integers.
8591 (wj constraint): New constraint for VSX/FP registers that can
8592 handle 64-bit integers for direct moves.
8593 (wk constraint): New constraint for VSX/FP registers that can
8594 handle 64-bit doubles for direct moves.
8595 (wy constraint): Make documentation match implementation.
8597 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8598 scalar_in_vmx_p field to simplify tests of whether SFmode or
8599 DFmode can go in the Altivec registers.
8600 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8601 (rs6000_setup_reg_addr_masks): Likewise.
8602 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8603 field, and wh/wi/wj/wk constraints.
8604 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8605 the wh/wi/wj/wk constraints.
8606 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8607 upper registers, prefer VSX registers unless the operation is a
8608 memory operation with REG+OFFSET addressing.
8610 * config/rs6000/vsx.md (VSr mode attribute): Add support for
8611 DImode. Change SFmode to use ww constraint instead of d to allow
8612 SF registers in the upper registers.
8615 (VSr5): Fix thinko in comment.
8616 (VSa): New mode attribute that is an alternative to wa, that
8617 returns the VSX register class that a mode can go in, but may not
8618 be the preferred register class.
8619 (VS_64dm): New mode attribute for appropriate register classes for
8620 referencing 64-bit elements of vectors for direct moves and normal
8622 (VS_64reg): Likewise.
8623 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8624 register allocator to only registers the data type can handle.
8625 (vsx_le_perm_load_<mode>): Likewise.
8626 (vsx_le_perm_store_<mode>): Likewise.
8627 (vsx_xxpermdi2_le_<mode>): Likewise.
8628 (vsx_xxpermdi4_le_<mode>): Likewise.
8629 (vsx_lxvd2x2_le_<mode>): Likewise.
8630 (vsx_lxvd2x4_le_<mode>): Likewise.
8631 (vsx_stxvd2x2_le_<mode>): Likewise.
8632 (vsx_add<mode>3): Likewise.
8633 (vsx_sub<mode>3): Likewise.
8634 (vsx_mul<mode>3): Likewise.
8635 (vsx_div<mode>3): Likewise.
8636 (vsx_tdiv<mode>3_internal): Likewise.
8637 (vsx_fre<mode>2): Likewise.
8638 (vsx_neg<mode>2): Likewise.
8639 (vsx_abs<mode>2): Likewise.
8640 (vsx_nabs<mode>2): Likewise.
8641 (vsx_smax<mode>3): Likewise.
8642 (vsx_smin<mode>3): Likewise.
8643 (vsx_sqrt<mode>2): Likewise.
8644 (vsx_rsqrte<mode>2): Likewise.
8645 (vsx_tsqrt<mode>2_internal): Likewise.
8646 (vsx_fms<mode>4): Likewise.
8647 (vsx_nfma<mode>4): Likewise.
8648 (vsx_eq<mode>): Likewise.
8649 (vsx_gt<mode>): Likewise.
8650 (vsx_ge<mode>): Likewise.
8651 (vsx_eq<mode>_p): Likewise.
8652 (vsx_gt<mode>_p): Likewise.
8653 (vsx_ge<mode>_p): Likewise.
8654 (vsx_xxsel<mode>): Likewise.
8655 (vsx_xxsel<mode>_uns): Likewise.
8656 (vsx_copysign<mode>3): Likewise.
8657 (vsx_float<VSi><mode>2): Likewise.
8658 (vsx_floatuns<VSi><mode>2): Likewise.
8659 (vsx_fix_trunc<mode><VSi>2): Likewise.
8660 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8661 (vsx_x<VSv>r<VSs>i): Likewise.
8662 (vsx_x<VSv>r<VSs>ic): Likewise.
8663 (vsx_btrunc<mode>2): Likewise.
8664 (vsx_b2trunc<mode>2): Likewise.
8665 (vsx_floor<mode>2): Likewise.
8666 (vsx_ceil<mode>2): Likewise.
8667 (vsx_<VS_spdp_insn>): Likewise.
8668 (vsx_xscvspdp): Likewise.
8669 (vsx_xvcvspuxds): Likewise.
8670 (vsx_float_fix_<mode>2): Likewise.
8671 (vsx_set_<mode>): Likewise.
8672 (vsx_extract_<mode>_internal1): Likewise.
8673 (vsx_extract_<mode>_internal2): Likewise.
8674 (vsx_extract_<mode>_load): Likewise.
8675 (vsx_extract_<mode>_store): Likewise.
8676 (vsx_splat_<mode>): Likewise.
8677 (vsx_xxspltw_<mode>): Likewise.
8678 (vsx_xxspltw_<mode>_direct): Likewise.
8679 (vsx_xxmrghw_<mode>): Likewise.
8680 (vsx_xxmrglw_<mode>): Likewise.
8681 (vsx_xxsldwi_<mode>): Likewise.
8682 (vsx_xscvdpspn): Tighten constraints to only use register classes
8684 (vsx_xscvspdpn): Likewise.
8685 (vsx_xscvdpspn_scalar): Likewise.
8687 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
8688 wj, and wk constraints.
8689 (GPR_REG_CLASS_P): New helper macro for register classes targeting
8690 general purpose registers.
8692 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
8694 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
8695 DImode instead of wm. Use wk constraint for direct move of DFmode
8697 (extendsidi2_lfiwax): Likewise.
8700 (movdi_internal64): Likewise.
8702 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
8703 wk constraints. Make the wy constraint documentation match them
8706 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
8708 Replacement of isl_int by isl_val
8709 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
8710 (compute_bounds_for_param): use isl_val instead of isl_int
8711 (compute_bounds_for_loop): likewise
8712 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
8713 (build_linearized_memory_access): use isl_val instead of isl_int
8714 (pdr_stride_in_loop): likewise
8715 * graphite-optimize-isl.c:
8716 (getPrevectorMap): use isl_val instead of isl_int
8718 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
8719 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
8720 (extern the_isl_ctx): declare
8721 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
8722 (extract_affine_gmp): likewise
8724 (build_loop_iteration_domains): likewise
8725 (add_param_constraints): likewise
8727 2014-08-11 Richard Biener <rguenther@suse.de>
8729 PR tree-optimization/62075
8730 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
8731 handle uses in patterns.
8733 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8734 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8735 Anna Tikhonova <anna.tikhonova@intel.com>
8736 Ilya Tocar <ilya.tocar@intel.com>
8737 Andrey Turetskiy <andrey.turetskiy@intel.com>
8738 Ilya Verbin <ilya.verbin@intel.com>
8739 Kirill Yukhin <kirill.yukhin@intel.com>
8740 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8742 * common/config/i386/i386-common.c
8743 (OPTION_MASK_ISA_AVX512VL_SET): Define.
8744 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
8745 (ix86_handle_option): Handle OPT_mavx512vl.
8746 * config/i386/cpuid.h (bit_AVX512VL): Define.
8747 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
8748 set -mavx512vl accordingly.
8749 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8750 OPTION_MASK_ISA_AVX512VL.
8751 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
8752 (ix86_option_override_internal): Define PTA_AVX512VL, handle
8753 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
8754 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
8755 * config/i386/i386.h (TARGET_AVX512VL): Define.
8756 (TARGET_AVX512VL_P(x)): Ditto.
8757 * config/i386/i386.opt: Add mavx512vl.
8759 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
8761 PR tree-optimization/62073
8762 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
8765 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8767 Anna Tikhonova <anna.tikhonova@intel.com>
8768 Ilya Tocar <ilya.tocar@intel.com>
8769 Andrey Turetskiy <andrey.turetskiy@intel.com>
8770 Ilya Verbin <ilya.verbin@intel.com>
8771 Kirill Yukhin <kirill.yukhin@intel.com>
8772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8774 * common/config/i386/i386-common.c
8775 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
8776 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
8777 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
8778 (ix86_handle_option): Handle OPT_mavx512bw.
8779 * config/i386/cpuid.h (bit_AVX512BW): Define.
8780 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
8781 set -mavx512bw accordingly.
8782 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8783 OPTION_MASK_ISA_AVX512BW.
8784 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
8785 (ix86_option_override_internal): Define PTA_AVX512BW, handle
8786 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
8787 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
8788 * config/i386/i386.h (TARGET_AVX512BW): Define.
8789 (TARGET_AVX512BW_P(x)): Ditto.
8790 * config/i386/i386.opt: Add mavx512bw.
8792 2014-08-11 Richard Biener <rguenther@suse.de>
8794 PR tree-optimization/62070
8795 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
8796 Remove SSA checking.
8798 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8800 * asan.c (asan_check_flags): New enum.
8801 (build_check_stmt_with_calls): Removed function.
8802 (build_check_stmt): Split inlining logic to
8803 asan_expand_check_ifn.
8804 (instrument_derefs): Rename parameter.
8805 (instrument_mem_region_access): Rename parameter.
8806 (instrument_strlen_call): Likewise.
8807 (asan_expand_check_ifn): New function.
8808 (asan_instrument): Remove old code.
8809 (pass_sanopt::execute): Change handling of
8810 asan-instrumentation-with-call-threshold.
8811 (asan_clear_shadow): Fix formatting.
8812 (asan_function_start): Likewise.
8813 (asan_emit_stack_protection): Likewise.
8814 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
8816 * internal-fn.c (expand_ASAN_CHECK): New function.
8817 * internal-fn.def (ASAN_CHECK): New internal function.
8818 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
8820 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
8821 * tree.c: Small comment fix.
8823 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8825 * gimple.c (gimple_call_fnspec): Support internal functions.
8826 (gimple_call_return_flags): Use const.
8827 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
8828 * internal-fn.def: Add fnspec information.
8829 * internal-fn.h (internal_fn_fnspec): New function.
8830 (init_internal_fns): Declare new function.
8831 * internal-fn.c (internal_fn_fnspec_array): New global variable.
8832 (init_internal_fns): New function.
8833 * tree-core.h: Update macro call.
8834 * tree.c (build_common_builtin_nodes): Initialize internal fns.
8836 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
8838 * lto-streamer.h (struct output_block::symbol): Change from
8839 struct symtab_node to plain symtab_node.
8840 (referenced_from_this_partition_p): Change first parameter
8841 from struct symtab_node to plain symtab_node.
8843 2014-08-10 Marek Polacek <polacek@redhat.com>
8846 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
8848 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
8850 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
8851 DECL correctly; do not give up on types in static storage.
8853 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
8855 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
8857 2014-08-09 Roman Gareev <gareevroman@gmail.com>
8859 * graphite-isl-ast-to-gimple.c:
8860 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
8862 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
8864 2014-08-08 Guozhi Wei <carrot@google.com>
8866 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
8868 2014-08-08 Cary Coutant <ccoutant@google.com>
8870 * dwarf2out.c (get_skeleton_type_unit): Remove.
8871 (output_skeleton_debug_sections): Remove skeleton type units.
8872 (output_comdat_type_unit): Likewise.
8873 (dwarf2out_finish): Likewise.
8875 2014-08-07 Yi Yang <ahyangyi@google.com>
8877 * predict.c (expr_expected_value_1): Remove the redundant assignment.
8879 2014-08-08 Richard Biener <rguenther@suse.de>
8881 * lto-streamer.h (struct lto_input_block): Make it a class
8883 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
8884 (struct lto_function_header, struct lto_simple_header,
8885 struct lto_simple_header_with_strings,
8886 struct lto_decl_header, struct lto_function_header): Make
8887 a simple inheritance hieararchy. Remove unused fields.
8888 (struct lto_asm_header): Remove.
8889 * lto-streamer-out.c (produce_asm): Adjust.
8890 (lto_output_toplevel_asms): Likewise.
8891 (produce_asm_for_decls): Likewise.
8892 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8893 * data-streamer-in.c (string_for_index): Likewise.
8894 * ipa-inline-analysis.c (inline_read_section): Likewise.
8895 * ipa-prop.c (ipa_prop_read_section): Likewise.
8896 (read_replacements_section): Likewise.
8897 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8898 * lto-section-in.c (lto_create_simple_input_block): Likewise.
8899 (lto_destroy_simple_input_block): Likewise.
8900 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
8901 (lto_input_toplevel_asms): Likewise.
8903 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
8904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8905 Anna Tikhonova <anna.tikhonova@intel.com>
8906 Ilya Tocar <ilya.tocar@intel.com>
8907 Andrey Turetskiy <andrey.turetskiy@intel.com>
8908 Ilya Verbin <ilya.verbin@intel.com>
8909 Kirill Yukhin <kirill.yukhin@intel.com>
8910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8912 * common/config/i386/i386-common.c
8913 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
8914 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
8915 (ix86_handle_option): Handle OPT_mavx512dq.
8916 * config/i386/cpuid.h (bit_AVX512DQ): Define.
8917 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
8918 set -mavx512dq accordingly.
8919 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8920 OPTION_MASK_ISA_AVX512DQ.
8921 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
8922 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
8923 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
8924 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
8925 * config/i386/i386.h (TARGET_AVX512DQ): Define.
8926 (TARGET_AVX512DQ_P(x)): Ditto.
8927 * config/i386/i386.opt: Add mavx512dq.
8929 2014-08-08 Richard Biener <rguenther@suse.de>
8931 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
8932 target_percent, target_percent_s): Export.
8933 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
8934 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
8935 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
8936 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
8937 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
8938 Move to gimple-fold.c.
8939 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
8941 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
8942 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
8943 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
8944 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
8945 (rewrite_call_expr_array): Remove.
8946 (fold_builtin_sprintf_chk): Likewise.
8947 (fold_builtin_snprintf_chk): Likewise.
8948 (fold_builtin_varargs): Remove handling of sprintf_chk,
8949 vsprintf_chk, snprintf_chk and vsnprintf_chk.
8950 (gimple_fold_builtin_sprintf_chk): Remove.
8951 (gimple_fold_builtin_snprintf_chk): Likewise.
8952 (gimple_fold_builtin_varargs): Likewise.
8953 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
8954 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
8955 * gimple.c (gimple_seq_add_seq_without_update): New function.
8956 * gimple.h (gimple_seq_add_seq_without_update): Declare.
8957 * gimple-fold.c: Include output.h.
8958 (gsi_replace_with_seq_vops): New function, split out from ...
8959 (gimplify_and_update_call_from_tree): ... here.
8960 (replace_call_with_value): New function.
8961 (replace_call_with_call_and_fold): Likewise.
8962 (var_decl_component_p): Moved from builtins.c.
8963 (gimple_fold_builtin_memory_op): Moved from builtins.c
8964 fold_builtin_memory_op and rewritten to GIMPLE.
8965 (gimple_fold_builtin_memset): Likewise.
8966 (gimple_fold_builtin_strcpy): Likewise.
8967 (gimple_fold_builtin_strncpy): Likewise.
8968 (gimple_fold_builtin_strcat): Likewise.
8969 (gimple_fold_builtin_fputs): Likewise.
8970 (gimple_fold_builtin_memory_chk): Likewise.
8971 (gimple_fold_builtin_stxcpy_chk): Likewise.
8972 (gimple_fold_builtin_stxncpy_chk): Likewise.
8973 (gimple_fold_builtin_snprintf_chk): Likewise.
8974 (gimple_fold_builtin_sprintf_chk): Likewise.
8975 (gimple_fold_builtin_strlen): New function.
8976 (gimple_fold_builtin_with_strlen): New function split out from
8977 gimple_fold_builtin.
8978 (gimple_fold_builtin): Change signature and handle
8979 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
8980 here. Call gimple_fold_builtin_with_strlen.
8981 (gimple_fold_call): Adjust.
8983 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8985 * calls.c (precompute_arguments): Check
8986 promoted_for_signed_and_unsigned_p and set the promoted mode.
8987 (promoted_for_signed_and_unsigned_p): New function.
8988 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8989 and set the promoted mode.
8990 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8991 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8992 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8995 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8997 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
8998 instead of SUBREG_PROMOTED_UNSIGNED_SET.
8999 (expand_call): Likewise.
9000 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9001 to get promoted mode.
9002 * combine.c (record_promoted_value): Skip > 0 comparison with
9003 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9004 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9005 of SUBREG_PROMOTED_UNSIGNED_P.
9006 (convert_modes): Likewise.
9007 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9008 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9009 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9010 SUBREG_PROMOTED_UNSIGNED_SET.
9011 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9012 instead of SUBREG_PROMOTED_UNSIGNED_SET.
9013 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9014 SUBREG_PROMOTED_SET.
9015 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9016 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9017 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9018 of SUBREG_PROMOTED_UNSIGNED_P.
9019 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9020 (SUBREG_PROMOTED_SET): New define.
9021 (SUBREG_PROMOTED_GET): Likewise.
9022 (SUBREG_PROMOTED_SIGN): Likewise.
9023 (SUBREG_PROMOTED_SIGNED_P): Likewise.
9024 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9025 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9026 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9027 instead of SUBREG_PROMOTED_UNSIGNED_GET.
9028 (nonzero_bits1): Skip > 0 comparison with the results as
9029 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9030 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9031 of !SUBREG_PROMOTED_UNSIGNED_P.
9032 * simplify-rtx.c (simplify_unary_operation_1): Use new
9033 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9034 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9035 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9036 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9038 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
9040 * ipa-devirt.c: Include gimple-pretty-print.h
9041 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9043 (decl_maybe_in_construction_p): Fix conditional on cdtor check
9044 (get_polymorphic_call_info): Fix return value
9045 (type_change_info): New sturcture based on ipa-prop
9047 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
9048 based on ipa-prop variant.
9049 (extr_type_from_vtbl_ptr_store): New function
9050 based on ipa-prop variant.
9051 (record_known_type): New function.
9052 (check_stmt_for_type_change): New function.
9053 (get_dynamic_type): New function.
9054 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
9055 * tree-ssa-pre.c: ipa-utils.h
9056 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
9057 machinery; sanity check with ipa-prop devirtualization.
9058 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
9061 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
9063 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
9064 * alias.c, cfgexpand.c, cgraphbuild.c,
9065 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
9066 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
9067 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
9068 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
9069 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
9070 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9071 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
9072 dse.c, except.c, gengtype.c, gimple-expr.c,
9073 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
9074 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
9075 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
9076 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
9077 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
9078 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
9080 * pointer-set.c: Remove file.
9081 * pointer-set.h: Remove file.
9083 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9085 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
9086 * config/arm/types.md (f_sels, f_seld): Delete.
9088 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9090 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
9091 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
9092 (aarch64_movdi_<mode>high): Likewise.
9093 (aarch64_mov<mode>high_di): Likewise.
9094 (aarch64_movdi_<mode>low): Likewise.
9095 (aarch64_mov<mode>low_di): Likewise.
9096 (aarch64_movtilow_tilow): Likewise.
9097 Add comment explaining usage of fp,simd attributes and of
9098 TARGET_FLOAT and TARGET_SIMD.
9100 2014-08-07 Ian Bolton <ian.bolton@arm.com>
9101 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9103 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9104 Use MOVN when one of the half-words is 0xffff.
9106 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
9108 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9110 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9112 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
9113 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9114 (rfs_str): String corresponding to RFS_* constants.
9115 (rank_for_schedule_stats_t): New typedef.
9116 (rank_for_schedule_stats): New static variable.
9117 (rfs_result): New static function.
9118 (rank_for_schedule): Track statistics for deciding heuristics.
9119 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9121 (ready_sort): Use them for debug printouts.
9122 (schedule_block): Init statistics state. Print statistics on
9123 rank_for_schedule decisions.
9125 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9127 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9129 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
9131 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9134 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
9136 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9137 function to not conflict.
9138 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9139 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9140 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9141 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9142 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9145 2014-08-07 Marek Polacek <polacek@redhat.com>
9147 * fold-const.c (fold_binary_loc): Add folding of
9148 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9150 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
9152 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9153 instead of type size.
9154 (ASM_FINISH_DECLARE_OBJECT): Likewise.
9156 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
9158 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9159 (*thumb1_movqi_insn): Likewise.
9160 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9162 2014-08-07 Tom de Vries <tom@codesourcery.com>
9164 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9165 (glibc_2_11_or_earlier): Remove effective-target keywords.
9167 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9169 * config/arm/arm.c (bdesc_2arg): Fix typo.
9170 (arm_atomic_assign_expand_fenv): Remove The default implementation.
9172 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
9174 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9176 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
9179 * haifa-sched.c (advance_one_cycle): Fix dump.
9180 (schedule_block): Don't advance cycle if we are already at the
9181 beginning of the cycle.
9183 2014-08-06 Martin Jambor <mjambor@suse.cz>
9186 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9188 2014-08-06 Richard Biener <rguenther@suse.de>
9191 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9193 (lto_input_tree): Pop SCCs here.
9195 2014-08-06 Richard Biener <rguenther@suse.de>
9197 PR tree-optimization/61320
9198 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9199 handle misaligned loads.
9201 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
9203 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9204 (aarch64_expand_vec_perm_const): Check for dup before zip.
9206 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9208 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9209 CONST_INT_P instead of GET_CODE and compare.
9210 (aarch64_select_cc_mode): Likewise.
9211 (aarch64_print_operand): Likewise.
9212 (aarch64_rtx_costs): Likewise.
9213 (aarch64_simd_valid_immediate): Likewise.
9214 (aarch64_simd_check_vect_par_cnst_half): Likewise.
9215 (aarch64_simd_emit_pair_result_insn): Likewise.
9217 2014-08-05 David Malcolm <dmalcolm@redhat.com>
9219 * gdbhooks.py (find_gcc_source_dir): New helper function.
9220 (class PassNames): New class, locating and parsing passes.def.
9221 (class BreakOnPass): New command "break-on-pass".
9223 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
9225 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9228 2014-08-05 Richard Biener <rguenther@suse.de>
9230 PR rtl-optimization/61672
9231 * emit-rtl.h (mem_attrs_eq_p): Declare.
9232 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
9233 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9234 * cfgcleanup.c (merge_memattrs): Likewise.
9237 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9239 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9240 rather than singleton vectors.
9241 (vqdmlsls_lane_s32): Likewise.
9243 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9245 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9246 Use VSDQ_HSI mode iterator.
9247 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9248 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9249 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9250 Use BUILTIN_VDQHS macro.
9251 (sqrdmulh_laneq): Likewise.
9252 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9253 (vqdmlals_laneq_s32): Likewise.
9254 (vqdmlslh_laneq_s16): Likewise.
9255 (vqdmlsls_laneq_s32): Likewise.
9256 (vqdmulhh_laneq_s16): Likewise.
9257 (vqdmulhs_laneq_s32): Likewise.
9258 (vqrdmulhh_laneq_s16): Likewise.
9259 (vqrdmulhs_laneq_s32): Likewise.
9261 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9263 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9264 (vmuld_laneq_f64): Likewise.
9265 (vmuls_laneq_f32): Likewise.
9266 (vmul_n_f64): Likewise.
9267 (vmuld_lane_f64): Reimplement in C.
9268 (vmuls_lane_f32): Likewise.
9270 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9272 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9274 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9276 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9278 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9279 (rbitsi2): Likewise.
9280 (*arm_rev): Set predicable and predicable_short_it attributes.
9282 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9284 * convert.c (convert_to_integer): Guard transformation to lrint by
9287 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9289 * config/aarch64/aarch64-builtins.c
9290 (aarch64_simd_builtin_type_mode): Delete.
9291 (v8qi_UP): Remap to V8QImode.
9292 (v4hi_UP): Remap to V4HImode.
9293 (v2si_UP): Remap to V2SImode.
9294 (v2sf_UP): Remap to V2SFmode.
9295 (v1df_UP): Remap to V1DFmode.
9296 (di_UP): Remap to DImode.
9297 (df_UP): Remap to DFmode.
9298 (v16qi_UP):V16QImode.
9299 (v8hi_UP): Remap to V8HImode.
9300 (v4si_UP): Remap to V4SImode.
9301 (v4sf_UP): Remap to V4SFmode.
9302 (v2di_UP): Remap to V2DImode.
9303 (v2df_UP): Remap to V2DFmode.
9304 (ti_UP): Remap to TImode.
9305 (ei_UP): Remap to EImode.
9306 (oi_UP): Remap to OImode.
9307 (ci_UP): Map to CImode.
9308 (xi_UP): Remap to XImode.
9309 (si_UP): Remap to SImode.
9310 (sf_UP): Remap to SFmode.
9311 (hi_UP): Remap to HImode.
9312 (qi_UP): Remap to QImode.
9313 (aarch64_simd_builtin_datum): Make mode a machine_mode.
9314 (VAR1): Build builtin name.
9315 (aarch64_init_simd_builtins): Remove dead code.
9317 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9319 * graphite-isl-ast-to-gimple.c:
9320 (set_options): New function.
9321 (scop_to_isl_ast): Add calling of set_options.
9323 2014-08-05 Jakub Jelinek <jakub@redhat.com>
9325 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9326 (analyze_iv_to_split_insn): Don't initialize them.
9327 (get_ivts_expr): Removed.
9328 (allocate_basic_variable, insert_base_initialization): Use
9329 SET_SRC instead of *get_ivts_expr.
9330 (split_iv): Use &SET_SRC instead of get_ivts_expr.
9332 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9334 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9335 (translate_isl_ast_for_loop): Add checking of the
9336 flag_loop_parallelize_all.
9337 (ast_build_before_for): New function.
9338 (scop_to_isl_ast): Add checking of the
9339 flag_loop_parallelize_all.
9340 * graphite-dependences.c: Move the defenition of the
9341 scop_get_dependences from graphite-optimize-isl.c to this file.
9342 (apply_schedule_on_deps): Add checking of the ux's emptiness.
9343 (carries_deps): Add checking of the x's value.
9344 * graphite-optimize-isl.c: Move the defenition of the
9345 scop_get_dependences to graphite-dependences.c.
9346 * graphite-poly.h: Add declarations of scop_get_dependences
9349 2014-08-04 Rohit <rohitarulraj@freescale.com>
9352 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9354 (alt_reg_names): Likewise.
9355 (rs6000_dwarf_register_span): For SPE high registers, replace
9356 dwarf register numbers with GCC hard register numbers.
9357 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9358 (rs6000_dbx_register_number): For SPE high registers, return dwarf
9359 register number for the corresponding GCC hard register number.
9360 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9361 newly added GCC hard register numbers for SPE high registers.
9362 (DWARF_FRAME_REGISTERS): Likewise.
9363 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9364 (DWARF_FRAME_REGNUM): Likewise.
9365 (FIXED_REGISTERS): Likewise.
9366 (CALL_USED_REGISTERS): Likewise.
9367 (CALL_REALLY_USED_REGISTERS): Likewise.
9368 (REG_ALLOC_ORDER): Likewise.
9369 (enum reg_class): Likewise.
9370 (REG_CLASS_NAMES): Likewise.
9371 (REG_CLASS_CONTENTS): Likewise.
9372 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9374 2014-08-04 Richard Biener <rguenther@suse.de>
9376 * gimple-fold.h (gimple_fold_builtin): Remove.
9377 * gimple-fold.c (gimple_fold_builtin): Make static.
9378 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9379 fold_stmt, not gimple_fold_builtin.
9381 2014-08-04 Martin Liska <mliska@suse.cz>
9383 * cgraph.h (csi_end_p): Removed.
9384 (csi_next): Likewise.
9385 (csi_node): Likewise.
9386 (csi_start): Likewise.
9387 (cgraph_node_in_set_p): Likewise.
9388 (cgraph_node_set_size): Likewise.
9389 (vsi_end_p): Likewise.
9390 (vsi_next): Likewise.
9391 (vsi_node): Likewise.
9392 (vsi_start): Likewise.
9393 (varpool_node_set_size): Likewise.
9394 (cgraph_node_set_nonempty_p): Likewise.
9395 (varpool_node_set_nonempty_p): Likewise.
9396 * cgraphunit.c (cgraph_process_new_functions): vec replaces
9398 * ipa-inline-transform.c: Likewise.
9399 * ipa-utils.c (cgraph_node_set_new): Removed.
9400 (cgraph_node_set_add): Likewise.
9401 (cgraph_node_set_remove): Likewise.
9402 (cgraph_node_set_find): Likewise.
9403 (dump_cgraph_node_set): Likewise.
9404 (debug_cgraph_node_set): Likewise.
9405 (free_cgraph_node_set): Likewise.
9406 (varpool_node_set_new): Likewise.
9407 (varpool_node_set_add): Likewise.
9408 (varpool_node_set_remove): Likewise.
9409 (varpool_node_set_find): Likewise.
9410 (dump_varpool_node_set): Likewise.
9411 (free_varpool_node_set): Likewise.
9412 (debug_varpool_node_set): Likewise.
9413 * tree-emutls.c (struct tls_var_data):
9414 (emutls_index): Removed.
9415 (emutls_decl): Likewise.
9416 (gen_emutls_addr): Function implementation uses newly added
9417 hash_map<varpool_node *, tls_var_data>.
9418 (clear_access_vars): Likewise.
9419 (create_emultls_var): Likewise.
9420 (ipa_lower_emutls): Likewise.
9421 (reset_access): New function.
9423 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9425 * config/i386/i386.c (ix86_option_override_internal): Add
9426 PTA_RDRND and PTA_MOVBE for bdver4.
9428 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9429 James Greenhalgh <james.greenhalgh@arm.com>
9431 * doc/md.texi (clrsb): Document.
9432 (clz): Change reference to x into operand 1.
9434 (popcount): Likewise.
9436 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9439 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9440 move to subtarget in serial version if result is ignored.
9442 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9443 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9445 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9446 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
9447 (sched_analyze_insn): Update use of try_group_insn to
9448 sched_macro_fuse_insns.
9449 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9450 arguments that are not conditional jumps.
9452 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9454 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9455 family information. Handle BTVER2 cpu with cpuid family value.
9457 2014-08-04 Tom de Vries <tom@codesourcery.com>
9459 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9460 (glibc_2_11_or_earlier): Document effective-target keywords.
9462 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9464 * ipa-devirt.c (odr_type_warn_count): Add type.
9465 (possible_polymorphic_call_targets): Set it.
9466 (ipa_devirt): Use it.
9468 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9470 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9472 * ipa-devirt.c: Include hash-map.h
9473 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9474 (clear_speculation): Break out of ...
9475 (get_class_context): ... here; speed up handling obviously useless
9477 (odr_type_warn_count, decl_warn_count): New structures.
9478 (final_warning_record): New structure.
9479 (final_warning_records): New static variable.
9480 (possible_polymorphic_call_targets): Cleanup handling of
9481 speculative info; do not build speculation when user do not care;
9482 record info about warnings when asked for.
9483 (add_decl_warning): New function.
9484 (type_warning_cmp): New function.
9485 (decl_warning_cmp): New function.
9486 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9487 (gate): Enable pass when warnings are requested.
9488 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9491 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9493 * hash-map.h (default_hashmap_traits::mark_key_deleted):
9495 (hash_map::remove): New method.
9496 (hash_map::traverse): New method.
9497 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9498 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9499 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9500 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9501 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9502 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9505 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9507 * hash-set.h: new File.
9508 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9509 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9510 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9511 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9512 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9513 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9514 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9515 varpool.c: Use hash_set instead of pointer_set.
9517 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
9519 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9521 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9523 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9524 for frame access when strict_p is false.
9526 2014-08-01 Renlin Li <renlin.li@arm.com>
9527 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9529 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9530 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9531 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9533 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9535 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9536 aarch64_mem_pair_offset.
9538 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9540 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9542 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9543 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9545 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
9547 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9549 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
9552 * cgraphunit.c (analyze_functions): Use get_create rather than get
9553 for decls which are clones of abstract functions.
9555 2014-08-01 Martin Liska <mliska@suse.cz>
9557 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9558 * ipa-prop.h (count_formal_params): Global function created from static.
9559 * ipa-prop.c (count_formal_params): Likewise.
9560 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9561 profiles for semantically equivalent functions.
9562 * passes.c (do_per_function): If we load body of a function
9563 during WPA, this condition should behave same.
9564 * varpool.c (ctor_for_folding): More tolerant assert for variable
9565 aliases created during WPA.
9567 2014-08-01 Martin Liska <mliska@suse.cz>
9569 * doc/invoke.texi (Options That Control Optimization): Documentation
9570 for -foptimize-strlen introduced. Optimization levels default options
9573 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9575 * opts.c (common_handle_option): Handle -fsanitize=alignment.
9576 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9577 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9579 * stor-layout.h (min_align_of_type): New prototype.
9580 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9581 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
9583 * ubsan.c: Include builtins.h.
9584 (ubsan_expand_bounds_ifn): Change return type to bool,
9586 (ubsan_expand_null_ifn): Change return type to bool, change
9587 argument to gimple_stmt_iterator *. Handle both null and alignment
9588 sanitization, take type from ckind argument's type rather than
9590 (instrument_member_call): Removed.
9591 (instrument_mem_ref): Remove t argument, add mem and base arguments.
9592 Handle both null and alignment sanitization, don't say whole
9593 struct access is member access. Build 3 argument IFN_UBSAN_NULL
9594 call instead of 2 argument.
9595 (instrument_null): Adjust instrument_mem_ref caller. Don't
9596 instrument calls here.
9597 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9599 * stor-layout.c (min_align_of_type): New function.
9600 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9601 Or it into SANITIZE_UNDEFINED.
9602 * doc/invoke.texi (-fsanitize=alignment): Document.
9604 2014-07-31 Andi Kleen <ak@linux.intel.com>
9606 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9608 2014-07-31 Andi Kleen <ak@linux.intel.com>
9610 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9612 (vn_reference_compute_hash): Dito.
9613 (vn_nary_op_compute_hash): Dito.
9614 (vn_phi_compute_hash): Dito.
9615 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9617 2014-07-31 Andi Kleen <ak@linux.intel.com>
9619 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9620 Rename to inchash:add_expr_commutative. Convert to inchash.
9621 (iterative_hash_hashable_expr): Rename to
9622 inchash:add_hashable_expr. Convert to inchash.
9623 (avail_expr_hash): Dito.
9625 2014-07-31 Andi Kleen <ak@linux.intel.com>
9627 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9630 2014-07-31 Andi Kleen <ak@linux.intel.com>
9632 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9634 2014-07-31 Andi Kleen <ak@linux.intel.com>
9636 * Makefile.in (OBJS): Add rtlhash.o
9637 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9638 (loc_checksum): Dito.
9639 (loc_checksum_ordered): Dito.
9640 (hash_loc_operands): Dito.
9642 (hash_loc_list): Dito.
9643 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9644 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9645 * rtlhash.c: New file.
9646 * rtlhash.h: New file.
9648 2014-07-31 Andi Kleen <ak@linux.intel.com>
9650 * inchash.h (inchash): Change inchash class to namespace.
9651 (class hash): ... Rename from inchash.
9652 (add_object): Move from macro to class template.
9653 * lto-streamer-out.c (hash_tree): Change inchash
9655 * tree.c (build_type_attribute_qual_variant): Dito.
9656 (type_hash_list): Dito.
9657 (attribute_hash_list): Dito.
9658 (iterative_hstate_expr): Rename to inchash::add_expr
9659 (build_range_type_1): Change inchash to inchash::hash
9660 and use hash::add_expr.
9661 (build_array_type_1): Dito.
9662 (build_function_type): Dito
9663 (build_method_type_directly): Dito.
9664 (build_offset_type): Dito.
9665 (build_complex_type): Dito.
9666 (make_vector_type): Dito.
9667 * tree.h (iterative_hash_expr): Dito.
9669 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
9671 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9673 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9675 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9676 correct alphabetical position.
9677 (vpaddd_f64): Rewrite using builtins.
9678 (vpaddd_s64): Move to correct alphabetical position.
9681 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
9684 * config/sh/sh.c (sh_legitimate_address_p,
9685 sh_legitimize_reload_address): Handle reg+reg address modes when
9686 ALLOW_INDEXED_ADDRESS is false.
9687 * config/sh/predicates.md (general_movsrc_operand,
9688 general_movdst_operand): Likewise.
9690 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9692 * config/aarch64/aarch64-builtins.c
9693 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
9696 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9698 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
9699 the generated mask based on BYTES_BIG_ENDIAN.
9700 (aarch64_simd_check_vect_par_cnst_half): New.
9701 * config/aarch64/aarch64-protos.h
9702 (aarch64_simd_check_vect_par_cnst_half): New.
9703 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
9704 the check out to aarch64_simd_check_vect_par_cnst_half.
9705 (vect_par_cnst_lo_half): Likewise.
9706 * config/aarch64/aarch64-simd.md
9707 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
9708 (move_hi_quad_<mode>): Always generate a low mask.
9710 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9712 * doc/invoke.texi (AVR Options): Add documentation about
9713 __AVR_DEVICE_NAME__ built-in macro.
9715 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
9718 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
9719 constraints are satisfied.
9720 (<shift>di3_neon): Likewise.
9722 2014-07-31 Richard Biener <rguenther@suse.de>
9724 PR tree-optimization/61964
9725 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
9726 by structural equality.
9728 2014-07-31 Yury Gribov <y.gribov@samsung.com>
9730 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
9731 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
9732 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
9734 * gcc.c (sanitize_spec_function): Support new option.
9735 (SANITIZER_SPEC): Remove now redundant check.
9736 * opts.c (common_handle_option): Support new option.
9737 (finish_options): Check for incompatibilities.
9738 * toplev.c (process_options): Split userspace-specific checks.
9740 2014-07-31 Richard Biener <rguenther@suse.de>
9742 * lto-streamer.h (struct output_block): Remove global.
9743 (struct data_in): Remove labels, num_named_labels and
9745 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
9746 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
9748 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
9751 * common.opt (-Wreturn-local-addr): Moved from c.opt.
9752 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
9753 (isolate_path): New argument to avoid inserting a trap.
9754 (find_implicit_erroneous_behaviour): Handle returning the address
9755 of a local variable.
9756 (find_explicit_erroneous_behaviour): Likewise.
9758 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
9761 * toplev.c (init_random_seed): Move piece of code never called to
9763 (set_random_seed): see above.
9765 2014-07-31 Tom de Vries <tom@codesourcery.com>
9767 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
9769 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9771 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
9772 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
9774 2014-07-31 Richard Biener <rguenther@suse.de>
9776 * data-streamer.h (streamer_write_data_stream): Declare here,
9778 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
9779 * lto-cgraph.c (lto_output_node): Adjust.
9780 (lto_output_varpool_node): Likewise.
9781 * data-streamer-out.c (streamer_string_index): Likewise.
9782 (streamer_write_data_stream, lto_append_block): Move from ...
9783 * lto-section-out.c (lto_output_data_stream,
9784 lto_append_block): ... here.
9786 2014-07-30 Mike Stump <mikestump@comcast.net>
9788 * configure.ac: Also check for popen.
9789 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
9790 * configure: Regenerate.
9791 * config.in: Regenerate.
9793 2014-07-30 Martin Jambor <mjambor@suse.cz>
9795 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
9796 parameter to gimple.
9798 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9800 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
9801 address as second parameter to __tpf_eh_return routine.
9803 2014-07-30 Jiong Wang <jiong.wang@arm.com>
9805 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
9808 2014-07-30 Tom Tromey <tromey@redhat.com>
9811 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
9812 * doc/extend.texi (Type Attributes): Document designated_init
9815 2014-07-30 Roman Gareev <gareevroman@gmail.com>
9817 * graphite-isl-ast-to-gimple.c:
9818 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
9819 (gcc_expression_from_isl_expression): Pass type to
9820 gcc_expression_from_isl_ast_expr_id.
9822 2014-07-30 Richard Biener <rguenther@suse.de>
9824 * lto-streamer.h (lto_write_data): New function.
9825 * langhooks.c (lhd_append_data): Do not free block.
9826 * lto-section-out.c (lto_write_data): New function writing
9827 raw data to the current section.
9828 (lto_write_stream): Adjust for langhook semantic change.
9829 (lto_destroy_simple_output_block): Write header directly.
9830 * lto-opts.c (lto_write_options): Write options directly.
9831 * lto-streamer-out.c (produce_asm): Write heaeder directly.
9832 (lto_output_toplevel_asms): Likewise.
9833 (copy_function_or_variable): Copy data directly.
9834 (write_global_references): Output index table directly.
9835 (lto_output_decl_state_refs): Likewise.
9836 (write_symbol): Write data directly.
9837 (produce_symtab): Adjust.
9838 (produce_asm_for_decls): Output header and refs directly.
9840 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9842 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
9843 to speculative_targets
9844 (get_class_context): Fix handling of contextes without outer type;
9845 avoid matching non-polymorphic types in LTO.
9846 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
9847 parameter to speculative_targetsp; handle speculation.
9848 (dump_possible_polymorphic_call_targets): Update dumping.
9850 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9852 * common.opt (Wodr): Enable by default.
9854 2014-07-29 Olivier Hainque <hainque@adacore.com>
9856 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
9858 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
9861 * gengtype.c (strtoken): New function.
9862 (create_user_defined_type): Replace strtok with strtoken.
9864 2014-07-29 Nathan Sidwell <nathan@acm.org>
9866 * gcov-io.c (gcov_var): Make hidden.
9867 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
9868 (gcov_do_dump): Declare.
9869 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
9871 2014-07-29 Martin Jambor <mjambor@suse.cz>
9873 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
9874 parameter to gimple.
9875 (sra_modify_assign): Likewise.
9877 2014-07-29 Richard Biener <rguenther@suse.de>
9880 * expr.c (expand_expr_real_2): Revert last change.
9882 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9884 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
9885 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
9886 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
9888 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
9889 (contains_type_p): Forward declare.
9890 (polymorphic_call_target_hasher::hash): Hash speculative info.
9891 (polymorphic_call_target_hasher::equal): Compare speculative info.
9892 (get_class_context): Handle speuclation.
9893 (contains_type_p): Update.
9894 (get_polymorphic_call_info_for_decl): Update.
9895 (walk_ssa_copies): Break out from ...
9896 (get_polymorphic_call_info): ... here; set speculative context
9898 * ipa-prop.c (ipa_write_indirect_edge_info,
9899 ipa_read_indirect_edge_info): Stream speculative context.
9900 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
9901 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
9902 SPECULATIVE_MAYBE_DERIVED_TYPE).
9903 (possible_polymorphic_call_targets overriders): Update.
9904 (dump_possible_polymorphic_call_targets overriders): Update.
9905 (dump_possible_polymorphic_call_target_p overriders): Update.
9907 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9909 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
9910 ipa-devirt path; fix thinko there.
9912 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
9914 * config/i386/i386.c (ix86_return_in_memory): Replace one
9915 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
9917 2014-07-28 Marek Polacek <polacek@redhat.com>
9919 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
9921 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
9923 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
9924 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
9925 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
9926 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9927 (USE_LD_AS_NEEDED): Likewise.
9928 (ASM_APP_ON): Likewise.
9929 (ASM_APP_OFF): Likewise.
9930 (TARGET_POSIX_IO): Likewise.
9931 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
9932 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9933 (USE_LD_AS_NEEDED): Likewise.
9934 (ASM_APP_ON): Likewise.
9935 (ASM_APP_OFF): Likewise.
9936 (TARGET_POSIX_IO): Likewise.
9938 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
9941 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
9942 operators other than the equality operators.
9944 2014-07-28 Richard Biener <rguenther@suse.de>
9947 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
9948 sure to register SImode ones, not only >= word_mode ones.
9949 * expr.c (expand_expr_real_2): When expanding -ftrapv
9950 binops do not use OPTAB_LIB_WIDEN.
9952 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
9955 * tree-outof-ssa.c (insert_partition_copy_on_edge)
9956 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
9957 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
9958 inserting them in the insn stream.
9960 2014-07-28 Marek Polacek <polacek@redhat.com>
9963 * common.opt (Wodr): Add Var.
9965 2014-07-28 Richard Biener <rguenther@suse.de>
9967 PR tree-optimization/61921
9968 * tree-ssa-structalias.c (create_variable_info_for_1): Check
9969 if there is a varpool node before dereferencing it.
9971 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9973 * graphite-sese-to-poly.c:
9974 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
9975 id of the pbb), which contains pointer to the pbb1.
9977 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
9979 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9981 * graphite-isl-ast-to-gimple.c:
9982 (graphite_create_new_guard): New function.
9983 (translate_isl_ast_node_if): New function.
9984 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
9986 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
9988 2014-07-27 Anthony Green <green@moxielogic.com>
9990 * config.gcc: Add moxie-*-moxiebox* configuration.
9991 * config/moxie/moxiebox.h: New file.
9993 2014-07-26 Andrew Pinski <apinski@cavium.com>
9995 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
9996 from the read only register.
9998 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10000 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10001 as the allocation class if it isn't likely to be spilled.
10003 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10005 * rtl.h (tls_referenced_p): Declare.
10006 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10007 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10008 (mips_cannot_force_const_mem): Use tls_referenced_p.
10009 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10010 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10011 instead of pa_tls_referenced_p.
10012 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10013 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10014 (pa_legitimate_constant_p): Likewise.
10015 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10016 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10017 (rs6000_cannot_force_const_mem, rs6000_emit_move)
10018 (rs6000_address_for_altivec): Use tls_referenced_p instead of
10019 rs6000_tls_referenced_p.
10020 (rs6000_tls_symbol_ref_1): Delete.
10022 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
10025 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10026 Optimize inverse of a VEC_CONCAT.
10028 2014-07-25 Xinliang David Li <davidxl@google.com>
10030 * params.def: New parameter.
10031 * coverage.c (get_coverage_counts): Check new flag.
10032 (coverage_compute_profile_id): Check new flag.
10033 (coverage_begin_function): Check new flag.
10034 (coverage_end_function): Check new flag.
10035 * value-prof.c (coverage_node_map_initialized_p): New function.
10036 (init_node_map): Populate map with all functions.
10037 * doc/invoke.texi: Document new parameter.
10039 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
10040 Richard Biener <rguenther@suse.de>
10042 * lto-streamer-out.c (struct sccs): Turn to ...
10043 (class DFS): ... this one; refactor the DFS walk so it can
10044 be re-done on per-SCC basis.
10045 (DFS::DFS): New constructor.
10046 (DFS::~DFS): New destructor.
10047 (hash_tree): Add new MAP argument holding in-SCC hash values;
10048 remove POINTER_TYPE hashing hack.
10049 (scc_entry_compare): Rename to ...
10050 (DFS::scc_entry_compare): ... this one.
10051 (hash_scc): Rename to ...
10052 (DFS::hash_scc): ... this one; pass output_block instead
10053 of streamer_cache; work harder to get unique and stable SCC
10055 (DFS_write_tree): Rename to ...
10056 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
10057 (lto_output_tree): Update.
10059 2014-07-25 Andi Kleen <ak@linux.intel.com>
10061 * lto-streamer-out.c (hash_tree): Convert to inchash.
10063 2014-07-25 Andi Kleen <ak@linux.intel.com>
10065 * tree.c (build_type_attribute_qual_variant): Use inchash.
10066 (type_hash_list): Dito.
10067 (attribute_hash_list): Dito
10068 (iterative_hstate_expr): Dito.
10069 (iterative_hash_expr): Dito.
10070 (build_range_type_1): Dito.
10071 (build_array_type_1): Dito.
10072 (build_function_type): Dito.
10073 (build_method_type_directly): Dito.
10074 (build_offset_type): Dito.
10075 (build_complex_type): Dito.
10076 (make_vector_type): Dito.
10077 * tree.h (iterative_hash_expr): Add compat wrapper.
10078 (iterative_hstate_expr): Add.
10080 2014-07-25 Andi Kleen <ak@linux.intel.com>
10082 * Makefile.in (OBJS): Add inchash.o.
10083 (PLUGIN_HEADERS): Add inchash.h.
10084 * ipa-devirt.c: Include inchash.h.
10085 * lto-streamer-out.c: Dito.
10086 * tree-ssa-dom.c: Dito.
10087 * tree-ssa-pre.c: Dito.
10088 * tree-ssa-sccvn.c: Dito.
10089 * tree-ssa-tail-merge.c: Dito.
10091 * tree.c (iterative_hash_hashval_t): Move to ...
10092 (iterative_hash_host_wide_int): Move to ...
10093 * inchash.c: Here. New file.
10094 * tree.h (iterative_hash_hashval_t): Move to ...
10095 (iterative_hash_host_wide_int): Move to ...
10096 * inchash.h: Here. New file.
10098 2014-07-25 Richard Biener <rguenther@suse.de>
10100 PR middle-end/61762
10101 PR middle-end/61894
10102 * fold-const.c (native_encode_int): Add and handle offset
10103 parameter to do partial encodings of expr.
10104 (native_encode_fixed): Likewise.
10105 (native_encode_real): Likewise.
10106 (native_encode_complex): Likewise.
10107 (native_encode_vector): Likewise.
10108 (native_encode_string): Likewise.
10109 (native_encode_expr): Likewise.
10110 * fold-const.c (native_encode_expr): Add offset parameter
10112 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10113 (fold_ctor_reference): Handle all reads from tcc_constant
10116 2014-07-25 Richard Biener <rguenther@suse.de>
10118 * tree-inline.c (estimate_move_cost): Mark speed_p argument
10119 as possibly unused.
10121 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10123 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10125 2014-07-24 Kyle McMartin <kyle@redhat.com>
10127 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10129 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10131 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10133 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10135 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10136 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10137 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10139 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10141 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10142 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10143 aggregate types. Instead, *all* aggregate types, except for single-
10144 element or homogeneous float/vector aggregates, are quadword-aligned
10145 if required by their type alignment. Issue -Wpsabi note when a type
10146 is now treated differently than before.
10148 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10150 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10151 does not fit fully into floating-point registers, and there is still
10152 space in the register parameter area, use GPRs to pass those parts
10153 of the argument. Issue -Wpsabi note if any parameter is now treated
10154 differently than before.
10155 (rs6000_arg_partial_bytes): Update.
10157 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
10159 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10161 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10163 * rtl.h (target_rtl): Remove lang_dependent_initialized.
10164 * toplev.c (initialize_rtl): Don't use it. Move previously
10165 "language-dependent" calls to...
10166 (backend_init): ...here.
10167 (lang_dependent_init_target): Don't set lang_dependent_initialized.
10168 Assert that RTL initialization hasn't happend yet.
10170 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10172 PR rtl-optimization/61629
10173 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10174 they have already been initialized.
10176 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10178 PR middle-end/61268
10179 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10180 DECL_INCOMING_RTL and entry_parm.
10181 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10182 * calls.c (load_register_parameters): Likewise argument values.
10183 (emit_library_call_value_1, store_one_arg): Likewise argument
10185 * config/i386/i386.c (assign_386_stack_local): Likewise the local
10187 * explow.c (validize_mem): Modify the argument in-place.
10189 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10191 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10192 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10194 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10196 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10197 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10199 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10201 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10202 (aarch64_save_callee_saves): New parameter "skip_wb".
10203 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10205 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10207 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10209 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10211 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10213 * graphite-isl-ast-to-gimple.c:
10214 (graphite_create_new_loop): Add calling of isl_id_free to properly
10215 decrement reference counts.
10217 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10219 2014-07-24 Martin Liska <mliska@suse.cz>
10220 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10222 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10223 (rs6000_code_end): Likewise.
10225 2014-07-24 Martin Liska <mliska@suse.cz>
10227 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10228 symtab_node funtion used.
10229 (rs6000_xcoff_declare_object_name): Likewise.
10231 2014-07-24 Martin Liska <mliska@suse.cz>
10233 * cgraphunit.c (compile): Correct function used.
10235 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10237 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10240 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10243 * varasm.c (bss_initializer_p): Handle offlined ctors.
10244 (align_variable, get_variable_align): Likewise.
10245 (make_decl_one_only): Likewise.
10246 (default_binds_local_p_1): Likewise.
10247 (decl_binds_to_current_def_p): Likewise.
10248 (get_variable_section): Get constructor if it is offlined.
10249 (assemble_variable_contents): Sanity check that the caller
10250 streamed in the ctor in LTO.
10252 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10254 * graphite-isl-ast-to-gimple.c:
10255 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10256 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10257 isl_ast_op_pdiv_r to the different case.
10259 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10261 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10263 PR middle-end/61876
10264 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10265 when flag_errno_math is on.
10267 2014-07-24 Martin Liska <mliska@suse.cz>
10269 * cgraph.h (varpool_node):
10270 (availability get_availability (void)):
10271 created from cgraph_variable_initializer_availability
10272 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10273 created from: cgraph_variable_initializer_availability
10274 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10275 (void finalize_named_section_flags (void)):
10276 created from varpool_finalize_named_section_flags
10277 (bool assemble_decl (void)): created from varpool_assemble_decl
10278 (void analyze (void)): created from varpool_analyze_node
10279 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10280 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10281 (void remove_initializer (void)): created from varpool_remove_initializer
10282 (tree get_constructor (void)): created from varpool_get_constructor
10283 (bool externally_visible_p (void)): created from varpool_externally_visible_p
10284 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10285 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10286 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10287 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10288 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10289 (static bool output_variables (void)): created from varpool_output_variables
10290 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10291 created from varpool_extra_name_alias
10292 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10293 (static void dump_varpool (FILE *f)): created from dump_varpool
10294 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10295 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10296 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10297 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10298 (void assemble_aliases (void)): created from assemble_aliases
10300 2014-07-24 Martin Liska <mliska@suse.cz>
10302 * cgraph.h (symtab_node):
10303 (void register_symbol (void)): created from symtab_register_node
10304 (void remove (void)): created from symtab_remove_node
10305 (void dump (FILE *f)): created from dump_symtab_node
10306 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10307 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10308 (struct ipa_ref *add_reference (symtab_node *referred_node,
10309 enum ipa_ref_use use_type)): created from add_reference
10310 (struct ipa_ref *add_reference (symtab_node *referred_node,
10311 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10312 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10313 gimple stmt)): created from maybe_add_reference
10314 (bool semantically_equivalent_p (symtab_node *target)): created from
10315 symtab_semantically_equivalent_p
10316 (void remove_from_same_comdat_group (void)): created from
10317 remove_from_same_comdat_group
10318 (void add_to_same_comdat_group (symtab_node *old_node)): created from
10319 symtab_add_to_same_comdat_group
10320 (void dissolve_same_comdat_group_list (void)): created from
10321 symtab_dissolve_same_comdat_group_list
10322 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10323 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10324 created from symtab_alias_ultimate_target
10325 (inline symtab_node *next_defined_symbol (void)): created from
10326 symtab_next_defined_symbol
10327 (bool resolve_alias (symtab_node *target)): created from
10328 symtab_resolve_alias
10329 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10330 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10331 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10332 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10333 (void set_section (const char *section)): created from set_section_1
10334 (enum availability get_availability (void)): created from symtab_node_availability
10335 (void make_decl_local (void)): created from symtab_make_decl_local
10336 (bool real_symbol_p (void)): created from symtab_read_node
10337 (can_be_discarded_p (void)): created from symtab_can_be_discarded
10338 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10339 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10340 symtab_in_same_comdat_p;
10341 (bool address_taken_from_non_vtable_p (void)): created from
10342 address_taken_from_non_vtable_p
10343 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10344 (static void dump_table (FILE *)): created from dump_symtab
10345 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10346 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10347 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10348 symtab_used_from_object_file_p
10349 (void dump_base (FILE *)): created from dump_symtab_base
10350 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10351 (void unregister (void)): created from symtab_unregister_node
10352 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10353 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10354 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10355 symtab_nonoverwritable_alias_1
10356 * cgraph.h (cgraph_node):
10357 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10358 created from cgraph_remove_node_and_inline_clones
10359 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10360 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10361 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10362 (cgraph_node *function_symbol (enum availability *avail = NULL)):
10363 created from cgraph_function_node
10364 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10365 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10366 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10367 created from cgraph_create_clone
10368 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10369 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10370 created from cgraph_create_virtual_clone
10371 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10372 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10373 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10374 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10375 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10376 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10377 created from cgraph_function_version_info
10378 (struct cgraph_function_version_info *insert_new_function_version (void)):
10379 created from insert_new_cgraph_node_version
10380 (struct cgraph_function_version_info *function_version (void)): created from
10381 get_cgraph_node_version
10382 (void analyze (void)): created from analyze_function
10383 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10384 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10385 tree real_alias) cgraph_add_thunk
10386 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10387 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10388 created from cgraph_function_or_thunk_node
10389 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10390 created from expand_thunk
10391 (void reset (void)): created from cgraph_reset_node
10392 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10393 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10394 (void remove (void)): created from cgraph_remove_node
10395 (void dump (FILE *f)): created from dump_cgraph_node
10396 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10397 (bool get_body (void)): created from cgraph_get_body
10398 (void release_body (void)): created from cgraph_release_function_body
10399 (void unnest (void)): created from cgraph_unnest_node
10400 (void make_local (void)): created from cgraph_make_node_local
10401 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10402 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10403 gcov_type count, int freq)): created from cgraph_create_edge
10404 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10405 gcov_type count, int freq)): created from cgraph_create_indirect_edge
10406 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10407 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10408 created from cgraph_create_edge_including_clones
10409 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10410 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10411 (void remove_callers (void)): created from cgraph_node_remove_callers
10412 (void remove_callees (void)): created from cgraph_node_remove_callees
10413 (enum availability get_availability (void)): created from cgraph_function_body_availability
10414 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10415 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10416 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10417 (void call_duplication_hooks (cgraph_node *node2)): created from
10418 cgraph_call_node_duplication_hooks
10419 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10420 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10421 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10422 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10423 (void call_function_insertion_hooks (void)):
10424 created from cgraph_call_function_insertion_hooks
10425 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10426 (bool local_p (void)): created from cgraph_local_node
10427 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10428 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10429 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10430 (inline bool only_called_directly_or_aliased_p (void)):
10431 created from cgraph_only_called_directly_or_aliased_p
10432 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10433 created from cgraph_will_be_removed_from_program_if_no_direct_calls
10434 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10435 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10436 (bool can_remove_if_no_direct_calls_p (void)):
10437 created from cgraph_can_remove_if_no_direct_calls_p
10438 (inline bool has_gimple_body_p (void)):
10439 created from cgraph_function_with_gimple_body_p
10440 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10441 (static void dump_cgraph (FILE *f)): created from dump_cgraph
10442 (static inline void debug_cgraph (void)): created from debug_cgraph
10443 (static void record_function_versions (tree decl1, tree decl2)):
10444 created from record_function_versions
10445 (static void delete_function_version (tree decl)):
10446 created from delete_function_version
10447 (static void add_new_function (tree fndecl, bool lowered)):
10448 created from cgraph_add_new_function
10449 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10450 (static cgraph_node * create (tree decl)): created from cgraph_create_node
10451 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10452 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10453 (static cgraph_node *get_for_asmname (tree asmname)):
10454 created from cgraph_node_for_asm
10455 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10456 created from cgraph_same_body_alias
10457 (static bool used_from_object_file_p_worker (cgraph_node *node,
10458 void *): new function
10459 (static bool non_local_p (cgraph_node *node, void *)):
10460 created from cgraph_non_local_node_p_1
10461 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10462 created from verify_cgraph
10463 (static bool make_local (cgraph_node *node, void *)):
10464 created from cgraph_make_node_local
10465 (static cgraph_node *create_alias (tree alias, tree target)):
10466 created from cgraph_create_function_alias
10467 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10468 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10469 created from cgraph_create_edge_1
10470 * cgraph.h (varpool_node):
10471 (void remove (void)): created from varpool_remove_node
10472 (void dump (FILE *f)): created from dump_varpool_node
10474 2014-07-24 Richard Biener <rguenther@suse.de>
10477 * tree-ssa-structalias.c (create_variable_info_for_1):
10478 Use varpool_get_constructor.
10479 (create_variable_info_for): Likewise.
10481 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10483 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10484 subtract outgoing area size when restoring stack_pointer_rtx.
10486 2014-07-24 Nick Clifton <nickc@redhat.com>
10488 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10489 that operations are taking place in parallel.
10490 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10492 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
10494 * omp-low.c (extract_omp_for_data): Add missing break statement.
10496 2014-07-24 Richard Biener <rguenther@suse.de>
10498 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10499 * tree-inline.c (estimate_move_cost): Add speed_p parameter
10500 and adjust MOVE_RATIO query accordingly.
10501 (estimate_num_insns): Adjust callers.
10502 * ipa-prop.c (ipa_populate_param_decls): Likewise.
10503 * ipa-cp.c (gather_context_independent_values,
10504 estimate_local_effects): Likewise.
10505 * ipa-split.c (consider_split): Likewise.
10507 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
10509 * config/i386/driver-i386.c: Remove names of unused arguments and
10510 unnecessary unused attributes.
10511 * config/i386/host-mingw32.c: Likewise.
10512 * config/i386/i386.c: Likewise.
10513 * config/i386/winnt-stubs.c: Likewise.
10514 * config/i386/winnt.c: Likewise.
10516 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10518 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10519 (aarch64_gen_loadwb_pair): New helper function.
10520 (aarch64_expand_epilogue): Simplify code using new helper functions.
10521 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10523 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10525 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10526 (aarch64_gen_storewb_pair): New helper function.
10527 (aarch64_expand_prologue): Simplify code using new helper functions.
10528 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10530 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10532 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10533 Rename to aarch64_save_callee_saves, remove restore code.
10534 (aarch64_restore_callee_saves): New function.
10536 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10538 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10539 (aarch64_save_callee_saves): New function to handle reg save
10540 for both core and vectore regs.
10542 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10544 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10545 (aarch64_gen_store_pair): New helper function.
10546 (aarch64_save_or_restore_callee_save_registers)
10547 (aarch64_save_or_restore_fprs): Use new helper functions.
10549 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10551 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10552 (aarch64_save_or_restore_callee_save_registers)
10553 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10555 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10557 * config/aarch64/aarch64.c
10558 (aarch64_save_or_restore_callee_save_registers)
10559 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10561 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10563 * config/aarch64/aarch64.c
10564 (aarch64_save_or_restore_callee_save_registers)
10565 (aarch64_save_or_restore_fprs): Remove 'increment'.
10567 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10569 * config/aarch64/aarch64.c
10570 (aarch64_save_or_restore_callee_save_registers)
10571 (aarch64_save_or_restore_fprs): Use register offset in
10572 cfun->machine->frame.reg_offset.
10574 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10576 * config/aarch64/aarch64.c
10577 (aarch64_save_or_restore_callee_save_registers)
10578 (aarch64_save_or_restore_fprs): Remove base_rtx.
10580 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10582 * config/aarch64/aarch64.c
10583 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10584 to 'start_offset'. Remove local variable 'start_offset'.
10586 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10588 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10589 type to HOST_WIDE_INT.
10591 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10593 * config/aarch64/aarch64.c (aarch64_expand_prologue)
10594 (aarch64_save_or_restore_fprs)
10595 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10597 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10599 * config/arm/t-rtems-eabi: Add
10600 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10601 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10602 mbig-endian/mthumb/march=armv7-r, and
10603 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10606 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10607 Chris Johns <chrisj@rtems.org>
10608 Joel Sherrill <joel.sherrill@oarcorp.com>
10610 * config.gcc: Add nios2-*-rtems*.
10611 * config/nios2/rtems.h: New file.
10612 * gcc/config/nios2/t-rtems: New file.
10614 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10617 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10618 constant numbers, not general constants.
10619 (rs6000_expand_vector_init): Ditto.
10621 2014-07-23 Nathan Sidwell <nathan@acm.org>
10623 * gcov-tool.c (gcov_list): Declare here.
10624 (set_gcov_list): Remove.
10625 (gcov_output_files): Set gcov_list directly.
10627 2014-07-23 Host Schirmeier <horst@schirmeier.com>
10629 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10631 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10633 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10634 callee-saved registers are available for padding purpose
10635 and r3 is not mandatory, then prefer use those callee-saved
10638 2014-07-23 Richard Biener <rguenther@suse.de>
10640 * params.def (PARAM_MAX_COMBINE_INSNS): New.
10641 * combine.c: Include statistics.h and params.h.
10642 (combine_instructions): Guard three and four insn combines
10643 with max-combine-insns value. Record statistics for combines
10645 * doc/invoke.texi (max-combine-insns): Document new param.
10647 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10649 * graphite-isl-ast-to-gimple.c:
10650 (translate_isl_ast_node_block): New function.
10651 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10653 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10654 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10656 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10658 * graphite-isl-ast-to-gimple.c:
10659 (get_max_schedule_dimensions): New function.
10660 (extend_schedule): Likewise.
10661 (generate_isl_schedule): Add calling of extend_schedule and
10662 get_max_schedule_dimensions.
10664 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10666 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10667 (case UNSPEC): Handle UNSPEC_RBIT.
10669 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10671 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10672 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10674 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10676 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10678 2014-07-22 Roman Gareev <gareevroman@gmail.com>
10680 * graphite-isl-ast-to-gimple.c:
10681 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10682 (ivs_params_clear):
10683 (build_iv_mapping): New function.
10684 (translate_isl_ast_node_user): Likewise.
10685 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
10687 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
10688 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
10689 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
10691 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10694 * config/arm/arm.md (setmem): New pattern.
10695 * config/arm/arm-protos.h (struct tune_params): New fields.
10696 (arm_gen_setmem): New prototype.
10697 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10698 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10699 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10700 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10701 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10702 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10703 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10704 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10705 (arm_const_inline_cost): New function.
10706 (arm_block_set_max_insns): New function.
10707 (arm_block_set_non_vect_profit_p): New function.
10708 (arm_block_set_vect_profit_p): New function.
10709 (arm_block_set_unaligned_vect): New function.
10710 (arm_block_set_aligned_vect): New function.
10711 (arm_block_set_unaligned_non_vect): New function.
10712 (arm_block_set_aligned_non_vect): New function.
10713 (arm_block_set_vect, arm_gen_setmem): New functions.
10715 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10717 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10719 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
10722 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
10723 out of #ifdef __OPTIMIZE__.
10725 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10727 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
10728 different trapping status if -fnon-call-exceptions is enabled.
10730 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10732 * expr.c (store_field): Handle VOIDmode for calls that return values
10733 in multiple locations.
10735 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10737 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
10738 (altivec_vsldoi_<mode>): Likewise.
10740 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10742 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
10743 to the number of characters in the line.
10745 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10747 * graphite-isl-ast-to-gimple.c: Add using of
10748 build_nonstandard_integer_type instead of int128_integer_type_node.
10750 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
10752 * toplev.c (output_stack_usage): Adjust the location of the warning.
10754 2014-07-19 Daniel Cederman <cederman@gaisler.com>
10756 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
10757 (*membar_storeload): Disable for LEON3.
10759 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10761 PR rtl-optimization/61461
10762 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
10764 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
10767 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
10768 Fix instruction constraint.
10769 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
10771 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
10773 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
10775 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
10777 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
10778 GNU coding standards.
10779 (nds32_register_move_cost): Likewise.
10780 (nds32_memory_move_cost): Likewise.
10781 (nds32_address_cost): Likewise.
10783 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10785 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
10787 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
10789 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
10790 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
10791 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10792 (HAVE_sync_compare_and_swapqi): Define.
10793 (HAVE_sync_compare_and_swaphi): Likewise.
10794 (HAVE_sync_compare_and_swapsi): Likewise.
10796 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
10798 * config/mips/p5600.md: Add missing cpu tests.
10800 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10802 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
10803 (vmla_f64): Likewise.
10804 (vfms_f64): Likewise.
10805 (vmls_f64): Likewise.
10807 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10809 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
10810 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
10812 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10814 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
10815 (vmlal_high_lane_s32): Likewise.
10816 (vmlal_high_lane_u16): Likewise.
10817 (vmlal_high_lane_u32): Likewise.
10818 (vmlsl_high_lane_s16): Likewise.
10819 (vmlsl_high_lane_s32): Likewise.
10820 (vmlsl_high_lane_u16): Likewise.
10821 (vmlsl_high_lane_u32): Likewise.
10823 2014-07-17 Terry Guo <terry.guo@arm.com>
10825 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
10826 (alus_reg): Renamed to alus_sreg.
10827 * config/arm/arm-fixed.md: Change type of non-dsp instructions
10828 from alu_reg to alu_sreg. Change type of dsp instructions from
10829 alu_reg to alu_dsp_reg.
10830 * config/arm/thumb1.md: Likewise.
10831 * config/arm/thumb2.md: Likewise.
10832 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
10833 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
10834 with alu_sreg and alus_sreg.
10835 * config/arm/arm1026ejs.md (alu_op): Likewise.
10836 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10837 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10838 * config/arm/fa526.md (526_alu_op): Likewise.
10839 * config/arm/fa606te.md (606te_alu_op): Likewise.
10840 * config/arm/fa626te.md (626te_alu_op): Likewise.
10841 * config/arm/fa726te.md (726te_alu_op): Likewise.
10842 * config/arm/fmp626.md (mp626_alu_op): Likewise.
10843 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
10844 alu_sreg, alu_dsp_reg and alus_sreg.
10845 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10846 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10847 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10848 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
10849 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10850 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10851 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10852 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10853 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
10854 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
10855 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
10856 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
10857 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
10858 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
10859 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
10860 alus_reg to alus_sreg.
10862 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
10864 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
10867 2014-07-17 Richard Biener <rguenther@suse.de>
10869 PR rtl-optimization/61801
10870 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
10871 don't set reg_pending_barrier if it appears in a debug-insn.
10873 2014-07-16 DJ Delorie <dj@redhat.com>
10875 * config/rx/rx.c (rx_option_override): Fix alignment values.
10876 (rx_align_for_label): Likewise.
10878 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
10881 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
10882 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10883 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
10885 (cris_print_index, cris_print_operand, cris_constant_index_p)
10886 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
10887 (cris_address_cost): Ditto last CONSTANT_P.
10888 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
10889 callers changed. Yield cris_offsettable_symbol for non-PIC
10890 constant symbolic expressions including labels. Yield cris_unspec
10892 (cris_expand_pic_call_address): New parameter MARKERP. Set its
10893 target to pic_offset_table_rtx for calls that will likely go
10894 through PLT, const0_rtx when they can't. All callers changed.
10895 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
10896 symbolic expressions to be PICified. Remove second, redundant,
10897 assert on can_create_pseudo_p returning non-zero. Use
10898 replace_equiv_address_nv, not replace_equiv_address, for final
10900 * config/cris/cris.md ("movsi"): Move variable t to pattern
10901 toplevel. Adjust assert for new cris_symbol_type member. Use
10902 CONSTANT_P instead of CONSTANT_ADDRESS_P.
10903 ("*movsi_internal") <case 9>: Make check for valid unspec operands
10905 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
10906 ("call", "call_value"): Use second incoming operand as a marker
10907 for pic-offset-table-register being used.
10908 ("*expanded_call_non_v32", "*expanded_call_v32")
10909 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
10910 second incoming operand to CALL, match cris_call_type_marker.
10911 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
10912 ("*expanded_call_side"): Ditto. Fix typo in comment.
10913 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
10915 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
10916 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
10917 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
10918 users changed. Add members cris_offsettable_symbol and cris_unspec.
10919 (cris_symbol_type): Rename from cris_pic_symbol_type.
10920 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
10922 * config/cris/cris-protos.h (cris_symbol_type_of,
10923 cris_expand_pic_call_address): Adjust prototypes.
10924 (cris_legitimate_constant_p): New prototype.
10926 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
10927 an existing tmake_file. Don't add t-slibgcc and t-linux.
10929 2014-07-17 Jason Merrill <jason@redhat.com>
10932 * symtab.c (symtab_remove_from_same_comdat_group): Also
10933 set_comdat_group to NULL_TREE.
10934 (verify_symtab): Fix diagnostic.
10936 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
10939 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
10941 2014-07-16 Dodji Seketeli <dodji@redhat.com>
10943 Support location tracking for built-in macro tokens
10944 * input.h (is_location_from_builtin_token): New function declaration.
10945 * input.c (is_location_from_builtin_token): New function definition.
10946 * toplev.c (general_init): Tell libcpp what the pre-defined
10947 spelling location for built-in tokens is.
10949 2014-07-16 Jakub Jelinek <jakub@redhat.com>
10951 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
10952 on the FUNCTION_DECL.
10954 2014-07-16 Richard Biener <rguenther@suse.de>
10957 * doc/extend.texi (always_inline): Clarify.
10959 2014-07-15 Eric Christopher <echristo@gmail.com>
10961 * doc/invoke.texi (Link Options): Document -z option.
10963 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
10965 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
10966 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10968 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
10970 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
10972 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
10974 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
10975 varpool_assemble_decl.
10976 * varpool.c (varpool_assemble_decl): Assert that node->definition is
10979 2014-07-15 Michael Matz <matz@suse.de>
10981 PR rtl-optimization/61772
10982 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
10984 2014-07-15 Richard Biener <rguenther@suse.de>
10986 * opts.c (default_options_table): Disable bit-ccp at -Og.
10988 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10990 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
10992 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10994 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
10995 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
10996 call langhook for unknown declaration.
10997 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
10998 * tree.h (DECL_ARGUMENTS): Update.
10999 * print-tree.c (print_node): Update.
11000 * tree-core.h (tree_decl_non_common): Remove arguments.
11001 (tree_function_decl): Add arguments.
11003 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
11005 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11007 2014-07-14 Richard Biener <rguenther@suse.de>
11009 PR tree-optimization/61779
11010 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11011 simplifying a condition.
11013 2014-07-14 Richard Biener <rguenther@suse.de>
11015 * builtins.c (c_strlen): Make only_value == 2 really only
11016 affect warning generation.
11018 2014-07-14 Richard Biener <rguenther@suse.de>
11020 PR tree-optimization/61757
11021 PR tree-optimization/61783
11022 PR tree-optimization/61787
11023 * tree-ssa-dom.c (record_equality): Revert canonicalization
11024 change and add comment.
11025 (propagate_rhs_into_lhs): Revert previous fix, removing
11026 loop depth restriction again.
11028 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11030 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11031 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11032 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11033 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11034 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11035 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11036 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11038 2014-07-14 Richard Biener <rguenther@suse.de>
11040 * cgraph.h (decl_in_symtab_p): Make inline.
11042 2014-07-14 Jakub Jelinek <jakub@redhat.com>
11044 PR middle-end/61294
11045 * doc/invoke.texi (-Wmemset-transposed-args): Document.
11048 * config/i386/i386.c (classify_argument): Don't merge classes above
11051 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
11053 * cgraph.h (symtab_node): Add nonzero_address.
11054 (decl_in_symtab_p): Break out from ...
11055 (symtab_get_node): ... here.
11056 * fold-const.c: Include cgraph.h
11057 (tree_single_nonzero_warnv_p): Use symtab to determine
11058 if symbol is non-zero.
11059 * symtab.c (symtab_node::nonzero_address): New method.
11061 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11063 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
11064 forgotten in previous commit.
11066 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11068 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
11070 * ipa-devirt.c: Include stor-layout.h and intl.h
11071 (odr_subtypes_equivalent_p): New function.
11072 (warn_odr): New function.
11073 (warn_type_mismatch): New function.
11074 (odr_types_equivalent_p): New function.
11075 (add_type_duplicate): Use it.
11076 * common.opt (Wodr): New flag.
11077 * doc/invoke.texi (Wodr): Document new warning.
11079 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
11081 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
11082 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
11083 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
11084 (varpool_get_constructor): Push CTORS_IN timevar.
11085 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
11087 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
11089 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
11090 Remove VOID_FTYPE_PUSHORT.
11091 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
11092 Change code to USHORT_FTYPE_VOID.
11093 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
11094 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
11095 (ix86_atomic_assign_expand_fenv): Update for
11096 __builtin_ia32_fnstsw changes.
11097 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11098 (fnstsw): Change operand 0 to nonimmediate operand.
11100 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11102 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11103 (varpool_get_constructor): New function.
11104 (varpool_ctor_useable_for_folding_p): Break out from ...
11105 (ctor_for_folding): ... here; use varpool_get_constructor.
11106 (varpool_assemble_decl): Likewise.
11107 * lto-streamer.h (struct output_block): Turn cgraph_node
11109 (lto_input_variable_constructor): Declare.
11110 * ipa-visibility.c (function_and_variable_visibility): Use
11111 varpool_get_constructor.
11112 * cgraph.h (varpool_get_constructor): Declare.
11113 (varpool_ctor_useable_for_folding_p): New function.
11114 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11115 parameter; return error_mark_node for non-trivial constructors.
11116 (lto_write_tree_1, DFS_write_tree): Update use of
11117 get_symbol_initial_value.
11118 (output_function): Update initialization of symbol.
11119 (output_constructor): New function.
11120 (copy_function): Rename to ..
11121 (copy_function_or_variable): ... this one; handle vars too.
11122 (lto_output): Output variable sections.
11123 * lto-streamer-in.c (input_constructor): New function.
11124 (lto_read_body): Rename from ...
11125 (lto_read_body_or_constructor): ... this one; handle vars too.
11126 (lto_input_variable_constructor): New function.
11127 * ipa-prop.c (ipa_prop_write_jump_functions,
11128 ipa_prop_write_all_agg_replacement): Update.
11129 * lto-cgraph.c (compute_ltrans_boundary): Use it.
11130 (output_cgraph_opt_summary): Set symbol to NULL.
11132 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11134 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11135 non-polymorphic types.
11136 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11137 * ipa-devirt.c (types_same_for_odr): Do not explode when one
11138 of types is not polymorphic.
11140 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
11142 * lra-constraints.c (remove_inheritance_pseudos): Process
11143 destination pseudo too.
11145 2014-07-11 Rong Xu <xur@google.com>
11147 * gcov-tool.c (gcov_output_files): Fix build error introduced in
11150 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11152 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11153 * config/avr/avr-devices.c (AVR_MCU): Same.
11154 (avr_mcu_types): add text start value to end of device list.
11155 * config/avr/avr-mcus.def: Add text section start for all devices.
11156 (ata5782): Add new avr5 device.
11158 * config/avr/avr-tables.opt: Regenerate.
11159 * config/avr/avr.h: Add declaration for text section start handler.
11160 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11162 (LINK_SPEC): Include text section start handler to linker spec.
11163 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11164 pass -Ttext option to linker if the text section start for the device
11166 * config/avr/t-multilib: Regenerate.
11167 * doc/avr-mmcu.texi: Regenerate.
11169 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
11171 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11172 * config/rs6000/aix52.h (LINK_SPEC): Same.
11173 * config/rs6000/aix53.h (LINK_SPEC): Same.
11174 * config/rs6000/aix61.h (LINK_SPEC): Same.
11175 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11177 2014-07-11 Roman Gareev <gareevroman@gmail.com>
11179 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11180 (graphite_verify): New function.
11181 (ivs_params_clear): New function.
11182 (gcc_expression_from_isl_ast_expr_id): New function.
11183 (gcc_expression_from_isl_expr_int): New function.
11184 (binary_op_to_tree): New function.
11185 (ternary_op_to_tree): New function.
11186 (unary_op_to_tree): New function.
11187 (nary_op_to_tree): New function.
11188 (gcc_expression_from_isl_expr_op): New function.
11189 (gcc_expression_from_isl_expression): New function.
11190 (graphite_create_new_loop): New function.
11191 (translate_isl_ast_for_loop): New function.
11192 (get_upper_bound): New function.
11193 (graphite_create_new_loop_guard): New function.
11194 (translate_isl_ast_node_for): New function.
11195 (translate_isl_ast): New function.
11196 (add_parameters_to_ivs_params): New function.
11197 (scop_to_isl_ast): New parameter ip.
11198 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11200 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11202 * config/xtensa/predicates.md (call expander): Update for
11203 DECL_SECTION_NAME being string.
11205 2014-07-11 Richard Biener <rguenther@suse.de>
11207 PR middle-end/61473
11208 * builtins.c (fold_builtin_memory_op): Inline memory moves that
11209 can be implemented with a single load followed by a single store.
11210 (c_strlen): Only warn when only_value is not 2.
11212 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
11214 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11216 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
11219 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11220 (*movhi_bytes): Likewise.
11221 (*arm_movqi_insn): Likewise.
11223 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
11226 * config/alpha/alpha.c: Include tree-pass.h, context.h
11227 and pass_manager.h.
11228 (pass_data_handle_trap_shadows): New pass.
11229 (pass_handle_trap_shadows::gate): New pass gate function.
11230 (make_pass_handle_trap_shadows): New function.
11231 (rest_of_handle_trap_shadows): Ditto.
11233 (alpha_align_insns_1): Rename from alpha_align_insns.
11234 (pass_data_align_insns): New pass.
11235 (pass_align_insns::gate): New pass gate function.
11236 (make_pass_aling_insns): New function.
11237 (rest_of_align_insns): Ditto.
11238 (alpha_align_insns): Ditto.
11240 (alpha_option_override): Declare handle_trap_shadows info
11241 and align_insns_info. Register handle_trap_shadows and align_insns
11243 (alpha_reorg): Do not call alpha_trap_shadows and
11244 alpha_align_insn from here.
11246 (alpha_pad_function_end): Do not skip BARRIERs.
11248 2014-07-10 Rong Xu <xur@google.com>
11250 Add gcov-tool: an offline gcda profile processing tool support.
11251 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11252 (gcov_is_error): Ditto.
11253 (gcov_read_string): Ditto.
11254 (gcov_read_sync): Ditto.
11255 * gcov-io.h: Move counter defines to gcov-counter.def.
11256 * gcov-dump.c (tag_counters): Use gcov-counter.def.
11257 * coverage.c: Ditto.
11258 * gcov-tool.c: Offline gcda profile processing tool.
11259 (unlink_gcda_file): Remove one gcda file.
11260 (unlink_profile_dir): Remove gcda files from the profile path.
11261 (gcov_output_files): Output gcda files to an output dir.
11262 (profile_merge): Merge two profiles in directory.
11263 (print_merge_usage_message): Print merge usage.
11264 (merge_usage): Print merge usage and exit.
11265 (do_merge): Driver for profile merge sub-command.
11266 (profile_rewrite): Rewrite profile.
11267 (print_rewrite_usage_message): Print rewrite usage.
11268 (rewrite_usage): Print rewrite usage and exit.
11269 (do_rewrite): Driver for profile rewrite sub-command.
11270 (print_usage): Print gcov-info usage and exit.
11271 (print_version): Print gcov-info version.
11272 (process_args): Process arguments.
11273 (main): Main routine for gcov-tool.
11274 * Makefile.in: Build and install gcov-tool.
11275 * gcov-counter.def: New file split from gcov-io.h.
11276 * doc/gcc.texi: Include gcov-tool.texi.
11277 * doc/gcov-tool.texi: Document for gcov-tool.
11279 2014-07-10 Richard Biener <rguenther@suse.de>
11281 PR tree-optimization/61757
11282 * tree-ssa-dom.c (loop_depth_of_name): Restore.
11283 (propagate_rhs_into_lhs): Revert part of last change.
11285 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
11287 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11290 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
11292 PR middle-end/53590
11293 * function.c (allocate_struct_function): Revert r188667 change.
11295 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11297 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
11299 * doc/install.texi: Remove links to defunct package providers for
11302 2014-07-09 Tom de Vries <tom@codesourcery.com>
11304 * final.c (get_call_fndecl): Declare.
11305 (self_recursive_call_p): New function.
11306 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11308 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11310 * ipa-devirt.c (record_node): Walk through aliases.
11312 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11314 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11316 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11319 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11321 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11323 * ipa-visibility.c (function_and_variable_visibility): Remove
11324 temporary hack disabling local aliases on AIX.
11326 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11328 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11329 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11331 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11333 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11334 * rs6000/rs6000.c: Inline output of .set instruction.
11335 (declare_alias_data): New struct.
11336 (rs6000_declare_alias): New function.
11337 (rs6000_xcoff_declare_function_name): Use it.
11338 (rs6000_xcoff_declare_object_name): New function.
11339 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11340 (ASM_OUTPUT_DEF): Turn to empty definition.
11342 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11345 * hash-table.h: use hash_table::value_type instead of
11346 Descriptor::value_type in the return types of several methods.
11348 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11350 * tree-pass.h (pass_data): Remove has_execute member.
11351 * passes.c (execute_one_pass): Don't check pass->has_execute.
11352 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11353 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11354 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11355 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11356 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11357 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11358 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11359 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11360 gimple-low.c, gimple-ssa-isolate-paths.c,
11361 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11362 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11363 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11364 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11365 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11366 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11367 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11368 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11369 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11370 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11371 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11372 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11373 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11374 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11375 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11376 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11377 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11378 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11379 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11380 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11381 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11382 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11383 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11384 web.c: Remove initializer for pass_data::has_execute.
11386 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11388 * graphite-htab.h: Use hash_map instead of hash_table.
11389 * graphite-clast-to-gimple.c: Adjust.
11390 * passes.c: Use hash_map instead of hash_table.
11391 * sese.c: Likewise.
11392 * sese.h: Remove now unused code.
11394 2014-07-08 Sriraman Tallam <tmsriram@google.com>
11397 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11400 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11402 PR rtl-optimization/61673
11403 * combine.c (simplify_comparison): Test just mode's sign bit
11404 in tmode rather than the sign bit and any bits above it.
11406 2014-07-08 Roman Gareev <gareevroman@gmail.com>
11408 * graphite-isl-ast-to-gimple.c (generate_isl_context):
11409 Add __isl_give to the declaration.
11410 (generate_isl_schedule): Likewise.
11411 (scop_to_isl_ast): Likewise.
11413 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11415 * config/arm/arm.c (cortexa5_extra_costs): New table.
11416 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11418 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11420 PR tree-optimization/61725
11421 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11422 range, use range_includes_zerop_p instead of integer_zerop on
11423 vr0->min, only use log2 of max if min is not negative.
11425 2014-07-08 Richard Biener <rguenther@suse.de>
11427 * tree-ssa-dom.h (loop_depth_of_name): Remove.
11428 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11429 restriction on loop depth difference.
11430 (record_equality): Likewise.
11431 (propagate_rhs_into_lhs): Likewise. Simplify condition.
11432 (loop_depth_of_name): Remove.
11433 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11434 restriction on loop depth difference.
11435 (init_copy_prop): Likewise.
11437 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11439 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11441 (walk_aliased_vdefs): Likewise.
11442 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11443 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11444 (detect_type_change_from_memory_writes): Check if entry was reached.
11446 2014-07-08 Richard Biener <rguenther@suse.de>
11448 PR tree-optimization/61681
11449 * tree-ssa-structalias.c (find_what_var_points_to): Expand
11450 NONLOCAL inside ESCAPED.
11452 2014-07-08 Richard Biener <rguenther@suse.de>
11454 PR tree-optimization/61680
11455 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11456 Handle properly all read-write dependences with group accesses.
11458 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11460 PR tree-optimization/61576
11461 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11462 block containing reduction statement is predecessor of phi basi block.
11464 2014-07-08 Marek Polacek <polacek@redhat.com>
11467 * fold-const.c (round_up_loc): Change the parameter type.
11469 * fold-const.h (round_up_loc): Adjust declaration.
11470 * stor-layout.c (finalize_record_size): Check for too large types.
11472 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
11474 * symtab.c: Include calls.h.
11475 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11477 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
11479 * config/rs6000/rs6000.c (output_vec_const_move): Handle
11480 little-endian code generation.
11481 * config/rs6000/spe.md (spe_evmergehi): Rename to...
11482 (vec_perm00_v2si): ... this. Handle little-endian code generation.
11483 (spe_evmergehilo): Rename to...
11484 (vec_perm01_v2si): ... this. Handle little-endian code generation.
11485 (spe_evmergelo): Rename to...
11486 (vec_perm11_v2si): ... this. Handle little-endian code generation.
11487 (spe_evmergelohi): Rename to...
11488 (vec_perm10_v2si): ... this. Handle little-endian code generation.
11489 (spe_evmergehi, spe_evmergehilo): New expanders.
11490 (spe_evmergelo, spe_evmergelohi): Likewise.
11491 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11492 (*frob_tf_ti): Likewise.
11493 (*frob_<mode>_di_2): Likewise.
11494 (*frob_tf_di_8_2): Likewise.
11495 (*frob_di_<mode>): Likewise.
11496 (*frob_ti_tf): Likewise.
11497 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11498 (*frob_ti_<mode>_8_2): Likewise.
11499 (*frob_ti_tf_2): Likewise.
11500 (mov_si<mode>_e500_subreg0): Rename to...
11501 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
11503 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11504 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11505 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
11506 the big endianness only.
11507 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11508 (*mov_si<mode>_e500_subreg0_2): Rename to...
11509 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
11510 big big endianness only.
11511 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11512 (*mov_si<mode>_e500_subreg4): Rename to...
11513 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
11515 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11516 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11517 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
11518 the big endianness only.
11519 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11521 (*mov_si<mode>_e500_subreg4_2): Rename to...
11522 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
11524 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11525 (*mov_sitf_e500_subreg8): Rename to...
11526 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
11528 (*mov_sitf_e500_subreg8_le): New instruction pattern.
11529 (*mov_sitf_e500_subreg8_2): Rename to...
11530 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
11532 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11533 (*mov_sitf_e500_subreg12): Rename to...
11534 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
11536 (*mov_sitf_e500_subreg12_le): New instruction pattern.
11537 (*mov_sitf_e500_subreg12_2): Rename to...
11538 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
11540 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11542 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
11544 * asan.c (instrument_strlen_call): Do not instrument first byte
11545 in strlen if already instrumented.
11547 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11549 * config/arm/arm.opt (mwords-little-endian): Delete.
11550 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11551 of TARGET_LITTLE_WORDS.
11552 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11553 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11555 * doc/invoke.texi: Remove references to -mwords-little-endian.
11557 2014-07-07 Jakub Jelinek <jakub@redhat.com>
11559 * expmed.c (struct init_expmed_rtl): Change all fields but
11560 pow2 and cint from struct rtx_def to rtx.
11561 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11562 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
11565 2014-07-06 Marek Polacek <polacek@redhat.com>
11568 * doc/invoke.texi: Document -Wsizeof-array-argument.
11570 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
11572 * wide-int.h (wide_int_storage): Change declaration from struct
11575 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
11577 * cgraph.c (cgraph_create_indirect_edge): Update call of
11578 get_polymorphic_call_info.
11579 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11580 (possible_polymorphic_call_targets): Add parameter call.
11581 (decl_maybe_in_construction_p): New predicate.
11582 (get_polymorphic_call_info): Add parameter call;
11583 use decl_maybe_in_construction_p.
11584 * gimple-fold.c (fold_gimple_assign): Update use of
11585 possible_polymorphic_call_targets.
11586 (gimple_fold_call): Likewise.
11587 * ipa-prop.c: Inlcude calls.h
11588 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11589 (param_type_may_change_p): New predicate.
11590 (detect_type_change_from_memory_writes): Break out from ...
11591 (detect_type_change): ... this one; use param_type_may_change_p.
11592 (detect_type_change_ssa): Use param_type_may_change_p.
11593 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11595 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
11598 * config/arm/arm-protos.h (arm_legitimate_address_p,
11599 arm_is_constant_pool_ref): Add prototypes.
11600 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11601 (arm_is_constant_pool_ref) New function.
11602 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11603 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11604 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11605 operand. Remove pool_range and neg_pool_range attributes.
11606 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11607 pool_range and neg_pool_range attributes.
11608 * config/arm/constraints.md (Uh): New constraint.
11609 (Uq): Don't allow constant pool references.
11611 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
11613 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11614 (move_lo_quad_internal_be_<mode>): Likewise.
11615 (move_lo_quad_<mode>): Convert to define_expand.
11616 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11617 (aarch64_simd_move_hi_quad_be_<mode>): New.
11618 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11619 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11620 (aarch64_combinez_be<mode>): New.
11621 (aarch64_combine<mode>): Convert to define_expand.
11622 (aarch64_combine_internal<mode>): New.
11623 (aarch64_simd_combine<mode>): Remove bogus RTL description.
11625 2014-07-04 Tom de Vries <tom@codesourcery.com>
11627 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11628 combination of earlyclobber and read/write modifiers.
11630 2014-07-04 Tom de Vries <tom@codesourcery.com>
11632 * config/aarch64/aarch64-simd.md
11633 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11635 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
11638 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11640 2014-07-04 Jakub Jelinek <jakub@redhat.com>
11642 PR middle-end/61654
11643 * cgraphunit.c (expand_thunk): Call free_dominance_info.
11645 PR tree-optimization/61684
11646 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11647 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11649 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11650 Kito Cheng <kito@0xlab.org>
11651 Monk Chiang <sh.chiang04@gmail.com>
11653 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11654 (nds32_symbol_load_store_p): Move to ...
11655 (nds32_fp_as_gp_check_available): Move to ...
11656 * config/nds32/nds32-fp-as-gp.c: ... here.
11657 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11658 extern declaration.
11660 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11661 Kito Cheng <kito@0xlab.org>
11662 Monk Chiang <sh.chiang04@gmail.com>
11664 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
11665 (nds32_expand_store_multiple): Move to ...
11666 (nds32_expand_movmemqi): Move to ...
11667 * config/nds32/nds32-memory-manipulation.c: ... here.
11669 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11670 Kito Cheng <kito@0xlab.org>
11671 Monk Chiang <sh.chiang04@gmail.com>
11673 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11674 (nds32_output_casesi_pc_relative): Move to ...
11675 (nds32_output_casesi): Move to ...
11676 (nds32_mem_format): Move to ...
11677 (nds32_output_16bit_store): Move to ...
11678 (nds32_output_16bit_load): Move to ...
11679 (nds32_output_32bit_store): Move to ...
11680 (nds32_output_32bit_load): Move to ...
11681 (nds32_output_32bit_load_s): Move to ...
11682 (nds32_output_stack_push): Move to ...
11683 (nds32_output_stack_pop): Move to ...
11684 * config/nds32/nds32-md-auxiliary.c: ... here.
11686 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11687 Ling-Hua Tseng <uranus@tinlans.org>
11689 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
11690 the purpose of this file.
11692 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11693 Kito Cheng <kito@0xlab.org>
11694 Monk Chiang <sh.chiang04@gmail.com>
11696 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
11697 (nds32_address_cost): Move implementation to ...
11698 * config/nds32/nds32-cost.c: ... here.
11699 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
11700 (nds32_address_cost_impl): Declare.
11702 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11703 Kito Cheng <kito@0xlab.org>
11704 Monk Chiang <sh.chiang04@gmail.com>
11706 * config/nds32/nds32.c
11707 (nds32_consecutive_registers_load_store_p): Move to ...
11708 (nds32_valid_multiple_load_store): Move to ...
11709 (nds32_valid_stack_push_pop): Move to ...
11710 (nds32_can_use_bclr_p): Move to ...
11711 (nds32_can_use_bset_p): Move to ...
11712 (nds32_can_use_btgl_p): Move to ...
11713 (nds32_can_use_bitci_p): Move to ...
11714 * config/nds32/nds32-predicates.c: ... here.
11716 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11717 Kito Cheng <kito@0xlab.org>
11718 Monk Chiang <sh.chiang04@gmail.com>
11720 * config/nds32/nds32.c
11721 (nds32_expand_builtin_null_ftype_reg): Move to ...
11722 (nds32_expand_builtin_reg_ftype_imm): Move to ...
11723 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
11724 (nds32_init_builtins): Move implementation to ...
11725 (nds32_expand_builtin): Move implementation to ...
11726 * config/nds32/nds32-intrinsic.c: ... here.
11727 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
11728 (nds32_expand_builtin_impl): Declare.
11730 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11731 Kito Cheng <kito@0xlab.org>
11732 Monk Chiang <sh.chiang04@gmail.com>
11734 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
11735 (nds32_emit_section_tail_template): Move to ...
11736 (nds32_emit_isr_jmptbl_section): Move to ...
11737 (nds32_emit_isr_vector_section): Move to ...
11738 (nds32_emit_isr_reset_conten): Move to ...
11739 (nds32_check_isr_attrs_conflict): Move to ...
11740 (nds32_construct_isr_vectors_information): Move to ...
11741 (nds32_asm_file_start): Move implementation to ...
11742 (nds32_asm_file_end): Move implementation to ...
11743 * config/nds32/nds32-isr.c: ... here.
11744 * config/nds32/nds32-protos.h
11745 (nds32_check_isr_attrs_conflict): Declare.
11746 (nds32_construct_isr_vectors_information): Declare.
11747 (nds32_asm_file_start_for_isr): Declare.
11748 (nds32_asm_file_end_for_isr): Declare.
11750 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11751 Kito Cheng <kito@0xlab.org>
11752 Monk Chiang <sh.chiang04@gmail.com>
11754 * config.gcc (nds32*): Add new modules to extra_objs.
11755 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
11756 (nds32be-*-*): Likewise.
11757 * config/nds32/nds32-cost.c: New file.
11758 * config/nds32/nds32-fp-as-gp.c: New file.
11759 * config/nds32/nds32-intrinsic.c: New file.
11760 * config/nds32/nds32-isr.c: New file.
11761 * config/nds32/nds32-md-auxiliary.c: New file.
11762 * config/nds32/nds32-memory-manipulation.c: New file.
11763 * config/nds32/nds32-pipelines-auxiliary.c: New file.
11764 * config/nds32/nds32-predicates.c: New file.
11765 * config/nds32/t-nds32: New file.
11767 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11769 PR tree-optimization/61682
11770 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
11771 using cases and when one of the operands is equal to 1.
11773 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
11775 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
11776 ashr<mode>3): Correct mode of operands[2].
11777 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
11778 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
11779 Correct mode of operands[2]. Fix split condition.
11781 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
11783 * arm.md (arch): Add armv6_or_vfpv3.
11784 (arch_enabled): Add test for the above.
11785 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
11787 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
11789 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11791 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
11792 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
11793 HWI 1 and negate the unsigned value.
11794 * expmed.c (expand_sdiv_pow2): For modes wider than word always
11795 use AND instead of shift.
11796 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
11798 2014-07-03 Marek Polacek <polacek@redhat.com>
11800 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
11801 (-fsanitize=float-divide-by-zero): Move to the table with
11802 -fsanitize=undefined suboptions.
11803 (-fsanitize=float-cast-overflow): Likewise.
11805 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
11807 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
11808 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
11811 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11813 * loop-invariant.c (struct invariant): Add a new member: eqno;
11814 (find_identical_invariants): Update eqno;
11815 (create_new_invariant): Init eqno;
11816 (get_inv_cost): Compute comp_cost with eqno;
11818 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11820 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
11821 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
11822 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
11823 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
11824 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
11826 2014-07-02 Christian Bruel <christian.bruel@st.com>
11830 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
11831 (make_preds_opaque): Delete.
11832 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
11833 (commit_mode_sets): New function.
11834 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
11835 Process all modes at once.
11836 * basic-block.h (pre_edge_lcm_avs): Declare.
11837 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
11838 Call clear_aux_for_edges. Fix comments.
11839 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
11840 (pre_edge_rev_lcm): Idem.
11841 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
11843 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
11844 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11846 * config/i386/i386.c (x96_emit_mode_set): Idem.
11847 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
11848 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
11849 (fpscr_toggle) Disallow from delay slot.
11850 * target.def (emit_mode_set): Add prev_mode parameter.
11851 * doc/tm.texi: Regenerate.
11853 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11855 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
11858 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11860 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
11861 vtable_pointer_value_to_vtable): Constify.
11862 (contains_polymorphic_type_p): Declare.
11863 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
11864 vtable_pointer_value_to_vtable): Constify.
11865 (contains_polymorphic_type_p): New predicate.
11866 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
11868 (ipa_set_ancestor_jf): Likewise.
11869 (detect_type_change): Return false in easy cases.
11870 (compute_complex_assign_jump_func): Require type to contain
11872 (compute_known_type_jump_func): Likewise.
11874 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11876 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
11878 (type_in_anonymous_namespace_p): Constify argument.
11879 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
11880 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
11881 (main_odr_variant): New function.
11882 (hash_type_name): Make static; update assert; do not ICE on
11884 (types_same_for_odr): Bring here from tree.c; simplify and remove
11885 old structural comparing code that doesn't work for templates.
11886 (odr_hasher::equal): Update assert.
11887 (add_type_duplicate): Return true when bases should be computed;
11888 replace incomplete loader by complete; do not output duplicated
11889 warnings; do not ICE on non-records; set odr_violated flag.
11890 (get_odr_type): Be ready to replace incomplete type by complete
11891 one; work on ODR variants instead of main variants; reorder item
11892 in array so bases have still smaller indexes.
11893 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
11894 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
11896 2014-07-01 Cary Coutant <ccoutant@google.com>
11898 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
11900 (resolve_addr_in_expr): When replacing the rtx in a location list
11901 entry, get a new address table entry.
11902 (dwarf2out_finish): Call index_location_lists even if there are no
11903 addr_index_table entries yet.
11905 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11907 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
11908 change for not being obvious.
11910 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11912 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
11915 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11917 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
11918 (vcagt_f64): Likewise.
11919 (vcale_f64): Likewise.
11920 (vcaled_f64): Likewise.
11921 (vcales_f32): Likewise.
11922 (vcalt_f64): Likewise.
11923 (vcaltd_f64): Likewise.
11924 (vcalts_f32): Likewise.
11926 2014-07-01 Marek Polacek <polacek@redhat.com>
11928 * doc/invoke.texi: Document -Wint-conversion.
11930 2014-07-01 Marek Polacek <polacek@redhat.com>
11933 * doc/invoke.texi: Document -Wincompatible-pointer-types.
11935 2014-07-01 Martin Liska <mliska@suse.cz>
11937 IPA REF alias refactoring
11938 * cgraph.h (iterate_direct_aliases): New function.
11939 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
11940 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
11941 FOR_EACH_ALIAS added.
11942 (cgraph_for_node_and_aliases): Likewise.
11943 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
11944 * ipa-inline.c (reset_edge_caches): Likewise.
11945 (update_caller_keys): Likewise.
11946 * trans-mem.c (ipa_tm_execute): Likewise.
11947 *varpool.c (varpool_analyze_node): Likewise.
11948 (varpool_for_node_and_aliases): Likewise.
11949 * ipa-ref.h (first_alias): New function.
11950 (last_alias): Likewise.
11951 (has_aliases_p): Likewise.
11952 * ipa-ref.c (ipa_ref::remove_reference): Removal function
11953 is sensitive to IPA_REF_ALIASes.
11954 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
11955 are put at the beginning of the list.
11956 (symtab_node::iterate_direct_aliases): New function.
11958 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11961 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11963 (write_ts_type_common_tree_pointers): Do not stream fields not set
11964 for incomplete types; do not stream duplicated fields for variants;
11965 sanity check that variant and type match.
11966 (write_ts_type_non_common_tree_pointers): Likewise.
11967 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11968 TYPE_SIZE whether type is complete.
11969 (lto_input_ts_type_common_tree_pointers): Do same changes as in
11970 write_ts_type_common_tree_pointers
11971 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11973 2014-06-30 Joseph Myers <joseph@codesourcery.com>
11975 * var-tracking.c (add_stores): Return instead of asserting if old
11976 and new values for conditional store are the same.
11978 2014-06-30 Richard Henderson <rth@redhat.com>
11982 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
11983 the cfg if there were any changes.
11984 * passes.def: Revert move of peephole2 after reorder_blocks;
11985 move duplicate_computed_gotos before peephole2.
11987 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
11989 * except.c (emit_note_eh_region_end): New helper function.
11990 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
11991 emit EH_REGION_END note.
11992 * jump.c (cleanup_barriers): Do not split a call and its
11993 corresponding CALL_ARG_LOCATION note.
11995 2014-06-30 Jeff Law <law@redhat.com>
11997 PR tree-optimization/61607
11998 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
11999 deeper into the SSA_NAME_VALUE chain.
12001 2014-06-30 Marek Polacek <polacek@redhat.com>
12003 * convert.c (convert_to_integer): Don't instrument conversions if the
12004 function has no_sanitize_undefined attribute.
12005 * ubsan.c: Don't run the ubsan pass if the function has
12006 no_sanitize_undefined attribute.
12008 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12010 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12011 -fsanitize=undefined suboptions.
12013 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
12015 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12016 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12017 against bigendian and adjust indices.
12019 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12021 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
12023 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
12026 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12027 Add alternative; make early clobber. Adjust both split patterns
12028 to use operand 0 as the working register.
12030 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12032 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12033 as ira_object_id_map might be NULL, or 1.
12035 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12037 * loop-invariant.c (get_inv_cost): Handle register class.
12038 (gain_for_invariant): Check the register pressure of the inv
12039 and its overlapped register class, other than all.
12041 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12043 * doc/invoke.texi (Optimize Options): Fix descriptions of
12044 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
12046 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
12048 * doc/extend.texi (Function Attributes): Update 'naked' attribute
12051 2014-06-29 Tobias Grosser <tobias@grosser.es>
12054 * graphite-isl-ast-to-gimple.c: Add missing guards.
12056 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12058 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
12059 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
12060 * flag-types.h: Add new enum fgraphite_generator.
12061 * graphite-isl-ast-to-gimple.c: New.
12062 * graphite-isl-ast-to-gimple.h: New.
12063 * graphite.c (graphite_transform_loops): Add choice of Graphite
12064 code generator, which depends on flag_graphite_code_gen.
12066 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12068 * graphite-dependences.c (subtract_commutative_associative_deps):
12069 Add NULL checking of the following variables: must_raw_no_source,
12070 may_raw_no_source, must_war_no_source, may_war_no_source,
12071 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
12072 must_war, may_war, must_waw, may_waw.
12074 2014-06-29 Roman Gareev <gareevroman@gmail.com>
12076 * graphite-clast-to-gimple.c: gloog is renamed to
12077 graphite_regenerate_ast_cloog. gloog_error is renamed to
12078 graphite_regenerate_error.
12079 * graphite-clast-to-gimple.h: The definition of the struct
12080 bb_pbb_def is moved to graphite-htab.h.
12081 Add inclusion of the hash-table.h.
12082 * graphite-htab.h: The declaration of the function gloog is moved
12083 to graphite-clast-to-gimple.h and renamed to
12084 graphite_regenerate_ast_cloog.
12085 * graphite.c (graphite_transform_loops): gloog is renamed
12086 to graphite_regenerate_ast_cloog.
12088 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12090 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12092 (write_ts_type_common_tree_pointers): Do not stream fields not set
12093 for incomplete types; do not stream duplicated fields for variants;
12094 sanity check that variant and type match.
12095 (write_ts_type_non_common_tree_pointers): Likewise.
12096 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12097 TYPE_SIZE whether type is complete.
12098 (lto_input_ts_type_common_tree_pointers): Do same changes as in
12099 write_ts_type_common_tree_pointers
12100 (lto_input_ts_type_non_common_tree_pointers): Likewise.
12102 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12104 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12106 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12108 * tree-inline.c (remap_type_1): Do not duplicate fields
12109 that are shared in between type and its main variant.
12111 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12113 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12115 (ipa_set_ancestor_jf) Likewise.
12116 (check_stmt_for_type_change): Check that we work on main variant.
12117 (detect_type_change): Look into main variant.
12118 (compute_known_type_jump_func): Check that main variant has BINFO.
12120 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12122 * ipa-devirt.c (set_type_binfo): New function.
12123 (add_type_duplicate): Use it.
12124 (get_odr_type): Sanity check that binfos points to main variants.
12125 (get_class_context): Be sure the context's outer_type is main variant.
12126 (contains_type_p): Walk main variant.
12127 (get_polymorphic_call_info_for_decl): Set outer_type to be
12129 (get_polymorphic_call_info): Likewise.
12130 (possible_polymorphic_call_targets): Sanity check that we operate
12133 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12135 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12137 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12139 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12140 accidental change due to wide-int branch merge.
12142 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12144 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12145 compressed debug support.
12146 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12147 * configure: Regenerate.
12148 * config.in: Regenerate.
12149 * common.opt (compressed_debug_sections): New enum.
12150 (gz, gz=): New options.
12151 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12152 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12153 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12154 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12155 LINK_COMPRESS_DEBUG_SPEC.
12156 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12157 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12158 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12159 (Debugging Options): Document -gz[=type].
12161 2014-06-27 Martin Jambor <mjambor@suse.cz>
12164 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12165 args_to_skip, use those from node instead. Copy args_to_skip and
12166 combined_args_to_skip from node to the new thunk.
12167 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12168 (cgraph_create_virtual_clone): Moved computation of
12169 combined_args_to_skip...
12170 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12172 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
12174 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12175 redundant diagnostic machinary.
12177 2014-06-27 Richard Biener <rguenther@suse.de>
12179 * tree-ssa-math-opts.c (bswap_replace): Fix
12180 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12182 2014-06-27 Martin Liska <mliska@suse.cz>
12184 * gimple.h (gimple_location_safe): New function introduced.
12185 * cgraphunit.c (walk_polymorphic_call_targets): Usage
12186 of gimple_location_safe replaces gimple_location.
12187 (gimple_fold_call): Likewise.
12188 * ipa-devirt.c (ipa_devirt): Likewise.
12189 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12190 * ipa.c (walk_polymorphic_call_targets): Likewise.
12191 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12193 2014-06-27 Jakub Jelinek <jakub@redhat.com>
12195 PR tree-optimization/57233
12196 PR tree-optimization/61299
12197 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12199 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
12200 would be lowered to scalar shifts, check if corresponding
12201 shifts and vector BIT_IOR_EXPR are supported and don't lower
12202 or lower just to narrower vector type in that case.
12203 * expmed.c (expand_shift_1): Fix up handling of vector
12204 shifts and rotates.
12206 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
12209 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12211 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
12213 * doc/invoke.texi (-fsemantic-interposition): Document.
12214 * common.opt (fsemantic-interposition): New flag.
12215 * varasm.c (decl_replaceable_p): Use it.
12217 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12220 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12221 extraction other than index 3.
12223 2014-06-26 Teresa Johnson <tejohnson@google.com>
12225 * doc/invoke.texi: Fix typo.
12226 * dumpfile.c: Add support for documented -fdump-* options
12227 optimized/missed/note/optall.
12229 2014-06-26 Martin Jambor <mjambor@suse.cz>
12231 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12232 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12233 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12234 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12235 * opts.c (default_options_optimization): Set
12236 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12237 * doc/invoke.texi (allow-load-data-races)
12238 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12239 (allow-store-data-races): Document the new default.
12241 2014-06-26 Martin Jambor <mjambor@suse.cz>
12243 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12244 renamed to ipa_impossible_devirt_target. Fix typo.
12245 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12246 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12247 ipa_impossible_devirt_target.
12249 2014-06-26 Richard Biener <rguenther@suse.de>
12251 PR tree-optimization/61607
12252 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12253 explaining why we restrict copies on loop depth.
12254 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12256 (record_equivalences_from_phis): Instead add it here.
12258 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
12260 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12261 (LTO_WRAPPER_OBJS): New variable.
12262 (lto-wrapper$(exeext)): Use it.
12263 * collect2.c: Include "collect-utils.h".
12264 (verbose, debug): Remove variables.
12265 (at_file_supplied): No longer static.
12266 (tool_name): New variable.
12267 (do_wait, fork_execute, maybe_unlink): Don't declare.
12268 (tool_cleanup): No longer static.
12269 (notice): Remove function.
12270 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12271 fork_execute calls.
12272 (collect_wait, do_wait, collect_execute): Remove functions.
12273 (maybe_unlink): No longer static.
12274 * collect2.h (verbose, debug): Don't declare.
12275 (at_file_supplied): Declare.
12276 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
12278 (collect_execute): Replace with implementation from collect2, plus a
12279 new arg use_atfile. All callers changed.
12280 (collect_wait): Replace with implementation from collect2.
12281 (maybe_unlink_file): Remove function.
12282 (fork_execute): Replace with implementation from collect2, plus a
12283 new arg use_atfile. All callers changed.
12284 (do_wait): Add call to utils_cleanup to the error path.
12285 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12286 (tool_cleanup): Adjust declarations.
12287 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12288 * tlink.c: Include "collect-utils.h".
12289 (tlink_execute): New arg use_atfile. All callers changed.
12290 (tlink_init, tlink_execute): Remove declarations.
12292 * collect-utils.c (save_temps): New variable.
12293 (do_wait): Use it instead of debug. Use fatal_error.
12294 * collect-utils.h (save_temps): Declare.
12295 * collect2.c (verbose): Rename from vflag. All uses changed.
12296 (tool_cleanup): New function, copied from collect_atexit.
12297 (collect_atexit, handler): Just call it.
12298 * collect2.h (verbose): Declaration renamed from vflag.
12299 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12302 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12303 (lto-wrapper$(exeext)): Link with collect-utils.o.
12304 * collect-utils.c: New file.
12305 * collect-utils.h: New file.
12306 * lto-wrapper.c: Include "collect-utils.h".
12307 (args_name): Delete variable.
12308 (tool_name): New variable.
12309 (tool_cleanup): New function.
12310 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
12311 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12312 (fork_execute): Remove functions.
12314 2014-06-26 Nick Clifton <nickc@redhat.com>
12316 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12318 * doc/extend.texi (Function Attributes): Fix typo in description
12319 of RX vector attribute.
12321 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
12323 * config.gcc (supported_defaults): Error when passing either
12324 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12326 2014-06-26 Richard Biener <rguenther@suse.de>
12328 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12329 propagating volatile pointers.
12331 2014-06-26 Richard Biener <rguenther@suse.de>
12333 PR tree-optimization/61607
12334 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12335 loop if we redirected its latch edge.
12336 (thread_block_1): Do not cancel loops prematurely.
12338 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
12340 * toplev.c (backend_init_target): Move init_emit_regs and
12342 (backend_init) ... here; skip ira_init_once and backend_init_target.
12343 (target_reinit) ... and here; clear
12344 this_target_rtl->lang_dependent_initialized.
12345 (lang_dependent_init_target): Clear
12346 this_target_rtl->lang_dependent_initialized;
12347 break out rtl initialization to ...
12348 (initialize_rtl): ... here; call also backend_init_target
12350 * toplev.h (initialize_rtl): New function.
12351 * function.c: Include toplev.h
12352 (init_function_start): Call initialize_rtl.
12353 * rtl.h (target_rtl): Add target_specific_initialized,
12354 lang_dependent_initialized.
12356 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
12357 Jakub Jelinek <jakub@redhat.com>
12359 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12361 2014-06-25 Tom de Vries <tom@codesourcery.com>
12363 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12365 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12367 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12368 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12369 Issue a strict overflow warning if appropriate.
12371 2014-06-25 Martin Liska <mliska@suse.cz>
12373 IPA REF refactoring
12374 * Makefile.in: Removed header file (ipa-ref-inline.h).
12375 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12377 (cgraph_speculative_call_info): Likewise.
12378 (cgraph_for_node_thunks_and_aliases): Likewise.
12379 (cgraph_for_node_and_aliases): Likewise.
12380 (verify_cgraph_node): Likewise.
12381 * cgraph.h: Batch of IPA REF functions become member functions of
12382 symtab_node: add_reference, maybe_add_reference, clone_references,
12383 clone_referring, clone_reference, find_reference,
12384 remove_stmt_references, remove_all_references,
12385 remove_all_referring, dump_references, dump_referring,
12386 has_alias_p, iterate_reference, iterate_referring.
12387 * cgraphbuild.c (record_reference): New IPA REF function used.
12388 (record_type_list): Likewise.
12389 (record_eh_tables): Likewise.
12390 (mark_address): Likewise.
12391 (mark_load): Likewise.
12392 (mark_store): Likewise.
12393 (pass_build_cgraph_edges): Likewise.
12394 (rebuild_cgraph_edge): Likewise.
12395 (cgraph_rebuild_references): Likewise.
12396 (pass_remove_cgraph_callee_edges): Likewise.
12397 * cgraphclones.c (cgraph_clone_node): Likewise.
12398 (cgraph_create_virtual_clone): Likewise.
12399 (cgraph_materialize_clone): Likewise.
12400 (cgraph_materialize_all_clones): Likewise.
12401 * cgraphunit.c (cgraph_reset_node): Likewise.
12402 (cgraph_reset_node): Likewise.
12403 (analyze_function): Likewise.
12404 (assemble_thunks_and_aliases): Likewise.
12405 (expand_function): Likewise.
12406 * ipa-comdats.c (propagate_comdat_group): Likewise.
12407 (enqueue_references): Likewise.
12408 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12409 (create_specialized_node): Likewise.
12410 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12411 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12412 * ipa-inline.c (reset_edge_caches): Likewise.
12413 (update_caller_keys): Likewise.
12414 (execute): Likewise.
12415 * ipa-prop.c (remove_described_reference): Likewise.
12416 (propagate_controlled_uses): Likewise.
12417 (ipa_edge_duplication_hook): Likewise.
12418 (ipa_modify_call_arguments): Likewise.
12419 * ipa-pure-const.c (propagate_pure_const): Likewise.
12420 * ipa-ref-inline.h: Header file removed, functions moved
12421 to symtab_node class.
12422 * ipa-ref.c (remove_reference): New class member function.
12423 (cannot_lead_to_return): New class member function.
12424 (referring_ref_list): Likewise.
12425 (referred_ref_list): Likewise.
12426 Rest of functions moved to symtab_node class.
12427 * ipa-ref.h: New member functions remove_reference,
12428 cannot_lead_to_return, referring_ref_list, referred_ref_list added
12430 ipa_ref_list class has new member functions: first_reference,
12431 first_referring, clear, nreferences.
12432 * ipa-reference.c (analyze_function): New IPA REF function used.
12433 (write_node_summary_p): Likewise.
12434 (ipa_reference_write_optimization_summary): Likewise.
12435 * ipa-split.c (split_function): Likewise.
12436 * ipa-utils.c (ipa_reverse_postorder): Likewise.
12437 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12438 (function_and_variable_visibility): Likewise.
12439 * ipa.c (has_addr_references_p): Likewise.
12440 (process_references): Argument type changed.
12441 (symtab_remove_unreachable_nodes): New IPA REF function used.
12442 (process_references): Likewise.
12443 (set_writeonly_bit): Likewise.
12444 * lto-cgraph.c: Implementation of new symtab_node member functions
12445 that uses new IPA REF functions.
12446 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12448 * lto-streamer-out.c (output_symbol_p): Likewise.
12449 * lto-streamer.h (referenced_from_this_partition_p): Argument type
12451 * symtab.c: Implementation of new IPA REF API.
12452 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12453 (ipa_tm_create_version): Likewise.
12454 (ipa_tm_execute): Likewise.
12455 * tree-emutls.c (gen_emutls_addr): Likewise.
12456 * tree-inline.c (copy_bb): Likewise.
12457 (delete_unreachable_blocks_update_callgraph): Likewise.
12458 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12459 (varpool_for_node_and_aliases): Likewise.
12461 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12463 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12465 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12468 * fold-const.c (fold_checksum_tree): Use a hash_table of const
12469 tree_node * instead of tree_node *.
12471 (print_fold_checksum): Likewise.
12472 (fold_check_failed): Likewise.
12473 (debug_fold_checksum): Likewise.
12474 (fold_build1_stat_loc): Likewise.
12475 (fold_build2_stat_loc): Likewise.
12476 (fold_build3_stat_loc): Likewise.
12477 (fold_build_call_array_loc): Likewise.
12479 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
12481 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12482 implementation with call to...
12483 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12485 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12488 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
12490 PR tree-optimization/57742
12491 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12492 after replacing the statement.
12494 2014-06-25 Nick Clifton <nickc@redhat.com>
12496 * config/v850/v850.c (GHS_default_section_names): Change to const
12498 (GHS_current_section_names): Likewise.
12499 (v850_insert_attributes): Do not build strings, just assign the
12500 names directly. Change the type of 'chosen_section' to const
12502 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12503 directly to the array entry.
12504 * config/v850/v850.h (GHS_default_section_names): Change to const
12506 (GHS_current_section_names): Likewise.
12508 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12510 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12511 (LANG_HOOKS_DECLS): Add it.
12512 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12514 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12515 * langhooks.h (struct lang_hooks_for_decls): Add
12516 omp_clause_linear_ctor hook.
12517 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12518 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
12519 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
12520 combined simd loop use omp_clause_linear_ctor hook.
12522 2014-06-24 Cong Hou <congh@google.com>
12524 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12525 pattern recognition.
12526 (type_conversion_p): PROMOTION is true if it's a type promotion
12527 conversion, and false otherwise. Return true if the given expression
12528 is a type conversion one.
12529 * tree-vectorizer.h: Adjust the number of patterns.
12530 * tree.def: Add SAD_EXPR.
12531 * optabs.def: Add sad_optab.
12532 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12533 * expr.c (expand_expr_real_2): Likewise.
12534 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12535 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12536 * optabs.c (optab_for_tree_code): Likewise.
12537 * tree-cfg.c (estimate_operator_cost): Likewise.
12538 * tree-ssa-operands.c (get_expr_operands): Likewise.
12539 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12540 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12541 * doc/generic.texi: Add document for SAD_EXPR.
12542 * doc/md.texi: Add document for ssad and usad.
12544 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12546 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12547 qualification in cast.
12549 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
12551 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12552 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12553 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12554 (tree_function_decl): ... here.
12555 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12556 streaming of vindex to ...
12557 (write_ts_function_decl_tree_pointers): ... here.
12558 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12559 Do not stream DECL_VINDEX.
12560 (lto_input_ts_function_decl_tree_pointers): Stream it here.
12562 2014-06-24 Catherine Moore <clm@codesourcery.com>
12563 Sandra Loosemore <sandra@codesourcery.com>
12565 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12566 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12567 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12569 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12571 * doc/invoke.texi (Warning Options): Remove duplicated
12572 -Wmaybe-uninitialized.
12574 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12576 PR tree-optimization/57742
12577 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12578 (handle_builtin_malloc, handle_builtin_memset): New functions.
12579 (strlen_optimize_stmt): Call them.
12580 * passes.def: Move strlen after loop+dom but before vrp.
12582 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12585 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12586 model family 6 CPU with has_longmode never use a CPU without
12589 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
12592 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12595 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12597 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12598 * dominance.c (iterate_fix_dominators): Use hash_map instead of
12600 * hash-map.h: New file.
12601 * ipa-comdats.c: Use hash_map instead of pointer_map.
12603 * lto-section-out.c: Adjust.
12604 * lto-streamer.h: Replace pointer_map with hash_map.
12605 * symtab.c (verify_symtab): Likewise.
12606 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12607 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12608 * tree-streamer.h: Likewise.
12609 * tree-streamer.c: Adjust.
12610 * pointer-set.h: Remove pointer_map.
12612 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12614 * hash-table.h: Add a template arg to choose between storing values
12615 and storing pointers to values, and then provide partial
12616 specializations for both.
12617 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12618 should store, not the type values should point to.
12619 * tree-into-ssa.c (var_info_hasher): Likewise.
12620 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12621 * tree-complex.c: Adjust.
12622 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12623 table instead of int_tree_map *.
12624 * tree-parloops.c: Adjust.
12625 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12626 type is being stored.
12627 * tree-vectorizer.c: Adjust.
12629 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12631 * hash-table.h: Remove a layer of indirection from hash_table so that
12632 it contains the hash table's data instead of a pointer to the data.
12633 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12634 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12635 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12636 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12637 fold-const.c, gcse.c, ggc-common.c,
12638 gimple-ssa-strength-reduction.c, gimplify.c,
12639 graphite-clast-to-gimple.c, graphite-dependences.c,
12640 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12641 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12642 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12643 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12644 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12645 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12646 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12647 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12648 tree-ssa-live.c, tree-ssa-loop-im.c,
12649 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12650 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12651 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12652 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12653 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12654 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12655 vtable-verify.c, vtable-verify.h: Adjust.
12657 2014-06-24 Richard Biener <rguenther@suse.de>
12659 PR tree-optimization/61572
12660 * tree-ssa-sink.c (statement_sink_location): Do not sink
12661 loads from hard registers.
12663 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12665 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12666 not mentioned in clauses use private clause if the iterator is
12667 declared in #pragma omp for simd, and when adding lastprivate
12668 instead, add it to the outer #pragma omp for too. Diagnose
12669 if the variable is private in outer context. For simd collapse > 1
12670 loops, replace all iterators with temporaries.
12671 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12672 same even in collapse > 1 loops.
12674 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12675 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12677 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12678 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12680 (gimplify_adjust_omp_clauses): Likewise.
12681 * omp-low.c (lower_rec_simd_input_clauses,
12682 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12683 safelen the same as safelen(1).
12684 * tree-nested.c (convert_nonlocal_omp_clauses,
12685 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
12686 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
12687 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
12688 Fixup handling of GIMPLE_OMP_TARGET.
12689 (convert_tramp_reference_stmt, convert_gimple_call): Handle
12692 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
12694 PR tree-optimization/61554
12695 * tree-ssa-propagate.c: Include "bitmap.h".
12696 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
12697 properly update constructor/destructor.
12698 (substitute_and_fold_dom_walker::before_dom_children):
12699 Remove call to gimple_purge_dead_eh_edges, add bb->index to
12700 need_eh_cleaup instead.
12701 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
12704 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12706 * varpool.c (dump_varpool_node): Dump used_by_single_function.
12707 * tree-pass.h (make_pass_ipa_single_use): New pass.
12708 * cgraph.h (used_by_single_function): New flag.
12709 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
12711 * passes.def (pass_ipa_single_use): Scedule.
12712 * ipa.c (BOTTOM): New macro.
12713 (meet): New function
12714 (propagate_single_user): New function.
12715 (ipa_single_use): New function.
12716 (pass_data_ipa_single_use): New pass.
12717 (pass_ipa_single_use): New pass.
12718 (pass_ipa_single_use::gate): New gate.
12719 (make_pass_ipa_single_use): New function.
12721 2014-06-23 Kai Tietz <ktietz@redhat.com>
12724 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
12725 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
12727 2014-06-23 Richard Biener <rguenther@suse.de>
12729 * tree-ssa-loop.c (gate_loop): New function.
12730 (pass_tree_loop::gate): Call it.
12731 (pass_data_tree_no_loop, pass_tree_no_loop,
12732 make_pass_tree_no_loop): New.
12733 * tree-vectorizer.c: Include tree-scalar-evolution.c
12734 (pass_slp_vectorize::execute): Initialize loops and SCEV if
12736 (pass_slp_vectorize::clone): New method.
12737 * timevar.def (TV_TREE_NOLOOP): New.
12738 * tree-pass.h (make_pass_tree_no_loop): Declare.
12739 * passes.def (pass_tree_no_loop): New pass group with
12742 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
12745 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
12746 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
12748 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12750 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
12751 "yes" where needed.
12753 2014-06-23 Alan Modra <amodra@gmail.com>
12756 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
12757 to zero on debug statements.
12759 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12762 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
12763 Ignore third operand if present by marking qualifier_internal.
12765 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
12767 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
12769 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
12770 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
12771 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
12772 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
12773 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
12774 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
12775 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
12776 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
12777 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
12778 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
12779 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
12780 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
12781 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
12782 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
12783 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
12784 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
12785 logic in GCC vector extensions
12787 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
12788 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
12789 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
12790 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
12791 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
12792 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
12793 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
12794 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
12795 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
12796 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
12798 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
12800 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
12803 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
12804 (vget_low_s64): Use __GET_LOW macro.
12805 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
12806 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
12807 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
12808 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
12809 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
12811 (vcombine_s64): Use GCC vector extensions; remove cast.
12812 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
12813 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
12814 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
12815 Fix type signature; remove cast.
12817 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12820 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
12822 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
12824 (BUILTIN_VD1): New.
12825 (BUILTIN_VD_RE): Remove.
12826 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
12827 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
12828 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
12829 variant but not df.
12830 (vreinterpretv1df*, vreinterpret*v1df): New.
12831 (vreinterpretdf*, vreinterpret*df): Remove.
12832 * config/aarch64/aarch64-simd.md (aarch64_create,
12833 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
12834 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
12836 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
12837 (vcreate_f64): Remove cast, use v1df builtin.
12838 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
12839 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
12840 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
12841 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
12842 vmov_n_f64, vst1_f64): Use gcc vector extensions.
12843 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
12844 add range check using __builtin_aarch64_im_lane_boundsi.
12845 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
12846 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
12847 type signature, use gcc vector extensions.
12848 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
12849 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
12850 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
12851 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
12852 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
12853 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
12854 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
12855 vreinterpret_u64_f64): Use v1df builtin not df.
12857 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12859 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
12862 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12864 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
12867 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12869 * loop-invariant.c (pre_check_invariant_p): New function.
12870 (find_invariant_insn): Call pre_check_invariant_p.
12872 2014-06-22 Richard Henderson <rth@redhat.com>
12875 * compare-elim.c (struct comparison): Add eh_note.
12876 (find_comparison_dom_walker::before_dom_children): Don't eliminate
12877 a redundant comparison in a different EH region. Purge EH edges if
12880 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12882 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
12883 (var_shift): Use it.
12884 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
12885 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12886 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12887 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12888 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12889 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
12890 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
12891 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
12892 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
12893 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
12894 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
12895 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
12896 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
12897 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
12898 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
12899 *rotldi3_internal15be): Use the new attribute. Merge register and
12900 integer alternatives.
12902 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12904 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
12905 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
12906 split, *ashrdi3_internal3 and split): Delete, merge into...
12907 (ashr<mode>3): New expander.
12908 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
12909 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
12911 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12913 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
12914 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
12915 *rotldi3_internal3 and split): Delete, merge into...
12916 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
12917 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
12918 Use "rotlw" extended mnemonic.
12920 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12922 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
12923 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
12924 and split, *ashldi3_internal3 and split): Delete, merge into...
12925 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
12926 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
12928 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12930 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
12931 (lshrsi3, two anonymous define_insns and define_splits,
12932 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
12933 *lshrdi3_internal3 and split): Delete, merge into...
12934 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
12935 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
12937 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12939 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
12940 Remove "O" alternative.
12942 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
12944 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
12945 (mips_move_from_gpr_cost): Likewise.
12946 (mips_register_move_cost): Update accordingly.
12947 (mips_secondary_reload_class): Remove name of in_p.
12949 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
12952 * config/i386/i386.md (x86_64_shrd, x86_shrd,
12953 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
12955 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12957 * config/nios2/nios2.c: Include "builtins.h".
12959 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12961 * cgraph.h (tls_model_names): New variable.
12962 * print-tree.c (print_node): Simplify.
12963 * varpool.c (tls_model_names): New variable.
12964 (dump_varpool_node): Output tls model.
12966 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12968 * ipa-visibility.c (function_and_variable_visibility): Disable
12969 temporarily local aliases for some targets.
12971 2014-06-20 Marek Polacek <polacek@redhat.com>
12973 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
12974 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
12975 into SANITIZE_UNDEFINED.
12976 * doc/invoke.texi: Describe -fsanitize=bounds.
12977 * gimplify.c (gimplify_call_expr): Add gimplification of internal
12978 functions created in the FEs.
12979 * internal-fn.c: Move "internal-fn.h" after "tree.h".
12980 (expand_UBSAN_BOUNDS): New function.
12981 * internal-fn.def (UBSAN_BOUNDS): New internal function.
12982 * internal-fn.h: Don't define internal functions here.
12983 * opts.c (common_handle_option): Add -fsanitize=bounds.
12984 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
12985 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
12986 * tree-core.h: Define internal functions here.
12987 (struct tree_base): Add ifn field.
12988 * tree-pretty-print.c: Include "internal-fn.h".
12989 (dump_generic_node): Handle functions without CALL_EXPR_FN.
12990 * tree.c (get_callee_fndecl): Likewise.
12991 (build_call_expr_internal_loc): New function.
12992 * tree.def (CALL_EXPR): Update description.
12993 * tree.h (CALL_EXPR_IFN): Define.
12994 (build_call_expr_internal_loc): Declare.
12995 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
12997 (ubsan_type_descriptor): Change bool parameter to enum
12998 ubsan_print_style. Adjust the code. Add handling of
13000 (ubsan_expand_bounds_ifn): New function.
13001 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13002 (ubsan_build_overflow_builtin): Likewise.
13003 (instrument_bool_enum_load): Likewise.
13004 (ubsan_instrument_float_cast): Likewise.
13005 * ubsan.h (enum ubsan_print_style): New enum.
13006 (ubsan_expand_bounds_ifn): Declare.
13007 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
13009 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
13011 * config/rs6000/rs6000.md: Append `DONE' to preparation
13012 statements of `bswap' pattern splitters.
13014 2014-06-20 Tom de Vries <tom@codesourcery.com>
13016 * target.def (call_fusage_contains_non_callee_clobbers): Update
13018 * doc/tm.texi: Regenerate.
13020 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13021 Max Ostapenko <m.ostapenko@partner.samsung.com>
13024 * asan.c (instrument_strlen_call): Fixed instrumentation of
13027 2014-06-20 Martin Jambor <mjambor@suse.cz>
13030 * ipa-prop.c (impossible_devirt_target): New function.
13031 (try_make_edge_direct_virtual_call): Use it, also instead of
13034 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13035 Max Ostapenko <m.ostapenko@partner.samsung.com>
13038 * asan.c (build_check_stmt): Add condition.
13040 2014-06-20 Martin Jambor <mjambor@suse.cz>
13043 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
13046 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13048 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
13050 (VCONQ): Make comment more helpful.
13052 * config/aarch64/aarch64-simd.md
13053 (aarch64_sqdmulh_lane<mode>):
13054 Use VCOND for operands 2. Update lane checking and flipping logic.
13055 (aarch64_sqrdmulh_lane<mode>): Likewise.
13056 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
13057 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
13058 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
13059 attribute of operand 3 to VCOND.
13060 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
13061 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13062 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
13063 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
13064 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13065 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
13067 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
13068 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
13069 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
13070 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
13071 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
13072 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
13073 operand to VCOND. Update lane flipping and bounds checking logic.
13074 (aarch64_sqdmlal2_lane<mode>): Likewise.
13075 (aarch64_sqdmlsl_lane<mode>): Likewise.
13076 (aarch64_sqdmull_lane<mode>): Likewise.
13077 (aarch64_sqdmull2_lane<mode>): Likewise.
13078 (aarch64_sqdmlal_laneq<mode>):
13079 Replace VCON usage with VCONQ.
13080 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
13081 (aarch64_sqdmlal2_laneq<mode>): Emit
13082 aarch64_sqdmlal2_laneq<mode>_internal insn.
13083 Replace VCON with VCONQ.
13084 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
13085 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13086 (aarch64_sqdmull_laneq<mode>): Emit
13087 aarch64_sqdmull_laneq<mode>_internal insn.
13088 Replace VCON with VCONQ.
13089 (aarch64_sqdmull2_laneq<mode>): Emit
13090 aarch64_sqdmull2_laneq<mode>_internal insn.
13091 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
13092 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
13093 of 3rd argument to int16x4_t.
13094 (vqdmlalh_lane_s16): Likewise.
13095 (vqdmlslh_lane_s16): Likewise.
13096 (vqdmull_high_lane_s16): Likewise.
13097 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13098 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13099 (vqdmlsl_lane_s16): Likewise.
13100 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13101 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13102 (vqdmlals_lane_s32): Likewise.
13103 (vqdmlsls_lane_s32): Likewise.
13104 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13105 (vqdmulls_lane_s32): Likewise.
13106 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13107 (vqdmlsl_lane_s32): Likewise.
13108 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13109 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13110 (vqrdmulhh_lane_s16): Likewise.
13111 (vqdmlsl_high_lane_s16): Likewise.
13112 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13113 (vqdmlsl_high_lane_s32): Likewise.
13114 (vqrdmulhs_lane_s32): Likewise.
13116 2014-06-20 Tom de Vries <tom@codesourcery.com>
13118 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13119 get_call_reg_set_usage.
13121 2014-06-20 Tom de Vries <tom@codesourcery.com>
13123 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13124 it contains all call_used_regs.
13126 2014-06-20 Tom de Vries <tom@codesourcery.com>
13128 * final.c (collect_fn_hard_reg_usage): Add and use variable
13129 function_used_regs.
13131 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13133 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13134 (set_init_priority, get_init_priority, set_fini_priority,
13135 get_fini_priority): New methods.
13136 * tree.c (init_priority_for_decl): Remove.
13137 (init_ttree): Do not initialize init priority.
13138 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13139 (decl_priority_info): Remove.
13140 (decl_init_priority_insert): Rewrite.
13141 (decl_fini_priority_insert): Rewrite.
13142 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13143 tree_priority_map_marked_p): Remove.
13144 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13145 * lto-streamer-out.c (hash_tree): Do not hash priorities.
13146 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13147 not output priorities.
13148 (pack_ts_function_decl_value_fields): Likewise.
13149 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13150 not input priorities.
13151 (unpack_ts_function_decl_value_fields): Likewise.
13152 * symtab.c (symbol_priority_map): Declare.
13153 (init_priority_hash): Declare.
13154 (symtab_unregister_node): Unregister from priority hash, too.
13155 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13157 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13158 (symbol_priority_info): New function.
13159 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13161 * tree-core.h (tree_priority_map): Remove.
13163 2014-06-20 Jakub Jelinek <jakub@redhat.com>
13165 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13166 0xff to uint64_t before shifting it up.
13168 2014-06-20 Julian Brown <julian@codesourcery.com>
13169 Chung-Lin Tang <cltang@codesourcery.com>
13171 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13172 TARGET_THUMB1_ONLY. Add comments.
13174 2014-06-19 Tom de Vries <tom@codesourcery.com>
13176 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13177 return type to void.
13178 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13180 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13182 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13183 as "move", from depends_on.
13185 2014-06-19 Terry Guo <terry.guo@arm.com>
13187 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13190 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
13192 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13194 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
13196 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
13199 * config/sh/sh.c (prepare_move_operands): Don't process TLS
13200 addresses here if reload in progress or completed.
13202 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13204 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13205 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13206 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13207 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13208 (mips_register_priority): New function that implements the target
13209 hook TARGET_REGISTER_PRIORITY.
13210 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13211 (mips_lra_p): Likewise for TARGET_LRA_P.
13212 (TARGET_REGISTER_PRIORITY): Define macro.
13213 (TARGET_SPILL_CLASS): Likewise.
13214 (TARGET_LRA_P): Likewise.
13215 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13217 (REG_CLASS_NAMES): Likewise.
13218 (REG_CLASS_CONTENTS): Likewise.
13219 (BASE_REG_CLASS): Use M16_SP_REGS.
13220 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13221 New set attribute to enable alternatives depending on the register
13223 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13224 (*lea64): Disable pattern for MIPS16.
13225 * config/mips/mips.opt (mlra): New option.
13227 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13229 * lra-constraints.c (base_to_reg): New function.
13230 (process_address): Use new function.
13232 2014-06-18 Tom de Vries <tom@codesourcery.com>
13234 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13235 * config/aarch64/aarch64.c
13236 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13237 (aarch64_emit_call_insn): New function.
13238 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13240 * config/aarch64/aarch64.md (define_expand "call_internal")
13241 (define_expand "call_value_internal", define_expand "sibcall_internal")
13242 (define_expand "sibcall_value_internal"): New.
13243 (define_expand "call", define_expand "call_value")
13244 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13245 expand variant and aarch64_emit_call_insn.
13247 2014-06-18 Radovan Obradovic <robradovic@mips.com>
13248 Tom de Vries <tom@codesourcery.com>
13250 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13251 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13253 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
13254 clobbers to CALL_INSN_FUNCTION_USAGE.
13255 (define_expand "sibcall_internal")
13256 (define_expand "sibcall_value_internal"): New.
13257 (define_expand "call", define_expand "call_value"): Add argument to
13258 arm_emit_call_insn.
13259 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13260 (define_expand "sibcall_value"): Use sibcall_value_internal and
13261 arm_emit_call_insn.
13263 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13265 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13267 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13269 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13272 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13274 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13275 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13276 annotations. Fix DWARF information.
13278 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13280 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13281 __udivmoddi4, and fixups for negative operands.
13283 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13285 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13287 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13289 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13292 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13294 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13297 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13299 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13300 describing register usage on function entry and exit.
13302 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13304 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13305 (__aeabi_ldivmod): Fix whitespace.
13307 2014-06-18 Andreas Schwab <schwab@suse.de>
13309 * doc/md.texi (Standard Names): Use @itemx for grouped items.
13310 Remove blank line after @item.
13312 2014-06-18 Richard Henderson <rth@redhat.com>
13315 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13317 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13319 * config/arm/arm.c (neon_vector_mem_operand): Allow register
13320 POST_MODIFY for neon loads and stores.
13321 (arm_print_operand): Output post-index register for neon loads and
13324 2014-06-18 Richard Biener <rguenther@suse.de>
13326 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13328 2014-06-18 Richard Biener <rguenther@suse.de>
13330 * tree-pass.h (make_pass_dce_loop): Remove.
13331 * passes.def: Replace pass_dce_loop with pass_dce.
13332 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13333 changed free niter estimates and reset the scev cache.
13334 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13335 make_pass_dce_loop): Remove.
13336 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13337 (fini_copy_prop): Return whether something changed. Always
13338 let substitute_and_fold perform DCE and free niter estimates
13339 and reset the scev cache if so.
13340 (execute_copy_prop): If sth changed schedule cleanup-cfg.
13341 (pass_data_copy_prop): Do not unconditionally schedule
13342 cleanup-cfg or update-ssa.
13344 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13346 PR tree-optimization/61518
13347 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13348 reduction var is used in reduction stmt or phi-function only.
13350 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13352 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13354 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
13356 PR tree-optimization/61517
13357 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13358 whose rhs's first tree is the source expression instead of the
13360 (find_bswap_or_nop): Likewise.
13361 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13362 gimple stmt whose rhs's first tree is the source. In the memory source
13363 case, move the stmt to be replaced close to one of the original load to
13364 avoid the problem of a store between the load and the stmt's original
13366 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13369 2014-06-18 Andreas Schwab <schwab@suse.de>
13371 PR rtl-optimization/54555
13372 * postreload.c (move2add_use_add2_insn): Substitute
13373 STRICT_LOW_PART only if it is cheaper.
13375 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
13377 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13378 Do not use unspec as call operand. Use memory_operand instead of
13379 memory_nox32_operand and add "m" operand constraint. Disable
13380 pattern for TARGET_X32.
13381 (*sibcall_pop_memory): Ditto.
13382 (*sibcall_value_memory): Ditto.
13383 (*sibcall_value_pop_memory): Ditto.
13384 (sibcall peepholes): Merge SImode and DImode patterns using
13385 W mode iterator. Use memory_operand instead of memory_nox32_operand.
13386 Disable pattern for TARGET_X32. Check if eliminated register is
13387 really dead after call insn. Generate call RTX without unspec operand.
13388 (sibcall_value peepholes): Ditto.
13389 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
13390 instead of memory_nox32_operand. Check if eliminated register is
13391 really dead after call insn. Generate call RTX without unspec operand.
13392 (sibcall_value_pop peepholes): Ditto.
13393 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13395 2014-06-18 Terry Guo <terry.guo@arm.com>
13398 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13401 2014-06-18 Olivier Hainque <hainque@adacore.com>
13403 * tree-core.h (tree_block): Add an "end_locus" field, allowing
13404 memorization of the end of block source location.
13405 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13406 * gimplify.c (gimplify_bind_expr): Propagate the block start and
13407 end source location info we have on the block entry/exit code we
13410 2014-06-18 Richard Biener <rguenther@suse.de>
13412 * common.opt (fssa-phiopt): New option.
13413 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13415 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13416 * doc/invoke.texi (-fssa-phiopt): Document.
13418 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13420 * genattrtab.c (n_bypassed): New variable.
13421 (process_bypasses): Initialise n_bypassed.
13422 Count number of bypassed reservations.
13423 (make_automaton_attrs): Allocate space for bypassed reservations
13424 rather than number of bypasses.
13426 2014-06-18 Richard Biener <rguenther@suse.de>
13428 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13429 we propagated anything.
13430 (substitute_and_fold_dom_walker::before_dom_children): Something
13431 changed if we propagated into PHI arguments.
13432 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13435 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
13437 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13439 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13440 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13441 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13442 Introduces alternative way of loads group permutaions.
13443 (vect_transform_grouped_load): Try alternative way of permutations.
13445 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13447 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13448 changed in ORT_TARGET region, don't jump to do_outer.
13449 (struct gimplify_adjust_omp_clauses_data): New type.
13450 (gimplify_adjust_omp_clauses_1): Adjust for data being
13451 a struct gimplify_adjust_omp_clauses_data pointer instead
13452 of tree *. Pass pre_p as a new argument to
13453 lang_hooks.decls.omp_finish_clause hook.
13454 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13455 splay_tree_foreach to pass both list_p and pre_p.
13456 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13457 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13458 gimplify_adjust_omp_clauses callers.
13459 * langhooks.c (lhd_omp_finish_clause): New function.
13460 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13461 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13462 * langhooks.h (struct lang_hooks_for_decls): Add a new
13463 gimple_seq * argument to omp_finish_clause hook.
13464 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13465 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13466 (scan_omp_parallel, lower_omp_for): When adding
13467 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13468 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13469 * tree-nested.c (convert_nonlocal_omp_clauses,
13470 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13471 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13473 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
13475 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13476 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13478 2014-06-17 Xinliang David Li <davidxl@google.com>
13480 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13481 * passes.c (pass_init_dump_file): Do not set initialize
13482 flag to false unconditionally.
13484 2014-06-17 Richard Biener <rguenther@suse.de>
13486 * genopinit.c (main): Use vec<>::qsort method.
13487 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13489 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13491 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
13493 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13494 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13495 (mips_move_to_gpr_cost): Remove ST_REGS case.
13496 (mips_move_from_gpr_cost): Likewise.
13497 (mips_register_move_cost): Likewise.
13498 (mips_secondary_reload_class): Likewise.
13500 2014-06-17 Richard Biener <rguenther@suse.de>
13502 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13503 (pass_all_optimizations): Move 3rd copy-prop pass from after
13504 fre to before ifcombine/phiopt.
13506 2014-06-17 Richard Biener <rguenther@suse.de>
13508 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13509 and allow all blocks to be forwarders.
13511 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
13514 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13515 variable 'size'; calculate 'size' right in the front; use
13516 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13517 pcum->aapcs_stack_words.
13519 2014-06-17 Nick Clifton <nickc@redhat.com>
13521 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13522 (umulhi3, mulsidi3, umulsidi3): Likewise.
13524 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
13526 PR middle-end/61508
13527 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13528 check for section name.
13530 2014-06-17 Richard Biener <rguenther@suse.de>
13532 * tree-ssa-propagate.c: Include domwalk.h.
13533 (substitute_and_fold): Outline main worker into a domwalker ...
13534 (substitute_and_fold_dom_walker::before_dom_children): ... here.
13535 Schedule stmts we can fully propagate for removal. Remove
13537 (substitute_and_fold): Apply a dominator walk to perform
13538 substitution. Process stmts scheduled for removal here.
13540 2014-06-17 Richard Biener <rguenther@suse.de>
13542 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13543 of PHI node moving.
13545 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13547 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13548 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13549 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13550 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13551 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13553 (get_fpscr) : Likewise.
13555 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13557 PR rtl-optimization/61325
13558 * lra-constraints.c (valid_address_p): Add forward declaration.
13559 (simplify_operand_subreg): Check address validity before and after
13560 alter_reg of memory subreg.
13562 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
13564 * config/i386/i386.c (decide_alg): Correctly handle
13565 maximum size of stringop algorithm.
13567 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13569 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13571 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13573 PR rtl-optimization/61522
13574 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13576 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
13579 * symtab.c (symtab_node::reset_section): New method.
13580 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13582 * cgraph.h (reset_section): Declare.
13583 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13584 do not consider comdat locals.
13585 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13587 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13588 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13589 reset sections of symbols dragged out of the comdats.
13590 (function_and_variable_visibility): Reset sections of
13593 2014-06-16 Richard Biener <rguenther@suse.de>
13595 PR tree-optimization/61482
13596 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13597 [-INF(OVF), +INF(OVF)] range.
13599 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13601 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13602 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13603 handling 32-bit multiplication.
13605 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
13607 PR middle-end/61430
13608 * lra-lives.c (process_bb_lives): Skip creating copy during
13609 insn scan when src/dest has constrained to same regno.
13611 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13613 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13614 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13616 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13618 * asan.c (check_func): New function.
13619 (maybe_create_ssa_name): Likewise.
13620 (build_check_stmt_with_calls): Likewise.
13621 (use_calls_p): Likewise.
13622 (report_error_func): Change interface.
13623 (build_check_stmt): Allow non-integer lengths; add support
13625 (asan_instrument): Likewise.
13626 (instrument_mem_region_access): Moved code to build_check_stmt.
13627 (instrument_derefs): Likewise.
13628 (instrument_strlen_call): Likewise.
13629 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13630 * doc/invoke.texi: Describe new parameter.
13631 * params.def: Define new parameter.
13632 * params.h: Likewise.
13633 * sanitizer.def: Describe new builtins.
13635 2014-06-16 Richard Biener <rguenther@suse.de>
13637 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13638 Make all defs available at the end.
13639 (eliminate): If we remove a PHI node schedule cfg-cleanup.
13641 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13644 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13646 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
13649 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13650 initialization. Replace remaining use of uid.
13652 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13654 * c-family/c-common.c (handle_tls_model_attribute): Use
13655 set_decl_tls_model.
13656 * c-family/c-common.c (handle_tls_model_attribute): Use
13657 set_decl_tls_model.
13658 * cgraph.h (struct varpool_node): Add tls_model.
13659 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13660 * tree.h (DECL_TLS_MODEL): Update.
13661 (DECL_THREAD_LOCAL_P): Check that variable is static.
13662 (decl_tls_model): Declare.
13663 (set_decl_tls_model): Declare.
13664 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13665 set symbol prorperties.
13666 (get_emutls_init_templ_addr): Cleanup.
13667 (new_emutls_decl): Update.
13668 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13669 (lto_input_varpool_node): Likewise.
13670 * lto-streamer-out.c (hash_tree): Likewise.
13671 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13672 not stream DECL_TLS_MODEL.
13673 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13674 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13676 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13678 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13680 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13682 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13683 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13685 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
13686 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
13687 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
13688 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
13689 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
13690 (df_get_artificial_defs, df_get_artificial_uses)
13691 (df_single_def, df_single_use): Update accordingly.
13692 (df_refs_chain_dump): Take the first element in a linked list as
13693 parameter, rather than a pointer to an array of pointers.
13694 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
13695 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
13696 (df_chain_create_bb_process_use): Likewise.
13697 (df_md_bb_local_compute_process_def): Likewise.
13698 * fwprop.c (process_defs, process_uses): Likewise.
13699 (register_active_defs, update_uses): Likewise.
13700 (forward_propagate_asm): Update for new df_ref linking.
13701 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
13702 (df_null_ref_rec, df_null_mw_rec): Likewise.
13703 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
13705 (df_scan_free_bb_info): Remove check for null artificial_defs.
13706 (df_install_ref_incremental): Adjust for new df_ref linking.
13707 Use a single-element insertion rather than a full sort.
13708 (df_ref_chain_delete_du_chain): Take the first element
13709 in a linked list as parameter, rather than a pointer to an array of
13711 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
13712 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
13713 (df_insn_info_delete): Remove check for null defs and call to
13714 df_scan_free_mws_vec.
13715 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
13716 null rather than df_null_*_rec.
13717 (df_insn_rescan_debug_internal): Likewise, and update null
13718 checks in the same way. Remove check for null defs.
13719 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
13720 Move a single element rather doing a full sort.
13721 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
13723 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
13724 Initialize df_ref and df_mw_hardreg lists to null rather than
13726 (df_ref_compare): Take df_refs as parameter, transferring the
13727 old interface to...
13728 (df_ref_ptr_compare): ...this new function.
13729 (df_sort_and_compress_refs): Update accordingly.
13730 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
13731 old interface to...
13732 (df_mw_ptr_compare): ...this new function.
13733 (df_sort_and_compress_mws): Update accordingly.
13734 (df_install_refs, df_install_mws): Return a linked list rather than
13735 an array of pointers.
13736 (df_refs_add_to_chains): Assert that old lists are empty rather
13738 (df_insn_refs_verify): Don't handle null defs speciailly.
13739 * web.c (union_match_dups): Update for new df_ref linking.
13741 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13743 * df.h (df_ref_create, df_ref_remove): Delete.
13744 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
13745 (df_ref_remove): Likewise.
13747 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13749 * df.h (df_single_def, df_single_use): New functions.
13750 * ira.c (find_moveable_pseudos): Use them.
13752 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13754 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
13755 * df-problems.c (df_note_bb_compute): Use it.
13756 * regstat.c (regstat_bb_compute_ri): Likewise.
13758 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13760 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
13761 * cse.c (cse_extended_basic_block): Use them.
13762 * dce.c (mark_artificial_use): Likewise.
13763 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
13764 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13765 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
13766 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
13767 (df_simulate_initialize_backwards): Likewise.
13768 (df_simulate_finalize_backwards): Likewise.
13769 (df_simulate_initialize_forwards): Likewise.
13770 (df_md_simulate_artificial_defs_at_top): Likewise.
13771 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13772 * regrename.c (init_rename_info): Likewise.
13773 * regstat.c (regstat_bb_compute_ri): Likewise.
13774 (regstat_bb_compute_calls_crossed): Likewise.
13776 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13778 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
13779 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
13780 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
13781 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
13782 * combine.c (create_log_links): Likewise.
13783 * compare-elim.c (find_flags_uses_in_insn): Likewise.
13784 (try_eliminate_compare): Likewise.
13785 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
13786 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
13787 (remove_reg_equal_equiv_notes_for_defs): Likewise.
13788 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
13789 (word_dce_process_block, dce_process_block): Likewise.
13790 * ddg.c (def_has_ccmode_p): Likewise.
13791 * df-core.c (df_bb_regno_first_def_find): Likewise.
13792 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
13793 * df-problems.c (df_rd_simulate_one_insn): Likewise.
13794 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13795 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
13796 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
13797 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
13798 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
13799 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
13800 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
13801 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
13802 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13803 * fwprop.c (local_ref_killed_between_p): Likewise.
13804 (all_uses_available_at, free_load_extend): Likewise.
13805 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
13806 * hw-doloop.c (scan_loop): Likewise.
13807 * ifcvt.c (dead_or_predicable): Likewise.
13808 * init-regs.c (initialize_uninitialized_regs): Likewise.
13809 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
13810 (process_bb_node_lives): Likewise.
13811 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
13812 (find_moveable_pseudos): Likewise.
13813 * loop-invariant.c (check_dependencies, record_uses): Likewise.
13814 * recog.c (peep2_find_free_register): Likewise.
13815 * ree.c (get_defs): Likewise.
13816 * regstat.c (regstat_bb_compute_ri): Likewise.
13817 (regstat_bb_compute_calls_crossed): Likewise.
13818 * sched-deps.c (find_inc, find_mem): Likewise.
13819 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
13820 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
13821 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13822 (prepare_shrink_wrap): Likewise.
13823 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
13824 * web.c (union_defs, pass_web::execute): Likewise.
13825 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
13826 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
13828 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
13830 * lra-assign.c (assign_by_spills): Add code to assign vector regs
13831 to inheritance pseudos.
13832 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
13834 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
13837 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
13838 (BU_MISC_2): Rename to ...
13839 (BU_LDBL128_2): ... this.
13840 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
13841 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
13842 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13843 RS6000_BTM_LDBL128.
13844 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
13845 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
13846 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
13847 (unpacktf_1): Likewise.
13848 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
13849 (__builtin_longdouble_dw1): Likewise.
13850 * doc/sourcebuild.texi (longdouble128): Document.
13852 2014-06-13 Jeff Law <law@redhat.com>
13854 PR rtl-optimization/61094
13855 PR rtl-optimization/61446
13856 * ree.c (combine_reaching_defs): Get the mode for the copy from
13857 the extension insn rather than the defining insn.
13859 2014-06-13 Dehao Chen <dehao@google.com>
13861 * dwarf2out.c (add_linkage_name): Emit more linkage name.
13863 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
13865 * doc/install.texi (--enable-linker-plugin-configure-flags)
13866 (--enable-linker-plugin-flags): Document new flags.
13868 2014-06-13 Martin Jambor <mjambor@suse.cz>
13871 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
13872 cache_token if returning early.
13874 2014-06-13 Nick Clifton <nickc@redhat.com>
13876 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
13877 requested alignment is active.
13878 (LABEL_ALIGN): Likewise.
13879 (LOOP_ALIGN): Likewise.
13881 2014-06-13 Richard Biener <rguenther@suse.de>
13883 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13884 Rewrite to propagate the VN result into all uses where
13885 possible and to remove stmts becoming dead because of that.
13886 (eliminate): Generalize stmt removal handling, remove in
13887 reverse dominator order to support proper debug stmt
13888 generation. Update stmts before removing stmts.
13889 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
13891 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13893 PR tree-optimization/61375
13894 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
13895 symbolic number cannot be represented in an uint64_t.
13896 (find_bswap_or_nop_1): Likewise.
13898 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13900 * symtab.c (symtab_node::reset_section): New method.
13901 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13903 * cgraph.h (reset_section): Declare.
13904 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13905 do not consider comdat locals.
13906 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13908 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13909 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13910 reset sections of symbols dragged out of the comdats.
13911 (function_and_variable_visibility): Reset sections of
13914 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13916 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
13917 to use symtab and decl_binds_to_current_def_p
13918 * tree-vectorizer.c (increase_alignment): Increase alignment
13919 of alias target, too.
13921 2014-06-12 Jakub Jelinek <jakub@redhat.com>
13923 PR middle-end/61486
13924 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
13925 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
13926 if outer combined construct is distribute.
13927 (gimplify_omp_for): For OMP_DISTRIBUTE set
13928 gimplify_omp_ctxp->distribute.
13929 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
13930 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
13931 mapping into decl map.
13933 2014-06-12 Jason Merrill <jason@redhat.com>
13935 * common.opt (fabi-version): Change default to 0.
13937 2014-06-12 Jason Merrill <jason@redhat.com>
13939 * toplev.c (process_options): Reject -fabi-version=1.
13941 2014-06-12 Jeff Law <law@redhat.com>
13943 PR tree-optimization/61009
13944 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
13945 value when we stop processing a block due to problematic PHIs.
13947 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
13949 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
13950 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
13951 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
13952 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
13953 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
13954 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
13955 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
13956 are not in the spec.
13958 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
13961 * config/aarch64/aarch64-modes.def: Add V1DFmode.
13962 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
13965 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
13967 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
13969 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
13972 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
13973 loading from address spaces.
13975 2014-06-12 Martin Liska <mliska@suse.cz>
13978 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
13979 statement is reachable.
13981 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13983 * symtab.c (section_hash): New hash.
13984 (symtab_unregister_node): Clear section before freeing.
13985 (hash_section_hash_entry): New haser.
13986 (eq_sections): New function.
13987 (symtab_node::set_section_for_node): New method.
13988 (set_section_1): Update.
13989 (symtab_node::set_section): Take string instead of tree as parameter.
13990 (symtab_resolve_alias): Update.
13991 * cgraph.h (section_hash_entry_d): New structure.
13992 (section_hash_entry): New typedef.
13993 (cgraph_node): Change comdat_group_ to x_comdat_group,
13994 change section_ to x_section and turn into section_hash_entry;
13995 update accestors; put set_section_for_node offline.
13996 * tree.c (decl_section_name): Turn into string.
13997 (set_decl_section_name): Change parameter to be string.
13998 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
13999 * sdbout.c (sdbout_one_type): Update.
14000 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14001 * varasm.c (IN_NAMED_SECTION, get_named_section,
14002 resolve_unique_section, hot_function_section, get_named_text_section,
14003 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14004 make_decl_rtl, default_unique_section): Update.
14005 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14006 (c6x_elf_unique_section): Update.
14007 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14008 * config/pa/pa.c (pa_function_section): Update.
14009 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14010 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14011 * config/arc/arc.c (arc_in_small_data_p): Update.
14012 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14013 * config/mcore/mcore.c (mcore_unique_section): Update.
14014 * config/mips/mips.c (mips16_build_function_stub): Update.
14015 (mips16_build_call_stub): Update.
14016 (mips_function_rodata_section): Update.
14017 (mips_in_small_data_p): Update.
14018 * config/score/score.c (score_in_small_data_p): Update.
14019 * config/rx/rx.c (rx_in_small_data): Update.
14020 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14021 (rs6000_xcoff_asm_named_section): Update.
14022 (rs6000_xcoff_unique_section): Update.
14023 * config/frv/frv.c (frv_string_begins_with): Update.
14024 (frv_in_small_data_p): Update.
14025 * config/v850/v850.c (v850_encode_data_area): Update.
14026 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14027 (bfin_handle_l1_data_attribute): Update.
14028 (bfin_handle_l2_attribute): Update.
14029 * config/mep/mep.c (mep_unique_section): Update.
14030 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14032 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14033 (h8300_handle_tiny_data_attribute): Update.
14034 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14035 (m32r_in_small_data_p): Update.
14036 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14037 * config/i386/i386.c (ix86_in_large_data_p): Update.
14038 * config/i386/winnt.c (i386_pe_unique_section): Update.
14039 * config/darwin.c (darwin_function_section): Update.
14040 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14041 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14042 (new_emutls_decl): Update.
14043 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
14044 input_varpool_node): Update.
14045 (ead_string_cst): Turn to ...
14046 (read_string): ... this one.
14047 * dwarf2out.c (secname_for_decl): Update.
14048 * asan.c (asan_protect_global): Update.
14050 2014-06-11 DJ Delorie <dj@redhat.com>
14052 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
14054 * config/rx/rx.c (rx_option_override): Likewise.
14055 (rx_align_for_label): Likewise.
14057 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
14059 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
14061 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
14064 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14066 * common.md: New file.
14067 * doc/md.texi: Update description of generic, machine-independent
14069 * config/s390/constraints.md (e): Delete.
14070 * Makefile.in (md_file): Include common.md.
14071 * config/m32c/t-m32c (md_file): Likewise.
14072 * genpreds.c (general_mem): New array.
14073 (generic_constraint_letters): Remove constraints now defined by
14075 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14076 Allow the first character to be '<' or '>' as well.
14077 * genoutput.c (general_mem): New array.
14078 (indep_constraints): Remove constraints now defined by common.md.
14079 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14080 Remove special handling of 'm'.
14081 * ira-costs.c (record_reg_classes): Remove special handling of
14082 constraints now defined by common.md.
14083 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14084 * ira-lives.c (single_reg_class): Likewise.
14085 (ira_implicitly_set_insn_hard_regs): Likewise.
14086 * lra-constraints.c (reg_class_from_constraints): Likewise.
14087 (process_alt_operands, process_address, curr_insn_transform): Likewise.
14088 * postreload.c (reload_cse_simplify_operands): Likewise.
14089 * reload.c (push_secondary_reload, scratch_reload_class)
14090 (find_reloads, alternative_allows_const_pool_ref): Likewise.
14091 * reload1.c (maybe_fix_stack_asms): Likewise.
14092 * targhooks.c (default_secondary_reload): Likewise.
14093 * stmt.c (parse_output_constraint): Likewise.
14094 * recog.c (preprocess_constraints): Likewise.
14095 (constrain_operands, peep2_find_free_register): Likewise.
14096 (asm_operand_ok): Likewise, but add a comment saying why 'o'
14097 must be handled specially.
14099 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14101 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14102 * genpreds.c (have_const_dbl_constraints): Delete.
14103 (add_constraint): Don't set it.
14104 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14105 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14106 constraints using the lookup_constraint logic.
14107 * ira-lives.c (single_reg_class): Likewise.
14108 * ira.c (ira_setup_alts): Likewise.
14109 * lra-constraints.c (process_alt_operands): Likewise.
14110 * recog.c (asm_operand_ok, constrain_operands): Likewise.
14111 * reload.c (find_reloads): Likewise.
14113 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14115 * genpreds.c (const_int_start, const_int_end): New variables.
14116 (choose_enum_order): Output CONST_INT constraints before memory
14118 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14120 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14121 * ira.c (ira_setup_alts): Likewise.
14122 * lra-constraints.c (process_alt_operands): Likewise.
14123 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14124 * reload.c (find_reloads): Likewise.
14126 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14128 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14129 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
14130 * recog.c (preprocess_constraints): Update accordingly.
14132 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14134 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14135 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14136 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14137 * genpreds.c (print_type_tree): New function.
14138 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14139 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14140 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14141 Write out enum constraint_type and get_constraint_type.
14142 * lra-constraints.c (satisfies_memory_constraint_p): Take a
14143 constraint_num rather than a constraint string.
14144 (satisfies_address_constraint_p): Likewise.
14145 (reg_class_from_constraints): Avoid old constraint macros.
14146 (process_alt_operands, process_address_1): Likewise.
14147 (curr_insn_transform): Likewise.
14148 * ira-costs.c (record_reg_classes): Likewise.
14149 (record_operand_costs): Likewise.
14150 * ira-lives.c (single_reg_class): Likewise.
14151 (ira_implicitly_set_insn_hard_regs): Likewise.
14152 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14153 * postreload.c (reload_cse_simplify_operands): Likewise.
14154 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14155 (constrain_operands, peep2_find_free_register): Likewise.
14156 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14157 (find_reloads, alternative_allows_const_pool_ref): Likewise.
14158 * reload1.c (maybe_fix_stack_asms): Likewise.
14159 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14160 * targhooks.c (default_secondary_reload): Likewise.
14161 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14162 to EXTRA_CONSTRAINT_STR.
14163 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14165 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14167 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14168 (write_constraint_satisfied_p_array): ...this new function.
14169 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14171 (write_insn_preds_c): Update accordingly.
14173 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14175 * genpreds.c (write_lookup_constraint): Rename to...
14176 (write_lookup_constraint_1): ...this.
14177 (write_lookup_constraint_array): New function.
14178 (write_tm_preds_h): Define lookup_constraint as an inline function
14179 that uses write_lookup_constraint_array where possible.
14180 (write_insn_preds_c): Update for the changes above.
14182 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14184 * doc/md.texi (regclass_for_constraint): Rename to...
14185 (reg_class_for_constraint): ...this.
14186 * genpreds.c (num_constraints, enum_order, register_start)
14187 (register_end, satisfied_start, memory_start, memory_end)
14188 (address_start, address_end): New variables.
14189 (add_constraint): Count the number of constraints.
14190 (choose_enum_order): New function.
14191 (write_enum_constraint_num): Iterate over enum_order.
14192 (write_regclass_for_constraint): Rename to...
14193 (write_reg_class_for_constraint_1): ...this and update output
14195 (write_constraint_satisfied_p): Rename to...
14196 (write_constraint_satisfied_p_1): ...this and update output
14197 accordingly. Do nothing if all extra constraints are register
14199 (write_insn_extra_memory_constraint): Delete.
14200 (write_insn_extra_address_constraint): Delete.
14201 (write_range_function): New function.
14202 (write_tm_preds_h): Define constraint_satisfied_p and
14203 reg_class_for_constraint as inline functions that do a range check
14204 before calling the out-of-line function. Use write_range_function
14205 to implement insn_extra_{register,memory,address}_constraint,
14206 the first of which is new.
14207 (write_insn_preds_c): Update after above changes to write_* functions.
14208 (main): Call choose_enum_order.
14210 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14212 PR tree-optimization/61306
14213 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14214 expression instead of its size.
14215 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14216 false to prevent optimization when the result is unpredictable due to
14217 arithmetic right shift of signed type with highest byte is set.
14218 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14219 (init_symbolic_number): Likewise.
14220 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14221 when the result is unpredictable due to sign extension.
14223 2014-06-11 Terry Guo <terry.guo@arm.com>
14225 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14226 (*thumb1_addsi3): Ditto.
14227 (*thumb_subdi3): Ditto.
14228 (thumb1_subsi3_insn): Ditto.
14229 (*thumb_mulsi3): Ditto.
14230 (*thumb_mulsi3_v6): Ditto.
14231 (*thumb1_andsi3_insn): Ditto.
14232 (thumb1_bicsi3): Ditto.
14233 (*thumb1_iorsi3_insn): Ditto.
14234 (*thumb1_xorsi3_insn): Ditto.
14235 (*thumb1_ashlsi3): Ditto.
14236 (*thumb1_ashrsi3): Ditto.
14237 (*thumb1_lshrsi3): Ditto.
14238 (*thumb1_rotrsi3): Ditto.
14239 (*thumb1_negdi2): Ditto.
14240 (*thumb1_negsi2): Ditto.
14241 (*thumb1_abssi2): Ditto.
14242 (*thumb1_neg_abssi2): Ditto.
14243 (*thumb1_one_cmplsi2): Ditto.
14244 (*thumb1_zero_extendhisi2): Ditto.
14245 (*thumb1_zero_extendqisi2): Ditto.
14246 (*thumb1_zero_extendqisi2_v6): Ditto.
14247 (thumb1_extendhisi2): Ditto.
14248 (thumb1_extendqisi2): Ditto.
14249 (*thumb1_movdi_insn): Ditto.
14250 (*thumb1_movsi_insn): Ditto.
14251 (*thumb1_movhi_insn): Ditto.
14252 (thumb_movhi_clobber): Ditto.
14253 (*thumb1_movqi_insn): Ditto.
14254 (*thumb1_movhf): Ditto.
14255 (*thumb1_movsf_insn): Ditto.
14256 (*thumb_movdf_insn): Ditto.
14257 (movmem12b): Ditto.
14259 (cbranchqi4): Ditto.
14260 (cbranchsi4_insn): Ditto.
14261 (cbranchsi4_scratch): Ditto.
14262 (*negated_cbranchsi4): Ditto.
14263 (*tbit_cbranch): Ditto.
14264 (*tlobits_cbranch): Ditto.
14265 (*tstsi3_cbranch): Ditto.
14266 (*cbranchne_decr1): Ditto.
14267 (*addsi3_cbranch): Ditto.
14268 (*addsi3_cbranch_scratch): Ditto.
14269 (*thumb_cmpdi_zero): Ditto.
14270 (cstoresi_eq0_thumb1): Ditto.
14271 (cstoresi_ne0_thumb1): Ditto.
14272 (*cstoresi_eq0_thumb1_insn): Ditto.
14273 (*cstoresi_ne0_thumb1_insn): Ditto.
14274 (cstoresi_nltu_thumb1): Ditto.
14275 (cstoresi_ltu_thumb1): Ditto.
14276 (thumb1_addsi3_addgeu): Ditto.
14277 (*thumb_jump): Ditto.
14278 (*call_reg_thumb1_v5): Ditto.
14279 (*call_reg_thumb1): Ditto.
14280 (*call_value_reg_thumb1_v5): Ditto.
14281 (*call_value_reg_thumb1): Ditto.
14282 (*call_insn): Ditto.
14283 (*call_value_insn): Ditto.
14284 (thumb1_casesi_internal_pic): Ditto.
14285 (thumb1_casesi_dispatch): Ditto.
14286 (*thumb1_indirect_jump): Ditto.
14287 (prologue_thumb1_interwork): Ditto.
14288 (*epilogue_insns): Ditto.
14289 (consttable_1): Ditto.
14290 (consttable_2): Ditto.
14291 (tablejump): Ditto.
14292 (*thumb1_tablejump): Ditto.
14293 (thumb_eh_return): Ditto.
14294 (define_peephole2): Two of them are thumb1 only and got moved into
14295 new file thumb1.md.
14296 (define_split): Six of them are thumb1 only and got moved into new
14298 * config/arm/thumb1.md: New file comprised of above thumb1 only
14301 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14303 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14304 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14306 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14307 (aarch64_crc_builtin_datum): New struct.
14308 (aarch64_crc_builtin_data): New.
14309 (aarch64_init_crc32_builtins): New function.
14310 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14311 (aarch64_crc32_expand_builtin): New.
14312 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14313 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14314 __ARM_FEATURE_CRC32 when appropriate.
14315 (TARGET_CRC32): Define.
14316 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14317 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14318 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14319 (aarch64_<crc_variant>): New pattern.
14320 * config/aarch64/arm_acle.h: New file.
14321 * config/aarch64/iterators.md (CRC): New int iterator.
14322 (crc_variant, crc_mode): New int attributes.
14323 * doc/aarch64-acle-intrinsics.texi: New file.
14324 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14325 Include aarch64-acle-intrinsics.texi.
14327 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
14329 * tree-vect-data-refs.c (vect_grouped_store_supported): New
14330 check for stores group of length 3.
14331 (vect_permute_store_chain): New permutations for stores group of
14333 * tree-vect-stmts.c (vect_model_store_cost): Change cost
14334 of vec_perm_shuffle for the new permutations.
14336 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
14338 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14339 table rewriting temporarily on targets not supporting ONE_ONLY.
14341 2014-06-11 Richard Biener <rguenther@suse.de>
14343 PR middle-end/61437
14345 2014-06-04 Richard Biener <rguenther@suse.de>
14347 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14348 TREE_PUBLIC and DECL_EXTERNAL decls.
14350 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14352 * varasm.c (set_implicit_section): New function.
14353 (resolve_unique_section): Use it to set implicit section
14355 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14356 (default_function_section): Likewise.
14357 (decl_binds_to_current_def_p): Constify argument.
14358 * varasm.h (decl_binds_to_current_def_p): Update prototype.
14359 * asan.c (asan_protect_global): Use
14360 symtab_get_node (decl)->implicit_section.
14361 * symtab.c (dump_symtab_base): Dump implicit sections.
14362 (verify_symtab_base): Verify sanity of sectoins and comdats.
14363 (symtab_resolve_alias): Alias share the section of its target.
14364 (set_section_1): New function.
14365 (symtab_node::set_section): Move here, recurse to aliases.
14366 (verify_symtab): Check for duplicated symtab lists.
14367 * tree-core.h (implicit_section_name_p): Remove.
14368 * tree-vect-data-refs.c: Include varasm.h.
14369 (vect_can_force_dr_alignment_p): Fix conditional on when
14370 decl bints to current definition; use
14371 symtab_get_node (decl)->implicit_section.
14372 * cgraph.c (cgraph_make_node_local_1): Fix section set.
14373 * cgraph.h (struct symtab_node): Add implicit_section.
14374 (set_section): Rename to ...
14375 (set_section_for_node): ... this one.
14376 (set_section): Declare.
14377 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14378 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14379 input_overwrite_node, input_varpool_node): Stream implicit_section.
14380 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14381 removal; it will fail in LTO.
14383 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14385 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14386 Change second alternative type to f_mcr.
14387 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14388 and 12th alternatives' types to f_mcr and f_mrc.
14389 (*movdi_aarch64): Same for 12th and 13th alternatives.
14390 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14391 (aarch64_movtilow_tilow): Change type to fmov.
14393 2014-06-10 Jiong Wang <jiong.wang@arm.com>
14395 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14396 (aarch64_save_or_restore_callee_save_registers): Fix layout.
14398 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14400 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14402 (aarch64_sqrdmulh_lane<mode>): Likewise.
14403 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14404 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14405 (aarch64_sqdmulh_laneq<mode>): New expander.
14406 (aarch64_sqrdmulh_laneq<mode>): Likewise.
14407 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14408 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14409 (aarch64_sqdmulh_lane<mode>): New expander.
14410 (aarch64_sqrdmulh_lane<mode>): Likewise.
14411 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14412 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14413 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14414 (aarch64_sqdmlal_laneq<mode>): Likewise.
14415 (aarch64_sqdmlsl_lane<mode>): Likewise.
14416 (aarch64_sqdmlsl_laneq<mode>): Likewise.
14417 (aarch64_sqdmlal2_lane<mode>): Likewise.
14418 (aarch64_sqdmlal2_laneq<mode>): Likewise.
14419 (aarch64_sqdmlsl2_lane<mode>): Likewise.
14420 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14421 (aarch64_sqdmull_lane<mode>): Likewise.
14422 (aarch64_sqdmull_laneq<mode>): Likewise.
14423 (aarch64_sqdmull2_lane<mode>): Likewise.
14424 (aarch64_sqdmull2_laneq<mode>): Likewise.
14426 2014-06-10 Richard Biener <rguenther@suse.de>
14428 PR tree-optimization/61438
14429 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14430 (eliminate_dom_walker::before_dom_children): Only try to inhibit
14431 insertion of IVs if running PRE.
14432 (eliminate): Adjust.
14433 (pass_pre::execute): Likewise.
14434 (pass_fre::execute): Likewise.
14436 2014-06-10 Richard Biener <rguenther@suse.de>
14438 PR middle-end/61456
14439 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14440 Do not use the main variant for the type comparison.
14441 (ncr_compar): Likewise.
14442 (nonoverlapping_component_refs_p): Likewise.
14444 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
14446 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14447 REG_CFA_RESTORE mode.
14449 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
14451 * config/i386/i386.c (expand_vec_perm_pblendv): New.
14452 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14453 expand_vec_perm_pblendv.
14455 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14457 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14459 Simplify description of __crc32d and __crc32cd intrinsics.
14460 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14463 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
14466 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14467 * config.in: Regenerate.
14468 * configure: Likewise.
14470 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14472 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14474 (intersect_static_var_sets): Remove.
14475 (propagate): Do not prune local statics.
14477 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14480 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14481 Set lastprivate_firstprivate even if omp_private_outer_ref
14482 langhook returns true.
14483 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14484 langhook, call unshare_expr on new_var and call
14485 build_outer_var_ref to get the last argument.
14487 2014-06-10 Marek Polacek <polacek@redhat.com>
14490 * doc/extend.texi: Add cindex for transparent_union.
14492 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14494 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14495 init_symbolic_number ().
14497 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
14499 PR middle-end/61141
14500 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14501 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14502 (verify_rtl_sharing): Likewise.
14504 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
14507 * tree.c (build_qualified_type): Use a canonical type for
14510 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14512 * config/arm/arm-modes.def: Remove XFmode.
14514 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
14517 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14518 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14519 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14520 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14521 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14522 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14523 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14524 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14525 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14527 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
14529 * tree-core.h (tree_decl_with_vis): Remove section_name.
14531 2014-06-09 Kito Cheng <kito@0xlab.org>
14533 * ira.c (ira): Don't call init_caller_save if LRA enabled
14534 since LRA use its own infrastructure to handle that.
14536 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14538 * symtab.c (dump_symtab_base): Update dumping.
14539 (symtab_make_decl_local): Clear only DECL_COMDAT.
14540 * tree-vect-data-refs.c (Check that variable is static before
14541 tampering with sections.
14542 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14543 (cgraph_create_virtual_clone): Likewise.
14544 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14545 (decl_section_name, set_decl_section_name): New accessors.
14546 (find_decls_types_r): Do not walk section name
14547 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14548 (decl_comdat_group, decl_comdat_group_id): Constify.
14549 (decl_section_name, set_decl_section_name): Update.
14550 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14551 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14552 (cgraph_make_node_local_1): Clear section and comdat group.
14553 * cgraph.h (set_comdat_group): Sanity check.
14554 (get_section, set_section): New.
14555 * ipa-comdats.c (ipa_comdats): Use get_section.
14556 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14557 * lto-streamer-out.c: Do not follow section names.
14558 * c-family/c-common.c (handle_section_attribute): Update.
14559 * lto-cgraph.c (lto_output_node): Output section.
14560 (lto_output_varpool_node): Likewise.
14561 (read_comdat_group): Rename to ...
14562 (read_identifier): ... this one.
14563 (read_string_cst): New function.
14564 (input_node, input_varpool_node): Input section names.
14565 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14566 (new_emutls_decl): Update.
14567 (secname_for_decl): Check section names only of static vars.
14568 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14569 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14570 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14571 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14572 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14573 * config/mcore/mcore.c (mcore_unique_section): Likewise.
14574 * config/mips/mips.c (mips16_build_function_stub): Likewise.
14575 * config/v850/v850.c (v850_insert_attributes): Likewise.
14576 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14578 (h8300_handle_tiny_data_attribute): Likewise.
14579 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14580 (bfin_handle_l2_attribute): Likewise.
14582 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14584 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14585 remove static initializer.
14587 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14589 * varasm.c (use_blocks_for_decl_p): Check symbol table
14590 instead of alias attribute.
14591 (place_block_symbol): Recurse on aliases.
14593 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14595 * ipa-visibility.c: Include varasm.h
14596 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14598 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14600 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14601 outputting aliases.
14603 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
14605 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14606 from test_insn into GGC space escape via SET_SRC.
14608 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
14610 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14611 call statement, if any.
14612 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14613 statements, if any. Tidy up.
14615 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14618 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14619 iterators, VSX_D that handles 64-bit types, and VSX_LE that
14620 handles swapping the two 64-bit double words on little endian
14621 systems. Include V1TImode and optionally TImode in VSX_LE so that
14622 these types are properly swapped. Change all of the insns and
14623 splits that do the 64-bit swaps to use VSX_LE.
14624 (vsx_le_perm_load_<mode>): Likewise.
14625 (vsx_le_perm_store_<mode>): Likewise.
14626 (splitters for little endian memory operations): Likewise.
14627 (vsx_xxpermdi2_le_<mode>): Likewise.
14628 (vsx_lxvd2x2_le_<mode>): Likewise.
14629 (vsx_stxvd2x2_le_<mode>): Likewise.
14631 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
14634 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14635 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14636 and corresponding splitters. Zero extend general register
14637 or memory input operand to XMM temporary. Enable for
14638 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14639 (floatunssi<mode>2): Update expander predicate.
14641 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
14643 PR rtl-optimization/61325
14644 * lra-constraints.c (process_address_1): Check scale equal to one
14645 to prevent transformation: base + scale * index => base + new_reg.
14647 2014-06-06 Richard Biener <rguenther@suse.de>
14649 PR tree-optimization/59299
14650 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14652 (nearest_common_dominator_of_uses): Likewise.
14653 (statement_sink_location): Adjust. Support sinking loads.
14655 2014-06-06 Martin Jambor <mjambor@suse.cz>
14657 * ipa-prop.c (get_place_in_agg_contents_list): New function.
14658 (build_agg_jump_func_from_list): Likewise.
14659 (determine_known_aggregate_parts): Renamed to
14660 determine_locally_known_aggregate_parts. Moved some functionality
14661 to the two functions above, removed bound checks.
14663 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
14665 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14666 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14667 (aarch64_progress_pointer): Likewise.
14668 (aarch64_copy_one_part_and_move_pointers): Likewise.
14669 (aarch64_expand_movmen): Likewise.
14670 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14671 * config/aarch64/aarch64.md (movmem<mode>): New.
14673 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
14675 * targhooks.c (default_add_stmt_cost): Call target specific
14676 hook instead of default one.
14678 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14680 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14681 endianness instead of host endianness.
14682 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14685 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14688 * function.c (instantiate_decls): Process the saved static chain.
14689 (expand_function_start): If not optimizing, save the static chain
14691 * tree-nested.c (convert_all_function_calls): Always create the static
14692 chain for nested functions if not optimizing.
14694 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14696 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
14698 2014-06-06 Richard Biener <rguenther@suse.de>
14700 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
14701 (construct_init_block): Likewise.
14702 (construct_exit_block): Likewise.
14703 (pass_expand::execute): Likewise.
14704 * graphite.c (graphite_transforms): Replace check for current_loops
14705 with a check for > 1 loops.
14706 (pass_graphite_transforms::execute): Adjust.
14707 * ipa-split.c (split_function): Remove check for current_loops.
14708 * omp-low.c (expand_parallel_call): Likewise.
14709 (expand_omp_for_init_counts): Likewise.
14710 (extract_omp_for_update_vars): Likewise.
14711 (expand_omp_for_generic): Likewise.
14712 (expand_omp_sections): Likewise.
14713 (expand_omp_target): Likewise.
14714 * tracer.c (tail_duplicate): Likewise.
14715 (pass_tracer::execute): Likewise.
14716 * trans-mem.c (expand_transaction): Likewise.
14717 * tree-complex.c (expand_complex_div_wide): Likewise.
14718 * tree-eh.c (lower_resx): Likewise.
14719 (cleanup_empty_eh_merge_phis): Likewise.
14720 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
14721 current_loops with a check for > 1 loops.
14722 (pass_predcom::execute): Adjust.
14723 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
14724 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
14725 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
14726 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
14727 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14728 * tree-switch-conversion.c (process_switch): Likewise.
14729 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14730 * tree-vrp.c (vrp_visit_phi_node): Likewise.
14731 (execute_vrp): Likewise.
14732 * ubsan.c (ubsan_expand_null_ifn): Likewise.
14734 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14736 * rtl.h (insn_location): Declare.
14737 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
14738 with UNKNOWN_LOCATION.
14739 * emit-rtl.c (insn_location): New function.
14740 * final.c (notice_source_line): Check that the instruction has a
14741 location before retrieving it and use insn_location.
14742 * modulo-sched.c (loop_single_full_bb_p): Likewise.
14743 * print-rtl.c (print_rtx): Likewise.
14745 2014-06-06 Richard Biener <rguenther@suse.de>
14747 * passes.def: Move 2nd VRP pass before phi-only-cprop.
14749 2014-06-06 Christian Bruel <christian.bruel@st.com>
14751 PR tree-optimization/43934
14752 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
14755 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
14757 * ira-lives.c (single_reg_class): Add missing break. Explicitly
14758 return NO_REGS for extra address and memory constraints. Handle
14759 operands that match (or are equivalent to something that matches)
14760 extra constant constraints. Ignore other non-register operands.
14762 2014-06-06 Alan Modra <amodra@gmail.com>
14765 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
14766 * doc/tm.texi: Regenerate.
14767 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
14768 Use throughout in place of REG_PARM_STACK_SPACE.
14769 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
14770 "incoming" param. Pass to rs6000_function_parms_need_stack.
14771 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
14772 prototype_p when incoming. Use function decl when incoming
14773 to handle K&R style functions.
14774 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
14775 (INCOMING_REG_PARM_STACK_SPACE): Define.
14777 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14780 * cfgexpand.c (expand_debug_expr): Use address space of nested
14781 TREE_TYPE for ADDR_EXPR and MEM_REF.
14783 2014-06-05 Jeff Law <law@redhat.com>
14785 PR tree-optimization/61289
14786 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
14787 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
14788 looking for those which match LHS. All callers changed.
14789 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
14790 parameters and code which manipulated them. All callers changed.
14791 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
14792 and DST_MAP parameters. Simplify invalidation code by just calling
14793 invalidate_equivalences. All callers changed.
14794 (thread_across_edge): Simplify now that we don't need to maintain
14795 the map of equivalences to invalidate.
14797 2014-06-05 Kai Tietz <ktietz@redhat.com>
14798 Richard Henderson <rth@redhat.com>
14801 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
14802 checking for !TARGET_X32.
14803 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
14804 (sibcall_intern): New define_insn, plus required peepholes.
14805 (sibcall_pop_intern): Likewise.
14806 (sibcall_value_intern): Likewise.
14807 (sibcall_value_pop_intern): Likewise.
14809 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
14811 * tree-inline.c (tree_function_versioning): Check DF info existence
14812 before accessing it.
14814 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14816 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
14818 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
14819 aarch64_frame hard_fp_offset and frame_size.
14820 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
14821 frame_size; remove original_frame_size.
14822 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
14823 (aarch64_initial_elimination_offset): Remove frame_size and
14824 offset. Use aarch64_frame frame_size.
14826 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14827 Jiong Wang <jiong.wang@arm.com>
14828 Renlin <renlin.li@arm.com>
14830 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
14831 initialization of R30 offset. Update offset. Iterate core
14832 regisers upto X30. Remove X29, X30 specific code.
14834 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14835 Jiong Wang <jiong.wang@arm.com>
14837 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
14838 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
14839 (aarch64_register_saved_on_entry): Adjust test.
14841 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14843 * config/aarch64/aarch64.h (machine_function): Move
14844 saved_varargs_size from here...
14845 (aarch64_frame): ... to here.
14847 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14848 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
14849 (aarch64_initial_elimination_offset)
14850 (aarch64_setup_incoming_varargs): Adjust location of
14851 saved_varargs_size.
14853 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14855 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
14858 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
14859 Prachi Godbole <Prachi.Godbole@imgtec.com>
14861 * config/mips/mips-cpus.def: Add definition for p5600. Updated
14862 mips32r5 entry to use PROCESSOR_P5600.
14863 * config/mips/mips-tables.opt: Regenerate.
14864 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
14865 * config/mips/mips.c (mips_fmadd_bypass): New function.
14866 (mips_rtx_cost_data): Add costs for p5600.
14867 (mips_issue_rate): Add support for p5600.
14868 (mips_multipass_dfa_lookahead): Likewise.
14869 * config/mips/mips.h (TUNE_P5600): New define.
14870 (TUNE_MACC_CHAINS): Add TUNE_P5600.
14871 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
14872 * config/mips/mips.md: Include p5600.md.
14873 (processor): Add p5600.
14874 * config/mips/p5600.md: New file.
14876 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
14878 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
14879 * config/i386/predicates.md (palignr_operand): New.
14880 Indicates if permutation is suitable for palignr instruction.
14882 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
14884 PR tree-optimization/61319
14885 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14886 stmt belongs to loop.
14888 2014-06-05 Richard Biener <rguenther@suse.de>
14890 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
14891 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
14892 (lookup_tmp_var): Adjust.
14893 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
14895 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14897 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
14899 2014-06-05 Marek Polacek <polacek@redhat.com>
14902 * doc/invoke.texi: Document -Wlogical-not-parentheses.
14904 2014-06-04 Tom de Vries <tom@codesourcery.com>
14906 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
14909 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
14911 PR tree-optimization/61385
14912 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
14914 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
14916 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
14917 changed to use fatal_error.
14918 (main): Ensure lto_wrapper_cleanup is run atexit.
14920 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14922 * lra-constraints.c (valid_address_p): Move earlier in file.
14923 (address_eliminator): New structure.
14924 (satisfies_memory_constraint_p): New function.
14925 (satisfies_address_constraint_p): Likewise.
14926 (process_alt_operands, process_address, curr_insn_transform): Use them.
14928 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14930 * lra-int.h (lra_static_insn_data): Make operand_alternative a
14932 (target_lra_int, default_target_lra_int, this_target_lra_int)
14933 (op_alt_data): Delete.
14934 * lra.h (lra_init): Delete.
14935 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
14936 (init_insn_code_data_once): Remove op_alt_data handling.
14937 (finish_insn_code_data_once): Likewise.
14938 (init_op_alt_data): Delete.
14939 (get_static_insn_data): Initialize operand_alternative to null.
14940 (free_insn_recog_data): Cast operand_alternative before freeing it.
14941 (setup_operand_alternative): Take the operand_alternative as
14942 parameter and assume it isn't already cached in the static
14944 (lra_set_insn_recog_data): Update accordingly.
14945 (lra_init): Delete.
14946 * ira.c (ira_init): Don't call lra_init.
14947 * target-globals.h (this_target_lra_int): Declare.
14948 (target_globals): Remove lra_int.
14949 (restore_target_globals): Update accordingly.
14950 * target-globals.c: Don't include lra-int.h.
14951 (default_target_globals, save_target_globals): Remove lra_int.
14953 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14955 * recog.h (operand_alternative): Convert reg_class, reject,
14956 matched and matches into bitfields.
14957 (preprocess_constraints): New overload.
14958 (preprocess_insn_constraints): New function.
14959 (preprocess_constraints): Take the insn as parameter.
14960 (recog_op_alt): Change into a pointer.
14961 (target_recog): Add x_op_alt.
14962 * recog.c (asm_op_alt): New variable.
14963 (recog_op_alt): Change into a pointer.
14964 (preprocess_constraints): New overload, replacing the old function
14965 definition with one that doesn't use global state.
14966 (preprocess_insn_constraints): New function.
14967 (preprocess_constraints): Use them. Take the insn as parameter.
14968 Use asm_op_alt for asms.
14969 (recog_init): Free existing x_op_alt entries.
14970 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
14972 (make_early_clobber_and_input_conflicts): Likewise.
14973 (process_bb_node_lives): Pass the insn to process_constraints.
14974 * reg-stack.c (check_asm_stack_operands): Likewise.
14975 (subst_asm_stack_regs): Likewise.
14976 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14977 * regrename.c (build_def_use): Likewise.
14978 * sched-deps.c (sched_analyze_insn): Likewise.
14979 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
14980 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14981 (note_invalid_constants): Likewise.
14982 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14983 (ix86_legitimate_combined_insn): Make operand_alternative pointer
14986 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14988 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
14989 * ira-lives.c (check_and_make_def_conflict): Check for disabled
14991 (make_early_clobber_and_input_conflicts): Likewise.
14992 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14994 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14996 * recog.h (alternative_class): New function.
14997 (which_op_alt): Return a const recog_op_alt.
14998 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
14999 (subst_asm_stack_regs): Likewise.
15000 * config/arm/arm.c (note_invalid_constants): Likewise.
15001 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
15002 the operand_alternative; use alternative class instead.
15003 * sel-sched.c (get_reg_class): Likewise.
15004 * regrename.c (build_def_use): Likewise.
15005 (hide_operands, restore_operands, record_out_operands): Update type
15008 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15010 * recog.h (recog_op_alt): Convert to a flat array.
15011 (which_op_alt): New function.
15012 * recog.c (recog_op_alt): Convert to a flat array.
15013 (preprocess_constraints): Update accordingly, grouping all
15014 operands of the same alternative together, rather than the
15016 * ira-lives.c (check_and_make_def_conflict): Likewise.
15017 (make_early_clobber_and_input_conflicts): Likewise.
15018 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15019 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15020 (subst_asm_stack_regs): Likewise.
15021 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15022 * regrename.c (hide_operands, record_out_operands): Likewise.
15023 (build_def_use): Likewise.
15024 * sel-sched.c (get_reg_class): Likewise.
15025 * config/arm/arm.c (note_invalid_constants): Likewise.
15027 2014-06-04 Jason Merrill <jason@redhat.com>
15031 * gimplify.c (gimplify_arg): Non-static.
15032 * gimplify.h: Declare it.
15034 2014-06-04 Richard Biener <rguenther@suse.de>
15036 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15037 TREE_PUBLIC and DECL_EXTERNAL decls.
15039 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
15041 * regcprop.c (copyprop_hardreg_forward_1): Account for
15042 HARD_REGNO_CALL_PART_CLOBBERED.
15044 2014-06-04 Richard Biener <rguenther@suse.de>
15046 * configure.ac: Check whether the underlying type of int64_t
15047 is long or long long.
15048 * configure: Regenerate.
15049 * config.in: Likewise.
15050 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
15051 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15053 2014-06-04 Richard Biener <rguenther@suse.de>
15055 PR tree-optimization/60098
15056 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
15058 (dse_optimize_stmt): Simplify, now that we found a kill
15061 2014-06-04 Richard Biener <rguenther@suse.de>
15063 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
15064 of accesses with non-invariant address.
15066 2014-06-04 Martin Liska <mliska@suse.cz>
15068 * cgraph.h (cgraph_make_wrapper): New function introduced.
15069 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
15070 * ipa-inline.h (inline_analyze_function): The function is global.
15071 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
15073 2014-06-04 Martin Liska <mliska@suse.cz>
15075 * tree.h (private_lookup_attribute_starting): New function.
15076 (lookup_attribute_starting): Likewise.
15077 * tree.c (private_lookup_attribute_starting): Likewise.
15079 2014-06-04 Martin Liska <mliska@suse.cz>
15081 * cgraph.h (expand_thunk): New argument added.
15082 (address_taken_from_non_vtable_p): New global function.
15083 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
15084 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
15085 * cgraphunit.c (analyze_function): Likewise.
15086 (assemble_thunks_and_aliases): Argument added to call.
15087 (expand_thunk): New argument forces to produce GIMPLE thunk.
15089 2014-06-04 Martin Liska <mliska@suse.cz>
15091 * coverage.h (coverage_compute_cfg_checksum): Argument added.
15092 * coverage.c (coverage_compute_cfg_checksum): Likewise.
15093 * profile.c (branch_prob): Likewise.
15095 2014-06-04 Martin Jambor <mjambor@suse.cz>
15098 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15099 handler for switch on an ipa_ref_use enum.
15100 * ipa-reference.c (analyze_function): Likewise.
15102 2014-06-04 Kai Tietz <ktietz@redhat.com>
15104 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15105 from old call-instruction.
15107 2014-06-04 Bin Cheng <bin.cheng@arm.com>
15109 * config/aarch64/aarch64.c (aarch64_classify_address)
15110 (aarch64_legitimize_reload_address): Support full addressing modes
15112 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15113 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15115 2014-06-03 Andrew Pinski <apinski@cavium.com>
15117 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15120 2014-06-03 Andrew Pinski <apinski@cavium.com>
15122 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15123 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15125 2014-06-03 Kai Tietz <ktietz@redhat.com>
15127 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15130 2014-06-03 Dehao Chen <dehao@google.com>
15132 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15135 2014-06-03 Marek Polacek <polacek@redhat.com>
15138 * doc/invoke.texi: Document -Wswitch-bool.
15139 * function.c (stack_protect_epilogue): Cast controlling expression of
15141 * gengtype.c (walk_type): Generate switch expression with its
15142 controlling expression cast to int.
15144 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
15146 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15148 * config/avr/avr-tables.opt: Regenerate.
15149 * config/avr/t-multilib: Regenerate.
15150 * doc/avr-mmcu.texi: Regenerate.
15152 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
15153 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15155 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15156 (ata6617c, ata664251): Add new avr35 devices.
15157 (ata6612c): Add new avr4 device.
15158 (ata6613c, ata6614q): Add new avr5 devices.
15159 * config/avr/avr-tables.opt: Regenerate.
15160 * config/avr/t-multilib: Regenerate.
15161 * doc/avr-mmcu.texi: Regenerate.
15163 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15165 * gcc/config/aarch64/aarch64-builtins.c
15166 (aarch64_types_binop_ssu_qualifiers): New static data.
15167 (TYPES_BINOP_SSU): Define.
15168 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15169 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15170 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15171 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15172 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15173 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15174 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15175 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15176 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15177 suffix to builtin function name, remove cast.
15178 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15179 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15180 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15182 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15184 * gcc/config/aarch64/aarch64-builtins.c
15185 (aarch64_types_binop_uus_qualifiers,
15186 aarch64_types_shift_to_unsigned_qualifiers,
15187 aarch64_types_unsigned_shiftacc_qualifiers): Define.
15188 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15189 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15190 sqshlu_n, uqshl_n): Update qualifiers.
15191 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15192 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15193 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15194 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15195 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15196 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15197 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15198 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15199 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15200 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15201 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15202 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15203 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15204 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15205 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15206 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15207 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15208 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15209 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15210 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15211 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15212 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15213 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15214 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15215 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15216 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15217 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15219 2014-06-03 Teresa Johnson <tejohnson@google.com>
15221 * tree-sra.c (modify_function): Record caller nodes after rebuild.
15223 2014-06-02 Jason Merrill <jason@redhat.com>
15226 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15228 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15230 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15233 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15235 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15237 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15238 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15239 * config/aarch64/iterators.md (REVERSE): New iterator.
15240 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15241 (rev_op): New int_attribute.
15242 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15243 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15244 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15245 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15246 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15247 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15248 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15249 Replace temporary __asm__ with __builtin_shuffle.
15251 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15253 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15255 * config/mips/mips-tables.opt: Regenerate.
15256 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15257 to use mips_isa_rev rather than ISA_MIPS32R2.
15258 * config/mips/mips.h (ISA_MIPS32R3): New define.
15259 (ISA_MIPS32R5): New define.
15260 (ISA_MIPS64R3): New define.
15261 (ISA_MIPS64R5): New define.
15262 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15263 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15264 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15266 (MIPS_ISA_SYNCI_SPEC): Likewise.
15267 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15268 (LINK_SPEC): Added mips32r3 and mips32r5.
15269 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15270 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15271 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15272 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15273 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15274 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15275 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15277 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15279 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15281 * config/mips/mips.opt (mxpa): New option.
15282 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15285 2014-06-03 Martin Jambor <mjambor@suse.cz>
15288 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15291 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
15293 PR tree-optimization/61328
15294 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15295 initialization from find_bswap_or_nop_1.
15296 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15297 in source_expr2 before using the size value the function sets. Also
15298 make use of init_symbolic_number () in both the old place and
15299 find_bswap_or_nop_load () to avoid reading uninitialized memory when
15300 doing recursion in the GIMPLE_BINARY_RHS case.
15302 2014-06-03 Richard Biener <rguenther@suse.de>
15304 PR tree-optimization/61383
15305 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15308 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
15310 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15311 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15312 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15313 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15315 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15316 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15317 * system.h: ...here and make it unconditional.
15318 * target.def (conditional_register_usage): Mention
15319 define_register_constraint instead of old-style constraint macros.
15320 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15321 * doc/tm.texi: Regenerate.
15322 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15323 protected by !USE_MD_CONSTRAINTS.
15324 * config/frv/frv.md: Remove quote from old version of documentation.
15325 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15326 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15327 CONST_DOUBLE_OK_FOR_LETTER.
15328 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15330 2014-06-02 Andrew Pinski <apinski@cavium.com>
15332 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15333 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15334 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15335 file whose name depends on -mabi= and -mbig-endian.
15336 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15337 Handle LP64 better and handle ilp32 too.
15338 (MULTILIB_OPTIONS): Delete.
15339 (MULTILIB_DIRNAMES): Delete.
15341 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
15343 * expr.h: Remove prototypes of functions defined in builtins.c.
15344 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15345 Remove prototypes of functions defined in builtins.c.
15346 * builtins.h: Update prototype list to include all exported functions.
15347 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15348 no_c99_libc_has_function): Move to targhooks.c
15349 (build_string_literal, build_call_expr_loc_array,
15350 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15352 (expand_builtin_object_size, fold_builtin_object_size): Make static.
15353 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15354 no_c99_libc_has_function): Relocate from builtins.c.
15355 * tree.c: Include builtins.h.
15356 (build_call_expr_loc_array, build_call_expr_loc_vec,
15357 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15359 * fold-const.h (fold_fma): Move prototype to builtins.h.
15360 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15361 * asan.c: Include builtins.h.
15362 * cfgexpand.c: Likewise.
15363 * convert.c: Likewise.
15364 * emit-rtl.c: Likewise.
15365 * except.c: Likewise.
15366 * expr.c: Likewise.
15367 * fold-const.c: Likewise.
15368 * gimple-fold.c: Likewise.
15369 * gimple-ssa-strength-reduction.c: Likewise.
15370 * gimplify.c: Likewise.
15371 * ipa-inline.c: Likewise.
15372 * ipa-prop.c: Likewise.
15373 * lto-streamer-out.c: Likewise.
15374 * stmt.c: Likewise.
15375 * tree-inline.c: Likewise.
15376 * tree-object-size.c: Likewise.
15377 * tree-sra.c: Likewise.
15378 * tree-ssa-ccp.c: Likewise.
15379 * tree-ssa-forwprop.c: Likewise.
15380 * tree-ssa-loop-ivcanon.c: Likewise.
15381 * tree-ssa-loop-ivopts.c: Likewise.
15382 * tree-ssa-math-opts.c: Likewise.
15383 * tree-ssa-reassoc.c: Likewise.
15384 * tree-ssa-threadedge.c: Likewise.
15385 * tree-streamer-in.c: Likewise.
15386 * tree-vect-data-refs.c: Likewise.
15387 * tree-vect-patterns.c: Likewise.
15388 * tree-vect-stmts.c: Likewise.
15389 * config/aarch64/aarch64.c: Likewise.
15390 * config/alpha/alpha.c: Likewise.
15391 * config/arc/arc.c: Likewise.
15392 * config/arm/arm.c: Likewise.
15393 * config/avr/avr.c: Likewise.
15394 * config/bfin/bfin.c: Likewise.
15395 * config/c6x/c6x.c: Likewise.
15396 * config/cr16/cr16.c: Likewise.
15397 * config/cris/cris.c: Likewise.
15398 * config/epiphany/epiphany.c: Likewise.
15399 * config/fr30/fr30.c: Likewise.
15400 * config/frv/frv.c: Likewise.
15401 * config/h8300/h8300.c: Likewise.
15402 * config/i386/i386.c: Likewise.
15403 * config/i386/winnt.c: Likewise.
15404 * config/ia64/ia64.c: Likewise.
15405 * config/iq2000/iq2000.c: Likewise.
15406 * config/lm32/lm32.c: Likewise.
15407 * config/m32c/m32c.c: Likewise.
15408 * config/m32r/m32r.c: Likewise.
15409 * config/m68k/m68k.c: Likewise.
15410 * config/mcore/mcore.c: Likewise.
15411 * config/mep/mep.c: Likewise.
15412 * config/microblaze/microblaze.c: Likewise.
15413 * config/mips/mips.c: Likewise.
15414 * config/mmix/mmix.c: Likewise.
15415 * config/mn10300/mn10300.c: Likewise.
15416 * config/moxie/moxie.c: Likewise.
15417 * config/msp430/msp430.c: Likewise.
15418 * config/nds32/nds32.c: Likewise.
15419 * config/pa/pa.c: Likewise.
15420 * config/pdp11/pdp11.c: Likewise.
15421 * config/picochip/picochip.c: Likewise.
15422 * config/rl78/rl78.c: Likewise.
15423 * config/rs6000/rs6000.c: Likewise.
15424 * config/rx/rx.c: Likewise.
15425 * config/s390/s390.c: Likewise.
15426 * config/score/score.c: Likewise.
15427 * config/sh/sh.c: Likewise.
15428 * config/sparc/sparc.c: Likewise.
15429 * config/spu/spu.c: Likewise.
15430 * config/stormy16/stormy16.c: Likewise.
15431 * config/tilegx/tilegx.c: Likewise.
15432 * config/tilepro/tilepro.c: Likewise.
15433 * config/v850/v850.c: Likewise.
15434 * config/vax/vax.c: Likewise.
15435 * config/xtensa/xtensa.c: Likewise.
15437 2014-06-02 Jeff Law <law@redhat.com>
15439 PR rtl-optimization/61094
15440 * ree.c (combine_reaching_defs): Do not reextend an insn if it
15441 was marked as do_no_reextend. If a copy is needed to eliminate
15442 an extension, then mark it as do_not_reextend.
15444 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
15446 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15448 2014-06-02 Richard Henderson <rth@redhat.com>
15451 * config/alpha/alpha.c (print_operand_address): Allow symbolic
15452 addresses inside asms. Use output_operand_lossage instead of
15455 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
15458 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15459 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15461 2014-06-02 Tom de Vries <tom@codesourcery.com>
15463 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15464 case that x has VOIDmode.
15466 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
15468 * varasm.c (copy_constant): Delete function.
15469 (build_constant_desc): Don't call it.
15471 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15474 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15475 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15476 with immediate_operand.
15478 2014-06-02 Andreas Schwab <schwab@suse.de>
15480 * config/ia64/ia64.c
15481 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15482 pending_data_specs first.
15484 2014-06-02 Richard Biener <rguenther@suse.de>
15486 PR tree-optimization/61378
15487 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15488 valueized_anything.
15490 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
15492 * config/i386/constraints.md (Bw): Rename from 'w'.
15493 (Bz): Rename from 'z'.
15494 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15496 2014-06-01 Kai Tietz <ktietz@redhat.com>
15499 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15500 * config/i386/i386.md (sibcall_insn_operand): Use Bs
15501 instead of m constraint.
15503 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
15505 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15506 a separate alternative where the scratch operand 2 is marked as
15509 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
15511 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15512 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15513 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15514 and __builtins_arm_get_fpscr.
15515 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15516 __builtins_arm_get_fpscr.
15517 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15518 __builtins_arm_ldfpscr.
15519 (arm_atomic_assign_expand_fenv): New function.
15520 * config/arm/vfp.md (set_fpscr): New pattern.
15521 (get_fpscr) : Likewise.
15522 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15524 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15525 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15527 2014-05-30 Jakub Jelinek <jakub@redhat.com>
15529 * asan.c (report_error_func): Add SLOW_P argument, use
15530 BUILT_IN_ASAN_*_N if set.
15531 (build_check_stmt): Likewise.
15532 (instrument_derefs): If T has insufficient alignment,
15533 force same handling as for odd sizes.
15535 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15536 BUILT_IN_ASAN_REPORT_STORE_N): New.
15537 * asan.c (struct asan_mem_ref): Change access_size type to
15539 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15540 update_mem_ref_hash_table): Likewise.
15541 (asan_mem_ref_hasher::hash): Hash in a HWI.
15542 (report_error_func): Change size_in_bytes argument to HWI.
15543 Use *_N builtins if size_in_bytes is larger than 16 or not power of
15545 (build_shadow_mem_access): New function.
15546 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
15547 Handle size_in_bytes not power of two or larger than 16.
15548 (instrument_derefs): Don't give up if size_in_bytes is not
15549 power of two or is larger than 16.
15551 2014-05-30 Kai Tietz <ktietz@redhat.com>
15554 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15555 for sibling-tail-calls.
15556 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15558 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15559 (sibcall_insn_operand): Add check for sibcall_memory_operand.
15561 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15563 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15564 * config/avr/avr-tables.opt: Regenerate.
15565 * config/avr/t-multilib: Regenerate.
15566 * doc/avr-mmcu.texi: Regenerate.
15568 2014-05-30 Ian Lance Taylor <iant@google.com>
15570 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15573 2014-05-30 Tom de Vries <tom@codesourcery.com>
15575 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15578 2014-05-30 Tom de Vries <tom@codesourcery.com>
15580 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15581 * lra.c (initialize_lra_reg_info_element): Add init of
15582 actual_call_used_reg_set field.
15583 (lra): Call lra_create_live_ranges before lra_inheritance for
15585 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15587 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15588 instead of call_used_reg_set for -fuse-caller-save.
15589 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15591 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15593 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15595 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15597 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15599 * ira.c (ira_get_dup_out_num): Check for output operands at
15600 the start of the loop. Handle cases where an included alternative
15601 follows an excluded one.
15603 2014-05-29 Mike Stump <mikestump@comcast.net>
15606 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15607 post ld passes when lto is used.
15609 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
15611 PR rtl-optimization/61325
15612 * lra-constraints.c (process_address): Rename to process_address_1.
15613 (process_address): New function.
15615 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
15617 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15618 TYPES_BINOPV): New static data.
15619 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15621 * config/aarch64/aarch64-simd.md (aarch64_ext,
15622 aarch64_im_lane_boundsi): New patterns.
15623 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15625 (aarch64_evpc_ext): New function.
15627 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15629 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15630 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15631 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15632 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15633 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15635 2014-05-29 Tom de Vries <tom@codesourcery.com>
15637 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15639 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
15640 Richard Sandiford <rdsandiford@googlemail.com>
15642 * arm/iterators.md (shiftable_ops): New code iterator.
15643 (t2_binop0, arith_shift_insn): New code attributes.
15644 * arm/predicates.md (shift_nomul_operator): New predicate.
15645 * arm/arm.md (insn_enabled): Delete.
15646 (enabled): Remove insn_enabled test.
15647 (*arith_shiftsi): Delete. Replace with ...
15648 (*<arith_shift_insn>_multsi): ... new pattern.
15649 (*<arith_shift_insn>_shiftsi): ... new pattern.
15650 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15652 2014-05-29 Radovan Obradovic <robradovic@mips.com>
15653 Tom de Vries <tom@codesourcery.com>
15655 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15656 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15658 (mips_split_call): Use POST_CALL_TMP_REG.
15659 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15661 2014-05-29 Tom de Vries <tom@codesourcery.com>
15663 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15664 with #ifdef STACK_REGS.
15666 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
15668 * varasm.c (get_variable_section): Walk aliases.
15669 (place_block_symbol): Walk aliases.
15671 2014-05-28 Tom de Vries <tom@codesourcery.com>
15674 2014-05-28 Tom de Vries <tom@codesourcery.com>
15676 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15677 * lra.c (initialize_lra_reg_info_element): Add init of
15678 actual_call_used_reg_set field.
15679 (lra): Call lra_create_live_ranges before lra_inheritance for
15681 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15683 * lra-constraints.c (need_for_call_save_p): Use
15684 actual_call_used_reg_set instead of call_used_reg_set for
15686 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15688 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15690 * doc/md.texi: Document that the % constraint character must
15691 be at the beginning of the string.
15692 * genoutput.c (validate_insn_alternatives): Check that '=',
15693 '+' and '%' only appear at the beginning of a constraint.
15694 * ira.c (commutative_constraint_p): Delete.
15695 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
15696 at the start of the string.
15697 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
15699 * config/arm/neon.md (bicdi3_neon): Likewise.
15700 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
15701 (slt_si, sltu_si): Likewise.
15702 * config/vax/vax.md (sbcdi3): Likewise.
15703 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
15704 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
15705 (mul64): Move '%' to beginning of constraint.
15706 * config/arm/arm.md (*xordi3_insn): Likewise.
15707 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
15708 (xorsi3): Likewise.
15710 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15712 * doc/md.texi: Document the restrictions on the "enabled" attribute.
15714 2014-05-28 Jason Merrill <jason@redhat.com>
15717 * cgraph.h (symtab_node::get_comdat_group_id): New.
15718 * cgraphunit.c (analyze_functions): Call it.
15719 * symtab.c (dump_symtab_node): Likewise.
15720 * tree.c (decl_comdat_group_id): New.
15721 * tree.h: Declare it.
15722 * lto-streamer-out.c (write_symbol): Use it.
15723 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
15725 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15727 PR bootstrap/PR61146
15728 * wide-int.cc: Do not include longlong.h when compiling with clang.
15730 2014-05-28 Richard Biener <rguenther@suse.de>
15732 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
15733 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
15734 (vrp_visit_assignment_or_call): Print less vertical space.
15735 (vrp_visit_stmt): Likewise.
15736 (vrp_visit_phi_node): Likewise. For a PHI argument with
15737 VR_VARYING range consider recording it as copy.
15739 2014-05-28 Richard Biener <rguenther@suse.de>
15742 2014-05-28 Richard Biener <rguenther@suse.de>
15744 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15746 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15748 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
15749 sufficiently aligned and an offset is used at the same time.
15750 (expand_expr_real_1): Likewise.
15752 2014-05-28 Richard Biener <rguenther@suse.de>
15754 PR middle-end/61045
15755 * fold-const.c (fold_comparison): When folding
15756 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
15757 the sign of the remaining constant operand stays the same.
15759 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
15761 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15762 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
15763 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
15765 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
15766 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
15767 (m32bit-doubles) Likewise.
15768 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
15769 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
15772 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15774 * configure.ac ($gcc_cv_ld_clearcap): New test.
15775 * configure: Regenerate.
15776 * config.in: Regenerate.
15777 * config/sol2.opt (mclear-hwcap): New option.
15778 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
15779 * config/sol2-clearcap.map: Moved here from
15780 testsuite/gcc.target/i386/clearcap.map.
15781 * config/sol2-clearcapv2.map: Move here from
15782 gcc.target/i386/clearcapv2.map.
15783 * config/t-sol2 (install): Depend on install-clearcap-map.
15784 (install-clearcap-map): New target.
15785 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
15788 2014-05-28 Richard Biener <rguenther@suse.de>
15790 * hwint.h (*_HALF_WIDE_INT*): Move to ...
15791 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
15792 ... here and remove the rest.
15793 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15795 2014-05-28 Richard Biener <rguenther@suse.de>
15797 PR tree-optimization/61335
15798 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
15799 new range fails, drop to varying.
15801 2014-05-28 Olivier Hainque <hainque@adacore.com>
15803 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
15804 (CPP_SPEC): Add entry for -mcpu=8548.
15805 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
15806 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
15808 2014-05-28 Tom de Vries <tom@codesourcery.com>
15810 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15811 * lra.c (initialize_lra_reg_info_element): Add init of
15812 actual_call_used_reg_set field.
15813 (lra): Call lra_create_live_ranges before lra_inheritance for
15815 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15817 * lra-constraints.c (need_for_call_save_p): Use
15818 actual_call_used_reg_set instead of call_used_reg_set for
15820 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15822 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15823 Tom de Vries <tom@codesourcery.com>
15825 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
15827 (@item -fuse-caller-save): New item.
15829 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15830 Tom de Vries <tom@codesourcery.com>
15832 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
15833 OPT_fuse_caller_save.
15835 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15836 Tom de Vries <tom@codesourcery.com>
15838 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
15839 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
15840 get_call_reg_set_usage.
15841 * resource.c (mark_set_resources, mark_target_live_regs): Use
15842 get_call_reg_set_usage.
15843 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
15845 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
15846 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
15847 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15848 * ira-build.c (ira_create_allocno): Init
15849 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15850 (create_cap_allocno, propagate_allocno_info)
15851 (propagate_some_info_from_allocno)
15852 (copy_info_to_removed_store_destinations): Handle
15853 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15854 * ira-costs.c (ira_tune_allocno_costs): Use
15855 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
15857 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15858 Tom de Vries <tom@codesourcery.com>
15860 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
15861 and function_used_regs_valid fields.
15862 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
15863 find_all_hard_reg_sets.
15864 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
15865 (get_call_reg_set_usage): New function.
15866 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
15867 * regs.h (get_call_reg_set_usage): Declare.
15869 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15872 * config/dbx.h (License): Add Runtime Library Exception.
15873 * config/newlib-stdint.h (License): Same.
15874 * config/rtems.h (License): Same
15875 * config/initfini-array.h (License): Same
15876 * config/v850/v850.h (License): Same.
15877 * config/v850/v850-opts.h (License): Same
15878 * config/v850/rtems.h (License): Same.
15880 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15883 * doc/extend.texi (Local Labels): Note that label differences are
15884 not supported for AVR.
15886 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15887 Olivier Hainque <hainque@adacore.com>
15889 * rtl.h (set_for_reg_notes): Declare.
15890 * emit-rtl.c (set_for_reg_notes): New function.
15891 (set_unique_reg_note): Use it.
15892 * optabs.c (add_equal_note): Likewise
15894 2014-05-27 Andrew Pinski <apinski@cavium.com>
15896 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
15897 Use <w> for the register in assembly template.
15898 (stack_protect_test): Use the mode of operands[0] for the result.
15899 (stack_protect_test_<mode>): Use <w> for the register
15900 in assembly template.
15902 2014-05-27 DJ Delorie <dj@redhat.com>
15904 * config/rx/rx.c (add_vector_labels): New.
15905 (rx_output_function_prologue): Call it.
15906 (rx_handle_func_attribute): Don't require empty arguments.
15907 (rx_handle_vector_attribute): New.
15908 (rx_attribute_table): Add "vector" attribute.
15909 * doc/extend.texi (interrupt, vector): Document new/changed
15910 RX-specific attributes.
15912 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
15914 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15916 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
15917 predicate to detect a negative quotient.
15919 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15921 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
15922 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
15923 Add X - Y CMP 0 to X CMP Y transformation.
15924 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
15926 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
15928 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
15931 2014-05-27 Steve Ellcey <sellcey@mips.com>
15933 * config/mips/mips.c: Add include of cgraph.h.
15935 2014-05-27 Richard Biener <rguenther@suse.de>
15937 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
15939 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
15942 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
15943 * config/arm/arm-cores.def (License): Same.
15944 * config/arm/arm-opts.h (License): Same.
15945 * config/arm/aout.h (License): Same.
15946 * config/arm/bpabi.h (License): Same.
15947 * config/arm/elf.h (License): Same.
15948 * config/arm/linux-elf.h (License): Same.
15949 * config/arm/linux-gas.h (License): Same.
15950 * config/arm/netbsd-elf.h (License): Same.
15951 * config/arm/uclinux-eabi.h (License): Same.
15952 * config/arm/uclinux-elf.h (License): Same.
15953 * config/arm/vxworks.h (License): Same.
15955 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15957 * config/arm/neon.md (neon_bswap<mode>): New pattern.
15958 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
15959 (arm_init_neon_builtins): Handle NEON_BSWAP.
15960 Define required type nodes.
15961 (arm_expand_neon_builtin): Handle NEON_BSWAP.
15962 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
15963 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
15964 * config/arm/iterators.md (VDQHSD): New mode iterator.
15966 2014-05-27 Richard Biener <rguenther@suse.de>
15968 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15969 Try using literal operands when comparing value-ranges failed.
15971 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15973 * ira.c (commutative_operand): Adjust for change to recog_data.
15974 [Missing from previous commit.]
15976 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15978 * system.h (TEST_BIT): New macro.
15979 * recog.h (alternative_mask): New type.
15980 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
15981 (recog_data_d): Replace alternative_enabled_p array with
15982 enabled_alternatives.
15983 (target_recog): New structure.
15984 (default_target_recog, this_target_recog): Declare.
15985 (get_enabled_alternatives, recog_init): Likewise.
15986 * recog.c (default_target_recog, this_target_recog): New variables.
15987 (get_enabled_alternatives): New function.
15988 (extract_insn): Use it.
15989 (recog_init): New function.
15990 (preprocess_constraints, constrain_operands): Adjust for change to
15992 * postreload.c (reload_cse_simplify_operands): Likewise.
15993 * reload.c (find_reloads): Likewise.
15994 * ira-costs.c (record_reg_classes): Likewise.
15995 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
15996 all alternatives after a disabled one would be skipped.
15997 (ira_implicitly_set_insn_hard_regs): Likewise.
15998 * ira.c (ira_setup_alts): Adjust for change to recog_data.
15999 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16000 with enabled_alternatives.
16001 * lra.c (free_insn_recog_data): Update accordingly.
16002 (lra_update_insn_recog_data): Likewise.
16003 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
16004 * lra-constraints.c (process_alt_operands): Likewise. Handle
16005 only_alternative as part of the enabled mask.
16006 * target-globals.h (this_target_recog): Declare.
16007 (target_globals): Add a recog field.
16008 (restore_target_globals): Restore this_target_recog.
16009 * target-globals.c: Include recog.h.
16010 (default_target_globals): Initialize recog field.
16011 (save_target_globals): Likewise.
16012 * reginfo.c (reinit_regs): Call recog_init.
16013 * toplev.c (backend_init_target): Likewise.
16015 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16017 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16018 rather than any named insn's code.
16020 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
16023 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16024 * config/arm/arm-cores.def (License): Same.
16026 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
16028 * tree.h (decl_comdat_group): Declare.
16029 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16030 * tree.c (decl_comdat_group): Here.
16032 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
16034 PR rtl-optimization/61222
16035 * combine.c (simplify_shift_const_1): When moving a PLUS outside
16036 the shift, truncate the PLUS operand to the result mode.
16038 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
16041 * config/i386/i386.c (ix86_rtx_costs)
16042 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
16045 2014-05-26 Martin Jambor <mjambor@suse.cz>
16047 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
16050 2014-05-26 Richard Biener <rguenther@suse.de>
16052 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
16053 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
16054 Provide specializations.
16055 (wi::int_traits <HOST_WIDE_INT>,
16056 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
16058 2014-05-26 Alan Modra <amodra@gmail.com>
16061 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
16062 params and return a bool. Remove dead code. Update comment.
16063 Assert we have a const_int source. Remove bogus code from
16064 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
16065 handling of constants > 2G and reg_equal note, from..
16066 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
16067 return value. Update comment. If we can, use a new pseudo
16068 for intermediate calculations.
16069 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
16071 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
16072 call to rs6000_emit_set_const in splitter.
16073 (movdi_internal64+2, +3): Likewise.
16075 2014-05-26 Richard Biener <rguenther@suse.de>
16077 * system.h: Define __STDC_FORMAT_MACROS before
16078 including inttypes.h.
16079 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
16080 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
16081 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
16082 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
16083 HOST_WIDEST_INT_C): Remove.
16084 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
16085 if C99 inttypes.h is not available.
16086 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
16087 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
16088 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
16089 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
16090 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
16091 (struct output_info): Likewise.
16092 (print_statistics): Adjust.
16093 (dump_bitmap_statistics): Likewise.
16094 * bt-load.c (migrate_btr_defs): Print with PRId64.
16095 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
16096 (MAX_SAFE_MULTIPLIER): Adjust.
16097 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16098 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16099 dump_cgraph_node): Likewise.
16100 * final.c (dump_basic_block_info): Likewise.
16101 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16102 * gcov.c (format_gcov): Likewise.
16103 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
16105 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16106 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16107 (inline_small_functions, dump_overall_stats, dump_inline_stats):
16108 Use PRId64 for dumping.
16109 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16110 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16111 (add_allocno_hard_regs): Adjust.
16112 * loop-doloop.c (doloop_modify): Print using PRId64.
16113 * loop-iv.c (inverse): Compute in uint64_t.
16114 (determine_max_iter, iv_number_of_iterations): Likewise.
16115 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16116 Print using PRId64.
16117 * lto-streamer-out.c (write_symbol): Use uint64_t.
16118 * mcf.c (CAP_INFINITY): Use int64_t maximum.
16119 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16120 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16121 * modulo-sched.c (const_iteration_count): Use int64_t.
16122 (sms_schedule): Dump using PRId64.
16123 * predict.c (dump_prediction): Likewise.
16124 * pretty-print.h (pp_widest_integer): Remove.
16125 * profile.c (get_working_sets, is_edge_inconsistent,
16126 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16127 * tree-pretty-print.c (pp_double_int): Remove case handling
16128 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16129 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16131 (pass_optimize_bswap::execute): Remove restriction on hosts.
16132 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16133 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16134 * tree.c (widest_int_cst_value): Remove.
16135 * tree.h (widest_int_cst_value): Likewise.
16136 * value-prof.c (dump_histogram_value): Print using PRId64.
16137 * gengtype.c (main): Also inject int64_t.
16138 * ggc-page.c (struct max_alignment): Use int64_t.
16139 * alloc-pool.c (struct allocation_object_def): Likewise.
16140 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16142 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16143 * doc/tm.texi: Regenerated.
16144 * gengtype-lex.l (IWORD): Handle [u]int64_t.
16145 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16146 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16147 mmix_output_register_setting): Use [u]int64_t in prototypes.
16148 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16149 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16150 mmix_output_octa, mmix_output_shifted_value): Adjust.
16151 (mmix_intval): Adjust. Remove unreachable case.
16152 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16154 2014-05-26 Richard Biener <rguenther@suse.de>
16156 * configure.ac: Drop __int64 type check. Insist that we
16157 found uint64_t and int64_t.
16158 * hwint.h (HOST_BITS_PER___INT64): Remove.
16159 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16160 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16161 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16162 (HOST_WIDEST_FAST_INT): Remove __int64 case.
16163 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16164 for dst_q_src_df_rms_cdt.
16165 * configure: Regenerate.
16166 * config.in: Likewise.
16168 2014-05-26 Michael Tautschnig <mt@debian.org>
16171 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16172 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16174 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16176 PR rtl-optimization/61278
16177 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16179 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16181 PR rtl-optimization/61220
16182 Part of PR rtl-optimization/61225
16183 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16184 insn; skip split_edge for a block with only one successor.
16186 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16188 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16191 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16193 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16194 (update_vtable_references): New function.
16195 (function_and_variable_visibility): Rewrite also vtable initializers.
16196 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16198 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16200 * ggc.h (ggc_grow): New function.
16201 * ggc-none.c (ggc_grow): New function.
16202 * ggc-page.c (ggc_grow): Likewise.
16204 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16206 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16207 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16208 comdat_can_be_unshared_p, cgraph_externally_visible_p,
16209 varpool_externally_visible_p, can_replace_by_local_alias,
16210 update_visibility_by_resolution_info, function_and_variable_visibility,
16211 pass_data_ipa_function_and_variable_visibility,
16212 make_pass_ipa_function_and_variable_visibility,
16213 whole_program_function_and_variable_visibility,
16214 pass_data_ipa_whole_program_visibility,
16215 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16216 * cgraph.h (cgraph_local_node_p): Declare.
16217 * ipa-visibility.c: New file.
16218 * Makefile.in (OBJS): Add ipa-visiblity.o
16220 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16222 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16223 that var decl is available.
16225 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16227 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16228 symtab_node pointer.
16229 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16230 (find_decls_types_r): Do not walk COMDAT_GROUP.
16231 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16232 * varasm.c (make_decl_one_only): Use set_comdat_group;
16233 create node if needed.
16234 * ipa-inline-transform.c (save_inline_function_body): Update
16235 way we decl->symtab mapping.
16236 * symtab.c (symtab_hash, hash_node, eq_node
16237 symtab_insert_node_to_hashtable): Remove.
16238 (symtab_register_node): Update.
16239 (symtab_unregister_node): Update.
16240 (symtab_get_node): Reimplement as inline function.
16241 (symtab_add_to_same_comdat_group): Update.
16242 (symtab_dissolve_same_comdat_group_list): Update.
16243 (dump_symtab_base): Update.
16244 (verify_symtab_base): Update.
16245 (symtab_make_decl_local): Update.
16246 (fixup_same_cpp_alias_visibility): Update.
16247 (symtab_nonoverwritable_alias): Update.
16248 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16249 * ipa.c (update_visibility_by_resolution_info): UPdate.
16250 * bb-reorder.c: Include cgraph.h
16251 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16252 with comdat groups.
16253 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16254 * cgraph.c (cgraph_get_create_node): Update.
16255 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16257 (symtab_get_node): Make inline.
16258 (symtab_insert_node_to_hashtable): Remove.
16259 (symtab_can_be_discarded): Update.
16260 (decl_comdat_group): New function.
16261 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16263 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16265 (read_comdat_group): New function.
16266 (input_node, input_varpool_node): Use it.
16267 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16269 * mips.c (mips_start_unique_function): Likewise.
16270 (ix86_code_end): Likewise.
16271 (rs6000_code_end): Likweise.
16272 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16274 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16276 * gengtype-state.c (fatal_reading_state): Bring offline.
16277 * optabs.c (widening_optab_handler): Bring offline.
16278 * optabs.h (widening_optab_handler): Likewise.
16279 * final.c (get_attr_length_1): Likewise.
16281 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16283 * sched-int.h (sd_iterator_cond): Manually tail recurse.
16285 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16287 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16288 (ppc440-compare): Include shift with dot.
16289 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16290 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16292 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16294 (e6500_sfx2): Include it.
16295 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16296 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16297 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16298 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16299 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16300 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16301 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16302 *lshiftrt_internal1le, *lshiftrt_internal1be,
16303 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16304 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16305 *rotldi3_internal10le, *rotldi3_internal10be,
16306 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16307 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16308 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16309 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16310 define_insns): Use type "shift" in the appropriate alternatives.
16312 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16314 * config/rs6000/rs6000.md (type): Add "logical". Delete
16316 (dot): Adjust comment.
16317 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16318 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16319 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16320 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16321 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16322 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16323 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16324 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16326 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16327 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16328 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16329 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16330 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16331 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16332 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16333 * config/rs6000/8540.md (ppc8540_su): Adjust.
16334 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16335 cell-cmp-microcoded): Adjust.
16336 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16337 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16338 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16339 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16340 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16341 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16342 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16343 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16344 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16346 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16347 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16348 Adjust. Adjust comment.
16349 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16350 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16352 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16354 * config/rs6000/rs6000.md (type): Add "add".
16355 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16356 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16357 define_insns): Use it.
16358 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16360 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16361 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16362 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16363 * config/rs6000/601.md (ppc601-integer): Adjust.
16364 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16365 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16366 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16367 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16368 * config/rs6000/8540.md (ppc8540_su): Adjust.
16369 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16370 cell-cmp-microcoded): Adjust.
16371 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16372 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16373 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16374 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16375 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16376 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16377 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16378 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16379 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16381 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16382 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16383 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16384 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16386 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16388 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16389 "delayed_compare", "var_delayed_compare".
16390 (var_shift): New attribute.
16391 (cell_micro): Adjust.
16392 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16393 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16394 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16395 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16396 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16397 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16398 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16399 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16400 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16401 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16402 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16403 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16404 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16405 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16406 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16407 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16408 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16409 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16410 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16411 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16412 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16413 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16414 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16415 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16416 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16418 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16419 * config/rs6000/440.md (ppc440-integer): Adjust.
16420 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16421 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16422 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16423 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16424 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16425 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16426 * config/rs6000/8540.md (ppc8540_su): Adjust.
16427 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16428 cell-cmp-microcoded): Adjust.
16429 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16430 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16431 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16432 e500mc64_delayed): Adjust.
16433 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16434 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16435 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16436 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16437 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16438 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16439 power6-delayed-compare, power6-var-delayed-compare): Adjust.
16440 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16441 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16443 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16444 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16446 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16448 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
16449 (bits): New mode_attr.
16450 (idiv_ldiv): Delete mode_attr.
16451 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16452 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16453 rs6000_adjust_priority, is_nonpipeline_insn,
16454 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16456 * config/rs6000/40x.md (ppc403-idiv): Adjust.
16457 * config/rs6000/440.md (ppc440-idiv): Adjust.
16458 * config/rs6000/476.md (ppc476-idiv): Adjust.
16459 * config/rs6000/601.md (ppc601-idiv): Adjust.
16460 * config/rs6000/603.md (ppc603-idiv): Adjust.
16461 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16462 ppc620-ldiv): Adjust.
16463 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16464 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16465 * config/rs6000/8540.md (ppc8540_divide): Adjust.
16466 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16467 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16468 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16469 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16470 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16471 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16472 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16473 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16474 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16475 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16476 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16477 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16478 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16479 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16480 * config/rs6000/titan.md (titan_fxu_div): Adjust.
16482 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16484 * config/rs6000/rs6000.md (type): Delete "insert_word",
16485 "insert_dword". Add "insert".
16486 (size): Update comment.
16487 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16488 insn_must_be_first_in_group): Adjust.
16489 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16490 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16491 *insvsi_internal6, insvdi_internal): Adjust.
16493 * config/rs6000/40x.md (ppc403-integer): Adjust.
16494 * config/rs6000/440.md (ppc440-integer): Adjust.
16495 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16496 * config/rs6000/601.md (ppc601-integer): Adjust.
16497 * config/rs6000/603.md (ppc603-integer): Adjust.
16498 * config/rs6000/6xx.md (ppc604-integer): Adjust.
16499 * config/rs6000/7450.md (ppc7450-integer): Adjust.
16500 * config/rs6000/7xx.md (ppc750-integer): Adjust.
16501 * config/rs6000/8540.md (ppc8540_su): Adjust.
16502 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16503 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16504 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16505 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16506 * config/rs6000/e5500.md (e5500_sfx): Adjust.
16507 * config/rs6000/e6500.md (e6500_sfx): Adjust.
16508 * config/rs6000/mpc.md (mpccore-integer): Adjust.
16509 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16510 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16511 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16512 * config/rs6000/power7.md (power7-integer): Adjust.
16513 * config/rs6000/power8.md (power8-1cyc): Adjust.
16514 * config/rs6000/rs64.md (rs64a-integer): Adjust.
16515 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16517 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16519 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
16520 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16521 (size): New attribute.
16522 (dot): New attribute.
16523 (cell_micro): Adjust.
16524 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16525 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16526 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16527 umuldi3_highpart): Adjust.
16528 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16529 rs6000_adjust_priority, is_nonpipeline_insn,
16530 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16532 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16533 ppc405-imul3): Adjust.
16534 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16535 * config/rs6000/476.md (ppc476-imul): Adjust.
16536 * config/rs6000/601.md (ppc601-imul): Adjust.
16537 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16538 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16539 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16540 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16541 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16543 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16544 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16545 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16546 cell-imul): Adjust.
16547 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16548 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16549 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16550 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16551 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16552 * config/rs6000/mpc.md (mpccore-imul): Adjust.
16553 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16554 power4-lmul, power4-imul, power4-imul3): Adjust.
16555 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16556 power5-lmul, power5-imul, power5-imul3): Adjust.
16557 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16558 power6-lmul, power6-imul, power6-imul3): Adjust.
16559 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16560 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16562 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16563 rs64a-lmul): Adjust.
16564 * config/rs6000/titan.md (titan_imul): Adjust.
16566 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16568 * config/rs6000/rs6000.md (type): Add new value "halfmul".
16569 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16570 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16571 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16572 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16573 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16574 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16575 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16576 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16577 * config/rs6000/titan.md: Delete nonsensical comment.
16578 (titan_imul): Add type imul3.
16579 (titan_mulhw): Remove type imul3; add type halfmul.
16581 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16583 * config/rs6000/rs6000.md (type): Reorder, reformat.
16585 2014-05-23 Martin Jambor <mjambor@suse.cz>
16587 PR tree-optimization/53787
16588 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16589 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16590 analysis_done, update all uses.
16591 * ipa-prop.c: Include domwalk.h
16592 (param_analysis_info): Removed.
16593 (param_aa_status): New type.
16594 (ipa_bb_info): Likewise.
16595 (func_body_info): Likewise.
16596 (ipa_get_bb_info): New function.
16597 (aa_overwalked): Likewise.
16598 (find_dominating_aa_status): Likewise.
16599 (parm_bb_aa_status_for_bb): Likewise.
16600 (parm_preserved_before_stmt_p): Changed to use new param AA info.
16601 (load_from_unmodified_param): Accept func_body_info as a parameter
16602 instead of parms_ainfo.
16603 (parm_ref_data_preserved_p): Changed to use new param AA info.
16604 (parm_ref_data_pass_through_p): Likewise.
16605 (ipa_load_from_parm_agg_1): Likewise. Update callers.
16606 (compute_complex_assign_jump_func): Changed to use new param AA info.
16607 (compute_complex_ancestor_jump_func): Likewise.
16608 (ipa_compute_jump_functions_for_edge): Likewise.
16609 (ipa_compute_jump_functions): Removed.
16610 (ipa_compute_jump_functions_for_bb): New function.
16611 (ipa_analyze_indirect_call_uses): Likewise, moved variable
16613 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16614 and info, moved variable declarations down.
16615 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16617 (ipa_analyze_stmt_uses): Likewise.
16618 (ipa_analyze_params_uses): Removed.
16619 (ipa_analyze_params_uses_in_bb): New function.
16620 (ipa_analyze_controlled_uses): Likewise.
16621 (free_ipa_bb_info): Likewise.
16622 (analysis_dom_walker): New class.
16623 (ipa_analyze_node): Handle node-specific forbidden analysis,
16624 initialize and free func_body_info, use dominator walker.
16625 (ipcp_modif_dom_walker): New class.
16626 (ipcp_transform_function): Create and free func_body_info, use
16627 ipcp_modif_dom_walker, moved a lot of functionality there.
16629 2014-05-23 Marek Polacek <polacek@redhat.com>
16630 Jakub Jelinek <jakub@redhat.com>
16632 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16633 * gcc.c (sanitize_spec_function): Likewise.
16634 * convert.c (convert_to_integer): Include "ubsan.h". Add
16635 floating-point to integer instrumentation.
16636 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16637 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16638 SANITIZE_NONDEFAULT.
16639 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16640 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16641 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16642 * ubsan.c: Include "realmpfr.h" and "dfp.h".
16643 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16644 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16645 float/double/long double.
16646 (ubsan_instrument_float_cast): New function.
16647 * ubsan.h (ubsan_instrument_float_cast): Declare.
16649 2014-05-23 Jiong Wang <jiong.wang@arm.com>
16651 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16653 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
16654 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16655 Adjust for tailcalling through registers.
16656 * config/aarch64/aarch64.h (enum reg_class): New caller save
16658 (REG_CLASS_NAMES): Likewise.
16659 (REG_CLASS_CONTENTS): Likewise.
16660 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16661 Allow tailcalling without decls.
16663 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16665 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16666 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16668 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16669 gsi, and variables v_* to v*.
16671 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
16673 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16675 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16677 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16678 * omp-low.c: Update accordingly.
16680 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16681 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16682 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16683 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16684 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16685 GF_OMP_TARGET_KIND_UPDATE.
16687 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16688 Explicitly enumerate the expected region types.
16690 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
16693 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
16694 documentation; the old documentation didn't clearly state the
16695 constraints on the contents of the pointed-to storage.
16697 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16699 Fix bootstrap error on ia64
16700 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
16701 Return default value.
16703 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
16705 PR tree-optimization/54733
16706 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
16708 (find_bswap_or_nop_load): New.
16709 (find_bswap_1): Renamed to ...
16710 (find_bswap_or_nop_1): This. Also add support for memory source.
16711 (find_bswap): Renamed to ...
16712 (find_bswap_or_nop): This. Also add support for memory source and
16713 detection of bitwise operations equivalent to load in target
16715 (execute_optimize_bswap): Likewise. Also move its leading comment back
16716 in place and split statement transformation into ...
16717 (bswap_replace): This.
16719 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16721 PR rtl-optimization/61215
16722 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
16723 simplify_gen_subreg until final substitution.
16725 2014-05-23 Alan Modra <amodra@gmail.com>
16728 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
16729 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
16730 Use "Y" constraint rather than "m".
16732 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16734 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
16736 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
16737 New function declaration.
16738 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
16739 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
16740 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
16741 (aarch64_init_builtins) : Initialize builtins
16742 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16743 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16744 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
16745 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
16746 and __builtins_aarch64_set_fpsr.
16747 (aarch64_atomic_assign_expand_fenv): New function.
16748 * config/aarch64/aarch64.md (set_fpcr): New pattern.
16749 (get_fpcr) : Likewise.
16750 (set_fpsr) : Likewise.
16751 (get_fpsr) : Likewise.
16752 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
16753 and UNSPECV_SET_FPSR.
16754 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16755 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16756 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16758 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16760 PR rtl-optimization/60969
16761 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
16762 constraints. Set up mem cost for NO_REGS case.
16764 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
16766 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
16768 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
16770 * config/darwin.c: Include "lto-section-names.h".
16771 (LTO_SEGMENT_NAME): Don't define.
16772 * config/i386/winnt.c: Include "lto-section-names.h".
16773 * lto-streamer.c: Include "lto-section-names.h".
16774 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
16775 * lto-wrapper.c: Include "lto-section-names.h".
16776 (LTO_SECTION_NAME_PREFIX): Don't define.
16777 * lto-section-names.h: New file.
16778 * cgraphunit.c: Include "lto-section-names.h".
16780 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
16782 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
16784 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
16787 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
16789 2014-05-22 Nick Clifton <nickc@redhat.com>
16791 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
16793 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
16795 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
16796 -> (T)A transformation to integer types.
16798 2014-05-22 Teresa Johnson <tejohnson@google.com>
16800 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
16801 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
16802 (gcov_rewrite): Use gcov_nonruntime_assert.
16803 (gcov_open): Ditto.
16804 (gcov_write_words): Ditto.
16805 (gcov_write_length): Ditto.
16806 (gcov_read_words): Use gcov_nonruntime_assert, and remove
16807 gcc_assert from IN_LIBGCOV code.
16808 (gcov_read_summary): Use gcov_error to flag profile corruption.
16809 (gcov_sync): Use gcov_nonruntime_assert.
16810 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
16811 (gcov_histo_index): Use gcov_nonruntime_assert.
16812 (static void gcov_histogram_merge): Ditto.
16813 (compute_working_sets): Ditto.
16814 * gcov-io.h (gcov_nonruntime_assert): Define.
16815 (gcov_error): Define for !IN_LIBGCOV
16817 2014-05-22 Richard Biener <rguenther@suse.de>
16819 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16820 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
16821 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
16822 and deallocation site.
16823 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16824 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
16825 passing through the incoming points-to set.
16826 (handle_lhs_call): Use flags argument instead of recomputing it.
16827 (find_func_aliases_for_call): Call handle_lhs_call with proper
16830 2014-05-22 Jakub Jelinek <jakub@redhat.com>
16832 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
16833 all padding bits in REAL_VALUE_TYPE are cleared.
16835 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16837 Cleanup and improve multipass_dfa_lookahead_guard
16838 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
16839 (core2i7_first_cycle_multipass_begin,)
16840 (core2i7_first_cycle_multipass_issue,)
16841 (core2i7_first_cycle_multipass_backtrack): Update signature.
16842 * config/ia64/ia64.c
16843 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
16844 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
16845 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
16847 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
16848 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
16850 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
16852 * doc/tm.texi: Regenerate.
16854 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
16855 * haifa-sched.c (ready_try): Make signed to allow negative values.
16856 (rebug_ready_list_1): Update.
16857 (choose_ready): Simplify.
16858 (sched_extend_ready_list): Update.
16860 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16862 Remove IA64 speculation tweaking flags
16863 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
16864 speculation tuning flags.
16865 (msched-prefer-non-data-spec-insns,)
16866 (msched-prefer-non-control-spec-insns): Obsolete options.
16867 * haifa-sched.c (choose_ready): Remove handling of
16868 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16869 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
16870 and PREFER_NON_DATA_SPEC.
16871 * sel-sched.c (process_spec_exprs): Remove handling of
16872 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16874 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16876 Improve scheduling debug output
16877 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
16878 (advance_one_cycle): Update.
16879 (schedule_insn, queue_to_ready): Add debug printouts.
16880 (debug_ready_list_1): New static function.
16881 (debug_ready_list): Update.
16882 (max_issue): Add debug printouts.
16883 (dump_insn_stream): New static function.
16884 (schedule_block): Use it. Also better indent printouts.
16886 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16888 Fix sched_insn debug counter
16889 * haifa-sched.c (schedule_insn): Update.
16890 (struct haifa_saved_data): Add nonscheduled_insns_begin.
16891 (save_backtrack_point, restore_backtrack_point): Update.
16892 (first_nonscheduled_insn): New static function.
16893 (queue_to_ready, choose_ready): Use it.
16894 (schedule_block): Init nonscheduled_insns_begin.
16895 (sched_emit_insn): Update.
16898 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16900 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
16902 (aarch64_secondary_reload) : LikeWise.
16903 (aarch64_class_max_nregs) : Remove CORE_REGS.
16904 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
16905 (REG_CLASS_NAMES) : Likewise.
16906 (REG_CLASS_CONTENTS) : LikeWise.
16907 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
16909 2014-05-21 Guozhi Wei <carrot@google.com>
16912 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
16914 (vqdmulhq_n_s16): Likewise.
16916 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16918 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
16920 2014-05-21 Marek Polacek <polacek@redhat.com>
16923 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
16925 2014-05-21 Martin Jambor <mjambor@suse.cz>
16927 * doc/invoke.texi (Optimize Options): Document parameters
16928 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
16929 ipa-cp-array-index-hint-bonus.
16931 2014-05-21 Mark Wielaard <mjw@redhat.com>
16934 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
16935 version >= 3 or not strict DWARF.
16936 * langhooks.h (struct lang_hooks_for_types): Add
16937 enum_underlying_base_type.
16938 * langhooks.c (lhd_enum_underlying_base_type): New function.
16939 * gcc/langhooks.h (struct lang_hooks_for_types): Add
16940 enum_underlying_base_type.
16941 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
16942 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
16943 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
16945 2014-05-21 Richard Biener <rguenther@suse.de>
16947 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
16949 2014-05-21 John Marino <gnugcc@marino.st>
16951 * config.gcc (*-*-dragonfly*): New target.
16952 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
16953 * configure: Regenerate.
16954 * config/dragonfly-stdint.h: New.
16955 * config/dragonfly.h: New.
16956 * config/dragonfly.opt: New.
16957 * config/i386/dragonfly.h: New.
16958 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
16960 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16962 * tree.def (VOID_CST): New.
16963 * tree-core.h (TI_VOID): New.
16964 * tree.h (void_node): New.
16965 * tree.c (tree_node_structure_for_code, tree_code_size)
16966 (iterative_hash_expr): Handle VOID_CST.
16967 (build_common_tree_nodes): Initialize void_node.
16969 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
16971 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
16973 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
16975 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
16978 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
16979 flag_reorder_blocks_and_partition.
16980 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
16982 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16985 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
16987 (*addc_r_t): Add new insn_and_split.
16989 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16991 PR middle-end/61252
16992 * omp-low.c (handle_simd_reference): New function.
16993 (lower_rec_input_clauses): Use it. Defer adding reference
16994 initialization even for reduction without placeholder if in simd,
16995 handle it properly later on.
16997 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16999 PR tree-optimization/60899
17000 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17001 assume all static symbols will have definition wile parsing and
17002 check the do have definition later in compilation; check that
17003 variable referring symbol will be output before concluding that
17004 reference is safe; be conservative for referring local statics;
17005 be more precise about when comdat is output in other partition.
17007 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17010 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17012 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17013 (ipa_inline): Loop inline_to_all_callers until no more aliases
17016 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17018 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17019 set writeonly flag only for vars actually written to.
17021 2014-05-20 Dehao Chen <dehao@google.com>
17023 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17024 and callee count to get clone count.
17025 * tree-inline.c (expand_call_inline): Use callee count instead of bb
17026 count in copy_body.
17028 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
17030 PR rtl-optimization/61243
17031 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17033 2014-05-20 Xinliang David Li <davidxl@google.com>
17035 * cgraphunit.c (walk_polymorphic_call_targets): Add
17036 dbgcnt and fopt-info support.
17037 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17038 * ipa-devirt.c (ipa_devirt): Ditto.
17039 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17040 * ipa.c (walk_polymorphic_call_targets): Ditto.
17041 * gimple-fold.c (fold_gimple_assign): Ditto.
17042 (gimple_fold_call): Ditto.
17043 * dbgcnt.def: New counter.
17045 2014-05-20 DJ Delorie <dj@redhat.com>
17047 * config/msp430/msp430.md (split): Don't allow subregs when
17048 splitting SImode adds.
17049 (andneghi): Fix subtraction logic.
17050 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
17052 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17054 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
17056 * except.c (switch_to_exception_section, resolve_unique_section,
17057 get_named_text_section, default_function_rodata_section,
17058 align_variable, get_block_for_decl, default_section_type_flags):
17059 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17060 * symtab.c (symtab_add_to_same_comdat_group,
17061 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
17062 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
17064 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
17065 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
17066 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17067 (c6x_function_in_section_p): Likewise.
17068 * config/darwin.c (machopic_select_section): Likewise.
17069 * config/arm/arm.c (arm_function_in_section_p): Likewise.
17070 * config/mips/mips.c (mips_function_rodata_section): Likewise.
17071 * config/mep/mep.c (mep_select_section): LIkewise.
17072 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17074 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
17076 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
17077 EH region of calls to pure functions that can throw an exception.
17078 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
17079 (copy_reference_ops_from_call): Also copy the EH region of the call if
17080 it can throw an exception.
17082 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17084 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
17085 nested VEC_SELECTs that are inverses of each other.
17087 2014-05-20 Richard Biener <rguenther@suse.de>
17089 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
17090 (extract_and_process_scc_for_name): not here.
17091 (cond_dom_walker::before_dom_children): Only process
17092 stmts that end the BB in interesting ways.
17093 (run_scc_vn): Mark param uses as visited.
17095 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17097 * config/arm/arm.md (arith_shiftsi): Do not predicate for
17100 2014-05-20 Nick Clifton <nickc@redhat.com>
17102 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17103 (msp430_gimplify_va_arg_expr): New function.
17104 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17106 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17107 operand 0 in order to prevent confusion about the number of
17108 registers involved.
17110 2014-05-20 Richard Biener <rguenther@suse.de>
17112 PR tree-optimization/61221
17113 * tree-ssa-pre.c (el_to_update): Remove.
17114 (eliminate_dom_walker::before_dom_children): Handle released
17115 VDEFs by value-numbering them to the associated VUSE. Update
17116 stmt immediately for substituted call address.
17117 (eliminate): Remove delayed stmt updating code.
17118 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17119 possibly late re-numbered vuses.
17120 (vn_reference_lookup_2): Adjust.
17121 (vn_reference_lookup_pieces): Likewise.
17122 (vn_reference_lookup): Likewise.
17124 2014-05-20 Richard Biener <rguenther@suse.de>
17126 * config.gcc: Remove need_64bit_hwint.
17127 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17128 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17130 * config.in: Regenerate.
17131 * configure: Likewise.
17133 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
17135 * doc/extend.texi: Create Label Attributes section,
17136 move all label attributes into it and reference it.
17138 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
17140 * arm.c (thumb1_reorg): When scanning backwards skip anything
17141 that's not a proper insn.
17143 2014-05-19 Richard Biener <rguenther@suse.de>
17145 PR tree-optimization/61221
17146 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17147 Do nothing for unreachable blocks.
17148 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17149 Improve unreachability detection.
17151 2014-05-19 Richard Biener <rguenther@suse.de>
17153 PR tree-optimization/61209
17154 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17156 2014-05-19 Nick Clifton <nickc@redhat.com>
17158 * except.c (init_eh): Fix computation of builtin setjmp buffer
17159 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17161 2014-05-19 Richard Biener <rguenther@suse.de>
17163 PR tree-optimization/61184
17164 * tree-vrp.c (is_negative_overflow_infinity): Use
17165 TREE_OVERFLOW_P and do that check first.
17166 (is_positive_overflow_infinity): Likewise.
17167 (is_overflow_infinity): Likewise.
17168 (vrp_operand_equal_p): Properly treat operands with
17169 differing overflow as not equal.
17171 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
17173 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17174 shift simplification where it was intended.
17176 2014-05-19 Christian Bruel <christian.bruel@st.com>
17179 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17181 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
17184 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17187 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17189 * reg-notes.def (CROSSING_JUMP): Likewise.
17190 * rtl.h (rtx_def): Update comment for jump flag.
17191 (CROSSING_JUMP_P): Define.
17192 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17193 of a REG_CROSSING_JUMP note.
17194 * cfghooks.c (tidy_fallthru_edges): Likewise.
17195 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17196 * emit-rtl.c (try_split): Likewise.
17197 * haifa-sched.c (sched_create_recovery_edges): Likewise.
17198 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17199 * jump.c (redirect_jump_2): Likewise.
17200 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17201 (relax_delay_slots): Likewise.
17202 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17203 (bbit_di): Likewise.
17204 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17205 * config/sh/sh.md (jump_compact): Likewise.
17206 * bb-reorder.c (rotate_loop): Likewise.
17207 (pass_duplicate_computed_gotos::execute): Likewise.
17208 (add_reg_crossing_jump_notes): Rename to...
17209 (update_crossing_jump_flags): ...this.
17210 (pass_partition_blocks::execute): Update accordingly.
17212 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17214 * tree.h: Remove extraneous template <>.
17216 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17218 * ipa.c (symtab_remove_unreachable_nodes): Remove
17219 symbol from comdat group if its body was eliminated.
17220 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17221 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17222 (symtab_unregister_node): ... this one.
17223 (verify_symtab_base): More strict checking of comdats.
17224 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17226 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17228 * tree-pass.h (make_pass_ipa_comdats): New pass.
17229 * timevar.def (TV_IPA_COMDATS): New timevar.
17230 * passes.def (pass_ipa_comdats): Add.
17231 * Makefile.in (OBJS): Add ipa-comdats.o
17232 * ipa-comdats.c: New file.
17234 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17236 * ipa.c (update_visibility_by_resolution_info): New function.
17237 (function_and_variable_visibility): Use it.
17239 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17241 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17243 (FOR_EACH_DEFINED_SYMBOL): New macro.
17244 (varpool_first_static_initializer, varpool_next_static_initializer,
17245 varpool_first_defined_variable, varpool_next_defined_variable):
17247 (symtab_in_same_comdat_p): Correctly deal with inline functions.
17249 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17251 * ggc-page.c (ggc_handle_finalizers): Add comment.
17253 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17255 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17256 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17257 (ggc_internal_cleared_alloc): Likewise.
17258 * ggc-page.c (finalizer): New class.
17259 (vec_finalizer): Likewise.
17260 (globals::finalizers): New member.
17261 (globals::vec_finalizers): Likewise.
17262 (ggc_internal_alloc): Record the finalizer if any for the block being
17264 (ggc_handle_finalizers): New function.
17265 (ggc_collect): Call ggc_handle_finalizers.
17266 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17268 (ggc_internal_cleared_alloc): Likewise.
17269 (finalize): New function.
17270 (need_finalization_p): Likewise.
17271 (ggc_alloc): Install the type's destructor as the finalizer if it
17272 might do something.
17273 (ggc_cleared_alloc): Likewise.
17274 (ggc_vec_alloc): Likewise.
17275 (ggc_cleared_vec_alloc): Likewise.
17277 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17279 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17281 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17283 * alias.c (record_alias_subset): Adjust.
17284 * bitmap.c (bitmap_element_allocate): Likewise.
17285 (bitmap_gc_alloc_stat): Likewise.
17286 * cfg.c (init_flow): Likewise.
17287 (alloc_block): Likewise.
17288 (unchecked_make_edge): Likewise.
17289 * cfgloop.c (alloc_loop): Likewise.
17290 (flow_loops_find): Likewise.
17291 (rescan_loop_exit): Likewise.
17292 * cfgrtl.c (init_rtl_bb_info): Likewise.
17293 * cgraph.c (insert_new_cgraph_node_version): Likewise.
17294 (cgraph_allocate_node): Likewise.
17295 (cgraph_create_edge_1): Likewise.
17296 (cgraph_allocate_init_indirect_info): Likewise.
17297 * cgraphclones.c (cgraph_clone_edge): Likewise.
17298 * cgraphunit.c (add_asm_node): Likewise.
17299 (init_lowered_empty_function): Likewise.
17300 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17301 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17302 (alpha_use_linkage): Likewise.
17303 * config/arc/arc.c (arc_init_machine_status): Likewise.
17304 * config/arm/arm.c (arm_init_machine_status): Likewise.
17305 * config/avr/avr.c (avr_init_machine_status): Likewise.
17306 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17307 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17308 * config/cris/cris.c (cris_init_machine_status): Likewise.
17309 * config/darwin.c (machopic_indirection_name): Likewise.
17310 (darwin_build_constant_cfstring): Likewise.
17311 (darwin_enter_string_into_cfstring_table): Likewise.
17312 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17313 * config/frv/frv.c (frv_init_machine_status): Likewise.
17314 * config/i386/i386.c (get_dllimport_decl): Likewise.
17315 (ix86_init_machine_status): Likewise.
17316 (assign_386_stack_local): Likewise.
17317 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17318 (i386_pe_maybe_record_exported_symbol): Likewise.
17319 (i386_pe_record_stub): Likewise.
17320 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17321 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17322 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17323 (m32c_note_pragma_address): Likewise.
17324 * config/mep/mep.c (mep_init_machine_status): Likewise.
17325 (mep_note_pragma_flag): Likewise.
17326 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17327 (mips16_local_alias): Likewise.
17328 (mips_init_machine_status): Likewise.
17329 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17330 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17331 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17332 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17333 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17334 * config/pa/pa.c (pa_init_machine_status): Likewise.
17335 (pa_get_deferred_plabel): Likewise.
17336 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17337 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17338 (rs6000_init_machine_status): Likewise.
17339 (output_toc): Likewise.
17340 * config/s390/s390.c (s390_init_machine_status): Likewise.
17341 * config/score/score.c (score_output_external): Likewise.
17342 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17343 * config/spu/spu.c (spu_init_machine_status): Likewise.
17344 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17345 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17346 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17347 * coverage.c (coverage_end_function): Likewise.
17348 * dbxout.c (dbxout_init): Likewise.
17349 * doc/gty.texi: Don't mention variable_size attribute.
17350 * dwarf2cfi.c (new_cfi): Adjust.
17351 (new_cfi_row): Likewise.
17352 (copy_cfi_row): Likewise.
17353 (create_cie_data): Likewise.
17354 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17355 (new_loc_descr): Likewise.
17356 (find_AT_string_in_table): Likewise.
17357 (add_addr_table_entry): Likewise.
17358 (new_die): Likewise.
17359 (add_var_loc_to_decl): Likewise.
17360 (clone_die): Likewise.
17361 (clone_as_declaration): Likewise.
17362 (break_out_comdat_types): Likewise.
17363 (new_loc_list): Likewise.
17364 (add_loc_descr_to_each): Likewise.
17365 (add_location_or_const_value_attribute): Likewise.
17366 (add_linkage_name): Likewise.
17367 (lookup_filename): Likewise.
17368 (dwarf2out_var_location): Likewise.
17369 (new_line_info_table): Likewise.
17370 (dwarf2out_init): Likewise.
17371 (mem_loc_descriptor): Likewise.
17372 (loc_descriptor): Likewise.
17373 (add_const_value_attribute): Likewise.
17374 (tree_add_const_value_attribute): Likewise.
17375 (comp_dir_string): Likewise.
17376 (dwarf2out_vms_debug_main_pointer): Likewise.
17377 (string_cst_pool_decl): Likewise.
17378 * emit-rtl.c (set_mem_attrs): Likewise.
17379 (get_reg_attrs): Likewise.
17380 (start_sequence): Likewise.
17381 (init_emit): Likewise.
17382 (init_emit_regs): Likewise.
17383 * except.c (init_eh_for_function): Likewise.
17384 (gen_eh_region): Likewise.
17385 (gen_eh_region_catch): Likewise.
17386 (gen_eh_landing_pad): Likewise.
17387 (add_call_site): Likewise.
17388 * function.c (add_frame_space): Likewise.
17389 (insert_temp_slot_address): Likewise.
17390 (assign_stack_temp_for_type): Likewise.
17391 (get_hard_reg_initial_val): Likewise.
17392 (allocate_struct_function): Likewise.
17393 (prepare_function_start): Likewise.
17394 (types_used_by_var_decl_insert): Likewise.
17395 * gengtype.c (variable_size_p): Remove function.
17396 (enum alloc_quantity): Remove enum.
17397 (write_typed_alloc_def): Remove function.
17398 (write_typed_struct_alloc_def): Likewise.
17399 (write_typed_typedef_alloc_def): Likewise.
17400 (write_typed_alloc_defns): Likewise.
17402 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17403 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17404 * ggc.h (ggc_alloc): new function.
17405 (ggc_cleared_alloc): Likewise.
17406 (ggc_vec_alloc): Template on type of vector element, and remove
17407 element size argument.
17408 (ggc_cleared_vec_alloc): Likewise.
17409 * gimple.c (gimple_build_omp_for): Adjust.
17410 (gimple_copy): Likewise.
17411 * ipa-cp.c (get_replacement_map): Likewise.
17412 (find_aggregate_values_for_callers_subset): Likewise.
17413 (known_aggs_to_agg_replacement_list): Likewise.
17414 * ipa-devirt.c (get_odr_type): Likewise.
17415 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17416 (read_agg_replacement_chain): Likewise.
17417 * loop-iv.c (get_simple_loop_desc): Likewise.
17418 * lto-cgraph.c (input_node_opt_summary): Likewise.
17419 * lto-section-in.c (lto_new_in_decl_state): Likewise.
17420 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17421 (input_eh_region): Likewise.
17422 (input_eh_lp): Likewise.
17423 (input_cfg): Likewise.
17424 * optabs.c (set_optab_libfunc): Likewise.
17425 (init_tree_optimization_optabs): Likewise.
17426 (set_conv_libfunc): Likewise.
17427 * passes.c (do_per_function_toporder): Likewise.
17428 * rtl.h: Don't use variable_size gty attribute.
17429 * sese.c (if_region_set_false_region): Adjust.
17430 * stringpool.c (gt_pch_save_stringpool): Likewise.
17431 * target-globals.c (save_target_globals): Likewise.
17432 * toplev.c (general_init): Likewise.
17433 * trans-mem.c (record_tm_replacement): Likewise.
17434 (split_bb_make_tm_edge): Likewise.
17435 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17436 * tree-data-ref.h (lambda_vector_new): Likewise.
17437 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17438 * tree-iterator.c (tsi_link_before): Likewise.
17439 (tsi_link_after): Likewise.
17440 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17441 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17442 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17443 * tree-ssa-operands.h: Don't use variable_size gty attribute.
17444 * tree-ssa.c (init_tree_ssa): Adjust.
17445 * tree-ssanames.c (set_range_info): Likewise.
17446 (get_ptr_info): Likewise.
17447 (duplicate_ssa_name_ptr_info): Likewise.
17448 (duplicate_ssa_name_range_info): Likewise.
17449 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17450 (unpack_ts_fixed_cst_value_fields): Likewise.
17451 * tree.c (build_fixed): Likewise.
17452 (build_real): Likewise.
17453 (build_string): Likewise.
17454 (decl_priority_info): Likewise.
17455 (decl_debug_expr_insert): Likewise.
17456 (decl_value_expr_insert): Likewise.
17457 (decl_debug_args_insert): Likewise.
17458 (type_hash_add): Likewise.
17459 (build_omp_clause): Likewise.
17460 * ubsan.c (decl_for_type_insert): Likewise.
17461 * varasm.c (get_unnamed_section): Likewise.
17462 (get_noswitch_section): Likewise.
17463 (get_section): Likewise.
17464 (get_block_for_section): Likewise.
17465 (create_block_symbol): Likewise.
17466 (build_constant_desc): Likewise.
17467 (create_constant_pool): Likewise.
17468 (force_const_mem): Likewise.
17469 (record_tm_clone_pair): Likewise.
17470 * varpool.c (varpool_create_empty_node): Likewise.
17472 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17474 * dwarf2out.c (tree_add_const_value_attribute): Call
17475 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17476 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17477 instead of ggc_internal_<x>alloc_stat.
17478 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17479 (ggc_realloc): Likewise.
17480 * ggc-none.c (ggc_internal_alloc): Likewise.
17481 (ggc_internal_cleared_alloc): Likewise.
17482 * ggc-page.c: Likewise.
17483 * ggc.h (ggc_internal_alloc_stat): Likewise.
17484 (ggc_internal_alloc): Remove macro.
17485 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17486 (ggc_internal_cleared_alloc): Remove macro.
17487 (GGC_RESIZEVEC): Adjust.
17488 (ggc_resizevar): Remove macro.
17489 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17490 (ggc_internal_cleared_vec_alloc_stat): Likewise.
17491 (ggc_internal_vec_cleared_alloc): Remove macro.
17492 (ggc_alloc_atomic_stat): Drop _stat suffix.
17493 (ggc_alloc_atomic): Remove macro.
17494 (ggc_alloc_cleared_atomic): Remove macro.
17495 (ggc_alloc_string_stat): Drop _stat suffix.
17496 (ggc_alloc_string): Remove macro.
17497 (ggc_alloc_rtx_def_stat): Adjust.
17498 (ggc_alloc_tree_node_stat): Likewise.
17499 (ggc_alloc_cleared_tree_node_stat): Likewise.
17500 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17501 (ggc_alloc_cleared_simd_clone_stat): Likewise.
17502 * gimple.c (gimple_build_omp_for): Likewise.
17503 (gimple_copy): Likewise.
17504 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17505 * toplev.c (realloc_for_line_map): Adjust.
17506 * tree-data-ref.h (lambda_vector_new): Likewise.
17507 * tree-phinodes.c (allocate_phi_node): Likewise.
17508 * tree.c (grow_tree_vec_stat): Likewise.
17509 * vec.h (va_gc::reserve): Adjust.
17511 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
17513 * config/microblaze/microblaze.c (break_handler): New Declaration.
17514 (microblaze_break_function_p,microblaze_is_break_handler): New.
17515 (compute_frame_size): Use microblaze_break_function_p.
17516 Add the test of break_handler.
17517 (microblaze_function_prologue) : Add the test of variable
17518 break_handler. Check the fnname by BREAK_HANDLER_NAME.
17519 (microblaze_function_epilogue) : Add the test of break_handler.
17520 (microblaze_globalize_label) : Add the test of break_handler.
17521 Check the name by BREAK_HANDLER_NAME.
17523 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17525 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17526 microblaze_is_break_handler test.
17527 (call_internal1,call_value_intern): Use microblaze_break_function_p.
17528 Use SYMBOL_REF_DECL.
17530 * config/microblaze/microblaze-protos.h
17531 (microblaze_break_function_p,microblaze_is_break_handler):
17534 * doc/extend.texi (MicroBlaze break_handler Functions): Document
17535 new MicroBlaze break_handler functions.
17537 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17539 * doc/extend.texi (Size of an asm): Move node text according
17540 to its @menu entry position.
17542 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
17544 PR tree-optimization/61140
17545 PR tree-optimization/61150
17546 PR tree-optimization/61197
17547 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17549 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17551 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
17553 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
17555 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17556 __SIZEOF_INT128__ is defined.
17558 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17560 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17561 (rs6000_delegitimize_address): Use it.
17563 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17565 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17566 inplace argument. Store the new address in the original MEM when true.
17567 * emit-rtl.c (change_address_1): Likewise.
17568 (adjust_address_1, adjust_automodify_address_1, offset_address):
17569 Update accordingly.
17570 * rtl.h (plus_constant): Add an inplace argument.
17571 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
17572 when true. Avoid generating (plus X (const_int 0)).
17573 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17574 in-place. Pass true to plus_constant.
17575 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17577 2014-05-16 Dehao Chen <dehao@google.com>
17579 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17581 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17584 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17586 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17588 2014-05-16 Dehao Chen <dehao@google.com>
17590 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17591 optimize_function_for_size_p.
17592 * regs.h (REG_FREQ_FROM_BB): Likewise.
17594 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17597 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17598 negt_reg_operand cases.
17599 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17601 * config/sh/predicates.md (cbranch_treg_value): Simplify.
17603 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17605 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17608 2014-05-16 David Malcolm <dmalcolm@redhat.com>
17611 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17613 * tree-cfg.c (dump_function_to_file): Dump the return type of
17614 functions, in a line to itself before the function body, mimicking
17615 the layout of a C function.
17617 2014-05-16 Dehao Chen <dehao@google.com>
17619 * cfghooks.c (make_forwarder_block): Use direct computation to
17620 get fall-through edge's count and frequency.
17622 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
17624 * config/arc/arc.c (arc_init): Fix typo in error message.
17625 * config/i386/i386.c (ix86_expand_builtin): Likewise.
17626 (split_stack_prologue_scratch_regno): Likewise.
17627 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17628 word from error message.
17630 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17632 * ira-costs.c: Fix typo in comment.
17634 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
17636 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17638 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
17640 * varpool.c (dump_varpool_node): Dump write-only flag.
17641 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17643 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17644 write-only variables.
17645 * ipa.c (process_references): New function.
17646 (set_readonly_bit): New function.
17647 (set_writeonly_bit): New function.
17648 (clear_addressable_bit): New function.
17649 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17650 fix handling of aliases.
17651 * cgraph.h (struct varpool_node): Add writeonly flag.
17653 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
17655 PR rtl-optimization/60969
17656 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17657 Calculate costs for this case.
17659 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
17661 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17662 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17664 2014-05-16 Richard Biener <rguenther@suse.de>
17666 PR tree-optimization/61194
17667 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17668 bool patterns ending in a COND_EXPR.
17670 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17672 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17674 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17676 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17677 where we were unable to cost an RTX.
17679 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17681 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17684 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17685 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17687 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
17689 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17690 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17692 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
17693 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
17695 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17696 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17698 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
17701 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17702 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17704 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17707 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17708 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17710 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
17711 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
17713 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17714 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17716 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17717 rotates and shifts.
17719 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17720 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17722 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
17723 ZERO_EXTEND and SIGN_EXTEND better.
17725 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17726 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17728 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
17729 logical operations.
17731 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17732 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17734 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
17735 costs when costing loads and stores to memory.
17737 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17738 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
17740 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
17743 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
17747 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17748 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17750 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
17752 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
17754 (aarch64_rtx_mult_cost): New.
17755 (aarch64_rtx_costs): Use it, refactor as appropriate.
17757 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17758 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17760 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
17761 emit instructions, return number of instructions which would
17763 (aarch64_add_constant): Update call to aarch64_build_constant.
17764 (aarch64_output_mi_thunk): Likewise.
17765 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
17768 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17770 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
17771 (TARGET_RTX_COSTS): Call it.
17773 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17775 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
17776 (cortexa57_vector_cost): Likewise.
17777 (cortexa57_tunings): Use them.
17779 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17781 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
17782 (cpu_addrcost_table): Use it.
17783 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
17784 (aarch64_address_cost): Rewrite using aarch64_classify_address,
17787 2014-05-16 Richard Biener <rguenther@suse.de>
17789 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
17790 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
17791 (visit_phi): Ignore edges marked as not executable.
17792 (class cond_dom_walker): New.
17793 (cond_dom_walker::before_dom_children): Value-number
17794 control statements and mark successor edges as not
17795 executable if possible.
17796 (run_scc_vn): First walk all control statements in
17797 dominator order, marking edges as not executable.
17798 * tree-inline.c (copy_edges_for_bb): Be not confused
17799 about random edge flags.
17801 2014-05-16 Richard Biener <rguenther@suse.de>
17803 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
17805 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
17808 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
17809 (__TM_simple_begin): Use it.
17810 (__TM_begin): Likewise.
17812 2014-05-15 Martin Jambor <mjambor@suse.cz>
17815 * ipa-prop.c (update_indirect_edges_after_inlining): Check
17816 type_preserved flag when the indirect edge is polymorphic.
17818 2014-05-15 Martin Jambor <mjambor@suse.cz>
17820 PR tree-optimization/61090
17821 * tree-sra.c (sra_modify_expr): Pass the current gsi to
17822 build_ref_for_model.
17824 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17826 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
17827 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
17829 2014-05-15 Jakub Jelinek <jakub@redhat.com>
17831 PR tree-optimization/61158
17832 * fold-const.c (fold_binary_loc): If X is zero-extended and
17833 shiftc >= prec, make sure zerobits is all ones instead of
17834 invoking undefined behavior.
17836 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17838 * regcprop.h: New file.
17839 * regcprop.c (skip_debug_insn_p): New decl.
17840 (replace_oldest_value_reg): Check skip_debug_insn_p.
17841 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
17842 * shrink-wrap.c: Include regcprop.h.
17843 (prepare_shrink_wrap): Call
17844 copyprop_hardreg_forward_bb_without_debug_insn.
17846 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17848 * shrink-wrap.h: Update comment.
17849 * shrink-wrap.c: Update comment.
17850 (next_block_for_reg): Rename to live_edge_for_reg.
17851 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
17852 (move_insn_for_shrink_wrap): Split live_edge.
17853 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
17855 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
17857 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
17859 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
17860 * config/sparc/sparc.md (fptype_ut699): New attribute.
17861 (in_branch_delay): Return false if -mfix-ut699 is specified and
17862 fptype_ut699 is set to single.
17863 (truncdfsf2): Add fptype_ut699 attribute.
17864 (fix_truncdfsi2): Likewise.
17865 (floatsisf2): Change fptype attribute.
17866 (fix_truncsfsi2): Likewise.
17867 (negtf2_notv9): Delete.
17868 (negtf2_v9): Likewise.
17869 (negtf2_hq): New instruction.
17870 (negtf2): New instruction and splitter.
17871 (negdf2_notv9): Rewrite.
17872 (abstf2_notv9): Delete.
17873 (abstf2_hq_v9): Likewise.
17874 (abstf2_v9): Likewise.
17875 (abstf2_hq): New instruction.
17876 (abstf2): New instruction and splitter.
17877 (absdf2_notv9): Rewrite.
17879 2014-05-14 Cary Coutant <ccoutant@google.com>
17882 * opts.c (common_handle_option): Don't special-case "-g".
17883 (set_debug_level): Default to at least level 2 with "-g".
17885 2014-05-14 DJ Delorie <dj@redhat.com>
17887 * config/msp430/msp430.c (msp430_builtin): Add
17888 MSP430_BUILTIN_DELAY_CYCLES.
17889 (msp430_init_builtins): Register void __delay_cycles(long long).
17890 (msp430_builtin_decl): Add it.
17891 (cg_magic_constant): New.
17892 (msp430_expand_delay_cycles): New.
17893 (msp430_expand_builtin): Call it.
17894 (msp430_print_operand_raw): Change integer printing from "int" to
17896 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
17897 (delay_cycles_start): New.
17898 (delay_cycles_end): New.
17899 (delay_cycles_32): New.
17900 (delay_cycles_32x): New.
17901 (delay_cycles_16): New.
17902 (delay_cycles_16x): New.
17903 (delay_cycles_2): New.
17904 (delay_cycles_1): New.
17905 * doc/extend.texi: Document __delay_cycles().
17907 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
17909 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
17910 length attribute computation.
17912 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
17915 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
17917 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
17920 * config/sparc/sparc.md: Fix types of low and high in DI constant
17921 splitter. Use gen_int_mode in some other splitters.
17923 2014-05-14 Martin Jambor <mjambor@suse.cz>
17926 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
17928 2014-05-14 James Norris <jnorris@codesourcery.com>
17930 * omp-low.c (expand_parallel_call): Remove shadow variable.
17931 (expand_omp_taskreg): Likewise.
17933 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
17935 * common/config/i386/i386-common.c
17936 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
17937 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
17938 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
17939 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
17940 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
17941 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
17942 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
17943 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
17944 xsavecintrin.h, xsavesintrin.h.
17945 (x86_64-*-*): Ditto.
17946 * config/i386/clflushoptintrin.h: New.
17947 * config/i386/xsavecintrin.h: Ditto.
17948 * config/i386/xsavesintrin.h: Ditto.
17949 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
17950 (bit_XSAVES): Ditto.
17951 (bit_XSAVES): Ditto.
17952 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17953 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
17955 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17956 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
17957 OPTION_MASK_ISA_XSAVES.
17958 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
17959 -mxsavec, -mxsaves.
17960 (PTA_CLFLUSHOPT) Define.
17961 (PTA_XSAVEC): Ditto.
17962 (PTA_XSAVES): Ditto.
17963 (ix86_option_override_internal): Handle new options.
17964 (ix86_valid_target_attribute_inner_p): Ditto.
17965 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
17966 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
17967 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
17968 (bdesc_special_args): Add __builtin_ia32_xsaves,
17969 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
17970 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
17971 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
17972 (ix86_expand_builtin): Handle new builtins.
17973 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
17974 (TARGET_CLFLUSHOPT_P): Ditto.
17975 (TARGET_XSAVEC): Ditto.
17976 (TARGET_XSAVEC_P): Ditto.
17977 (TARGET_XSAVES): Ditto.
17978 (TARGET_XSAVES_P): Ditto.
17979 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
17980 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
17981 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
17983 (ANY_XRSTOR64): Ditto.
17985 (xrstor): Change into <xrstor>.
17986 (xrstor_rex64): Change into <xrstor>_rex64.
17987 (xrstor64): Change into <xrstor>64
17989 * config/i386/i386.opt (mclflushopt): New.
17992 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
17994 * doc/invoke.texi: Document new options.
17996 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
17998 PR rtl-optimization/60866
17999 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18000 Default it to -1. Pass it down to init_simplejump_data.
18001 (init_simplejump_data): New parameter old_seqno. Pass it down
18002 to get_seqno_for_a_jump.
18003 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
18004 initializing new jump seqno as a last resort. Add comment.
18005 (sel_redirect_edge_and_branch): Save old seqno of the conditional
18006 jump and pass it down to sel_init_new_insn.
18007 (sel_redirect_edge_and_branch_force): Likewise.
18009 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
18011 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18012 shifted values to avoid build warning.
18014 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18016 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18017 * cfgrtl.c (rtl_merge_blocks): Fix comment.
18018 (cfg_layout_merge_blocks): Likewise.
18019 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18021 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
18023 PR rtl-optimization/60901
18024 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18025 bb predecessor belongs to the same scheduling region. Adjust comment.
18027 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
18029 * doc/sourcebuild.texi: (dfp_hw): Document.
18030 (p8vector_hw): Likewise.
18031 (powerpc_eabi_ok): Likewise.
18032 (powerpc_elfv2): Likewise.
18033 (powerpc_htm_ok): Likewise.
18034 (ppc_recip_hw): Likewise.
18035 (vsx_hw): Likewise.
18037 2014-05-13 Cary Coutant <ccoutant@google.com>
18039 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18041 2014-05-13 David Malcolm <dmalcolm@redhat.com>
18043 * gengtype-parse.c (require3): Eliminate in favor of...
18045 (require_template_declaration): Update to support optional single *
18048 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
18049 (create_user_defined_type): Handle a single level of explicit
18050 pointerness within template arguments.
18051 (struct write_types_data): Add field "kind".
18052 (filter_type_name): Handle "*" character.
18053 (write_user_func_for_structure_ptr): Require a write_types_data
18054 rather than just a prefix string, so that we can look up the kind
18055 of the wtd and use it as an index into wrote_user_func_for_ptr,
18056 ensuring that such functions are written at most once. Support
18057 subclasses by invoking the marking function of the ultimate base class.
18058 (write_user_func_for_structure_body): Require a write_types_data
18059 rather than just a prefix string, so that we can pass this to
18060 write_user_func_for_structure_ptr.
18061 (write_func_for_structure): Likewise.
18062 (ggc_wtd): Add initializer of new "kind" field.
18063 (pch_wtd): Likewise.
18065 * gengtype.h (enum write_types_kinds): New.
18066 (struct type): Add field wrote_user_func_for_ptr to the "s"
18069 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
18071 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
18072 instead of const_binop.
18073 (fold_binary_loc): Likewise.
18075 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
18077 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
18078 calculation to match get_ref_base_and_extent.
18080 2014-05-13 Catherine Moore <clm@codesourcery.com>
18081 Sandra Loosemore <sandra@codesourcery.com>
18083 * configure.ac: Fix assembly for explicit JALR relocation check.
18084 * configure: Regenerate.
18086 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18088 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
18089 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
18090 Remove associated type declarations and initialisations.
18091 (arm_expand_neon_builtin): Likewise.
18092 (neon_emit_pair_result_insn): Delete.
18093 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
18094 * config/arm/neon.md (neon_vtrn<mode>): Delete.
18095 (neon_vzip<mode>): Likewise.
18096 (neon_vuzp<mode>): Likewise.
18098 2014-05-13 Richard Biener <rguenther@suse.de>
18101 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18102 it needs revisiting whether the call still may be tail-called.
18104 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18106 * rtl.def (SYMBOL_REF): Remove middle "0" field.
18107 * rtl.h (block_symbol): Reduce number of fields to 2.
18108 (rtx_def): Add u2.symbol_ref_flags.
18109 (SYMBOL_REF_FLAGS): Use it.
18110 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18111 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18112 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18113 Lower index of SYMBOL_REF_DATA.
18114 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18115 Print SYMBOL_REF_FLAGS at the same time.
18116 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18118 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18120 * rtl.def (VAR_LOCATION): Remove "i" field.
18121 * rtl.h (rtx_def): Add u2.var_location_status.
18122 (PAT_VAR_LOCATION_STATUS): Use it.
18123 (gen_rtx_VAR_LOCATION): Declare.
18124 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18125 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18126 * var-tracking.c (emit_note_insn_var_location): Remove casts.
18128 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18130 * rtl.def (scratch): Fix outdated comment and remove "0" field.
18131 * gengtype.c (adjust_field_rtx_def): Update accordingly.
18133 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18135 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18136 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18137 * rtl.h (rtx_def): Add insn_uid to u2 field.
18138 (RTX_FLAG_CHECK8): Delete in favor of...
18139 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18140 (INSN_DELETED_P): Update accordingly.
18141 (INSN_UID): Use u2.insn_uid.
18142 (INSN_CHAIN_CODE_P): Define.
18143 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18144 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18145 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18146 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18147 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18148 indices accordingly.
18149 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18150 Update indices for insn-chain rtxes.
18151 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18152 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18153 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18154 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18155 * combine.c (try_combine): Likewise.
18156 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18158 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18160 * rtl.def (REG): Remove middle field.
18161 * rtl.h (rtx_def): Add orignal_regno to u2.
18162 (ORIGINAL_REGNO): Use it instead of field 1.
18163 (REG_ATTRS): Lower field index accordingly.
18164 * gengtype.c (adjust_field_rtx_def): Remove handling of
18165 ORIGINAL_REGNO. Move REG_ATTRS index down.
18166 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18167 code that prints the REGNO.
18169 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18171 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18174 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18176 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18178 2014-05-13 Bin Cheng <bin.cheng@arm.com>
18180 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18181 (alloc_iv): Lower base expressions containing ADDR_EXPR.
18183 2014-05-13 Ian Bolton <ian.bolton@arm.com>
18185 * config/aarch64/aarch64-protos.h
18186 (aarch64_hard_regno_caller_save_mode): New prototype.
18187 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18189 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18191 2014-05-13 Christian Bruel <christian.bruel@st.com>
18193 * target.def (mode_switching): New hook vector.
18194 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18195 (mode_exit, modepriority_to_mode): Likewise.
18196 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18197 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18198 * target.h: Include tm.h and hard-reg-set.h.
18199 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18200 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18201 * doc/tm.texi Regenerate.
18202 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18203 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18204 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18205 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18206 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18207 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18208 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18209 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18210 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18211 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18212 (ix86_emit_mode_set): Hookify.
18213 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18215 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18216 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18217 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18218 (epiphany_mode_priority_to_mode): Remove declaration.
18219 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18220 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18221 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18223 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
18224 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18225 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18227 2014-05-13 Jakub Jelinek <jakub@redhat.com>
18230 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18231 is const0_rtx, return immediately. Don't test count == 0 when
18234 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18236 * Makefile.in: add shrink-wrap.o.
18237 * config/i386/i386.c: include "shrink-wrap.h"
18238 * function.c: Likewise.
18239 (requires_stack_frame_p, next_block_for_reg,
18240 move_insn_for_shrink_wrap, prepare_shrink_wrap,
18241 dup_block_and_redirect): Move to shrink-wrap.c
18242 (thread_prologue_and_epilogue_insns): Extract three code segments
18243 as functions in shrink-wrap.c
18244 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18246 * shrink-wrap.c: New file.
18247 * shrink-wrap.h: New file.
18249 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18251 * doc/extend.texi: Reflect current numbers of pragmas. Remove
18252 reference to Solaris.
18254 2014-05-12 Mike Stump <mikestump@comcast.net>
18257 * genattrtab.c (filename): Add.
18258 (convert_set_attr_alternative): Improve error message.
18259 (check_defs): Restore read_md_filename for error messages.
18260 (gen_insn): Save filename.
18262 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
18264 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18265 -fno-local-ivars and -fivar-visibility.
18266 * c-family/c.opt: Make -Wshadow also implicitly enable
18269 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18271 * doc/tm.texi: Remove reference to deleted macro.
18272 * doc/tm.texi.in: Likewise.
18274 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18277 * config/avr/avr.c (avr_out_store_psi): Use correct constant
18280 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
18283 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18284 * config/arm/aout.h (License): Same.
18285 * config/arm/bpabi.h (License): Same.
18286 * config/arm/elf.h (License): Same.
18287 * config/arm/linux-elf.h (License): Same.
18288 * config/arm/linux-gas.h (License): Same.
18289 * config/arm/netbsd-elf.h (License): Same.
18290 * config/arm/uclinux-eabi.h (License): Same.
18291 * config/arm/uclinux-elf.h (License): Same.
18292 * config/arm/vxworks.h (License): Same.
18294 2014-05-11 Jakub Jelinek <jakub@redhat.com>
18296 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18297 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18298 number of operands to 3.
18299 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18300 * tree-nested.c (convert_nonlocal_omp_clauses,
18301 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18302 * gimplify.c (gimplify_scan_omp_clauses): Handle
18303 OMP_CLAUSE_LINEAR_STMT.
18304 * omp-low.c (lower_rec_input_clauses): Fix typo.
18305 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18306 cast between Fortran boolean_type_node and C _Bool if
18309 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
18311 PR tree-optimization/61136
18312 * wide-int.h (multiple_of_p): Define a version that doesn't return
18314 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18315 integer_zerop/const_binop pair.
18316 (multiple_of_p): Likewise, converting both operands to widest_int
18319 2014-05-09 Teresa Johnson <tejohnson@google.com>
18321 * cgraphunit.c (analyze_functions): Use correct dump file.
18323 2014-05-09 Florian Weimer <fweimer@redhat.com>
18325 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18327 (stack_protect_return_slot_p): New function.
18328 (expand_used_vars): Call stack_protect_decl_p and
18329 stack_protect_return_slot_p for -fstack-protector-strong.
18331 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
18332 Andrew Haley <aph@redhat.com>
18333 Richard Sandiford <rdsandiford@googlemail.com>
18335 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18338 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
18340 PR middle-end/61111
18341 * fold-const.c (fold_binary_loc): Changed width of mask.
18343 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18345 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18346 unsigned int initializers for regno_in, regno_out.
18348 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18351 * config/avr/avr.md (cc): Add new attribute set_vzn.
18352 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18353 Set cc insn attribute to set_vzn instead of set_zn for alternatives
18354 with INC, DEC or NEG.
18355 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18356 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18357 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18359 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18362 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18364 * wide-int.cc (UTItype): Define.
18365 (UDWtype): Define for appropriate W_TYPE_SIZE.
18367 2014-05-09 Richard Biener <rguenther@suse.de>
18369 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18370 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18371 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18372 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18373 ssa_propagate): Adjust.
18375 2014-05-08 Jeff Law <law@redhat.com>
18377 PR tree-optimization/61009
18378 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18379 tri-state rather than a boolean. When a block is too big to
18380 thread through, inform caller via negative return value.
18381 (thread_across_edge): If a block was too big for normal threading,
18382 then it's too big for a joiner too, so remove temporary equivalences
18383 and return immediately.
18385 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18386 Matthias Klose <doko@ubuntu.com>
18389 * optc-gen.awk: Fix option handling for -Wunused-parameter.
18391 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18394 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18396 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18399 * config/alpha/alpha.c: Include gimple-iterator.h.
18400 (alpha_gimple_fold_builtin): New function. Move
18401 ALPHA_BUILTIN_UMULH folding from ...
18402 (alpha_fold_builtin): ... here.
18403 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18405 2014-05-08 Wei Mi <wmi@google.com>
18408 * config/i386/i386.c (ix86_compute_frame_layout): Update
18409 preferred_stack_boundary for call, expanded from tls descriptor.
18410 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18411 to depend on SP register.
18412 (*tls_local_dynamic_base_32_gnu): Ditto.
18413 (*tls_local_dynamic_32_once): Ditto.
18414 (tls_global_dynamic_64_<mode>): Set
18415 ix86_tls_descriptor_calls_expanded_in_cfun.
18416 (tls_local_dynamic_base_64_<mode>): Ditto.
18417 (tls_global_dynamic_32): Set
18418 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18419 to depend on SP register.
18420 (tls_local_dynamic_base_32): Ditto.
18422 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18424 * config/arm/arm_neon.h: Update comment.
18425 * config/arm/neon-docgen.ml: Delete.
18426 * config/arm/neon-gen.ml: Delete.
18427 * doc/arm-neon-intrinsics.texi: Update comment.
18429 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18431 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18433 (vand, vorr, veor, vorn, vbic): Remove.
18434 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18436 (neon_vsub_unspec): Likewise.
18437 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18439 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18441 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18442 (vadd_s16): Likewise.
18443 (vadd_s32): Likewise.
18444 (vadd_f32): Likewise.
18445 (vadd_u8): Likewise.
18446 (vadd_u16): Likewise.
18447 (vadd_u32): Likewise.
18448 (vadd_s64): Likewise.
18449 (vadd_u64): Likewise.
18450 (vaddq_s8): Likewise.
18451 (vaddq_s16): Likewise.
18452 (vaddq_s32): Likewise.
18453 (vaddq_s64): Likewise.
18454 (vaddq_f32): Likewise.
18455 (vaddq_u8): Likewise.
18456 (vaddq_u16): Likewise.
18457 (vaddq_u32): Likewise.
18458 (vaddq_u64): Likewise.
18459 (vmul_s8): Likewise.
18460 (vmul_s16): Likewise.
18461 (vmul_s32): Likewise.
18462 (vmul_f32): Likewise.
18463 (vmul_u8): Likewise.
18464 (vmul_u16): Likewise.
18465 (vmul_u32): Likewise.
18466 (vmul_p8): Likewise.
18467 (vmulq_s8): Likewise.
18468 (vmulq_s16): Likewise.
18469 (vmulq_s32): Likewise.
18470 (vmulq_f32): Likewise.
18471 (vmulq_u8): Likewise.
18472 (vmulq_u16): Likewise.
18473 (vmulq_u32): Likewise.
18474 (vsub_s8): Likewise.
18475 (vsub_s16): Likewise.
18476 (vsub_s32): Likewise.
18477 (vsub_f32): Likewise.
18478 (vsub_u8): Likewise.
18479 (vsub_u16): Likewise.
18480 (vsub_u32): Likewise.
18481 (vsub_s64): Likewise.
18482 (vsub_u64): Likewise.
18483 (vsubq_s8): Likewise.
18484 (vsubq_s16): Likewise.
18485 (vsubq_s32): Likewise.
18486 (vsubq_s64): Likewise.
18487 (vsubq_f32): Likewise.
18488 (vsubq_u8): Likewise.
18489 (vsubq_u16): Likewise.
18490 (vsubq_u32): Likewise.
18491 (vsubq_u64): Likewise.
18492 (vand_s8): Likewise.
18493 (vand_s16): Likewise.
18494 (vand_s32): Likewise.
18495 (vand_u8): Likewise.
18496 (vand_u16): Likewise.
18497 (vand_u32): Likewise.
18498 (vand_s64): Likewise.
18499 (vand_u64): Likewise.
18500 (vandq_s8): Likewise.
18501 (vandq_s16): Likewise.
18502 (vandq_s32): Likewise.
18503 (vandq_s64): Likewise.
18504 (vandq_u8): Likewise.
18505 (vandq_u16): Likewise.
18506 (vandq_u32): Likewise.
18507 (vandq_u64): Likewise.
18508 (vorr_s8): Likewise.
18509 (vorr_s16): Likewise.
18510 (vorr_s32): Likewise.
18511 (vorr_u8): Likewise.
18512 (vorr_u16): Likewise.
18513 (vorr_u32): Likewise.
18514 (vorr_s64): Likewise.
18515 (vorr_u64): Likewise.
18516 (vorrq_s8): Likewise.
18517 (vorrq_s16): Likewise.
18518 (vorrq_s32): Likewise.
18519 (vorrq_s64): Likewise.
18520 (vorrq_u8): Likewise.
18521 (vorrq_u16): Likewise.
18522 (vorrq_u32): Likewise.
18523 (vorrq_u64): Likewise.
18524 (veor_s8): Likewise.
18525 (veor_s16): Likewise.
18526 (veor_s32): Likewise.
18527 (veor_u8): Likewise.
18528 (veor_u16): Likewise.
18529 (veor_u32): Likewise.
18530 (veor_s64): Likewise.
18531 (veor_u64): Likewise.
18532 (veorq_s8): Likewise.
18533 (veorq_s16): Likewise.
18534 (veorq_s32): Likewise.
18535 (veorq_s64): Likewise.
18536 (veorq_u8): Likewise.
18537 (veorq_u16): Likewise.
18538 (veorq_u32): Likewise.
18539 (veorq_u64): Likewise.
18540 (vbic_s8): Likewise.
18541 (vbic_s16): Likewise.
18542 (vbic_s32): Likewise.
18543 (vbic_u8): Likewise.
18544 (vbic_u16): Likewise.
18545 (vbic_u32): Likewise.
18546 (vbic_s64): Likewise.
18547 (vbic_u64): Likewise.
18548 (vbicq_s8): Likewise.
18549 (vbicq_s16): Likewise.
18550 (vbicq_s32): Likewise.
18551 (vbicq_s64): Likewise.
18552 (vbicq_u8): Likewise.
18553 (vbicq_u16): Likewise.
18554 (vbicq_u32): Likewise.
18555 (vbicq_u64): Likewise.
18556 (vorn_s8): Likewise.
18557 (vorn_s16): Likewise.
18558 (vorn_s32): Likewise.
18559 (vorn_u8): Likewise.
18560 (vorn_u16): Likewise.
18561 (vorn_u32): Likewise.
18562 (vorn_s64): Likewise.
18563 (vorn_u64): Likewise.
18564 (vornq_s8): Likewise.
18565 (vornq_s16): Likewise.
18566 (vornq_s32): Likewise.
18567 (vornq_s64): Likewise.
18568 (vornq_u8): Likewise.
18569 (vornq_u16): Likewise.
18570 (vornq_u32): Likewise.
18571 (vornq_u64): Likewise.
18573 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18575 * wide-int.cc (UTItype): Define.
18576 (UDWtype): Define for appropriate W_TYPE_SIZE.
18578 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
18580 PR tree-optimization/59100
18581 * tree-ssa-phiopt.c: Include tree-inline.h.
18582 (neutral_element_p, absorbing_element_p): New functions.
18583 (value_replacement): Handle conditional binary operations with a
18584 neutral or absorbing element.
18586 2014-05-08 Richard Biener <rguenther@suse.de>
18588 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18589 folding the expression.
18590 (valueize_expr): Remove.
18591 (visit_reference_op_load): Do not valueize the result of
18593 (simplify_binary_expression): Likewise.
18594 (simplify_unary_expression): Likewise.
18596 2014-05-08 Richard Biener <rguenther@suse.de>
18598 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18599 looking at TYPE_ARG_TYPES.
18601 2014-05-08 Richard Biener <rguenther@suse.de>
18603 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18604 pointer propagation special-case.
18606 2014-05-08 Bin Cheng <bin.cheng@arm.com>
18608 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18609 core part of address expressions.
18611 2014-05-08 Alan Modra <amodra@gmail.com>
18614 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18615 loads and stores when -mno-strict-align at any alignment.
18616 (expand_block_clear): Similarly. Also correct calculation of
18619 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18621 PR middle-end/39246
18622 * tree-complex.c (expand_complex_move): Keep line info when expanding
18624 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18625 of complex expression. Use new argument to display correct location
18626 for values coming from phi statement.
18627 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18628 (warn_uninitialized_phi): Pass location of phi argument to
18630 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18631 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18633 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18635 * config/rs6000/predicates.md (indexed_address_mem): New.
18636 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18637 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18638 fpstore_ux, fpstore_u.
18639 (sign_extend, indexed, update): New.
18640 (cell_micro): Adjust.
18641 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18642 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18643 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18644 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18645 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18646 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18647 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18648 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18649 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18650 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18651 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18652 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18653 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18654 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18655 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18657 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18658 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18659 *vsx_extract_<mode>_store): Adjust.
18660 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18661 is_cracked_insn, insn_must_be_first_in_group,
18662 insn_must_be_last_in_group): Adjust.
18664 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18666 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18667 ppc440-fpstore): Adjust.
18668 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18669 ppc476-fpstore): Adjust.
18670 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18671 ppc601-fpstore): Adjust.
18672 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18674 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18676 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18677 ppc7450-fpstore): Adjust.
18678 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18679 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18680 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18682 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18683 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18684 cell-fpstore, cell-fpstore-update): Adjust.
18685 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
18686 ppce300c3_store, ppce300c3_fpstore): Adjust.
18687 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
18688 e500mc_fpstore): Adjust.
18689 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
18690 e500mc64_store, e500mc64_fpstore): Adjust.
18691 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
18692 e5500_fpstore): Adjust.
18693 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
18694 e6500_fpstore): Adjust.
18695 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
18697 * config/rs6000/power4.md (power4-load, power4-load-ext,
18698 power4-load-ext-update, power4-load-ext-update-indexed,
18699 power4-load-update-indexed, power4-load-update, power4-fpload,
18700 power4-fpload-update, power4-store, power4-store-update,
18701 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
18703 * config/rs6000/power5.md (power5-load, power5-load-ext,
18704 power5-load-ext-update, power5-load-ext-update-indexed,
18705 power5-load-update-indexed, power5-load-update, power5-fpload,
18706 power5-fpload-update, power5-store, power5-store-update,
18707 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
18709 * config/rs6000/power6.md (power6-load, power6-load-ext,
18710 power6-load-update, power6-load-update-indexed,
18711 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
18712 power6-fpload-update, power6-store, power6-store-update,
18713 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
18715 * config/rs6000/power7.md (power7-load, power7-load-ext,
18716 power7-load-update, power7-load-update-indexed,
18717 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
18718 power7-fpload-update, power7-store, power7-store-update,
18719 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
18721 * config/rs6000/power8.md (power8-load, power8-load-update,
18722 power8-load-ext, power8-load-ext-update, power8-fpload,
18723 power8-fpload-update, power8-store, power8-store-update-indexed,
18724 power8-fpstore, power8-fpstore-update): Adjust.
18725 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
18727 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
18728 titan_lsu_store, titan_lsu_fpstore): Adjust.
18729 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
18731 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18734 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
18735 unrolled byte insns. Emit address increments after move insns.
18737 2014-05-07 David Malcolm <dmalcolm@redhat.com>
18739 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
18740 const_gimple, rather than a gimple.
18741 (gimple_call_builtin_p): Likewise, for the three variants.
18743 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
18744 (gimple_call_builtin_p): Likewise, for the three variants.
18746 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18748 PR tree-optimization/61095
18749 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
18751 2014-05-07 Richard Biener <rguenther@suse.de>
18753 PR tree-optimization/61034
18754 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
18755 (maybe_skip_until): Use translate to take into account
18756 lattices when trying to do disambiguations.
18757 (get_continuation_for_phi_1): Likewise.
18758 (get_continuation_for_phi): Adjust for added translate arguments.
18759 (walk_non_aliased_vuses): Likewise.
18760 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
18761 (walk_non_aliased_vuses): Likewise.
18762 (call_may_clobber_ref_p_1): Declare.
18763 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
18764 calls. Stop early if we are only supposed to disambiguate.
18765 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
18767 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
18769 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
18770 Emit an error when the function has arguments.
18772 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18774 * cfgloop.h (unswitch_loops): Remove.
18775 * doc/passes.texi: Remove references to loop-unswitch.c
18776 * timevar.def (TV_LOOP_UNSWITCH): Remove.
18778 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
18780 * tree-vect-data-refs.c (vect_grouped_load_supported): New
18781 check for loads group of length 3.
18782 (vect_permute_load_chain): New permutations for loads group of
18784 * tree-vect-stmts.c (vect_model_load_cost): Change cost
18785 of vec_perm_shuffle for the new permutations.
18787 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
18789 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
18790 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
18791 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
18792 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
18793 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
18794 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
18795 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
18796 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
18798 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18800 * loop-unswitch.c: Delete.
18802 2014-05-07 Richard Biener <rguenther@suse.de>
18804 * config.gcc: Always set need_64bit_hwint to yes.
18806 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
18808 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
18809 of using optimize_size.
18811 2014-05-06 Mike Stump <mikestump@comcast.net>
18813 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
18815 2014-05-06 Joseph Myers <joseph@codesourcery.com>
18817 * config/i386/sse.md (*mov<mode>_internal)
18818 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
18819 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
18820 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
18821 (*<code><mode>3, *andnot<mode>3<mask_name>)
18822 (<mask_codefor><code><mode>3<mask_name>): Only consider
18823 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
18825 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18828 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18830 * lra-constraints.c (valid_address_p): Move earlier in file.
18831 Add a constraint argument to the address_info version.
18832 (satisfies_memory_constraint_p): New function.
18833 (satisfies_address_constraint_p): Likewise.
18834 (process_alt_operands, curr_insn_transform): Use them.
18835 (process_address): Pass the constraint to valid_address_p when
18836 checking address operands.
18838 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
18840 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
18841 to their respective blocks. Fix inadvertent use of "node".
18843 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18845 * emit-rtl.c (init_derived_machine_modes): New functionm, split
18847 (init_emit_once): ...here.
18848 * rtl.h (init_derived_machine_modes): Declare.
18849 * toplev.c (do_compile): Call it even if no_backend.
18851 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
18852 Mike Stump <mikestump@comcast.net>
18853 Richard Sandiford <rdsandiford@googlemail.com>
18854 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18856 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
18857 (rtx_equal_for_memref_p): Update comment.
18858 (adjust_offset_for_component_ref): Use wide-int interfaces.
18859 * builtins.c (get_object_alignment_2): Likewise.
18860 (c_readstr): Likewise.
18861 (target_char_cast): Add comment.
18862 (determine_block_size): Use wide-int interfaces.
18863 (expand_builtin_signbit): Likewise.
18864 (fold_builtin_int_roundingfn): Likewise.
18865 (fold_builtin_bitop): Likewise.
18866 (fold_builtin_bswap): Likewise.
18867 (fold_builtin_logarithm): Use signop.
18868 (fold_builtin_pow): Likewise.
18869 (fold_builtin_memory_op): Use wide-int interfaces.
18870 (fold_builtin_object_size): Likewise.
18871 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
18872 nb_iterations_estimate.
18873 (record_niter_bound): Use wide-int interfaces.
18874 (get_estimated_loop_iterations_int): Likewise.
18875 (get_estimated_loop_iterations): Likewise.
18876 (get_max_loop_iterations): Likewise.
18877 * cfgloop.h: Include wide-int.h.
18878 (struct nb_iter_bound): Change bound to widest_int.
18879 (struct loop): Change nb_iterations_upper_bound and
18880 nb_iterations_estimate to widest_int.
18881 (record_niter_bound): Switch to use widest_int.
18882 (get_estimated_loop_iterations): Likewise.
18883 (get_max_loop_iterations): Likewise.
18884 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
18885 update for wide-int.
18886 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
18887 * combine.c (try_combine): Likewise.
18888 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
18889 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
18891 (aarch64_float_const_representable_p): Likewise.
18892 * config/arc/arc.c: Include wide-int.h.
18893 (arc_can_use_doloop_p): Use wide-int interfaces.
18894 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
18895 (vfp3_const_double_index): Likewise.
18896 * config/avr/avr.c (avr_out_round): Likewise.
18897 (avr_fold_builtin): Likewise.
18898 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
18899 (bfin_can_use_doloop_p): Likewise.
18900 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
18901 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
18902 * config/i386/i386.c: Include wide-int.h.
18903 (ix86_data_alignment): Use wide-int interfaces.
18904 (ix86_local_alignment): Likewise.
18905 (ix86_emit_swsqrtsf): Update real_from_integer.
18906 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
18907 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
18908 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
18909 (zero_constant): Likewise.
18910 (input_operand): Likewise.
18911 (splat_input_operand): Likewise.
18912 (non_logical_cint_operand): Change const_double to const_wide_int.
18913 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
18914 (easy_altivec_constant): Remove comment.
18915 (paired_expand_vector_init): Use CONSTANT_P.
18916 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
18917 (rs6000_emit_move): Update checks.
18918 (rs6000_aggregate_candidate): Use wide-int interfaces.
18919 (rs6000_expand_ternop_builtin): Likewise.
18920 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
18921 (rs6000_assemble_integer): Likewise.
18922 (rs6000_hash_constant): Likewise.
18923 (output_toc): Likewise.
18924 (rs6000_rtx_costs): Likewise.
18925 (rs6000_emit_swrsqrt); Update call to real_from_integer.
18926 * config/rs6000/rs6000-c.c: Include wide-int.h.
18927 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
18928 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
18929 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
18930 Handle CONST_WIDE_INT.
18931 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
18932 Use tree_fits_uhwi_p.
18933 * config/sparc/sparc.c: Include wide-int.h.
18934 (sparc_fold_builtin): Use wide-int interfaces.
18935 * config/vax/vax.c: Include wide-int.h.
18936 (vax_float_literal): Use real_from_integer.
18937 * coretypes.h (struct hwivec_def): New.
18939 (const_hwivec): New.
18940 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
18941 (equiv_constant): Handle CONST_WIDE_INT.
18942 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
18943 (cselib_hash_rtx): Handle CONST_WIDE_INT.
18944 * dbxout.c (stabstr_U): Use wide-int interfaces.
18945 (dbxout_type): Update to use cst_fits_shwi_p.
18946 * defaults.h (LOG2_BITS_PER_UNIT): Define.
18947 (TARGET_SUPPORTS_WIDE_INT): Add default.
18948 * dfp.c: Include wide-int.h.
18949 (decimal_real_to_integer2): Use wide-int interfaces and rename to
18950 decimal_real_to_integer.
18951 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
18952 decimal_real_to_integer.
18953 * doc/generic.texi (Constant expressions): Update for wide_int.
18954 * doc/rtl.texi (const_double): Likewise.
18955 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
18956 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
18957 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
18958 (REAL_VALUE_FROM_INT): Remove.
18959 (TARGET_SUPPORTS_WIDE_INT): New.
18960 * doc/tm.texi: Regenerate.
18961 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
18962 * double-int.h: Include wide-int.h.
18963 (struct wi::int_traits): New.
18964 * dwarf2out.c (get_full_len): New.
18965 (dw_val_equal_p): Add case dw_val_class_wide_int.
18966 (size_of_loc_descr): Likewise.
18967 (output_loc_operands): Likewise.
18968 (insert_double): Remove.
18969 (insert_wide_int): New.
18970 (add_AT_wide): New.
18971 (print_die): Add case dw_val_class_wide_int.
18972 (attr_checksum): Likewise.
18973 (attr_checksum_ordered): Likewise.
18974 (same_dw_val_p): Likewise.
18975 (size_of_die): Likewise.
18976 (value_format): Likewise.
18977 (output_die): Likewise.
18978 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
18980 (clz_loc_descriptor): Use wide-int interfaces.
18981 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
18982 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
18983 (round_up_to_align): Use wide-int interfaces.
18984 (field_byte_offset): Likewise.
18985 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
18986 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
18987 CONST_DOUBLE handling. Use wide-int interfaces.
18988 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
18989 (gen_enumeration_type_die): Use add_AT_wide.
18990 (hash_loc_operands): Add case dw_val_class_wide_int.
18991 (compare_loc_operands): Likewise.
18992 * dwarf2out.h: Include wide-int.h.
18993 (wide_int_ptr): New.
18994 (enum dw_val_class): Add dw_val_class_wide_int.
18995 (struct dw_val_struct): Add val_wide.
18996 * emit-rtl.c (const_wide_int_htab): New.
18997 (const_wide_int_htab_hash): New.
18998 (const_wide_int_htab_eq): New.
18999 (lookup_const_wide_int): New.
19000 (const_double_htab_hash): Use wide-int interfaces.
19001 (const_double_htab_eq): Likewise.
19002 (rtx_to_double_int): Conditionally compile for wide-int.
19003 (immed_double_int_const): Rename to immed_wide_int_const and
19004 update for wide-int.
19005 (immed_double_const): Conditionally compile for wide-int.
19006 (init_emit_once): Use wide-int interfaces.
19007 * explow.c (plus_constant): Likewise.
19008 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
19009 (lshift_value): Use wide-int interfaces.
19010 (expand_mult): Likewise.
19011 (choose_multiplier): Likewise.
19012 (expand_smod_pow2): Likewise.
19013 (make_tree): Likewise.
19014 * expr.c (convert_modes): Consolidate handling of constants.
19015 Use wide-int interfaces.
19016 (emit_group_load_1): Add note.
19017 (store_expr): Update comment.
19018 (get_inner_reference): Use wide-int interfaces.
19019 (expand_constructor): Update comment.
19020 (expand_expr_real_2): Use wide-int interfaces.
19021 (expand_expr_real_1): Likewise.
19022 (reduce_to_bit_field_precision): Likewise.
19023 (const_vector_from_tree): Likewise.
19024 * final.c: Include wide-int-print.h.
19025 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
19026 * fixed-value.c: Include wide-int.h.
19027 (fixed_from_string): Use wide-int interfaces.
19028 (fixed_to_decimal): Likewise.
19029 (fixed_convert_from_real): Likewise.
19030 (real_convert_from_fixed): Likewise.
19031 * fold-const.h (mem_ref_offset): Return an offset_int.
19032 (div_if_zero_remainder): Remove code parameter.
19033 * fold-const.c (div_if_zero_remainder): Remove code parameter.
19034 Use wide-int interfaces.
19035 (may_negate_without_overflow_p): Use wide-int interfaces.
19036 (negate_expr_p): Likewise.
19037 (fold_negate_expr): Likewise.
19038 (int_const_binop_1): Likewise.
19039 (const_binop): Likewise.
19040 (fold_convert_const_int_from_int): Likewise.
19041 (fold_convert_const_int_from_real): Likewise.
19042 (fold_convert_const_int_from_fixed): Likewise.
19043 (fold_convert_const_fixed_from_int): Likewise.
19044 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
19045 (sign_bit_p): Use wide-int interfaces.
19046 (make_range_step): Likewise.
19047 (build_range_check): Likewise. Pass an integer of the correct type
19048 instead of using integer_one_node.
19049 (range_predecessor): Pass an integer of the correct type instead
19050 of using integer_one_node.
19051 (range_successor): Likewise.
19052 (merge_ranges): Likewise.
19053 (unextend): Use wide-int interfaces.
19054 (extract_muldiv_1): Likewise.
19055 (fold_div_compare): Likewise.
19056 (fold_single_bit_test): Likewise.
19057 (fold_sign_changed_comparison): Likewise.
19058 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
19059 (fold_plusminus_mult_expr): Use wide-int interfaces.
19060 (native_encode_int): Likewise.
19061 (native_interpret_int): Likewise.
19062 (fold_unary_loc): Likewise.
19063 (pointer_may_wrap_p): Likewise.
19064 (size_low_cst): Likewise.
19065 (mask_with_tz): Likewise.
19066 (fold_binary_loc): Likewise.
19067 (fold_ternary_loc): Likewise.
19068 (multiple_of_p): Likewise.
19069 (tree_call_nonnegative_warnv_p): Update calls to
19070 tree_int_cst_min_precision and real_from_integer.
19071 (fold_negate_const): Use wide-int interfaces.
19072 (fold_abs_const): Likewise.
19073 (fold_relational_const): Use tree_int_cst_lt.
19074 (round_up_loc): Use wide-int interfaces.
19075 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
19076 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
19077 * gengtype.c: Remove include of double-int.h.
19078 (do_typedef): Use wide-int interfaces.
19079 (open_base_files): Add wide-int.h.
19080 (main): Add offset_int and widest_int typedefs.
19081 * gengtype-lex.l: Handle "^".
19082 (CXX_KEYWORD): Add "static".
19083 * gengtype-parse.c (require3): New.
19084 (require_template_declaration): Handle constant template arguments
19085 and nested templates.
19086 * gengtype-state.c: Don't include "double-int.h".
19087 * genpreds.c (write_one_predicate_function): Update comment.
19088 (write_tm_constrs_h): Add check for hval and lval use in
19090 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
19091 (add_to_sequence): Likewise.
19092 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
19093 and const_double_operand.
19094 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
19096 * gimple-fold.c (get_base_constructor): Likewise.
19097 (fold_array_ctor_reference): Likewise.
19098 (fold_nonarray_ctor_reference): Likewise.
19099 (fold_const_aggregate_ref_1): Likewise.
19100 (gimple_val_nonnegative_real_p): Likewise.
19101 (gimple_fold_indirect_ref): Likewise.
19102 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19103 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19104 (struct slsr_cand_d): Change index to be widest_int.
19105 (struct incr_info_d): Change incr to be widest_int.
19106 (alloc_cand_and_find_basis): Use wide-int interfaces.
19107 (slsr_process_phi): Likewise.
19108 (backtrace_base_for_ref): Likewise. Return a widest_int.
19109 (restructure_reference): Take a widest_int instead of a double_int.
19110 (slsr_process_ref): Use wide-int interfaces.
19111 (create_mul_ssa_cand): Likewise.
19112 (create_mul_imm_cand): Likewise.
19113 (create_add_ssa_cand): Likewise.
19114 (create_add_imm_cand): Take a widest_int instead of a double_int.
19115 (slsr_process_add): Use wide-int interfaces.
19116 (slsr_process_cast): Likewise.
19117 (slsr_process_copy): Likewise.
19118 (dump_candidate): Likewise.
19119 (dump_incr_vec): Likewise.
19120 (replace_ref): Likewise.
19121 (cand_increment): Likewise. Return a widest_int.
19122 (cand_abs_increment): Likewise.
19123 (replace_mult_candidate): Take a widest_int instead of a double_int.
19124 (replace_unconditional_candidate): Use wide-int interfaces.
19125 (incr_vec_index): Take a widest_int instead of a double_int.
19126 (create_add_on_incoming_edge): Likewise.
19127 (create_phi_basis): Use wide-int interfaces.
19128 (replace_conditional_candidate): Likewise.
19129 (record_increment): Take a widest_int instead of a double_int.
19130 (record_phi_increments): Use wide-int interfaces.
19131 (phi_incr_cost): Take a widest_int instead of a double_int.
19132 (lowest_cost_path): Likewise.
19133 (total_savings): Likewise.
19134 (analyze_increments): Use wide-int interfaces.
19135 (ncd_with_phi): Take a widest_int instead of a double_int.
19136 (ncd_of_cand_and_phis): Likewise.
19137 (nearest_common_dominator_for_cands): Likewise.
19138 (insert_initializers): Use wide-int interfaces.
19139 (all_phi_incrs_profitable): Likewise.
19140 (replace_one_candidate): Likewise.
19141 (replace_profitable_candidates): Likewise.
19142 * godump.c: Include wide-int-print.h.
19143 (go_output_typedef): Use wide-int interfaces.
19144 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19145 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19146 (build_loop_iteration_domains): Likewise.
19147 * hooks.h: Include wide-int.h rather than double-int.h.
19148 (hook_bool_dint_dint_uint_bool_true): Delete.
19149 (hook_bool_wint_wint_uint_bool_true): Declare.
19150 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19151 (hook_bool_wint_wint_uint_bool_true): New.
19152 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19154 (ubsan_expand_si_overflow_mul_check): Likewise.
19155 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19156 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19157 (get_ancestor_addr_info): Likewise.
19158 (ipa_modify_call_arguments): Likewise.
19159 * loop-doloop.c (doloop_modify): Likewise.
19160 (doloop_optimize): Likewise.
19161 * loop-iv.c (iv_number_of_iterations): Likewise.
19162 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19163 (unroll_loop_constant_iterations): Likewise.
19164 (decide_unroll_runtime_iterations): Likewise.
19165 (unroll_loop_runtime_iterations): Likewise.
19166 (decide_peel_simple): Likewise.
19167 (decide_unroll_stupid): Likewise.
19168 * lto-streamer-in.c (streamer_read_wi): Add.
19169 (input_cfg): Use wide-int interfaces.
19170 (lto_input_tree_1): Likewise.
19171 * lto-streamer-out.c (streamer_write_wi): Add.
19172 (hash_tree): Use wide-int interfaces.
19173 (output_cfg): Likewise.
19174 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19175 (GTFILES): Add wide-int.h and signop.h.
19176 (TAGS): Look for .cc files too.
19177 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19178 * optabs.c (expand_subword_shift): Likewise.
19179 (expand_doubleword_shift): Likewise.
19180 (expand_absneg_bit): Likewise.
19181 (expand_copysign_absneg): Likewise.
19182 (expand_copysign_bit): Likewise.
19183 * postreload.c (reload_cse_simplify_set): Likewise.
19184 * predict.c (predict_iv_comparison): Likewise.
19185 * pretty-print.h: Include wide-int-print.h.
19187 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19188 * print-tree.c: Include wide-int-print.h.
19189 (print_node_brief): Use wide-int interfaces.
19190 (print_node): Likewise.
19191 * read-rtl.c (validate_const_wide_int): New.
19192 (read_rtx_code): Add CONST_WIDE_INT case.
19193 * real.c: Include wide-int.h.
19194 (real_to_integer2): Delete.
19195 (real_to_integer): New function, returning a wide_int.
19196 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19197 (ten_to_ptwo): Update call to real_from_integer.
19198 (real_digit): Likewise.
19199 * real.h: Include signop.h, wide-int.h and insn-modes.h.
19200 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19201 (REAL_VALUE_TO_INT): Delete.
19202 (real_to_integer): Declare a wide-int form.
19203 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19204 * recog.c (const_int_operand): Improve comment.
19205 (const_scalar_int_operand): New.
19206 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19207 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19208 (split_double): Likewise.
19209 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19210 (rtx_size): Likewise.
19211 (rtx_alloc_stat_v): New.
19212 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19213 (cwi_output_hex): New.
19214 (iterative_hash_rtx): Handle CONST_WIDE_INT.
19215 (cwi_check_failed_bounds): New.
19216 * rtl.def (CONST_WIDE_INT): New.
19217 * rtl.h: Include <utility> and wide-int.h.
19218 (struct hwivec_def): New.
19219 (CWI_GET_NUM_ELEM): New.
19220 (CWI_PUT_NUM_ELEM): New.
19221 (struct rtx_def): Add num_elem and hwiv.
19222 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19223 (CASE_CONST_UNIQUE): Likewise.
19224 (CASE_CONST_ANY): Likewise.
19225 (CONST_SCALAR_INT_P): Likewise.
19226 (CONST_WIDE_INT_P): New.
19228 (HWIVEC_CHECK): New.
19229 (cwi_check_failed_bounds): New.
19231 (HWIVEC_CHECK): New.
19232 (CONST_WIDE_INT_VEC) New.
19233 (CONST_WIDE_INT_NUNITS) New.
19234 (CONST_WIDE_INT_ELT) New.
19235 (rtx_mode_t): New type.
19236 (wi::int_traits <rtx_mode_t>): New.
19238 (wi::min_value): New.
19239 (wi::max_value): New.
19241 (const_wide_int_alloc): New.
19242 (immed_wide_int_const): New.
19243 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19244 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19245 * signop.h: New file.
19246 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19247 (simplify_const_unary_operation): Use wide-int interfaces.
19248 (simplify_binary_operation_1): Likewise.
19249 (simplify_const_binary_operation): Likewise.
19250 (simplify_const_relational_operation): Likewise.
19251 (simplify_immed_subreg): Likewise.
19252 * stmt.c (expand_case): Likewise.
19253 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19254 signop rather than a bool.
19255 * stor-layout.c (layout_type): Use wide-int interfaces.
19256 (initialize_sizetypes): Update calls to
19257 set_min_and_max_values_for_integral_type.
19258 (set_min_and_max_values_for_integral_type): Take a signop rather
19259 than a bool. Use wide-int interfaces.
19260 (fixup_signed_type): Update accordingly. Remove
19261 HOST_BITS_PER_DOUBLE_INT limit.
19262 (fixup_unsigned_type): Likewise.
19263 * system.h (STATIC_CONSTANT_P): New.
19264 (STATIC_ASSERT): New.
19265 * target.def (can_use_doloop_p): Take widest_ints rather than
19267 * target.h: Include wide-int.h rather than double-int.h.
19268 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19270 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19271 rather than INT_CST_LT_UNSIGNED.
19272 (can_use_doloop_if_innermost): Take widest_ints rather than
19274 * tree-affine.c: Include wide-int-print.h.
19275 (double_int_ext_for_comb): Delete.
19276 (wide_int_ext_for_comb): New.
19277 (aff_combination_zero): Use wide-int interfaces.
19278 (aff_combination_const): Take a widest_int instead of a double_int.
19279 (aff_combination_elt): Use wide-int interfaces.
19280 (aff_combination_scale): Take a widest_int instead of a double_int.
19281 (aff_combination_add_elt): Likewise.
19282 (aff_combination_add_cst): Likewise.
19283 (aff_combination_add): Use wide-int interfaces.
19284 (aff_combination_convert): Likewise.
19285 (tree_to_aff_combination): Likewise.
19286 (add_elt_to_tree): Take a widest_int instead of a double_int.
19287 (aff_combination_to_tree): Use wide-int interfaces.
19288 (aff_combination_remove_elt): Likewise.
19289 (aff_combination_add_product): Take a widest_int instead of
19291 (aff_combination_mult): Use wide-int interfaces.
19292 (aff_combination_expand): Likewise.
19293 (double_int_constant_multiple_p): Delete.
19294 (wide_int_constant_multiple_p): New.
19295 (aff_combination_constant_multiple_p): Take a widest_int pointer
19296 instead of a double_int pointer.
19297 (print_aff): Use wide-int interfaces.
19298 (get_inner_reference_aff): Take a widest_int pointer
19299 instead of a double_int pointer.
19300 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19301 * tree-affine.h: Include wide-int.h.
19302 (struct aff_comb_elt): Change type of coef to widest_int.
19303 (struct affine_tree_combination): Change type of offset to widest_int.
19304 (double_int_ext_for_comb): Delete.
19305 (wide_int_ext_for_comb): New.
19306 (aff_combination_const): Use widest_int instead of double_int.
19307 (aff_combination_scale): Likewise.
19308 (aff_combination_add_elt): Likewise.
19309 (aff_combination_constant_multiple_p): Likewise.
19310 (get_inner_reference_aff): Likewise.
19311 (aff_comb_cannot_overlap_p): Likewise.
19312 (aff_combination_zero_p): Use wide-int interfaces.
19313 * tree.c: Include tree.h.
19314 (init_ttree): Use make_int_cst.
19315 (tree_code_size): Removed code for INTEGER_CST case.
19316 (tree_size): Add INTEGER_CST case.
19317 (make_node_stat): Update comment.
19318 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19319 (build_int_cst_type): Use wide-int interfaces.
19320 (double_int_to_tree): Likewise.
19321 (double_int_fits_to_tree_p): Delete.
19322 (force_fit_type_double): Delete.
19323 (force_fit_type): New.
19324 (int_cst_hash_hash): Use wide-int interfaces.
19325 (int_cst_hash_eq): Likewise.
19326 (build_int_cst_wide): Delete.
19327 (wide_int_to_tree): New.
19328 (cache_integer_cst): Use wide-int interfaces.
19329 (build_low_bits_mask): Likewise.
19330 (cst_and_fits_in_hwi): Likewise.
19331 (real_value_from_int_cst): Likewise.
19332 (make_int_cst_stat): New.
19333 (integer_zerop): Use wide_int interfaces.
19334 (integer_onep): Likewise.
19335 (integer_all_onesp): Likewise.
19336 (integer_pow2p): Likewise.
19337 (integer_nonzerop): Likewise.
19338 (tree_log2): Likewise.
19339 (tree_floor_log2): Likewise.
19340 (tree_ctz): Likewise.
19341 (int_size_in_bytes): Likewise.
19342 (mem_ref_offset): Return an offset_int rather than a double_int.
19343 (build_type_attribute_qual_variant): Use wide_int interfaces.
19344 (type_hash_eq): Likewise
19345 (tree_int_cst_equal): Likewise.
19346 (tree_int_cst_lt): Delete.
19347 (tree_int_cst_compare): Likewise.
19348 (tree_fits_shwi_p): Use wide_int interfaces.
19349 (tree_fits_uhwi_p): Likewise.
19350 (tree_int_cst_sign_bit): Likewise.
19351 (tree_int_cst_sgn): Likewise.
19352 (tree_int_cst_min_precision): Take a signop rather than a bool.
19353 (simple_cst_equal): Use wide_int interfaces.
19354 (compare_tree_int): Likewise.
19355 (iterative_hash_expr): Likewise.
19356 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
19358 (get_type_static_bounds): Use wide_int interfaces.
19359 (tree_int_cst_elt_check_failed): New.
19360 (build_common_tree_nodes): Reordered to set prec before filling in
19362 (int_cst_value): Check cst_and_fits_in_hwi.
19363 (widest_int_cst_value): Use wide_int interfaces.
19364 (upper_bound_in_type): Likewise.
19365 (lower_bound_in_type): Likewise.
19366 (num_ending_zeros): Likewise.
19367 (drop_tree_overflow): Likewise.
19368 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19369 (gen_conditions_for_pow_cst_base): Likewise.
19370 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19371 (group_case_labels_stmt): Use wide-int interfaces.
19372 (verify_gimple_assign_binary): Likewise.
19373 (print_loop): Likewise.
19374 * tree-chrec.c (tree_fold_binomial): Likewise.
19375 * tree-core.h (struct tree_base): Add int_length.
19376 (struct tree_int_cst): Change rep of value.
19377 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19378 (dr_may_alias_p): Likewise.
19379 (max_stmt_executions_tree): Likewise.
19380 * tree.def (INTEGER_CST): Update comment.
19381 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19382 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19383 * tree-dump.c: Include wide-int.h and wide-int-print.h.
19384 (dequeue_and_dump): Use wide-int interfaces.
19385 * tree.h: Include wide-int.h.
19386 (NULL_TREE): Moved to earlier loc in file.
19387 (TREE_INT_CST_ELT_CHECK): New.
19388 (tree_int_cst_elt_check_failed): New.
19390 (TREE_INT_CST): Delete.
19391 (TREE_INT_CST_LOW): Use wide-int interfaces.
19392 (TREE_INT_CST_HIGH): Delete.
19393 (TREE_INT_CST_NUNITS): New.
19394 (TREE_INT_CST_EXT_NUNITS): Likewise.
19395 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19396 (TREE_INT_CST_ELT): Likewise.
19397 (INT_CST_LT): Delete.
19398 (tree_int_cst_elt_check): New (two forms).
19399 (type_code_size): Update comment.
19400 (make_int_cst_stat, make_int_cst): New.
19401 (tree_to_double_int): Delete.
19402 (double_int_fits_to_tree_p): Delete.
19403 (force_fit_type_double): Delete.
19404 (build_int_cstu): Replace with out-of-line function.
19405 (build_int_cst_wide): Delete.
19406 (tree_int_cst_lt): Define inline.
19407 (tree_int_cst_le): New.
19408 (tree_int_cst_compare): Define inline.
19409 (tree_int_cst_min_precision): Take a signop rather than a bool.
19410 (wi::int_traits <const_tree>): New.
19411 (wi::int_traits <tree>): New.
19412 (wi::extended_tree): New.
19413 (wi::int_traits <wi::extended_tree>): New.
19414 (wi::to_widest): New.
19415 (wi::to_offset): New.
19416 (wi::fits_to_tree_p): New.
19417 (wi::min_value): New.
19418 (wi::max_value): New.
19419 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19420 (copy_tree_body_r): Likewise.
19421 * tree-object-size.c (compute_object_offset): Likewise.
19422 (addr_object_size): Likewise.
19423 * tree-predcom.c: Include wide-int-print.h.
19424 (struct dref_d): Change type of offset to widest_int.
19425 (dump_dref): Call wide-int printer.
19426 (aff_combination_dr_offset): Use wide-int interfaces.
19427 (determine_offset): Take a widest_int pointer rather than a
19428 double_int pointer.
19429 (split_data_refs_to_components): Use wide-int interfaces.
19430 (suitable_component_p): Likewise.
19431 (order_drefs): Likewise.
19432 (add_ref_to_chain): Likewise.
19433 (valid_initializer_p): Likewise.
19434 (determine_roots_comp): Likewise.
19435 * tree-pretty-print.c: Include wide-int-print.h.
19436 (dump_generic_node): Use wide-int interfaces.
19437 * tree-sra.c (sra_ipa_modify_expr): Likewise.
19438 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19439 (move_fixed_address_to_symbol): Likewise.
19440 (move_hint_to_base): Likewise.
19441 (move_pointer_to_base): Likewise.
19442 (move_variant_to_index): Likewise.
19443 (most_expensive_mult_to_index): Likewise.
19444 (addr_to_parts): Likewise.
19445 (copy_ref_info): Likewise.
19446 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19447 (indirect_refs_may_alias_p): Likewise.
19448 (stmt_kills_ref_p_1): Likewise.
19449 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19450 * tree-ssa-ccp.c: Update comment at top of file. Include
19452 (struct prop_value_d): Change type of mask to widest_int.
19453 (extend_mask): New function.
19454 (dump_lattice_value): Use wide-int interfaces.
19455 (get_default_value): Likewise.
19456 (set_constant_value): Likewise.
19457 (set_value_varying): Likewise.
19458 (valid_lattice_transition): Likewise.
19459 (set_lattice_value): Likewise.
19460 (value_to_double_int): Delete.
19461 (value_to_wide_int): New.
19462 (get_value_from_alignment): Use wide-int interfaces.
19463 (get_value_for_expr): Likewise.
19464 (do_dbg_cnt): Likewise.
19465 (ccp_finalize): Likewise.
19466 (ccp_lattice_meet): Likewise.
19467 (bit_value_unop_1): Use widest_ints rather than double_ints.
19468 (bit_value_binop_1): Likewise.
19469 (bit_value_unop): Use wide-int interfaces.
19470 (bit_value_binop): Likewise.
19471 (bit_value_assume_aligned): Likewise.
19472 (evaluate_stmt): Likewise.
19473 (ccp_fold_stmt): Likewise.
19474 (visit_cond_stmt): Likewise.
19475 (ccp_visit_stmt): Likewise.
19476 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19477 (constant_pointer_difference): Likewise.
19478 (associate_pointerplus): Likewise.
19479 (combine_conversions): Likewise.
19480 * tree-ssa-loop.h: Include wide-int.h.
19481 (struct tree_niter_desc): Change type of max to widest_int.
19482 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19483 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19484 (remove_redundant_iv_tests): Likewise.
19485 (canonicalize_loop_induction_variables): Likewise.
19486 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19487 (constant_multiple_of): Take a widest_int pointer instead of
19488 a double_int pointer.
19489 (get_computation_aff): Use wide-int interfaces.
19490 (ptr_difference_cost): Likewise.
19491 (difference_cost): Likewise.
19492 (get_loop_invariant_expr_id): Likewise.
19493 (get_computation_cost_at): Likewise.
19494 (iv_elimination_compare_lt): Likewise.
19495 (may_eliminate_iv): Likewise.
19496 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19497 instead of double_int.
19498 (max_loop_iterations): Likewise.
19499 (max_stmt_executions): Likewise.
19500 (estimated_stmt_executions): Likewise.
19501 * tree-ssa-loop-niter.c: Include wide-int-print.h.
19502 (split_to_var_and_offset): Use wide-int interfaces.
19503 (determine_value_range): Likewise.
19504 (bound_difference_of_offsetted_base): Likewise.
19505 (bounds_add): Take a widest_int instead of a double_int.
19506 (number_of_iterations_ne_max): Use wide-int interfaces.
19507 (number_of_iterations_ne): Likewise.
19508 (number_of_iterations_lt_to_ne): Likewise.
19509 (assert_loop_rolls_lt): Likewise.
19510 (number_of_iterations_lt): Likewise.
19511 (number_of_iterations_le): Likewise.
19512 (number_of_iterations_cond): Likewise.
19513 (number_of_iterations_exit): Likewise.
19514 (finite_loop_p): Likewise.
19515 (derive_constant_upper_bound_assign): Likewise.
19516 (derive_constant_upper_bound): Return a widest_int.
19517 (derive_constant_upper_bound_ops): Likewise.
19518 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19519 (record_estimate): Take a widest_int rather than a double_int.
19520 (record_nonwrapping_iv): Use wide-int interfaces.
19521 (double_int_cmp): Delete.
19522 (wide_int_cmp): New.
19523 (bound_index): Take a widest_int rather than a double_int.
19524 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19525 (maybe_lower_iteration_bound): Likewise.
19526 (estimate_numbers_of_iterations_loop): Likewise.
19527 (estimated_loop_iterations): Take a widest_int pointer than than
19528 a double_int pointer.
19529 (estimated_loop_iterations_int): Use wide-int interfaces.
19530 (max_loop_iterations): Take a widest_int pointer than than
19531 a double_int pointer.
19532 (max_loop_iterations_int): Use wide-int interfaces.
19533 (max_stmt_executions): Take a widest_int pointer than than
19534 a double_int pointer.
19535 (estimated_stmt_executions): Likewise.
19536 (n_of_executions_at_most): Use wide-int interfaces.
19537 (scev_probably_wraps_p): Likewise.
19538 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19539 to real_to_integer.
19540 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19542 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19543 double_ints. Adjust for trailing_wide_ints <3> representation.
19544 (set_nonzero_bits): Likewise.
19545 (get_range_info): Return wide_ints rather than double_ints.
19546 Adjust for trailing_wide_ints <3> representation.
19547 (get_nonzero_bits): Likewise.
19548 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19550 * tree-ssanames.h (struct range_info_def): Replace min, max and
19551 nonzero_bits with a trailing_wide_ints <3>.
19552 (set_range_info): Use wide_int_refs rather than double_ints.
19553 (set_nonzero_bits): Likewise.
19554 (get_range_info): Return wide_ints rather than double_ints.
19555 (get_nonzero_bits): Likewise.
19556 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19557 * tree-ssa-pre.c (phi_translate_1): Likewise.
19558 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19559 (acceptable_pow_call): Likewise.
19560 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19562 (vn_reference_fold_indirect): Likewise.
19563 (vn_reference_maybe_forwprop_address): Likewise.
19564 (valueize_refs_1): Likewise.
19565 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19566 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19567 tree_int_cst_lt and tree_int_cst_le.
19568 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19570 (streamer_alloc_tree): Likewise.
19571 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19572 (streamer_write_tree_header): Likewise.
19573 (streamer_write_integer_cst): Likewise.
19574 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19575 (build_constructors): Likewise.
19576 (array_value_type): Likewise.
19577 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19578 (vect_check_gather): Likewise.
19579 * tree-vect-generic.c (build_replicated_const): Likewise.
19580 (expand_vector_divmod): Likewise.
19581 * tree-vect-loop.c (vect_transform_loop): Likewise.
19582 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19583 (vect_do_peeling_for_alignment): Likewise.
19584 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19585 * tree-vrp.c: Include wide-int.h.
19586 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19587 (extract_range_from_assert): Use wide-int interfaces.
19588 (vrp_int_const_binop): Likewise.
19589 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19590 double_int pointers.
19591 (ranges_from_anti_range): Use wide-int interfaces.
19592 (quad_int_cmp): Delete.
19593 (quad_int_pair_sort): Likewise.
19594 (extract_range_from_binary_expr_1): Use wide-int interfaces.
19595 (extract_range_from_unary_expr_1): Likewise.
19596 (adjust_range_with_scev): Likewise.
19597 (masked_increment): Take and return wide_ints rather than double_ints.
19598 (register_edge_assert_for_2): Use wide-int interfaces.
19599 (check_array_ref): Likewise.
19600 (search_for_addr_array): Likewise.
19601 (maybe_set_nonzero_bits): Likewise.
19602 (union_ranges): Pass an integer of the correct type instead of
19603 using integer_one_node.
19604 (intersect_ranges): Likewise.
19605 (simplify_truth_ops_using_ranges): Likewise.
19606 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19607 (range_fits_type_p): Likewise.
19608 (simplify_cond_using_ranges): Likewise. Take a signop rather than
19610 (simplify_conversion_using_ranges): Use wide-int interfaces.
19611 (simplify_float_conversion_using_ranges): Likewise.
19612 (vrp_finalize): Likewise.
19613 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19614 (gimple_stringops_transform): Likewise.
19615 * varasm.c (decode_addr_const): Likewise.
19616 (const_hash_1): Likewise.
19617 (const_rtx_hash_1): Likewise
19618 (output_constant): Likewise.
19619 (array_size_for_constructor): Likewise.
19620 (output_constructor_regular_field): Likewise.
19621 (output_constructor_bitfield): Likewise.
19622 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19623 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19625 * gencheck.c: Define BITS_PER_UNIT.
19626 * wide-int.cc: New.
19628 * wide-int-print.cc: New.
19629 * wide-int-print.h: New.
19631 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19633 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19635 2014-05-06 Richard Biener <rguenther@suse.de>
19637 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19638 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19639 (TODO_verify_all): Adjust.
19640 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19641 TODO_verify_stmts and TODO_verify_rtl_sharing.
19642 * bb-reorder.c: Likewise.
19643 * cfgexpand.c: Likewise.
19644 * cprop.c: Likewise.
19646 * function.c: Likewise.
19647 * fwprop.c: Likewise.
19648 * gcse.c: Likewise.
19649 * gimple-ssa-isolate-paths.c: Likewise.
19650 * gimple-ssa-strength-reduction.c: Likewise.
19651 * ipa-split.c: Likewise.
19652 * loop-init.c: Likewise.
19653 * loop-unroll.c: Likewise.
19654 * lower-subreg.c: Likewise.
19655 * modulo-sched.c: Likewise.
19656 * postreload-gcse.c: Likewise.
19657 * predict.c: Likewise.
19658 * recog.c: Likewise.
19659 * sched-rgn.c: Likewise.
19660 * store-motion.c: Likewise.
19661 * tracer.c: Likewise.
19662 * trans-mem.c: Likewise.
19663 * tree-call-cdce.c: Likewise.
19664 * tree-cfg.c: Likewise.
19665 * tree-cfgcleanup.c: Likewise.
19666 * tree-complex.c: Likewise.
19667 * tree-eh.c: Likewise.
19668 * tree-emutls.c: Likewise.
19669 * tree-if-conv.c: Likewise.
19670 * tree-into-ssa.c: Likewise.
19671 * tree-loop-distribution.c: Likewise.
19672 * tree-object-size.c: Likewise.
19673 * tree-parloops.c: Likewise.
19674 * tree-pass.h: Likewise.
19675 * tree-sra.c: Likewise.
19676 * tree-ssa-ccp.c: Likewise.
19677 * tree-ssa-copy.c: Likewise.
19678 * tree-ssa-copyrename.c: Likewise.
19679 * tree-ssa-dce.c: Likewise.
19680 * tree-ssa-dom.c: Likewise.
19681 * tree-ssa-dse.c: Likewise.
19682 * tree-ssa-forwprop.c: Likewise.
19683 * tree-ssa-ifcombine.c: Likewise.
19684 * tree-ssa-loop-ch.c: Likewise.
19685 * tree-ssa-loop-ivcanon.c: Likewise.
19686 * tree-ssa-loop.c: Likewise.
19687 * tree-ssa-math-opts.c: Likewise.
19688 * tree-ssa-phiopt.c: Likewise.
19689 * tree-ssa-phiprop.c: Likewise.
19690 * tree-ssa-pre.c: Likewise.
19691 * tree-ssa-reassoc.c: Likewise.
19692 * tree-ssa-sink.c: Likewise.
19693 * tree-ssa-strlen.c: Likewise.
19694 * tree-ssa-tail-merge.c: Likewise.
19695 * tree-ssa-uncprop.c: Likewise.
19696 * tree-switch-conversion.c: Likewise.
19697 * tree-tailcall.c: Likewise.
19698 * tree-vect-generic.c: Likewise.
19699 * tree-vectorizer.c: Likewise.
19700 * tree-vrp.c: Likewise.
19701 * tsan.c: Likewise.
19702 * var-tracking.c: Likewise.
19703 * bt-load.c: Likewise.
19704 * cfgcleanup.c: Likewise.
19705 * combine-stack-adj.c: Likewise.
19706 * combine.c: Likewise.
19707 * compare-elim.c: Likewise.
19708 * config/epiphany/resolve-sw-modes.c: Likewise.
19709 * config/i386/i386.c: Likewise.
19710 * config/mips/mips.c: Likewise.
19711 * config/s390/s390.c: Likewise.
19712 * config/sh/sh_treg_combine.cc: Likewise.
19713 * config/sparc/sparc.c: Likewise.
19716 * final.c: Likewise.
19717 * ifcvt.c: Likewise.
19718 * mode-switching.c: Likewise.
19719 * passes.c: Likewise.
19720 * postreload.c: Likewise.
19722 * reg-stack.c: Likewise.
19723 * regcprop.c: Likewise.
19724 * regrename.c: Likewise.
19727 2014-05-06 Richard Biener <rguenther@suse.de>
19729 PR middle-end/61070
19730 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
19731 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
19733 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
19736 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
19738 2014-05-05 Radovan Obradovic <robradovic@mips.com>
19739 Tom de Vries <tom@codesourcery.com>
19741 * target.def (call_fusage_contains_non_callee_clobbers): New
19743 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
19745 (@node Miscellaneous Register Hooks): New node.
19746 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
19747 * doc/tm.texi: Regenerate.
19749 2014-05-05 Marek Polacek <polacek@redhat.com>
19752 * opts.c (common_handle_option): Call error_at instead of warning_at.
19754 2014-05-05 Richard Biener <rguenther@suse.de>
19756 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
19757 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
19758 under the TODO_verify_il umbrella.
19760 2014-05-05 Richard Biener <rguenther@suse.de>
19762 * passes.c (execute_function_todo): Move TODO_verify_flow under
19763 the TODO_verify_ul umbrella.
19765 2014-05-05 Richard Biener <rguenther@suse.de>
19767 PR middle-end/61010
19768 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
19769 X & CST away from a CST that is the mask of a mode.
19771 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19773 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
19774 int argument to enum machine_mode.
19775 (picochip_class_max_nregs): Ditto.
19776 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
19777 (picochip_class_max_nregs): Ditto.
19779 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19781 * target.def: Add new target hook.
19782 * doc/tm.texi: Regenerate.
19783 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
19784 * targhooks.c (default_keep_leaf_when_profiled): New function.
19786 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
19787 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
19789 2014-05-05 Bin Cheng <bin.cheng@arm.com>
19791 PR tree-optimization/60363
19792 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
19793 (copy_phi_args): New parameters. Call get_value_locus_in_path.
19794 (update_destination_phis): New parameter.
19795 (create_edge_and_update_destination_phis): Ditto.
19796 (ssa_fix_duplicate_block_edges): Pass new arguments.
19797 (thread_single_edge): Ditto.
19799 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
19801 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
19802 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
19803 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
19804 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
19805 Use RS6000_BTM_HARD_FLOAT.
19806 (BU_MISC_2): Likewise.
19807 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19808 RS6000_BTM_HARD_FLOAT.
19809 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
19810 is explicitly used.
19811 (rs6000_invalid_builtin): Add hard floating builtin support.
19812 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
19813 hard float builtins.
19814 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
19816 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19818 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
19819 Add missing function* argument.
19821 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19823 * lra-constraints.c (valid_address_p): Move earlier in file.
19824 Add a constraint argument to the address_info version.
19825 (satisfies_memory_constraint_p): New function.
19826 (satisfies_address_constraint_p): Likewise.
19827 (process_alt_operands, curr_insn_transform): Use them.
19828 (process_address): Pass the constraint to valid_address_p when
19829 checking address operands.
19831 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19833 * config/mips/mips.c (mips_isa_rev): New variable.
19834 (mips_set_architecture): Set it.
19835 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
19837 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
19838 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
19839 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
19840 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
19841 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
19842 conditions in terms of mips_isa_rev.
19843 (mips_isa_rev): Declare.
19845 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19847 * config/sh/sh-mem.cc: Use tabs instead of spaces.
19848 (prob_unlikely, prob_likely): Make variables const.
19850 2014-05-03 Denis Chertykov <chertykov@gmail.com>
19852 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
19854 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19856 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
19858 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19860 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
19861 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
19862 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
19864 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
19865 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
19867 Replace usage of ROUND_REG with sh_round_reg.
19868 Use CEIL instead of ROUND_ADVANCE.
19870 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19873 * config/sh/sh.c: Include stdlib headers before everything else.
19875 2014-05-02 Jakub Jelinek <jakub@redhat.com>
19877 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
19878 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
19879 (gimplify_adjust_omp_clauses): Simd region is never
19880 directly nested in combined parallel. Instead, for linear
19881 with copyin/copyout, if in combined for simd loop, make decl
19882 firstprivate/lastprivate on OMP_FOR.
19883 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
19884 expand_omp_for_static_chunk): When setting endvar, also set
19885 fd->loop.v to the same value.
19887 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19889 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
19891 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
19893 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
19896 2014-05-02 Marek Polacek <polacek@redhat.com>
19898 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
19900 2014-05-02 Kito Cheng <kito@0xlab.org>
19902 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
19903 to a C expression marco.
19904 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
19905 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
19906 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
19907 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
19908 HONOR_REG_ALLOC_ORDER.
19909 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
19911 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19913 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
19915 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19917 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
19919 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19921 * tree-if-conv.c (is_cond_scalar_reduction): New function.
19922 (convert_scalar_cond_reduction): Likewise.
19923 (predicate_scalar_phi): Add recognition and transformation
19924 of simple conditioanl reduction to be vectorizable.
19926 2014-05-01 Marek Polacek <polacek@redhat.com>
19929 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
19931 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
19933 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
19934 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
19935 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
19936 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
19937 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
19938 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
19939 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
19940 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
19942 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
19944 * config/arc/arc.opt (mlra): Move comment above option name
19945 to avoid mis-parsing as language options.
19947 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19949 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
19950 * config/sol2.h: ... here.
19951 * config/sol2-10.h: Remove.
19953 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
19954 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
19955 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
19956 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
19957 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
19958 * config/sol2.h: ... here.
19959 (SECTION_NAME_FORMAT): Don't redefine.
19960 (STARTFILE_ARCH32_SPEC): Rename to ...
19961 (STARTFILE_ARCH_SPEC): ... this.
19962 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19963 * config/sparc/sol2.h: ... here.
19964 (SECTION_NAME_FORMAT): Don't undef.
19965 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
19966 (SUBTARGET_EXTRA_SPECS): Remove.
19967 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19969 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
19970 (MD_STARTFILE_PREFIX): Remove.
19971 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
19972 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
19973 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
19974 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
19975 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
19976 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
19977 * config/i386/sol2.h: ... here.
19978 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
19979 * config/i386/sol2-bi.h: Remove.
19980 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
19981 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
19983 * config/i386/t-sol2-64: Rename to ...
19984 * config/i386/t-sol2: ... this.
19985 * config/sparc/t-sol2-64: Rename to ...
19986 * config/sparc/t-sol2: ... this.
19988 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
19989 sol2_tm_file_head, sol2_tm_file_tail.
19990 Include ${cpu_type}/sol2.h before sol2.h.
19992 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
19993 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
19994 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
19995 Reflect i386/t-sol2-64 renaming.
19996 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
19997 Reflect sparc/t-sol2-64 renaming.
19999 2014-04-30 Richard Biener <rguenther@suse.de>
20001 * passes.c (execute_function_todo): Move TODO_verify_stmts
20002 and TODO_verify_ssa under the TODO_verify_il umbrella.
20003 * tree-ssa.h (verify_ssa): Adjust prototype.
20004 * tree-ssa.c (verify_ssa): Add parameter to tell whether
20005 we should verify SSA operands.
20006 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20007 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20008 whether we should verify whether not throwing stmts have EH info.
20009 * graphite-scop-detection.c (create_sese_edges): Adjust.
20010 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20011 * tree-eh.c (lower_try_finally_switch): Do not add the
20012 default case label twice.
20014 2014-04-30 Marek Polacek <polacek@redhat.com>
20016 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20017 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20018 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20019 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20021 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
20023 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20024 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20025 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20026 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20027 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20028 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20029 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20030 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20032 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20034 * tree-cfg.c (dump_function_to_file): Dump the return type of
20035 functions, in a line to itself before the function body, mimicking
20036 the layout of a C function.
20038 2014-04-29 Jakub Jelinek <jakub@redhat.com>
20040 PR tree-optimization/60971
20041 * tree-tailcall.c (process_assignment): Reject conversions which
20044 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
20046 * calls.c (initialize_argument_information): Always treat
20047 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
20048 (expand_call): Likewise.
20049 (emit_library_call_calue_1): Likewise.
20050 * expr.c (PUSH_ARGS_REVERSED): Do not define.
20051 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
20054 2014-04-29 Nick Clifton <nickc@redhat.com>
20056 * config/msp430/msp430.md (umulsidi): Fix typo.
20057 (mulhisi3): Enable even inside interrupt handlers.
20058 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
20059 bigger return address pushed in large mode.
20061 2014-04-29 Nick Clifton <nickc@redhat.com>
20063 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
20064 (arc_init_reg_tables): Use a machine_mode enum to iterate over
20066 * config/m32r/m32r.c (init_reg_tables): Likewise.
20067 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
20068 enum to hold the modes.
20070 2014-04-29 Richard Biener <rguenther@suse.de>
20072 * dominance.c (free_dominance_info): Add overload with
20073 function parameter.
20074 (dom_info_state): Likewise.
20075 (dom_info_available_p): Likewise.
20076 * basic-block.h (free_dominance_info, dom_info_state,
20077 dom_info_available_p): Declare overloads.
20078 * passes.c (execute_function_todo): Verify that verifiers
20079 don't change dominator info state. Drop dominator info
20080 for IPA pass invocations.
20081 * cgraph.c (release_function_body): Restore asserts that
20082 dominator information is released.
20084 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
20086 * doc/invoke.texi: Fix typo.
20087 * tree-vrp.c: Fix typos.
20088 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
20090 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20092 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
20094 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
20096 * config/aarch64/aarch64-builtins.c
20097 (aarch64_types_storestruct_lane_qualifiers): New.
20098 (TYPES_STORESTRUCT_LANE): Likewise.
20099 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20100 (st3_lane): Likewise.
20101 (st4_lane): Likewise.
20102 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20103 (vec_store_lanesci_lane<mode>): Likewise.
20104 (vec_store_lanesxi_lane<mode>): Likewise.
20105 (aarch64_st2_lane<VQ:mode>): Likewise.
20106 (aarch64_st3_lane<VQ:mode>): Likewise.
20107 (aarch64_st4_lane<VQ:mode>): Likewise.
20108 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20109 * config/aarch64/arm_neon.h
20110 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20111 use new macro arguments.
20112 (__ST3_LANE_FUNC): Likewise.
20113 (__ST4_LANE_FUNC): Likewise.
20114 * config/aarch64/iterators.md (V_TWO_ELEM): New.
20115 (V_THREE_ELEM): Likewise.
20116 (V_FOUR_ELEM): Likewise.
20118 2014-04-28 David Malcolm <dmalcolm@redhat.com>
20120 * doc/gimple.texi: Replace the description of the now-defunct
20121 union gimple_statement_d with a diagram showing the
20122 gimple_statement_base class hierarchy and its relationships to
20123 the GSS_ and GIMPLE_ enums.
20125 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
20127 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20128 * config/aarch64/aarch64.c
20129 (aarch64_cannot_change_mode_class): Weaken conditions.
20130 (aarch64_modes_tieable_p): New.
20131 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20133 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
20135 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20136 (loadsync_<mode>): Change mode.
20137 (load_quadpti, store_quadpti): New.
20138 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20139 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20141 2014-04-28 Martin Jambor <mjambor@suse.cz>
20143 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20144 same alias type as the original statement.
20145 (subreplacement_assignment_data): New type.
20146 (handle_unscalarized_data_in_subtree): New type of parameter,
20147 generate new memory accesses with same alias type as the original
20149 (load_assign_lhs_subreplacements): Likewise.
20150 (sra_modify_constructor_assign): Generate new memory accesses with
20151 same alias type as the original statement.
20153 2014-04-28 Richard Biener <rguenther@suse.de>
20155 * tree-pass.h (TODO_verify_il): Define.
20156 (TODO_verify_all): Complete properly.
20157 * passes.c (execute_function_todo): Move existing loop-closed
20158 SSA verification under TODO_verify_il.
20159 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20160 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20161 Fix tree sharing issue.
20163 2014-04-28 Richard Biener <rguenther@suse.de>
20165 PR middle-end/60092
20166 * builtins.def (DEF_C11_BUILTIN): Add.
20167 (BUILT_IN_ALIGNED_ALLOC): Likewise.
20168 * coretypes.h (enum function_class): Add function_c11_misc.
20169 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20170 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20171 (call_may_clobber_ref_p_1): Likewise.
20172 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20173 (mark_all_reaching_defs_necessary_1): Likewise.
20174 (propagate_necessity): Likewise.
20175 (eliminate_unnecessary_stmts): Likewise.
20176 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20178 2014-04-28 Richard Biener <rguenther@suse.de>
20180 * tree-vrp.c (vrp_var_may_overflow): Remove.
20181 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20182 with overflow immediately bump to one before that value and
20183 let iteration figure out overflow status.
20185 2014-04-28 Richard Biener <rguenther@suse.de>
20187 * configure.ac: Do valgrind header checks unconditionally.
20188 Add --enable-valgrind-annotations.
20189 * system.h: Guard valgrind header inclusion with
20190 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20191 * alloc-pool.c (pool_alloc, pool_free): Use
20192 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20193 to guard possibly dead code.
20194 * config.in: Regenerated.
20195 * configure: Likewise.
20197 2014-04-28 Jeff Law <law@redhat.com>
20199 PR tree-optimization/60902
20200 * tree-ssa-threadedge.c
20201 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20202 over real defs when invalidating outputs from statements that do not
20203 produce useful outputs for threading.
20205 2014-04-28 Richard Biener <rguenther@suse.de>
20207 PR tree-optimization/60979
20208 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20209 SCOPs that end in a block with a successor with abnormal
20212 2014-04-28 Richard Biener <rguenther@suse.de>
20214 * tree-pass.h (execute_pass_list): Adjust prototype.
20215 * passes.c (pass_manager::execute_early_local_passes): Adjust.
20216 (do_per_function): Change callback signature, push all actual
20217 work to the callbals.
20218 (do_per_function_toporder): Likewise.
20219 (execute_function_dump): Adjust.
20220 (execute_function_todo): Likewise.
20221 (clear_last_verified): Likewise.
20222 (verify_curr_properties): Likewise.
20223 (update_properties_after_pass): Likewise.
20224 (execute_pass_list_1): Split out from ...
20225 (execute_pass_list): ... here. Adjust.
20226 (execute_ipa_pass_list): Likewise.
20227 * cgraphunit.c (cgraph_add_new_function): Adjust.
20228 (analyze_function): Likewise.
20229 (expand_function): Likewise.
20230 * cgraph.c (release_function_body): Free dominance info
20231 here instead of asserting it was magically freed elsewhere.
20233 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
20235 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20236 * configure: Regenerate.
20237 * config/sparc/sparc.opt (muser-mode): New option.
20238 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20240 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20241 * doc/invoke.texi (SPARC options): Document -muser-mode.
20243 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20245 * cselib.c (find_slot_memmode): Delete.
20246 (cselib_hasher): Change compare_type to a struct.
20247 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
20249 (preserve_constants_and_equivs): Adjust for new compare_type.
20250 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
20251 (wrap_constant): Delete.
20252 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20254 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
20256 * doc/install.texi (Building with profile feedback): Remove
20259 2014-04-26 Tom de Vries <tom@codesourcery.com>
20261 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20264 2014-04-25 Cary Coutant <ccoutant@google.com>
20267 * dwarf2out.c (should_move_die_to_comdat): A type definition
20268 can contain a subprogram definition, but don't move it to a
20270 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20271 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20273 (clone_tree_hash): Rename to...
20274 (clone_tree_partial): ...this; change callers. Copy
20275 DW_TAG_subprogram DIEs as declarations.
20276 (copy_decls_walk): Don't copy children of a declaration into a
20279 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
20282 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20285 2014-04-25 Jiong Wang <jiong.wang@arm.com>
20287 * config/arm/predicates.md (call_insn_operand): Add long_call check.
20288 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20290 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20293 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20295 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20297 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20299 PR tree-optimization/60930
20300 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
20301 creating a multiply candidate by folding two constant
20302 multiplicands when the result overflows.
20304 2014-04-25 Jakub Jelinek <jakub@redhat.com>
20306 PR tree-optimization/60960
20307 * tree-vect-generic.c (expand_vector_operation): Only call
20308 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20310 2014-04-25 Tom de Vries <tom@codesourcery.com>
20312 * expr.c (clobber_reg_mode): New function.
20313 * expr.h (clobber_reg): New function.
20315 2014-04-25 Tom de Vries <tom@codesourcery.com>
20317 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20320 2014-04-25 Radovan Obradovic <robradovic@mips.com>
20321 Tom de Vries <tom@codesourcery.com>
20323 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20325 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20326 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20327 new argument to find_all_hard_reg_sets call.
20329 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20331 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20332 Use HOST_WIDE_INT_C for mask literal.
20333 (aarch_rev16_shleft_mask_imm_p): Likewise.
20335 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
20338 * config/sparc/sparc.md (ashlsi3_extend): Delete.
20340 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
20342 PR preprocessor/56540
20343 * config/i386/i386-c.c (ix86_target_macros): Define
20344 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20346 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20348 * configure.ac (tga_func): Remove.
20349 (LIB_TLS_SPEC): Remove.
20350 * configure: Regenerate.
20351 * config.in: Regenerate.
20352 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20354 2014-04-25 Richard Biener <rguenther@suse.de>
20357 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20358 call stmt use/clobber sets during stmt walk instead of
20359 walking the possibly incomplete set of caller edges.
20361 2014-04-25 Richard Biener <rguenther@suse.de>
20364 * passes.c (apply_ipa_transforms): Inline into only caller ...
20365 (execute_one_pass): ... here. Properly bring in function
20366 bodies for nodes we want to apply IPA transforms to.
20368 2014-04-24 Cong Hou <congh@google.com>
20370 PR tree-optimization/60896
20371 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20372 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20373 (vect_mark_pattern_stmts): Set the def type of all statements in
20374 PATTERN_DEF_SEQ as vect_internal_def.
20376 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20378 * doc/extend.texi (PowerPC Built-in Functions): Document new
20379 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20380 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20382 * config/rs6000/predicates.md (const_0_to_3_operand): New
20383 predicate to match 0..3 integer constants.
20385 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20386 to support adding miscellaneous builtin functions.
20387 (BU_DFP_MISC_2): Likewise.
20388 (BU_P7_MISC_1): Likewise.
20389 (BU_P7_MISC_2): Likewise.
20390 (BU_P8V_MISC_3): Likewise.
20391 (BU_MISC_1): Likewise.
20392 (BU_MISC_2): Likewise.
20393 (DIVWE): Add extended divide builtin functions.
20394 (DIVWEO): Likewise.
20395 (DIVWEU): Likewise.
20396 (DIVWEUO): Likewise.
20398 (DIVDEO): Likewise.
20399 (DIVDEU): Likewise.
20400 (DIVDEUO): Likewise.
20401 (DXEX): Add decimal floating-point builtin functions.
20403 (DDEDPD): Likewise.
20404 (DDEDPDQ): Likewise.
20405 (DENBCD): Likewise.
20406 (DENBCDQ): Likewise.
20410 (DSCLIQ): Likewise.
20412 (DSCRIQ): Likewise.
20413 (CDTBCD): Add new BCD builtin functions.
20414 (CBCDTD): Likewise.
20415 (ADDG6S): Likewise.
20416 (BCDADD): Likewise.
20417 (BCDADD_LT): Likewise.
20418 (BCDADD_EQ): Likewise.
20419 (BCDADD_GT): Likewise.
20420 (BCDADD_OV): Likewise.
20421 (BCDSUB): Likewise.
20422 (BCDSUB_LT): Likewise.
20423 (BCDSUB_EQ): Likewise.
20424 (BCDSUB_GT): Likewise.
20425 (BCDSUB_OV): Likewise.
20426 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20427 (UNPACK_TD): Likewise.
20428 (PACK_TF): Likewise.
20429 (UNPACK_TF): Likewise.
20430 (UNPACK_TF_0): Likewise.
20431 (UNPACK_TF_1): Likewise.
20432 (PACK_V1TI): Likewise.
20433 (UNPACK_V1TI): Likewise.
20435 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20436 support for decimal floating point builtin functions.
20437 (rs6000_expand_ternop_builtin): Add checks for the new builtin
20438 functions that take constant arguments.
20439 (rs6000_invalid_builtin): Add decimal floating point builtin support.
20440 (rs6000_init_builtins): Setup long double, _Decimal64, and
20441 _Decimal128 types for new builtin functions.
20442 (builtin_function_type): Set the unsigned flags appropriately for
20443 the new builtin functions.
20444 (rs6000_opt_masks): Add support for decimal floating point builtin
20447 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20448 floating point builtin functions.
20449 (RS6000_BTM_COMMON): Likewise.
20450 (RS6000_BTI_long_double): Likewise.
20451 (RS6000_BTI_dfloat64): Likewise.
20452 (RS6000_BTI_dfloat128): Likewise.
20453 (long_double_type_internal_node): Likewise.
20454 (dfloat64_type_internal_node): Likewise.
20455 (dfloat128_type_internal_node): Likewise.
20457 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20458 2.07 bcd arithmetic instructions.
20459 (UNSPEC_BCDSUB): Likewise.
20460 (UNSPEC_BCD_OVERFLOW): Likewise.
20461 (UNSPEC_BCD_ADD_SUB): Likewise.
20462 (bcd_add_sub): Likewise.
20463 (BCD_TEST): Likewise.
20464 (bcd<bcd_add_sub>): Likewise.
20465 (bcd<bcd_add_sub>_test): Likewise.
20466 (bcd<bcd_add_sub>_test2): Likewise.
20467 (bcd<bcd_add_sub>_<code>): Likewise.
20468 (peephole2 for combined bcd ops): Likewise.
20470 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20471 decimal floating point builtin functions.
20472 (UNSPEC_DENBCD): Likewise.
20473 (UNSPEC_DXEX): Likewise.
20474 (UNSPEC_DIEX): Likewise.
20475 (UNSPEC_DSCLI): Likewise.
20476 (UNSPEC_DSCRI): Likewise.
20477 (D64_D128): Likewise.
20478 (dfp_suffix): Likewise.
20479 (dfp_ddedpd_<mode>): Likewise.
20480 (dfp_denbcd_<mode>): Likewise.
20481 (dfp_dxex_<mode>): Likewise.
20482 (dfp_diex_<mode>): Likewise.
20483 (dfp_dscli_<mode>): Likewise.
20484 (dfp_dscri_<mode>): Likewise.
20486 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20488 (UNSPEC_CDTBCD): Likewise.
20489 (UNSPEC_CBCDTD): Likewise.
20490 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20491 (UNSPEC_DIVEO): Likewise.
20492 (UNSPEC_DIVEU): Likewise.
20493 (UNSPEC_DIVEUO): Likewise.
20494 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20495 pack/unpack 128-bit types.
20496 (UNSPEC_PACK_128BIT): Likewise.
20497 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20498 (udiv<mode>3): Use idiv_ldiv mode attribute.
20499 (div<mode>3): Likewise.
20500 (addg6s): Add new BCD builtin functions.
20501 (cdtbcd): Likewise.
20502 (cbcdtd): Likewise.
20503 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20504 (div_extend): Likewise.
20505 (div<div_extend>_<mode>"): Likewise.
20506 (FP128_64): Add support for new builtin functions to pack/unpack
20508 (unpack<mode>): Likewise.
20509 (unpacktf_0): Likewise.
20510 (unpacktf_1): Likewise.
20511 (unpack<mode>_dm): Likewise.
20512 (unpack<mode>_nodm): Likewise.
20513 (pack<mode>): Likewise.
20514 (unpackv1ti): Likewise.
20515 (packv1ti): Likewise.
20517 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
20519 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20522 2014-04-24 Jakub Jelinek <jakub@redhat.com>
20524 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20525 * gimplify.c (omp_is_private): Change last argument's type to int.
20526 Only diagnose lastprivate if the simd argument is 1, only diagnose
20527 linear if the simd argument is 2.
20528 (gimplify_omp_for): Adjust omp_is_private callers. When adding
20529 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
20530 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
20531 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20532 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20533 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20534 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20535 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20536 * tree-nested.c (convert_nonlocal_omp_clauses,
20537 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20539 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
20542 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20545 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
20547 * flag-types.h (enum ivar_visibility): Add.
20549 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
20551 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20552 function * argument.
20554 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
20556 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20558 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20559 Tom de Vries <tom@codesourcery.com>
20561 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20562 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20564 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20565 * emit-rtl.c (try_split): Same.
20567 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20568 Tom de Vries <tom@codesourcery.com>
20570 * common.opt (fuse-caller-save): New option.
20572 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
20574 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20575 elements for big-endian.
20577 2014-04-24 Richard Biener <rguenther@suse.de>
20579 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20580 during TER and instead use the sepops interface for expanding
20581 non-GIMPLE_SINGLE_RHS.
20583 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20585 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20586 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20588 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20590 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20591 assembler 64-bit option.
20592 * configure: Regenerate.
20594 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20596 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20597 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20598 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20599 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20600 (TARGET_CRYPTO): Take TARGET_SIMD into account.
20602 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20604 * config/aarch64/aarch64-builtins.c
20605 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20606 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20607 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20608 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20610 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20611 (Vrevsuff): New mode attribute.
20613 2014-04-24 Terry Guo <terry.guo@arm.com>
20615 * config/arm/arm.h (machine_function): Define variable
20616 after_arm_reorg here.
20617 * config/arm/arm.c (after_arm_reorg): Remove the definition.
20618 (arm_split_constant): Update the way to access variable
20620 (arm_reorg): Ditto.
20621 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20623 2014-04-23 Tom de Vries <tom@codesourcery.com>
20625 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20627 2014-04-23 David Malcolm <dmalcolm@redhat.com>
20629 * is-a.h: Update comments to reflect the following changes to the
20630 "pointerness" of the API, making the template parameter match the
20631 return type, allowing use of is-a.h with typedefs of pointers.
20632 (is_a_helper::cast): Return a T rather then a pointer to a T, so
20633 that the return type matches the parameter to the is_a_helper.
20635 (dyn_cast): Likewise.
20637 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20638 pointer from the is-a.h API.
20640 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20641 (is_a_helper <cgraph_node *>::test): ...this, matching change to
20643 (is_a_helper <varpool_node>::test): Likewise, convert to...
20644 (is_a_helper <varpool_node *>::test): ...this.
20646 (varpool_first_variable): Update for removal of implicit pointer
20647 from the is-a.h API.
20648 (varpool_next_variable): Likewise.
20649 (varpool_first_static_initializer): Likewise.
20650 (varpool_next_static_initializer): Likewise.
20651 (varpool_first_defined_variable): Likewise.
20652 (varpool_next_defined_variable): Likewise.
20653 (cgraph_first_defined_function): Likewise.
20654 (cgraph_next_defined_function): Likewise.
20655 (cgraph_first_function): Likewise.
20656 (cgraph_next_function): Likewise.
20657 (cgraph_first_function_with_gimple_body): Likewise.
20658 (cgraph_next_function_with_gimple_body): Likewise.
20659 (cgraph_alias_target): Likewise.
20660 (varpool_alias_target): Likewise.
20661 (cgraph_function_or_thunk_node): Likewise.
20662 (varpool_variable_node): Likewise.
20663 (symtab_real_symbol_p): Likewise.
20664 * cgraphunit.c (referred_to_p): Likewise.
20665 (analyze_functions): Likewise.
20666 (handle_alias_pairs): Likewise.
20667 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20668 * gimple-ssa.h (gimple_vuse_op): Likewise.
20669 (gimple_vdef_op): Likewise.
20670 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20671 * gimple.c (gimple_build_asm_1): Likewise.
20672 (gimple_build_try): Likewise.
20673 (gimple_build_resx): Likewise.
20674 (gimple_build_eh_dispatch): Likewise.
20675 (gimple_build_omp_for): Likewise.
20676 (gimple_omp_for_set_clauses): Likewise.
20678 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20679 (is_a_helper <gimple_statement_asm *>::test): ...this.
20680 (is_a_helper <gimple_statement_bind>::test): Convert to...
20681 (is_a_helper <gimple_statement_bind *>::test): ...this.
20682 (is_a_helper <gimple_statement_call>::test): Convert to...
20683 (is_a_helper <gimple_statement_call *>::test): ...this.
20684 (is_a_helper <gimple_statement_catch>::test): Convert to...
20685 (is_a_helper <gimple_statement_catch *>::test): ...this.
20686 (is_a_helper <gimple_statement_resx>::test): Convert to...
20687 (is_a_helper <gimple_statement_resx *>::test): ...this.
20688 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
20689 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
20690 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
20691 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
20692 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
20693 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
20694 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
20695 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
20696 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
20697 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
20698 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
20699 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
20700 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
20701 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
20702 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
20703 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
20704 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
20705 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
20706 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
20707 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
20708 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
20709 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
20710 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
20711 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
20712 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
20713 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
20714 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
20715 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
20716 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
20717 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
20718 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
20719 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
20720 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
20721 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
20722 (is_a_helper <gimple_statement_phi>::test): Convert to...
20723 (is_a_helper <gimple_statement_phi *>::test): ...this.
20724 (is_a_helper <gimple_statement_transaction>::test): Convert to...
20725 (is_a_helper <gimple_statement_transaction *>::test): ...this.
20726 (is_a_helper <gimple_statement_try>::test): Convert to...
20727 (is_a_helper <gimple_statement_try *>::test): ...this.
20728 (is_a_helper <gimple_statement_wce>::test): Convert to...
20729 (is_a_helper <gimple_statement_wce *>::test): ...this.
20730 (is_a_helper <const gimple_statement_asm>::test): Convert to...
20731 (is_a_helper <const gimple_statement_asm *>::test): ...this.
20732 (is_a_helper <const gimple_statement_bind>::test): Convert to...
20733 (is_a_helper <const gimple_statement_bind *>::test): ...this.
20734 (is_a_helper <const gimple_statement_call>::test): Convert to...
20735 (is_a_helper <const gimple_statement_call *>::test): ...this.
20736 (is_a_helper <const gimple_statement_catch>::test): Convert to...
20737 (is_a_helper <const gimple_statement_catch *>::test): ...this.
20738 (is_a_helper <const gimple_statement_resx>::test): Convert to...
20739 (is_a_helper <const gimple_statement_resx *>::test): ...this.
20740 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
20741 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
20742 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
20743 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
20744 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
20746 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
20748 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
20750 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
20752 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
20753 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
20754 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
20756 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
20757 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
20759 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
20760 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
20761 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
20762 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
20763 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
20764 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
20766 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
20767 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
20768 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
20769 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
20771 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
20772 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
20773 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
20774 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
20775 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
20776 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
20777 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
20778 (is_a_helper <const gimple_statement_phi>::test): Convert to...
20779 (is_a_helper <const gimple_statement_phi *>::test): ...this.
20780 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
20781 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
20782 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
20783 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
20784 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
20785 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
20786 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
20788 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
20790 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
20791 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
20793 (gimple_use_ops): Update for removal of implicit pointer from the
20795 (gimple_set_use_ops): Likewise.
20796 (gimple_vuse): Likewise.
20797 (gimple_vdef): Likewise.
20798 (gimple_vuse_ptr): Likewise.
20799 (gimple_vdef_ptr): Likewise.
20800 (gimple_set_vuse): Likewise.
20801 (gimple_set_vdef): Likewise.
20802 (gimple_omp_return_set_lhs): Likewise.
20803 (gimple_omp_return_lhs): Likewise.
20804 (gimple_omp_return_lhs_ptr): Likewise.
20805 (gimple_call_fntype): Likewise.
20806 (gimple_call_set_fntype): Likewise.
20807 (gimple_call_set_internal_fn): Likewise.
20808 (gimple_call_use_set): Likewise.
20809 (gimple_call_clobber_set): Likewise.
20810 (gimple_bind_vars): Likewise.
20811 (gimple_bind_set_vars): Likewise.
20812 (gimple_bind_body_ptr): Likewise.
20813 (gimple_bind_set_body): Likewise.
20814 (gimple_bind_add_stmt): Likewise.
20815 (gimple_bind_block): Likewise.
20816 (gimple_bind_set_block): Likewise.
20817 (gimple_asm_ninputs): Likewise.
20818 (gimple_asm_noutputs): Likewise.
20819 (gimple_asm_nclobbers): Likewise.
20820 (gimple_asm_nlabels): Likewise.
20821 (gimple_asm_input_op): Likewise.
20822 (gimple_asm_input_op_ptr): Likewise.
20823 (gimple_asm_output_op): Likewise.
20824 (gimple_asm_output_op_ptr): Likewise.
20825 (gimple_asm_set_output_op): Likewise.
20826 (gimple_asm_clobber_op): Likewise.
20827 (gimple_asm_set_clobber_op): Likewise.
20828 (gimple_asm_label_op): Likewise.
20829 (gimple_asm_set_label_op): Likewise.
20830 (gimple_asm_string): Likewise.
20831 (gimple_catch_types): Likewise.
20832 (gimple_catch_types_ptr): Likewise.
20833 (gimple_catch_handler_ptr): Likewise.
20834 (gimple_catch_set_types): Likewise.
20835 (gimple_catch_set_handler): Likewise.
20836 (gimple_eh_filter_types): Likewise.
20837 (gimple_eh_filter_types_ptr): Likewise.
20838 (gimple_eh_filter_failure_ptr): Likewise.
20839 (gimple_eh_filter_set_types): Likewise.
20840 (gimple_eh_filter_set_failure): Likewise.
20841 (gimple_eh_must_not_throw_fndecl): Likewise.
20842 (gimple_eh_must_not_throw_set_fndecl): Likewise.
20843 (gimple_eh_else_n_body_ptr): Likewise.
20844 (gimple_eh_else_e_body_ptr): Likewise.
20845 (gimple_eh_else_set_n_body): Likewise.
20846 (gimple_eh_else_set_e_body): Likewise.
20847 (gimple_try_eval_ptr): Likewise.
20848 (gimple_try_cleanup_ptr): Likewise.
20849 (gimple_try_set_eval): Likewise.
20850 (gimple_try_set_cleanup): Likewise.
20851 (gimple_wce_cleanup_ptr): Likewise.
20852 (gimple_wce_set_cleanup): Likewise.
20853 (gimple_phi_capacity): Likewise.
20854 (gimple_phi_num_args): Likewise.
20855 (gimple_phi_result): Likewise.
20856 (gimple_phi_result_ptr): Likewise.
20857 (gimple_phi_set_result): Likewise.
20858 (gimple_phi_arg): Likewise.
20859 (gimple_phi_set_arg): Likewise.
20860 (gimple_resx_region): Likewise.
20861 (gimple_resx_set_region): Likewise.
20862 (gimple_eh_dispatch_region): Likewise.
20863 (gimple_eh_dispatch_set_region): Likewise.
20864 (gimple_omp_critical_name): Likewise.
20865 (gimple_omp_critical_name_ptr): Likewise.
20866 (gimple_omp_critical_set_name): Likewise.
20867 (gimple_omp_for_clauses): Likewise.
20868 (gimple_omp_for_clauses_ptr): Likewise.
20869 (gimple_omp_for_set_clauses): Likewise.
20870 (gimple_omp_for_collapse): Likewise.
20871 (gimple_omp_for_index): Likewise.
20872 (gimple_omp_for_index_ptr): Likewise.
20873 (gimple_omp_for_set_index): Likewise.
20874 (gimple_omp_for_initial): Likewise.
20875 (gimple_omp_for_initial_ptr): Likewise.
20876 (gimple_omp_for_set_initial): Likewise.
20877 (gimple_omp_for_final): Likewise.
20878 (gimple_omp_for_final_ptr): Likewise.
20879 (gimple_omp_for_set_final): Likewise.
20880 (gimple_omp_for_incr): Likewise.
20881 (gimple_omp_for_incr_ptr): Likewise.
20882 (gimple_omp_for_set_incr): Likewise.
20883 (gimple_omp_for_pre_body_ptr): Likewise.
20884 (gimple_omp_for_set_pre_body): Likewise.
20885 (gimple_omp_parallel_clauses): Likewise.
20886 (gimple_omp_parallel_clauses_ptr): Likewise.
20887 (gimple_omp_parallel_set_clauses): Likewise.
20888 (gimple_omp_parallel_child_fn): Likewise.
20889 (gimple_omp_parallel_child_fn_ptr): Likewise.
20890 (gimple_omp_parallel_set_child_fn): Likewise.
20891 (gimple_omp_parallel_data_arg): Likewise.
20892 (gimple_omp_parallel_data_arg_ptr): Likewise.
20893 (gimple_omp_parallel_set_data_arg): Likewise.
20894 (gimple_omp_task_clauses): Likewise.
20895 (gimple_omp_task_clauses_ptr): Likewise.
20896 (gimple_omp_task_set_clauses): Likewise.
20897 (gimple_omp_task_child_fn): Likewise.
20898 (gimple_omp_task_child_fn_ptr): Likewise.
20899 (gimple_omp_task_set_child_fn): Likewise.
20900 (gimple_omp_task_data_arg): Likewise.
20901 (gimple_omp_task_data_arg_ptr): Likewise.
20902 (gimple_omp_task_set_data_arg): Likewise.
20903 (gimple_omp_taskreg_clauses): Likewise.
20904 (gimple_omp_taskreg_clauses_ptr): Likewise.
20905 (gimple_omp_taskreg_set_clauses): Likewise.
20906 (gimple_omp_taskreg_child_fn): Likewise.
20907 (gimple_omp_taskreg_child_fn_ptr): Likewise.
20908 (gimple_omp_taskreg_set_child_fn): Likewise.
20909 (gimple_omp_taskreg_data_arg): Likewise.
20910 (gimple_omp_taskreg_data_arg_ptr): Likewise.
20911 (gimple_omp_taskreg_set_data_arg): Likewise.
20912 (gimple_omp_task_copy_fn): Likewise.
20913 (gimple_omp_task_copy_fn_ptr): Likewise.
20914 (gimple_omp_task_set_copy_fn): Likewise.
20915 (gimple_omp_task_arg_size): Likewise.
20916 (gimple_omp_task_arg_size_ptr): Likewise.
20917 (gimple_omp_task_set_arg_size): Likewise.
20918 (gimple_omp_task_arg_align): Likewise.
20919 (gimple_omp_task_arg_align_ptr): Likewise.
20920 (gimple_omp_task_set_arg_align): Likewise.
20921 (gimple_omp_single_clauses): Likewise.
20922 (gimple_omp_single_clauses_ptr): Likewise.
20923 (gimple_omp_single_set_clauses): Likewise.
20924 (gimple_omp_target_clauses): Likewise.
20925 (gimple_omp_target_clauses_ptr): Likewise.
20926 (gimple_omp_target_set_clauses): Likewise.
20927 (gimple_omp_target_child_fn): Likewise.
20928 (gimple_omp_target_child_fn_ptr): Likewise.
20929 (gimple_omp_target_set_child_fn): Likewise.
20930 (gimple_omp_target_data_arg): Likewise.
20931 (gimple_omp_target_data_arg_ptr): Likewise.
20932 (gimple_omp_target_set_data_arg): Likewise.
20933 (gimple_omp_teams_clauses): Likewise.
20934 (gimple_omp_teams_clauses_ptr): Likewise.
20935 (gimple_omp_teams_set_clauses): Likewise.
20936 (gimple_omp_sections_clauses): Likewise.
20937 (gimple_omp_sections_clauses_ptr): Likewise.
20938 (gimple_omp_sections_set_clauses): Likewise.
20939 (gimple_omp_sections_control): Likewise.
20940 (gimple_omp_sections_control_ptr): Likewise.
20941 (gimple_omp_sections_set_control): Likewise.
20942 (gimple_omp_for_set_cond): Likewise.
20943 (gimple_omp_for_cond): Likewise.
20944 (gimple_omp_atomic_store_set_val): Likewise.
20945 (gimple_omp_atomic_store_val): Likewise.
20946 (gimple_omp_atomic_store_val_ptr): Likewise.
20947 (gimple_omp_atomic_load_set_lhs): Likewise.
20948 (gimple_omp_atomic_load_lhs): Likewise.
20949 (gimple_omp_atomic_load_lhs_ptr): Likewise.
20950 (gimple_omp_atomic_load_set_rhs): Likewise.
20951 (gimple_omp_atomic_load_rhs): Likewise.
20952 (gimple_omp_atomic_load_rhs_ptr): Likewise.
20953 (gimple_omp_continue_control_def): Likewise.
20954 (gimple_omp_continue_control_def_ptr): Likewise.
20955 (gimple_omp_continue_set_control_def): Likewise.
20956 (gimple_omp_continue_control_use): Likewise.
20957 (gimple_omp_continue_control_use_ptr): Likewise.
20958 (gimple_omp_continue_set_control_use): Likewise.
20959 (gimple_transaction_body_ptr): Likewise.
20960 (gimple_transaction_label): Likewise.
20961 (gimple_transaction_label_ptr): Likewise.
20962 (gimple_transaction_set_body): Likewise.
20963 (gimple_transaction_set_label): Likewise.
20965 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20966 * ipa-inline-analysis.c (inline_write_summary): Likewise.
20967 * ipa-ref.c (ipa_record_reference): Likewise.
20968 * ipa-reference.c (analyze_function): Likewise.
20969 (ipa_reference_write_optimization_summary): Likewise.
20970 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
20971 (address_taken_from_non_vtable_p): Likewise.
20972 (comdat_can_be_unshared_p_1): Likewise.
20973 * lto-cgraph.c (lto_output_ref): Likewise.
20974 (add_references): Likewise.
20975 (compute_ltrans_boundary): Likewise.
20976 (output_symtab): Likewise.
20977 (input_ref): Likewise.
20978 (input_cgraph_1): Likewise.
20979 (output_cgraph_opt_summary): Likewise.
20980 * lto-streamer-out.c (lto_output): Likewise.
20981 (output_symbol_p): Likewise.
20982 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
20983 (lsei_start_function_in_partition): Likewise.
20984 (lsei_next_variable_in_partition): Likewise.
20985 (lsei_start_variable_in_partition): Likewise.
20986 * symtab.c (insert_to_assembler_name_hash): Likewise.
20987 (unlink_from_assembler_name_hash): Likewise.
20988 (symtab_unregister_node): Likewise.
20989 (symtab_remove_node): Likewise.
20990 (dump_symtab_node): Likewise.
20991 (verify_symtab_base): Likewise.
20992 (verify_symtab_node): Likewise.
20993 (symtab_make_decl_local): Likewise.
20994 (symtab_alias_ultimate_target): Likewise.
20995 (symtab_resolve_alias): Likewise.
20996 (symtab_get_symbol_partitioning_class): Likewise.
20997 * tree-phinodes.c (allocate_phi_node): Likewise.
20998 (reserve_phi_args_for_new_edge): Likewise.
20999 (remove_phi_args): Likewise.
21000 * varpool.c (varpool_node_for_asm): Likewise.
21001 (varpool_remove_unreferenced_decls): Likewise.
21003 2014-04-23 Jeff Law <law@redhat.com>
21005 PR tree-optimization/60902
21006 * tree-ssa-threadedge.c
21007 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21008 invalidate outputs from statements that do not produce useful
21009 outputs for threading.
21011 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
21013 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21014 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21015 machine descriptions for Stack Smashing Protector.
21017 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
21019 * aarch64.md (<optab>_rol<mode>3): New pattern.
21020 (<optab>_rolsi3_uxtw): Likewise.
21021 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21023 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
21025 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21026 (arm_cortex_a12_tune): Likewise.
21028 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21032 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21034 * config/arm/arm.md (arm_rev16si2): New pattern.
21035 (arm_rev16si2_alt): Likewise.
21036 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21038 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21040 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21041 (rev16<mode>2_alt): Likewise.
21042 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21043 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
21044 (aarch_rev16_shleft_mask_imm_p): Likewise.
21045 (aarch_rev16_p_1): Likewise.
21046 (aarch_rev16_p): Likewise.
21047 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
21048 (aarch_rev16_shright_mask_imm_p): Likewise.
21049 (aarch_rev16_shleft_mask_imm_p): Likewise.
21051 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21053 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
21054 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
21056 (cortex_a53_extra_costs): Likewise.
21057 (cortex_a57_extra_costs): Likewise.
21058 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
21059 (cortexa7_extra_costs): Likewise.
21060 (cortexa8_extra_costs): Likewise.
21061 (cortexa12_extra_costs): Likewise.
21062 (cortexa15_extra_costs): Likewise.
21063 (v7m_extra_costs): Likewise.
21064 (arm_new_rtx_costs): Handle BSWAP.
21066 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21068 * config/arm/arm.c (cortexa8_extra_costs): New table.
21069 (arm_cortex_a8_tune): New tuning struct.
21070 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
21072 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21074 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
21076 2014-04-23 Richard Biener <rguenther@suse.de>
21078 * Makefile.in (OBJS): Remove loop-unswitch.o.
21079 * tree-pass.h (make_pass_rtl_unswitch): Remove.
21080 * passes.def (pass_rtl_unswitch): Likewise.
21081 * loop-init.c (gate_rtl_unswitch): Likewise.
21082 (rtl_unswitch): Likewise.
21083 (pass_data_rtl_unswitch): Likewise.
21084 (pass_rtl_unswitch): Likewise.
21085 (make_pass_rtl_unswitch): Likewise.
21086 * rtl.h (reversed_condition): Likewise.
21087 (compare_and_jump_seq): Likewise.
21088 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
21090 * loop-unroll.c (compare_and_jump_seq): Likewise.
21092 2014-04-23 Richard Biener <rguenther@suse.de>
21094 PR tree-optimization/60903
21095 * tree-ssa-loop-im.c (analyze_memory_references): Remove
21096 commented code block.
21097 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21098 loop flags to newly created BBs and edges.
21100 2014-04-23 Nick Clifton <nickc@redhat.com>
21102 * config/msp430/msp430.c (msp430_handle_option): Move function
21104 (msp430_option_override): Simplify mcu and mcpu option handling.
21105 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
21106 support for -mhwmult command line option.
21107 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
21108 -mhwmult command line option.
21109 (msp430_hwmult_enabled): Delete.
21110 (msp43o_output_labelref): Add support for -mhwmult command line option.
21111 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21112 (umulsidi3): Likewise.
21113 * config/msp430/msp430.opt (mmcu): Add Report attribute.
21114 (mcpu, mlarge, msmall): Likewise.
21115 (mhwmult): New option.
21116 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21118 (msp430_is_f5_mcu): Remove prototype.
21119 (msp430_use_f5_series_hwmult): Add prototype.
21120 * config/msp430/msp430-opts.h: New file.
21121 * common/config/msp430: New directory.
21122 * common/config/msp430/msp430-common.c: New file.
21123 * config.gcc (msp430): Remove target_has_targetm_common.
21124 * doc/invoke.texi: Document -mhwmult command line option.
21126 2014-04-23 Nick Clifton <nickc@redhat.com>
21128 * config/i386/cygwin.h (ENDFILE_SPEC): Include
21129 default-manifest.o if it can be found in the search path.
21130 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21132 2014-04-23 Terry Guo <terry.guo@arm.com>
21134 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21136 2014-04-23 Richard Biener <rguenther@suse.de>
21138 PR middle-end/60895
21139 * tree-inline.c (declare_return_variable): Use mark_addressable.
21141 2014-04-23 Richard Biener <rguenther@suse.de>
21143 PR middle-end/60891
21144 * loop-init.c (loop_optimizer_init): Make sure to apply
21145 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21147 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21150 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21152 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21153 if flag_sanitize_undefined_trap_on_error.
21154 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21155 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21156 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21157 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21158 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21159 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21160 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21161 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21162 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21163 * ubsan.c (ubsan_instrument_unreachable): Return
21164 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21165 (ubsan_expand_null_ifn): Emit __builtin_trap ()
21166 if flag_sanitize_undefined_trap_on_error and
21167 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21168 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21169 instrument_bool_enum_load): Emit __builtin_trap () if
21170 flag_sanitize_undefined_trap_on_error and
21171 __builtin_handle_*_abort () if !flag_sanitize_recover.
21172 * doc/invoke.texi (-fsanitize-recover,
21173 -fsanitize-undefined-trap-on-error): Document.
21175 2014-04-22 Christian Bruel <christian.bruel@st.com>
21177 * config/sh/sh.md (mov<mode>): Replace movQIHI.
21178 Force immediates to SImode.
21180 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
21182 * config/nios2/nios2.md (UNSPEC_ROUND): New.
21183 (lroundsfsi2): New.
21184 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21185 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21186 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21187 (nios2_fpu_insn): Add entry for round.
21188 (N2FPU_NO_ERRNO_P): Define.
21189 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21191 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21193 2014-04-22 Richard Henderson <rth@redhat.com>
21195 * config/aarch64/aarch64 (addti3, subti3): New expanders.
21196 (add<GPI>3_compare0): Remove leading * from name.
21197 (add<GPI>3_carryin): Likewise.
21198 (sub<GPI>3_compare0): Likewise.
21199 (sub<GPI>3_carryin): Likewise.
21200 (<su_optab>mulditi3): New expander.
21201 (multi3): New expander.
21202 (madd<GPI>): Remove leading * from name.
21204 2014-04-22 Martin Jambor <mjambor@suse.cz>
21206 * cgraphclones.c (cgraph_function_versioning): Copy
21207 ipa_transforms_to_apply instead of asserting it is empty.
21209 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
21212 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21213 on count_exp to get mode.
21215 2014-04-22 Andrew Pinski <apinski@cavium.com>
21217 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21218 Handle TLS for ILP32.
21219 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21220 (tlsie_small_<mode>): this and handle PTR.
21221 (tlsie_small_sidi): New pattern.
21222 (tlsle_small): Change to an expand to handle ILP32.
21223 (tlsle_small_<mode>): New pattern.
21224 (tlsdesc_small): Rename to ...
21225 (tlsdesc_small_<mode>): this and handle PTR.
21227 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21229 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21231 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21233 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21234 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21235 (aarch64_types_signed_poly_qualifiers): Likewise.
21236 (aarch64_types_unsigned_signed_qualifiers): Likewise.
21237 (aarch64_types_poly_signed_qualifiers): Likewise.
21238 (TYPES_REINTERP_SS): Type macro added.
21239 (TYPES_REINTERP_SU): Likewise.
21240 (TYPES_REINTERP_SP): Likewise.
21241 (TYPES_REINTERP_US): Likewise.
21242 (TYPES_REINTERP_PS): Likewise.
21243 (aarch64_fold_builtin): New expression folding added.
21244 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21245 Declarations removed.
21246 (REINTERP_SS): Declarations added.
21247 (REINTERP_US): Likewise.
21248 (REINTERP_PS): Likewise.
21249 (REINTERP_SU): Likewise.
21250 (REINTERP_SP): Likewise.
21251 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21252 (vreinterpretq_p8_f64): Likewise.
21253 (vreinterpret_p16_f64): Likewise.
21254 (vreinterpretq_p16_f64): Likewise.
21255 (vreinterpret_f32_f64): Likewise.
21256 (vreinterpretq_f32_f64): Likewise.
21257 (vreinterpret_f64_f32): Likewise.
21258 (vreinterpret_f64_p8): Likewise.
21259 (vreinterpret_f64_p16): Likewise.
21260 (vreinterpret_f64_s8): Likewise.
21261 (vreinterpret_f64_s16): Likewise.
21262 (vreinterpret_f64_s32): Likewise.
21263 (vreinterpret_f64_s64): Likewise.
21264 (vreinterpret_f64_u8): Likewise.
21265 (vreinterpret_f64_u16): Likewise.
21266 (vreinterpret_f64_u32): Likewise.
21267 (vreinterpret_f64_u64): Likewise.
21268 (vreinterpretq_f64_f32): Likewise.
21269 (vreinterpretq_f64_p8): Likewise.
21270 (vreinterpretq_f64_p16): Likewise.
21271 (vreinterpretq_f64_s8): Likewise.
21272 (vreinterpretq_f64_s16): Likewise.
21273 (vreinterpretq_f64_s32): Likewise.
21274 (vreinterpretq_f64_s64): Likewise.
21275 (vreinterpretq_f64_u8): Likewise.
21276 (vreinterpretq_f64_u16): Likewise.
21277 (vreinterpretq_f64_u32): Likewise.
21278 (vreinterpretq_f64_u64): Likewise.
21279 (vreinterpret_s64_f64): Likewise.
21280 (vreinterpretq_s64_f64): Likewise.
21281 (vreinterpret_u64_f64): Likewise.
21282 (vreinterpretq_u64_f64): Likewise.
21283 (vreinterpret_s8_f64): Likewise.
21284 (vreinterpretq_s8_f64): Likewise.
21285 (vreinterpret_s16_f64): Likewise.
21286 (vreinterpretq_s16_f64): Likewise.
21287 (vreinterpret_s32_f64): Likewise.
21288 (vreinterpretq_s32_f64): Likewise.
21289 (vreinterpret_u8_f64): Likewise.
21290 (vreinterpretq_u8_f64): Likewise.
21291 (vreinterpret_u16_f64): Likewise.
21292 (vreinterpretq_u16_f64): Likewise.
21293 (vreinterpret_u32_f64): Likewise.
21294 (vreinterpretq_u32_f64): Likewise.
21296 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21298 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21299 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21300 (vreinterpret_p8_s8): Likewise.
21301 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21302 (vreinterpret_p8_s16): Likewise.
21303 (vreinterpret_p8_s32): Likewise.
21304 (vreinterpret_p8_s64): Likewise.
21305 (vreinterpret_p8_f32): Likewise.
21306 (vreinterpret_p8_u8): Likewise.
21307 (vreinterpret_p8_u16): Likewise.
21308 (vreinterpret_p8_u32): Likewise.
21309 (vreinterpret_p8_u64): Likewise.
21310 (vreinterpret_p8_p16): Likewise.
21311 (vreinterpretq_p8_s8): Likewise.
21312 (vreinterpretq_p8_s16): Likewise.
21313 (vreinterpretq_p8_s32): Likewise.
21314 (vreinterpretq_p8_s64): Likewise.
21315 (vreinterpretq_p8_f32): Likewise.
21316 (vreinterpretq_p8_u8): Likewise.
21317 (vreinterpretq_p8_u16): Likewise.
21318 (vreinterpretq_p8_u32): Likewise.
21319 (vreinterpretq_p8_u64): Likewise.
21320 (vreinterpretq_p8_p16): Likewise.
21321 (vreinterpret_p16_s8): Likewise.
21322 (vreinterpret_p16_s16): Likewise.
21323 (vreinterpret_p16_s32): Likewise.
21324 (vreinterpret_p16_s64): Likewise.
21325 (vreinterpret_p16_f32): Likewise.
21326 (vreinterpret_p16_u8): Likewise.
21327 (vreinterpret_p16_u16): Likewise.
21328 (vreinterpret_p16_u32): Likewise.
21329 (vreinterpret_p16_u64): Likewise.
21330 (vreinterpret_p16_p8): Likewise.
21331 (vreinterpretq_p16_s8): Likewise.
21332 (vreinterpretq_p16_s16): Likewise.
21333 (vreinterpretq_p16_s32): Likewise.
21334 (vreinterpretq_p16_s64): Likewise.
21335 (vreinterpretq_p16_f32): Likewise.
21336 (vreinterpretq_p16_u8): Likewise.
21337 (vreinterpretq_p16_u16): Likewise.
21338 (vreinterpretq_p16_u32): Likewise.
21339 (vreinterpretq_p16_u64): Likewise.
21340 (vreinterpretq_p16_p8): Likewise.
21341 (vreinterpret_f32_s8): Likewise.
21342 (vreinterpret_f32_s16): Likewise.
21343 (vreinterpret_f32_s32): Likewise.
21344 (vreinterpret_f32_s64): Likewise.
21345 (vreinterpret_f32_u8): Likewise.
21346 (vreinterpret_f32_u16): Likewise.
21347 (vreinterpret_f32_u32): Likewise.
21348 (vreinterpret_f32_u64): Likewise.
21349 (vreinterpret_f32_p8): Likewise.
21350 (vreinterpret_f32_p16): Likewise.
21351 (vreinterpretq_f32_s8): Likewise.
21352 (vreinterpretq_f32_s16): Likewise.
21353 (vreinterpretq_f32_s32): Likewise.
21354 (vreinterpretq_f32_s64): Likewise.
21355 (vreinterpretq_f32_u8): Likewise.
21356 (vreinterpretq_f32_u16): Likewise.
21357 (vreinterpretq_f32_u32): Likewise.
21358 (vreinterpretq_f32_u64): Likewise.
21359 (vreinterpretq_f32_p8): Likewise.
21360 (vreinterpretq_f32_p16): Likewise.
21361 (vreinterpret_s64_s8): Likewise.
21362 (vreinterpret_s64_s16): Likewise.
21363 (vreinterpret_s64_s32): Likewise.
21364 (vreinterpret_s64_f32): Likewise.
21365 (vreinterpret_s64_u8): Likewise.
21366 (vreinterpret_s64_u16): Likewise.
21367 (vreinterpret_s64_u32): Likewise.
21368 (vreinterpret_s64_u64): Likewise.
21369 (vreinterpret_s64_p8): Likewise.
21370 (vreinterpret_s64_p16): Likewise.
21371 (vreinterpretq_s64_s8): Likewise.
21372 (vreinterpretq_s64_s16): Likewise.
21373 (vreinterpretq_s64_s32): Likewise.
21374 (vreinterpretq_s64_f32): Likewise.
21375 (vreinterpretq_s64_u8): Likewise.
21376 (vreinterpretq_s64_u16): Likewise.
21377 (vreinterpretq_s64_u32): Likewise.
21378 (vreinterpretq_s64_u64): Likewise.
21379 (vreinterpretq_s64_p8): Likewise.
21380 (vreinterpretq_s64_p16): Likewise.
21381 (vreinterpret_u64_s8): Likewise.
21382 (vreinterpret_u64_s16): Likewise.
21383 (vreinterpret_u64_s32): Likewise.
21384 (vreinterpret_u64_s64): Likewise.
21385 (vreinterpret_u64_f32): Likewise.
21386 (vreinterpret_u64_u8): Likewise.
21387 (vreinterpret_u64_u16): Likewise.
21388 (vreinterpret_u64_u32): Likewise.
21389 (vreinterpret_u64_p8): Likewise.
21390 (vreinterpret_u64_p16): Likewise.
21391 (vreinterpretq_u64_s8): Likewise.
21392 (vreinterpretq_u64_s16): Likewise.
21393 (vreinterpretq_u64_s32): Likewise.
21394 (vreinterpretq_u64_s64): Likewise.
21395 (vreinterpretq_u64_f32): Likewise.
21396 (vreinterpretq_u64_u8): Likewise.
21397 (vreinterpretq_u64_u16): Likewise.
21398 (vreinterpretq_u64_u32): Likewise.
21399 (vreinterpretq_u64_p8): Likewise.
21400 (vreinterpretq_u64_p16): Likewise.
21401 (vreinterpret_s8_s16): Likewise.
21402 (vreinterpret_s8_s32): Likewise.
21403 (vreinterpret_s8_s64): Likewise.
21404 (vreinterpret_s8_f32): Likewise.
21405 (vreinterpret_s8_u8): Likewise.
21406 (vreinterpret_s8_u16): Likewise.
21407 (vreinterpret_s8_u32): Likewise.
21408 (vreinterpret_s8_u64): Likewise.
21409 (vreinterpret_s8_p8): Likewise.
21410 (vreinterpret_s8_p16): Likewise.
21411 (vreinterpretq_s8_s16): Likewise.
21412 (vreinterpretq_s8_s32): Likewise.
21413 (vreinterpretq_s8_s64): Likewise.
21414 (vreinterpretq_s8_f32): Likewise.
21415 (vreinterpretq_s8_u8): Likewise.
21416 (vreinterpretq_s8_u16): Likewise.
21417 (vreinterpretq_s8_u32): Likewise.
21418 (vreinterpretq_s8_u64): Likewise.
21419 (vreinterpretq_s8_p8): Likewise.
21420 (vreinterpretq_s8_p16): Likewise.
21421 (vreinterpret_s16_s8): Likewise.
21422 (vreinterpret_s16_s32): Likewise.
21423 (vreinterpret_s16_s64): Likewise.
21424 (vreinterpret_s16_f32): Likewise.
21425 (vreinterpret_s16_u8): Likewise.
21426 (vreinterpret_s16_u16): Likewise.
21427 (vreinterpret_s16_u32): Likewise.
21428 (vreinterpret_s16_u64): Likewise.
21429 (vreinterpret_s16_p8): Likewise.
21430 (vreinterpret_s16_p16): Likewise.
21431 (vreinterpretq_s16_s8): Likewise.
21432 (vreinterpretq_s16_s32): Likewise.
21433 (vreinterpretq_s16_s64): Likewise.
21434 (vreinterpretq_s16_f32): Likewise.
21435 (vreinterpretq_s16_u8): Likewise.
21436 (vreinterpretq_s16_u16): Likewise.
21437 (vreinterpretq_s16_u32): Likewise.
21438 (vreinterpretq_s16_u64): Likewise.
21439 (vreinterpretq_s16_p8): Likewise.
21440 (vreinterpretq_s16_p16): Likewise.
21441 (vreinterpret_s32_s8): Likewise.
21442 (vreinterpret_s32_s16): Likewise.
21443 (vreinterpret_s32_s64): Likewise.
21444 (vreinterpret_s32_f32): Likewise.
21445 (vreinterpret_s32_u8): Likewise.
21446 (vreinterpret_s32_u16): Likewise.
21447 (vreinterpret_s32_u32): Likewise.
21448 (vreinterpret_s32_u64): Likewise.
21449 (vreinterpret_s32_p8): Likewise.
21450 (vreinterpret_s32_p16): Likewise.
21451 (vreinterpretq_s32_s8): Likewise.
21452 (vreinterpretq_s32_s16): Likewise.
21453 (vreinterpretq_s32_s64): Likewise.
21454 (vreinterpretq_s32_f32): Likewise.
21455 (vreinterpretq_s32_u8): Likewise.
21456 (vreinterpretq_s32_u16): Likewise.
21457 (vreinterpretq_s32_u32): Likewise.
21458 (vreinterpretq_s32_u64): Likewise.
21459 (vreinterpretq_s32_p8): Likewise.
21460 (vreinterpretq_s32_p16): Likewise.
21461 (vreinterpret_u8_s8): Likewise.
21462 (vreinterpret_u8_s16): Likewise.
21463 (vreinterpret_u8_s32): Likewise.
21464 (vreinterpret_u8_s64): Likewise.
21465 (vreinterpret_u8_f32): Likewise.
21466 (vreinterpret_u8_u16): Likewise.
21467 (vreinterpret_u8_u32): Likewise.
21468 (vreinterpret_u8_u64): Likewise.
21469 (vreinterpret_u8_p8): Likewise.
21470 (vreinterpret_u8_p16): Likewise.
21471 (vreinterpretq_u8_s8): Likewise.
21472 (vreinterpretq_u8_s16): Likewise.
21473 (vreinterpretq_u8_s32): Likewise.
21474 (vreinterpretq_u8_s64): Likewise.
21475 (vreinterpretq_u8_f32): Likewise.
21476 (vreinterpretq_u8_u16): Likewise.
21477 (vreinterpretq_u8_u32): Likewise.
21478 (vreinterpretq_u8_u64): Likewise.
21479 (vreinterpretq_u8_p8): Likewise.
21480 (vreinterpretq_u8_p16): Likewise.
21481 (vreinterpret_u16_s8): Likewise.
21482 (vreinterpret_u16_s16): Likewise.
21483 (vreinterpret_u16_s32): Likewise.
21484 (vreinterpret_u16_s64): Likewise.
21485 (vreinterpret_u16_f32): Likewise.
21486 (vreinterpret_u16_u8): Likewise.
21487 (vreinterpret_u16_u32): Likewise.
21488 (vreinterpret_u16_u64): Likewise.
21489 (vreinterpret_u16_p8): Likewise.
21490 (vreinterpret_u16_p16): Likewise.
21491 (vreinterpretq_u16_s8): Likewise.
21492 (vreinterpretq_u16_s16): Likewise.
21493 (vreinterpretq_u16_s32): Likewise.
21494 (vreinterpretq_u16_s64): Likewise.
21495 (vreinterpretq_u16_f32): Likewise.
21496 (vreinterpretq_u16_u8): Likewise.
21497 (vreinterpretq_u16_u32): Likewise.
21498 (vreinterpretq_u16_u64): Likewise.
21499 (vreinterpretq_u16_p8): Likewise.
21500 (vreinterpretq_u16_p16): Likewise.
21501 (vreinterpret_u32_s8): Likewise.
21502 (vreinterpret_u32_s16): Likewise.
21503 (vreinterpret_u32_s32): Likewise.
21504 (vreinterpret_u32_s64): Likewise.
21505 (vreinterpret_u32_f32): Likewise.
21506 (vreinterpret_u32_u8): Likewise.
21507 (vreinterpret_u32_u16): Likewise.
21508 (vreinterpret_u32_u64): Likewise.
21509 (vreinterpret_u32_p8): Likewise.
21510 (vreinterpret_u32_p16): Likewise.
21511 (vreinterpretq_u32_s8): Likewise.
21512 (vreinterpretq_u32_s16): Likewise.
21513 (vreinterpretq_u32_s32): Likewise.
21514 (vreinterpretq_u32_s64): Likewise.
21515 (vreinterpretq_u32_f32): Likewise.
21516 (vreinterpretq_u32_u8): Likewise.
21517 (vreinterpretq_u32_u16): Likewise.
21518 (vreinterpretq_u32_u64): Likewise.
21519 (vreinterpretq_u32_p8): Likewise.
21520 (vreinterpretq_u32_p16): Likewise.
21522 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21524 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21526 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21528 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21529 (vqnegd_s64): Likewise.
21530 (vqabs_s64): Likewise.
21531 (vqabsd_s64): Likewise.
21533 2014-04-22 Richard Henderson <rth@redhat.com>
21535 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21536 computation to the top of the loop.
21538 2014-04-22 Renlin <renlin.li@arm.com>
21539 Jiong Wang <jiong.wang@arm.com>
21541 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21542 * config/aarch64/aarch64.c (aarch64_layout_frame)
21543 (aarch64_initial_elimination_offset): Likewise.
21545 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
21547 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21550 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
21552 * machmode.h (bitwise_mode_for_mode): Declare.
21553 * stor-layout.h (bitwise_type_for_mode): Likewise.
21554 * stor-layout.c (bitwise_mode_for_mode): New function.
21555 (bitwise_type_for_mode): Likewise.
21556 * builtins.c (fold_builtin_memory_op): Use it instead of
21557 int_mode_for_mode and build_nonstandard_integer_type.
21559 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21561 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21562 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21563 (*-*-solaris2*): Simplify.
21564 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21565 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21566 *-*-solaris2.9* handling.
21568 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21570 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21571 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21572 handling, simplify.
21573 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21574 * configure: Regenerate.
21576 * config/i386/sol2-9.h: Remove.
21578 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21579 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21580 Remove Solaris 9 references.
21582 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
21584 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21585 (floatuns<GPI:mode><GPF:mode>2): Remove.
21586 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21587 and floatuns conversions.
21588 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21589 and floatuns conversions.
21590 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21591 (w1,w2): New mode attributes for inequal width conversions.
21593 2014-04-22 Renlin Li <Renlin.Li@arm.com>
21595 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21596 the output asm format.
21598 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
21600 * config/aarch64/aarch64-simd.md
21601 (aarch64_cm<optab>di): Always split.
21602 (*aarch64_cm<optab>di): New.
21603 (aarch64_cmtstdi): Always split.
21604 (*aarch64_cmtstdi): New.
21606 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21608 PR tree-optimization/60823
21609 * omp-low.c (ipa_simd_modify_function_body): Go through
21610 all SSA_NAMEs and for those refering to vector arguments
21611 which are going to be replaced adjust SSA_NAME_VAR and,
21612 if it is a default definition, change it into a non-default
21613 definition assigned at the beginning of function from new_decl.
21614 (ipa_simd_modify_stmt_ops): Rewritten.
21615 * tree-dfa.c (set_ssa_default_def): When removing default def,
21616 check for NULL loc instead of NULL *loc.
21618 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21620 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21621 restrictions on core registers for DImode values in Thumb2.
21623 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21625 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21626 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21628 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21630 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21631 (*iordi_notzesidi_di): Likewise.
21632 (*iordi_notsesidi_di): Likewise.
21634 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21636 * config/arm/arm-protos.h (tune_params): New struct members.
21637 * config/arm/arm.c: Initialise tune_params per processor.
21638 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21639 for speed, based on new tune_params.
21641 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21643 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21644 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21645 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21646 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21647 * config/aarch64/arm_neon.h (vrnd_f64): Added.
21648 (vrnda_f64): Likewise.
21649 (vrndi_f64): Likewise.
21650 (vrndm_f64): Likewise.
21651 (vrndn_f64): Likewise.
21652 (vrndp_f64): Likewise.
21653 (vrndx_f64): Likewise.
21655 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21657 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21658 GET_MODE_SIZE argument is enum machine_mode.
21660 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21663 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21664 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21666 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
21668 PR middle-end/60281
21669 * asan.c (asan_emit_stack_protection): Force the base to align to
21670 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
21671 appropriate bits if STRICT_ALIGNMENT.
21672 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21674 (expand_used_vars): Leave a space in the stack frame for alignment
21675 if STRICT_ALIGNMENT.
21677 2014-04-21 David Malcolm <dmalcolm@redhat.com>
21679 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21681 (gimple_store_p): Likewise.
21682 (gimple_assign_load_p): Likewise.
21683 (gimple_assign_cast_p): Likewise.
21684 (gimple_clobber_p): Likewise.
21686 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
21687 rather than a gimple.
21688 (gimple_assign_cast_p): Likewise.
21690 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21693 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
21694 If mode is DDmode and TARGET_E500_DOUBLE allow move.
21696 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
21697 more debug information for E500 if -mdebug=reg.
21699 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
21702 * config/i386/i386.c (ix86_expand_builtin)
21703 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
21704 register for target RTX.
21705 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
21707 2014-04-18 Cong Hou <congh@google.com>
21709 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
21710 the widen-mult pattern by handling two operands with different sizes,
21711 and operands whose size is smaller than half of the result type.
21713 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21715 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
21716 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
21717 (do_estimate_edge_time): Compute it.
21718 * ipa-inline.c (want_inline_small_function_p): Bypass
21719 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
21721 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21723 * ipa-inline.c (spec_rem): New static variable.
21724 (dump_overall_stats): New function.
21725 (dump_inline_stats): New function.
21727 2014-04-18 Richard Henderson <rth@redhat.com>
21729 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
21730 to GET_MODE_SIZE, not a reg_class_t.
21732 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21734 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
21735 (vsx_xxmrglw_<mode>): Likewise.
21737 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
21740 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
21741 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
21742 (rs6000_init_hard_regno_mode_ok): Likewise.
21744 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
21746 * ipa-inline.c (inline_small_functions): Account only non-cold
21748 * doc/invoke.texi (inline-unit-growth): Update documentation.
21750 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
21752 * config/rs6000/rs6000.md (addti3, subti3): New.
21754 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
21757 * config/i386/i386.c (ix86_expand_clear): Remove outdated
21758 comment. Check optimize_insn_for_size_p instead of
21759 optimize_insn_for_speed_p.
21761 2014-04-17 Martin Jambor <mjambor@suse.cz>
21763 * gimple-iterator.c (gsi_start_edge): New function.
21764 * gimple-iterator.h (gsi_start_edge): Declare.
21765 * tree-sra.c (single_non_eh_succ): New function.
21766 (disqualify_ops_if_throwing_stmt): Renamed to
21767 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
21768 having one non-EH successor BB.
21769 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
21770 generate loads into replacements.
21771 (sra_modify_assign): Likewise and and also use the simple path for
21773 (sra_modify_function_body): Commit statements on edges.
21775 2014-04-17 Richard Biener <rguenther@suse.de>
21777 PR middle-end/60849
21778 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
21779 comparison results and add clarifying comment.
21781 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21783 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
21784 (blank_mode): Initialize it.
21785 (emit_mode_size_inline, emit_mode_nunits_inline,
21786 emit_mode_inner_inline): New functions.
21787 (emit_insn_modes_h): Call them and surround their output with
21788 #if GCC_VERSION >= 4001 ... #endif.
21789 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
21790 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
21791 mode_* arrays if the argument is __builtin_constant_p.
21792 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
21793 is enum machine_mode.
21795 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21797 * passes.c (opt_pass::execute): Adjust.
21798 (pass_manager::execute_pass_mode_switching): Likewise.
21799 (early_local_passes::execute): Likewise.
21800 (execute_one_pass): Pass cfun to the pass's execute method.
21801 * tree-pass.h (opt_pass::execute): Add function * argument.
21802 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21803 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21804 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21805 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21806 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21807 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
21808 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
21809 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21810 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21811 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
21812 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
21813 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
21814 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
21815 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
21816 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21817 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21818 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21819 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
21820 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
21821 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21822 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21823 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21824 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21825 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21826 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21827 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21828 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21829 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21830 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21833 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21835 * passes.c (opt_pass::gate): Take function * argument.
21836 (gate_all_early_local_passes): Merge into
21837 (early_local_passes::gate): this.
21838 (gate_all_early_optimizations): Merge into
21839 (all_early_optimizations::gate): this.
21840 (gate_all_optimizations): Mege into
21841 (all_optimizations::gate): this.
21842 (gate_all_optimizations_g): Merge into
21843 (all_optimizations_g::gate): this.
21844 (gate_rest_of_compilation): Mege into
21845 (rest_of_compilation::gate): this.
21846 (gate_postreload): Merge into
21847 (postreload::gate): this.
21848 (dump_one_pass): Pass cfun to the pass's gate method.
21849 (execute_ipa_summary_passes): Likewise.
21850 (execute_one_pass): Likewise.
21851 (ipa_write_summaries_2): Likewise.
21852 (ipa_write_optimization_summaries_1): Likewise.
21853 (ipa_read_summaries_1): Likewise.
21854 (ipa_read_optimization_summaries_1): Likewise.
21855 (execute_ipa_stmt_fixups): Likewise.
21856 * tree-pass.h (opt_pass::gate): Add function * argument.
21857 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
21858 combine-stack-adj.c, combine.c, compare-elim.c,
21859 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21860 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
21861 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
21862 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
21863 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21864 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21865 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21866 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
21867 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21868 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
21869 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21870 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21871 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
21872 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21873 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21874 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21875 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21876 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21877 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21878 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21879 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21880 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21881 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
21882 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
21883 var-tracking.c, vtable-verify.c, web.c: Adjust.
21885 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21887 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
21888 * configure: Regenerate.
21890 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21892 * passes.c (dump_one_pass): don't check pass->has_gate.
21893 (execute_ipa_summary_passes): Likewise.
21894 (execute_one_pass): Likewise.
21895 (ipa_write_summaries_2): Likewise.
21896 (ipa_write_optimization_summaries_1): Likewise.
21897 (ipa_read_optimization_summaries_1): Likewise.
21898 (execute_ipa_stmt_fixups): Likewise.
21899 * tree-pass.h (pass_data::has_gate): Remove.
21900 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21901 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21902 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21903 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21904 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21905 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21906 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21907 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21908 gimple-low.c, gimple-ssa-isolate-paths.c,
21909 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21910 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
21911 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21912 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
21913 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
21914 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
21915 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
21916 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
21917 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
21918 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21919 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21920 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21921 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21922 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21923 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21924 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21925 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21926 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21927 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21928 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21929 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21930 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21933 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21935 * pass_manager.h (pass_manager::register_dump_files_1): Remove
21937 * passes.c (pass_manager::register_dump_files_1): Merge into
21938 (pass_manager::register_dump_files): this, and remove its handling of
21939 properties since the pass always has the properties anyway.
21940 (pass_manager::pass_manager): Adjust.
21942 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21944 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
21945 * passes.c (pass_manager::register_dump_files_1): Remove dead code
21946 dealing with properties.
21947 (pass_manager::register_dump_files): Adjust.
21949 2014-03-20 Mark Wielaard <mjw@redhat.com>
21951 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
21952 then represent the bound as normal constant value.
21954 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21957 Forward port from 4.8 branch
21958 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
21960 * config/i386/bmiintrin.h (_blsi_u32): New.
21961 (_blsi_u64): Ditto.
21962 (_blsr_u32): Ditto.
21963 (_blsr_u64): Ditto.
21964 (_blsmsk_u32): Ditto.
21965 (_blsmsk_u64): Ditto.
21966 (_tzcnt_u32): Ditto.
21967 (_tzcnt_u64): Ditto.
21969 2014-04-17 Kito Cheng <kito@0xlab.org>
21971 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
21973 2014-04-17 Richard Biener <rguenther@suse.de>
21975 PR middle-end/60849
21976 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
21977 boolean results for comparisons.
21979 2014-04-17 Richard Biener <rguenther@suse.de>
21981 PR tree-optimization/60836
21982 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
21983 initial PHI args to be gimple values.
21985 2014-04-17 Richard Biener <rguenther@suse.de>
21987 PR tree-optimization/60841
21988 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
21989 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
21990 of stmts to SLP build.
21991 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
21992 (vect_analyze_slp): Likewise.
21993 (vect_analyze_slp_instance): Likewise.
21994 (vect_build_slp_tree): Limit overall SLP tree growth.
21995 * tree-vectorizer.h (vect_analyze_data_refs,
21996 vect_analyze_slp): Adjust prototypes.
21998 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22000 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22003 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22005 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22006 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22007 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22008 for TARGET_SLOW_PSHUFB
22010 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22012 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22013 * config/i386/i386.c (intel_cost): Ditto.
22015 2014-04-17 Joey Ye <joey.ye@arm.com>
22017 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22019 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22021 * opts.c (common_handle_option): Disable -fipa-reference coorectly
22022 with -fuse-profile.
22024 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22026 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22027 (type_all_derivations_known_p): New predicate.
22028 (type_all_ctors_visible_p): New predicate.
22029 (type_possibly_instantiated_p): New predicate.
22030 (get_odr_type): Compute all_derivations_known.
22031 (dump_odr_type): Dump the flag.
22032 (maybe_record_type): Cleanup.
22033 (record_target_from_binfo): Add bases_to_consider array;
22034 record bases for types w/o instances and skip CXX destructor.
22035 (possible_polymorphic_call_targets_1): Add bases_to_consider
22036 and consider_construction parameters; check if type may have instance.
22037 (get_polymorphic_call_info): Set maybe_in_construction to true
22038 when we know nothing.
22039 (record_targets_from_bases): Skip CXX destructors; they are
22040 never called for types in construction.
22041 (possible_polymorphic_call_targets): Do not record target when
22042 type may not have instance.
22044 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22047 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
22048 external aliases alive, too.
22050 2014-04-16 Andrew Pinski <apinski@cavium.com>
22052 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
22055 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
22057 * final.c (compute_alignments): Do not apply loop alignment to a block
22058 falling through to the exit.
22060 2014-04-16 Catherine Moore <clm@codesourcery.com>
22062 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
22063 Adjust constraints for microMIPS store patterns.
22065 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22067 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
22069 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
22071 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
22072 (append_use): Run at -O0.
22073 (append_vdef): Likewise.
22074 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
22075 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
22077 2014-04-16 Jakub Jelinek <jakub@redhat.com>
22079 PR tree-optimization/60844
22080 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
22081 (propagate_op_to_single_use, remove_visited_stmt_chain,
22082 linearize_expr, repropagate_negates, reassociate_bb): Use it
22083 instead of gsi_remove.
22085 2014-04-16 Martin Jambor <mjambor@suse.cz>
22087 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
22088 ipa_transforms_to_apply.
22089 (cgraph_function_versioning): Assert that old_node has empty
22090 ipa_transforms_to_apply.
22091 * trans-mem.c (ipa_tm_create_version): Likewise.
22092 * tree-inline.c (tree_function_versioning): Do not duplicate
22093 ipa_transforms_to_apply.
22095 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22098 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22100 Pass necessary as flags on 64-bit Solaris/x86.
22101 Use lowercase relocs for x86_64-*-*.
22102 * configure: Regenerate.
22104 2014-04-15 Jan Hubicka <jh@suse.cz>
22106 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22107 (maybe_record_node, likely_target_p): Use it.
22109 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22112 Revert following patch
22114 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22117 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22118 software floating point or no floating point registers, do not
22119 allow any type in the FPRs. Eliminate a test for SPE SIMD types
22120 in GPRs that occurs after we tested for GPRs that would never be
22123 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22124 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22125 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
22126 specifically allow DDmode, since that does not use the SPE SIMD
22129 2014-03-21 Mark Wielaard <mjw@redhat.com>
22131 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22132 as unsigned or int depending on type and value used.
22134 2014-04-15 Richard Biener <rguenther@suse.de>
22136 PR rtl-optimization/56965
22137 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22138 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22140 * alias.c (true_dependence_1): Do not call
22141 nonoverlapping_component_refs_p.
22142 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22143 nonoverlapping_component_refs_p.
22144 (indirect_refs_may_alias_p): Likewise.
22146 2014-04-15 Teresa Johnson <tejohnson@google.com>
22148 * cfg.c (dump_bb_info): Fix flags check.
22149 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22151 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22153 PR rtl-optimization/60663
22154 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22157 2014-04-15 Richard Biener <rguenther@suse.de>
22159 * lto-streamer.h (LTO_major_version): Bump to 4.
22161 2014-04-15 Richard Biener <rguenther@suse.de>
22163 * common.opt (lto_partition_model): New enum.
22164 (flto-partition=): Merge separate options with a single with argument,
22165 add -flto-partition=one support.
22166 * flag-types.h (enum lto_partition_model): Declare.
22167 * opts.c (finish_options): Remove duplicate -flto-partition=
22169 * lto-wrapper.c (run_gcc): Adjust.
22171 2014-04-15 Richard Biener <rguenther@suse.de>
22173 * alias.c (ncr_compar): New function.
22174 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22176 2014-04-15 Richard Biener <rguenther@suse.de>
22178 * alias.c (record_component_aliases): Do not walk BINFOs.
22180 2014-04-15 Richard Biener <rguenther@suse.de>
22182 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22183 Add struct function argument and adjust.
22184 (find_func_aliases_for_call): Likewise.
22185 (find_func_aliases): Likewise.
22186 (find_func_clobbers): Likewise.
22187 (intra_create_variable_infos): Likewise.
22188 (compute_points_to_sets): Likewise.
22189 (ipa_pta_execute): Adjust. Do not push/pop cfun.
22191 2014-04-15 Richard Biener <rguenther@suse.de>
22193 * tree.c (iterative_hash_expr): Use enum tree_code_class
22194 to store TREE_CODE_CLASS.
22195 (tree_block): Likewise.
22196 (tree_set_block): Likewise.
22197 * tree.h (fold_build_pointer_plus_loc): Use
22198 convert_to_ptrofftype_loc.
22200 2014-04-15 Jakub Jelinek <jakub@redhat.com>
22203 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22206 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
22208 * cfgloop.h (struct loop): Move force_vectorize down.
22209 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22210 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22211 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22212 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22213 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22214 * tree-core.h (enum annot_expr_kind): Add new kind values.
22215 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22216 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22218 * tree.def (ANNOTATE_EXPR): Tweak comment.
22220 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22222 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22225 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
22227 * tree.h (TYPE_IDENTIFIER): Declare.
22228 * tree.c (subrange_type_for_debug_p): Use it.
22229 * godump.c (go_format_type): Likewise.
22230 * dwarf2out.c (is_cxx_auto, modified_type_die,
22231 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22232 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22234 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22237 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22239 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
22241 * config/i386/i386.c (examine_argument): Return bool. Return true if
22242 parameter should be passed in memory.
22243 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22244 (construct_container): Update calls to examine_argument.
22245 (function_arg_advance_64): Ditto.
22246 (return_in_memory_32): Merge with ix86_return_in_memory.
22247 (return_in_memory_64): Ditto.
22248 (return_in_memory_ms_64): Ditto.
22250 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22252 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22253 * coverage.c (coverage_compute_profile_id): Handle externally visible
22256 2014-04-14 Martin Jambor <mjambor@suse.cz>
22258 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22259 DECL_DISREGARD_INLINE_LIMITS functions.
22261 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22264 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22266 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22269 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22270 optimize_insn_for_speed_p instead of
22271 optimize_function_for_speed_p.
22273 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
22275 * doc/invoke.texi (free): Document AArch64.
22277 2014-04-14 Richard Biener <rguenther@suse.de>
22279 PR tree-optimization/60042
22280 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22281 (insert_into_preds_of_block): Do not prevent PHI insertion
22282 for REFERENCE exprs here ...
22283 (eliminate_dom_walker::before_dom_children): ... but prevent
22284 their use here under similar conditions when applied to the
22285 IL after PRE optimizations.
22287 2014-04-14 Richard Biener <rguenther@suse.de>
22289 * passes.def: Move early points-to after early SRA.
22291 2014-04-14 Richard Biener <rguenther@suse.de>
22293 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22294 check for which sign-changes we allow when forwarding
22295 a converted value into a switch.
22297 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22299 * stor-layout.c (place_field): Finalize non-constant offset for the
22302 2014-04-14 Richard Biener <rguenther@suse.de>
22304 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22306 (expand_switch_using_bit_tests_p): Likewise.
22307 (process_switch): Compute and pass on speed_p based on the
22309 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22310 optimize_bb_for_speed_p.
22312 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22314 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22315 * function.h (struct function): Rename has_force_vect_loops into
22316 has_force_vectorize_loops.
22317 * lto-streamer-in.c (input_cfg): Adjust for renaming.
22318 (input_struct_function_base): Likewise.
22319 * lto-streamer-out.c (output_cfg): Likewise.
22320 (output_struct_function_base): Likewise.
22321 * omp-low.c (expand_omp_simd): Likewise.
22322 * tree-cfg.c (move_sese_region_to_fn): Likewise.
22323 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22324 (version_loop_for_if_conversion): Likewise.
22325 (tree_if_conversion): Likewise.
22326 (main_tree_if_conversion): Likewise.
22327 (gate_tree_if_conversion): Likewise.
22328 * tree-inline.c (copy_loops): Likewise.
22329 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22330 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22331 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22332 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22333 * tree-vectorizer.c (vectorize_loops): Likewise.
22334 * tree-vectorizer.h (unlimited_cost_model): Likewise.
22336 2014-04-14 Richard Biener <rguenther@suse.de>
22339 * lto-streamer-out.c (wrap_refs): New function.
22340 (lto_output): Wrap symbol references in global initializes in
22341 type-preserving MEM_REFs.
22343 2014-04-14 Christian Bruel <christian.bruel@st.com>
22345 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22347 2014-04-14 Christian Bruel <christian.bruel@st.com>
22349 * config/sh/sh.md (setmemqi): New expand pattern.
22350 * config/sh/sh.h (CLEAR_RATIO): Define.
22351 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22352 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22354 2014-04-14 Richard Biener <rguenther@suse.de>
22356 PR middle-end/55022
22357 * fold-const.c (negate_expr_p): Don't negate directional rounding
22359 (fold_negate_expr): Likewise.
22361 2014-04-14 Richard Biener <rguenther@suse.de>
22363 PR tree-optimization/59817
22364 PR tree-optimization/60453
22365 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22366 recursion to catch all CHRECs in the scalar evolution and restrict
22367 the predicate for the remains appropriately.
22369 2014-04-12 Catherine Moore <clm@codesourcery.com>
22371 * config/mips/constraints.md: Add new register constraint "kb".
22372 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22373 (*movhi_internal): Likewise.
22374 (*movqi_internal): Likewise.
22375 * config/mips/mips.h (M16_STORE_REGS): New register class.
22376 (REG_CLASS_NAMES): Add M16_STORE_REGS.
22377 (REG_CLASS_CONTENTS): Likewise.
22378 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22380 2014-04-11 Tobias Burnus <burnus@net-b.de>
22383 * doc/invoke.texi (-Wformat-signedness): Document it.
22384 (Wformat=2): Mention that this enables -Wformat-signedness.
22386 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22388 * common/config/epiphany/epiphany-common.c
22389 (epiphany_option_optimization_table): Enable section anchors by
22390 default at -O1 or higher.
22391 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22392 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22393 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22394 carries no extra cost.
22395 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22396 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22397 * config/epiphany/predicates.md (memclob_operand): New predicate.
22398 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22399 Use memclob_operand predicate and X constraint for operand 3.
22401 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22403 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22404 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22407 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22409 PR rtl-optimization/60651
22410 * mode-switching.c (optimize_mode_switching): Make sure to emit
22411 sets of a lower numbered entity before sets of a higher numbered
22412 entity to a mode of the same or lower priority.
22413 When creating a seginfo for a basic block that starts with a code
22414 label, move the insertion point past the code label.
22415 (new_seginfo): Document and enforce requirement that
22416 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22417 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22418 * doc/tm.texi: Regenerate.
22420 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
22423 * config/arc/arc.c (arc_save_restore): Fix assert typo.
22425 2013-04-11 Jakub Jelinek <jakub@redhat.com>
22427 * BASE-VER: Set to 4.10.0.
22429 2014-04-11 Tobias Burnus <burnus@net-b.de>
22432 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22433 * doc/gcc.texi (Service): Update description in the @menu
22434 * doc/invoke.texi (Option Summary): Remove misplaced and
22437 2014-04-11 Steve Ellcey <sellcey@mips.com>
22438 Jakub Jelinek <jakub@redhat.com>
22440 PR middle-end/60556
22441 * expr.c (convert_move): Use emit_store_flag_force instead of
22442 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
22445 2014-04-11 Richard Biener <rguenther@suse.de>
22447 PR middle-end/60797
22448 * varasm.c (assemble_alias): Avoid endless error reporting
22449 recursion by setting TREE_ASM_WRITTEN.
22451 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22453 * config/s390/s390.md: Add a splitter for NOT rtx.
22455 2014-04-11 Jakub Jelinek <jakub@redhat.com>
22457 PR rtl-optimization/60663
22458 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22460 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
22461 Jakub Jelinek <jakub@redhat.com>
22464 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22465 flag from decl_node to node.
22467 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22470 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22471 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22472 ameliorating the cases where it can be.
22474 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
22477 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22479 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22480 (loadsync_<mode>): Change mode.
22481 (load_quadpti, store_quadpti): New.
22482 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22483 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22484 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22486 2014-04-09 Cong Hou <congh@google.com>
22489 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22492 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22494 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22495 instead of vnor to exploit possible fusion opportunity in the
22497 (altivec_expand_vec_perm_const_le): Likewise.
22499 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22501 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22502 (loadsync_<mode>): Change mode.
22503 (load_quadpti, store_quadpti): New.
22504 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22505 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22507 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
22510 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22511 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22512 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22514 2014-04-08 Richard Biener <rguenther@suse.de>
22516 PR middle-end/60706
22517 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22518 a 64bit widest int print double-int similar to on HWI64 hosts.
22520 2014-04-08 Richard Biener <rguenther@suse.de>
22522 PR tree-optimization/60785
22523 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22524 default defs properly.
22526 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
22528 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22529 (Weffc++): Likewise.
22531 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
22533 * ipa-devirt.c (maybe_record_node): When node is not recorded,
22534 set completep to false rather than true.
22536 2014-04-07 Douglas B Rupp <rupp@adacore.com>
22539 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22540 ARM_TARGET2_DWARF_FORMAT.
22542 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
22545 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22546 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22549 2014-04-07 Richard Biener <rguenther@suse.de>
22551 PR tree-optimization/60766
22552 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22553 (may_eliminate_iv): Convert cand_value_at result to desired type.
22555 2014-04-07 Jason Merrill <jason@redhat.com>
22558 * common.opt (-fno-gnu-unique): Add.
22559 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22561 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22563 * haifa-sched.c: Fix outdated function reference and minor
22564 grammar errors in introductory comment.
22566 2014-04-07 Richard Biener <rguenther@suse.de>
22568 PR middle-end/60750
22569 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22570 for noreturn calls.
22571 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22573 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
22576 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22577 size accounting for thunks.
22578 (pa_asm_output_mi_thunk): Use final_start_function() and
22579 final_end_function() to output function start and end directives.
22581 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22583 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22584 device specific ISA/ feature information. Remove short_sp and
22585 errata_skip ds. Add avr_device_specific_features enum to have device
22587 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22588 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22589 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22590 updated device specific info.
22591 * config/avr/avr-mcus.def: Merge device specific details to
22592 dev_attribute field.
22593 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22595 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22596 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22597 assembler if RMW isa supported by current device.
22598 * config/avr/genmultilib.awk: Update as device info structure changed.
22599 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22601 2014-04-04 Cong Hou <congh@google.com>
22603 PR tree-optimization/60656
22604 * tree-vect-stmts.c (supportable_widening_operation):
22605 Fix a bug that elements in a vector with vect_used_by_reduction
22606 property are incorrectly reordered when the operation on it is not
22607 consistant with the one in reduction operation.
22609 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
22611 PR rtl-optimization/60155
22612 * gcse.c (record_set_data): New function.
22613 (single_set_gcse): New function.
22614 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22615 (hoist_code): Likewise.
22616 (get_pressure_class_and_nregs): Likewise.
22618 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
22620 * explow.c (probe_stack_range): Emit a final optimization blockage.
22622 2014-04-04 Anthony Green <green@moxielogic.com>
22624 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22627 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
22630 * lto-cgraph.c (input_overwrite_node): Check that partitioning
22631 flags are set only during streaming.
22632 * ipa.c (process_references, walk_polymorphic_call_targets,
22633 symtab_remove_unreachable_nodes): Drop bodies of always inline
22634 after early inlining.
22635 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22637 2014-04-04 Jakub Jelinek <jakub@redhat.com>
22638 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22641 * dwarf2out.c (const_ok_for_output_1): Reject expressions
22644 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22647 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22649 (cortex_a53_fdivd): Likewise.
22651 2014-04-04 Martin Jambor <mjambor@suse.cz>
22654 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22655 Adjust all callers.
22656 * cgraph.c (clone_of_p): Also return true if thunks match.
22657 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22658 cgraph_function_or_thunk_node and an obsolete comment.
22659 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22661 (build_function_decl_skip_args): Likewise.
22662 (set_new_clone_decl_and_node_flags): New function.
22663 (duplicate_thunk_for_node): Likewise.
22664 (redirect_edge_duplicating_thunks): Likewise.
22665 (cgraph_clone_node): New parameter args_to_skip, pass it to
22666 redirect_edge_duplicating_thunks which is called instead of
22667 cgraph_redirect_edge_callee.
22668 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22669 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22671 2014-04-04 Jeff Law <law@redhat.com>
22674 * config/arm/predicates.md (const_int_I_operand): New predicate.
22675 (const_int_M_operand): Similarly.
22676 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22678 (insv_t2, extv_reg, extzv_t2): Likewise.
22679 (load_multiple_with_writeback): Similarly for const_int_I_operand.
22680 (pop_multiple_with_writeback_and_return): Likewise.
22681 (vfp_pop_multiple_with_writeback): Likewise
22683 2014-04-04 Richard Biener <rguenther@suse.de>
22686 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
22687 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
22689 * gimplify.h (gimple_add_tmp_var_fn): Declare.
22690 * gimplify.c (gimple_add_tmp_var_fn): New function.
22691 * gimple-expr.h (create_tmp_reg_fn): Declare.
22692 * gimple-expr.c (create_tmp_reg_fn): New function.
22693 * gimple-low.c (record_vars_into): Don't change cfun.
22694 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
22695 code generation without cfun.
22697 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
22700 * Makefile.in (install-driver): Fix shell scripting.
22702 2014-04-03 Cong Hou <congh@google.com>
22704 PR tree-optimization/60505
22705 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
22706 threshold of number of iterations below which no vectorization
22708 * tree-vect-loop.c (new_loop_vec_info):
22709 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
22710 * tree-vect-loop.c (vect_analyze_loop_operations):
22711 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
22712 * tree-vect-loop.c (vect_transform_loop):
22713 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
22714 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
22715 of iterations of the loop and see if we should build the epilogue.
22717 2014-04-03 Richard Biener <rguenther@suse.de>
22719 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
22720 (streamer_tree_cache_create): Adjust.
22721 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
22722 to allow optional nodes array.
22723 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
22724 (streamer_tree_cache_append): Likewise.
22725 (streamer_tree_cache_create): Create nodes array optionally
22726 as specified by parameter.
22727 * lto-streamer-out.c (create_output_block): Avoid maintaining
22728 the node array in the writer cache.
22729 (DFS_write_tree): Remove assertion.
22730 (produce_asm_for_decls): Free the out decl state hash table early.
22731 * lto-streamer-in.c (lto_data_in_create): Adjust for
22732 streamer_tree_cache_create prototype change.
22734 2014-04-03 Richard Biener <rguenther@suse.de>
22736 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
22737 set TREE_CHAIN to NULL_TREE.
22739 2014-04-03 Richard Biener <rguenther@suse.de>
22741 PR tree-optimization/60740
22742 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
22743 over all GIMPLE_COND operands.
22745 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
22747 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
22748 (Weffc++): Remove Scott's numbering, merge lists and reference
22751 2014-04-03 Nick Clifton <nickc@redhat.com>
22753 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
22756 2014-04-03 Martin Jambor <mjambor@suse.cz>
22758 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
22759 mention gcc_unreachable before failing.
22760 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
22763 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
22766 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
22767 inconsistent code and instead mark the context inconsistent.
22768 (possible_polymorphic_call_targets): For inconsistent contexts
22769 return empty complete list.
22771 2014-04-02 Anthony Green <green@moxielogic.com>
22773 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
22774 (extendqisi2, extendhisi2): Define.
22775 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
22776 (WCHAR_TYPE): Change to unsigned int.
22778 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22780 PR tree-optimization/60733
22781 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
22782 insertion point for PHI candidates to be the end of the feeding
22783 block for the PHI argument.
22785 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
22787 PR rtl-optimization/60650
22788 * lra-constraints.c (process_alt_operands): Decrease reject for
22789 earlyclobber matching.
22791 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22793 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
22795 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22797 * config/spu/spu.c (pad_bb): Do not crash when the last
22798 insn is CODE_FOR_blockage.
22800 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22802 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
22803 lies outside the target mode.
22805 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22808 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22809 software floating point or no floating point registers, do not
22810 allow any type in the FPRs. Eliminate a test for SPE SIMD types
22811 in GPRs that occurs after we tested for GPRs that would never be
22814 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22815 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22816 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
22817 specifically allow DDmode, since that does not use the SPE SIMD
22820 2014-04-02 Richard Biener <rguenther@suse.de>
22822 PR middle-end/60729
22823 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
22824 MODE_INTs. Properly use negv_optab.
22825 (expand_abs): Likewise.
22827 2014-04-02 Richard Biener <rguenther@suse.de>
22830 * Makefile.in (install-driver): Guard extra installs with special
22833 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
22835 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22836 Document vec_vgbbd.
22838 2014-04-01 Richard Henderson <rth@redhat.com>
22841 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
22842 alternative enabled before register allocation.
22844 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
22846 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
22847 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
22849 (nios2_large_got_address): Remove unneeded 'sym' parameter.
22850 (nios2_got_address): Update nios2_large_got_address call site.
22851 (nios2_delegitimize_address): New function.
22852 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
22853 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
22854 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
22856 2014-04-01 Martin Husemann <martin@duskware.de>
22858 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
22861 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
22863 PR rtl-optimization/60604
22864 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
22865 check from register_operand.
22866 (register_operand): Redefine in terms of general_operand.
22867 (nonmemory_operand): Use register_operand for the non-constant cases.
22869 2014-04-01 Richard Biener <rguenther@suse.de>
22871 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
22873 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
22875 * doc/invoke.texi (mapp-regs): Clarify.
22877 2014-03-31 Ulrich Drepper <drepper@gmail.com>
22879 * config/i386/avx512fintrin.h (__v32hi): Define type.
22880 (__v64qi): Likewise.
22881 (_mm512_set1_epi8): Define.
22882 (_mm512_set1_epi16): Define.
22883 (_mm512_set4_epi32): Define.
22884 (_mm512_set4_epi64): Define.
22885 (_mm512_set4_pd): Define.
22886 (_mm512_set4_ps): Define.
22887 (_mm512_setr4_epi64): Define.
22888 (_mm512_setr4_epi32): Define.
22889 (_mm512_setr4_pd): Define.
22890 (_mm512_setr4_ps): Define.
22891 (_mm512_setzero_epi32): Define.
22893 2014-03-31 Martin Jambor <mjambor@suse.cz>
22895 PR middle-end/60647
22896 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
22897 callsite_arguments_match_p. Updated all callers. Also check types of
22898 corresponding formal parameters and actual arguments.
22899 (not_all_callers_have_enough_arguments_p) Renamed to
22900 some_callers_have_mismatched_arguments_p.
22902 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
22904 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
22906 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22909 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
22912 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
22914 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
22915 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
22917 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
22918 Use FMAMODE_NOVF512 mode iterator.
22919 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
22920 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
22921 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
22922 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
22924 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
22925 Use VF_128_256 mode iterator.
22926 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
22929 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22931 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
22932 static chain if needed.
22934 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
22937 * lra-constraints.c (index_part_to_reg): New.
22938 (process_address): Use it.
22940 2014-03-27 Jeff Law <law@redhat.com>
22941 Jakub Jelinek <jakub@redhat.com>
22944 * expr.c (do_tablejump): Use simplify_gen_binary rather than
22945 gen_rtx_{PLUS,MULT} to build up the address expression.
22947 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
22948 creating non-canonical RTL.
22950 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22953 * ipa-inline.c (want_inline_small_function_p): Short circuit large
22954 functions; reorganize to make cheap checks first.
22955 (inline_small_functions): Do not estimate growth when dumping;
22957 * ipa-inline.h (inline_summary): Add min_size.
22958 (growth_likely_positive): New function.
22959 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
22960 (set_cond_stmt_execution_predicate): Cleanup.
22961 (estimate_edge_size_and_time): Compute min_size.
22962 (estimate_calls_size_and_time): Likewise.
22963 (estimate_node_size_and_time): Likewise.
22964 (inline_update_overall_summary): Update min_size.
22965 (do_estimate_edge_time): Likewise.
22966 (do_estimate_edge_size): Update.
22967 (do_estimate_edge_hints): Update.
22968 (growth_likely_positive): New function.
22970 2014-03-28 Jakub Jelinek <jakub@redhat.com>
22973 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
22974 also if addr has VOIDmode.
22976 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22978 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
22979 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
22981 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
22982 instructions as well as AdvancedSIMD loads.
22984 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22986 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
22987 Use crypto_aese type.
22988 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
22989 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
22990 crypto_aese, crypto_aesmc. Move to types.md.
22991 * config/arm/types.md (crypto_aes): Split into crypto_aese,
22993 * config/arm/iterators.md (crypto_type): Likewise.
22995 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22997 * cgraph.c: Include expr.h and tree-dfa.h.
22998 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23001 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
23004 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23005 regs from checking multi-reg pseudos.
23007 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23009 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23011 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23013 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23014 if it would clobber the stack pointer, even temporarily.
23016 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
23018 * mode-switching.c: Make small adjustments to the top comment.
23020 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
23022 * config/rs6000/constraints.md (wD constraint): New constraint to
23023 match the constant integer to get the top DImode/DFmode out of a
23024 vector in a VSX register.
23026 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23027 match the constant integer to get the top DImode/DFmode out of a
23028 vector in a VSX register.
23030 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23033 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23036 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23037 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23039 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23040 Optimize vec_extract of 64-bit values, where the value being
23041 extracted is in the top word, where we can use scalar
23042 instructions. Add direct move and store support. Combine the big
23043 endian/little endian vector select load support into a single insn.
23044 (vsx_extract_<mode>_internal1): Likewise.
23045 (vsx_extract_<mode>_internal2): Likewise.
23046 (vsx_extract_<mode>_load): Likewise.
23047 (vsx_extract_<mode>_store): Likewise.
23048 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
23049 combined into vsx_extract_<mode>_load.
23050 (vsx_extract_<mode>_one_le): Likewise.
23052 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
23053 define the top 64-bit vector element.
23055 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
23058 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23059 Document vec_vbpermq builtin.
23062 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
23063 enable use of xxsldwi and xxpermdi builtin functions.
23064 (vec_xxpermdi): Likewise.
23066 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23067 Document use of vec_xxsldwi and vec_xxpermdi builtins.
23069 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
23071 PR rtl-optimization/60650
23072 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
23074 (find_spills_for): New.
23075 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
23076 Spill all pseudos on the second iteration.
23078 2014-03-27 Marek Polacek <polacek@redhat.com>
23081 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
23084 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23086 * config/s390/s390.c (s390_can_use_return_insn): Check for
23087 call-saved FPRs on 31 bit.
23089 2014-03-27 Jakub Jelinek <jakub@redhat.com>
23091 PR middle-end/60682
23092 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
23093 if they need regimplification, just drop them instead of
23094 calling gimple_regimplify_operands on them.
23096 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
23099 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23100 (aarch64_frame_pointer_required): Adjust logic.
23101 (aarch64_can_eliminate): Adjust logic.
23102 (aarch64_override_options_after_change): Adjust logic.
23104 2014-03-27 Dehao Chen <dehao@google.com>
23106 * ipa-inline.c (early_inliner): Update node's inline info.
23108 2014-03-26 Dehao Chen <dehao@google.com>
23110 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23111 compiler inserted conditional jumps for NAN float check.
23113 2014-03-26 Jakub Jelinek <jakub@redhat.com>
23115 * ubsan.h (ubsan_create_data): Change second argument's type
23116 to const location_t *.
23117 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23119 (ubsan_create_data): Change second argument to const location_t *PLOC.
23120 Create Loc field whenever PLOC is non-NULL.
23121 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23122 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23126 * real.c (real_to_integer2): Change type of low to UHWI.
23128 2014-03-26 Tobias Burnus <burnus@net-b.de>
23130 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23131 (CILK_SELF_SPECS): New define.
23132 (driver_self_specs): Use it.
23134 2014-03-26 Richard Biener <rguenther@suse.de>
23136 * tree-pretty-print.c (percent_K_format): Implement special
23137 case for LTO and its stripped down BLOCK tree.
23139 2014-03-26 Jakub Jelinek <jakub@redhat.com>
23142 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23144 * tree-vrp.c (simplify_internal_call_using_ranges): If only
23145 one range is range_int_cst_p, but not both, at least optimize
23146 addition/subtraction of 0 and multiplication by 0 or 1.
23147 * gimple-fold.c (gimple_fold_call): Fold
23148 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23149 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23150 INTEGER_CSTs, try to fold at least x * 0 and y - y.
23152 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
23154 PR rtl-optimization/60452
23155 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23156 <case REG>: Return 1 for invalid offsets from the frame pointer.
23158 2014-03-26 Marek Polacek <polacek@redhat.com>
23161 * doc/extend.texi (C Extensions): Mention variable-length arrays in
23164 2014-03-26 Marek Polacek <polacek@redhat.com>
23167 * doc/extend.texi (Designated Inits): Describe what happens to omitted
23170 2014-03-26 Marek Polacek <polacek@redhat.com>
23173 * ira-color.c (update_conflict_hard_regno_costs): Perform the
23174 multiplication in unsigned type.
23176 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23178 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23180 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23182 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23184 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23187 * cif-code.def (UNREACHABLE) New code.
23188 * ipa-inline.c (inline_small_functions): Skip edges to
23189 __builtlin_unreachable.
23190 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23191 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23192 predicate to __bulitin_unreachable.
23193 (set_cond_stmt_execution_predicate): Fix issue when
23194 invert_tree_comparison returns ERROR_MARK.
23195 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23196 propagate to inline clones.
23197 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23199 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23200 * cgraphclones.c (cgraph_clone_node): If call destination is already
23201 ureachable, do not redirect it back.
23202 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23205 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23207 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23208 Do not modify inline clones.
23210 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23212 * config/i386/i386.md (general_sext_operand): New mode attr.
23213 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23214 don't generate (sign_extend (const_int)).
23215 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23216 operands[2]. Use We constraint instead of <i> and
23217 <general_sext_operand> predicate instead of <general_operand>.
23218 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23219 * config/i386/constraints.md (We): New constraint.
23220 * config/i386/predicates.md (x86_64_sext_operand,
23221 sext_operand): New predicates.
23223 2014-03-25 Martin Jambor <mjambor@suse.cz>
23226 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23227 inconsistent devirtualizations to __builtin_unreachable.
23229 2014-03-25 Marek Polacek <polacek@redhat.com>
23232 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23234 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
23236 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23237 order of elements for big-endian.
23239 2014-03-25 Richard Biener <rguenther@suse.de>
23241 PR middle-end/60635
23242 * gimplify-me.c (gimple_regimplify_operands): Update the
23245 2014-03-25 Martin Jambor <mjambor@suse.cz>
23248 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23249 (lto_output_varpool_node): Likewise.
23250 (input_overwrite_node): Likewise.
23251 (input_varpool_node): Likewise.
23253 2014-03-25 Richard Biener <rguenther@suse.de>
23255 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23256 (run_gcc): Likewise.
23258 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23260 * combine.c (simplify_compare_const): Add MODE argument.
23261 Handle mode_width 0 as very large mode_width.
23262 (try_combine, simplify_comparison): Adjust callers.
23264 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23265 type to avoid signed integer overflow.
23266 * explow.c (plus_constant): Likewise.
23268 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23270 * doc/generic.texi: Correct typos.
23272 2014-03-24 Tobias Burnus <burnus@net-b.de>
23274 * doc/invoke.texi (-flto): Expand section about
23275 using static libraries with LTO.
23277 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23279 PR rtl-optimization/60501
23280 * optabs.def (addptr3_optab): New optab.
23281 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23282 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23283 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23285 * lra.c (emit_add3_insn): Use the addptr pattern if available.
23287 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23289 2014-03-24 Ulrich Drepper <drepper@gmail.com>
23291 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23294 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23295 (_mm256_undefined_ps): Define.
23296 (_mm256_undefined_pd): Define.
23297 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23298 (_mm_undefined_pd): Define.
23299 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23300 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23301 (_mm512_undefined_ps): Define.
23302 (_mm512_undefined_pd): Define.
23303 Use _mm*_undefined_*.
23304 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23306 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
23308 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23309 (lshr_simd): DI mode added.
23310 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23311 (aarch64_ushr_simddi): Likewise.
23312 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23313 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23314 (vshrd_n_u64): Likewise.
23316 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23318 * Makefile.in (s-macro_list): Depend on cc1.
23320 2014-03-23 Teresa Johnson <tejohnson@google.com>
23322 * ipa-utils.c (ipa_print_order): Use specified dump file.
23324 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
23326 PR rtl-optimization/60601
23327 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23329 * gcc.c (eval_spec_function): Initialize save_growing_value.
23331 2014-03-22 Jakub Jelinek <jakub@redhat.com>
23334 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23335 code == MINUS_EXPR, never swap op0 with op1.
23337 * toplev.c (init_local_tick): Avoid signed integer multiplication
23339 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23340 shift by first operand's bitsize.
23342 2014-03-21 Jakub Jelinek <jakub@redhat.com>
23345 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23346 redefine to 1 or 0.
23347 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23348 TARGET_ISA_64BIT_P(x).
23350 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23352 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23353 pattern for vector nor instead of subtract from splat(-1).
23354 (altivec_expand_vec_perm_const_le): Likewise.
23356 2014-03-21 Richard Henderson <rth@twiddle.net>
23359 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23360 related insns after epilogue_completed.
23362 2014-03-21 Martin Jambor <mjambor@suse.cz>
23365 * cgraph.h (symtab_node): New flag body_removed.
23366 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23367 when removing bodies.
23368 * symtab.c (dump_symtab_base): Dump body_removed flag.
23369 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23370 had their bodies removed.
23372 2014-03-21 Martin Jambor <mjambor@suse.cz>
23375 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23378 2014-03-21 Richard Biener <rguenther@suse.de>
23380 PR tree-optimization/60577
23381 * tree-core.h (struct tree_base): Document nothrow_flag use
23382 in DECL_NONALIASED.
23383 * tree.h (DECL_NONALIASED): New.
23384 (may_be_aliased): Adjust.
23385 * coverage.c (build_var): Set DECL_NONALIASED.
23387 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23389 * expr.c (expand_expr_real_1): Remove outdated comment.
23391 2014-03-20 Jakub Jelinek <jakub@redhat.com>
23393 PR middle-end/60597
23394 * ira.c (adjust_cleared_regs): Call copy_rtx on
23395 *reg_equiv[REGNO (loc)].src_p before passing it to
23396 simplify_replace_fn_rtx.
23399 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23400 into CONST, put pic register as first operand of PLUS. Use
23401 gen_const_mem for both 32-bit and 64-bit PIC got loads.
23403 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23405 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23407 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23409 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23410 around for store forwarding issue in the FPU on the UT699.
23411 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23412 loads and operations if -mfix-ut699 is specified.
23413 (divtf3_hq): Tweak attribute.
23414 (sqrttf2_hq): Likewise.
23416 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23418 * calls.c (store_one_arg): Remove incorrect const qualification on the
23419 type of the temporary.
23420 * cfgexpand.c (expand_return): Likewise.
23421 * expr.c (expand_constructor): Likewise.
23422 (expand_expr_real_1): Likewise.
23424 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23426 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23429 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23432 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23434 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
23436 * config/arm/aarch-common-protos.h
23437 (alu_cost_table): Fix spelling of "extend".
23438 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23440 2014-03-19 Richard Biener <rguenther@suse.de>
23442 PR middle-end/60553
23443 * tree-core.h (tree_type_common): Re-order pointer members
23444 to reduce recursion depth during GC walks.
23446 2014-03-19 Marek Polacek <polacek@redhat.com>
23449 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23450 before accessing it.
23452 2014-03-19 Richard Biener <rguenther@suse.de>
23455 * lto-streamer-in.c (input_function): In WPA stage do not drop
23458 2014-03-19 Jakub Jelinek <jakub@redhat.com>
23460 PR tree-optimization/60559
23461 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23462 with build_zero_cst assignment.
23464 2014-03-18 Kai Tietz <ktietz@redhat.com>
23466 PR rtl-optimization/56356
23467 * sdbout.c (sdbout_parms): Verify that parms'
23468 incoming argument is valid.
23469 (sdbout_reg_parms): Likewise.
23471 2014-03-18 Richard Henderson <rth@redhat.com>
23474 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23475 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
23476 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23478 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
23480 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23481 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23482 Italicize plugin event names in description. Explain that
23483 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
23484 Remind that no GCC functions should be called after PLUGIN_FINISH.
23485 Explain what pragmas with expansion are.
23487 2014-03-18 Martin Liska <mliska@suse.cz>
23489 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23490 gimple call statement is update.
23491 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23492 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23494 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23497 * ubsan.c (ubsan_instrument_unreachable): Call
23498 initialize_sanitizer_builtins.
23499 (ubsan_pass): Likewise.
23502 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23503 varpool_finalize_decl instead of rest_of_decl_compilation.
23505 2014-03-18 Richard Biener <rguenther@suse.de>
23507 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23508 by using bitmap_and_compl instead of bitmap_and_compl_into.
23509 (df_rd_transfer_function): Likewise.
23511 2014-03-18 Richard Biener <rguenther@suse.de>
23513 * doc/lto.texi (fresolution): Fix typo.
23515 2014-03-18 Richard Biener <rguenther@suse.de>
23517 * doc/invoke.texi (flto): Update for changes in 4.9.
23519 2014-03-18 Richard Biener <rguenther@suse.de>
23521 * doc/loop.texi: Remove section on the removed lambda framework.
23522 Update loop docs with recent changes in preserving loop structure.
23524 2014-03-18 Richard Biener <rguenther@suse.de>
23526 * doc/lto.texi (-fresolution): Document.
23528 2014-03-18 Richard Biener <rguenther@suse.de>
23530 * doc/contrib.texi: Adjust my name.
23532 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23535 * internal-fn.c: Include diagnostic-core.h.
23536 (expand_BUILTIN_EXPECT): New function.
23537 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23538 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23539 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23540 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23541 IFN_BUILTIN_EXPECT.
23542 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23543 Revert 3 argument __builtin_expect code.
23544 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23545 * gimple-fold.c (gimple_fold_call): Likewise.
23546 * tree.h (fold_builtin_expect): New prototype.
23547 * builtins.c (build_builtin_expect_predicate): Add predictor
23548 argument, if non-NULL, create 3 argument __builtin_expect.
23549 (fold_builtin_expect): No longer static. Add ARG2 argument,
23550 pass it through to build_builtin_expect_predicate.
23551 (fold_builtin_2): Adjust caller.
23552 (fold_builtin_3): Handle BUILT_IN_EXPECT.
23553 * internal-fn.def (BUILTIN_EXPECT): New.
23555 2014-03-18 Tobias Burnus <burnus@net-b.de>
23558 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23559 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23560 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23562 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
23565 * predict.c (combine_predictions_for_bb): Fix up formatting.
23566 (expr_expected_value_1, expr_expected_value): Add predictor argument,
23567 fill what it points to if non-NULL.
23568 (tree_predict_by_opcode): Adjust caller, use the predictor.
23569 * predict.def (PRED_COMPARE_AND_SWAP): Add.
23571 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
23573 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23574 proper constant for the store mode.
23576 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
23578 * symtab.c (change_decl_assembler_name): Fix transparent alias
23579 chain construction.
23581 2014-03-16 Renlin Li <Renlin.Li@arm.com>
23583 * config/aarch64/aarch64.c: Correct the comments about the
23584 aarch64 stack layout.
23586 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
23588 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23589 check for GF_OMP_FOR_KIND_FOR.
23591 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
23593 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23594 ymm and zmm register names.
23596 2014-03-17 Jakub Jelinek <jakub@redhat.com>
23599 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23600 note creation for the 2010-08-31 changes.
23602 2014-03-17 Marek Polacek <polacek@redhat.com>
23604 PR middle-end/60534
23605 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23606 as -fno-tree-loop-vectorize.
23607 (expand_omp_simd): Likewise.
23609 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
23611 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23612 (eligible_for_call_delay): New prototype.
23613 * config/sparc/sparc.c (tls_call_delay): Rename into...
23614 (eligible_for_call_delay): ...this. Return false if the instruction
23615 cannot be put in the delay slot of a branch.
23616 (eligible_for_restore_insn): Simplify.
23617 (eligible_for_return_delay): Return false if the instruction cannot be
23618 put in the delay slot of a branch and simplify.
23619 (eligible_for_sibcall_delay): Return false if the instruction cannot be
23620 put in the delay slot of a branch.
23621 * config/sparc/sparc.md (fix_ut699): New attribute.
23622 (tls_call_delay): Delete.
23623 (in_call_delay): Reimplement.
23624 (eligible_for_sibcall_delay): Rename into...
23625 (in_sibcall_delay): ...this.
23626 (eligible_for_return_delay): Rename into...
23627 (in_return_delay): ...this.
23628 (in_branch_delay): Reimplement.
23629 (in_uncond_branch_delay): Delete.
23630 (in_annul_branch_delay): Delete.
23632 2014-03-14 Richard Henderson <rth@redhat.com>
23635 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23636 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23637 (*floathi<X87MODEF>2_i387_with_temp): Remove.
23638 (floathi splitters): Remove.
23639 (float<SWI48x>xf2): New pattern.
23640 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
23641 code that tried to handle DImode for 32-bit, but which was excluded
23642 by the pattern's condition. Drop allocation of stack temporary.
23643 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23644 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23645 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23646 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23647 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23648 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23649 (*float<SWI48><MODEF>2_sse_interunit): Remove.
23650 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23651 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23652 (*float<SWI48x><X87MODEF>2_i387): Remove.
23653 (all float _with_temp splitters): Remove.
23654 (*float<SWI48x><MODEF>2_i387): New pattern.
23655 (*float<SWI48><MODEF>2_sse): New pattern.
23656 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23657 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23659 2014-03-14 Jakub Jelinek <jakub@redhat.com>
23660 Marek Polacek <polacek@redhat.com>
23662 PR middle-end/60484
23663 * common.opt (dump_base_name_prefixed): New Variable.
23664 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23665 if x_dump_base_name_prefixed is already set, set it at the end.
23667 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
23669 PR rtl-optimization/60508
23670 * lra-constraints.c (get_reload_reg): Add new parameter
23672 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23673 Pass the new parameter values.
23675 2014-03-14 Richard Biener <rguenther@suse.de>
23677 * common.opt: Revert unintented changes from r205065.
23678 * opts.c: Likewise.
23680 2014-03-14 Richard Biener <rguenther@suse.de>
23682 PR middle-end/60518
23683 * cfghooks.c (split_block): Properly adjust all loops the
23684 block was a latch of.
23686 2014-03-14 Martin Jambor <mjambor@suse.cz>
23689 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
23692 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
23695 * config/avr/avr.c (avr_set_current_function): Pass function name
23696 through default_strip_name_encoding before sanity checking instead
23697 of skipping the first char of the assembler name.
23699 2014-03-13 Richard Henderson <rth@redhat.com>
23702 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
23703 (ix86_force_to_memory, ix86_free_from_memory): Remove.
23704 * config/i386/i386-protos.h: Likewise.
23705 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
23706 in the expander instead of a splitter.
23707 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
23708 any possibility of requiring a memory.
23709 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
23710 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
23711 (fp branch splitters): Update for ix86_split_fp_branch.
23712 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
23713 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
23714 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
23715 (*fop_<MODEF>_2_i387): Remove f/r alternative.
23716 (*fop_<MODEF>_3_i387): Likewise.
23717 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
23718 (splitters for the fop_* register patterns): Remove.
23719 (fscalexf4_i387): Rename from *fscalexf4_i387.
23720 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
23722 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23724 PR tree-optimization/59779
23725 * tree-dfa.c (get_ref_base_and_extent): Use double_int
23726 type for bitsize and maxsize instead of HOST_WIDE_INT.
23728 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
23730 PR rtl-optimization/57320
23731 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
23732 the CFG after thread_prologue_and_epilogue_insns.
23734 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
23736 PR rtl-optimization/57189
23737 * lra-constraints.c (process_alt_operands): Disfavor spilling
23740 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
23742 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
23744 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23746 PR tree-optimization/59025
23747 PR middle-end/60418
23748 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
23749 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
23751 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
23754 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
23755 calls of avr_out_plus_1.
23757 2014-03-13 Bin Cheng <bin.cheng@arm.com>
23759 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
23760 BB's single pred and update the father loop's latch info later.
23762 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23764 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
23768 (VEC_base): Likewise.
23769 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
23770 registers, we need to swap double words in little endian mode.
23772 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
23773 to be a container mode for 128-bit integer operations added in ISA
23774 2.07. Unlike TImode and PTImode, the preferred register set is
23775 the Altivec/VMX registers for the 128-bit operations.
23777 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
23779 (rs6000_split_128bit_ok_p): Likewise.
23781 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
23782 macros for creating ISA 2.07 normal and overloaded builtin
23783 functions with 3 arguments.
23784 (BU_P8V_OVERLOAD_3): Likewise.
23785 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
23786 for use as overloaded functions.
23787 (VPERM_1TI_UNS): Likewise.
23788 (VSEL_1TI): Likewise.
23789 (VSEL_1TI_UNS): Likewise.
23790 (ST_INTERNAL_1ti): Likewise.
23791 (LD_INTERNAL_1ti): Likewise.
23792 (XXSEL_1TI): Likewise.
23793 (XXSEL_1TI_UNS): Likewise.
23794 (VPERM_1TI): Likewise.
23795 (VPERM_1TI_UNS): Likewise.
23796 (XXPERMDI_1TI): Likewise.
23797 (SET_1TI): Likewise.
23798 (LXVD2X_V1TI): Likewise.
23799 (STXVD2X_V1TI): Likewise.
23800 (VEC_INIT_V1TI): Likewise.
23801 (VEC_SET_V1TI): Likewise.
23802 (VEC_EXT_V1TI): Likewise.
23803 (EQV_V1TI): Likewise.
23804 (NAND_V1TI): Likewise.
23805 (ORC_V1TI): Likewise.
23806 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
23807 added in ISA 2.07. Add both normal 'altivec' builtins, and the
23808 overloaded builtin.
23809 (VADDUQM): Likewise.
23810 (VSUBCUQ): Likewise.
23811 (VADDEUQM): Likewise.
23812 (VADDECUQ): Likewise.
23813 (VSUBEUQM): Likewise.
23814 (VSUBECUQ): Likewise.
23816 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
23817 __int128_t and __uint128_t types.
23818 (__uint128_type): Likewise.
23819 (altivec_categorize_keyword): Add support for vector __int128_t,
23820 vector __uint128_t, vector __int128, and vector unsigned __int128
23821 as a container type for TImode operations that need to be done in
23822 VSX/Altivec registers.
23823 (rs6000_macro_to_expand): Likewise.
23824 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
23825 to support 128-bit integer instructions vaddcuq, vadduqm,
23826 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
23827 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
23829 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
23830 for V1TImode, and set up preferences to use VSX/Altivec registers.
23831 Setup VSX reload handlers.
23832 (rs6000_debug_reg_global): Likewise.
23833 (rs6000_init_hard_regno_mode_ok): Likewise.
23834 (rs6000_preferred_simd_mode): Likewise.
23835 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
23836 (easy_altivec_constant): Likewise.
23837 (output_vec_const_move): Likewise.
23838 (rs6000_expand_vector_set): Convert V1TImode set and extract to
23840 (rs6000_expand_vector_extract): Likewise.
23841 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
23843 (rs6000_const_vec): Add support for V1TImode.
23844 (rs6000_emit_le_vsx_load): Swap double words when loading or
23845 storing TImode/V1TImode.
23846 (rs6000_emit_le_vsx_store): Likewise.
23847 (rs6000_emit_le_vsx_move): Likewise.
23848 (rs6000_emit_move): Add support for V1TImode.
23849 (altivec_expand_ld_builtin): Likewise.
23850 (altivec_expand_st_builtin): Likewise.
23851 (altivec_expand_vec_init_builtin): Likewise.
23852 (altivec_expand_builtin): Likewise.
23853 (rs6000_init_builtins): Add support for V1TImode type. Add
23854 support for ISA 2.07 128-bit integer builtins. Define type names
23855 for the VSX/Altivec vector types.
23856 (altivec_init_builtins): Add support for overloaded vector
23857 functions with V1TImode type.
23858 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
23859 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
23861 (rs6000_split_128bit_ok_p): Likewise.
23862 (rs6000_handle_altivec_attribute): Create V1TImode from vector
23863 __int128_t and vector __uint128_t.
23865 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
23866 and mode attributes.
23868 (VSX_M2): Likewise.
23873 (VS_scalar): Likewise.
23874 (VS_double): Likewise.
23875 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
23877 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
23878 we support the ISA 2.07 128-bit integer arithmetic instructions.
23879 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
23880 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
23881 and TImode types for use with the builtin functions.
23882 (V1TI_type_node): Likewise.
23883 (unsigned_V1TI_type_node): Likewise.
23884 (intTI_type_internal_node): Likewise.
23885 (uintTI_type_internal_node): Likewise.
23887 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
23888 128-bit builtin functions.
23889 (UNSPEC_VADDEUQM): Likewise.
23890 (UNSPEC_VADDECUQ): Likewise.
23891 (UNSPEC_VSUBCUQ): Likewise.
23892 (UNSPEC_VSUBEUQM): Likewise.
23893 (UNSPEC_VSUBECUQ): Likewise.
23894 (VM): Add V1TImode to vector mode iterators.
23896 (VI_unit): Likewise.
23897 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
23898 (altivec_vaddcuq): Likewise.
23899 (altivec_vsubuqm): Likewise.
23900 (altivec_vsubcuq): Likewise.
23901 (altivec_vaddeuqm): Likewise.
23902 (altivec_vaddecuq): Likewise.
23903 (altivec_vsubeuqm): Likewise.
23904 (altivec_vsubecuq): Likewise.
23906 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
23908 (BOOL_128): Likewise.
23909 (BOOL_REGS_OUTPUT): Likewise.
23910 (BOOL_REGS_OP1): Likewise.
23911 (BOOL_REGS_OP2): Likewise.
23912 (BOOL_REGS_UNARY): Likewise.
23913 (BOOL_REGS_AND_CR0): Likewise.
23915 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
23916 128-bit integer builtin support.
23917 (vec_vadduqm): Likewise.
23918 (vec_vaddecuq): Likewise.
23919 (vec_vaddeuqm): Likewise.
23920 (vec_vsubecuq): Likewise.
23921 (vec_vsubeuqm): Likewise.
23922 (vec_vsubcuq): Likewise.
23923 (vec_vsubuqm): Likewise.
23925 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23926 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
23927 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
23928 128-bit integer add/subtract to ISA 2.07.
23930 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
23932 * config/arc/arc.c (arc_predicate_delay_insns):
23933 Fix third argument passed to conditionalize_nonjump.
23935 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
23937 * config/aarch64/aarch64-builtins.c
23938 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
23939 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
23940 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
23941 instead of __builtin_lfloor.
23942 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
23944 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23946 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
23947 (tree_ssa_ifcombine_bb_1): New function.
23948 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
23949 is an empty forwarder block to then_bb or vice versa and then_bb
23950 and else_bb are effectively swapped.
23952 2014-03-12 Christian Bruel <christian.bruel@st.com>
23955 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
23956 REG_CFA_DEF_CFA note.
23957 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
23958 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
23960 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23962 PR tree-optimization/60454
23963 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
23965 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23967 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
23968 Do not define target_cpu_default2 to generic.
23969 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
23970 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
23971 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
23973 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23974 Marc Glisse <marc.glisse@inria.fr>
23976 PR tree-optimization/60502
23977 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
23978 instead of build_low_bits_mask.
23980 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23982 PR middle-end/60482
23983 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
23984 if there are multiple uses, but op doesn't live on E edge.
23985 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
23986 clobber stmts before __builtin_unreachable.
23988 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
23990 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
23991 hard_frame_pointer_rtx.
23992 * cse.c (cse_insn): Remove volatile check.
23993 * cselib.c (cselib_process_insn): Likewise.
23994 * dse.c (scan_insn): Likewise.
23996 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
23998 * config/arc/arc.c (conditionalize_nonjump): New function,
24000 (arc_ifcvt): ... this.
24001 (arc_predicate_delay_insns): Use it.
24003 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
24005 * config/arc/predicates.md (extend_operand): During/after reload,
24006 allow const_int_operand.
24007 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24008 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
24009 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24011 (umulsi3_highpart_i): Likewise.
24013 2014-03-11 Richard Biener <rguenther@suse.de>
24015 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24016 Add asserts to guard possible wrong-code bugs.
24018 2014-03-11 Richard Biener <rguenther@suse.de>
24020 PR tree-optimization/60429
24021 PR tree-optimization/60485
24022 * tree-ssa-structalias.c (set_union_with_increment): Properly
24023 take into account all fields that overlap the shifted vars.
24024 (do_sd_constraint): Likewise.
24025 (do_ds_constraint): Likewise.
24026 (get_constraint_for_ptr_offset): Likewise.
24028 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
24030 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24031 (nios2_compute_frame_layout):
24032 Add calculation of cfun->machine->fp_save_offset.
24033 (nios2_expand_prologue): Correct setting of frame pointer register
24035 (nios2_expand_epilogue): Update recovery of stack pointer from
24036 frame pointer accordingly.
24037 (nios2_initial_elimination_offset): Update calculation of offset
24038 for eliminating to HARD_FRAME_POINTER_REGNUM.
24040 2014-03-10 Jakub Jelinek <jakub@redhat.com>
24043 * ipa.c (symtab_remove_unreachable_nodes): Don't call
24044 cgraph_get_create_node on VAR_DECLs.
24046 2014-03-10 Richard Biener <rguenther@suse.de>
24048 PR middle-end/60474
24049 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
24051 2014-03-08 Douglas B Rupp <rupp@gnat.com>
24053 * config/vms/vms.opt (vms_float_format): New variable.
24055 2014-03-08 Tobias Burnus <burnus@net-b.de>
24057 * doc/invoke.texi (-fcilkplus): Update implementation status.
24059 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
24060 Richard Biener <rguenther@suse.de>
24062 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
24063 consistently accross all TUs.
24064 (run_gcc): Enable -fshort-double automatically at link at link-time
24065 and disallow override.
24067 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
24070 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
24071 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
24072 if they can't be used.
24074 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24076 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
24077 for Solaris 11/x86 ld.
24078 * configure: Regenerate.
24080 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24082 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
24083 (LIB_TLS_SPEC): Save as ld_tls_libs.
24084 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
24085 (HAVE_AS_IX86_TLSLDM): New test.
24086 * configure, config.in: Regenerate.
24087 * config/i386/i386.c (legitimize_tls_address): Fall back to
24088 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
24089 cannot support TLS_MODEL_LOCAL_DYNAMIC.
24090 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
24091 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
24093 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
24095 * common.opt (fira-loop-pressure): Mark as optimization.
24097 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
24099 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24100 an OpenMP mappable type.
24102 2014-03-06 Matthias Klose <doko@ubuntu.com>
24104 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24105 MULTILIB_OSDIRNAMES is not defined.
24107 2014-03-06 Jakub Jelinek <jakub@redhat.com>
24108 Meador Inge <meadori@codesourcery.com>
24111 * config/arm/arm.c (arm_tls_symbol_p): Remove.
24112 (arm_legitimize_address): Call legitimize_tls_address for any
24113 arm_tls_referenced_p expression, handle constant addend. Call it
24114 before testing for !TARGET_ARM.
24115 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24117 2014-03-06 Richard Biener <rguenther@suse.de>
24119 PR middle-end/60445
24123 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
24125 * tree-streamer.c (record_common_node): Assert we don't record
24126 nodes with type double.
24127 (preload_common_node): Skip type double, complex double and double
24128 pointer since it is now frontend dependent due to fshort-double option.
24130 2014-03-06 Richard Biener <rguenther@suse.de>
24132 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24133 or -fno-lto is specified and the linker has full plugin support.
24134 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24135 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24136 * lto-wrapper.c (merge_and_complain): Merge compile-time
24137 optimization levels.
24138 (run_gcc): And pass it through to the link options.
24140 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
24144 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24146 * cselib.c (remove_useless_values): Skip to avoid quadratic
24147 behavior if the condition moved from...
24148 (cselib_process_insn): ... here holds.
24150 2014-03-05 Jakub Jelinek <jakub@redhat.com>
24153 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24154 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24157 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24158 (TM_H): Add x86-tune.def.
24160 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24162 * config/aarch64/aarch64.c (generic_tunings):
24163 Use cortexa57_extra_costs.
24165 2014-03-05 Jakub Jelinek <jakub@redhat.com>
24168 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24169 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24170 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24173 2014-03-04 Heiher <r@hev.cc>
24175 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24176 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24178 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
24180 * config/i386/predicates.md (const2356_operand): Change to ...
24181 (const2367_operand): ... this.
24182 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24184 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24185 (*avx512pf_scatterpf<mode>sf): Ditto.
24186 (avx512pf_scatterpf<mode>df): Ditto.
24187 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24188 (*avx512pf_scatterpf<mode>df): Ditto.
24189 * config/i386/i386.c (ix86_expand_builtin): Update
24190 incorrect hint operand error message.
24192 2014-03-04 Richard Biener <rguenther@suse.de>
24194 * lto-section-in.c (lto_get_section_data): Fix const cast.
24196 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
24198 * tree-streamer.c (record_common_node): Assert we don't record
24199 nodes with type double.
24200 (preload_common_node): Skip type double, complex double and double
24201 pointer since it is now frontend dependent due to fshort-double option.
24203 2014-03-04 Richard Biener <rguenther@suse.de>
24206 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24207 (lto_input_toplevel_asms): Likewise.
24208 * lto-section-in.c (lto_get_section_data): Instead do it here
24211 2014-03-04 Richard Biener <rguenther@suse.de>
24213 PR tree-optimization/60382
24214 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24215 dead PHIs a reduction.
24217 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
24219 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24221 (_mm_prefetch): Move out of GCC target("sse") pragma.
24222 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24223 GCC target("prfchw") pragma.
24224 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24226 * config/i386/i386.c (ix86_option_override_internal): Enable
24227 -mprfchw with -mprefetchwt1.
24229 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24231 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24234 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24236 * opts.h (CL_PCH_IGNORE): Define.
24237 * targhooks.c (option_affects_pch_p):
24238 Return false for options that have CL_PCH_IGNORE set.
24239 * opt-functions.awk: Process PchIgnore.
24240 * doc/options.texi: Document PchIgnore.
24242 * config/arc/arc.opt (misize): Add PchIgnore property.
24244 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24246 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24247 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24248 constraint on constants to permit them being loaded into
24249 GENERAL_REGS or BASE_REGS.
24251 2014-03-03 Nick Clifton <nickc@redhat.com>
24253 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24254 anti-cacnonical alternatives.
24255 (negandhi3_real): New pattern.
24256 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24258 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24260 * config/avr/avr-mcus.def: Remove atxmega16x1.
24261 * config/avr/avr-tables.opt: Regenerate.
24262 * config/avr/t-multilib: Regenerate.
24263 * doc/avr-mmcu.texi: Regenerate.
24265 2014-03-03 Tobias Grosser <tobias@grosser.es>
24266 Mircea Namolaru <mircea.namolaru@inria.fr>
24268 PR tree-optimization/58028
24269 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24272 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24274 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24275 not handled by recognizers.
24277 2014-03-03 Jakub Jelinek <jakub@redhat.com>
24279 PR middle-end/60175
24280 * function.c (expand_function_end): Don't emit
24281 clobber_return_register sequence if clobber_after is a BARRIER.
24282 * cfgexpand.c (construct_exit_block): Append instructions before
24283 return_label to prev_bb.
24285 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24287 * config/rs6000/constraints.md: Document reserved use of "wc".
24289 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24292 * ipa.c (function_and_variable_visibility): When dissolving comdat
24293 group, also set all symbols to local.
24295 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24300 2013-12-14 Jan Hubicka <jh@suse.cz>
24301 PR middle-end/58477
24302 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24304 2014-03-02 Jon Beniston <jon@beniston.com>
24310 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24311 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24312 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24313 (simple_return, *simple_return): New patterns
24314 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24315 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24317 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
24319 * dwarf2out.c (gen_subprogram_die): Tidy.
24321 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
24324 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24325 (*mov_t_msb_neg_negc): ... this new insn.
24327 2014-02-28 Jason Merrill <jason@redhat.com>
24330 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24333 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
24336 * dwarf2out.c (decltype_auto_die): New static.
24337 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24338 (gen_type_die_with_usage): Handle 'decltype(auto)'.
24339 (is_cxx_auto): Likewise.
24341 2014-02-28 Ian Bolton <ian.bolton@arm.com>
24343 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24344 we are not using general regs only.
24346 2014-02-28 Richard Biener <rguenther@suse.de>
24349 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24350 previous fix and only allow to remove trivial pre-headers
24351 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24352 (remove_forwarder_block): Properly update the latch of a loop.
24354 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24357 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24358 (cselib_preserved_hash_table): New.
24359 (preserve_constants_and_equivs): Move preserved vals to it.
24360 (cselib_find_slot): Look it up first.
24361 (cselib_init): Initialize it.
24362 (cselib_finish): Release it.
24363 (dump_cselib_table): Dump it.
24365 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24368 * cselib.c (remove_useless_values): Skip to avoid quadratic
24369 behavior if the condition moved from...
24370 (cselib_process_insn): ... here holds.
24372 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24375 * var-tracking.c (vt_initialize): Apply the same condition to
24376 preserve the CFA base value.
24378 2014-02-28 Joey Ye <joey.ye@arm.com>
24381 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24382 if reload in progress or completed.
24384 2014-02-28 Tobias Burnus <burnus@net-b.de>
24386 PR middle-end/60147
24387 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24390 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
24392 * doc/tm.texi.in (Condition Code Status): Update documention for
24393 relative locations of cc0-setter and cc0-user.
24395 2014-02-27 Jeff Law <law@redhat.com>
24397 PR rtl-optimization/52714
24398 * combine.c (try_combine): When splitting an unrecognized PARALLEL
24399 into two independent simple sets, if I3 is a jump, ensure the
24400 pattern we place into I3 is a (set (pc) ...).
24402 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
24403 Jeff Law <law@redhat.com>
24405 PR rtl-optimization/49847
24406 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24407 are in different blocks.
24408 * doc/tm.texi (Condition Code Status): Update documention for
24409 relative locations of cc0-setter and cc0-user.
24411 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
24414 * lra.c (lra_emit_add): Check SUBREG too.
24416 2014-02-27 Andreas Schwab <schwab@suse.de>
24418 * config/m68k/m68k.c (m68k_option_override): Disable
24419 -flive-range-shrinkage for classic m68k.
24420 (m68k_override_options_after_change): Likewise.
24422 2014-02-27 Marek Polacek <polacek@redhat.com>
24424 PR middle-end/59223
24425 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24426 -Wmaybe-uninitialized.
24428 2014-02-27 Alan Modra <amodra@gmail.com>
24431 * reload1.c (emit_input_reload_insns): When reload_override_in,
24432 set old to rl->in_reg when rl->in_reg is a subreg.
24434 2014-02-26 Richard Biener <rguenther@suse.de>
24437 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24439 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24441 * common/config/i386/predicates.md (const1256_operand): Remove.
24442 (const2356_operand): New.
24443 (const_1_to_2_operand): Remove.
24444 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24445 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24446 (*avx512pf_gatherpf<mode>sf): Ditto.
24447 (avx512pf_gatherpf<mode>df): Ditto.
24448 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24449 (*avx512pf_gatherpf<mode>df): Ditto.
24450 (avx512pf_scatterpf<mode>sf): Ditto.
24451 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24452 (*avx512pf_scatterpf<mode>sf): Ditto.
24453 (avx512pf_scatterpf<mode>df): Ditto.
24454 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24455 (*avx512pf_scatterpf<mode>df): Ditto.
24456 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24458 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
24460 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24461 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24462 (_mm512_mask_testn_epi64_mask): Move to ...
24463 * config/i386/avx512cdintrin.h: Here.
24464 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24465 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24466 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24467 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24468 TARGET_AVX512F from TARGET_AVX512CD.
24470 2014-02-26 Richard Biener <rguenther@suse.de>
24473 * ipa.c (walk_polymorphic_call_targets): Properly guard
24474 call to inline_update_overall_summary.
24476 2014-02-26 Bin Cheng <bin.cheng@arm.com>
24479 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24480 and latches only if requested. Fix latch if it is removed.
24481 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24482 LOOPS_HAVE_PREHEADERS.
24484 2014-02-25 Andrew Pinski <apinski@cavium.com>
24486 * builtins.c (expand_builtin_thread_pointer): Create a new target
24487 when the target is NULL.
24489 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
24491 PR rtl-optimization/60317
24492 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24493 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24494 * lra-assigns.c: Include params.h.
24495 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24496 other reload pseudos considerations.
24498 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24500 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24501 to use canonical form for nor<mode>3.
24503 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24506 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24509 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24511 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24512 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24513 (ix86_handle_option): Handle OPT_mprefetchwt1.
24514 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24515 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24517 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24518 OPTION_MASK_ISA_PREFETCHWT1.
24519 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24520 (PTA_PREFETCHWT1): New.
24521 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24522 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24523 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24524 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24525 (*prefetch_avx512pf_<mode>_: Change into ...
24526 (*prefetch_prefetchwt1_<mode>: This.
24527 * config/i386/i386.opt (mprefetchwt1): New.
24528 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24529 (_mm_prefetch): Handle intent to write.
24530 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24532 2014-02-25 Richard Biener <rguenther@suse.de>
24534 PR middle-end/60291
24535 * emit-rtl.c (mem_attrs_htab): Remove.
24536 (mem_attrs_htab_hash): Likewise.
24537 (mem_attrs_htab_eq): Likewise.
24538 (set_mem_attrs): Always allocate new mem-attrs when something changed.
24539 (init_emit_once): Do not allocate mem_attrs_htab.
24541 2014-02-25 Richard Biener <rguenther@suse.de>
24544 * lto-opts.c (lto_write_options): Output non-explicit conservative
24545 -fwrapv, -fno-trapv and -fno-strict-overflow.
24546 * lto-wrapper.c (merge_and_complain): Handle merging those options.
24547 (run_gcc): And pass them through.
24549 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24551 * sel-sched.c (calculate_new_fences): New parameter ptime.
24552 Calculate it as a maximum over all fence cycles.
24553 (sel_sched_region_2): Adjust the call to calculate_new_fences.
24554 Print the final schedule timing when sched_verbose.
24556 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24558 PR rtl-optimization/60292
24559 * sel-sched.c (fill_vec_av_set): Do not reset target availability
24560 bit fot the fence instruction.
24562 2014-02-24 Alangi Derick <alangiderick@gmail.com>
24564 * calls.h: Fix typo in comment.
24566 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
24568 * config/pa/pa.c (pa_output_move_double): Don't valididate when
24569 adjusting offsetable addresses.
24571 2014-02-24 Guozhi Wei <carrot@google.com>
24573 * sparseset.h (sparseset_pop): Fix the wrong index.
24575 2014-02-24 Walter Lee <walt@tilera.com>
24577 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24578 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24580 * common/config/tilegx/tilegx-common.c
24581 (TARGET_DEFAULT_TARGET_FLAGS): Define.
24582 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24583 (LINK_SPEC): Ditto.
24584 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24585 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24586 (tilegx_gimplify_va_arg_expr): Handle big endian.
24587 (tilegx_expand_unaligned_load): Ditto.
24588 (tilegx_expand_unaligned_store): Ditto.
24589 (TARGET_RETURN_IN_MSB): New.
24590 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24591 (TARGET_ENDIAN_DEFAULT): New.
24592 (TARGET_BIG_ENDIAN): Handle big endian.
24593 (BYTES_BIG_ENDIAN): Ditto.
24594 (WORDS_BIG_ENDIAN): Ditto.
24595 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24596 (ENDIAN_SPEC): New.
24597 (EXTRA_SPECS): New.
24598 * config/tilegx/tilegx.md (extv): Handle big endian.
24600 (insn_st<n>): Ditto.
24601 (insn_st<n>_add<bitsuffix>): Ditto.
24602 (insn_stnt<n>): Ditto.
24603 (insn_stnt<n>_add<bitsuffix>):Ditto.
24604 (vec_interleave_highv8qi): Handle big endian.
24605 (vec_interleave_highv8qi_be): New.
24606 (vec_interleave_highv8qi_le): New.
24607 (insn_v1int_h): Handle big endian.
24608 (vec_interleave_lowv8qi): Handle big endian.
24609 (vec_interleave_lowv8qi_be): New.
24610 (vec_interleave_lowv8qi_le): New.
24611 (insn_v1int_l): Handle big endian.
24612 (vec_interleave_highv4hi): Handle big endian.
24613 (vec_interleave_highv4hi_be): New.
24614 (vec_interleave_highv4hi_le): New.
24615 (insn_v2int_h): Handle big endian.
24616 (vec_interleave_lowv4hi): Handle big endian.
24617 (vec_interleave_lowv4hi_be): New.
24618 (vec_interleave_lowv4hi_le): New.
24619 (insn_v2int_l): Handle big endian.
24620 (vec_interleave_highv2si): Handle big endian.
24621 (vec_interleave_highv2si_be): New.
24622 (vec_interleave_highv2si_le): New.
24623 (insn_v4int_h): Handle big endian.
24624 (vec_interleave_lowv2si): Handle big endian.
24625 (vec_interleave_lowv2si_be): New.
24626 (vec_interleave_lowv2si_le): New.
24627 (insn_v4int_l): Handle big endian.
24628 * config/tilegx/tilegx.opt (mbig-endian): New option.
24629 (mlittle-endian): New option.
24630 * doc/install.texi: Document tilegxbe-linux.
24631 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24633 2014-02-24 Martin Jambor <mjambor@suse.cz>
24636 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24637 there are no parameter descriptors.
24639 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
24641 PR rtl-optimization/60268
24642 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24643 initialization to ...
24644 (sched_rgn_init): ... here.
24645 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24647 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24649 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24652 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
24654 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24657 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24659 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24660 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24662 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24664 * config/microblaze/predicates.md: Add cmp_op predicate.
24665 * config/microblaze/microblaze.md: Add branch_compare instruction
24666 which uses cmp_op predicate and emits cmp insn before branch.
24667 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24668 to microblaze_expand_conditional_branch and consolidate logic.
24669 (microblaze_expand_conditional_branch): emit branch_compare
24670 insn instead of handling cmp op separate from branch insn.
24672 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24674 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24677 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24679 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24680 define_insn with define_expand and new define_insn
24681 *altivec_lve<VI_char>x_internal.
24682 (altivec_stve<VI_char>x): Replace define_insn with define_expand
24683 and new define_insn *altivec_stve<VI_char>x_internal.
24684 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
24686 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
24688 (altivec_expand_stvex_be): New function.
24690 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
24692 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
24693 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
24694 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
24695 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
24697 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
24700 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
24701 instead of emit_move_insn.
24703 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24705 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
24706 vspltw with vsldoi.
24707 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
24708 gen_altivec_vsumsws.
24710 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24712 * config/rs6000/altivec.md (altivec_lvxl): Rename as
24713 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
24714 (altivec_lvxl_<mode>): New define_expand incorporating
24715 -maltivec=be semantics where needed.
24716 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
24717 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
24718 semantics where needed.
24719 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
24720 (altivec_stvx_<mode>): New define_expand incorporating
24721 -maltivec=be semantics where needed.
24722 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
24723 VM2 iterator instead of V4SI.
24724 (altivec_stvxl_<mode>): New define_expand incorporating
24725 -maltivec=be semantics where needed.
24726 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
24727 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
24728 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
24729 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
24730 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
24731 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
24732 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
24733 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
24734 ALTIVEC_BUILTIN_STVXL.
24735 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
24736 (altivec_expand_stvx_be): Likewise.
24737 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
24738 (altivec_expand_lvx_be): Likewise.
24739 (altivec_expand_stvx_be): Likewise.
24740 (altivec_expand_builtin): Add cases for
24741 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
24742 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
24743 (altivec_init_builtins): Add definitions for
24744 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
24745 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
24747 2014-02-21 Catherine Moore <clm@codesourcery.com>
24749 * doc/invoke.texi (mvirt, mno-virt): Document.
24750 * config/mips/mips.opt (mvirt): New option.
24751 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
24753 2014-02-21 Richard Biener <rguenther@suse.de>
24755 PR tree-optimization/60276
24756 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
24757 (STMT_VINFO_MIN_NEG_DIST): New macro.
24758 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
24759 STMT_VINFO_MIN_NEG_DIST.
24760 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
24761 made for negative dependence distances still hold.
24763 2014-02-21 Richard Biener <rguenther@suse.de>
24765 PR middle-end/60291
24766 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
24767 DECL_INITIAL for globals not in the current function context.
24769 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24771 PR tree-optimization/56490
24772 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
24773 * tree-ssa-uninit.c: Include params.h.
24774 (compute_control_dep_chain): Add num_calls argument, return false
24775 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
24776 num_calls to recursive call.
24777 (find_predicates): Change dep_chain into normal array,
24778 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
24779 variable and adjust compute_control_dep_chain caller.
24780 (find_def_preds): Likewise.
24782 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
24784 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
24785 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
24787 2014-02-21 Nick Clifton <nickc@redhat.com>
24789 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
24790 (pushhi1): Likewise.
24791 (popqi1): Add mode to pre_dec.
24792 (pophi1): Likewise.
24794 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24796 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
24797 mode for mask of V8SFmode permutation.
24799 2014-02-20 Richard Henderson <rth@redhat.com>
24802 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
24803 a new pseudo for OLDVAL.
24805 2014-02-20 Jakub Jelinek <jakub@redhat.com>
24808 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
24809 gen_reg_rtx if d->testing_p.
24810 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
24811 if d->testing_p and we will certainly return true.
24812 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
24815 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
24817 * emit-rtl.c (gen_reg_rtx): Assert that
24818 crtl->emit.regno_pointer_align_length is non-zero.
24820 2014-02-20 Richard Henderson <rth@redhat.com>
24823 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
24824 on failure the store back into EXPECT.
24826 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
24827 Sandra Loosemore <sandra@codesourcery.com>
24829 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
24830 * config/nios2/nios2.c (nios2_function_profiler): Add
24831 -fPIC (flag_pic == 2) support.
24832 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
24833 (nios2_large_offset_p): New function.
24834 (nios2_unspec_reloc_p): Move up position, update to use
24835 nios2_large_offset_p.
24836 (nios2_unspec_address): Remove function.
24837 (nios2_unspec_offset): New function.
24838 (nios2_large_got_address): New function.
24839 (nios2_got_address): Add large offset support.
24840 (nios2_legitimize_tls_address): Update usage of removed and new
24842 (nios2_symbol_binds_local_p): New function.
24843 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
24844 (nios2_legitimize_address): Update to use nios2_large_offset_p.
24845 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
24846 (nios2_print_operand): Merge H/L processing, add hiadj/lo
24847 processing for (const (unspec ...)).
24848 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
24850 2014-02-20 Richard Biener <rguenther@suse.de>
24852 * tree-cfg.c (replace_uses_by): Mark altered BBs before
24853 doing the substitution.
24854 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
24856 2014-02-20 Martin Jambor <mjambor@suse.cz>
24859 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
24860 info when checking whether lattices are bottom.
24862 2014-02-20 Richard Biener <rguenther@suse.de>
24864 PR middle-end/60221
24865 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
24868 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
24871 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
24872 parameter specifying the scaling.
24873 (inline_call): Update.
24874 (want_inline_recursively): Guard division by zero.
24875 (recursive_inlining): Update.
24876 * ipa-inline.h (clone_inlined_nodes): Update.
24878 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24881 * config/i386/i386.c (classify_argument): Pass structures of size
24882 64 bytes or less in register.
24884 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24885 Kirill Yukhin <kirill.yukhin@intel.com>
24887 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
24888 (_mm_rcp28_round_ss): Ditto.
24889 (_mm_rsqrt28_round_sd): Ditto.
24890 (_mm_rsqrt28_round_ss): Ditto.
24891 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
24892 (_mm_rcp14_round_ss): Ditto.
24893 (_mm_rsqrt14_round_sd): Ditto.
24894 (_mm_rsqrt14_round_ss): Ditto.
24895 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
24896 the first input operand, get rid of match_dup.
24897 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
24899 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24901 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
24902 operand as the first input operand, set type attribute.
24903 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24904 Set type attribute.
24905 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
24906 operand as the first input operand, set type attribute.
24908 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24910 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
24913 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
24916 * config/i386/i386.c (construct_container): Remove TFmode check
24917 for X86_64_INTEGER_CLASS.
24919 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
24922 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
24923 only when -Wpsabi is enabled.
24925 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
24928 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
24929 passing arrays in registers are the same as for structs, so remove the
24930 special case for them.
24932 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
24934 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
24935 destination type, extract only the valid bits if the source type is not
24936 integral and has a different mode.
24938 2014-02-19 Richard Biener <rguenther@suse.de>
24941 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
24944 2014-02-19 Richard Biener <rguenther@suse.de>
24947 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
24948 (ipa_modify_call_arguments): Emit an argument load explicitely and
24949 preserve virtual SSA form there and for the replacement call.
24950 Do not update SSA form nor free dominance info.
24952 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24954 * ipa.c (function_and_variable_visibility): Also clear WEAK
24955 flag when disolving COMDAT_GROUP.
24957 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24959 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
24960 * ipa-prop.c (ipa_set_jf_known_type): Return early when
24961 not devirtualizing.
24962 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
24963 do more sanity checks.
24964 (detect_type_change): Return true when giving up early.
24965 (compute_complex_assign_jump_func): Fix type parameter of
24966 ipa_set_ancestor_jf.
24967 (compute_complex_ancestor_jump_func): Likewise.
24968 (update_jump_functions_after_inlining): Fix updating of
24970 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
24972 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24974 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
24975 inline clones when edge disappears.
24977 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24980 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
24981 Split 64-bit moves into 2 patterns. Do not allow the use of
24982 direct move for TDmode in little endian, since the decimal value
24983 has little endian bytes within a word, but the 64-bit pieces are
24984 ordered in a big endian fashion, and normal subreg's of TDmode are
24986 (mov<mode>_64bit_dm): Likewise.
24987 (movtd_64bit_nodm): Likewise.
24989 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
24991 PR tree-optimization/60174
24992 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
24993 statement of an SSA_NAME that occurs in an abnormal PHI node.
24995 2014-02-18 Jakub Jelinek <jakub@redhat.com>
24998 * final.c (SEEN_BB): Remove.
24999 (SEEN_NOTE, SEEN_EMITTED): Renumber.
25000 (final_scan_insn): Don't force_source_line on second
25001 NOTE_INSN_BASIC_BLOCK.
25003 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
25006 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25007 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25008 (type_natural_mode): Warn ABI change when %zmm register is not
25009 available for AVX512F vector value passing.
25011 2014-02-18 Kai Tietz <ktietz@redhat.com>
25014 * config/i386/i386.c (ix86_expand_prologue): Use value in
25015 rax register as displacement when restoring %r10 or %rax.
25016 Fix wrong offset when restoring both registers.
25018 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
25020 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25021 assertion with conditional return.
25023 2014-02-18 Jakub Jelinek <jakub@redhat.com>
25024 Uros Bizjak <ubizjak@gmail.com>
25027 * config/i386/driver-i386.c (host_detect_local_cpu): If
25028 YMM state is not saved by the OS, also clear has_f16c. Move
25029 CPUID 0x80000001 handling before YMM state saving checking.
25031 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
25033 PR rtl-optimization/58960
25034 * haifa-sched.c (alloc_global_sched_pressure_data): New,
25035 factored out from ...
25036 (sched_init): ... here.
25037 (free_global_sched_pressure_data): New, factored out from ...
25038 (sched_finish): ... here.
25039 * sched-int.h (free_global_sched_pressure_data): Declare.
25040 * sched-rgn.c (nr_regions_initial): New static global.
25041 (haifa_find_rgns): Initialize it.
25042 (schedule_region): Disable sched-pressure for the newly
25045 2014-02-17 Richard Biener <rguenther@suse.de>
25047 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
25048 release SSA defs of pattern stmts.
25050 2014-02-17 Richard Biener <rguenther@suse.de>
25052 * tree-inline.c (expand_call_inline): Release the virtual
25053 operand defined by the call we are about to inline.
25055 2014-02-17 Richard Biener <rguenther@suse.de>
25057 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
25059 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
25060 Ilya Tocar <ilya.tocar@intel.com>
25062 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
25063 arguments order in builtin.
25064 (_mm512_permutexvar_epi64): Ditto.
25065 (_mm512_mask_permutexvar_epi64): Ditto
25066 (_mm512_maskz_permutexvar_epi32): Ditto
25067 (_mm512_permutexvar_epi32): Ditto
25068 (_mm512_mask_permutexvar_epi32): Ditto
25070 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25072 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
25073 (p8_vmrgow): Likewise.
25075 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25077 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
25080 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
25083 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
25084 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
25085 into 64-bit and 32-bit moves. On 64-bit moves, add support for
25086 using direct move instructions on ISA 2.07. Also adjust
25087 instruction length for 64-bit.
25088 (mov<mode>_64bit, TFmode/TDmode): Likewise.
25089 (mov<mode>_32bit, TFmode/TDmode): Likewise.
25091 2014-02-15 Alan Modra <amodra@gmail.com>
25095 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25096 find_replacement on parts of insn rtl that might be reloaded.
25098 2014-02-15 Richard Biener <rguenther@suse.de>
25100 PR tree-optimization/60183
25101 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25102 (tree_ssa_phiprop): Calculate and free post-dominators.
25104 2014-02-14 Jeff Law <law@redhat.com>
25106 PR rtl-optimization/60131
25107 * ree.c (get_extended_src_reg): New function.
25108 (combine_reaching_defs): Use it rather than assuming location of REG.
25109 (find_and_remove_re): Verify first operand of extension is
25110 a REG before adding the insns to the copy list.
25112 2014-02-14 Roland McGrath <mcgrathr@google.com>
25114 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25115 * configure: Regenerated.
25116 * config.in: Regenerated.
25117 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25118 instead of ASM_SHORT.
25120 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
25121 Richard Earnshaw <rearnsha@arm.com>
25123 PR rtl-optimization/59535
25124 * lra-constraints.c (process_alt_operands): Encourage alternative
25125 when unassigned pseudo class is superset of the alternative class.
25126 (inherit_reload_reg): Don't inherit when optimizing for code size.
25127 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25128 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25129 modes not less than 4 for Thumb1.
25131 2014-02-14 Kyle McMartin <kyle@redhat.com>
25134 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25136 2014-02-14 Richard Biener <rguenther@suse.de>
25138 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25139 (get_frame_arg): Drop the assert with langhook types_compatible_p.
25140 Do not strip INDIRECT_REFs.
25142 2014-02-14 Richard Biener <rguenther@suse.de>
25145 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25146 DECL_FUNCTION_SPECIFIC_TARGET.
25147 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25148 * tree-streamer-out.c (pack_ts_target_option): Remove.
25149 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25150 (write_ts_function_decl_tree_pointers): Do not stream
25151 DECL_FUNCTION_SPECIFIC_TARGET.
25152 * tree-streamer-in.c (unpack_ts_target_option): Remove.
25153 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25154 (lto_input_ts_function_decl_tree_pointers): Do not stream
25155 DECL_FUNCTION_SPECIFIC_TARGET.
25157 2014-02-14 Jakub Jelinek <jakub@redhat.com>
25159 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25160 (get_initial_def_for_induction, vectorizable_induction): Ignore
25161 debug stmts when looking for exit_phi.
25162 (vectorizable_live_operation): Fix up condition.
25164 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25166 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25167 nreverse() because it changes the content of original tree list.
25169 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25171 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25172 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25174 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25176 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25177 GNU coding standards.
25179 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25182 * dwarf2out.c (gen_subprogram_die): Don't call
25183 add_calling_convention_attribute if subr_die is old_die.
25185 2014-02-13 Sharad Singhai <singhai@google.com>
25187 * doc/optinfo.texi: Fix order of nodes.
25189 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
25191 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25192 operands[2], not operands[3].
25194 2014-02-13 Richard Biener <rguenther@suse.de>
25197 * doc/install.texi (ISL): Update recommended version to 0.12.2,
25198 mention the possibility of an in-tree build.
25199 (CLooG): Update recommended version to 0.18.1, mention the
25200 possibility of an in-tree build and clarify that the ISL
25201 bundled with CLooG does not work.
25203 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25206 * expr.c (compress_float_constant): If x is a hard register,
25207 extend into a pseudo and then move to x.
25209 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
25211 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25212 caused by bad second argument to warning_at() with -mhotpatch and
25213 nested functions (e.g. with gfortran).
25215 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
25217 * opts.c (option_name): Remove "enabled by default" rider.
25219 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
25221 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25223 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
25224 Uros Bizjak <ubizjak@gmail.com>
25227 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25228 * configure: Regenerated.
25230 2014-02-12 Richard Biener <rguenther@suse.de>
25232 * vec.c (vec_prefix::calculate_allocation): Move as
25233 inline variant to vec.h.
25234 (vec_prefix::calculate_allocation_1): New out-of-line version.
25235 * vec.h (vec_prefix::calculate_allocation_1): Declare.
25236 (vec_prefix::m_has_auto_buf): Rename to ...
25237 (vec_prefix::m_using_auto_storage): ... this.
25238 (vec_prefix::calculate_allocation): Inline the easy cases
25239 and dispatch to calculate_allocation_1 which doesn't need the
25241 (va_heap::reserve): Use gcc_checking_assert.
25242 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25243 m_using_auto_storage.
25244 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25246 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25247 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25248 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25250 2014-02-12 Richard Biener <rguenther@suse.de>
25252 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25253 when we found a dependence.
25255 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
25257 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25259 (maybe_fold_stmt): ... into this new function.
25260 * omp-low.c (lower_omp): Update comment.
25262 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25265 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25268 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
25270 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25271 identifiers in comments.
25272 (cortexa53_extra_costs): Likewise.
25273 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25274 (cortexa7_extra_costs): Likewise.
25275 (cortexa12_extra_costs): Likewise.
25276 (cortexa15_extra_costs): Likewise.
25277 (v7m_extra_costs): Likewise.
25279 2014-02-12 Richard Biener <rguenther@suse.de>
25281 PR middle-end/60092
25282 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25283 of posix_memalign being successful.
25284 (lower_stmt): Restrict lowering of posix_memalign to when
25285 -ftree-bit-ccp is enabled.
25287 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25289 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25291 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25293 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
25295 PR rtl-optimization/60116
25296 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25297 other_insn once the combination has been validated.
25299 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
25302 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25304 * ipa-devirt.c: Include demangle.h
25305 (odr_violation_reported): New static variable.
25306 (add_type_duplicate): Update odr_violations.
25307 (maybe_record_node): Add completep parameter; update it.
25308 (record_target_from_binfo): Add COMPLETEP parameter;
25309 update it as needed.
25310 (possible_polymorphic_call_targets_1): Likewise.
25311 (struct polymorphic_call_target_d): Add nonconstruction_targets;
25312 rename FINAL to COMPLETE.
25313 (record_targets_from_bases): Sanity check we found the binfo;
25314 fix COMPLETEP updating.
25315 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25316 parameter, fix computing of COMPLETEP.
25317 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25318 at LTO time do demangling.
25319 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25320 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25322 (gimple_get_virt_method_for_binfo): Likewise.
25323 * gimple-fold.h (gimple_get_virt_method_for_binfo,
25324 gimple_get_virt_method_for_vtable): Update prototypes.
25326 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
25329 * genautomata.c (add_presence_absence): Fix typo with
25330 {final_}presence_list.
25332 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25335 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25336 for VSX/Altivec vectors that land in GPR registers.
25338 2014-02-11 Richard Henderson <rth@redhat.com>
25339 Jakub Jelinek <jakub@redhat.com>
25342 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25343 around drhs if type conversion to lacc->type is not useless.
25345 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25347 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25349 (cortex-a57.cortex-a53): Likewise.
25350 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25352 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25354 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25357 2014-02-11 Renlin Li <Renlin.Li@arm.com>
25359 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25360 add_options_for_arm_vfp3.
25362 2014-02-11 Jeff Law <law@redhat.com>
25364 PR middle-end/54041
25365 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25366 object with an undesirable mode.
25368 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25371 * config/i386/sol2-9.h: New file.
25372 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25373 *-*-solaris2.9*): Use it.
25375 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25377 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25378 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25380 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25382 * config/microblaze/microblaze.c: Extend mcpu version format
25384 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
25386 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25388 2014-02-10 Richard Henderson <rth@redhat.com>
25391 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25392 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25393 ms-abi vs -mno-accumulate-outgoing-args.
25394 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25395 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25398 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
25400 PR middle-end/60080
25401 * cfgexpand.c (expand_asm_operands): Attach source location to
25402 ASM_INPUT rtx objects.
25403 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25405 2014-02-10 Nick Clifton <nickc@redhat.com>
25407 * config/mn10300/mn10300.c (popcount): New function.
25408 (mn10300_expand_prologue): Include saved registers in stack usage
25411 2014-02-10 Jeff Law <law@redhat.com>
25413 PR middle-end/52306
25414 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25415 when changing the SET_DEST of a prior insn to avoid an input reload.
25417 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25419 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25420 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25421 -mcall-openbsd, or -mcall-linux.
25422 (CC1_ENDIAN_BIG_SPEC): Remove.
25423 (CC1_ENDIAN_LITTLE_SPEC): Remove.
25424 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25425 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25426 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25427 and %cc1_endian_default.
25428 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25430 2014-02-10 Richard Biener <rguenther@suse.de>
25432 PR tree-optimization/60115
25433 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25434 MEM_REF handling. Properly verify that the accesses are not
25435 out of the objects bound.
25437 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25439 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25442 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
25444 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25445 proper constants and fix formatting.
25446 (possible_polymorphic_call_targets): Fix formatting.
25448 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
25449 Ilya Tocar <ilya.tocar@intel.com>
25451 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25452 (_mm512_loadu_epi32): Renamed into...
25453 (_mm512_loadu_si512): This.
25454 (_mm512_storeu_epi32): Renamed into...
25455 (_mm512_storeu_si512): This.
25456 (_mm512_maskz_ceil_ps): Removed.
25457 (_mm512_maskz_ceil_pd): Ditto.
25458 (_mm512_maskz_floor_ps): Ditto.
25459 (_mm512_maskz_floor_pd): Ditto.
25460 (_mm512_floor_round_ps): Ditto.
25461 (_mm512_floor_round_pd): Ditto.
25462 (_mm512_ceil_round_ps): Ditto.
25463 (_mm512_ceil_round_pd): Ditto.
25464 (_mm512_mask_floor_round_ps): Ditto.
25465 (_mm512_mask_floor_round_pd): Ditto.
25466 (_mm512_mask_ceil_round_ps): Ditto.
25467 (_mm512_mask_ceil_round_pd): Ditto.
25468 (_mm512_maskz_floor_round_ps): Ditto.
25469 (_mm512_maskz_floor_round_pd): Ditto.
25470 (_mm512_maskz_ceil_round_ps): Ditto.
25471 (_mm512_maskz_ceil_round_pd): Ditto.
25472 (_mm512_expand_pd): Ditto.
25473 (_mm512_expand_ps): Ditto.
25474 * config/i386/i386.c (ix86_builtins): Remove
25475 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25476 (bdesc_args): Ditto.
25477 * config/i386/predicates.md (const1256_operand): New.
25478 (const_1_to_2_operand): Ditto.
25479 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25480 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25481 (*avx512pf_gatherpf<mode>sf): Ditto.
25482 (avx512pf_gatherpf<mode>df): Ditto.
25483 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25484 (*avx512pf_gatherpf<mode>df): Ditto.
25485 (avx512pf_scatterpf<mode>sf): Ditto.
25486 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25487 (*avx512pf_scatterpf<mode>sf): Ditto.
25488 (avx512pf_scatterpf<mode>df): Ditto.
25489 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25490 (*avx512pf_scatterpf<mode>df): Ditto.
25491 (avx512f_expand<mode>): Removed.
25492 (<shift_insn><mode>3<mask_name>): Change predicate type.
25494 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25496 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25497 not at the end of datarefs vector use ordered_remove to avoid
25498 reordering datarefs vector.
25501 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25502 mark local addressable non-static vars as GOVD_PRIVATE
25503 instead of GOVD_LOCAL.
25504 * omp-low.c (lower_omp_for): Move gimple_bind_vars
25505 and BLOCK_VARS of gimple_bind_block to new_stmt rather
25508 PR middle-end/60092
25509 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25510 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25511 assume_aligned or alloc_align attributes.
25512 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25513 arguments. Handle also assume_aligned and alloc_align attributes.
25514 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
25515 calls to functions with assume_aligned or alloc_align attributes.
25516 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25518 2014-02-08 Terry Guo <terry.guo@arm.com>
25520 * doc/invoke.texi: Document ARM -march=armv7e-m.
25522 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25524 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25525 flag on __cilkrts_rethrow builtin.
25528 * ipa-cp.c (determine_versionability): Fail at -O0
25529 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25530 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25533 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25536 * tree-inline.c (copy_forbidden): Fail for
25537 __attribute__((optimize (0))) functions.
25539 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25541 * varpool.c: Include pointer-set.h.
25542 (varpool_remove_unreferenced_decls): Variables in other partitions
25543 will not be output; be however careful to not lose information
25544 about partitioning.
25546 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25548 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25549 lookup in the vtable constructor.
25551 2014-02-07 Jeff Law <law@redhat.com>
25554 * config/m68k/m68k.md (ashldi_extsi): Turn into a
25555 define_insn_and_split.
25557 * ipa-inline.c (inline_small_functions): Fix typos.
25559 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25561 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25562 (s390_can_use_return_insn): Declare.
25563 * config/s390/s390.h (EPILOGUE_USES): Define.
25564 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25566 (s390_chunkify_start): Handle return JUMP_LABELs.
25567 (s390_early_mach): Emit a main_pool instruction on the entry edge.
25568 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25569 (s390_can_use_return_insn): New functions.
25570 (s390_fix_long_loop_prediction): Handle conditional returns.
25571 (TARGET_SET_UP_BY_PROLOGUE): Define.
25572 * config/s390/s390.md (ANY_RETURN): New code iterator.
25573 (*creturn, *csimple_return, return, simple_return): New patterns.
25575 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25577 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25578 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
25579 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
25580 REG_CFA_RESTORE list when deciding not to restore a register.
25582 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25584 * config/s390/s390.c: Include tree-pass.h and context.h.
25585 (s390_early_mach): New function, split out from...
25586 (s390_emit_prologue): ...here.
25587 (pass_data_s390_early_mach): New pass structure.
25588 (pass_s390_early_mach): New class.
25589 (s390_option_override): Create and register early_mach pass.
25590 Move to end of file.
25592 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25594 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25595 to match for the exit block.
25597 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25599 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25600 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25601 Reject misaligned operands.
25603 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25605 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25607 2014-02-07 Richard Biener <rguenther@suse.de>
25609 PR middle-end/60092
25610 * gimple-low.c (lower_builtin_posix_memalign): New function.
25611 (lower_stmt): Call it to lower posix_memalign in a way
25612 to make alignment info accessible.
25614 2014-02-07 Jakub Jelinek <jakub@redhat.com>
25617 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25618 __builtin_setjmp_receiver.
25620 2014-02-07 Richard Biener <rguenther@suse.de>
25622 PR middle-end/60092
25623 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25624 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25625 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25626 Handle BUILT_IN_POSIX_MEMALIGN.
25627 (find_func_clobbers): Likewise.
25628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25629 (call_may_clobber_ref_p_1): Likewise.
25631 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25634 * ipa-devirt.c (record_target_from_binfo): Remove overactive
25637 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25640 * lto-cgraph.c (lto_output_node): Use
25641 symtab_get_symbol_partitioning_class.
25642 (lto_output_varpool_node): likewise.
25643 (symtab_get_symbol_partitioning_class): Move here from
25644 lto/lto-partition.c
25645 * cgraph.h (symbol_partitioning_class): Likewise.
25646 (symtab_get_symbol_partitioning_class): Declare.
25648 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25650 * ggc.h (ggc_internal_cleared_alloc): New macro.
25651 * vec.h (vec_safe_copy): Handle memory stats.
25652 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25653 * target-globals.c (save_target_globals): Likewise.
25655 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25658 * expr.c (emit_move_resolve_push): Export; be bit more selective
25659 on when to clear alias set.
25660 * expr.h (emit_move_resolve_push): Declare.
25661 * function.h (struct function): Add tail_call_marked.
25662 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25663 * config/i386/i386-protos.h (ix86_expand_push): Remove.
25664 * config/i386/i386.md (TImode move expander): De not call
25666 (FP push expanders): Preserve memory attributes.
25667 * config/i386/sse.md (push<mode>1): Remove.
25668 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25669 (ix86_expand_push): Remove.
25670 * config/i386/mmx.md (push<mode>1): Remove.
25672 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25674 PR rtl-optimization/60030
25675 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25676 lopart with paradoxical subreg before shifting it up by hprec.
25678 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25680 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25681 Remove extra newline at end of file.
25682 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25683 (arm_issue_rate): Handle cortexa57.
25684 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25685 (cortex-a57.cortex-a53): Likewise.
25687 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25690 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
25691 don't record in REG_FRAME_RELATED_EXPR registers not set in that
25693 (arm_expand_prologue): Adjust all callers.
25694 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
25695 info, registers also at the lowest numbered registers side. Use
25696 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
25700 * var-tracking.c (adjust_mems): Before adding a SET to
25701 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
25703 2014-02-06 Alan Modra <amodra@gmail.com>
25706 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
25707 change SDmode to DDmode when lra_in_progress.
25709 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25711 PR middle-end/59150
25712 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
25713 free_data_ref on the dr first, and before goto again also set dr
25714 to the next dr. For simd_lane_access, free old datarefs[i] before
25715 overwriting it. For get_vectype_for_scalar_type failure, don't
25716 free_data_ref if simd_lane_access.
25718 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
25721 * tree.h (opts_for_fn): New inline function.
25722 (opt_for_fn): Define.
25723 * config/i386/i386.c (ix86_function_regparm): Use
25724 opt_for_fn (decl, optimize) instead of optimize.
25726 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
25728 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
25729 for SYMBOL_REF in large memory model.
25731 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25733 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
25734 and crypto support.
25735 (cortex-a57): Likewise.
25736 (cortex-a57.cortex-a53): Likewise.
25738 2014-02-06 Yury Gribov <y.gribov@samsung.com>
25739 Kugan Vivekanandarajah <kuganv@linaro.org>
25741 * config/arm/arm.c (arm_vector_alignment_reachable): Check
25743 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
25745 2014-02-06 Richard Biener <rguenther@suse.de>
25747 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
25748 set_loop_copy and initialize_original_copy_tables.
25750 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
25752 * config/aarch64/aarch64-simd.md
25753 (aarch64_ashr_simddi): Change QI to SI.
25755 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25756 Jakub Jelinek <jakub@redhat.com>
25758 PR middle-end/60013
25759 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
25762 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25764 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
25765 CODE_FOR_altivec_vpku[hw]um to
25766 CODE_FOR_altivec_vpku[hw]um_direct.
25767 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
25768 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
25769 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
25770 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
25772 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25774 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
25775 generation for -maltivec=be.
25776 (altivec_vsumsws): Simplify redundant test.
25778 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25780 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
25781 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
25782 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
25783 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
25784 gen_altivec_vpkuwum.
25785 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
25787 (altivec_vpks<VI_char>ss): Likewise.
25788 (altivec_vpks<VI_char>us): Likewise.
25789 (altivec_vpku<VI_char>us): Likewise.
25790 (altivec_vpku<VI_char>um): Likewise.
25791 (altivec_vpku<VI_char>um_direct): New (copy of
25792 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
25794 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
25795 target is little endian and -maltivec=be is not specified.
25796 (*altivec_vupkhs<VU_char>_direct): New (copy of
25797 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
25798 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
25799 target is little endian and -maltivec=be is not specified.
25800 (*altivec_vupkls<VU_char>_direct): New (copy of
25801 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
25802 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
25803 little endian and -maltivec=be is not specified.
25804 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
25805 little endian and -maltivec=be is not specified.
25807 2014-02-05 Richard Henderson <rth@redhat.com>
25810 * combine-stack-adj.c: Revert r206943.
25811 * sched-int.h (struct deps_desc): Add last_args_size.
25812 * sched-deps.c (init_deps): Initialize it.
25813 (sched_analyze_insn): Add OUTPUT dependencies between insns that
25814 contain REG_ARGS_SIZE notes.
25816 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25818 * lto-cgraph.c (asm_nodes_output): Make global.
25819 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
25820 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
25821 (driver_handle_option): Handle OPT_fwpa.
25823 2014-02-05 Jakub Jelinek <jakub@redhat.com>
25826 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
25827 a comment typo and formatting issue. If odr_hash hasn't been
25828 created, return vNULL and set *completep to false.
25830 PR middle-end/57499
25831 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
25832 bb with no successors.
25834 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
25837 * doc/invoke.texi (-march): Clarify documentation for ARM.
25838 (-mtune): Likewise.
25841 2014-02-05 Richard Biener <rguenther@suse.de>
25843 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
25844 when not vectorizing because of too many alias checks.
25845 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25846 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
25848 2014-02-05 Nick Clifton <nickc@redhat.com>
25850 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
25851 accept extended registers in any mode when compiling for the MN10300.
25853 2014-02-05 Yury Gribov <y.gribov@samsung.com>
25855 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
25856 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
25857 sanitization attributes.
25858 (can_inline_edge_p): Likewise.
25859 (sanitize_attrs_match_for_inline_p): New function.
25861 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25863 * ipa-prop.c (detect_type_change): Shor circuit testing of
25864 type changes on THIS pointer.
25866 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
25869 * config/pa/pa.c (legitimize_tls_address): Return original address
25870 if not passed a SYMBOL_REF rtx.
25871 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
25873 (pa_emit_move_sequence): Simplify TLS source operands.
25874 (pa_legitimate_constant_p): Reject all TLS constants.
25875 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
25876 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
25878 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25880 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
25881 groups when we know they are controlled by LTO.
25882 * varasm.c (default_binds_local_p_1): If object is in other partition,
25883 it will be resolved locally.
25885 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25887 * config/host-linux.c (linux_gt_pch_use_address): Don't
25888 use SSIZE_MAX because it is not always defined.
25890 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
25893 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
25894 threshold for pseudo splitting.
25895 (update_ebb_live_info): Process call argument hard registers and
25896 hard registers from insn definition too.
25897 (max_small_class_regs_num): New constant.
25898 (inherit_in_ebb): Update live hard regs through EBBs. Update
25899 reloads_num only for small register classes. Don't split for
25902 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
25905 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
25908 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25910 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
25911 visibility is safe.
25913 2014-02-04 Marek Polacek <polacek@redhat.com>
25915 * gdbinit.in (pel): Define.
25917 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25919 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
25922 2014-02-04 Richard Biener <rguenther@suse.de>
25925 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
25926 in function context local.
25927 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
25928 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
25929 similar to LTO_imported_decl_ref.
25931 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25933 PR tree-optimization/60002
25934 * cgraphclones.c (build_function_decl_skip_args): Clear
25935 DECL_LANG_SPECIFIC.
25937 PR tree-optimization/60023
25938 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
25939 false to gsi_replace.
25940 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
25941 has been in some EH region and vec_stmt could throw, add
25942 vec_stmt into the same EH region.
25943 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
25944 has no lhs, ignore it.
25945 * internal-fn.c (expand_MASK_LOAD): Likewise.
25948 * tree-inline.c (copy_forbidden): Fail for
25949 __attribute__((optimize (0))) functions.
25952 * omp-low.c (simd_clone_struct_copy): If from->inbranch
25953 is set, copy one less argument.
25954 (expand_simd_clones): Don't subtract clone_info->inbranch
25955 from simd_clone_struct_alloc argument.
25957 PR rtl-optimization/57915
25958 * recog.c (simplify_while_replacing): If all unary/binary/relational
25959 operation arguments are constant, attempt to simplify those.
25961 PR middle-end/59261
25962 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
25963 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
25965 2014-02-04 Richard Biener <rguenther@suse.de>
25967 PR tree-optimization/60012
25968 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
25969 TBAA disambiguation to all DDRs.
25971 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25974 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
25975 (LINK_SPEC): Use it for -shared, -shared-libgcc.
25977 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25980 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
25982 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25984 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
25985 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
25987 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25990 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
25991 to figure out targets of polymorphic calls with known decl.
25992 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25993 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
25994 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
25995 (get_polymorphic_call_info): ... here.
25996 (get_polymorphic_call_info_from_invariant): New function.
25998 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26000 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26001 lookup via vtable pointer; check for type consistency
26002 and turn inconsitent facts into UNREACHABLE.
26003 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26004 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26005 type inconsistent querries; return UNREACHABLE instead.
26007 2014-02-03 Richard Henderson <rth@twiddle.net>
26010 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26011 already processed this node.
26012 (normalize_one_pred_1): Pass along mark_set.
26013 (normalize_one_pred): Create and destroy a pointer_set_t.
26014 (normalize_one_pred_chain): Likewise.
26016 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
26018 PR gcov-profile/58602
26019 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26021 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26024 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26025 -fno-devirtualize; try to devirtualize by the knowledge of
26026 virtual table pointer given by aggregate propagation.
26027 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26028 (ipa_print_node_jump_functions): Dump also offset that
26029 is relevant for polymorphic calls.
26030 (determine_known_aggregate_parts): Add arg_type parameter; use it
26031 instead of determining the type from pointer type.
26032 (ipa_compute_jump_functions_for_edge): Update call of
26033 determine_known_aggregate_parts.
26034 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26035 (gimple_get_virt_method_for_binfo): ... here; simplify using
26036 vtable_pointer_value_to_vtable.
26037 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26038 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26039 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26040 (vtable_pointer_value_to_vtable): Break out from ...; handle also
26042 (vtable_pointer_value_to_binfo): ... here.
26043 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
26045 2014-02-03 Teresa Johnson <tejohnson@google.com>
26047 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
26048 redef of outer loop index variable.
26050 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
26054 * doc/extend.texi (Function Attributes): Typo.
26056 2014-02-03 Cong Hou <congh@google.com>
26058 PR tree-optimization/60000
26059 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
26060 if the vectorized statement is a store. A store statement can only
26061 appear at the end of pattern statements.
26063 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
26065 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
26066 (ix86_option_override_internal): Default long double to 64-bit for
26067 32-bit Bionic and to 128-bit for 64-bit Bionic.
26069 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
26070 TARGET_LONG_DOUBLE_128 is true.
26071 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
26073 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
26074 (mlong-double-64): Negate -mlong-double-128.
26075 (mlong-double-128): New option.
26077 * config/i386/i386-c.c (ix86_target_macros): Define
26078 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
26080 * doc/invoke.texi: Document -mlong-double-128.
26082 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
26084 PR rtl-optimization/60024
26085 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
26087 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
26089 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
26091 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
26093 PR rtl-optimization/57662
26094 * sel-sched.c (code_motion_path_driver): Do not mark already not
26095 existing blocks in the visiting bitmap.
26097 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
26099 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26100 on the insn being emitted.
26102 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
26103 Will Deacon <will.deacon@arm.com>
26105 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26107 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26109 * config/arm/arm-tables.opt: Regenerate.
26111 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26113 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26114 for vector types other than V16QImode.
26115 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26116 define_expand, and call altivec_expand_vec_perm_le when producing
26117 code with little endian element order.
26118 (*altivec_vperm_<mode>_internal): New insn having previous
26119 behavior of altivec_vperm_<mode>.
26120 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26121 altivec_expand_vec_perm_le when producing code with little endian
26123 (*altivec_vperm_<mode>_uns_internal): New insn having previous
26124 behavior of altivec_vperm_<mode>_uns.
26126 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26128 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26129 (altivec_vsumsws): Add handling for -maltivec=be with a little
26131 (altivec_vsumsws_direct): New.
26132 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26133 gen_altivec_vsumsws.
26135 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
26137 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26138 vtable_pointer_value_to_binfo): New functions.
26139 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26140 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26142 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
26144 * config/nios2/nios2.md (load_got_register): Initialize GOT
26145 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26146 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26148 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
26150 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26151 preserverd by passthrough, do not propagate the type.
26153 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26155 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26156 (mips_atomic_assign_expand_fenv): New function.
26157 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26159 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26161 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26162 (__builtin_mips_set_fcsr): Likewise.
26163 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26164 MIPS_USI_FTYPE_VOID.
26165 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26166 (mips16_expand_set_fcsr): Likewise.
26167 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26168 (mips16_set_fcsr_stub): Likewise.
26169 (mips16_get_fcsr_one_only_stub): New class.
26170 (mips16_set_fcsr_one_only_stub): Likewise.
26171 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26172 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26173 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26174 (hard_float): New availability predicate.
26175 (mips_builtins): Add get_fcsr and set_fcsr.
26176 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26177 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26178 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26179 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26180 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26183 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26185 * config/mips/mips.c (mips_one_only_stub): New class.
26186 (mips_need_mips16_rdhwr_p): Replace with...
26187 (mips16_rdhwr_stub): ...this new variable.
26188 (mips16_stub_call_address): New function.
26189 (mips16_rdhwr_one_only_stub): New class.
26190 (mips_expand_thread_pointer): Use mips16_stub_call_address.
26191 (mips_output_mips16_rdhwr): Delete.
26192 (mips_finish_stub): New function.
26193 (mips_code_end): Use it to handle rdhwr stubs.
26195 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
26198 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26199 when calculating size of integer atomic types.
26201 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
26203 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26205 2014-02-01 Jakub Jelinek <jakub@redhat.com>
26207 PR tree-optimization/60003
26208 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26209 * profile.c (branch_prob): Use gimple_call_builtin_p
26210 to check for BUILT_IN_SETJMP_RECEIVER.
26211 * tree-inline.c (copy_bb): Call notice_special_calls.
26213 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
26216 * lra-constraints.c (process_alt_operands): Update reload_sum only
26219 2014-01-31 Richard Henderson <rth@redhat.com>
26221 PR middle-end/60004
26222 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26223 until after else_eh is processed.
26225 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26227 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26228 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26229 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26230 in smmintrin.h, remove them.
26231 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26232 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26233 * config/i386/i386.md (ROUND_SAE): Fix value.
26234 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26235 (const48_operand): New.
26236 * config/i386/subst.md (round), (round_expand): Use
26237 const_4_or_8_to_11_operand.
26238 (round_saeonly), (round_saeonly_expand): Use const48_operand.
26240 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26242 * config/i386/constraints.md (Yk): Swap meaning with k.
26243 * config/i386/i386.md (movhi_internal): Change Yk to k.
26244 (movqi_internal): Ditto.
26245 (*k<logic><mode>): Ditto.
26248 (kandn<mode>): Ditto.
26249 (*<code>hi_1): Ditto.
26250 (*<code>qi_1): Ditto.
26251 (kxnor<mode>): Ditto.
26252 (kortestzhi): Ditto.
26253 (kortestchi): Ditto.
26255 (*one_cmplhi2_1): Ditto.
26256 (*one_cmplqi2_1): Ditto.
26257 * config/i386/sse.md (): Change k to Yk.
26258 (avx512f_load<mode>_mask): Ditto.
26259 (avx512f_blendm<mode>): Ditto.
26260 (avx512f_store<mode>_mask): Ditto.
26261 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26262 (avx512f_storedqu<mode>_mask): Ditto.
26263 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26265 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26266 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26267 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26268 (avx512f_maskcmp<mode>3): Ditto.
26269 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26270 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26271 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26272 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26273 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26274 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26275 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26276 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26277 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26278 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26279 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26280 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26281 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26282 (vec_extract_lo_<mode>_maskm): Ditto.
26283 (vec_extract_hi_<mode>_maskm): Ditto.
26284 (avx512f_vternlog<mode>_mask): Ditto.
26285 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26286 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26287 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26288 (avx512f_<code>v8div16qi2_mask): Ditto.
26289 (avx512f_<code>v8div16qi2_mask_store): Ditto.
26290 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26291 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26292 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26293 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26294 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26295 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26296 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26297 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26298 (avx512cd_maskb_vec_dupv8di): Ditto.
26299 (avx512cd_maskw_vec_dupv16si): Ditto.
26300 (avx512f_vpermi2var<mode>3_maskz): Ditto.
26301 (avx512f_vpermi2var<mode>3_mask): Ditto.
26302 (avx512f_vpermi2var<mode>3_mask): Ditto.
26303 (avx512f_vpermt2var<mode>3_maskz): Ditto.
26304 (*avx512f_gathersi<mode>): Ditto.
26305 (*avx512f_gathersi<mode>_2): Ditto.
26306 (*avx512f_gatherdi<mode>): Ditto.
26307 (*avx512f_gatherdi<mode>_2): Ditto.
26308 (*avx512f_scattersi<mode>): Ditto.
26309 (*avx512f_scatterdi<mode>): Ditto.
26310 (avx512f_compress<mode>_mask): Ditto.
26311 (avx512f_compressstore<mode>_mask): Ditto.
26312 (avx512f_expand<mode>_mask): Ditto.
26313 * config/i386/subst.md (mask): Change k to Yk.
26314 (mask_scalar_merge): Ditto.
26317 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
26319 * doc/extend.texi (Vector Extensions): Document ?: in C++.
26321 2014-01-31 Richard Biener <rguenther@suse.de>
26323 PR middle-end/59990
26324 * builtins.c (fold_builtin_memory_op): Make sure to not
26325 use a floating-point mode or a boolean or enumeral type for
26326 the copy operation.
26328 2014-01-30 DJ Delorie <dj@redhat.com>
26330 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26331 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26332 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26333 whenever main() has an epilogue.
26335 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26337 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26338 unused variable "field".
26339 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26340 (vsx_mergeh_<mode>): Likewise.
26341 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26342 (altivec_vmrghh): Likewise.
26343 (altivec_vmrghw): Likewise.
26344 (altivec_vmrglb): Likewise.
26345 (altivec_vmrglh): Likewise.
26346 (altivec_vmrglw): Likewise.
26347 (altivec_vspltb): Add missing uses.
26348 (altivec_vsplth): Likewise.
26349 (altivec_vspltw): Likewise.
26350 (altivec_vspltsf): Likewise.
26352 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26355 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26356 frame related instructions.
26358 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
26360 PR rtl-optimization/59959
26361 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26362 any reload of register whose subreg is invalid.
26364 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26366 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26367 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26368 Add missing return type - void.
26370 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26372 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26373 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26374 remove element index adjustment for endian (now handled in vsx.md
26376 (altivec_expand_vec_perm_const): Use
26377 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26378 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26379 (vsx_xxspltw_<mode>): Adjust element index for little endian.
26380 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26381 define_expand and a new define_insn *altivec_vspltb_internal;
26382 adjust for -maltivec=be on a little endian target.
26383 (altivec_vspltb_direct): New.
26384 (altivec_vsplth): Divide into a define_expand and a new
26385 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26386 little endian target.
26387 (altivec_vsplth_direct): New.
26388 (altivec_vspltw): Divide into a define_expand and a new
26389 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26390 little endian target.
26391 (altivec_vspltw_direct): New.
26392 (altivec_vspltsf): Divide into a define_expand and a new
26393 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26394 a little endian target.
26396 2014-01-30 Richard Biener <rguenther@suse.de>
26398 PR tree-optimization/59993
26399 * tree-ssa-forwprop.c (associate_pointerplus): Check we
26400 can propagate form the earlier stmt and avoid the transform
26401 when the intermediate result is needed.
26403 2014-01-30 Alangi Derick <alangiderick@gmail.com>
26405 * README.Portability: Fix typo.
26407 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
26409 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26410 comparison_operator with ordered_comparison_operator.
26412 2014-01-30 Nick Clifton <nickc@redhat.com>
26414 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26415 Rename to mn10300_store_multiple_regs.
26416 * config/mn10300/mn10300.c: Likewise.
26417 * config/mn10300/mn10300.md (store_movm): Fix typo: call
26418 store_multiple_regs.
26419 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26420 Call mn10300_store_multiple_regs.
26422 2014-01-30 Nick Clifton <nickc@redhat.com>
26423 DJ Delorie <dj@redhat.com>
26425 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26426 %fp 2 to keep registers after it properly word-aligned.
26427 (rl78_alloc_physical_registers_umul): Handle the case where both
26428 input operands are the same.
26430 2014-01-30 Richard Biener <rguenther@suse.de>
26432 PR tree-optimization/59903
26433 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26436 2014-01-30 Jason Merrill <jason@redhat.com>
26439 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26442 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26444 2014-01-30 Richard Biener <rguenther@suse.de>
26446 PR tree-optimization/59951
26447 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26449 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
26452 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26453 SFmode to DFmode case.
26455 2014-01-29 DJ Delorie <dj@redhat.com>
26457 * config/msp430/msp430.opt (-minrt): New.
26458 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26460 (ENDFILE_SPEC): Likewise.
26462 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
26464 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26465 (estimate_function_body_sizes): Use it.
26467 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
26470 * dwarf2out.c (is_cxx_auto): New.
26471 (is_base_type): Use it.
26472 (gen_type_die_with_usage): Likewise.
26474 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26476 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
26477 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26478 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26479 -maltivec=be with LE targets.
26480 (vsx_mergeh_<mode>): Likewise.
26481 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26482 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26483 (altivec_vmrghb): Replace with define_expand and new
26484 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26485 (altivec_vmrghb_direct): New define_insn.
26486 (altivec_vmrghh): Replace with define_expand and new
26487 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26488 (altivec_vmrghh_direct): New define_insn.
26489 (altivec_vmrghw): Replace with define_expand and new
26490 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26491 (altivec_vmrghw_direct): New define_insn.
26492 (*altivec_vmrghsf): Adjust for endianness.
26493 (altivec_vmrglb): Replace with define_expand and new
26494 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26495 (altivec_vmrglb_direct): New define_insn.
26496 (altivec_vmrglh): Replace with define_expand and new
26497 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26498 (altivec_vmrglh_direct): New define_insn.
26499 (altivec_vmrglw): Replace with define_expand and new
26500 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26501 (altivec_vmrglw_direct): New define_insn.
26502 (*altivec_vmrglsf): Adjust for endianness.
26503 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26504 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26505 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26506 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26507 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26508 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26509 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26510 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26512 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
26514 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26515 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26518 2014-01-29 Richard Biener <rguenther@suse.de>
26520 PR tree-optimization/58742
26521 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26522 associate_pointerplus_align.
26523 (associate_pointerplus_diff): New function.
26524 (associate_pointerplus): Likewise. Call associate_pointerplus_align
26525 and associate_pointerplus_diff.
26527 2014-01-29 Richard Biener <rguenther@suse.de>
26529 * lto-streamer.h (LTO_major_version): Bump to 3.
26530 (LTO_minor_version): Reset to 0.
26532 2014-01-29 Renlin Li <Renlin.Li@arm.com>
26534 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26535 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26536 (arm_file_start): Generate correct asm header for armv7ve.
26537 * config/arm/bpabi.h: Add multilib support for armv7ve.
26538 * config/arm/driver-arm.c: Change the architectures of cortex-a7
26539 and cortex-a15 to armv7ve.
26540 * config/arm/t-aprofile: Add multilib support for armv7ve.
26541 * doc/invoke.texi: Document -march=armv7ve.
26543 2014-01-29 Richard Biener <rguenther@suse.de>
26545 PR tree-optimization/58742
26546 * tree-ssa-forwprop.c (associate_plusminus): Return true
26547 if we changed sth, defer EH cleanup to ...
26548 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
26549 (simplify_mult): New function.
26551 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26553 PR middle-end/59917
26554 PR tree-optimization/59920
26555 * tree.c (build_common_builtin_nodes): Remove
26556 __builtin_setjmp_dispatcher initialization.
26557 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26558 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26559 instead of gsi_after_labels + manually skipping debug stmts.
26560 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26561 ignore bbs with IFN_ABNORMAL_DISPATCHER.
26562 * tree-inline.c (copy_edges_for_bb): Remove
26563 can_make_abnormal_goto argument, instead add abnormal_goto_dest
26564 argument. Ignore computed_goto_p stmts. Don't call
26565 make_abnormal_goto_edges. If a call might need abnormal edges
26566 for non-local gotos, see if it already has an edge to
26567 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26568 with true argument, don't do anything then, otherwise add
26569 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26570 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26572 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26573 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26574 (lower_stmt): Don't set data->calls_builtin_setjmp.
26575 (lower_builtin_setjmp): Adjust comment.
26576 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26577 * tree-cfg.c (found_computed_goto): Remove.
26578 (factor_computed_gotos): Remove.
26579 (make_goto_expr_edges): Return bool, true for computed gotos.
26580 Don't call make_abnormal_goto_edges.
26581 (build_gimple_cfg): Don't set found_computed_goto, don't call
26582 factor_computed_gotos.
26583 (computed_goto_p): No longer static.
26584 (make_blocks): Don't set found_computed_goto.
26585 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26586 (make_edges): If make_goto_expr_edges returns true, push bb
26587 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26588 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26589 vector. Record mapping between bbs and OpenMP regions if there
26590 are any, adjust make_gimple_omp_edges caller. Call
26591 handle_abnormal_edges.
26592 (make_abnormal_goto_edges): Remove.
26593 * tree-cfg.h (make_abnormal_goto_edges): Remove.
26594 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26595 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26596 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26597 * internal-fn.def (ABNORMAL_DISPATCHER): New.
26598 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26599 filling *region also set *region_idx to (*region)->entry->index.
26602 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26603 For REGs set ORIGINAL_REGNO.
26605 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
26607 * doc/md.texi: Mention that a target shouldn't implement
26608 vec_widen_(s|u)mul_even/odd pair if it is less efficient
26611 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26613 PR tree-optimization/59594
26614 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26615 a copy of the datarefs vector rather than the vector itself.
26617 2014-01-28 Jason Merrill <jason@redhat.com>
26620 * dwarf2out.c (auto_die): New static.
26621 (gen_type_die_with_usage): Handle C++1y 'auto'.
26622 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26625 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
26628 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26629 (SPEC_X32): Likewise.
26630 (SPEC_64): Likewise.
26631 * config/i386/i386.c (ix86_option_override_internal): Turn off
26632 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26634 (x86_file_start): Output .code16gcc for TARGET_16BIT.
26635 * config/i386/i386.h (TARGET_16BIT): New macro.
26636 (TARGET_16BIT_P): Likewise.
26637 * config/i386/i386.opt: Add m16.
26638 * doc/invoke.texi: Document -m16.
26640 2014-01-28 Jakub Jelinek <jakub@redhat.com>
26642 PR preprocessor/59935
26643 * input.c (location_get_source_line): Bail out on when line number
26644 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26646 2014-01-28 Richard Biener <rguenther@suse.de>
26648 PR tree-optimization/58742
26649 * tree-ssa-forwprop.c (associate_plusminus): Handle
26650 pointer subtraction of the form (T)(P + A) - (T)P.
26652 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26654 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26657 2014-01-28 Richard Biener <rguenther@suse.de>
26660 2014-01-28 Richard Biener <rguenther@suse.de>
26662 PR rtl-optimization/45364
26663 PR rtl-optimization/59890
26664 * var-tracking.c (local_get_addr_clear_given_value): Handle
26665 already cleared slot.
26666 (val_reset): Handle not allocated local_get_addr_cache.
26667 (vt_find_locations): Use post-order on the inverted CFG.
26669 2014-01-28 Richard Biener <rguenther@suse.de>
26671 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26673 2014-01-28 Richard Biener <rguenther@suse.de>
26675 PR rtl-optimization/45364
26676 PR rtl-optimization/59890
26677 * var-tracking.c (local_get_addr_clear_given_value): Handle
26678 already cleared slot.
26679 (val_reset): Handle not allocated local_get_addr_cache.
26680 (vt_find_locations): Use post-order on the inverted CFG.
26682 2014-01-28 Alan Modra <amodra@gmail.com>
26684 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26685 * configure.ac <recursive call for build != host>: Define
26686 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
26687 and LD_FOR_BUILD too.
26688 * configure: Regenerate.
26690 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
26692 * config/i386/i386.c (get_builtin_code_for_version): Separate
26693 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
26694 Broadwell from Haswell.
26696 2014-01-27 Steve Ellcey <sellcey@mips.com>
26698 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26699 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
26700 * config/mips/mips.c (mips_option_override): Change setting
26702 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
26703 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
26704 Change from Mask to Var.
26706 2014-01-27 Jeff Law <law@redhat.com>
26708 * ipa-inline.c (inline_small_functions): Fix typo.
26710 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
26712 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
26713 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
26714 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
26715 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
26716 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
26717 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
26718 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
26719 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
26720 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
26721 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
26722 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
26723 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
26724 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
26725 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
26726 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
26727 (_mm512_storeu_epi64): Ditto.
26728 (_mm512_cmpge_epi32_mask): Ditto.
26729 (_mm512_cmpge_epu32_mask): Ditto.
26730 (_mm512_cmpge_epi64_mask): Ditto.
26731 (_mm512_cmpge_epu64_mask): Ditto.
26732 (_mm512_cmple_epi32_mask): Ditto.
26733 (_mm512_cmple_epu32_mask): Ditto.
26734 (_mm512_cmple_epi64_mask): Ditto.
26735 (_mm512_cmple_epu64_mask): Ditto.
26736 (_mm512_cmplt_epi32_mask): Ditto.
26737 (_mm512_cmplt_epu32_mask): Ditto.
26738 (_mm512_cmplt_epi64_mask): Ditto.
26739 (_mm512_cmplt_epu64_mask): Ditto.
26740 (_mm512_cmpneq_epi32_mask): Ditto.
26741 (_mm512_cmpneq_epu32_mask): Ditto.
26742 (_mm512_cmpneq_epi64_mask): Ditto.
26743 (_mm512_cmpneq_epu64_mask): Ditto.
26744 (_mm512_expand_pd): Ditto.
26745 (_mm512_expand_ps): Ditto.
26746 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
26747 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
26748 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
26749 * config/i386/i386.c (ix86_builtins): Add
26750 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
26751 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
26752 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
26753 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
26754 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
26755 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
26756 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
26757 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
26758 IX86_BUILTIN_PMOVUSQW512_MEM.
26759 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
26760 __builtin_ia32_pmovsqd512mem_mask,
26761 __builtin_ia32_pmovqd512mem_mask,
26762 __builtin_ia32_pmovusqw512mem_mask,
26763 __builtin_ia32_pmovsqw512mem_mask,
26764 __builtin_ia32_pmovqw512mem_mask,
26765 __builtin_ia32_pmovusdw512mem_mask,
26766 __builtin_ia32_pmovsdw512mem_mask,
26767 __builtin_ia32_pmovdw512mem_mask,
26768 __builtin_ia32_pmovqb512mem_mask,
26769 __builtin_ia32_pmovusqb512mem_mask,
26770 __builtin_ia32_pmovsqb512mem_mask,
26771 __builtin_ia32_pmovusdb512mem_mask,
26772 __builtin_ia32_pmovsdb512mem_mask,
26773 __builtin_ia32_pmovdb512mem_mask.
26774 (bdesc_args): Add __builtin_ia32_expanddf512,
26775 __builtin_ia32_expandsf512.
26776 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
26777 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
26778 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
26779 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
26780 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
26781 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
26782 (avx512f_<code>v8div16qi2_mask_store): This.
26783 (avx512f_expand<mode>): New.
26785 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
26787 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
26789 (_mm512_mask_prefetch_i64gather_pd): Ditto.
26790 (_mm512_prefetch_i32scatter_pd): Ditto.
26791 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
26792 (_mm512_prefetch_i64scatter_pd): Ditto.
26793 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
26794 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
26795 (_mm512_mask_prefetch_i64gather_ps): Ditto.
26796 (_mm512_prefetch_i32scatter_ps): Ditto.
26797 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
26798 (_mm512_prefetch_i64scatter_ps): Ditto.
26799 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
26800 * config/i386/i386-builtin-types.def: Define
26801 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
26802 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
26803 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
26804 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
26805 IX86_BUILTIN_SCATTERPFQPD.
26806 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
26807 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
26808 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
26809 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
26810 __builtin_ia32_scatterpfqps.
26811 (ix86_expand_builtin): Expand new built-ins.
26812 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
26813 fix memory access data type.
26814 (*avx512pf_gatherpf<mode>_mask): Ditto.
26815 (*avx512pf_gatherpf<mode>): Ditto.
26816 (avx512pf_scatterpf<mode>): Ditto.
26817 (*avx512pf_scatterpf<mode>_mask): Ditto.
26818 (*avx512pf_scatterpf<mode>): Ditto.
26819 (GATHER_SCATTER_SF_MEM_MODE): New.
26820 (avx512pf_gatherpf<mode>df): Ditto.
26821 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26822 (*avx512pf_scatterpf<mode>df): Ditto.
26824 2014-01-27 Jakub Jelinek <jakub@redhat.com>
26827 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
26828 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
26831 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26833 * common/config/arm/arm-common.c
26834 (arm_rewrite_mcpu): Handle multiple names.
26836 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26838 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26840 * gimple-builder.h (create_gimple_tmp): Delete.
26842 2014-01-27 Christian Bruel <christian.bruel@st.com>
26844 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
26847 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
26849 * config/pa/pa.md (call): Generate indirect long calls to non-local
26850 functions when outputing 32-bit code.
26851 (call_value): Likewise except for special call to buggy powf function.
26853 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
26854 portable runtime and PIC indirect calls.
26855 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
26856 and PIC call sequences. Use ldo instead of blr to set return register
26857 in PIC call sequence.
26859 2014-01-25 Walter Lee <walt@tilera.com>
26861 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26862 avoid clobbering a live register.
26864 2014-01-25 Walter Lee <walt@tilera.com>
26866 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
26867 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
26868 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
26869 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
26871 2014-01-25 Walter Lee <walt@tilera.com>
26873 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
26874 arguments on even registers.
26875 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
26877 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
26878 (BIGGEST_ALIGNMENT): Ditto.
26879 (BIGGEST_FIELD_ALIGNMENT): Ditto.
26881 2014-01-25 Walter Lee <walt@tilera.com>
26883 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
26884 insns before bundling.
26885 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
26887 2014-01-25 Walter Lee <walt@tilera.com>
26889 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
26890 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
26891 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
26893 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26895 * config/mips/constraints.md (kl): Delete.
26896 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
26897 define expands, using...
26898 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
26899 instructions for MIPS16.
26900 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
26901 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
26903 2014-01-25 Walter Lee <walt@tilera.com>
26905 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
26909 2014-01-25 Walter Lee <walt@tilera.com>
26911 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
26912 (TARGET_EXPAND_TO_RTL_HOOK): Define.
26914 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26916 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
26919 2014-01-25 Jakub Jelinek <jakub@redhat.com>
26921 * print-rtl.c (in_call_function_usage): New var.
26922 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
26923 EXPR_LIST mode as mode and not as reg note name.
26925 PR middle-end/59561
26926 * cfgloopmanip.c (copy_loop_info): If
26927 loop->warned_aggressive_loop_optimizations, make sure
26928 the flag is set in target loop too.
26930 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
26932 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
26934 * builtins.def: Likewise.
26935 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
26936 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
26937 * ira.c (ira_setup_eliminable_regset): Likewise.
26938 * omp-low.c (gate_expand_omp): Likewise.
26939 (execute_lower_omp): Likewise.
26940 (diagnose_sb_0): Likewise.
26941 (gate_diagnose_omp_blocks): Likewise.
26942 (simd_clone_clauses_extract): Likewise.
26945 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26947 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
26948 correction for little endian...
26949 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
26952 2014-01-24 Jeff Law <law@redhat.com>
26954 PR tree-optimization/59919
26955 * tree-vrp.c (find_assert_locations_1): Do not register asserts
26956 for non-returning calls.
26958 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
26960 * common/config/aarch64/aarch64-common.c
26961 (aarch64_rewrite_mcpu): Handle multiple names.
26962 * config/aarch64/aarch64.h
26963 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26965 2014-01-24 Dodji Seketeli <dodji@redhat.com>
26967 * input.c (add_file_to_cache_tab): Handle the case where fopen
26970 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
26973 * config/i386/i386.md (pushsf splitter): Get stack adjustment
26974 from push operand if code of push isn't PRE_DEC.
26976 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
26979 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
26980 -mquad-memory-atomic. Update -mquad-memory documentation to say
26981 it is only used for non-atomic loads/stores.
26983 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
26984 -mquad-memory or -mquad-memory-atomic switches.
26986 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
26987 -mquad-memory-atomic to ISA 2.07 support.
26989 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
26990 to separate support of normal quad word memory operations (ldq, stq)
26991 from the atomic quad word memory operations.
26993 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
26994 support to separate non-atomic quad word operations from atomic
26995 quad word operations. Disable non-atomic quad word operations in
26996 little endian mode so that we don't have to swap words after the
26997 load and before the store.
26998 (quad_load_store_p): Add comment about atomic quad word support.
26999 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27000 options printed with -mdebug=reg.
27002 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27003 -mquad-memory-atomic as the test for whether we have quad word
27004 atomic instructions.
27005 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27006 or -mp8-vector are used, allow byte/half-word atomic operations.
27008 * config/rs6000/sync.md (load_lockedti): Insure that the address
27009 is a proper indexed or indirect address for the lqarx instruction.
27010 On little endian systems, swap the hi/lo registers after the lqarx
27012 (load_lockedpti): Use indexed_or_indirect_operand predicate to
27013 insure the address is valid for the lqarx instruction.
27014 (store_conditionalti): Insure that the address is a proper indexed
27015 or indirect address for the stqcrx. instruction. On little endian
27016 systems, swap the hi/lo registers before doing the stqcrx.
27018 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27019 insure the address is valid for the stqcrx. instruction.
27021 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27022 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27023 type of quad memory support is available.
27025 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
27027 PR regression/59915
27028 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27029 there is a danger of looping.
27031 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
27033 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27034 force flag_ira_loop_pressure if set via command line.
27036 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
27038 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27039 (ashr_simd): New builtin handling DI mode.
27040 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27041 (aarch64_sshr_simddi): New match pattern.
27042 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27043 (vshrd_n_s64): Likewise.
27044 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
27046 2014-01-23 Nick Clifton <nickc@redhat.com>
27048 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
27049 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
27050 favour of mcu specific scripts.
27051 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
27054 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
27055 Alex Velenko <Alex.Velenko@arm.com>
27057 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
27058 (vaddv_s16): Likewise.
27059 (vaddv_s32): Likewise.
27060 (vaddv_u8): Likewise.
27061 (vaddv_u16): Likewise.
27062 (vaddv_u32): Likewise.
27063 (vaddvq_s8): Likewise.
27064 (vaddvq_s16): Likewise.
27065 (vaddvq_s32): Likewise.
27066 (vaddvq_s64): Likewise.
27067 (vaddvq_u8): Likewise.
27068 (vaddvq_u16): Likewise.
27069 (vaddvq_u32): Likewise.
27070 (vaddvq_u64): Likewise.
27071 (vaddv_f32): Likewise.
27072 (vaddvq_f32): Likewise.
27073 (vaddvq_f64): Likewise.
27074 (vmaxv_f32): Likewise.
27075 (vmaxv_s8): Likewise.
27076 (vmaxv_s16): Likewise.
27077 (vmaxv_s32): Likewise.
27078 (vmaxv_u8): Likewise.
27079 (vmaxv_u16): Likewise.
27080 (vmaxv_u32): Likewise.
27081 (vmaxvq_f32): Likewise.
27082 (vmaxvq_f64): Likewise.
27083 (vmaxvq_s8): Likewise.
27084 (vmaxvq_s16): Likewise.
27085 (vmaxvq_s32): Likewise.
27086 (vmaxvq_u8): Likewise.
27087 (vmaxvq_u16): Likewise.
27088 (vmaxvq_u32): Likewise.
27089 (vmaxnmv_f32): Likewise.
27090 (vmaxnmvq_f32): Likewise.
27091 (vmaxnmvq_f64): Likewise.
27092 (vminv_f32): Likewise.
27093 (vminv_s8): Likewise.
27094 (vminv_s16): Likewise.
27095 (vminv_s32): Likewise.
27096 (vminv_u8): Likewise.
27097 (vminv_u16): Likewise.
27098 (vminv_u32): Likewise.
27099 (vminvq_f32): Likewise.
27100 (vminvq_f64): Likewise.
27101 (vminvq_s8): Likewise.
27102 (vminvq_s16): Likewise.
27103 (vminvq_s32): Likewise.
27104 (vminvq_u8): Likewise.
27105 (vminvq_u16): Likewise.
27106 (vminvq_u32): Likewise.
27107 (vminnmv_f32): Likewise.
27108 (vminnmvq_f32): Likewise.
27109 (vminnmvq_f64): Likewise.
27111 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
27113 * config/aarch64/aarch64-simd.md
27114 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27115 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27116 (*aarch64_mul3_elt<mode>): Likewise.
27117 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27118 (*aarch64_mul3_elt_to_64v2df): Likewise.
27119 (*aarch64_mla_elt<mode>): Likewise.
27120 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27121 (*aarch64_mls_elt<mode>): Likewise.
27122 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27123 (*aarch64_fma4_elt<mode>): Likewise.
27124 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27125 (*aarch64_fma4_elt_to_64v2df): Likewise.
27126 (*aarch64_fnma4_elt<mode>): Likewise.
27127 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27128 (*aarch64_fnma4_elt_to_64v2df): Likewise.
27129 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27130 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27131 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27132 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27133 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27134 (aarch64_sqdmull_lane<mode>_internal): Likewise.
27135 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27137 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
27139 * config/aarch64/aarch64-simd.md
27140 (aarch64_be_checked_get_lane<mode>): New define_expand.
27141 * config/aarch64/aarch64-simd-builtins.def
27142 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27143 New builtin definition.
27144 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27145 Use new safe be builtin.
27147 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
27149 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27151 (aarch64_be_st1<mode>): Likewise.
27152 (aarch_ld1<VALL:mode>): Define_expand modified.
27153 (aarch_st1<VALL:mode>): Likewise.
27154 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27155 (UNSPEC_ST1): Likewise.
27157 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
27159 * config/microblaze/microblaze.md: Add trap insn and attribute
27161 2014-01-23 Dodji Seketeli <dodji@redhat.com>
27163 PR preprocessor/58580
27164 * input.h (location_get_source_line): Take an additional line_size
27166 (void diagnostics_file_cache_fini): Declare new function.
27167 * input.c (struct fcache): New type.
27168 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27169 New static constants.
27170 (diagnostic_file_cache_init, total_lines_num)
27171 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27172 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27173 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27174 (get_next_line, read_next_line, goto_next_line, read_line_num):
27175 New static function definitions.
27176 (diagnostic_file_cache_fini): New function.
27177 (location_get_source_line): Take an additional output line_len
27178 parameter. Re-write using lookup_or_add_file_to_cache_tab and
27180 * diagnostic.c (diagnostic_finish): Call
27181 diagnostic_file_cache_fini.
27182 (adjust_line): Take an additional input parameter for the length
27183 of the line, rather than calculating it with strlen.
27184 (diagnostic_show_locus): Adjust the use of
27185 location_get_source_line and adjust_line with respect to their new
27186 signature. While displaying a line now, do not stop at the first
27187 null byte. Rather, display the zero byte as a space and keep
27188 going until we reach the size of the line.
27189 * Makefile.in: Add vec.o to OBJS-libcommon
27191 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27192 Ilya Tocar <ilya.tocar@intel.com>
27194 * config/i386/avx512fintrin.h (_mm512_kmov): New.
27195 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27196 (__builtin_ia32_kmov16): Ditto.
27197 * config/i386/i386.md (UNSPEC_KMOV): New.
27200 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27202 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27203 (_mm512_storeu_si512): Ditto.
27205 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
27208 * rtl.h (get_referenced_operands): Declare.
27209 * recog.c (get_referenced_operands): New function.
27210 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27211 operands have been referenced when recording LO_SUM references.
27213 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
27215 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27217 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27219 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27220 Enable for generic and recent AMD targets.
27222 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27224 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27225 ARG_SIZE note when adjustment was eliminated.
27227 2014-01-22 Jeff Law <law@redhat.com>
27229 PR tree-optimization/59597
27230 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27231 in file. Accept new argument REGISTERING and use it to modify
27232 dump output appropriately.
27233 (register_jump_thread): Corresponding changes.
27234 (mark_threaded_blocks): Reinstate code to cancel unprofitable
27235 thread paths involving joiner blocks. Add code to dump cancelled
27236 jump threading paths.
27238 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
27240 PR rtl-optimization/59477
27241 * lra-constraints.c (inherit_in_ebb): Process call for living hard
27242 regs. Update reloads_num and potential_reload_hard_regs for all insns.
27244 2014-01-22 Tom Tromey <tromey@redhat.com>
27246 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27248 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27250 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27252 PR rtl-optimization/59896
27253 * lra-constraints.c (process_alt_operands): Check unused note for
27254 matched operands of insn with no output reloads.
27256 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
27258 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27259 (mips_move_from_gpr_cost): Likewise.
27261 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27263 PR rtl-optimization/59858
27264 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27265 ira_class_hard_regs_num.
27266 (process_alt_operands): Increase reject for dying matched operand.
27268 2014-01-21 Jakub Jelinek <jakub@redhat.com>
27271 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27272 smaller than size, perform several stores or loads and stores
27273 at dst + count - size to store or copy all of size bytes, rather
27274 than just last modesize bytes.
27276 2014-01-20 DJ Delorie <dj@redhat.com>
27278 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27279 that CLOBBERs are REGs before propogating their values.
27281 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
27283 PR middle-end/59789
27284 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27285 (cgraph_inline_failed_type): New function.
27286 * cgraph.h (DEFCIFCODE): Add type.
27287 (cgraph_inline_failed_type_t): New enum.
27288 (cgraph_inline_failed_type): New prototype.
27289 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27290 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27291 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27292 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27293 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27294 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27295 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27296 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27297 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27298 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27299 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27300 OPTIMIZATION_MISMATCH.
27301 * tree-inline.c (expand_call_inline): Emit errors during
27302 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27304 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27307 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27308 mode attribute in insn output.
27310 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
27312 * output.h (output_constant): Delete.
27313 * varasm.c (output_constant): Make private.
27315 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
27317 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27319 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27321 PR middle-end/59860
27322 * tree.h (fold_builtin_strcat): New prototype.
27323 * builtins.c (fold_builtin_strcat): No longer static. Add len
27324 argument, if non-NULL, don't call c_strlen. Optimize
27325 directly into __builtin_memcpy instead of __builtin_strcpy.
27326 (fold_builtin_2): Adjust fold_builtin_strcat caller.
27327 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27329 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27331 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27332 for SImode_address_operand operands, having only a REG argument.
27334 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
27336 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27337 loader name using mbig-endian.
27338 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27340 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27342 * doc/invoke.texi (-march): Clarify documentation for AArch64.
27343 (-mtune): Likewise.
27346 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
27348 * config/aarch64/aarch64-protos.h
27349 (aarch64_cannot_change_mode_class_ptr): Declare.
27350 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27351 aarch64_cannot_change_mode_class_ptr): New.
27352 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27353 backend hook aarch64_cannot_change_mode_class.
27355 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27357 * common/config/aarch64/aarch64-common.c
27358 (aarch64_handle_option): Don't handle any option order logic here.
27359 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27360 selected_cpu, warn on architecture version mismatch.
27361 (aarch64_override_options): Fix parsing order for option strings.
27363 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27364 Iain Sandoe <iain@codesourcery.com>
27367 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27368 warning. Amend comment to reflect current functionality.
27370 2014-01-20 Richard Biener <rguenther@suse.de>
27372 PR middle-end/59860
27373 * builtins.c (fold_builtin_strcat): Remove case better handled
27374 by tree-ssa-strlen.c.
27376 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
27378 * config/aarch64/aarch64.opt
27379 (mcpu, march, mtune): Make case-insensitive.
27381 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27384 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27385 if operands[1] is a REG or ZERO_EXTEND of a REG.
27387 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
27389 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27391 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
27393 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27394 long non-pic millicode calls.
27396 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27398 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27400 2014-01-19 Kito Cheng <kito@0xlab.org>
27402 * builtins.c (expand_movstr): Check movstr expand done or fail.
27404 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27405 H.J. Lu <hongjiu.lu@intel.com>
27408 * config/i386/i386.md (*lea<mode>): Zero-extend return register
27409 to DImode for zero-extended addresses.
27411 2014-01-19 Jakub Jelinek <jakub@redhat.com>
27413 PR rtl-optimization/57763
27414 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27415 on the new indirect jump_insn and increment LABEL_NUSES (label).
27417 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
27421 * config.gcc (x86_archs): New variable.
27422 (x86_64_archs): Likewise.
27423 (x86_cpus): Likewise.
27424 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27425 --with-arch/--with-cpu= options.
27426 Support --with-arch=/--with-cpu={nehalem,westmere,
27427 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27429 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27431 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27432 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
27434 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27436 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27438 2014-01-18 Jakub Jelinek <jakub@redhat.com>
27441 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27442 clear cpp_get_options (parse_in)->warn_unused_macros for
27443 ix86_target_macros_internal with cpp_define.
27445 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
27447 * jump.c (delete_related_insns): Keep (use (insn))s.
27448 * reorg.c (redundant_insn): Check for barriers too.
27450 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27452 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27454 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
27456 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27457 call to $$dyncall when TARGET_LONG_CALLS is true.
27459 2014-01-17 Jeff Law <law@redhat.com>
27461 * ree.c (combine_set_extension): Temporarily disable test for
27462 changing number of hard registers.
27464 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27466 PR middle-end/58125
27467 * ipa-inline-analysis.c (inline_free_summary):
27468 Do not free summary of aliases.
27470 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27472 PR middle-end/59706
27473 * gimplify.c (gimplify_expr): Use create_tmp_var
27474 instead of create_tmp_var_raw. If cond doesn't have
27475 integral type, don't add the IFN_ANNOTATE builtin at all.
27477 2014-01-17 Martin Jambor <mjambor@suse.cz>
27480 * ipa-cp.c (prev_edge_clone): New variable.
27481 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27482 Also resize prev_edge_clone vector.
27483 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27484 (ipcp_edge_removal_hook): New function.
27485 (ipcp_driver): Register ipcp_edge_removal_hook.
27487 2014-01-17 Andrew Pinski <apinski@cavium.com>
27488 Steve Ellcey <sellcey@mips.com>
27491 * config/mips/mips.c (mips_print_operand): Check operand mode instead
27494 2014-01-17 Jeff Law <law@redhat.com>
27496 PR middle-end/57904
27497 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27498 so that pass_ccp runs first.
27500 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27502 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27503 (ix86_adjust_cost): Use !TARGET_XXX.
27504 (do_reorder_for_imul): Likewise.
27505 (swap_top_of_ready_list): Likewise.
27506 (ix86_sched_reorder): Likewise.
27508 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27510 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27511 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
27512 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
27513 (intel_memset): New. Duplicate slm_memset.
27514 (intel_cost): New. Duplicate slm_cost.
27515 (m_INTEL): New macro.
27516 (processor_target_table): Add "intel".
27517 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27518 with PROCESSOR_INTEL for "intel".
27519 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
27520 PROCESSOR_SILVERMONT.
27521 (ix86_issue_rate): Likewise.
27522 (ix86_adjust_cost): Likewise.
27523 (ia32_multipass_dfa_lookahead): Likewise.
27524 (swap_top_of_ready_list): Likewise.
27525 (ix86_sched_reorder): Likewise.
27526 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27527 instead of TARGET_OPT_AGU.
27528 * config/i386/i386.h (TARGET_INTEL): New.
27529 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27530 (processor_type): Add PROCESSOR_INTEL.
27531 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27532 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27534 2014-01-17 Marek Polacek <polacek@redhat.com>
27537 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27540 2014-01-17 Richard Biener <rguenther@suse.de>
27542 PR tree-optimization/46590
27543 * opts.c (default_options_table): Add entries for
27544 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27545 all enabled at -O1 but not for -Og.
27546 * common.opt (fbranch-count-reg): Remove Init(1).
27547 (fmove-loop-invariants): Likewise.
27548 (ftree-pta): Likewise.
27550 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27552 * config/i386/i386.c (ix86_data_alignment): For compatibility with
27553 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27554 decls to at least the GCC 4.8 used alignments.
27557 * tree-nested.c (convert_nonlocal_reference_stmt,
27558 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27559 of GIMPLE_BIND stmts, adjust associated decls.
27561 2014-01-17 Richard Biener <rguenther@suse.de>
27563 PR tree-optimization/46590
27564 * vec.h (vec<>::bseach): New member function implementing
27565 binary search according to C89 bsearch.
27566 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27567 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27568 bitmap pointer again. Make accesses_in_loop a flat array.
27569 (mem_ref_obstack): New global.
27570 (outermost_indep_loop): Adjust for mem_ref->stored changes.
27571 (mark_ref_stored): Likewise.
27572 (ref_indep_loop_p_2): Likewise.
27573 (set_ref_stored_in_loop): New helper function.
27574 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27575 (memref_free): Adjust.
27576 (record_mem_ref_loc): Simplify.
27577 (gather_mem_refs_stmt): Adjust.
27578 (sort_locs_in_loop_postorder_cmp): New function.
27579 (analyze_memory_references): Sort accesses_in_loop after
27580 loop postorder number.
27581 (find_ref_loc_in_loop_cmp): New function.
27582 (for_all_locs_in_loop): Find relevant cluster of locs in
27583 accesses_in_loop and iterate without recursion.
27584 (execute_sm): Avoid uninit warning.
27585 (struct ref_always_accessed): Simplify.
27586 (ref_always_accessed::operator ()): Likewise.
27587 (ref_always_accessed_p): Likewise.
27588 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27589 loop postorder numbers here.
27590 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27593 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27596 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27597 on decls for which assemble_alias has been called.
27599 2014-01-17 Nick Clifton <nickc@redhat.com>
27601 * config/msp430/msp430.opt: (mcpu): New option.
27602 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27603 (msp430_option_override): Parse target_cpu. If the MCU name
27604 matches a generic string, clear target_mcu.
27605 (msp430_attr): Allow numeric interrupt values up to 63.
27606 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27607 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27609 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27611 * config/msp430/msp430.md (popm): Use %J rather than %I.
27612 (addsi3): Use msp430_nonimmediate_operand for operand 2.
27613 (addhi_cy_i): Use immediate_operand for operand 2.
27614 * doc/invoke.texi: Document -mcpu option.
27616 2014-01-17 Richard Biener <rguenther@suse.de>
27618 PR rtl-optimization/38518
27619 * df.h (df_analyze_loop): Declare.
27620 * df-core.c: Include cfgloop.h.
27621 (df_analyze_1): Split out main part of df_analyze.
27622 (df_analyze): Adjust.
27623 (loop_inverted_post_order_compute): New function.
27624 (loop_post_order_compute): Likewise.
27625 (df_analyze_loop): New function avoiding whole-function
27626 postorder computes.
27627 * loop-invariant.c (find_defs): Use df_analyze_loop.
27628 (find_invariants): Adjust.
27629 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27631 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
27633 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27634 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27636 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27638 * ipa-ref.c (ipa_remove_stmt_references): Fix references
27639 traversal when removing references.
27641 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
27644 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27646 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
27648 PR middle-end/56791
27649 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27650 pushing a reload for an autoinc when we had previously reloaded an
27651 inner part of the address.
27653 2014-01-16 Jakub Jelinek <jakub@redhat.com>
27655 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27657 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27658 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27659 when not giving up or versioning for alias only because of
27661 (vect_analyze_data_ref_dependences): Set to true.
27662 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27664 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27665 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27668 PR middle-end/58344
27669 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27672 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27673 operand 0 predicate for gathers, use a new pseudo as subtarget.
27675 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27677 PR middle-end/59609
27678 * lra-constraints.c (process_alt_operands): Add printing debug info.
27679 Check absence of input/output reloads for matched operands too.
27681 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27683 PR rtl-optimization/59835
27684 * ira.c (ira_init_register_move_cost): Increase cost for
27687 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
27689 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
27691 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
27694 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
27695 non-register objects. Use gen_(high/low)part more consistently.
27698 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
27701 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
27702 endian support, remove tests for WORDS_BIG_ENDIAN.
27703 (p8_mfvsrd_3_<mode>): Likewise.
27704 (reload_gpr_from_vsx<mode>): Likewise.
27705 (reload_gpr_from_vsxsf): Likewise.
27706 (p8_mfvsrd_4_disf): Likewise.
27708 2014-01-16 Richard Biener <rguenther@suse.de>
27710 PR rtl-optimization/46590
27711 * lcm.c (compute_antinout_edge): Use postorder iteration.
27712 (compute_laterin): Use inverted postorder iteration.
27714 2014-01-16 Nick Clifton <nickc@redhat.com>
27716 PR middle-end/28865
27717 * varasm.c (output_constant): Return the number of bytes actually
27719 (output_constructor_array_range): Update the field size with the
27720 number of bytes emitted by output_constant.
27721 (output_constructor_regular_field): Likewise. Also do not
27722 complain if the total number of bytes emitted is now greater
27723 than the expected fieldpos.
27724 * output.h (output_constant): Update prototype and descriptive comment.
27726 2014-01-16 Marek Polacek <polacek@redhat.com>
27728 PR middle-end/59827
27729 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
27730 it is error_mark_node.
27732 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
27734 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
27735 VALID_AVX256_REG_OR_OI_MODE.
27737 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
27739 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
27740 current procedure should be profiled.
27742 2014-01-15 Andrew Pinski <apinski@cavium.com>
27744 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
27745 of moving from/to the STACK_REG register class.
27747 2014-01-15 Richard Henderson <rth@redhat.com>
27750 * reginfo.c (global_regs_decl): Globalize.
27751 * rtl.h (global_regs_decl): Declare.
27752 * ira.c (do_reload): Diagnose frame_pointer_needed and it
27753 reserved via global_regs.
27755 2014-01-15 Teresa Johnson <tejohnson@google.com>
27757 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
27759 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
27761 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
27762 and vmulosh rather than call gen_vec_widen_smult_*.
27763 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
27764 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
27765 (vec_widen_smult_even_v16qi): Likewise.
27766 (vec_widen_umult_even_v8hi): Likewise.
27767 (vec_widen_smult_even_v8hi): Likewise.
27768 (vec_widen_umult_odd_v16qi): Likewise.
27769 (vec_widen_smult_odd_v16qi): Likewise.
27770 (vec_widen_umult_odd_v8hi): Likewise.
27771 (vec_widen_smult_odd_v8hi): Likewise.
27772 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
27773 vmuloub rather than call gen_vec_widen_umult_*.
27774 (vec_widen_umult_lo_v16qi): Likewise.
27775 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
27776 vmulosb rather than call gen_vec_widen_smult_*.
27777 (vec_widen_smult_lo_v16qi): Likewise.
27778 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
27779 rather than call gen_vec_widen_umult_*.
27780 (vec_widen_umult_lo_v8hi): Likewise.
27781 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
27782 rather than call gen_vec_widen_smult_*.
27783 (vec_widen_smult_lo_v8hi): Likewise.
27785 2014-01-15 Jeff Law <law@redhat.com>
27787 PR tree-optimization/59747
27788 * ree.c (find_and_remove_re): Properly handle case where a second
27789 eliminated extension requires widening a copy created for elimination
27790 of a prior extension.
27791 (combine_set_extension): Ensure that the number of hard regs needed
27792 for a destination register does not change when we widen it.
27794 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
27796 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
27797 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
27798 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
27799 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
27800 (avr-*-rtems*): Likewise.
27801 (bfin*-rtems*): Likewise.
27802 (moxie-*-rtems*): Likewise.
27803 (h8300-*-rtems*): Likewise.
27804 (i[34567]86-*-rtems*): Likewise.
27805 (lm32-*-rtems*): Likewise.
27806 (m32r-*-rtems*): Likewise.
27807 (m68k-*-rtems*): Likewise.
27808 (microblaze*-*-rtems*): Likewise.
27809 (mips*-*-rtems*): Likewise.
27810 (powerpc-*-rtems*): Likewise.
27811 (sh-*-rtems*): Likewise.
27812 (sparc-*-rtems*): Likewise.
27813 (sparc64-*-rtems*): Likewise.
27814 (v850-*-rtems*): Likewise.
27815 (m32c-*-rtems*): Likewise.
27817 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
27819 PR rtl-optimization/59511
27820 * ira.c (ira_init_register_move_cost): Use memory costs for some
27821 cases of register move cost calculations.
27822 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
27823 instead of BB frequency.
27824 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
27825 * lra-assigns.c (find_hard_regno_for): Ditto.
27827 2014-01-15 Richard Biener <rguenther@suse.de>
27829 PR tree-optimization/59822
27830 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
27831 (vectorizable_load): Use it to hoist defs of uses of invariant
27832 loads out of the loop.
27834 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
27835 Kugan Vivekanandarajah <kuganv@linaro.org>
27838 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
27841 2014-01-15 Richard Biener <rguenther@suse.de>
27843 PR rtl-optimization/59802
27844 * lcm.c (compute_available): Use inverted postorder to seed
27845 the initial worklist.
27847 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27850 * config/s390/s390.c (s390_preferred_reload_class): Don't return
27851 ADDR_REGS for invalid symrefs in non-PIC code.
27853 2014-01-15 Jakub Jelinek <jakub@redhat.com>
27856 * builtins.c (determine_block_size): Initialize *probable_max_size
27857 even if len_rtx is CONST_INT.
27859 2014-01-14 Andrew Pinski <apinski@cavium.com>
27861 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
27862 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
27863 (cortexa53_tunings): Likewise.
27864 (aarch64_sched_issue_rate): New function.
27865 (TARGET_SCHED_ISSUE_RATE): Define.
27867 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27869 * ira-costs.c (find_costs_and_classes): Add missed
27870 ira_init_register_move_cost_if_necessary.
27872 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27875 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
27877 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
27880 * config/i386/i386.c (type_natural_mode): Add a bool parameter
27881 to indicate if type is used for function return value. Warn ABI
27882 change if the vector mode isn't available for function return value.
27883 (ix86_function_arg_advance): Pass false to type_natural_mode.
27884 (ix86_function_arg): Likewise.
27885 (ix86_gimplify_va_arg): Likewise.
27886 (function_arg_32): Don't warn ABI change.
27887 (ix86_function_value): Pass true to type_natural_mode.
27888 (ix86_return_in_memory): Likewise.
27889 (ix86_struct_value_rtx): Removed.
27890 (TARGET_STRUCT_VALUE_RTX): Likewise.
27892 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27894 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
27895 converting a conditional jump into a conditional return.
27897 2014-01-14 Richard Biener <rguenther@suse.de>
27899 PR tree-optimization/58921
27900 PR tree-optimization/59006
27901 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
27902 hoisting invariant stmts.
27903 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
27904 invariant loads on the preheader edge if possible.
27906 2014-01-14 Joey Ye <joey.ye@arm.com>
27908 * doc/plugin.texi (Building GCC plugins): Update to C++.
27910 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
27912 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
27913 (_mm_rcp28_round_ss): Ditto.
27914 (_mm_rsqrt28_round_sd): Ditto.
27915 (_mm_rsqrt28_round_ss): Ditto.
27916 (_mm_rcp28_sd): Ditto.
27917 (_mm_rcp28_ss): Ditto.
27918 (_mm_rsqrt28_sd): Ditto.
27919 (_mm_rsqrt28_ss): Ditto.
27920 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
27921 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
27922 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
27923 (IX86_BUILTIN_RCP28SD): Ditto.
27924 (IX86_BUILTIN_RCP28SS): Ditto.
27925 (IX86_BUILTIN_RSQRT28SD): Ditto.
27926 (IX86_BUILTIN_RSQRT28SS): Ditto.
27927 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
27928 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
27929 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
27930 (ix86_expand_special_args_builtin): Expand new FTYPE.
27931 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
27932 (srcp14<mode>): Make insn unary.
27933 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
27934 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
27935 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
27936 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
27937 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
27938 Fix rounding: make it SAE only.
27939 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27941 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27943 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
27944 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
27945 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
27946 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
27947 (round_saeonly_mask_scalar_operand4): Ditto.
27948 (round_saeonly_mask_scalar_op3): Ditto.
27949 (round_saeonly_mask_scalar_op4): Ditto.
27951 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27953 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27954 Implement -maltivec=be for vec_insert and vec_extract.
27956 2014-01-10 DJ Delorie <dj@redhat.com>
27958 * config/msp430/msp430.md (call_internal): Don't allow memory
27959 references with SP as the base register.
27960 (call_value_internal): Likewise.
27961 * config/msp430/constraints.md (Yc): New. For memory references
27962 that don't use SP as a base register.
27964 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
27965 "an integer without a # prefix"
27966 * config/msp430/msp430.md (epilogue_helper): Use it.
27968 2014-01-13 Jakub Jelinek <jakub@redhat.com>
27971 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
27972 AVX512F gather builtins.
27973 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
27974 on gather decls with INTEGER_TYPE masktype.
27975 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
27976 directly into the builtin rather than hoisting it before loop.
27978 PR tree-optimization/59387
27979 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
27980 (scev_const_prop): If folded_casts and type has undefined overflow,
27981 use force_gimple_operand instead of force_gimple_operand_gsi and
27982 for each added stmt if it is assign with
27983 arith_code_with_undefined_signed_overflow, call
27984 rewrite_to_defined_overflow.
27985 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
27986 gimple-fold.h instead.
27987 (arith_code_with_undefined_signed_overflow,
27988 rewrite_to_defined_overflow): Moved to ...
27989 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
27990 rewrite_to_defined_overflow): ... here. No longer static.
27991 Include gimplify-me.h.
27992 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
27993 rewrite_to_defined_overflow): New prototypes.
27995 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27997 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
27999 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
28001 * builtins.c (get_object_alignment_2): Minor tweak.
28002 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28004 2014-01-13 Christian Bruel <christian.bruel@st.com>
28006 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28007 optimized non constant lengths.
28009 2014-01-13 Jakub Jelinek <jakub@redhat.com>
28012 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28013 load as __atomic_load_N if possible.
28015 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28017 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28019 (rs6000_expand_builtin): Adjust call.
28021 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28024 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28025 * config/rs6000/rs6000.c: Include target-globals.h.
28026 (rs6000_set_current_function): Instead of doing target_reinit
28027 unconditionally, use save_target_globals_default_opts and
28028 restore_target_globals.
28030 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28032 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28033 (rs6000_expand_builtin): Handle mffs and mtfsf.
28034 (rs6000_init_builtins): Define mffs and mtfsf.
28035 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28036 (rs6000_mffs): New pattern.
28037 (rs6000_mtfsf): New pattern.
28039 2014-01-11 Bin Cheng <bin.cheng@arm.com>
28041 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28042 Start narrowing with START. Apply candidate-use pair
28043 and check overall cost in narrowing.
28044 (iv_ca_prune): Pass new argument.
28046 2014-01-10 Jeff Law <law@redhat.com>
28048 PR middle-end/59743
28049 * ree.c (combine_reaching_defs): Ensure the defining statement
28050 occurs before the extension when optimizing extensions with
28051 different source and destination hard registers.
28053 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
28056 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
28057 vtables into the type inheritance graph.
28059 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28061 PR rtl-optimization/59754
28062 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
28063 modes in the REGNO != REGNO case.
28065 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28067 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
28069 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28071 PR tree-optimization/59745
28072 * tree-predcom.c (tree_predictive_commoning_loop): Call
28073 free_affine_expand_cache if giving up because components is NULL.
28075 * target-globals.c (save_target_globals): Allocate < 4KB structs using
28076 GC in payload of target_globals struct instead of allocating them on
28077 the heap and the larger structs separately using GC.
28078 * target-globals.h (struct target_globals): Make regs, hard_regs,
28079 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
28080 of GTY((skip)) and change type to void *.
28081 (reset_target_globals): Cast loads from those fields to corresponding
28084 2014-01-10 Steve Ellcey <sellcey@mips.com>
28087 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
28088 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
28089 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
28091 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
28094 * aarch64-modes.def (CC_Zmode): New flags mode.
28095 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
28096 represents an equality.
28097 (aarch64_get_condition_code): Handle CC_Zmode.
28098 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28100 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28102 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28103 extraction in good case.
28105 2014-01-10 Richard Biener <rguenther@suse.de>
28107 PR tree-optimization/59374
28108 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28109 checking after SLP discovery. Mark stmts not participating
28110 in any SLP instance properly.
28112 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28114 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28115 when handling a SET rtx.
28117 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28119 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28120 (cortex-a57): Likewise.
28121 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28123 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28125 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28126 non-iwmmxt builtins.
28128 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
28132 * ipa-devirt.c record_target_from_binfo): Take as argument
28133 stack of binfos and lookup matching one for virtual inheritance.
28134 (possible_polymorphic_call_targets_1): Update.
28136 2014-01-10 Huacai Chen <chenhc@lemote.com>
28138 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28139 kernel strings for Loongson-2E/2F/3A.
28141 2014-01-10 Jakub Jelinek <jakub@redhat.com>
28143 PR middle-end/59670
28144 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28145 is_gimple_call before calling gimple_call_internal_p.
28147 2014-01-09 Steve Ellcey <sellcey@mips.com>
28149 * Makefile.in (TREE_FLOW_H): Remove.
28150 (TREE_SSA_H): Add file names from tree-flow.h.
28151 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28152 * tree.h: Remove tree-flow.h reference.
28153 * hash-table.h: Remove tree-flow.h reference.
28154 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28155 reference with tree-ssa-loop.h.
28157 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28159 * doc/invoke.texi: Add -maltivec={be,le} options, and document
28160 default element-order behavior for -maltivec.
28161 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28162 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28163 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28164 when targeting big endian, at least for now.
28165 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28167 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28169 PR middle-end/47735
28170 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28171 var satisfies use_register_for_decl, just take into account type
28172 alignment, rather than decl alignment.
28174 PR tree-optimization/59622
28175 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
28176 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28177 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28178 Don't devirtualize for inplace at all. For targets.length () == 1,
28179 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28181 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28183 * config/i386/i386.md (cpu): Remove the unused btver1.
28185 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28187 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28189 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28192 * tree-core.h (struct target_globals): New forward declaration.
28193 (struct tree_target_option): Add globals field.
28194 * tree.h (TREE_TARGET_GLOBALS): Define.
28195 (prepare_target_option_nodes_for_pch): New prototype.
28196 * target-globals.h (struct target_globals): Define even if
28197 !SWITCHABLE_TARGET.
28198 * tree.c (prepare_target_option_node_for_pch,
28199 prepare_target_option_nodes_for_pch): New functions.
28200 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28201 * config/i386/i386.c: Include target-globals.h.
28202 (ix86_set_current_function): Instead of doing target_reinit
28203 unconditionally, use save_target_globals_default_opts and
28204 restore_target_globals.
28206 2014-01-09 Richard Biener <rguenther@suse.de>
28208 PR tree-optimization/59715
28209 * tree-cfg.h (split_critical_edges): Declare.
28210 * tree-cfg.c (split_critical_edges): Export.
28211 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28213 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
28215 * cfgexpand.c (expand_stack_vars): Optionally disable
28216 asan stack protection.
28217 (expand_used_vars): Likewise.
28218 (partition_stack_vars): Likewise.
28219 * asan.c (asan_emit_stack_protection): Optionally disable
28220 after return stack usage.
28221 (instrument_derefs): Optionally disable memory access instrumentation.
28222 (instrument_builtin_call): Likewise.
28223 (instrument_strlen_call): Likewise.
28224 (asan_protect_global): Optionally disable global variables protection.
28225 * doc/invoke.texi: Added doc for new options.
28226 * params.def: Added new options.
28227 * params.h: Likewise.
28229 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28231 PR rtl-optimization/59724
28232 * ifcvt.c (cond_exec_process_if_block): Don't call
28233 flow_find_head_matching_sequence with 0 longest_match.
28234 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28235 non-active insns if !stop_after.
28236 (try_head_merge_bb): Revert 2014-01-07 changes.
28238 2014-01-08 Jeff Law <law@redhat.com>
28240 * ree.c (get_sub_rtx): New function, extracted from...
28241 (merge_def_and_ext): Here.
28242 (combine_reaching_defs): Use get_sub_rtx.
28244 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
28246 * cgraph.h (varpool_variable_node): Do not choke on null node.
28248 2014-01-08 Catherine Moore <clm@codesourcery.com>
28250 * config/mips/mips.md (simple_return): Attempt to use JRC
28252 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28254 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28256 PR rtl-optimization/59137
28257 * reorg.c (steal_delay_list_from_target): Call update_block for
28259 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28261 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28263 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28264 two duplicate entries.
28266 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28269 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
28271 * config/mips/mips.c (mips_truncated_op_cost): New function.
28272 (mips_rtx_costs): Adjust test for BADDU.
28273 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28275 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
28277 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28278 (*baddu_si): ...this new pattern.
28280 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28283 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28285 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
28287 PR middle-end/57748
28288 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28290 (expand_expr, expand_normal): Adjust.
28291 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28292 inner_reference_p. Use inner_reference_p to expand inner references.
28293 (store_expr): Adjust.
28294 * cfgexpand.c (expand_call_stmt): Adjust.
28296 2014-01-08 Rong Xu <xur@google.com>
28298 * gcov-io.c (gcov_var): Move from gcov-io.h.
28299 (gcov_position): Ditto.
28300 (gcov_is_error): Ditto.
28301 (gcov_rewrite): Ditto.
28302 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28303 only part to libgcc/libgcov.h.
28305 2014-01-08 Marek Polacek <polacek@redhat.com>
28307 PR middle-end/59669
28308 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28310 2014-01-08 Marek Polacek <polacek@redhat.com>
28313 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28315 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28317 PR rtl-optimization/59649
28318 * stor-layout.c (get_mode_bounds): For BImode return
28319 0 and STORE_FLAG_VALUE.
28321 2014-01-08 Richard Biener <rguenther@suse.de>
28323 PR middle-end/59630
28324 * gimple.h (is_gimple_builtin_call): Remove.
28325 (gimple_builtin_call_types_compatible_p): New.
28326 (gimple_call_builtin_p): New overload.
28327 * gimple.c (is_gimple_builtin_call): Remove.
28328 (validate_call): Rename to ...
28329 (gimple_builtin_call_types_compatible_p): ... this and export. Also
28330 check return types.
28331 (validate_type): New static function.
28332 (gimple_call_builtin_p): New overload and adjust.
28333 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28334 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
28335 (gimple_fold_stmt_to_constant_1): Likewise.
28336 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28338 2014-01-08 Richard Biener <rguenther@suse.de>
28340 PR middle-end/59471
28341 * gimplify.c (gimplify_expr): Gimplify register-register type
28342 VIEW_CONVERT_EXPRs to separate stmts.
28344 2014-01-07 Jeff Law <law@redhat.com>
28346 PR middle-end/53623
28347 * ree.c (combine_set_extension): Handle case where source
28348 and destination registers in an extension insn are different.
28349 (combine_reaching_defs): Allow source and destination registers
28350 in extension to be different under limited circumstances.
28351 (add_removable_extension): Remove restriction that the
28352 source and destination registers in the extension are the same.
28353 (find_and_remove_re): Emit a copy from the extension's
28354 destination to its source after the defining insn if
28355 the source and destination registers are different.
28357 PR middle-end/59285
28358 * ifcvt.c (merge_if_block): If we are merging a block with more than
28359 one successor with a block with no successors, remove any BARRIER
28360 after the second block.
28362 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
28364 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28366 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
28369 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28370 for 14-bit register offsets when INT14_OK_STRICT is false.
28372 2014-01-07 Roland Stigge <stigge@antcom.de>
28373 Michael Meissner <meissner@linux.vnet.ibm.com>
28376 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28377 Only check TFmode for SPE constants. Don't check TImode or TDmode.
28379 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
28381 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28384 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
28386 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28387 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28388 rtx is const0_rtx or not.
28390 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
28393 * target-globals.c (save_target_globals): Remove this_fn_optab
28395 * toplev.c: Include optabs.h.
28396 (target_reinit): Temporarily restore the global options if another
28397 set of options are in force.
28399 2014-01-07 Jakub Jelinek <jakub@redhat.com>
28401 PR rtl-optimization/58668
28402 * cfgcleanup.c (flow_find_cross_jump): Don't count
28403 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
28404 to determine what is counted.
28405 (flow_find_head_matching_sequence): Use active_insn_p to determine
28407 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28409 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28410 determine what is counted.
28412 PR tree-optimization/59643
28413 * tree-predcom.c (split_data_refs_to_components): If one dr is
28414 read and one write, determine_offset fails and the write isn't
28415 in the bad component, just put the read into the bad component.
28417 2014-01-07 Mike Stump <mikestump@comcast.net>
28418 Jakub Jelinek <jakub@redhat.com>
28421 * tree-core.h (struct tree_optimization_option): Change optabs
28422 type from unsigned char * to void *.
28423 * optabs.c (init_tree_optimization_optabs): Adjust
28424 TREE_OPTIMIZATION_OPTABS initialization.
28426 2014-01-06 Jakub Jelinek <jakub@redhat.com>
28429 * config/i386/i386.h (struct machine_function): Add
28430 no_drap_save_restore field.
28431 * config/i386/i386.c (ix86_save_reg): Use
28432 !cfun->machine->no_drap_save_restore instead of
28433 crtl->stack_realign_needed.
28434 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28435 this function clears frame_pointer_needed. Set
28436 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28437 and DRAP reg is needed.
28439 2014-01-06 Marek Polacek <polacek@redhat.com>
28442 * doc/implement-c.texi: Mention that other integer types are
28443 permitted as bit-field types in strictly conforming mode.
28445 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
28447 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28448 is newly allocated.
28450 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
28452 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28454 2014-01-06 Martin Jambor <mjambor@suse.cz>
28457 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28459 * ipa-prop.c (ipa_print_node_params): Fix indentation.
28461 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
28465 * var-tracking.c (add_stores): Preserve the value of the source even if
28466 we don't record the store.
28468 2014-01-06 Terry Guo <terry.guo@arm.com>
28470 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28472 2014-01-05 Iain Sandoe <iain@codesourcery.com>
28475 * config/darwin.c (darwin_function_section): Adjust return values to
28476 correspond to optimisation changes made in r206070.
28478 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
28480 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28481 from prefetch_block tune setting.
28482 (nocona_cost): Correct size of prefetch block to 64.
28484 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
28486 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28487 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28488 used to save the static chain register in the computation of the offset
28489 from which the FP registers need to be restored.
28491 2014-01-04 Jakub Jelinek <jakub@redhat.com>
28493 PR tree-optimization/59519
28494 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28495 ICE if get_current_def (current_new_name) is already non-NULL, as long
28496 as it is a phi result of some other phi in *new_exit_bb that has
28499 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28500 or vmovdqu* for misaligned_operand.
28501 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28502 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28503 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28504 aligned_mem for AVX512F masked aligned load and store builtins and for
28505 non-temporal moves.
28507 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
28509 PR tree-optimization/59651
28510 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28511 Address range for negative step should be added by TYPE_SIZE_UNIT.
28513 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
28515 * config/m68k/m68k.c (handle_move_double): Handle pushes with
28516 overlapping registers also for registers other than the stack pointer.
28518 2014-01-03 Marek Polacek <polacek@redhat.com>
28521 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28524 2014-01-03 Jakub Jelinek <jakub@redhat.com>
28527 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28530 * config/i386/i386.md (MODE_SIZE): New mode attribute.
28531 (push splitter): Use <P:MODE_SIZE> instead of
28532 GET_MODE_SIZE (<P:MODE>mode).
28533 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28534 (mov -1, reg peephole2): Likewise.
28535 * config/i386/sse.md (*mov<mode>_internal,
28536 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28537 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28538 *<code><mode>3, *andnot<mode>3<mask_name>,
28539 <mask_codefor><code><mode>3<mask_name>): Likewise.
28540 * config/i386/subst.md (mask_mode512bit_condition,
28541 sd_mask_mode512bit_condition): Likewise.
28543 2014-01-02 Xinliang David Li <davidxl@google.com>
28545 PR tree-optimization/59303
28546 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28547 (dump_predicates): Better output format.
28548 (pred_equal_p): New function.
28549 (is_neq_relop_p): Ditto.
28550 (is_neq_zero_form_p): Ditto.
28551 (pred_expr_equal_p): Ditto.
28552 (pred_neg_p): Ditto.
28553 (simplify_pred): Ditto.
28554 (simplify_preds_2): Ditto.
28555 (simplify_preds_3): Ditto.
28556 (simplify_preds_4): Ditto.
28557 (simplify_preds): Ditto.
28558 (push_pred): Ditto.
28559 (push_to_worklist): Ditto.
28560 (get_pred_info_from_cmp): Ditto.
28561 (is_degenerated_phi): Ditto.
28562 (normalize_one_pred_1): Ditto.
28563 (normalize_one_pred): Ditto.
28564 (normalize_one_pred_chain): Ditto.
28565 (normalize_preds): Ditto.
28566 (normalize_cond_1): Remove function.
28567 (normalize_cond): Ditto.
28568 (is_gcond_subset_of): Ditto.
28569 (is_subset_of_any): Ditto.
28570 (is_or_set_subset_of): Ditto.
28571 (is_and_set_subset_of): Ditto.
28572 (is_norm_cond_subset_of): Ditto.
28573 (pred_chain_length_cmp): Ditto.
28574 (convert_control_dep_chain_into_preds): Type change.
28575 (find_predicates): Ditto.
28576 (find_def_preds): Ditto.
28577 (destroy_predicates_vecs): Ditto.
28578 (find_matching_predicates_in_rest_chains): Ditto.
28579 (use_pred_not_overlap_with_undef_path_pred): Ditto.
28580 (is_pred_expr_subset): Ditto.
28581 (is_pred_chain_subset_of): Ditto.
28582 (is_included_in): Ditto.
28583 (is_superset_of): Ditto.
28585 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28587 Update copyright years.
28589 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28591 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28592 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28593 config/arc/arc.md, config/arc/arc.opt,
28594 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28595 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28596 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28597 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28598 config/linux-protos.h, config/linux.c, config/winnt-c.c,
28599 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28600 vtable-verify.c, vtable-verify.h: Use the standard form for the
28603 2014-01-02 Tobias Burnus <burnus@net-b.de>
28605 * gcc.c (process_command): Update copyright notice dates.
28606 * gcov-dump.c: Ditto.
28608 * doc/cpp.texi: Bump @copying's copyright year.
28609 * doc/cppinternals.texi: Ditto.
28610 * doc/gcc.texi: Ditto.
28611 * doc/gccint.texi: Ditto.
28612 * doc/gcov.texi: Ditto.
28613 * doc/install.texi: Ditto.
28614 * doc/invoke.texi: Ditto.
28616 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28618 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28620 2014-01-01 Jakub Jelinek <jakub@redhat.com>
28622 * config/i386/sse.md (*mov<mode>_internal): Guard
28623 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28625 PR rtl-optimization/59647
28626 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28627 new_rtx into UNSIGNED_FLOAT rtxes.
28629 Copyright (C) 2014 Free Software Foundation, Inc.
28631 Copying and distribution of this file, with or without modification,
28632 are permitted in any medium without royalty provided the copyright
28633 notice and this notice are preserved.