1 2014-09-01 Olivier Hainque <hainque@adacore.com>
3 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
6 2014-09-01 Jakub Jelinek <jakub@redhat.com>
8 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
9 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
10 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
12 2014-09-01 Yury Gribov <y.gribov@samsung.com>
16 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
17 (build_check_stmt): Likewise.
18 (instrument_strlen_call): Likewise.
19 (asan_expand_check_ifn): Likewise and fix types.
20 (maybe_cast_to_ptrmode): New function.
22 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
26 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
28 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
30 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
32 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
33 prefix to function labels when generating fast indirect calls.
35 2014-08-30 David Malcolm <dmalcolm@redhat.com>
39 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
40 param back from rtx_insn * to rtx. Rename param from "label" to
41 "label_or_return", reintroducing "label" as an rtx_insn * after
42 we've ensured it's not a RETURN.
43 (first_active_target_insn): Likewise for return type and param;
44 add a checked cast to rtx_insn * once we've ensured "insn" is not
46 (steal_delay_list_from_target): Convert param "pnew_thread" back
47 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
49 (own_thread_p): Convert param "thread" back from an rtx_insn * to
50 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
51 cast once we've established we're not dealing with a RETURN,
52 renaming subsequent uses of "thread" to "thread_insn".
53 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
55 (follow_jumps): Convert return type and param "label" from
56 rtx_insn * back to rtx. Move initialization of "value" to after
57 the handling for ANY_RETURN_P, adding a checked cast there to
58 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
59 rename to "this_label_or_return", reintroducing "this_label" as
60 an rtx_insn * once we've handled the case where it could be an
62 (fill_slots_from_thread): Rename param "thread" to
63 "thread_or_return", converting from an rtx_insn * back to an rtx.
64 Reintroduce name "thread" as an rtx_insn * local with a checked
65 cast once we've handled the case of it being an ANY_RETURN_P.
66 Convert local "new_thread" from an rtx_insn * back to an rtx.
67 Add a checked cast when assigning to "trial" from "new_thread".
68 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
69 checked cast to rtx_insn * from "new_thread" when invoking
71 (fill_eager_delay_slots): Convert locals "target_label",
72 "insn_at_target" from rtx_insn * back to rtx.
73 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
74 (relax_delay_slots): Convert locals "trial", "target_label" from
75 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
76 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
77 invoking update_block.
78 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
79 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
81 * resource.h (mark_target_live_regs): Undo erroneous conversion
82 of second param of r214693, converting it back from rtx_insn * to
83 rtx, since it could be a RETURN.
85 * resource.c (find_dead_or_set_registers): Similarly, convert
86 param "jump_target" back from an rtx_insn ** to an rtx *, as we
87 could be writing back a RETURN. Rename local rtx_insn * "next" to
88 "next_insn", and introduce "lab_or_return" as a local rtx,
89 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
90 (mark_target_live_regs): Undo erroneous conversion
91 of second param of r214693, converting it back from rtx_insn * to
92 rtx, since it could be a RETURN. Rename it from "target" to
93 "target_maybe_return", reintroducing the name "target" as a local
94 rtx_insn * with a checked cast, after we've handled the case of
97 2014-08-29 DJ Delorie <dj@redhat.com>
99 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
100 pointer size up to a power of two.
101 * defaults.h (DWARF2_ADDR_SIZE): Round up.
102 (POINTER_SIZE_UNITS): New, rounded up value.
103 * dwarf2asm.c (size_of_encoded_value): Use it.
104 (dw2_output_indirect_constant_1): Likewise.
105 * expmed.c (init_expmed_one_conv): We now know the sizes of
107 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
108 * optabs.c (expand_float): Use precision, not size.
109 (expand_fix): Likewise.
110 * simplify-rtx (simplify_unary_operation_1): Likewise.
111 * tree-dfa.c (get_ref_base_and_extent): Likewise.
112 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
113 (default_assemble_integer) Likewise.
114 (dump_tm_clone_pairs): Likewise.
115 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
116 * var-tracking.c (adjust_mems): Allow partial-int modes also.
117 (prepare_call_arguments): Likewise.
118 * stor-layout.c (finalize_type_size): Preserve precision.
119 (layout_type): Use precision, not size.
121 * expr.c (convert_move): If the target has an explicit converter,
124 2014-08-29 David Malcolm <dmalcolm@redhat.com>
126 * gdbinit.in: Skip various inline functions in rtl.h when
129 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
132 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
134 2014-08-29 Richard Biener <rguenther@suse.de>
136 PR tree-optimization/62291
137 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
138 exactly the vector size needed and use quick_push.
139 (phi_translate_1): Adjust comment.
140 (valid_in_sets): Remove block argument and remove pointless
142 (dependent_clean): Adjust for removal of block argument.
144 (compute_antic_aux): Likewise.
145 (compute_partial_antic_aux): Likewise.
147 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
149 Anna Tikhonova <anna.tikhonova@intel.com>
150 Ilya Tocar <ilya.tocar@intel.com>
151 Andrey Turetskiy <andrey.turetskiy@intel.com>
152 Ilya Verbin <ilya.verbin@intel.com>
153 Kirill Yukhin <kirill.yukhin@intel.com>
154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
157 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
158 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
159 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
160 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
162 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
164 Anna Tikhonova <anna.tikhonova@intel.com>
165 Ilya Tocar <ilya.tocar@intel.com>
166 Andrey Turetskiy <andrey.turetskiy@intel.com>
167 Ilya Verbin <ilya.verbin@intel.com>
168 Kirill Yukhin <kirill.yukhin@intel.com>
169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
171 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
173 (define_mode_iterator VI4_128_8_256): New.
174 (define_mode_iterator VI2_128_4_256): Ditto.
175 (define_mode_iterator PMOV_DST_MODE): Rename into
176 (define_mode_iterator PMOV_DST_MODE_1): this.
177 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
178 Use PMOV_DST_MODE_1 mode iterator.
179 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
181 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
183 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
184 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
185 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
186 (define_mode_iterator PMOV_DST_MODE_2): New.
187 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
188 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
189 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
191 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
192 (define_mode_attr pmov_dst_3): Ditto.
193 (define_mode_attr pmov_dst_zeroed_3): Ditto.
194 (define_mode_attr pmov_suff_3): Ditto.
195 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
196 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
197 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
198 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
199 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
200 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
201 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
202 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
203 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
204 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
205 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
206 (define_mode_attr pmov_dst_4): Ditto.
207 (define_mode_attr pmov_dst_zeroed_4): Ditto.
208 (define_mode_attr pmov_suff_4): Ditto.
209 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
210 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
211 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
212 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
213 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
214 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
215 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
216 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
217 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
218 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
219 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
221 2014-08-29 Richard Biener <rguenther@suse.de>
223 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
224 NON_LVALUE_EXPR in gimple.
226 2014-08-29 Richard Biener <rguenther@suse.de>
229 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
230 from previous refactoring.
231 (gimple_fold_builtin_strncpy): Likewise.
233 2014-08-29 David Malcolm <dmalcolm@redhat.com>
236 * function.c (assign_parm_setup_reg): Remove erroneous checked
237 cast to rtx_insn * on result of gen_extend_insn in favor of
238 introducing a new local rtx "pat".
240 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
242 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
244 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
246 2014-08-28 David Malcolm <dmalcolm@redhat.com>
248 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
249 (next_insn): Likewise.
250 * emit-rtl.c (next_insn): Likewise.
251 (previous_insn): Likewise.
252 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
253 "insn" and "next" from rtx to rtx_insn *.
254 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
255 "insn", "insn1", "vliw_start", "prologue_end_note",
256 "last_insn_in_packet".
258 2014-08-28 David Malcolm <dmalcolm@redhat.com>
260 * shrink-wrap.h (active_insn_between): Strengthen both params from
262 * function.c (active_insn_between): Likewise.
264 2014-08-28 David Malcolm <dmalcolm@redhat.com>
266 * genattr.c (main): When writing out insn-attr.h, strengthen param
267 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
268 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
269 writing out the definition of dfa_clear_single_insn_cache to the
270 generated insn-automata.c
272 2014-08-28 David Malcolm <dmalcolm@redhat.com>
274 * resource.h (clear_hashed_info_for_insn): Strengthen param from
276 (incr_ticks_for_insn): Likewise.
277 (init_resource_info): Likewise.
279 * resource.c (init_resource_info): Likewise.
280 (clear_hashed_info_for_insn): Likewise.
281 (incr_ticks_for_insn): Likewise.
283 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
285 (steal_delay_list_from_target): Use methods of "seq".
286 (try_merge_delay_insns): Use methods of "merged_insns".
287 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
288 (reorg_redirect_jump): Likewise for param "jump".
290 2014-08-28 David Malcolm <dmalcolm@redhat.com>
292 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
294 * config/s390/s390.c (s390_split_branches): Eliminate top-level
295 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
297 (s390_mainpool_finish): In three places, split out a local rtx
298 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
299 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
300 and split another local rtx "insn" out into rtx "pat" and
302 * config/sh/sh.c (output_branchy_insn): Rather than working
303 directly on operands[9], introduce local rtx_code_label *
304 variables named "lab" in two places, working on them, and then
305 assigning them to operands[9], so that the intervening operations
306 are known by the type system to be on insns.
308 2014-08-28 David Malcolm <dmalcolm@redhat.com>
310 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
313 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
314 in invocation of INSN_HAS_LOCATION.
316 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
318 * config/rs6000/altivec.h (vec_xl): New #define.
320 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
321 (XXSPLTD_V2DI): Likewise.
322 (DIV_V2DI): Likewise.
323 (UDIV_V2DI): Likewise.
324 (MUL_V2DI): Likewise.
325 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
326 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
327 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
328 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
329 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
330 (UNSPEC_VSX_DIVSD): Likewise.
331 (UNSPEC_VSX_DIVUD): Likewise.
332 (UNSPEC_VSX_MULSD): Likewise.
333 (vsx_mul_v2di): New insn-and-split.
334 (vsx_div_v2di): Likewise.
335 (vsx_udiv_v2di): Likewise.
336 (vsx_xxspltd_<mode>): New insn.
338 2014-08-28 David Malcolm <dmalcolm@redhat.com>
340 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
342 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
343 (NEXT_INSN): Likewise.
344 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
345 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
347 (no_labels_between_p): Likewise for both params.
349 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
350 cast when using NEXT_INSN on operands[2].
351 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
352 "insn" from rtx to rtx_insn *, adding a checked cast.
353 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
355 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
357 (arc_text_label): Likewise for param "insn".
358 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
360 (arc_ccfsm_record_condition): Likewise for param "jump".
361 (arc_text_label): Likewise for local "label".
362 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
363 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
364 a method for typesafety. Add a checked cast.
365 * config/arc/constraints.md (Clb): Add a checked cast when getting
366 the CODE_LABEL from a LABEL_REF.
367 * config/arm/arm.c (require_pic_register): Strengthen locals
368 "seq", "insn" from rtx to rtx_insn *.
369 (create_fix_barrier): Likewise for locals "selected", "next".
370 (thumb1_reorg): Likewise for locals "prev", "insn".
371 (arm_expand_prologue): Likewise for local "last".
372 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
374 (thumb2_output_casesi): Likewise for operands[2].
375 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
376 strengthen local "insn" from rtx to rtx_insn *.
377 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
378 type and param "insn".
379 (find_prev_insn_start): Likewise.
380 (hwloop_optimize): Likewise for locals "insn", "last_insn",
382 (gen_one_bundle): Likewise for loal "t".
383 (find_load): Likewise for param "insn".
384 (workaround_speculation): Likewise for locals "insn", "next",
385 "target", "next_tgt".
386 * config/c6x/c6x.c (assign_reservations): Likewise for both params
387 and for locals "insn", "within", "last".
388 (count_unit_reqs): Likewise for params "head", "tail" and local
390 (try_rename_operands): Likewise for params "head", "tail".
391 (reshuffle_units): Likewise for locals "head", "tail", "insn".
392 (struct c6x_sched_context): Likewise for fields
393 "last_scheduled_insn", "last_scheduled_iter0".
394 (init_sched_state): Replace NULL_RTX with NULL.
395 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
397 (undo_split_delayed_nonbranch): Likewise for param and for local
399 (conditionalize_after_sched): Likewise for local "insn".
400 (bb_earliest_end_cycle): Likewise.
401 (filter_insns_above): Likewise for locals "insn", "next".
402 (hwloop_optimize): Remove redundant checked cast.
403 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
404 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
406 (cris_simple_epilogue): Likewise.
407 (cris_expand_prologue): Likewise.
408 (cris_expand_epilogue): Likewise.
409 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
410 local "insn" from rtx to rtx_insn *.
411 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
412 (struct frv_packet_group): Likewise for the elements within array
413 fields "insns", "sorted", and for field "nop".
414 (frv_packet): Likewise for the elements within array field
416 (frv_add_insn_to_packet): Likewise for param "insn".
417 (frv_insert_nop_in_packet): Likewise for param "insn" and local
419 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
420 (frv_sort_insn_group_1): Likewise for local "insn".
421 (frv_optimize_membar_local): Likewise.
422 (frv_align_label): Likewise for locals "x", "last", "barrier",
424 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
426 (ia64_sched_init): Likewise for local "insn".
427 (scheduled_good_insn): Likewise for param "last".
428 (struct _ia64_sched_context): Likewise for field
429 "last_scheduled_insn".
430 (ia64_init_sched_context): Replace NULL_RTX with NULL.
431 (struct bundle_state): Likewise for field "insn".
432 (issue_nops_and_insn): Likewise for param "insn".
433 (get_next_important_insn): Likewise for return type and both
435 (ia64_add_bundle_selector_before): Likewise for param "insn".
436 (bundling): Likewise for params "prev_head_insn", "tail" and
437 locals "insn", "next_insn", "b". Eliminate top-level local rtx
438 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
439 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
440 Strengthen final param from rtx to rtx_insn *.
441 (iq2000_move_1word): Likewise for second param.
442 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
443 param "cur_insn" and local "next_insn".
444 (iq2000_move_1word): Likewise for param "insn".
445 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
446 casts when using NEXT_INSN on operands[1].
447 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
448 "insn" from rtx to rtx_insn *.
449 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
450 "x", introducing local rtx_insn * "insn" for when working with the
451 CODE_LABEL of the LABEL_REF.
452 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
454 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
456 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
458 (conditionalize_block): Likewise for return type and param.
459 (mcore_is_dead): Likewise for param "first" and local "insn".
460 (emit_new_cond_insn): Likewise for return type.
461 (conditionalize_block): Likewise for return type, param, and
462 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
464 (conditionalize_optimization): Likewise for local "insn".
465 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
467 * config/microblaze/microblaze.md: Add checked casts when using
469 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
470 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
471 and rtx_insn * "insn".
472 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
473 checked cast when using NEXT_INSN on operands[2].
474 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
475 local "insn" from rtx to rtx_insn *.
476 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
478 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
479 Add a checked cast when using NEXT_INSN on operands[1].
480 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
482 (pa_output_cbranch): Likewise for final param.
483 (pa_output_lbranch): Likewise for second param.
484 (pa_output_bb): Likewise for third param.
485 (pa_output_bvb): Likewise.
486 (pa_output_dbra): Likewise for second param.
487 (pa_output_movb): Likewise.
488 (pa_output_parallel_movb): Likewise.
489 (pa_output_parallel_addb): Likewise.
490 (pa_output_millicode_call): Likewise for first param.
491 (pa_output_mul_insn): Likewise for second param.
492 (pa_output_div_insn): Likewise for third param.
493 (pa_output_mod_insn): Likewise for second param.
494 (pa_jump_in_call_delay): Likewise for param.
495 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
496 (pa_output_div_insn): Likewise.
497 (pa_output_mod_insn): Likewise.
498 (pa_output_cbranch): Likewise.
499 (pa_output_lbranch): Likewise.
500 (pa_output_bb): Likewise.
501 (pa_output_bvb): Likewise.
502 (pa_output_dbra): Likewise.
503 (pa_output_movb): Likewise.
504 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
505 to simplify and for typesafety.
506 (pa_output_call): Use method of rtx_sequence *.
507 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
508 (pa_jump_in_call_delay): Likewise.
509 (pa_output_parallel_movb): Likewise.
510 (pa_output_parallel_addb): Likewise.
511 (pa_following_call): Likewise.
512 (pa_combine_instructions): Likewise for locals "anchor",
514 (pa_can_combine_p): Likewise for params "anchor", "floater" and
515 locals "start", "end".
516 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
517 param "insn" and local "local_insn".
518 (picochip_final_prescan_insn): Likewise for local "local_insn".
519 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
521 (uses_TOC): Likewise.
522 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
523 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
524 splitting out to more tightly-scoped locals, 3 as rtx and one as
526 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
528 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
530 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
532 (fixup_addr_diff_vecs): Likewise.
533 (reg_unused_after): Likewise for param 2.
534 (sh_can_redirect_branch): Likewise for both params.
535 (check_use_sfunc_addr): Likewise for param 1.
536 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
537 (find_barrier): Likewise for local "last_got".
538 (gen_block_redirect): Likewise for return type, param "jump" and
539 locals "prev", "scan", "next", "insn".
540 (struct far_branch): Likewise for fields "near_label",
541 "insert_place", "far_label".
542 (gen_far_branch): Likewise for local "jump".
543 (fixup_addr_diff_vecs): Likewise for param "first" and locals
545 (barrier_align): Likewise for param and for locals "prev", "x".
546 Introduce local rtx_sequence * "prev_seq" and use insn method for
547 typesafety and clarity.
548 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
549 (get_dest_uid): Likewise for local "dest".
550 (split_branches): Likewise for locals "next", "beyond", "label",
551 "block", "far_label". Add checked casts when assigning to
552 bp->far_label and "far_label".
553 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
554 (sequence_insn_p): Likewise.
555 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
556 more loop-scoped rtx "insn" when walking LABEL_REFS.
557 (sh_can_redirect_branch): Strengthen both params from rtx to
559 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
560 new local rtx_sequence * "seq" via a dyn_cast, and use a method
561 for clarity and typesafety.
562 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
563 "insn" from rtx to rtx_insn *.
564 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
565 when using NEXT_INSN on the CODE_LABEL in operands[2].
566 (define_insn "casesi_worker_2"): Likewise.
567 (define_insn "casesi_shift_media"): Likewise.
568 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
570 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
571 Strengthen field "insn" from rtx to rtx_insn *.
572 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
573 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
574 param "start_insn" and local "start_insn".
575 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
577 (find_set_of_reg_bb): Likewise for param "insn".
578 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
579 (trace_reg_uses): Likewise for param "start_insn".
580 (sh_treg_combine::cbranch_trace): Likewise for field
582 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
584 (sh_treg_combine::record_set_of_reg): Likewise for param
585 "start_insn" and local "i".
586 (sh_treg_combine::can_remove_cstore): Likewise for local
588 (sh_treg_combine::try_optimize_cbranch): Likewise for param
590 (sh_treg_combine::execute): Likewise for local "i".
591 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
593 (sparc_check_64): Likewise for second param.
594 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
595 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
596 dyn_cast, using its insn method for typesafety and clarity.
597 (empty_delay_slot): Strengthen param "insn" from rtx to
599 (set_extends): Likewise.
600 (sparc_check_64): Likewise.
601 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
602 for locals "seq", "last_insn".
603 (combine_bnp): Likewise for param "insn".
604 (xstormy16_reorg): Likewise for local "insn".
605 * config/v850/v850.c (substitute_ep_register): Likewise for params
606 "first_insn", "last_insn" and local "insn".
607 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
608 elements of "regs" array, and local "insn".
609 * except.c (emit_note_eh_region_end): Likewise for param "insn".
610 * final.c (final_sequence): Strengthen this global from rtx to
612 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
614 (final_scan_insn): Update assignment to "final_sequence" to be
615 from "seq", the cast version of "body", for type-safety.
616 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
617 "insns" from rtx to rtx_insn *.
618 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
619 * genattr.c (main): When writing out generated insn-attr.h,
620 strengthen params 1 and 3 of eligible_for_delay,
621 eligible_for_annul_true, eligible_for_annul_false from rtx to
623 * genattrtab.c (write_eligible_delay): Likewise when writing out
624 generated insn-attrtab.c; also local "insn" the generated
626 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
628 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
629 "start_label" from rtx to rtx_insn *.
630 * ira.c (decrease_live_ranges_number): Likewise for local "p".
631 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
632 "insns" and local "insn".
633 (validate_equiv_mem): Likewise for param "start" and local "insn".
634 (memref_used_between_p): Likewise for params "start", "end" and
636 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
638 * loop-doloop.c (doloop_optimize): Within region guarded by
639 INSN_P (doloop_pat), introduce a new local rtx_insn *
640 "doloop_insn" via a checked cast, and use it for typesafety,
641 eventually writing the value back into doloop_pat.
642 * output.h (final_sequence): Strengthen this global from rtx to
644 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
645 reintroducing "insn" as an rtx_insn * via a checked cast.
646 Strengthen param "attempt" and local "new_insn"from rtx to
648 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
650 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
651 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
652 "p" in favor of more tightly-scoped replacements, sometimes rtx
653 and sometimes rtx_insn *, as appropriate.
654 (delete_output_reload): Eliminate top-level rtx "i1", splitting
655 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
656 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
657 local "trial" from rtx to rtx_insn *.
658 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
659 rtx to rtx_insn *. Strenghten local "pat" from rtx to
660 rtx_sequence * and use methods for clarity and typesafety.
661 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
662 rtx to rtx_insn *. Strenghten local "li" from rtx to
663 rtx_insn_list * and use its methods for clarity and typesafety.
664 (steal_delay_list_from_target): Strengthen param "insn" from rtx
666 (steal_delay_list_from_fallthrough): Likewise.
667 (try_merge_delay_insns): Likewise for param "thread" and locals
668 "trial", "next_trial", "delay_insn".
669 (redundant_insn): Likewise for param "target" and local "trial".
670 (own_thread_p): Likewise for param "thread" and locals
671 "active_insn", "insn".
672 (get_label_before): Likewise for param "insn".
673 (fill_simple_delay_slots): Likewise for local "new_label"; use
674 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
675 (label_before_next_insn): Strengthen return type and local "insn"
676 from rtx to rtx_insn *.
677 (relax_delay_slots): Likewise for locals "other", "tmp".
678 (make_return_insns): Likewise for param "first" and locals "insn",
679 "jump_insn", "prev". Move declaration of "pat" to its assignment
680 and strengthen from rtx to rtx_sequence *. Use its methods for
681 clarity and typesafety.
682 * rtlanal.c (no_labels_between_p): Strengthen params from
683 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
685 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
686 from const_rtx to const rtx_insn *.
687 (reg_set_between_p): Rename param "from_insn" to
688 "uncast_from_insn", and reintroduce "from_insn" as a
689 const rtx_insn * via a checked cast.
690 (modified_between_p): Likewise for param "start" as "uncast_start".
691 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
692 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
693 "tmp", head" from rtx to rtx_insn *.
694 (recompute_rev_top_order): Likewise for local "insn".
695 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
696 * store-motion.c (build_store_vectors): Likewise for local "insn".
697 Strengthen local "st" from rtx to rtx_insn_list * and use methods
698 for clarity and typesafety.
699 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
701 (computation_cost): Likewise for local "seq".
702 (get_address_cost): Likewise.
704 2014-08-28 David Malcolm <dmalcolm@redhat.com>
706 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
708 (label_is_jump_target_p): Likewise for second param.
710 * rtlanal.c (tablejump_p): Likewise for param "insn".
711 (label_is_jump_target_p): Likewise for param "jump_insn".
713 2014-08-28 David Malcolm <dmalcolm@redhat.com>
715 * rtl.h (find_first_parameter_load): Strengthen return type and
716 both params from rtx to rtx_insn *.
717 * rtlanal.c (find_first_parameter_load): Strengthen return type,
718 both params and locals "before", "first_set" from rtx to
719 rtx_insn *. Remove now-redundant cast.
720 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
722 2014-08-28 David Malcolm <dmalcolm@redhat.com>
724 * rtl.h (find_last_value): Delete.
725 * rtlanal.c (find_last_value): Delete.
727 2014-08-28 David Malcolm <dmalcolm@redhat.com>
729 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
730 from rtx to rtx_insn *.
731 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
732 rtx "note" with new local rtx_insn * "new_head" when calculating
733 head insn of new basic block.
734 * combine.c (combine_split_insns): Strengthen return type and local
735 "ret" from rtx to rtx_insn *.
736 (likely_spilled_retval_p): Likewise for locals "use" and "p".
737 (try_combine): Eliminate local "m_split", splitting into new
738 locals "m_split_insn" and "m_split_pat".
739 (find_split_point): Strengthen local "seq" from rtx into
741 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
742 locals "label", "branch".
743 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
745 (define_expand "umulsi3_highpart"): Likewise for local "insn".
746 * dse.c (note_add_store_info): Likewise for fields "first",
748 (note_add_store): Likewise for local "insn".
749 (emit_inc_dec_insn_before): Likewise for locals "insn",
751 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
752 (replace_read): Likewise for locals "insns", "this_insn".
753 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
754 (notice_eh_throw): Likewise for param "insn".
755 (before_next_cfi_note): Likewise for return type, param, and local
757 (connect_traces): Likewise for local "note".
758 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
759 (verify_rtl_sharing): Likewise.
760 (unshare_all_rtl_in_chain): Likewise for param "insn".
761 (get_first_nonnote_insn): Likewise for local "insn".
762 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
763 "seq" and use its methods to clarify things.
764 (next_insn): Strengthen return type from rtx to rtx_insn *.
765 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
766 local rtx_insn * using a checked cast, dropping a checked cast
767 made redundant by this change. Use a cast to and method of
768 rtx_sequence to clarify the code.
769 (previous_insn): Rename param "insn" to "uncast_insn" and
770 reintroduce "insn" as a local rtx_insn * using a checked cast,
771 dropping a checked cast made redundant by this change. Use a cast
772 to and method of rtx_sequence to clarify the code.
773 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
774 reintroduce "insn" as a local rtx_insn * using a checked cast,
775 dropping a checked cast made redundant by this change.
776 (next_nonnote_insn_bb): Likewise.
777 (prev_nonnote_insn): Likewise.
778 (prev_nonnote_insn_bb): Likewise.
779 (next_nondebug_insn): Likewise.
780 (prev_nondebug_insn): Likewise.
781 (next_nonnote_nondebug_insn): Likewise.
782 (prev_nonnote_nondebug_insn): Likewise.
783 (next_real_insn): Likewise.
784 (prev_real_insn): Likewise.
785 (next_active_insn): Likewise.
786 (prev_active_insn): Likewise.
787 (next_cc0_user): Likewise. Use rtx_sequence and a method for
789 (prev_cc0_setter): Likewise.
790 (try_split): Rename param "trial" to "uncast_trial" and
791 reintroduce "insn" as a local rtx_insn * using a checked cast,
792 dropping checked casts made redundant by this change.
793 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
795 (remove_insn): Rename param "insn" to "uncast_insn" and
796 reintroduce "insn" as a local rtx_insn * using a checked cast.
797 (emit_pattern_after_setloc): Likewise for param "after", as
799 (emit_pattern_after): Likewise. Strengthen local "prev" from
801 (emit_pattern_before_setloc): Rename param "before" to
802 "uncast_before" and reintroduce "before" as a local rtx_insn *
803 using a checked cast. Strengthen locals "first", "last" from
805 (emit_pattern_before): Likewise rename/cast param "before" to
806 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
807 * except.c (copy_reg_eh_region_note_forward): Strengthen param
808 "first" and local "insn" from rtx to rtx_insn *.
809 (copy_reg_eh_region_note_backward): Likewise for param "last"
811 * expr.c (fixup_args_size_notes): Rename param "last" to
812 "uncast_last" and reintroduce "last" as a local rtx_insn *
813 using a checked cast. Strengthen local "insn" from rtx to
815 * function.c (set_insn_locations): Strengthen param "insn" from
817 (record_insns): Likewise for param "insns" and local "tmp".
818 (active_insn_between): Rename param "tail" to
819 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
820 using a checked cast.
821 (thread_prologue_and_epilogue_insns): Split out top-level local
822 rtx "seq" into three different rtx_insn * locals. Strengthen
823 local "prologue_seq" from rtx to rtx_insn *.
824 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
825 from rtx to rtx_insn *.
826 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
827 (priority): Likewise for locals "prev_first", "twin".
828 (setup_insn_max_reg_pressure): Likewise for param "after".
829 (sched_setup_bb_reg_pressure_info): Likewise.
830 (no_real_insns_p): Strengthen params from const_rtx to
832 (schedule_block): Strengthen local "next_tail" from rtx to
834 * ifcvt.c (find_active_insn_before): Strengthen return type and
835 param "insn" from rtx to rtx_insn *.
836 (find_active_insn_after): Likewise.
837 (cond_exec_process_insns): Likewise for param "start" and local "insn".
838 (cond_exec_process_if_block): Likewise for locals "then_start",
839 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
840 (noce_process_if_block): Likewise for local "jump".
841 (merge_if_block): Likewise for two locals named "end".
842 (cond_exec_find_if_block): Likewise for local "last_insn".
843 * jump.c (delete_related_insns): Rename param "insn" to
844 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
845 checked cast. Strengthen local "p" from rtx to rtx_insn *.
846 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
848 (split_reg): Likewise.
849 * lra.c (lra_process_new_insns): Likewise.
850 * modulo-sched.c (permute_partial_schedule): Strengthen param
851 "last" from rtx to rtx_insn *.
852 * optabs.c (add_equal_note): Likewise for param "insns" and local
854 (expand_binop_directly): Add checked casts to rtx_insn * within
855 NEXT_INSN (pat) uses.
856 (expand_unop_direct): Likewise.
857 (maybe_emit_unop_insn): Likewise.
858 * recog.c (peep2_attempt): Strengthen locals "last",
859 "before_try", "x" from rtx to rtx_insn *.
860 * reorg.c (optimize_skip): Strengthen return type and local
861 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
862 and locals "trial", "next_trial" from rtx to rtx_insn *.
863 * resource.c (next_insn_no_annul): Strengthen return type and
864 param "insn" from rtx to rtx_insn *. Use a cast to and method of
865 rtx_sequence to clarify the code.
866 (mark_referenced_resources): Add a checked cast to rtx_insn *
867 within PREV_INSN (x).
868 (find_dead_or_set_registers): Strengthen return type, param
869 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
870 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
872 (mark_target_live_regs): Strengthen params "insns" and "target",
873 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
874 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
876 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
877 from rtx to rtx_insn *.
878 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
879 from rtx to rtx_insn *.
880 (copy_reg_eh_region_note_backward): Likewise.
881 (unshare_all_rtl_in_chain): Likewise for sole param.
882 (dump_rtl_slim): Strengthen second and third params from const_rtx
884 * sched-deps.c (sched_free_deps): Strengthen params "head" and
885 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
886 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
887 "next_tail" from rtx to rtx_insn *.
888 (begin_move_insn): Likewise for local "next".
889 * sched-int.h (sched_free_deps): Likewise for first and second
891 (no_real_insns_p): Strengthen both params from const_rtx to
893 (sched_setup_bb_reg_pressure_info): Strengthen second params from
895 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
897 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
898 and locals "insn", "tail" from const_rtx to const rtx_insn *.
899 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
901 (debug_rtl_slim): Strengthen params "first" and "last" from
902 const_rtx to const rtx_insn *.
903 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
904 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
905 (convert_to_simple_return): Likewise for param "returnjump".
906 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
908 (convert_to_simple_return): Likewise for param "returnjump".
909 * valtrack.c (propagate_for_debug): Likewise for params
911 * valtrack.h (propagate_for_debug): Likewise for second param.
913 2014-08-28 David Malcolm <dmalcolm@redhat.com>
915 * output.h (insn_current_reference_address): Strengthen param
916 from rtx to rtx_insn *.
917 * final.c (insn_current_reference_address): Likewise.
919 2014-08-28 David Malcolm <dmalcolm@redhat.com>
921 * basic-block.h (inside_basic_block_p): Strengthen param from
922 const_rtx to const rtx_insn *.
923 * cfgbuild.c (inside_basic_block_p): Likewise.
925 2014-08-28 David Malcolm <dmalcolm@redhat.com>
927 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
929 (get_trace_info): Likewise for param "insn".
930 (save_point_p): Likewise.
931 (maybe_record_trace_start): Likewise for both params.
932 (maybe_record_trace_start_abnormal): Likewise.
933 (create_trace_edges): Likewise for sole param and for three of the
935 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
936 to rtx_insn *, and update a call to pat->element to pat->insn.
938 2014-08-28 David Malcolm <dmalcolm@redhat.com>
940 * function.h (struct expr_status): Convert field "x_forced_labels"
941 from rtx_expr_list * to rtx_insn_list *.
943 * cfgbuild.c (make_edges): Convert local "x" from an
944 rtx_expr_list * to an rtx_insn_list *, replacing use of
945 "element" method with "insn" method.
946 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
947 * except.c (sjlj_emit_dispatch_table): Replace use of
948 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
950 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
951 rtx_expr_list * to an rtx_insn_list *, replacing use of
952 "element" method with "insn" method.
953 * reload1.c (set_initial_label_offsets): Likewise for local "x".
954 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
955 rtx_insn *, adding a checked cast. Replace use of
956 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
958 (expand_label): Likewise for local "label_r".
960 2014-08-28 David Malcolm <dmalcolm@redhat.com>
962 * function.h (struct rtl_data): Convert field
963 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
965 * rtl.h (remove_node_from_insn_list): New prototype.
967 * builtins.c (expand_builtin): When prepending to
968 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
970 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
971 to rtx_insn_list *, and use its "insn" method rather than
973 * cfgrtl.c (delete_insn): Use new function
974 remove_node_from_insn_list rather than
975 remove_node_from_expr_list.
976 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
977 to rtx_insn_list *, and use its "insn" method rather than
979 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
980 * reload1.c (set_initial_label_offsets): Likewise for local "x".
981 * rtlanal.c (remove_node_from_insn_list): New function, adapted
982 from remove_node_from_expr_list.
983 * stmt.c (expand_label): When prepending to
984 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
987 2014-08-28 David Malcolm <dmalcolm@redhat.com>
989 * function.h (struct rtl_data): Strengthen fields "x_return_label"
990 and "x_naked_return_label" from rtx to rtx_code_label *.
992 2014-08-28 David Malcolm <dmalcolm@redhat.com>
994 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
995 (SET_NEXT_INSN): Likewise.
996 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
998 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
999 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
1000 to split out the SEQUENCE from local "bundle", strengthening the
1001 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1002 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1003 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1004 and the type of the elements of the "slot" array from rtx to
1006 (reorg_split_calls): Likewise for locals "insn" and "next", and
1007 the type of the elements of the "slot" array.
1009 * config/frv/frv.c (frv_nops): Likewise for the elements of this
1011 (frv_function_prologue): Likewise for locals "insn", "next",
1013 (frv_register_nop): Introduce a local "nop_insn" to be the
1014 rtx_insn * containing rtx "nop".
1016 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1017 used as an insn and sometimes as a pattern, so rename it to
1018 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1019 using it where dealing with the core insn.
1021 * config/picochip/picochip.c (reorder_var_tracking_notes):
1022 Strengthen locals "insn", "next", "last_insn", "queue",
1023 "next_queue", "prev" from rtx to rtx_insn *.
1025 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1026 the second param is an rtx_insn ** rather than an rtx **.
1027 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1028 from rtx to rtx_sequence *, and introduce local named "sequence",
1029 using methods of rtx_sequence to clarify the code.
1030 (remove_insn): Introduce local rtx_sequence * named "sequence" and
1032 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1033 Rename param "after" to "uncast_after", reintroducing "after" as a
1034 local rtx_insn * with a checked cast.
1035 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1036 reintroducing "after" as a local rtx_insn * with a checked cast.
1037 Strengthen local "last" from rtx to rtx_insn * and remove the
1038 now-redundant checked casts.
1039 (copy_delay_slot_insn): Strengthen return type and param from rtx
1042 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1043 "last" from rtx to rtx_insn *.
1045 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1047 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1048 param from rtx to rtx_insn *.
1050 * emit-rtl.c (copy_delay_slot_insn): Likewise.
1052 * reorg.c (skip_consecutive_labels): Strengthen return type, param
1053 and local "insn" from rtx to rtx_insn *.
1054 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1055 (unfilled_slots_next): Likewise.
1056 (function_return_label): Strengthen from rtx to rtx_code_label *.
1057 (function_simple_return_label): Likewise.
1058 (first_active_target_insn): Strengthen return type and param from
1060 (find_end_label): Strengthen return type from rtx to
1061 rtx_code_label *; strengthen locals as appropriate.
1062 (emit_delay_sequence): Strengthen return type, param "insn" and
1063 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
1064 and local "li" from rtx to rtx_insn_list *, using methods of
1065 rtx_insn_list for clarity and typesafety.
1066 (add_to_delay_list): Strengthen return type and param "insn" from
1067 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
1068 rtx_insn_list * and use methods of rtx_insn_list.
1069 (delete_from_delay_slot): Strengthen return type, param "insn",
1070 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1071 Strengthen local "seq" from rtx to rtx_sequence *, and local
1072 "delay_list" from rtx to rtx_insn_list *, using methods of
1073 rtx_sequence for clarity and type-safety.
1074 (delete_scheduled_jump): Add checked cast when invoking
1075 delete_from_delay_slot. Strengthen local "trial" from rtx to
1077 (optimize_skip): Strengthen return type and local "delay_list"
1078 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
1080 (steal_delay_list_from_target): Strengthen return type, param
1081 "delay_list" and local "new_delay_list" from rtx to
1082 rtx_insn_list *. Strengthen param "seq" from rtx to
1083 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
1085 Split out local "temp" into multiple more-tightly scoped locals:
1086 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
1087 of rtx_insn_list and rtx_sequence for clarity and typesafety.
1088 Strengthen locals named "trial" from rtx to rtx_insn *.
1089 (steal_delay_list_from_fallthrough): Strengthen return type and
1090 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
1091 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
1092 Strengthen local "trial" from rtx to rtx_insn *.
1093 (try_merge_delay_insns): Strength local "merged_insns" from rtx
1094 to rtx_insn_list * and use its methods. Strengthen local "pat"
1095 from rtx to rtx_sequence * and use its methods. Strengthen locals
1096 "dtrial" and "new_rtx" from rtx to rtx_insn *.
1097 (get_label_before): Strengthen return type and local "label" from
1099 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1100 "next_trial", "next", prev". Strengthen local "delay_list" from
1101 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
1103 (follow_jumps): Strengthen return type, param "label" and locals
1104 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1105 (fill_slots_from_thread): Strengthen return type, param
1106 "delay_list" from rtx to rtx_insn_list *. Strengthen params
1107 "insn", "thread", "opposite_thread" and locals "new_thread",
1108 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
1109 "sequence" from a checked cast to rtx_sequence so that we can call
1110 steal_delay_list_from_target and steal_delay_list_from_fallthrough
1111 with an rtx_sequence *.
1112 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1113 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1114 Strengthen local "delay_list" from rtx to rtx_insn_list *.
1115 (relax_delay_slots): Strengthen param "first" and locals "insn",
1116 "next", "trial", "delay_insn", "target_label" from rtx to
1117 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
1118 Introduce a local "trial_seq" for PATTERN (trial) of type
1119 rtx_sequence *, in both cases using methods of rtx_sequence.
1120 (dbr_schedule): Strengthen param "first" and locals "insn",
1121 "next", "epilogue_insn" from rtx to rtx_insn *.
1123 2014-08-28 Richard Biener <rguenther@suse.de>
1125 PR tree-optimization/62283
1126 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1127 Do not peel loops for alignment where the vector loop likely
1128 doesn't run at least VF times.
1130 2014-08-28 Bin Cheng <bin.cheng@arm.com>
1132 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1133 important_candidates. Consider all important candidates if
1134 IVS doesn't give any result. Remove check on ivs->upto.
1135 (try_add_cand_for): Call iv_ca_add_use only once.
1137 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1139 Anna Tikhonova <anna.tikhonova@intel.com>
1140 Ilya Tocar <ilya.tocar@intel.com>
1141 Andrey Turetskiy <andrey.turetskiy@intel.com>
1142 Ilya Verbin <ilya.verbin@intel.com>
1143 Kirill Yukhin <kirill.yukhin@intel.com>
1144 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1146 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1147 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1149 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1150 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1151 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1152 (define_insn "*mul<mode>3"): Add EVEX version.
1154 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1156 Anna Tikhonova <anna.tikhonova@intel.com>
1157 Ilya Tocar <ilya.tocar@intel.com>
1158 Andrey Turetskiy <andrey.turetskiy@intel.com>
1159 Ilya Verbin <ilya.verbin@intel.com>
1160 Kirill Yukhin <kirill.yukhin@intel.com>
1161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1163 * config/i386/sse.md
1164 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1165 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1166 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1167 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1168 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1169 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1170 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1171 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1172 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1173 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1174 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1175 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1176 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1177 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1178 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1179 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1181 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1183 Anna Tikhonova <anna.tikhonova@intel.com>
1184 Ilya Tocar <ilya.tocar@intel.com>
1185 Andrey Turetskiy <andrey.turetskiy@intel.com>
1186 Ilya Verbin <ilya.verbin@intel.com>
1187 Kirill Yukhin <kirill.yukhin@intel.com>
1188 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1190 * config/i386/sse.md
1191 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1192 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1193 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1195 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1197 Anna Tikhonova <anna.tikhonova@intel.com>
1198 Ilya Tocar <ilya.tocar@intel.com>
1199 Andrey Turetskiy <andrey.turetskiy@intel.com>
1200 Ilya Verbin <ilya.verbin@intel.com>
1201 Kirill Yukhin <kirill.yukhin@intel.com>
1202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1204 * config/i386/sse.md
1205 (define_mode_iterator VI128_256): New.
1206 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1208 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1209 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1210 Anna Tikhonova <anna.tikhonova@intel.com>
1211 Ilya Tocar <ilya.tocar@intel.com>
1212 Andrey Turetskiy <andrey.turetskiy@intel.com>
1213 Ilya Verbin <ilya.verbin@intel.com>
1214 Kirill Yukhin <kirill.yukhin@intel.com>
1215 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1217 * config/i386/sse.md
1218 (define_mode_iterator VI8_256_512): New.
1219 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1221 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1222 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1224 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1226 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1228 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
1229 pointer to the cumulative reloc value and return the value for
1231 (compute_reloc_for_rtx): Take a const_rtx. Call
1232 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1233 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
1234 for_each_rtx for the CONST case.
1236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1238 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1239 (mark_constants_in_pattern): ...this new function to iterate over
1241 (mark_constants): Update accordingly.
1243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1245 * varasm.c: Include rtl-iter.h.
1246 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1247 Remove the pointer to the cumulative hashval_t and just return
1248 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
1249 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1250 Accumulate the hashval_ts here instead of const_rtx_hash_1.
1252 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1254 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1255 Give real type of data parameter. Remove return value.
1256 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1257 to iterate over subrtxes.
1259 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1261 * var-tracking.c (use_narrower_mode_test): Turn from being a
1262 for_each_rtx callback to being a function that examines each
1264 (adjust_mems): Update accordingly.
1266 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1268 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1269 callback to being a function that examines each subrtx itself.
1270 Remove handling of null rtxes.
1271 (add_uses): Update accordingly.
1273 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1275 * var-tracking.c: Include rtl-iter.h.
1276 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1277 to being a function that examines each subrtx itself.
1278 (use_type): Update accordingly.
1280 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1282 * store-motion.c: Include rtl-iter.h.
1283 (extract_mentioned_regs_1): Delete.
1284 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1285 for_each_rtx to iterate over subrtxes.
1287 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1289 * sel-sched.c: Include rtl-iter.h
1290 (count_occurrences_1): Delete.
1291 (count_occurrences_equiv): Turn rtxes into const_rtxes.
1292 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1294 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1296 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1297 * rtlanal.c (tls_referenced_p_1): Delete.
1298 (tls_referenced_p): Take a const_rtx rather than an rtx.
1299 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1303 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1304 (for_each_inc_dec): Take an rtx rather than an rtx *.
1305 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1306 (cselib_record_sets): Likewise.
1307 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1308 (check_for_inc_dec): Likewise.
1309 * rtlanal.c (for_each_inc_dec_ops): Delete.
1310 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1311 rather than a pointer to the memory address. Replace
1312 for_each_inc_dec_ops argument with separate function and data
1313 arguments. Abort on non-autoinc addresses.
1314 (for_each_inc_dec_find_mem): Delete.
1315 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
1316 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1318 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1320 * rtl.h (find_all_hard_regs): Declare.
1321 * rtlanal.c (find_all_hard_regs): New function.
1322 (record_hard_reg_uses_1): Delete.
1323 (record_hard_reg_uses): Use find_all_hard_regs.
1325 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1327 * rtl.h (replace_label_data): Delete.
1328 (replace_label): Take the old label, new label and update-nuses flag
1329 as direct arguments. Return void.
1330 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1331 * rtlanal.c (replace_label): Update interface as above. Handle
1332 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
1333 iterator. Use FOR_EACH_SUBRTX_PTR.
1335 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1337 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1338 with const_rtx parameters.
1339 * varasm.c (get_pool_constant): Likewise.
1340 * rtlanal.c (rtx_referenced_p_1): Delete.
1341 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1342 Assert that the rtx we're looking for is nonnull. Allow searches
1343 for constant pool SYMBOL_REFs.
1345 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1347 * reload1.c: Include rtl-iter.h.
1348 (note_reg_elim_costly): Turn from being a for_each_rtx callback
1349 to being a function that examines each subrtx itself.
1350 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1352 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1354 * regcprop.c (cprop_find_used_regs_1): Delete.
1355 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1357 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1359 * regcprop.c: Include rtl-iter.h.
1360 (kill_value): Take a const_rtx.
1361 (kill_autoinc_value): Turn from being a for_each_rtx callback
1362 to being a function that examines each subrtx itself.
1363 (copyprop_hardreg_forward_1): Update accordingly.
1365 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1367 * reg-stack.c: Include rtl-iter.h.
1368 (subst_stack_regs_in_debug_insn): Delete.
1369 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1370 instead of for_each_rtx.
1372 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1374 * lower-subreg.c (find_decomposable_subregs): Turn from being
1375 a for_each_rtx callback to being a function that examines each
1376 subrtx itself. Remove handling of null rtxes.
1377 (decompose_multiword_subregs): Update accordingly.
1379 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1381 * lower-subreg.c (adjust_decomposed_uses): Delete.
1382 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1383 Remove handling of null rtxes.
1385 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1387 * lower-subreg.c: Include rtl-iter.h.
1388 (resolve_subreg_use): Turn from being a for_each_rtx callback
1389 to being a function that examines each subrtx itself. Remove
1390 handling of null rtxes.
1391 (resolve_reg_notes, resolve_simple_move): Update accordingly.
1392 (decompose_multiword_subregs): Likewise.
1394 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1396 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1397 to being a function that examines each subrtx itself.
1398 (simplify_using_condition, simplify_using_initial_values): Update
1401 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1403 * loop-iv.c: Include rtl-iter.h.
1404 (find_single_def_src): New function.
1405 (replace_single_def_regs): Turn from being a for_each_rtx callback
1406 to being a function that examines each subrtx itself.
1407 (replace_in_expr, simplify_using_initial_values): Update accordingly.
1409 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1411 * jump.c (eh_returnjump_p_1): Delete.
1412 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1413 Remove handling of null rtxes.
1415 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1417 * jump.c: Include rtl-iter.h.
1418 (returnjump_p_1): Delete.
1419 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1420 Remove handling of null rtxes.
1422 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1424 * ira.c: Include rtl-iter.h.
1425 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1426 to being a function that examines each subrtx itself. Remove
1427 handling of null rtxes.
1428 (update_equiv_regs): Update call accordingly.
1430 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1432 * fwprop.c: Include rtl-iter.h.
1433 (varying_mem_p): Turn from being a for_each_rtx callback to being
1434 a function that examines each subrtx itself.
1435 (propagate_rtx): Update accordingly.
1437 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1439 * function.c: Include rtl-iter.h
1440 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1441 callback to being a function that examines each subrtx itself.
1442 Return the changed flag.
1443 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1444 (instantiate_virtual_regs): Update calls accordingly.
1446 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1448 * final.c: Include rtl-iter.h.
1449 (mark_symbol_ref_as_used): Delete.
1450 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1453 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1455 * emit-rtl.c: Include rtl-iter.h.
1456 (find_auto_inc): Turn from being a for_each_rtx callback to being
1457 a function that examines each subrtx itself. Assume the first operand
1458 to an RTX_AUTOINC is the automodified register.
1459 (try_split): Update call accordingly.
1461 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1463 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1464 Return a bool, inverting the result so that 0/false means "not ok".
1465 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1466 subrtxes of a CONST.
1467 (mem_loc_descriptor, add_const_value_attribute)
1468 (resolve_addr_in_expr): Update calls accordingly.
1470 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1472 * dwarf2out.c: Include rtl-iter.h.
1473 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1474 Remove unused data parameter. Return a bool, inverting the result
1475 so that 0/false means "not ok".
1476 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
1477 instead of for_each_rtx.
1479 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1481 * dse.c: Include rtl-iter.h.
1482 (check_mem_read_rtx): Change void * parameter to real type.
1483 Remove return value.
1484 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
1485 for_each_rtx. Don't handle null rtxes.
1487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1489 * df-problems.c: Include rtl-iter.h.
1490 (find_memory): Turn from being a for_each_rtx callback to being
1491 a function that examines each subrtx itself. Continue to look for
1492 volatile references even after a nonvolatile one has been found.
1493 (can_move_insns_across): Update calls accordingly.
1495 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1497 * ddg.c (walk_mems_2, walk_mems_1): Delete.
1498 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1499 to iterate over subrtxes. Return a bool rather than an int.
1501 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1503 * ddg.c: Include rtl-iter.h.
1504 (mark_mem_use_1): Rename to...
1505 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
1506 instead of for_each_rtx.
1507 (mem_read_insn_p): Update accordingly.
1509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1511 * cse.c (change_cc_mode_args): Delete.
1512 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1513 a function that examines each subrtx itself. Take the fields of
1514 change_cc_mode_args as argument and return void.
1515 (cse_change_cc_mode_insn): Update calls accordingly.
1517 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1519 * cse.c (is_dead_reg): Change argument to const_rtx.
1520 (dead_debug_insn_data): Delete.
1521 (is_dead_debug_insn): Expand commentary. Turn from being a
1522 for_each_rtx callback to being a function that examines
1523 each subrtx itself. Take the fields of dead_debug_insn_data
1525 (delete_trivially_dead_insns): Update call accordingly.
1527 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1529 * cse.c (check_for_label_ref): Move earlier in file. Turn from
1530 being a for_each_rtx callback to being a function that examines
1532 (cse_extended_basic_block): Update call accordingly.
1534 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1536 * cse.c (check_dependence_data): Delete.
1537 (check_dependence): Change from being a for_each_rtx callback to being
1538 a function that examines all subrtxes itself. Don't handle null rtxes.
1539 (invalidate): Update call accordingly.
1541 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1543 * cse.c: Include rtl-iter.h.
1544 (approx_reg_cost_1): Delete.
1545 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1546 Don't handle null rtxes.
1548 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1550 * cfgcleanup.c: Include rtl-iter.h.
1551 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
1552 to being a function that examines each subrtx itself.
1553 (thread_jump): Update accordingly.
1555 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1557 * combine-stack-adj.c: Include rtl-iter.h.
1558 (record_stack_refs_data): Delete.
1559 (record_stack_refs): Turn from being a for_each_rtx callback
1560 to being a function that examines each subrtx itself.
1561 Take a pointer to the reflist. Invert sense of return value
1562 so that true means success and false means failure. Don't
1564 (combine_stack_adjustments_for_block): Update accordingly.
1566 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1568 * combine.c (record_truncated_value): Turn from being a for_each_rtx
1569 callback to a function that takes an rtx and returns a bool
1570 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
1573 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1575 * combine.c: Include rtl-iter.h.
1576 (unmentioned_reg_p_1): Delete.
1577 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1578 Don't handle null rtxes.
1580 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1582 * calls.c: Include rtl-iter.h.
1583 (internal_arg_pointer_based_exp_1): Delete.
1584 (internal_arg_pointer_based_exp): Take a const_rtx.
1585 Use FOR_EACH_SUBRTX to iterate over subrtxes.
1587 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1589 * caller-save.c: Include rtl-iter.h.
1590 (add_used_regs_1): Delete.
1591 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
1592 to iterate over subrtxes. Assert that any remaining pseudos
1595 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1597 * bt-load.c: Include rtl-iter.h.
1598 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
1599 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
1600 to iterate over subrtxes.
1601 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
1602 find_btr_use rather than btr_referenced_p.
1604 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1606 * alias.c: Include rtl-iter.h.
1607 (refs_newer_value_cb): Delete.
1608 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1610 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1612 * rtl-iter.h: New file.
1613 * rtlanal.c: Include it.
1614 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
1615 (generic_subrtx_iterator <T>::add_single_to_queue)
1616 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
1617 (generic_subrtx_iterator <T>::free_array): New functions.
1618 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
1619 (generic_subrtx_iterator <const_rtx_accessor>)
1620 (generic_subrtx_iterator <rtx_var_accessor>
1621 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
1622 (setup_reg_subrtx_bounds): New function.
1623 (init_rtlanal): Call it.
1625 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
1628 * config/sh/sh.md (ashlsi3): Handle negative shift count for
1630 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1632 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
1634 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
1636 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1638 * rtl.h (JUMP_LABEL_AS_INSN): New.
1640 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1642 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
1644 (alloc_EXPR_LIST): Strengthen return type from rtx to
1646 (remove_free_EXPR_LIST_node): Likewise for param.
1647 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
1648 from rtx to rtx_expr_list *.
1649 * sched-int.h (struct deps_desc): Strengthen fields
1650 "pending_read_mems" and "pending_write_mems" from rtx to
1653 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
1654 rtx to rtx_expr_list *.
1655 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
1656 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
1658 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
1659 from rtx to rtx_expr_list *.
1660 * loop-iv.c (simplify_using_initial_values): Strengthen local
1661 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
1662 "pnote_next" from rtx * to rtx_expr_list **.
1663 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
1664 param "exprp" from rtx * to rtx_expr_list **.
1665 (add_insn_mem_dependence): Strengthen local "mem_list" from
1666 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
1668 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
1669 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
1670 param "old_mems_p" from rtx * to rtx_expr_list **.
1671 * var-tracking.c (struct adjust_mem_data): Strengthen field
1672 "side_effects" from rtx to rtx_expr_list *.
1673 (adjust_insn): Replace NULL_RTX with NULL when assigning to
1675 (prepare_call_arguments): Likewise.
1677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1679 * function.h (struct rtl_data): Strengthen field
1680 "x_stack_slot_list" from rtx to rtx_expr_list *.
1682 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
1683 when assigning to stack_slot_list.
1685 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1687 * function.h (struct rtl_data): Strengthen field
1688 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
1689 * rtl.h (remove_node_from_expr_list): Strengthen second param from
1690 rtx * to rtx_expr_list **.
1692 * cfgbuild.c (make_edges): In loop over
1693 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
1694 rtx_expr_list *, and use methods of the latter class to clarify
1696 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
1697 rtx_expr_list *, and use methods of the latter class to clarify
1699 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1700 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1701 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
1702 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
1703 to rtx_expr_list *. Use methods of the latter class to clarify
1706 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1708 * function.h (struct expr_status): Strengthen field
1709 "x_forced_labels" from rtx to rtx_expr_list *.
1711 * cfgbuild.c (make_edges): Split local "x" into two locals,
1712 strengthening one from rtx to rtx_expr_list *, and using methods
1714 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
1715 loop over forced_labels, introduce strengthen it from rtx to
1716 rtx_expr_list *, using methods to clarify the code.
1717 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
1718 to rtx_expr_list *, using methods of said class to clarify the
1720 * reload1.c (set_initial_label_offsets): Split local "x" into two
1721 per-loop variables, strengthening the first from rtx to
1722 rtx_expr_list * and using methods.
1724 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1726 * coretypes.h (class rtx_expr_list): Add forward declaration.
1727 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
1728 * gengenrtl.c (special_rtx): Add EXPR_LIST.
1729 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
1730 invariant: GET_CODE (X) == EXPR_LIST.
1731 (is_a_helper <rtx_expr_list *>::test): New.
1732 (rtx_expr_list::next): New.
1733 (rtx_expr_list::element): New.
1734 (gen_rtx_EXPR_LIST): New.
1736 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1738 * varasm.c (mark_constants): Convert a GET_CODE check into a
1739 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1740 Use methods of rtx_sequence to clarify the code.
1742 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1744 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
1745 local "seq" via a checked cast, and use methods of rtx_sequence
1746 to simplify the code.
1748 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1750 * resource.c (mark_referenced_resources): Strengthen local
1751 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
1752 using methods of rtx_sequence to clarify the code.
1753 (find_dead_or_set_registers): Within the switch statement, convert
1754 a GET_CODE check to a dyn_cast, introducing local "seq". Within
1755 the JUMP_P handling, introduce another local "seq", adding a
1756 checked cast to rtx_sequence *. In both cases, use methods of
1757 rtx_sequence to clarify the code.
1758 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
1759 via a checked cast, and use methods of rtx_sequence to simplify
1762 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1764 * reorg.c (redundant_insn): In two places in the function, replace
1765 a check of GET_CODE with a dyn_cast, introducing local "seq", and
1766 usings methods of rtx_sequence to clarify the code.
1768 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1770 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
1771 local "seq" with a checked cast, and use methods of rtx_sequence
1772 to clarify the code.
1774 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1776 * function.c (contains): Introduce local "seq" for PATTERN (insn),
1777 with a checked cast, in the region for where we know it's a
1778 SEQUENCE. Use methods of rtx_sequence.
1780 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1782 * final.c (get_attr_length_1): Replace GET_CODE check with a
1783 dyn_cast, introducing local "seq" and the use of methods of
1785 (shorten_branches): Likewise, introducing local "body_seq".
1786 Strengthen local "inner_insn" from rtx to rtx_insn *.
1787 (reemit_insn_block_notes): Replace GET_CODE check with a
1788 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
1789 Use methods of rtx_sequence.
1790 (final_scan_insn): Likewise, introducing local "seq" for when
1791 "body" is known to be a SEQUENCE, using its methods.
1793 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1795 * except.c (can_throw_external): Strengthen local "seq" from rtx
1796 to rtx_sequence *. Use methods of rtx_sequence.
1797 (insn_nothrow_p): Likewise.
1799 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1801 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
1802 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1803 Use methods of rtx_sequence.
1804 (scan_trace): Likewise for local "pat".
1806 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1808 * coretypes.h (class rtx_sequence): Add forward declaration.
1809 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
1810 invariant: GET_CODE (X) == SEQUENCE.
1811 (is_a_helper <rtx_sequence *>::test): New.
1812 (is_a_helper <const rtx_sequence *>::test): New.
1813 (rtx_sequence::len): New.
1814 (rtx_sequence::element): New.
1815 (rtx_sequence::insn): New.
1817 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1819 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
1821 (alloc_INSN_LIST): Strengthen return type from rtx to
1823 (copy_INSN_LIST): Likewise for return type and param.
1824 (concat_INSN_LIST): Likewise for both params and return type.
1825 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
1826 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
1827 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
1828 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
1830 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
1831 "implicit_sets", "control_uses", "clobbers" from rtx to
1833 (struct deps_desc): Likewise for fields "pending_read_insns",
1834 "pending_write_insns", "pending_jump_insns",
1835 "last_pending_memory_flush", "last_function_call",
1836 "last_function_call_may_noreturn", "sched_before_next_call",
1837 "sched_before_next_jump".
1838 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
1839 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
1841 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
1842 from rtx to rtx_insn_list *.
1843 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
1846 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
1847 to rtx_insn_list **.
1848 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
1850 (queue_insn): Likewise for local "link".
1851 (struct haifa_saved_data): Strengthen field "insn_queue" from
1852 rtx * to rtx_insn_list **.
1853 (save_backtrack_point): Update allocation of save->insn_queue to
1854 reflect the strengthening of elements from rtx to rtx_insn_list *.
1855 (queue_to_ready): Strengthen local "link" from rtx to
1856 rtx_insn_list *; use methods "next" and "insn" when traversing the
1858 (early_queue_to_ready): Likewise for locals "link", "next_link",
1860 (schedule_block): Update allocation of insn_queue to reflect the
1861 strengthening of elements from rtx to rtx_insn_list *. Strengthen
1862 local "link" from rtx to rtx_insn_list *, and use methods when
1864 (add_to_speculative_block): Strengthen locals "twins" and
1865 "next_node" from rtx to rtx_insn_list *, and use methods when
1866 working with them. Strengthen local "twin" from rtx to
1867 rtx_insn *, eliminating a checked cast.
1868 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
1869 from rtx to rtx_insn_list *, and use methods when working with
1872 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
1873 from rtx to rtx_insn_list *, adding a checked cast.
1874 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
1876 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
1877 "newlink" from rtx to rtx_insn_list *. Strengthen local
1878 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
1879 from rtx to rtx_insn *.
1880 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
1881 from rtx to rtx_insn_list *. Use methods of the latter class.
1882 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
1883 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
1884 (remove_free_INSN_LIST_node): Strengthen return type and local
1885 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
1886 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
1887 rtx_insn_list *, using "insn" method.
1889 * sched-deps.c (add_dependence_list): Strengthen param "list"
1890 from rtx to rtx_insn_list *, and use methods when working with it.
1891 (add_dependence_list_and_free): Strengthen param "listp" from
1892 rtx * to rtx_insn_list **.
1893 (remove_from_dependence_list): Strenghten param "listp" from rtx *
1894 to rtx_insn_list **, and use methods when working with *listp.
1895 (remove_from_both_dependence_lists): Strengthen param "listp" from
1896 rtx * to rtx_insn_list **
1897 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
1898 to rtx_insn_list **. Eliminate local "link", in favor of two new
1899 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
1901 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
1902 by introducing local "cond_deps".
1903 (remove_from_deps): Strengthen param "insn" from rtx to
1906 * sched-rgn.c (concat_insn_mem_list): Strengthen param
1907 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
1908 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
1909 Use methods of rtx_insn_list.
1911 * store-motion.c (struct st_expr): Strengthen fields
1912 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
1913 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
1915 (find_moveable_store): Split out "tmp" into multiple more-tightly
1916 scoped locals. Use methods of rtx_insn_list *.
1917 (compute_store_table): Strengthen local "tmp" from rtx to
1918 rtx_insn *. Use methods of rtx_insn_list *.
1920 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1922 * coretypes.h (class rtx_insn_list): Add forward declaration.
1923 * rtl.h (class rtx_insn_list): New subclass of rtx_def
1924 (is_a_helper <rtx_insn_list *>::test): New.
1925 (rtx_insn_list::next): New.
1926 (rtx_insn_list::insn): New.
1927 (gen_rtx_INSN_LIST): Add prototype.
1928 * emit-rtl.c (gen_rtx_INSN_LIST): New.
1929 * gengenrtl.c (special_rtx): Add INSN_LIST.
1931 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1933 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
1934 "prev" from rtx to rtx_insn *.
1936 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1938 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
1939 functions. Require merely an rtx for now, not an rtx_insn *.
1940 (BLOCK_FOR_INSN): Likewise.
1941 (INSN_LOCATION): Likewise.
1942 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
1944 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1946 * rtl.h (PATTERN): Convert this macro into a pair of inline
1947 functions, for now, requiring const_rtx and rtx.
1949 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1951 * target.def (unwind_emit): Strengthen param "insn" from rtx to
1953 (final_postscan_insn): Likewise.
1954 (adjust_cost): Likewise.
1955 (adjust_priority): Likewise.
1956 (variable_issue): Likewise.
1957 (macro_fusion_pair_p): Likewise.
1958 (dfa_post_cycle_insn): Likewise.
1959 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
1960 (first_cycle_multipass_issue): Likewise.
1961 (dfa_new_cycle): Likewise.
1962 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
1963 (speculate_insn): Likewise for param "insn".
1964 (gen_spec_check): Likewise for params "insn" and "label".
1965 (get_insn_spec_ds): Likewise for param "insn".
1966 (get_insn_checked_ds): Likewise.
1967 (dispatch_do): Likewise.
1968 (dispatch): Likewise.
1969 (cannot_copy_insn_p): Likewise.
1970 (invalid_within_doloop): Likewise.
1971 (legitimate_combined_insn): Likewise.
1975 * doc/tm.texi: Automatically updated to reflect changes to
1978 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
1980 (schedule_block): Likewise.
1981 (sched_init): Likewise.
1982 (sched_speculate_insn): Strengthen param "insn" from rtx to
1984 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
1986 * hooks.c (hook_bool_rtx_true): Rename to...
1987 hook_bool_rtx_insn_true): ...this, and strengthen first param from
1989 (hook_constcharptr_const_rtx_null): Rename to...
1990 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1991 first param from const_rtx to const rtx_insn *.
1992 (hook_bool_rtx_int_false): Rename to...
1993 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1994 param from rtx to rtx_insn *.
1995 (hook_void_rtx_int): Rename to...
1996 (hook_void_rtx_insn_int): ...this, and strengthen first param from
1999 * hooks.h (hook_bool_rtx_true): Rename to...
2000 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2002 (hook_bool_rtx_int_false): Rename to...
2003 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2004 param from rtx to rtx_insn *.
2005 (hook_void_rtx_int): Rename to...
2006 (hook_void_rtx_insn_int): ...this, and strengthen first param from
2008 (hook_constcharptr_const_rtx_null): Rename to...
2009 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2010 first param from const_rtx to const rtx_insn *.
2012 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2013 and local "prev" from rtx to rtx_insn *.
2015 * sched-int.h (sched_speculate_insn): Strengthen first param from
2018 * sel-sched.c (create_speculation_check): Likewise for local "label".
2019 * targhooks.c (default_invalid_within_doloop): Strengthen param
2020 "insn" from const_rtx to const rtx_insn *.
2021 * targhooks.h (default_invalid_within_doloop): Strengthen param
2022 from const_rtx to const rtx_insn *.
2024 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2025 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2027 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2029 (arc_invalid_within_doloop): Likewise, with const.
2031 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2032 (arm_cannot_copy_insn_p): Likewise for param "insn".
2033 (arm_unwind_emit): Likewise.
2035 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2038 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2039 (c6x_variable_issue): Likewise. Removed now-redundant checked
2041 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2043 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2044 Likewise for param "insn".
2045 (epiphany_mode_after): Likewise.
2046 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2047 params "insn", "dep_insn".
2048 (epiphany_mode_needed): Likewise for param "insn".
2049 (epiphany_mode_after): Likewise.
2051 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2052 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2053 (ix86_avx_u128_mode_needed): Likewise.
2054 (ix86_i387_mode_needed): Likewise.
2055 (ix86_mode_needed): Likewise.
2056 (ix86_avx_u128_mode_after): Likewise.
2057 (ix86_mode_after): Likewise.
2058 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2059 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2060 (ix86_adjust_priority): Likewise for param "insn".
2061 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2062 (do_dispatch): Likewise.
2063 (has_dispatch): Likewise.
2064 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2066 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2067 reflect renaming of default hook implementation from
2068 hook_constcharptr_const_rtx_null to
2069 hook_constcharptr_const_rtx_insn_null.
2070 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2072 (ia64_variable_issue): Likewise for param "insn".
2073 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2074 (ia64_dfa_new_cycle): Likewise.
2075 (ia64_get_insn_spec_ds): Likewise.
2076 (ia64_get_insn_checked_ds): Likewise.
2077 (ia64_speculate_insn): Likewise.
2078 (ia64_gen_spec_check): Likewise for params "insn", "label".
2079 (ia64_asm_unwind_emit): Likewise for param "insn".
2081 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2083 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2085 (m68k_sched_variable_issue): Likewise for param "insn".
2087 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2090 * config/microblaze/microblaze.c (microblaze_adjust_cost):
2091 Likewise for params "insn", "dep".
2093 * config/mips/mips.c (mips_adjust_cost): Likewise.
2094 (mips_variable_issue): Likewise for param "insn".
2095 (mips_final_postscan_insn): Likewise.
2097 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2098 for params "insn", "dep".
2100 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2102 (pa_adjust_priority): Likewise for param "insn".
2104 * config/picochip/picochip.c (picochip_sched_adjust_cost):
2105 Likewise for params "insn", "dep_insn".
2107 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2109 (rs6000_variable_issue): Likewise.
2110 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2111 (rs6000_debug_adjust_cost): Likewise.
2112 (rs6000_adjust_priority): Likewise for param "insn".
2113 (rs6000_use_sched_lookahead_guard): Likewise.
2114 (get_next_active_insn): Likewise for return type and both params.
2115 (redefine_groups): Likewise for params "prev_head_insn", "tail"
2116 and locals "insn", "next_insn".
2117 (pad_groups): Likewise.
2119 * config/s390/s390.c (s390_adjust_priority): Likewise for param
2121 (s390_cannot_copy_insn_p): Likewise.
2122 (s390_sched_variable_issue): Likewise for third param, eliminating
2124 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2125 default hook implementation from hook_constcharptr_const_rtx_null
2126 to hook_constcharptr_const_rtx_insn_null.
2128 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2129 from rtx to rtx_insn *.
2130 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2131 (sh_variable_issue): Likewise for param "insn".
2132 (sh_dfa_new_cycle): Likewise.
2133 (sh_mode_needed): Likewise.
2134 (sh_mode_after): Likewise.
2136 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2137 params "insn", "dep_insn".
2138 (hypersparc_adjust_cost): Likewise.
2139 (sparc_adjust_cost): Likewise.
2141 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2142 param, eliminated checked cast.
2143 (spu_sched_adjust_cost): Likewise for first and third params.
2145 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2146 params "insn" and "dep_insn" from rtx to rtx_insn *.
2148 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2150 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2152 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2153 (set_is_load_p): ...this, updating to work on a SET pattern rather
2155 (is_store_insn): Rename to...
2156 (set_is_store_p): ...this, updating to work on a SET pattern
2157 rather than an insn.
2158 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2159 top of function to where it is needed. Rewrite the bogus
2160 condition that checks for "insn" and "dep" being PARALLEL to
2161 instead use single_set, introducing locals "insn_set" and
2162 "dep_set". Given that we only ever returned "cost" for a non-pair
2163 of SETs, bail out early if we don't have a pair of SET.
2164 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2165 use the new locals "insn_set" and "dep_set", and update calls to
2166 is_load_insn and is_store_insn to be calls to set_is_load_p and
2169 2014-08-27 Guozhi Wei <carrot@google.com>
2172 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2173 amount before using it.
2175 2014-08-27 Richard Biener <rguenther@suse.de>
2177 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2178 get_maxval_strlen inside a more useful API.
2179 (gimple_fold_builtin_with_strlen): Remove and fold into ...
2180 (gimple_fold_builtin): ... caller.
2181 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2182 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2183 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2184 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2185 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2186 gimple_fold_builtin_sprintf): Adjust to compute maxval
2189 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
2192 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2194 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2195 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2196 Anna Tikhonova <anna.tikhonova@intel.com>
2197 Ilya Tocar <ilya.tocar@intel.com>
2198 Andrey Turetskiy <andrey.turetskiy@intel.com>
2199 Ilya Verbin <ilya.verbin@intel.com>
2200 Kirill Yukhin <kirill.yukhin@intel.com>
2201 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2203 * config/i386/sse.md
2204 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2205 Use `concat_tg_mode' attribute to determine asm register size.
2207 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2209 Anna Tikhonova <anna.tikhonova@intel.com>
2210 Ilya Tocar <ilya.tocar@intel.com>
2211 Andrey Turetskiy <andrey.turetskiy@intel.com>
2212 Ilya Verbin <ilya.verbin@intel.com>
2213 Kirill Yukhin <kirill.yukhin@intel.com>
2214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2216 * config/i386/sse.md
2217 (define_mode_iterator VI48_AVX512VL): New.
2218 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2219 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2220 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2221 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2222 with VI1): Change mode iterator.
2223 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2224 with VI_ULOADSTORE_BW_AVX512VL): New.
2225 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2226 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2227 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2228 with VI1): Change mode iterator.
2229 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2230 with VI_ULOADSTORE_BW_AVX512VL): New.
2231 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2232 with VI_ULOADSTORE_F_AVX512VL): Ditto.
2233 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2234 with VI1): Change mode iterator.
2235 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2236 with VI_ULOADSTORE_BW_AVX512VL): New.
2237 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2238 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2239 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2240 (define_insn "<avx512>_storedqu<mode>_mask" with
2241 VI48_AVX512VL): New.
2242 (define_insn "<avx512>_storedqu<mode>_mask" with
2243 VI12_AVX512VL): Ditto.
2245 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2246 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2247 Anna Tikhonova <anna.tikhonova@intel.com>
2248 Ilya Tocar <ilya.tocar@intel.com>
2249 Andrey Turetskiy <andrey.turetskiy@intel.com>
2250 Ilya Verbin <ilya.verbin@intel.com>
2251 Kirill Yukhin <kirill.yukhin@intel.com>
2252 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2254 * config/i386/sse.md
2255 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2256 (define_mode_iterator VI48_AVX512BW): New.
2257 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2258 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2259 with VI48_AVX2_48_AVX512F): New.
2260 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2261 with VI2_AVX512VL): Ditto.
2263 2014-08-27 Richard Biener <rguenther@suse.de>
2266 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2267 (fold_builtin_3): Do not fold strcat_chk here.
2268 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2270 (gimple_fold_builtin): Fold strcat_chk here.
2272 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
2274 * dwarf2out.h (dwarf2out_decl): Remove prototype.
2275 * dwarf2out.c (dwarf2out_decl): Make static.
2277 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
2279 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2281 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2283 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2284 from rtx to rtx_insn *.
2285 (cselib_lookup_from_insn): Likewise for final param.
2286 (cselib_subst_to_values_from_insn): Likewise.
2287 (cselib_add_permanent_equiv): Likewise.
2289 * cselib.c (cselib_current_insn): Likewise for this variable.
2290 (cselib_subst_to_values_from_insn): Likewise for param "insn".
2291 (cselib_lookup_from_insn): Likewise.
2292 (cselib_add_permanent_equiv): Likewise for param "insn" and local
2293 "save_cselib_current_insn".
2294 (cselib_process_insn): Replace use of NULL_RTX with NULL.
2296 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2297 from rtx to rtx_insn *.
2299 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2301 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2304 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2306 * df.h (df_dump_insn_problem_function): Strengthen first param of
2307 this callback from const_rtx to const rtx_insn *.
2308 (struct df_insn_info): Strengthen field "insn" from rtx to
2310 (DF_REF_INSN): Eliminate this function, reinstating the older
2312 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2313 (df_reg_defined): Likewise.
2314 (df_find_use): Likewise.
2315 (df_reg_used): Likewise.
2316 (df_dump_insn_top): Strengthen param 1 from const_rtx to
2318 (df_dump_insn_bottom): Likewise.
2319 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2320 (df_insn_debug_regno): Likewise.
2321 (debug_df_insn): Likewise.
2322 (df_rd_simulate_one_insn): Likewise for param 2.
2323 (df_word_lr_simulate_defs): Likewise for param 1.
2324 (df_word_lr_simulate_uses): Likewise.
2325 (df_md_simulate_one_insn): Likewise for param 2.
2326 (df_simulate_find_noclobber_defs): Likewise for param 1.
2327 (df_simulate_find_defs): Likewise.
2328 (df_simulate_defs): Likewise.
2329 (df_simulate_uses): Likewise.
2330 (df_simulate_one_insn_backwards): Likewise for param 2.
2331 (df_simulate_one_insn_forwards): Likewise.
2332 (df_uses_create): Likewise for param 2.
2333 (df_insn_create_insn_record): Likewise for param 1.
2334 (df_insn_delete): Likewise.
2335 (df_insn_rescan): Likewise.
2336 (df_insn_rescan_debug_internal): Likewise.
2337 (df_insn_change_bb): Likewise.
2338 (df_notes_rescan): Likewise.
2339 * rtl.h (remove_death): Likewise for param 2.
2340 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2342 * sched-int.h (reemit_notes): Strengthen param from rtx to
2344 * valtrack.h (propagate_for_debug): Likewise for param 1.
2346 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2347 local "tmp_rtx" from const_rtx to const rtx_insn *.
2348 * combine.c (remove_death): Strengthen param "insn" from rtx to
2350 (move_deaths): Likewise for local "where_dead".
2351 * cse.c (delete_trivially_dead_insns): Introduce local
2352 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2353 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2355 (df_reg_defined): Likewise.
2356 (df_find_use): Likewise.
2357 (df_reg_used): Likewise.
2358 (df_dump_insn_problem_data): Strengthen param "insn" from
2359 const_rtx to const rtx_insn *.
2360 (df_dump_insn_top): Likewise.
2361 (df_dump_insn_bottom): Likewise.
2362 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2363 (df_insn_debug_regno): Likewise.
2364 (debug_df_insn): Likewise.
2365 (DF_REF_INSN): Delete.
2366 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2367 from rtx to rtx_insn *.
2368 (df_chain_insn_top_dump): Strengthen param "insn" from
2369 const_rtx to const rtx_insn *.
2370 (df_chain_insn_bottom_dump): Likewise.
2371 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2373 (df_word_lr_simulate_uses): Likewise.
2374 (df_print_note): Likewise.
2375 (df_remove_dead_and_unused_notes): Likewise.
2376 (df_set_unused_notes_for_mw): Likewise.
2377 (df_set_dead_notes_for_mw): Likewise.
2378 (df_create_unused_note): Likewise.
2379 (df_simulate_find_defs): Likewise.
2380 (df_simulate_find_uses): Likewise.
2381 (df_simulate_find_noclobber_defs): Likewise.
2382 (df_simulate_defs): Likewise.
2383 (df_simulate_uses): Likewise.
2384 (df_simulate_one_insn_backwards): Likewise.
2385 (df_simulate_one_insn_forwards): Likewise.
2386 (df_md_simulate_one_insn): Likewise.
2387 * df-scan.c (df_uses_create): Likewise.
2388 (df_insn_create_insn_record): Likewise.
2389 (df_insn_delete): Likewise.
2390 (df_insn_rescan): Likewise.
2391 (df_insn_rescan_debug_internal): Likewise.
2392 (df_insn_change_bb): Likewise.
2393 (df_notes_rescan): Likewise.
2394 (df_refs_add_to_chains): Likewise.
2395 (df_insn_refs_verify): Likewise.
2396 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2397 when invoking df_insn_delete.
2398 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2399 (set_unique_reg_note): Add checked cast.
2400 * final.c (cleanup_subreg_operands): Likewise.
2401 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2402 "insn" from rtx to rtx_insn *.
2403 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2404 "last" from rtx to rtx_insn *.
2405 * ira-emit.c (change_regs_in_insn): New function.
2406 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2407 Invoke change_regs_in_insn rather than change_regs.
2408 * ira.c (update_equiv_regs): Strengthen locals "insn",
2409 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
2410 for_each_rtx_in_insn rather than for_each_rtx.
2411 * recog.c (confirm_change_group): Add checked casts.
2412 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2414 (peep2_fill_buffer): Add checked cast.
2415 * rtlanal.c (remove_note): Likewise.
2416 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2417 locals "next" "end" from rtx to rtx_insn *.
2419 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2421 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2423 (struct reg_use_data): Likewise for field "insn".
2424 (insn_cost): Likewise for param.
2425 (real_insn_for_shadow): Likewise for return type and param.
2426 (increase_insn_priority): Likewise for param 1.
2427 (debug_dependencies): Likewise for both params.
2429 * haifa-sched.c (insn_delay): Likewise for param "insn".
2430 (real_insn_for_shadow): Likewise for return type and param "insn".
2431 (update_insn_after_change): Likewise for param "insn".
2432 (recompute_todo_spec): Likewise for param "next" and locals "pro",
2434 (insn_cost): Likewise for param "insn".
2435 (increase_insn_priority): Likewise.
2436 (calculate_reg_deaths): Likewise.
2437 (setup_insn_reg_pressure_info): Likewise.
2438 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2439 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2440 (model_recompute): Likewise.
2441 (must_restore_pattern_p): Likewise for param "next".
2442 (model_excess_cost): Likewise for param "insn".
2443 (queue_remove): Likewise.
2444 (adjust_priority): Likewise for param "prev".
2445 (update_register_pressure): Likewise for param "insn".
2446 (setup_insn_max_reg_pressure): Likewise for local "insn".
2447 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2448 (model_add_to_schedule): Likewise.
2449 (model_reset_queue_indices): Likewise for local "insn".
2450 (unschedule_insns_until): Strengthen local "recompute_vec" from
2451 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
2452 "con" from rtx to rtx_insn *.
2453 (restore_last_backtrack_point): Likewise for both locals "x". Add
2455 (estimate_insn_tick): Likewise for param "insn".
2456 (commit_schedule): Likewise for params "prev_head", "tail" and
2458 (verify_shadows): Likewise for locals "i1", "i2".
2459 (dump_insn_stream): Likewise for params "head", "tail" and locals
2460 "next_tail", "insn".
2461 (schedule_block): Likewise for locals "insn", "x". Add a checked
2463 (fix_inter_tick): Likewise for params "head", "tail".
2464 (create_check_block_twin): Likewise for local "jump".
2465 (haifa_change_pattern): Likewise for param "insn".
2466 (haifa_speculate_insn): Likewise.
2467 (dump_new_block_header): Likewise for params "head", "tail".
2468 (fix_jump_move): Likewise for param "jump".
2469 (move_block_after_check): Likewise.
2470 (sched_init_insn_luid): Likewise for param "insn".
2471 (sched_init_luids): Likewise for local "insn".
2472 (insn_luid): Likewise for param "insn".
2473 (init_h_i_d): Likewise.
2474 (haifa_init_h_i_d): Likewise for local "insn".
2475 (haifa_init_insn): Likewise for param "insn".
2476 * sched-deps.c (add_dependence): Likewise for local "real_pro",
2478 (create_insn_reg_use): Likewise for param "insn".
2479 (setup_insn_reg_uses): Likewise. Add a checked cast.
2480 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2481 "tail" from rtx to rtx_insn *.
2482 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2483 "insn", "next_tail".
2485 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2487 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2488 from rtx to rtx_insn *.
2489 (model_add_to_schedule): Likewise for locals "start", "end",
2492 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2494 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2496 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
2497 "to" and locals "insn", "next", "copy". Remove now-redundant
2500 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2502 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2503 rtx_insn * and param 4 from rtx * to rtx_insn **.
2504 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2505 param 2 from rtx * to rtx_insn **.
2507 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2508 rtx_insn * and final param from rtx * to rtx_insn **.
2510 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2511 from rtx to rtx_insn *.
2512 (try_head_merge_bb): Likewise for both locals named "move_upto".
2513 * df-problems.c (can_move_insns_across): Likewise for params
2514 "from", "to", "across_from", "across_to" and locals "insn",
2515 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
2517 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
2518 from rtx to rtx_insn *.
2519 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
2520 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
2521 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
2523 (noce_try_abs): Likewise.
2524 (noce_get_condition): Likewise for param "jump". Strengthen param
2525 "earliest" from rtx * to rtx_insn **.
2526 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
2528 (find_cond_trap): Likewise.
2529 (dead_or_predicable): Likewise for local "earliest".
2530 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
2532 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
2533 and local "prev". Strengthen param "earliest" from rtx * to
2535 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
2536 Strengthen param "earliest" from rtx * to rtx_insn **.
2538 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2540 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
2541 "to" and local "insn" from rtx to rtx_insn *.
2543 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2545 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
2546 from rtx to rtx_insn *.
2547 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
2548 (code_motion_path_driver): Likewise for local "last_insn".
2549 (simplify_changed_insns): Likewise for local "insn".
2551 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2553 * rtl.h (push_to_sequence): Strengthen param from rtx to
2555 (push_to_sequence2): Likewise for both params.
2556 (delete_insns_since): Likewise for param.
2557 (reorder_insns_nobb): Likewise for all three params.
2558 (set_new_first_and_last_insn): Likewise for both params.
2560 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
2561 rtx_insn *. Remove now-redundant cast.
2562 (set_last_insn): Likewise.
2564 * builtins.c (expand_builtin_return): Strengthen local
2565 "call_fusage" from rtx to rtx_insn *.
2566 * cfgrtl.c (create_basic_block_structure): Likewise for local
2568 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
2569 "first", "last" and local "insn".
2570 (delete_insns_since): Likewise for param "from".
2571 (reorder_insns_nobb): Likewise for params "from", "to", "after"
2573 (push_to_sequence): Likewise for param "first" and local "last".
2574 (push_to_sequence2): Likewise for params "first" and "last".
2575 * lra.c (emit_add3_insn): Likewise for local "last".
2576 (lra_emit_add): Likewise.
2577 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
2579 (process_address_1): Likewise for locals "insn", last".
2580 * modulo-sched.c (ps_first_note): Likewise for return type.
2581 * optabs.c (expand_binop_directly): Likewise for param "last".
2583 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2585 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
2587 * emit-rtl.c (get_last_insn_anywhere): Likewise.
2589 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2591 * function.h (struct sequence_stack): Strengthen fields "first"
2592 and "last" from rtx to rtx_insn *.
2593 (struct emit_status): Likewise for fields "x_first_insn" and
2596 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
2597 (set_first_insn): Add checked cast.
2598 (get_last_insn): Remove now-redundant checked cast.
2599 (set_last_insn): Add checked cast.
2601 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
2602 "saved_first" and "saved_last" from rtx to rtx_insn *.
2604 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2606 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
2607 (unlink_insn_chain): Strengthen both params from rtx to
2610 * cfgrtl.c (cfg_layout_function_header): Likewise for this
2612 (unlink_insn_chain): Likewise for params "first" and "last".
2613 Remove now-redundant checked cast.
2614 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
2615 (fixup_reorder_chain): Strengthen local "insn" from rtx to
2617 * emit-rtl.c (link_insn_into_chain): Likewise for all three
2619 (add_insn): Likewise for param "insn" and local "prev".
2620 (add_insn_after_nobb): Likewise for both params and local "next".
2621 (add_insn_before_nobb): Likewise for both params and local "prev".
2622 (add_insn_after): Rename param "after" to "uncast_after",
2623 introducing local "after" with another checked cast.
2624 (add_insn_before): Rename params "insn" and "before", giving them
2625 "uncast_" prefixes, adding the old names back using checked casts.
2626 (emit_note_after): Likewise for param "after".
2627 (emit_note_before): Likewise for param "before".
2628 (emit_label): Add a checked cast.
2630 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2632 * cselib.h (cselib_record_sets_hook): Strengthen initial param
2633 "insn" from rtx to rtx_insn *.
2635 * cselib.c (cselib_record_sets_hook): Likewise.
2637 * var-tracking.c (add_with_sets): Likewise, renaming back from
2638 "uncast_insn" to "insn" and eliminating the checked cast from rtx
2641 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2643 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
2644 and "header_" from rtx to rtx_insn *.
2645 (struct basic_block_d): Likewise for field "head_" within "x"
2646 field of union basic_block_il_dependent.
2647 (BB_HEAD): Drop function...
2648 (SET_BB_HEAD): ...and this function in favor of...
2649 (BB_HEAD): ...reinstate macro.
2650 (BB_END): Drop function...
2651 (SET_BB_END): ...and this function in favor of...
2652 (BB_END): ...reinstate macro.
2653 (BB_HEADER): Drop function...
2654 (SET_BB_HEADER): ...and this function in favor of...
2655 (BB_HEADER): ...reinstate macro.
2657 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
2658 (fix_crossing_unconditional_branches): Likewise.
2659 * caller-save.c (save_call_clobbered_regs): Likewise.
2660 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
2661 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
2662 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2663 (merge_blocks_move_successor_nojumps): Likewise.
2664 (outgoing_edges_match): Update use of for_each_rtx to
2665 for_each_rtx_in_insn.
2666 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
2667 (expand_gimple_cond): Likewise.
2668 (expand_gimple_tailcall): Likewise.
2669 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
2671 (construct_exit_block): Drop use of SET_BB_END.
2672 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
2674 (delete_insn): Rename param "insn" to "uncast_insn", introducing
2675 a new local "insn" with a checked cast to rtx_insn *. Drop use of
2676 SET_BB_HEAD and SET_BB_END.
2677 (create_basic_block_structure): Drop use of SET_BB_HEAD and
2679 (rtl_delete_block): Drop use of SET_BB_HEAD.
2680 (rtl_split_block): Drop use of SET_BB_END.
2681 (emit_nop_for_unique_locus_between): Likewise.
2682 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
2683 (block_label): Drop use of SET_BB_HEAD.
2684 (fixup_abnormal_edges): Drop use of SET_BB_END.
2685 (record_effective_endpoints): Drop use of SET_BB_HEADER.
2686 (relink_block_chain): Likewise.
2687 (fixup_reorder_chain): Drop use of SET_BB_END.
2688 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
2689 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
2690 rtx_insn **. Drop use of SET_BB_HEADER.
2691 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
2693 (BB_HEAD): Delete this function.
2694 (SET_BB_HEAD): Likewise.
2696 (SET_BB_END): Likewise.
2697 (BB_HEADER): Likewise.
2698 (SET_BB_HEADER): Likewise.
2699 * emit-rtl.c (add_insn_after): Rename param "insn" to
2700 "uncast_insn", adding a new local "insn" and a checked cast to
2701 rtx_insn *. Drop use of SET_BB_END.
2702 (remove_insn): Strengthen locals "next" and "prev" from rtx to
2703 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
2704 (reorder_insns): Drop use of SET_BB_END.
2705 (emit_insn_after_1): Strengthen param "first" and locals "last",
2706 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
2707 (emit_pattern_after_noloc): Add checked cast.
2708 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
2709 (restore_other_notes): Likewise.
2710 (move_insn): Likewise.
2711 (sched_extend_bb): Likewise.
2712 (fix_jump_move): Likewise.
2713 * ifcvt.c (noce_process_if_block): Likewise.
2714 (dead_or_predicable): Likewise.
2715 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
2716 * reg-stack.c (change_stack): Drop use of SET_BB_END.
2717 * sel-sched-ir.c (sel_move_insn): Likewise.
2718 * sel-sched.c (move_nop_to_previous_block): Likewise.
2720 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
2722 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2724 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2726 * basic-block.h (create_basic_block_structure): Strengthen params
2727 1 "head" and 2 "end" from rtx to rtx_insn *.
2728 * cfgrtl.c (create_basic_block_structure): Likewise.
2729 (rtl_create_basic_block): Update casts from void * to rtx to
2730 rtx_insn *, so that we can pass them as rtx_insn * to
2731 create_basic_block_structure.
2732 * sel-sched-ir.c (sel_create_basic_block): Likewise.
2734 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2736 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
2738 (check_for_inc_dec): Strengthen param "insn" from rtx to
2741 * cselib.h (cselib_process_insn): Likewise.
2743 * cselib.c (cselib_record_sets): Likewise.
2744 (cselib_process_insn): Likewise.
2746 * dse.c (struct insn_info): Likewise for field "insn".
2747 (check_for_inc_dec_1): Likewise for local "insn".
2748 (check_for_inc_dec): Likewise for param "insn".
2749 (scan_insn): Likewise.
2750 (dse_step1): Likewise for local "insn".
2752 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
2753 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
2755 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2757 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
2758 from rtx to rtx_insn *.
2759 (DEP_PRO): Delete this function and...
2760 (SET_DEP_PRO): ...this function in favor of...
2761 (DEP_PRO): ...reinstate this macro.
2762 (DEP_CON): Delete this function and...
2763 (SET_DEP_CON): ...this function in favor of...
2764 (DEP_CON): ...reinstate this old macro.
2765 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
2766 (init_dep): Likewise.
2767 (set_priorities): Likewise for both params.
2768 (sd_copy_back_deps): Likewise for params 1 and 2.
2770 * haifa-sched.c (priority): Likewise for param "insn" and local
2772 (set_priorities): Likewise for params "head" and "tail" and local
2774 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
2776 (add_to_speculative_block): Add a checked cast.
2777 (create_check_block_twin): Drop use of SET_DEP_CON.
2778 (add_jump_dependencies): Strengthen params "insn" and "jump" from
2781 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
2782 Drop use of SET_DEP_PRO
2783 (init_dep): Strengthen params "pro" and "con" from rtx to
2785 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
2789 (SET_DEP_PRO): Delete.
2790 (SET_DEP_CON): Delete.
2792 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2794 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
2795 from rtx to rtx_insn *.
2796 (VINSN_INSN_RTX): Eliminate rvalue function and...
2797 (SET_VINSN_INSN): ...lvalue function in favor of...
2798 (VINSN_INSN_RTX): reinstate this old macro.
2800 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
2801 in favor of VINSN_INSN_RTX.
2802 (VINSN_INSN_RTX): Delete this function.
2803 (SET_VINSN_INSN_RTX): Likewise.
2805 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2807 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
2808 (BND_TO): Delete this function and...
2809 (SET_BND_TO): ...this functions in favor of...
2810 (BND_TO): ...reinstating this macro.
2811 (struct _fence): Strengthen field "executing_insns" from
2812 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
2813 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
2814 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
2815 and param "insn" from rtx to insn_t.
2816 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
2819 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
2821 (rtx_vec_t): Likewise.
2822 (struct sched_deps_info_def): Strengthen param of "start_insn"
2823 callback from rtx to rtx_insn *. Likewise for param "insn2" of
2824 "note_mem_dep" callback and first param of "note_dep" callback.
2826 * haifa-sched.c (add_to_speculative_block): Strengthen param
2827 "insn" from rtx to rtx_insn *.
2828 (clear_priorities): Likewise.
2829 (calc_priorities): Likewise for local "insn".
2831 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
2832 Remove redundant checked cast.
2833 (haifa_note_mem_dep): Likewise for param "pending_insn".
2834 (haifa_note_dep): Likewise for param "elem".
2835 (note_mem_dep): Likewise for param "e".
2836 (sched_analyze_1): Add checked casts.
2837 (sched_analyze_2): Likewise.
2839 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
2840 from rtx to rtx_insn *.
2841 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
2842 from vec<rtx> * to vec<rtx_insn *> *.
2844 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
2846 (flist_add): Strengthen param "executing_insns" from
2847 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2848 (advance_deps_context): Remove now-redundant checked cast.
2849 (init_fences): Replace uses of NULL_RTX with NULL.
2850 (merge_fences): Strengthen params "last_scheduled_insn" and
2851 "sched_next" from rtx to rtx_insn * and "executing_insns" from
2852 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2853 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
2854 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
2855 an instruction, rather than doing double-duty as a pattern.
2856 (return_nop_to_pool): Update for change of insn_t.
2857 (deps_init_id): Remove now-redundant checked cast.
2858 (struct sched_scan_info_def): Strengthen param of "init_insn"
2859 callback from rtx to insn_t.
2860 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
2861 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
2863 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
2864 "end" from rtx to rtx_insn *.
2865 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
2866 (rtx insn_rtx, bool force_unique_p)
2867 (BND_TO): Delete function.
2868 (SET_BND_TO): Delete function.
2870 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
2872 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
2873 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
2875 (undo_transformations): Likewise for param "insn".
2876 (update_liveness_on_insn): Likewise.
2877 (compute_live_below_insn): Likewise for param "insn" and local
2879 (update_data_sets): Likewise for param "insn".
2880 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
2881 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
2882 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
2884 (move_cond_jump): Likewise for param "insn".
2885 (move_cond_jump): Drop use of SET_BND_TO.
2886 (compute_av_set_on_boundaries): Likewise.
2887 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
2888 (update_and_record_unavailable_insns): Strengthen local "bb_end"
2889 from rtx to rtx_insn *.
2890 (maybe_emit_renaming_copy): Likewise for param "insn".
2891 (maybe_emit_speculative_check): Likewise.
2892 (handle_emitting_transformations): Likewise.
2893 (remove_insn_from_stream): Likewise.
2894 (code_motion_process_successors): Strengthen local "succ" from rtx
2897 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2899 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
2900 ilist_t, not _xlist_t;
2901 (ILIST_INSN): Define in terms of new union field "insn".
2902 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
2904 (struct _list_node): Add new field "insn" to the union, of type
2906 (ilist_add): Replace macro with an inline function, requiring an
2908 (ilist_remove): Define this macro directly in terms of
2909 _list_remove, rather than indirectly via _xlist_remove.
2910 (ilist_clear): Likewise, in terms of _list_clear rather than
2912 (ilist_is_in_p): Replace macro with an inline function, requiring
2914 (_list_iter_cond_insn): New function.
2915 (ilist_iter_remove): Define this macro directly in terms of
2916 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
2917 (ilist_iterator): Define directly in terms of _list_iterator
2918 rather than indirectly through _xlist_iterator.
2919 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
2920 than in terms of _FOR_EACH_X.
2921 (FOR_EACH_INSN_1): Likewise.
2923 2014-08-26 Joseph Myers <joseph@codesourcery.com>
2927 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
2928 DECL_HARD_REGISTER and return for invalid register specifications.
2929 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
2930 DECL_HARD_REGISTER, call expand_one_error_var.
2931 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
2932 CC_REGNUM with non-MODE_CC modes.
2933 (arm_regno_class): Return NO_REGS for PC_REGNUM.
2935 2014-08-26 Marek Polacek <polacek@redhat.com>
2938 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
2940 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
2942 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
2943 qi cost; add di cost.
2944 (cortexa57_addrcost_table): Likewise.
2946 2014-08-26 Marek Polacek <polacek@redhat.com>
2949 * expr.c (is_aligning_offset): Remove logical not.
2951 2014-08-26 Marek Polacek <polacek@redhat.com>
2954 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
2955 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
2957 2014-08-26 Richard Biener <rguenther@suse.de>
2959 PR tree-optimization/62175
2960 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2961 expand possibly trapping operations.
2963 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2965 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
2966 "insn" from rtx to rtx_insn *.
2967 (permute_load): Likewise for param "insn".
2968 (permute_store): Likewise.
2969 (handle_special_swappables): Likewise for local "insn".
2970 (replace_swap_with_copy): Likewise for locals "insn" and
2972 (rs6000_analyze_swaps): Likewise for local "insn".
2974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2976 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
2979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2981 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
2982 "note_list" from rtx to rtx_insn *.
2983 (BB_NOTE_LIST): Replace this function and...
2984 (SET_BB_NOTE_LIST): ...this function with...
2985 (BB_NOTE_LIST): ...the former macro implementation.
2987 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
2988 local "from_start" from rtx to rtx_insn *. Strengthen param
2989 "to_endp" from rtx * to rtx_insn **.
2991 * haifa-sched.c (concat_note_lists): Likewise.
2992 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
2994 (sel_restore_notes): Likewise.
2995 (move_bb_info): Likewise.
2996 (BB_NOTE_LIST): Delete this function.
2997 (SET_BB_NOTE_LIST): Delete this function.
2998 * sel-sched.c (create_block_for_bookkeeping): Eliminate
2999 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3003 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3004 from rtx * to rtx_insn **.
3005 (reorder2): Likewise.
3006 (dependencies_evaluation_hook): Strengthen params "head", "tail"
3007 from rtx to rtx_insn *.
3009 * doc/tm.texi: Update mechanically for above change to target.def.
3011 * sched-int.h (note_list): Strengthen this variable from rtx to
3013 (remove_notes): Likewise for both params.
3014 (restore_other_notes): Likewise for return type and first param.
3015 (struct ready_list): Strengthen field "vec" from rtx * to
3017 (struct dep_replacement): Strenghten field "insn" from rtx to
3019 (struct deps_desc): Likewise for fields "last_debug_insn",
3021 (struct haifa_sched_info): Likewise for callback field
3022 "can_schedule_ready_p"'s param, for first param of "new_ready"
3023 callback field, for both params of "rank" callback field, for
3024 first field of "print_insn" callback field (with a const), for
3025 both params of "contributes_to_priority" callback, for param
3026 of "insn_finishes_block_p" callback, for fields "prev_head",
3027 "next_tail", "head", "tail", for first param of "add_remove_insn"
3028 callback, for first param of "begin_schedule_ready" callback, for
3029 both params of "begin_move_insn" callback, and for second param
3030 of "advance_target_bb" callback.
3031 (add_dependence): Likewise for params 1 and 2.
3032 (sched_analyze): Likewise for params 2 and 3.
3033 (deps_analyze_insn): Likewise for param 2.
3034 (ready_element): Likewise for return type.
3035 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3036 (try_ready): Strenghten param from rtx to rtx_insn *.
3037 (sched_emit_insn): Likewise for return type.
3038 (record_delay_slot_pair): Likewise for params 1 and 2.
3039 (add_delay_dependencies): Likewise for param.
3040 (contributes_to_priority): Likewise for both params.
3041 (find_modifiable_mems): Likewise.
3043 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
3044 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
3045 "first_older_only_insn" from rtx to rtx_insn *.
3046 (arm_sched_reorder): Strengthen param "ready" from rtx * to
3049 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3050 "last_scheduled_iter0" from rtx to rtx_insn *.
3051 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3052 (c6x_sched_reorder_1): Strengthen param "ready" and locals
3053 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3054 "insn" from rtx to rtx_insn *.
3055 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3057 (c6x_sched_reorder2): Strengthen param "ready" and locals
3058 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3059 "insn" from rtx to rtx_insn *.
3060 (c6x_variable_issue): Add a checked cast when assigning from insn
3061 to ss.last_scheduled_iter0.
3062 (split_delayed_branch): Strengthen param "insn" and local "i1"
3063 from rtx to rtx_insn *.
3064 (split_delayed_nonbranch): Likewise.
3065 (undo_split_delayed_nonbranch): Likewise for local "insn".
3066 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3067 "entry_after", "end_packet", "head_insn", "tail_insn",
3068 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3069 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3070 to rtx_insn **. Remove now-redundant checked cast on last_insn,
3071 but add a checked cast on loop->start_label. Consolidate calls to
3072 avoid assigning result of gen_spkernel to "insn", now an
3075 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3076 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
3078 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3079 rtx_insn **. Strengthen locals "top", "next" from rtx to
3081 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3082 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3083 (add_parameter_dependencies): Strengthen params "call", "head" and
3084 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3085 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3086 (add_dependee_for_func_arg): Likewise for param "arg" and local
3088 (ix86_dependencies_evaluation_hook): Likewise for params "head",
3089 "tail" and locals "insn", "first_arg".
3091 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3092 for params "head", "tail" and locals "insn", "next", "next_tail".
3093 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3094 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3095 "insn", "lowest", "highest" from rtx to rtx_insn *.
3096 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3098 (ia64_sched_reorder2): Likewise.
3100 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3101 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
3102 from rtx * to rtx_insn **.
3103 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3105 (mep_print_sched_insn): Strengthen param "insn" from rtx to
3107 (mep_sched_reorder): Strengthen param "ready" from rtx * to
3108 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
3111 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3112 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
3114 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3115 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
3116 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3118 (vr4130_reorder): Likewise.
3119 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
3121 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3123 (mips_sched_reorder): Likewise.
3124 (mips_sched_reorder2): Likewise.
3126 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3128 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3129 Strengthen local "tmp" from rtx to rtx_insn *.
3130 (rs6000_sched_reorder2): Likewise.
3132 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3133 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3134 (s390_sched_reorder): Strengthen param "ready" from rtx * to
3135 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
3137 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3138 "tmp2" from rtx to rtx_insn *.
3139 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3140 Strengthen local "insn" from rtx to rtx_insn *.
3141 (ready_reorder): Strengthen param "ready" from rtx * to
3142 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3143 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
3144 (sh_reorder2): Likewise.
3146 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
3147 local "insn" from rtx to rtx_insn *.
3149 * haifa-sched.c (note_list): Strengthen this variable from rtx to
3151 (scheduled_insns): Strengthen this variable from vec<rtx> to
3153 (set_modulo_params): Likewise for locals "i1", "i2".
3154 (record_delay_slot_pair): Likewise for params "i1", "i2".
3155 (add_delay_dependencies): Likewise for param "insn".
3156 (cond_clobbered_p): Likewise.
3157 (recompute_todo_spec): Likewise for local "prev".
3158 (last_scheduled_insn): Likewise for this variable.
3159 (nonscheduled_insns_begin): Likewise.
3160 (model_set_excess_costs): Strengthen param "insns" from rtx * to
3162 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3164 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3165 Strengthen local "insn" from rtx to rtx_insn *.
3166 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3167 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3168 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3169 (ready_remove_first): Likewise for return type and local "t".
3170 (ready_element): Likewise for return type.
3171 (ready_remove): Likewise for return type and local "t".
3172 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3173 (check_clobbered_conditions): Strengthen local "x" from rtx to
3174 rtx_insn *, adding a checked cast.
3175 (schedule_insn): Likewise for param "insn".
3176 (remove_notes): Likewise for params "head", "tail" and locals
3177 "next_tail", "insn", "next".
3178 (struct haifa_saved_data): Likewise for fields
3179 "last_scheduled_insn", "nonscheduled_insns_begin".
3180 (save_backtrack_point): Update for change to field "vec" of
3182 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3184 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
3185 from rtx to rtx_insn *
3186 (resolve_dependencies): Strengthen param "insn" from rtx to
3188 (restore_other_notes): Likewise for return type, for param "head"
3189 and local "note_head".
3190 (undo_all_replacements): Likewise for local "insn".
3191 (first_nonscheduled_insn): Likewise for return type and local "insn".
3192 (queue_to_ready): Likewise for local "insn", adding checked casts.
3193 (early_queue_to_ready): Likewise for local "insn".
3194 (debug_ready_list_1): Strengthen local "p" from rtx * to
3196 (move_insn): Strengthen param "insn" and local "note" from rtx to
3198 (insn_finishes_cycle_p): Likewise for param "insn".
3199 (max_issue): Likewise for local "insn".
3200 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
3202 (commit_schedule): Strengthen param "prev_head" and local "insn"
3203 from rtx to rtx_insn *
3204 (prune_ready_list): Likewise for local "insn".
3205 (schedule_block): Likewise for locals "prev_head", "head", "tail",
3206 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3207 (set_priorities): Likewise for local "prev_head".
3208 (try_ready): Likewise for param "next".
3209 (fix_tick_ready): Likewise.
3210 (change_queue_index): Likewise.
3211 (sched_extend_ready_list): Update for change to field "vec" of
3213 (generate_recovery_code): Strengthen param "insn" from rtx to
3215 (begin_speculative_block): Likewise.
3216 (create_check_block_twin): Likewise for param "insn" and locals
3217 "label", "check", "twin". Introduce local "check_pat" to avoid
3218 "check" being used as a plain rtx before being used as an insn.
3219 (fix_recovery_deps): Add a checked cast to rtx_insn * when
3220 extracting elements from ready_list.
3221 (sched_remove_insn): Strengthen param "insn" from rtx to
3223 (sched_emit_insn): Likewise for return type.
3224 (ready_remove_first_dispatch): Likewise for return type and local
3227 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3229 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3232 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3233 from rtx to rtx_insn *.
3234 (add_dependence_list): Likewise for param "insn". Add a checked
3236 (add_dependence_list_and_free): Strengthen param "insn" from rtx
3237 to rtx_insn *. Strengthen param "list_p" from rtx * to
3239 (chain_to_prev_insn): Strengthen param "insn" and locals
3240 "prec_nonnote", "i" from rtx to rtx_insn *.
3241 (flush_pending_lists): Likewise for param "insn".
3242 (cur_insn): Likewise for this variable.
3243 (haifa_start_insn): Add a checked cast.
3244 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3245 (sched_analyze_reg): Likewise for param "insn".
3246 (sched_analyze_1): Likewise.
3247 (sched_analyze_2): Likewise. Add checked casts.
3248 (sched_analyze_insn): Likewise. Also for local "prev".
3249 (deps_analyze_insn): Likewise for param "insn".
3250 (sched_analyze): Likewise for params "head", "tail" and local "insn".
3251 (add_dependence_1): Likewise for params "insn", "elem".
3252 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3253 (parse_add_or_inc): Likewise for param "insn".
3254 (find_inc): Likewise for local "inc_cand".
3255 (find_modifiable_mems): Likewise for params "head", "tail" and
3256 locals "insn", "next_tail".
3258 * sched-ebb.c (init_ready_list): Likewise for local "insn".
3259 (begin_schedule_ready): Likewise for param "insn".
3260 (begin_move_insn): Likewise for params "insn" and "last".
3261 (ebb_print_insn): Strengthen param "insn" from const_rtx to
3263 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3264 (ebb_contributes_to_priority): Likewise for params "next", "insn".
3265 (ebb_add_remove_insn): Likewise for param "insn".
3266 (advance_target_bb): Likewise.
3268 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3270 (check_live): Likewise for param "insn".
3271 (init_ready_list): Likewise for local "insn".
3272 (can_schedule_ready_p): Likewise for param "insn".
3273 (begin_schedule_ready): Likewise.
3274 (new_ready): Likewise for param "next".
3275 (rgn_print_insn): Likewise for param "insn".
3276 (rgn_rank): Likewise for params "insn1", "insn2".
3277 (contributes_to_priority): Likewise for params "next", "insn".
3278 (rgn_insn_finishes_block_p): Likewise for param "insn".
3279 (add_branch_dependences): Likewise for params "head", "tail" and
3280 locals "insn", "last".
3281 (rgn_add_remove_insn): Likewise for param "insn".
3282 (advance_target_bb): Likewise.
3284 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3285 const_rtx to const rtx_insn *.
3287 * sel-sched-dump.h (sel_print_insn): Likewise.
3289 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3290 (deps_init_id): Likewise.
3292 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3293 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3298 * output.h (final_start_function): Strengthen param 1 from rtx to
3301 * final.c (final_start_function): Likewise, renaming back from
3302 "uncast_first" to "first", and dropping the checked cast from rtx
3305 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3307 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3308 * final.c (final): Likewise. Rename param back from
3309 "uncast_first" to "first" and eliminate the checked cast from rtx
3312 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3314 * output.h (shorten_branches): Strengthen param from rtx to
3317 * final.c (shorten_branches): Likewise, renaming param back from
3318 "uncast_first" to "first", and dropping the checked cast from rtx
3321 * genattr.c (gen_attr): Likewise when writing out the prototype of
3324 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3326 * sched-int.h (struct haifa_sched_info): Strengthen fields
3327 "prev_head" and "next_tail" from rtx to rtx_insn *.
3329 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3331 * rtl.h (rtx_jump_table_data::get_labels): New method.
3332 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3333 with use of the new rtx_jump_table_data::get_labels method.
3334 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3335 to rtx_jump_table_data *. Simplify by using get_labels method.
3336 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3337 a dyn_cast, introducing local "table", using it to replace
3338 label-lookup logic with a get_labels method call.
3339 (patch_jump_insn): Simplify using get_labels method.
3340 * dwarf2cfi.c (create_trace_edges): Likewise.
3341 * rtlanal.c (label_is_jump_target_p): Likewise.
3343 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3345 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3348 * emit-rtl.c (unshare_all_rtl_1): Likewise.
3349 (unshare_all_rtl_again): Likewise, also for local "p".
3351 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3353 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3355 * cfgrtl.c (delete_insn_and_edges): Likewise.
3357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3359 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3360 from rtx to rtx_insn *.
3362 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3366 * function.c (thread_prologue_and_epilogue_insns): Likewise for
3367 locals "returnjump", "epilogue_end", "insn", "next".
3369 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3370 "returnjump" from rtx * to rtx_insn **.
3371 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3373 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3375 * basic-block.h (struct edge_def). Strengthen "r" within
3376 union edge_def_insns from rtx to rtx_insn *.
3378 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3379 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
3381 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3382 from rtx to rtx_insn *.
3383 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3385 * postreload-gcse.c (reg_killed_on_edge): Likewise.
3386 (reg_used_on_edge): Likewise.
3387 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3388 (gt_pch_nx): New overload for rtx_insn *&.
3389 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3390 from rtx to rtx_insn *.
3392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3394 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3395 from rtx to rtx_insn *.
3396 (BB_FOOTER): Replace function with access macro.
3397 (SET_BB_FOOTER): Delete.
3399 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3401 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3402 (emit_barrier_after_bb): Likewise.
3403 (record_effective_endpoints): Likewise.
3404 (relink_block_chain): Likewise.
3405 (fixup_fallthru_exit_predecessor): Likewise.
3406 (cfg_layout_duplicate_bb): Likewise.
3407 (cfg_layout_split_block): Likewise.
3408 (cfg_layout_delete_block): Likewise.
3409 (cfg_layout_merge_blocks): Likewise.
3410 (BB_FOOTER): Delete function.
3411 (SET_BB_FOOTER): Delete function.
3412 * combine.c (update_cfg_for_uncondjump): Replace uses of
3413 SET_BB_FOOTER with BB_FOOTER.
3415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3417 * except.h (struct eh_landing_pad_d): Strengthen field
3418 "landing_pad" from rtx to rtx_code_label *.
3420 * except.c (sjlj_emit_dispatch_table): Likewise for param
3422 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3426 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3427 first param from rtx to rtx_insn *.
3428 * config/xtensa/xtensa.c (struct machine_function): Likewise for
3429 field "set_frame_ptr_insn".
3430 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3431 "csend" from rtx to rtx_code_label *.
3432 (xtensa_expand_atomic): Likewise for local "csloop".
3433 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3435 (xtensa_call_tls_desc): Likewise for return type and locals
3436 "call_insn", "insns".
3437 (xtensa_legitimize_tls_address): Likewise for local "insns".
3438 (xtensa_expand_prologue): Likewise for locals "insn", "first".
3440 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3442 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3443 first param from rtx to rtx_insn *.
3444 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3447 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3449 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3450 Strengthen param 1 from rtx to rtx_insn *.
3451 (tilepro_output_cbranch): Likewise.
3452 (tilepro_adjust_insn_length): Likewise.
3453 (tilepro_final_prescan_insn): Likewise for sole param.
3455 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3456 Likewise for local "last".
3457 (cbranch_predicted_p): Likewise for param "insn".
3458 (tilepro_output_simple_cbranch_with_opcode): Likewise.
3459 (tilepro_output_cbranch_with_opcode): Likewise.
3460 (tilepro_output_cbranch): Likewise.
3461 (frame_emit_load): Likewise for return type and locals "seq",
3463 (emit_sp_adjust): Likewise for return type and local "insn".
3464 (tilepro_expand_epilogue): Likewise for locals "last_insn",
3466 (tilepro_adjust_insn_length): Likewise for param "insn".
3467 (next_insn_to_bundle): Likewise for return type and params
3469 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3470 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3472 (match_addli_pcrel): Likewise for param "insn".
3473 (replace_addli_pcrel): Likewise.
3474 (match_auli_pcrel): Likewise.
3475 (replace_auli_pcrel): Likewise.
3476 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3478 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3479 "queue", "next_queue", "prev".
3480 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3481 (tilepro_final_prescan_insn): Likewise for param "insn".
3483 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3485 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3486 Strengthen param 1 from rtx to rtx_insn *.
3487 (tilegx_output_cbranch): Likewise.
3488 (tilegx_adjust_insn_length): Likewise.
3489 (tilegx_final_prescan_insn): Likewise for sole param.
3491 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3493 (cbranch_predicted_p): Likewise for param "insn".
3494 (tilegx_output_simple_cbranch_with_opcode): Likewise.
3495 (tilegx_output_cbranch_with_opcode): Likewise.
3496 (tilegx_output_cbranch): Likewise.
3497 (frame_emit_load): Likewise for return type.
3498 (set_frame_related_p): Likewise for locals "seq", "insn".
3499 (emit_sp_adjust): Likewise for return type, and for local "insn".
3500 Introduce local "pat" for use in place of "insn" where the latter
3501 isn't an instruction.
3502 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3503 from rtx to rtx_insn *.
3504 (tilegx_adjust_insn_length): Likewise for param "insn".
3505 (next_insn_to_bundle): Likewise for return type and params "r" and
3507 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3509 (replace_insns): Likewise for params "old_insn", "new_insns".
3510 (replace_mov_pcrel_step1): Likewise for param "insn" and local
3512 (replace_mov_pcrel_step2): Likewise.
3513 (replace_mov_pcrel_step3): Likewise.
3514 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3516 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3517 "queue", "next_queue", "prev".
3518 (tilegx_output_mi_thunk): Likewise for local "insn".
3519 (tilegx_final_prescan_insn): Likewise for param "insn".
3521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3523 * config/spu/spu.c (frame_emit_store): Strengthen return type from
3525 (frame_emit_load): Likewise.
3526 (frame_emit_add_imm): Likewise, also for local "insn".
3527 (spu_expand_prologue): Likewise for local "insn".
3528 (struct spu_bb_info): Likewise for field "prop_jump".
3529 (emit_nop_for_insn): Likewise for param "insn" and local
3531 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
3533 (spu_emit_branch_hint): Likewise for params "before", "branch" and
3534 locals "hint", "insn".
3535 (get_branch_target): Likewise for param "branch".
3536 (insn_clobbers_hbr): Likewise for param "insn".
3537 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
3538 locals "insn", "before_4", "before_16".
3539 (insert_hbrp): Likewise for local "insn".
3540 (spu_machine_dependent_reorg): Likewise for locals "branch",
3541 "insn", "next", "bbend".
3542 (uses_ls_unit): Likewise for param "insn".
3543 (get_pipe): Likewise.
3544 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
3545 introducing a checked cast.
3546 (spu_sched_adjust_cost): Likewise for params "insn" and
3548 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
3549 (spu_sms_res_mii): Likewise.
3551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3553 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
3554 from rtx to rtx_insn *.
3555 (output_cbranch): Likewise for param 6.
3556 (output_return): Likewise for param 1.
3557 (output_sibcall): Likewise.
3558 (output_v8plus_shift): Likewise.
3559 (output_v8plus_mult): Likewise.
3560 (output_v9branch): Likewise for param 7.
3561 (output_cbcond): Likewise for param 3.
3563 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
3565 (sparc_legitimize_pic_address): Likewise.
3566 (sparc_emit_call_insn): Likewise.
3567 (emit_save_or_restore_regs): Likewise.
3568 (emit_window_save): Likewise for return type and local "insn".
3569 (sparc_expand_prologue): Likewise for local "insn".
3570 (sparc_flat_expand_prologue): Likewise.
3571 (output_return): Likewise for param "insn".
3572 (output_sibcall): Likewise for param "insn" and local "delay".
3573 (output_ubranch): Likewise for param "insn".
3574 (output_cbranch): Likewise.
3575 (output_cbcond): Likewise.
3576 (output_v9branch): Likewise.
3577 (output_v8plus_shift): Likewise.
3578 (sparc_output_mi_thunk): Likewise for local "insn".
3579 (get_some_local_dynamic_name): Likewise.
3580 (output_v8plus_mult): Likewise for param "insn".
3582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3584 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
3585 from rtx to rtx_insn *.
3586 (output_branchy_insn): Likewise for param 3.
3587 (output_far_jump): Likewise for param 1.
3588 (final_prescan_insn): Likewise.
3589 (sh_insn_length_adjustment): Likewise for sole param.
3591 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
3592 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
3594 (sh_emit_compare_and_set): Likewise for local "lab".
3595 (output_far_jump): Strengthen param "insn" and local "prev" from
3597 (output_branchy_insn): Likewise for param "insn" and local
3599 (output_ieee_ccmpeq): Likewise for param "insn".
3600 (struct label_ref_list_d): Strengthen field "label" from rtx to
3602 (pool_node): Likewise.
3603 (pool_window_label): Likewise for this global.
3604 (add_constant): Likewise for return type and locals "lab", "new_rtx".
3605 (dump_table): Strengthen params "start", "barrier" and local
3606 "scan" from rtx to rtx_insn *.
3607 (broken_move): Likewise for param "insn".
3608 (untangle_mova): Likewise for params "first_mova" and "new_mova".
3609 Strengthen param "first_mova" from rtx * to rtx_insn **.
3610 (mova_p): Likewise for param "insn".
3611 (fixup_mova): Likewise for param "mova".
3612 (find_barrier): Likewise for return type, params "mova" and
3613 "from", and locals "barrier_before_mova", "found_barrier",
3614 "good_barrier", "orig", "last_symoff", "next". Strengthen local
3615 "label" from rtx to rtx_code_label *.
3616 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
3618 (sh_reorg): Likewise for locals "link", "scan", "barrier".
3619 (split_branches): Likewise for param "first" and local "insn".
3620 (final_prescan_insn): Likewise for param "insn".
3621 (sequence_insn_p): Likewise for locals "prev", "next".
3622 (sh_insn_length_adjustment): Likewise for param "insn".
3623 (sh_can_redirect_branch): Likewise for local "insn".
3624 (find_r0_life_regions): Likewise for locals "end", "insn".
3625 (sh_output_mi_thunk): Likewise for local "insns".
3627 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3629 * config/score/score.c (score_output_mi_thunk): Strengthen local
3630 "insn" from rtx to rtx_insn *.
3631 (score_prologue): Likewise.
3633 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3635 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
3636 1 from rtx to rtx_insn *.
3637 (s390_emit_jump): Likewise for return type.
3638 (s390_emit_call): Likewise.
3639 (s390_load_got): Likewise.
3641 * config/s390/s390.c (last_scheduled_insn): Likewise for this
3643 (s390_match_ccmode): Likewise for param "insn".
3644 (s390_emit_jump): Likewise for return type.
3645 (s390_split_branches): Likewise for local "label".
3646 (struct constant): Strengthen field "label" from rtx to
3648 (struct constant_pool): Likewise for field "label". Strengthen
3649 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
3651 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
3653 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
3654 (s390_end_pool): Likewise.
3655 (s390_dump_pool): Likewise for local "insn".
3656 (s390_mainpool_start): Likewise.
3657 (s390_chunkify_start): Likewise.
3658 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
3659 with insns. Strengthen locals "label", "jump", "barrier", "next",
3660 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
3661 (s390_chunkify_finish): Strengthen local "insn" from rtx to
3663 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
3664 "jump", "label", "next_insn".
3665 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
3666 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
3668 (s390_load_got): Likewise for return type and local "insns".
3669 (s390_save_gprs_to_fprs): Likewise for local "insn".
3670 (s390_restore_gprs_from_fprs): Likewise.
3671 (pass_s390_early_mach::execute): Likewise.
3672 (s390_emit_prologue): Likewise for local "insns".
3673 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
3675 (s390_emit_call): Strengthen return type and local "insn" from
3677 (s390_emit_tpf_eh_return): Likewise for local "insn".
3678 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
3679 "next_insn", introducing locals "s_pat", "rpat" to allow this.
3680 (s390_fix_long_loop_prediction): Likewise for param "insn" and
3682 (s390_non_addr_reg_read_p): Likewise for param "insn".
3683 (find_cond_jump): Likewise for return type and param "insn".
3684 (s390_swap_cmp): Likewise for param "insn".
3685 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
3686 "prev_insn", "next_insn".
3687 (s390_reorg): Likewise for locals "insn", "target".
3688 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
3689 (s390_sched_variable_issue): For now, rename param "insn" to
3690 "uncast_insn", introducing a checked cast.
3691 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
3693 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
3694 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
3696 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3698 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
3699 param from rtx to rtx_insn *.
3700 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
3702 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3704 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
3705 4 from rtx to rtx_insn *.
3706 (rs6000_final_prescan_insn): Likewise for first param.
3707 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
3709 (rs6000_get_some_local_dynamic_name): Likewise.
3710 (output_cbranch): Likewise for param "insn".
3711 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
3712 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
3713 (rs6000_emit_allocate_stack): Likewise for local "insn".
3714 (load_cr_save): Likewise.
3715 (restore_saved_cr): Likewise.
3716 (restore_saved_lr): Likewise.
3717 (emit_cfa_restores): Likewise.
3718 (rs6000_output_function_epilogue): Likewise for locals "insn" and
3719 "deleted_debug_label".
3720 (rs6000_output_mi_thunk): Likewise for local "insn".
3721 (rs6000_final_prescan_insn): Likewise for param "insn".
3723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3725 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
3726 Strengthen param "insn" from rtx to rtx_insn *.
3727 * config/picochip/picochip.c (picochip_current_prescan_insn):
3728 Likewise for this variable.
3729 (picochip_final_prescan_insn): Likewise for param "insn".
3731 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3733 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
3734 from rtx to rtx_insn *.
3735 (pa_output_indirect_call): Likewise.
3736 (pa_adjust_insn_length): Likewise.
3737 (pa_attr_length_millicode_call): Likewise.
3738 (pa_attr_length_call): Likewise.
3739 (pa_attr_length_indirect_call): Likewise.
3741 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
3743 (pa_attr_length_millicode_call): Likewise.
3744 (pa_attr_length_call): Likewise.
3745 (pa_output_call): Likewise.
3746 (pa_attr_length_indirect_call): Likewise.
3747 (pa_output_indirect_call): Likewise.
3749 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3751 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
3752 Strengthen first param from rtx to rtx_insn *.
3753 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
3756 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3758 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
3759 type from rtx to rtx_insn *.
3760 (mips_expand_call): Likewise.
3761 (mips_adjust_insn_length): Likewise for first param.
3762 (mips_output_conditional_branch): Likewise.
3763 (mips_output_order_conditional_branch): Likewise.
3764 (mips_final_prescan_insn): Likewise.
3766 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
3767 rtx_insn * for the SEQUENCE case.
3768 (SEQ_END): Likewise.
3769 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
3770 (mips_emit_call_insn): Likewise, also for local "insn".
3771 (mips16_gp_pseudo_reg): Likewise for local "scan".
3772 (mips16_build_call_stub): Likewise for return type and for local
3773 "insn". Introduce a new local "pattern" so that "insn" can indeed
3775 (mips_expand_call): Strengthen return type and local "insn" from
3777 (mips_block_move_loop): Strengthen local "label" from rtx to
3779 (mips_expand_synci_loop): Likewise for locals "label",
3781 (mips_set_frame_expr): Strengthen local "insn" from rtx to
3783 (mips16e_collect_argument_saves): Likewise for locals "insn",
3785 (mips_find_gp_ref): Likewise for param of callback for "pred"
3786 param, and for local "insn".
3787 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
3788 (mips_insn_has_flexible_gp_ref_p): Likewise.
3789 (mips_epilogue_emit_cfa_restores): Likewise for return type and
3791 (mips_epilogue_set_cfa): Likewise for local "insn".
3792 (mips_expand_epilogue): Likewise.
3793 (mips_adjust_insn_length): Likewise for param "insn".
3794 (mips_output_conditional_branch): Likewise.
3795 (mips_output_order_conditional_branch): Likewise.
3796 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
3797 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
3798 "falu2_turn_enabled_insn".
3799 (mips_builtin_branch_and_move): Strengthen locals "true_label",
3800 "done_label" from rtx to rtx_code_label *.
3801 (struct mips16_constant): Likewise for field "label".
3802 (mips16_add_constant): Likewise for return type.
3803 (mips16_emit_constants_1): Strengthen return type and param "insn"
3804 from rtx to rtx_insn *.
3805 (mips16_emit_constants): Likewise for param "insn".
3806 (mips16_insn_length): Likewise.
3807 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
3808 to rtx_code_label *.
3809 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
3810 from rtx to rtx_insn *.
3811 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
3812 "jump". Strengthen local "label" from rtx to rtx_code_label *.
3813 (r10k_simplify_address): Strengthen param "insn" and local
3814 "def_insn" from rtx to rtx_insn *.
3815 (r10k_safe_address_p): Strengthen param "insn" from rtx to
3817 (r10k_needs_protection_p_1): Update target type of cast of data
3818 from to rtx to rtx_insn *.
3819 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
3820 rtx * to rtx_insn **.
3821 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
3823 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
3824 (mips_call_expr_from_insn): Likewise for param "insn".
3825 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
3826 (mips_find_pic_call_symbol): Likewise for param "insn".
3827 (mips_annotate_pic_calls): Likewise for local "insn".
3828 (mips_sim_insn): Likewise for this variable.
3829 (struct mips_sim): Likewise for field "insn" within elements of
3831 (mips_sim_wait_reg): Likewise for param "insn".
3832 (mips_sim_wait_regs): Likewise.
3833 (mips_sim_wait_units): Likewise.
3834 (mips_sim_wait_insn): Likewise.
3835 (mips_sim_issue_insn): Likewise.
3836 (mips_sim_finish_insn): Likewise.
3837 (mips_seq_time): Likewise for param "seq" and local "insn".
3838 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
3839 locals "first", "second".
3840 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
3841 "last", "last2", "next".
3842 (mips_avoid_hazard): Likewise for params "after", "insn".
3843 (mips_reorg_process_insns): Likewise for locals "insn",
3844 "last_insn", "subinsn", "next_insn".
3845 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
3846 (mips16_split_long_branches): Likewise for locals "insn" "jump",
3848 (mips_output_mi_thunk): Likewise for local "insn".
3849 (mips_final_prescan_insn): Likewise for param "insn".
3851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3853 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
3854 Strengthen return type and local "insns" from rtx to rtx_insn *.
3855 (microblaze_legitimize_tls_address): Likewise for local "insns".
3856 (microblaze_block_move_loop): Strengthen local "label" from rtx
3857 to rtx_code_label *.
3858 (microblaze_expand_prologue): Strengthen two locals named "insn"
3859 from rtx to rtx_insn *.
3860 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
3861 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
3862 "insn". Strengthen locals "div_label", "div_end_label" from rtx
3863 to rtx_code_label *.
3865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3867 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
3868 param from rtx to rtx_insn *.
3869 (mep_reuse_lo): Likewise for third param.
3870 (mep_use_post_modify_p): Likewise for first param.
3871 (mep_core_address_length): Likewise.
3872 (mep_cop_address_length): Likewise.
3873 (mep_final_prescan_insn): Likewise.
3874 (mep_store_data_bypass_p): Likewise for both params.
3875 (mep_mul_hilo_bypass_p): Likewise.
3876 (mep_ipipe_ldc_p): Likewise for param.
3878 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
3879 (mep_rewrite_mult): Likewise.
3880 (mep_rewrite_mulsi3): Likewise.
3881 (mep_rewrite_maddsi3): Likewise.
3882 (mep_reuse_lo_p_1): Likewise.
3883 (mep_reuse_lo_p): Likewise.
3884 (mep_frame_expr): Likewise.
3885 (mep_make_parallel): Likewise for both params.
3886 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
3888 (mep_use_post_modify_p): Likewise for param "insn".
3889 (mep_core_address_length): Likewise.
3890 (mep_cop_address_length): Likewise.
3891 (mep_reg_set_in_function): Likewise for local "insn".
3892 (mep_asm_without_operands_p): Likewise.
3893 (F): Likewise for return type and param "x".
3894 (add_constant): Likewise for local "insn".
3895 (maybe_dead_move): Likewise for return type and local "insn".
3896 (mep_expand_prologue): Likewise for local "insn".
3897 (mep_final_prescan_insn): Likewise for param "insn".
3898 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
3899 "next", "follow", "x".
3900 (mep_insert_repeat_label_last): Likewise for return type, param
3901 "last_insn", and locals "next", "prev". Strengthen param "label"
3902 from rtx to rtx_code_label *.
3903 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
3905 (struct mep_doloop_end): Likewise for fields "insn" and
3907 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
3908 Strengthen local "repeat_label" from rtx to rtx_code_label *.
3909 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
3911 (mep_invert_branch): Likewise for params "insn" and "after".
3912 (mep_reorg_erepeat): Likewise for param "insns" and locals
3913 "insn", "prev", "new_last", "barrier", "user". Strengthen local
3914 "l" from rtx to rtx_code_label *.
3915 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
3916 from rtx to rtx_insn *.
3917 (mep_reorg_addcombine): Likewise for param "insns" and locals
3919 (add_sp_insn_p): Likewise for param "insn".
3920 (mep_reorg_noframe): Likewise for param "insns" and locals
3921 "start_frame_insn", "end_frame_insn", "next".
3922 (mep_reorg): Likewise for local "insns".
3923 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
3925 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
3926 (mep_mul_hilo_bypass_p): Likewise.
3927 (mep_ipipe_ldc_p): Likewise for param "insn".
3928 (mep_make_bundle): Likewise for return type, param "cop" and local
3929 "insn", splitting out the latter into a new local "seq" for when it
3930 is a SEQUENCE rather than an insn.
3931 (core_insn_p): Likewise for param "insn".
3932 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
3933 "last", "first", "note", "prev", "core_insn".
3935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3937 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
3939 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
3940 (m68k_final_prescan_insn): Likewise for first param.
3942 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
3943 (m68k_set_frame_related): Likewise for param "insn".
3944 (output_btst): Likewise for param "insn".
3945 (m68k_final_prescan_insn): Likewise.
3946 (m68k_move_to_reg): Likewise for local "insn".
3947 (m68k_call_tls_get_addr): Likewise for local "insns".
3948 (m68k_call_m68k_read_tp): Likewise.
3949 (strict_low_part_peephole_ok): Likewise for param "first_insn".
3950 (m68k_output_mi_thunk): Likewise for local "insn".
3952 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3954 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
3955 first param from rtx to rtx_insn *.
3956 (iq2000_adjust_insn_length): Likewise.
3957 (iq2000_output_conditional_branch): Likewise.
3958 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
3959 "insn" and local "nop_insn".
3960 (iq2000_annotate_frame_insn): Likewise for param "insn".
3961 (iq2000_expand_prologue): Likewise for both locals "insn".
3962 (iq2000_adjust_insn_length): Likewise for param "insn".
3963 (iq2000_output_conditional_branch): Likewise.
3965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3967 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
3968 "insns" from rtx to rtx_insn *.
3969 (ia64_emit_cond_move): Likewise for locals "insn", "first".
3970 (struct spill_fill_data): Likewise for field "init_after" and for
3971 elements of array field "prev_insn".
3972 (spill_restore_mem): Likewise for locals "insn", "first".
3973 (do_spill): Likewise for local "insn".
3974 (do_restore): Likewise.
3975 (ia64_expand_prologue): Likewise.
3976 (ia64_expand_epilogue): Likewise.
3977 (emit_insn_group_barriers): Likewise for locals "insn",
3979 (emit_all_insn_group_barriers): Likewise for locals "insn",
3981 (dfa_stop_insn): Likewise for this global.
3982 (dfa_pre_cycle_insn): Likewise.
3983 (ia64_nop): Likewise.
3984 (final_emit_insn_group_barriers): Likewise for locals "insn",
3986 (emit_predicate_relation_info): Likewise for locals "head", "n",
3988 (ia64_reorg): Likewise for local "insn".
3989 (ia64_output_mi_thunk): Likewise.
3990 (expand_vec_perm_interleave_2): Likewise for local "seq".
3992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3994 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
3995 param 1 "insn" from rtx to rtx_insn *.
3996 (ix86_use_lea_for_mov): Likewise.
3997 (ix86_avoid_lea_for_addr): Likewise.
3998 (ix86_split_lea_for_addr): Likewise.
3999 (ix86_lea_for_add_ok): Likewise.
4000 (ix86_output_call_insn): Likewise.
4002 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4003 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4004 (ix86_output_function_epilogue): Likewise for locals "insn",
4005 "deleted_debug_label".
4006 (legitimize_tls_address): Likewise for local "insn".
4007 (get_some_local_dynamic_name): Likewise.
4008 (increase_distance): Likewise for params "prev", "next".
4009 (distance_non_agu_define_in_bb): Likewise for params "insn",
4010 "start" and locals "prev", "next".
4011 (distance_non_agu_define): Likewise for param "insn".
4012 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4013 locals "next", "prev".
4014 (distance_agu_use): Likewise for param "insn".
4015 (ix86_lea_outperforms): Likewise.
4016 (ix86_ok_to_clobber_flags): Likewise.
4017 (ix86_avoid_lea_for_add): Likewise.
4018 (ix86_use_lea_for_mov): Likewise.
4019 (ix86_avoid_lea_for_addr): Likewise.
4020 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4021 (ix86_split_lea_for_addr): Likewise for param "insn".
4022 (ix86_lea_for_add_ok): Likewise for param "insn".
4023 (ix86_expand_carry_flag_compare): Likewise for local
4025 (ix86_expand_int_movcc): Likewise.
4026 (ix86_output_call_insn): Likewise for param "insn".
4027 (ix86_output_call_insn): Likewise for local "i".
4028 (x86_output_mi_thunk): Introduce local "insn", using it in place
4029 of "tmp" when dealing with insns.
4030 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4032 (ix86_pad_returns): Likewise for locals "ret", "prev".
4033 (ix86_count_insn_bb): Likewise for local "insn".
4034 (ix86_pad_short_function): Likewise for locals "ret", "insn".
4035 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4036 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4037 (expand_vec_perm_interleave2): Likewise for local "seq".
4038 (expand_vec_perm_vperm2f128_vblend): Likewise.
4039 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
4040 call to for_each_rtx with for_each_rtx_in_insn.
4042 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4044 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4045 "label" from rtx to rtx_code_label *.
4046 (ix86_expand_prologue): Likewise.
4047 (ix86_expand_split_stack_prologue): Likewise for locals "label",
4049 (ix86_split_idivmod): Likewise for locals "end_label" and
4051 (ix86_expand_branch): Likewise for local "label2".
4052 (ix86_expand_aligntest): Likewise for return type and local "label".
4053 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4055 (expand_movmem_epilogue): Likewise for the various locals named
4057 (expand_setmem_epilogue): Likewise.
4058 (expand_small_movmem_or_setmem): Likewise for local "label".
4059 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4060 Strengthen param "done_label" from rtx * to rtx_code_label **.
4061 Strengthen locals "loop_label" and "label" from rtx to
4063 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4064 Likewise for locals "loop_label", "label".
4065 (ix86_expand_set_or_movmem): Likewise for locals "label",
4066 "jump_around_label", "hot_label".
4067 (ix86_expand_strlensi_unroll_1): Likewise for locals
4068 "align_2_label", align_3_label", "align_4_label", "end_0_label",
4070 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4071 (void ix86_emit_i387_log1p): Likewise for locals "label1",
4072 "label2", "jump_label".
4073 (ix86_expand_sse_compare_and_jump): Likewise for return type and
4075 (ix86_expand_lfloorceil): Likewise for local "label".
4076 (ix86_expand_rint): Likewise.
4077 (ix86_expand_floorceildf_32): Likewise.
4078 (ix86_expand_floorceil): Likewise.
4079 (ix86_expand_rounddf_32): Likewise.
4080 (ix86_expand_trunc): Likewise.
4081 (ix86_expand_truncdf_32): Likewise.
4082 (ix86_expand_round): Likewise.
4084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4086 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4087 first param from rtx to rtx_insn *.
4088 (h8300_insn_length_from_table): Likewise.
4089 * config/h8300/h8300.c (F): Likewise for return type and param
4091 (Fpa): Add a checked cast to rtx_insn *.
4092 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4094 (final_prescan_insn): Likewise for param "insn".
4095 (h8300_binary_length): Likewise.
4096 (h8300_insn_length_from_table): Likewise.
4098 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4100 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4101 Strengthen first param "insn" from rtx to rtx_insn *.
4103 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4105 (frame_insn): Likewise for return type. Introduce local "insn"
4106 for use in place of local "x" for use as an rtx_insn *.
4107 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4108 (epiphany_expand_prologue): Likewise for local "insn".
4109 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4110 * config/epiphany/resolve-sw-modes.c
4111 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4116 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4117 param from rtx to rtx_insn *.
4118 (c6x_final_prescan_insn): Likewise for first param.
4120 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4121 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4122 (c6x_expand_compare): Strengthen local "insns" from rtx to
4124 (c6x_get_unit_specifier): Likewise for param "insn".
4125 (c6x_print_unit_specifier_field): Likewise.
4126 (c6x_final_prescan_insn): Likewise.
4127 (emit_add_sp_const): Likewise for local "insn".
4128 (c6x_expand_prologue): Likewise.
4130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4132 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4133 param 1 from rtx to rtx_insn *.
4134 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4135 the various locals named "insn".
4136 (expand_epilogue_reg_restore): Likewise.
4137 (frame_related_constant_load): Likewise.
4138 (add_to_reg): Likewise.
4139 (emit_link_insn): Likewise.
4140 (do_link): Likewise.
4141 (expand_interrupt_handler_prologue): Likewise.
4142 (branch_dest): Likewise for param "branch".
4143 (asm_conditional_branch): Likewise for param "insn".
4144 (gen_one_bundle): Likewise for elements of param "slot" and local
4146 (bfin_gen_bundles): Likewise for locals "insn", "next" and
4147 elements of local "slot".
4148 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4149 "queue", "next_queue", "prev".
4150 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4151 (add_sched_insns_for_speculation): Likewise for local "insn".
4153 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4155 * config/avr/avr-protos.h (output_movqi): Strengthen first param
4156 from rtx to rtx_insn *.
4157 (output_movhi): Likewise.
4158 (output_movsisf): Likewise.
4159 (avr_out_tstsi): Likewise.
4160 (avr_out_tsthi): Likewise.
4161 (avr_out_tstpsi): Likewise.
4162 (avr_out_compare): Likewise.
4163 (avr_out_compare64): Likewise.
4164 (avr_out_movpsi): Likewise.
4165 (ashlqi3_out): Likewise.
4166 (ashlhi3_out): Likewise.
4167 (ashlsi3_out): Likewise.
4168 (ashrqi3_out): Likewise.
4169 (ashrhi3_out): Likewise.
4170 (ashrsi3_out): Likewise.
4171 (lshrqi3_out): Likewise.
4172 (lshrhi3_out): Likewise.
4173 (lshrsi3_out): Likewise.
4174 (avr_out_ashlpsi3): Likewise.
4175 (avr_out_ashrpsi3): Likewise.
4176 (avr_out_lshrpsi3): Likewise.
4177 (avr_out_fract): Likewise.
4178 (avr_out_sbxx_branch): Likewise.
4179 (avr_out_round): Likewise.
4180 (avr_out_xload): Likewise.
4181 (avr_out_movmem): Likewise.
4182 (adjust_insn_length): Likewise.
4183 (avr_out_lpm): Likewise.
4184 (reg_unused_after): Likewise.
4185 (_reg_unused_after): Likewise.
4186 (avr_jump_mode): Likewise for second param.
4187 (jump_over_one_insn): Likewise for first param.
4188 (avr_final_prescan_insn): Likewise.
4189 (out_shift_with_cnt): Likewise for second param.
4191 * config/avr/avr.c (get_sequence_length): Likewise for param
4192 "insns" and local "insn".
4193 (emit_push_byte): Likewise for local "insn".
4194 (emit_push_sfr): Likewise.
4195 (avr_prologue_setup_frame): Likewise for locals "insn",
4196 "fp_plus_insns", "sp_plus_insns".
4197 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4199 (avr_jump_mode): Likewise for param "insn".
4200 (avr_final_prescan_insn): Likewise.
4201 (avr_find_unused_d_reg): Likewise.
4202 (avr_out_lpm_no_lpmx): Likewise.
4203 (avr_out_lpm): Likewise.
4204 (avr_out_xload): Likewise.
4205 (output_movqi): Likewise.
4206 (output_movhi): Likewise.
4207 (out_movqi_r_mr): Likewise.
4208 (out_movhi_r_mr): Likewise.
4209 (out_movsi_r_mr): Likewise.
4210 (out_movsi_mr_r): Likewise.
4211 (output_movsisf): Likewise.
4212 (avr_out_load_psi): Likewise.
4213 (avr_out_store_psi): Likewise.
4214 (avr_out_movpsi): Likewise.
4215 (out_movqi_mr_r): Likewise.
4216 (avr_out_movhi_mr_r_xmega): Likewise.
4217 (out_movhi_mr_r): Likewise.
4218 (compare_condition): Likewise for param "insn" and local "next".
4219 (compare_sign_p): Likewise for param "insn".
4220 (compare_diff_p): Likewise.
4221 (compare_eq_p): Likewise.
4222 (avr_out_compare): Likewise.
4223 (avr_out_compare64): Likewise.
4224 (avr_out_tsthi): Likewise.
4225 (avr_out_tstpsi): Likewise.
4226 (avr_out_tstsi): Likewise.
4227 (out_shift_with_cnt): Likewise.
4228 (ashlqi3_out): Likewise.
4229 (ashlhi3_out): Likewise.
4230 (avr_out_ashlpsi3): Likewise.
4231 (ashlsi3_out): Likewise.
4232 (ashrqi3_out): Likewise.
4233 (ashrhi3_out): Likewise.
4234 (avr_out_ashrpsi3): Likewise.
4235 (ashrsi3_out): Likewise.
4236 (lshrqi3_out): Likewise.
4237 (lshrhi3_out): Likewise.
4238 (avr_out_lshrpsi3): Likewise.
4239 (lshrsi3_out): Likewise.
4240 (avr_out_fract): Likewise.
4241 (avr_out_round): Likewise.
4242 (avr_adjust_insn_length): Likewise.
4243 (reg_unused_after): Likewise.
4244 (_reg_unused_after): Likewise.
4245 (avr_compare_pattern): Likewise.
4246 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4247 and locals "branch1", "branch2", "insn2", "jump".
4248 (avr_reorg): Likewise for local "insn".
4249 (avr_2word_insn_p): Likewise for param "insn".
4250 (jump_over_one_insn_p): Likewise.
4251 (avr_out_sbxx_branch): Likewise.
4252 (avr_out_movmem): Likewise.
4254 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4256 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4257 param from rtx to rtx_insn *.
4258 (thumb1_final_prescan_insn): Likewise.
4259 (thumb2_final_prescan_insn): Likewise.
4261 * config/arm/arm.c (emit_set_insn): Strengthen return type from
4263 (struct minipool_node): Likewise for field "insn".
4264 (dump_minipool): Likewise for param "scan".
4265 (create_fix_barrier): Likewise for local "from". Strengthen local
4266 "label" from rtx to rtx_code_label *.
4267 (push_minipool_barrier): Strengthen param "insn" from rtx to
4269 (push_minipool_fix): Likewise.
4270 (note_invalid_constants): Likewise.
4271 (thumb2_reorg): Likewise for local "insn".
4272 (arm_reorg): Likewise.
4273 (thumb2_final_prescan_insn): Likewise for param
4274 "insn" and local "first_insn".
4275 (arm_final_prescan_insn): Likewise for param "insn" and locals
4276 "start_insn", "this_insn".
4277 (arm_debugger_arg_offset): Likewise for param "insn".
4278 (thumb1_emit_multi_reg_push): Likewise for return type and local
4280 (thumb1_final_prescan_insn): Likewise for param "insn".
4281 (thumb_far_jump_used_p): Likewise for local "insn".
4282 (thumb1_expand_prologue): Likewise.
4283 (arm_expand_epilogue_apcs_frame): Likewise.
4284 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4285 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4286 from rtx to rtx_code_label *.
4287 (arm_split_atomic_op): Likewise for local "label".
4288 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4290 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4292 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4293 first param from rtx to rtx_insn *.
4294 (arc_verify_short): Likewise.
4295 (arc_short_long): Likewise.
4296 (arc_need_delay): Likewise.
4298 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4300 (arc_ccfsm_advance): Likewise for param "insn" and locals
4301 "start_insn", "this_insn".
4302 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4303 (arc_ccfsm_post_advance): Likewise for param "insn".
4304 (arc_next_active_insn): Likewise for return type and param "insn".
4305 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
4306 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4307 (output_short_suffix): Likewise for local "insn".
4308 (arc_final_prescan_insn): Likewise for param "insn". Remove
4309 now-redundant checked cast.
4310 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4311 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4312 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
4313 for use where lc_set became an insn.
4314 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4316 (arc_get_insn_variants): Likewise for local "prev".
4317 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4319 (arc_predicate_delay_insns): Likewise for local "insn".
4320 (arc_pad_return): Likewise for local "prev". For now, add a
4321 checked cast when extracting the insn from "final_sequence".
4322 (arc_short_long): Likewise for param "insn".
4323 (arc_need_delay): Likewise for param "insn" and local "next".
4324 (arc_label_align): Likewise for locals "prev", "next".
4326 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4328 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4329 "insn" from rtx to rtx_insn *.
4330 (alpha_gp_save_rtx): Likewise for local "seq".
4331 (alpha_instantiate_decls): Likewise for local "top".
4332 (get_some_local_dynamic_name): Likewise for local "insn".
4333 (alpha_does_function_need_gp): Likewise.
4334 (set_frame_related_p): Likewise for return type and for locals
4336 (emit_frame_store_1): Likewise for local "insn".
4337 (alpha_expand_prologue): Likewise for locals "insn", "seq".
4338 (alpha_end_function): Likewise for local "insn".
4339 (alpha_output_mi_thunk_osf): Likewise.
4340 (alphaev4_insn_pipe): Likewise for param "insn".
4341 (alphaev5_insn_pipe): Likewise.
4342 (alphaev4_next_group): Likewise for return type and param 1
4344 (alphaev5_next_group): Likewise.
4345 (alpha_align_insns_1): Likewise for return type and param 1 of
4346 callback param "next_group", and for locals "i", "next", "prev",
4347 "where", "where2", "insn".
4349 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
4351 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4352 rather than modifying the stmt.
4354 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4356 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4357 cgraph_state conversion.
4359 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4361 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4362 Strengthen local "insns" from rtx to rtx_insn *.
4363 (aarch64_set_frame_expr): Likewise for local "insn".
4364 (aarch64_save_or_restore_fprs): Likewise.
4365 (aarch64_save_or_restore_callee_save_registers): Likewise.
4366 (aarch64_expand_prologue): Likewise.
4367 (aarch64_expand_epilogue): Likewise.
4368 (aarch64_output_mi_thunk): Likewise.
4369 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4370 "label2" from rtx to rtx_code_label *.
4371 (aarch64_split_atomic_op): Likewise for local "label".
4373 2014-08-25 Martin Liska <mliska@suse.cz>
4375 * cgraph.h (symtab_node):
4376 (bool needed_p (void)): created from decide_is_symbol_needed
4377 (bool referred_to_p (void)): created from referred_to_p
4378 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4379 * cgraph.h (cgraph_node):
4380 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4381 (void expand (void)): created from expand_function
4382 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4383 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4384 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4385 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4386 * cgraph.h (varpool_node):
4387 (static void add (tree decl): created from varpool_add_new_variable
4388 * cgraph.h (cgraph_edge):
4390 (void remove_caller (void)): created from cgraph_edge_remove_caller
4391 (void remove_callee (void)): created from cgraph_edge_remove_callee
4392 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4393 created from cgraph_set_call_stmt
4394 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4395 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4396 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4397 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4398 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4399 created from cgraph_speculative_call_info
4400 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4401 int freq_scale, bool update_original)): created from cgraph_clone_edge
4402 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4403 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4404 (bool recursive_p (void)): created from cgraph_edge_recursive_p
4405 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4406 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4407 (static void rebuild_references (void)): created from cgraph_rebuild_references
4408 * cgraph.h (symbol_table):
4409 (create_reference): renamed from add_reference
4410 (maybe_create_reference): renamed from maybe_add_reference
4411 (void register_symbol (symtab_node *node)): new function
4412 (void clear_asm_symbols (void)): new function
4413 (void unregister (symtab_node *node)): new function
4414 (void release_symbol (cgraph_node *node, int uid)): new function
4415 (cgraph_node * allocate_cgraph_symbol (void)): new function
4416 (void initialize (void)): created from cgraph_init
4417 (symtab_node *first_symbol (void)):new function
4418 (asm_node *first_asm_symbol (void)):new function
4419 (symtab_node *first_defined_symbol (void)):new function
4420 (varpool_node *first_variable (void)):new function
4421 (varpool_node *next_variable (varpool_node *node)):new function
4422 (varpool_node *first_static_initializer (void)):new function
4423 (varpool_node *next_static_initializer (varpool_node *node)):new function
4424 (varpool_node *first_defined_variable (void)):new function
4425 (varpool_node *next_defined_variable (varpool_node *node)):new function
4426 (cgraph_node *first_defined_function (void)):new function
4427 (cgraph_node *next_defined_function (cgraph_node *node)):new function
4428 (cgraph_node *first_function (void)):new function
4429 (cgraph_node *next_function (cgraph_node *node)):new function
4430 (cgraph_node *first_function_with_gimple_body (void)):new function
4431 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4432 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4433 created from symtab_remove_unreachable_nodes
4434 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4435 (void process_new_functions (void)): created from cgraph_process_new_functions
4436 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4437 (bool output_variables (void)): created from varpool_node::output_variables
4438 (void output_asm_statements (void)): created from output_asm_statements
4439 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4440 (void compile (void)): created from compile
4441 (void output_weakrefs (void)): created from output_weakrefs
4442 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4443 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4444 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4445 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4446 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4447 created from cgraph_next_function_with_gimple_body
4448 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4449 created from cgraph_remove_edge_removal_hook
4450 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4451 created from cgraph_add_node_removal_hook
4452 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4453 created from cgraph_remove_node_removal_hook
4454 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4455 created from varpool_add_node_removal_hook
4456 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4457 created from varpool_remove_node_removal_hook
4458 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4459 created from cgraph_add_function_insertion_hook
4460 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4461 created from cgraph_remove_function_insertion_hook
4462 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4463 created from varpool_add_variable_insertion_hook
4464 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4465 created from varpool_remove_variable_insertion_hook
4466 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4467 created from cgraph_add_edge_duplication_hook
4468 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4469 created from cgraph_remove_edge_duplication_hook
4470 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4471 created from cgraph_add_node_duplication_hook
4472 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4473 created from cgraph_remove_node_duplication_hook
4474 (void call_edge_removal_hooks (cgraph_edge *e)):
4475 created from cgraph_call_edge_removal_hooks
4476 (void call_cgraph_insertion_hooks (cgraph_node *node)):
4477 created from call_function_insertion_hooks
4478 (void call_cgraph_removal_hooks (cgraph_node *node)):
4479 created from cgraph_call_node_removal_hooks
4480 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4481 created from cgraph_node::call_duplication_hooks
4482 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4483 created from cgraph_call_edge_duplication_hooks
4484 (void call_varpool_removal_hooks (varpool_node *node)):
4485 created from varpool_call_node_removal_hooks
4486 (void call_varpool_insertion_hooks (varpool_node *node)):
4487 created from varpool_call_variable_insertion_hooks
4488 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4489 created from insert_to_assembler_name_hash
4490 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4491 created from unlink_from_assembler_name_hash
4492 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4493 created from symtab_prevail_in_asm_name_hash
4494 (void symtab_initialize_asm_name_hash (void)):
4495 created from symtab_initialize_asm_name_hash
4496 (void change_decl_assembler_name (tree decl, tree name)):
4497 created from change_decl_assembler_name
4498 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4499 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4500 created from decl_assembler_name_hash
4501 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4502 created from decl_assembler_name_equal
4503 (static hashval_t hash_node_by_assembler_name (const void *p)):
4504 created from hash_node_by_assembler_name
4505 (static int eq_assembler_name (const void *p1, const void *p2)):
4506 created from eq_assembler_name
4508 2014-08-25 Marek Polacek <polacek@redhat.com>
4510 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4512 2014-08-25 Petr Murzin <petr.murzin@intel.com>
4514 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4515 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4516 SWI1248_AVX512BW mode iterator.
4518 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
4521 * config/sh/predicates.md (general_extend_operand): Disable
4522 TRUNCATE before reload completes.
4524 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
4526 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
4528 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
4531 * config/sh/sh.opt (musermode): Allow negative form.
4532 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
4533 targets that don't support it.
4534 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
4535 Document -mno-usermode option.
4537 2014-08-24 Kito Cheng <kito@0xlab.org>
4539 * system.h (CALLER_SAVE_PROFITABLE): Poison.
4540 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
4541 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
4542 * doc/tm.texi: Regenerate.
4544 2014-08-24 Kito Cheng <kito@0xlab.org>
4546 * ira.c: Fix typo in comment.
4548 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4550 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
4551 Deprecate c++1y. Change language to reflect greater confidence in C++14.
4553 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
4556 * config/pa/pa.c (pa_output_function_epilogue): Don't set
4557 last_address when the current function is a thunk.
4558 (pa_asm_output_mi_thunk): When we don't have named sections or they
4559 are not being used, check that thunk can reach the stub table with a
4562 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4564 * web.c (union_match_dups): Strengthen param "insn" from rtx to
4566 (pass_web::execute): Likewise for local "insn".
4568 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4570 * var-tracking.c (struct micro_operation_def): Strengthen field
4571 "insn" from rtx to rtx_insn *.
4572 (struct emit_note_data_def): Likewise.
4573 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
4574 (vt_stack_adjustments): Likewise for local "insn".
4575 (adjust_insn): Likewise for param "insn".
4576 (val_store): Likewise.
4577 (val_resolve): Likewise.
4578 (struct count_use_info): Likewise for field "insn".
4579 (log_op_type): Likewise for param "insn".
4580 (reverse_op): Likewise.
4581 (prepare_call_arguments): Likewise.
4582 (add_with_sets): The initial param takes an insn, but we can't
4583 yet strengthen it from rtx to rtx_insn * since it's used as a
4584 cselib_record_sets_hook callback. For now rename initial param
4585 from "insn" to "uncast_insn", and introduce a local "insn" of
4586 the stronger rtx_insn * type, with a checked cast.
4587 (compute_bb_dataflow): Strengthen local "insn" from rtx to
4589 (emit_note_insn_var_location): Likewise.
4590 (emit_notes_for_changes): Likewise.
4591 (emit_notes_for_differences): Likewise.
4592 (next_non_note_insn_var_location): Likewise for return type and
4594 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
4595 (vt_initialize): Likewise for local "insn".
4596 (delete_debug_insns): Likewise for locals "insn" and "next".
4598 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4600 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
4602 (mark_constant_pool): Likewise for local "insn".
4604 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4606 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
4608 (dead_debug_promote_uses): Likewise.
4609 (dead_debug_insert_temp): Likewise.
4611 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4613 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
4614 from const_rtx to const rtx_insn *.
4615 (store_killed_after): Likewise. Strengthen locals "last", "act"
4616 from rtx to rtx_insn *.
4617 (store_killed_before): Strengthen param "insn" from const_rtx to
4618 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
4619 (find_moveable_store): Strengthen param "insn" from rtx to
4621 (compute_store_table): Likewise for local "insn".
4622 (insert_insn_start_basic_block): Likewise for param "insn" and
4623 locals "prev", "before", "insn".
4624 (insert_store): For now, add a checked cast to rtx_insn * on the
4625 result of gen_move_insn.
4626 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
4628 (replace_store_insn): Likewise. For now, add a checked cast to
4629 rtx_insn * on the result of gen_move_insn.
4631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4633 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
4635 (expand_sjlj_dispatch_table): Likewise.
4637 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4639 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
4640 "insn" from rtx to rtx_insn *.
4642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4644 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
4645 "insn" from rtx to rtx_insn *.
4646 (dup_block_and_redirect): Likewise for param 3 "before".
4648 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
4649 from rtx to rtx_insn *.
4650 (move_insn_for_shrink_wrap): Likewise.
4651 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
4652 (dup_block_and_redirect): Likewise for param "before" and local
4654 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
4656 (convert_to_simple_return): Likewise for local "start".
4658 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
4659 Strengthen local "insn" from rtx to rtx_insn *, for use when
4660 invoking requires_stack_frame_p.
4662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4664 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
4666 (speculate_expr): Likewise for locals "orig_insn_rtx",
4668 (eq_transformed_insns): Likewise for locals "i1", "i2".
4669 (check_for_new_jump): Likewise for return type and local "end".
4670 (find_new_jump): Likewise for return type and local "jump".
4671 (sel_split_edge): Likewise for local "jump".
4672 (sel_create_recovery_block): Likewise.
4673 (sel_redirect_edge_and_branch_force): Likewise.
4674 (sel_redirect_edge_and_branch): Likewise.
4676 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4678 * sel-sched.c (substitute_reg_in_expr): Strengthen local
4679 "new_insn" from rtx to rtx_insn *.
4680 (create_insn_rtx_with_rhs): Likewise for return type and for local
4682 (create_insn_rtx_with_lhs): Likewise.
4683 (create_speculation_check): Likewise for local "insn_rtx".
4684 (implicit_clobber_conflict_p): Likewise for local "insn".
4685 (get_expr_cost): Likewise.
4686 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
4687 (move_cond_jump): Likewise for locals "next", "prev", "link",
4688 "head", "from", "to".
4690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4692 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
4693 "next" from rtx to rtx_insn *.
4694 (find_conditional_protection): Likewise for local "next".
4695 (is_conditionally_protected): Likewise for local "insn1".
4696 (is_pfree): Likewise for locals "insn1", "insn2".
4698 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4700 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
4701 from rtx to rtx_insn *.
4703 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
4704 locals "insn1", "insn2" from rtx to rtx_insn *.
4705 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
4706 locals "insn", "prev", "last_jump", "next_tail".
4707 (schedule_ebb): Likewise for params "head", "tail".
4708 (schedule_ebbs): Likewise for locals "tail", "head".
4710 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
4711 to rtx_insn on "last_insn" in one of the invocations of
4714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4716 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
4717 "elem", "insn" from rtx to rtx_insn *.
4718 (change_spec_dep_to_hard): Likewise.
4719 (get_back_and_forw_lists): Likewise for local "con".
4720 (sd_add_dep): Likewise for locals "elem", "insn".
4721 (sd_resolve_dep): Likewise for locals "pro", "con".
4722 (sd_unresolve_dep): Likewise.
4723 (sd_delete_dep): Likewise.
4724 (chain_to_prev_insn): Likewise for local "pro".
4725 (find_inc): Likewise for locals "pro", "con".
4727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4729 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
4731 (reg_set_between_p): Strengthen local "insn" from const_rtx to
4733 (modified_between_p): Strengthen local "insn" from rtx to
4735 (remove_reg_equal_equiv_notes_for_regno): Likewise.
4736 (keep_with_call_p): Strengthen local "i2" from const_rtx to
4739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4741 * resource.c (next_insn_no_annul): Strengthen local "next" from
4743 (mark_referenced_resources): Likewise for local "insn".
4745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4747 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
4749 (find_reloads): Likewise for param 1.
4750 (subst_reloads): Likewise for sole param.
4751 (find_equiv_reg): Likwise for param 2.
4752 (regno_clobbered_p): Likwise for param 2.
4753 (reload): Likewise for param 1.
4755 * caller-save.c (save_call_clobbered_regs): Strengthen local
4756 "insn" from rtx to rtx_insn *.
4757 (insert_one_insn): Likewise for local "insn".
4759 * reload.c (this_insn): Likewise for this global.
4760 (find_reloads): Likewise for param "insn".
4761 (find_reloads_toplev): Likewise.
4762 (find_reloads_address): Likewise.
4763 (subst_reg_equivs): Likewise.
4764 (update_auto_inc_notes): Likewise.
4765 (find_reloads_address_1): Likewise.
4766 (find_reloads_subreg_address): Likewise.
4767 (subst_reloads): Likewise.
4768 (find_equiv_reg): Likewise, also for local "p".
4769 (regno_clobbered_p): Likewise for param "insn".
4771 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
4773 (spill_reg_store): Likewise for the elements of this array.
4774 (remove_init_insns): Likewise for local "equiv_insn".
4775 (will_delete_init_insn_p): Likewise for param "insn".
4776 (reload): Likewise for param ""first" and local "insn".
4777 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
4779 (calculate_elim_costs_all_insns): Likewise.
4780 (delete_caller_save_insns): Likewise.
4781 (spill_failure): Likewise for param "insn".
4782 (delete_dead_insn): Likewise.
4783 (set_label_offsets): Likewise.
4784 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
4786 (elimination_costs_in_insn): Likewise for param "insn".
4787 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
4788 when referring to an insn.
4789 (set_initial_label_offsets): Likewise.
4790 (set_offsets_for_label): Strengthen param "insn" from rtx to
4792 (init_eliminable_invariants): Likewise for param "first" and local
4794 (fixup_eh_region_note): Likewise for param "insn".
4795 (reload_as_needed): Likewise for locals "prev", "insn",
4796 "old_next", "old_prev", "next".
4797 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
4799 (reload_inheritance_insn): Strengthen elements of this array from
4801 (failed_reload): Likewise for param "insn".
4802 (choose_reload_regs): Likewise for local "insn". Replace use of
4803 NULL_RTX with NULL when referring to an insn.
4804 (input_reload_insns): Strengthen elements of this array from rtx
4806 (other_input_address_reload_insns): Likewise for this global.
4807 (other_input_reload_insns): Likewise for this global.
4808 (input_address_reload_insns): Likwise for the elements of this
4810 (inpaddr_address_reload_insns): Likwise for the elements of this
4812 (output_reload_insns): Likewise for the elements of this array.
4813 (output_address_reload_insns): Likewise for the elements of this
4815 (outaddr_address_reload_insns): Likewise for the elements of this
4817 (operand_reload_insns): Likewise for this global.
4818 (other_operand_reload_insns): Likewise for this global.
4819 (other_output_reload_insns): Likewise for the elements of this
4821 (new_spill_reg_store): Likewise for the elements of this
4823 (emit_input_reload_insns): Likewise for locals "insn", "temp".
4824 Strengthen local "where" from rtx * to rtx_insn **.
4825 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
4826 from rtx to rtx_insn *.
4827 (do_input_reload): Likewise for local "insn".
4828 (do_output_reload): Likewise for local "insn".
4829 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
4830 (emit_insn_if_valid_for_reload): Likewise for return type and local
4831 "last". Add checked cast to rtx_insn when returning "insn" since
4832 this has been through emit_insn.
4833 (gen_reload): Strengthen return type and locals "last", "insn", "set"
4834 from rtx to rtx_insn *. Add checked cast to rtx_insn when
4835 returning "insn" since it's been through
4836 emit_insn_if_valid_for_reload at this point.
4837 (delete_output_reload): Strengthen param "insn" and locals
4838 "output_reload_insn", "i2" from rtx to rtx_insn *.
4839 (delete_address_reloads): Likewise for params "dead_insn",
4840 "current_insn" and locals "prev", "next".
4841 (delete_address_reloads_1): Likewise for params "dead_insn",
4842 "current_insn" and locals "prev", "i2".
4843 (inc_for_reload): Likewise for locals "last", "add_insn".
4844 (add_auto_inc_notes): Strengthen param "insn" from rtx to
4847 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
4848 param of this duplicate of the prototype from reload.h
4850 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4852 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
4854 (regstat_bb_compute_calls_crossed): Likewise.
4856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4858 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
4860 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
4862 (regrename_analyze): Strengthen local "insn" from rtx to
4864 (scan_rtx_reg): Likewise for param "insn".
4865 (scan_rtx_address): Likewise.
4866 (scan_rtx): Likewise.
4867 (restore_operands): Likewise.
4868 (record_out_operands): Likewise.
4869 (build_def_use): Likewise for local "insn". Replace use of
4870 NULL_RTX with NULL when dealing with an insn.
4872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4874 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
4875 * reginfo.c (reg_scan): Likewise, also for local "insn".
4876 (reg_scan_mark_refs): Likewise for param "insn".
4877 (init_subregs_of_mode): Likewise for local "insn".
4879 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4881 * regcprop.c (struct queued_debug_insn_change): Strengthen field
4882 "insn" from rtx to rtx_insn *.
4883 (replace_oldest_value_reg): Likewise for param "insn".
4884 (replace_oldest_value_addr): Likewise.
4885 (replace_oldest_value_mem): Likewise.
4886 (apply_debug_insn_changes): Likewise for local "last_insn".
4887 (copyprop_hardreg_forward_1): Likewise for local "insn".
4889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4891 * reg-stack.c (next_flags_user): Strengthen return type and param
4892 "insn" from rtx to rtx_insn *.
4893 (straighten_stack): Likewise for param "insn".
4894 (check_asm_stack_operands): Likewise.
4895 (remove_regno_note): Likewise.
4896 (emit_pop_insn): Likewise for return type, param "insn", local
4898 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
4899 "limit" from rtx to rtx_insn *.
4900 (swap_to_top): Likewise for param "insn".
4901 (move_for_stack_reg): Likewise.
4902 (move_nan_for_stack_reg): Likewise.
4903 (swap_rtx_condition): Likewise.
4904 (compare_for_stack_reg): Likewise.
4905 (subst_all_stack_regs_in_debug_insn): Likewise.
4906 (subst_stack_regs_pat): Likewise, and local "insn2".
4907 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
4909 (subst_stack_regs): Likewise.
4910 (change_stack): Likewise.
4911 (convert_regs_1): Likewise for locals "insn", "next".
4913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4915 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
4917 (combine_set_extension): Likewise for param "curr_insn".
4918 (transform_ifelse): Likewise for param "def_insn".
4919 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
4920 from vec<rtx> * to vec<rtx_insn *> *.
4921 (is_cond_copy_insn): Likewise for param "insn".
4922 (struct ext_state): Strengthen the four vec fields from vec<rtx>
4924 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
4925 local "def_insn" from rtx to rtx_insn *.
4926 (get_sub_rtx): Likewise for param "def_insn".
4927 (merge_def_and_ext): Likewise.
4928 (combine_reaching_defs): Likewise.
4929 (add_removable_extension): Likewise for param "insn".
4930 (find_removable_extensions): Likewise for local "insn".
4931 (find_and_remove_re): Likewise for locals "curr_insn" and
4932 "def_insn". Strengthen locals "reinsn_del_list" and
4933 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
4935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4937 * recog.c (split_insn): Strengthen param "insn" and locals
4938 "first", "last" from rtx to rtx_insn *.
4939 (split_all_insns): Likewise for locals "insn", "next".
4940 (split_all_insns_noflow): Likewise.
4942 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4944 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
4946 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4947 (debug_rtx_find): Likewise for param 1 "x".
4949 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
4950 const_rtx to const rtx_insn *. Likewise for local "insn".
4951 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4952 (debug_rtx_find): Likewise for param 1 "x".
4953 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
4954 from const_rtx to const rtx_insn * within the appropriate cases of
4955 the switch statement.
4957 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
4958 Strengthen local "insns" from rtx to rtx_insn * since this is
4959 passed to a call to debug_rtx_list.
4961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4963 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
4966 * function.c (stack_protect_epilogue): Add checked cast to
4967 rtx_insn for now when invoking predict_insn_def.
4969 * predict.c (predict_insn): Strengthen param "insn" from rtx to
4971 (predict_insn_def): Likewise.
4972 (rtl_predict_edge): Likewise for local "last_insn".
4973 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
4975 (combine_predictions_for_insn): Strengthen param "insn" from rtx
4977 (bb_estimate_probability_locally): Likewise for local "last_insn".
4978 (expensive_function_p): Likewise for local "insn".
4980 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
4981 local "jmp", since this is used when invoking predict_insn_def.
4983 2014-08-22 Marek Polacek <polacek@redhat.com>
4986 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
4988 2014-08-22 Marek Polacek <polacek@redhat.com>
4991 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
4992 a comparison in parens.
4993 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
4996 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4998 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5001 * cprop.c (fis_get_condition): Likewise.
5003 * postreload.c (reload_cse_regs): Likewise for param "first".
5004 (reload_cse_simplify): Likewise for param "insn".
5005 (reload_cse_regs_1): Likewise for local "insn".
5006 (reload_cse_simplify_set): Likewise for param "insn".
5007 (reload_cse_simplify_operands): Likewise.
5008 (struct reg_use): Likewise for field "insn".
5009 (reload_combine_purge_insn_uses): Likewise for param "insn".
5010 (fixup_debug_insns): Likewise for params "from", "to" and local
5012 (try_replace_in_use): Likewise for local "use_insn".
5013 (reload_combine_recognize_const_pattern): Likewise for param
5014 "insn" and locals "add_moved_after_insn", "use_insn".
5015 (reload_combine_recognize_pattern): Likewise for param "insn" and
5017 (reload_combine): Likewise for locals "insn", "prev".
5018 (reload_combine_note_use): Likewise for param "insn".
5019 (move2add_use_add2_insn): Likewise.
5020 (move2add_use_add3_insn): Likewise.
5021 (reload_cse_move2add): Likewise, also for local "next".
5022 (move2add_note_store): Likewise for local "insn".
5024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5026 * postreload-gcse.c (struct occr): Strengthen field "insn" from
5028 (struct unoccr): Likewise.
5029 (struct modifies_mem): Likewise.
5030 (alloc_mem): Likewise for local "insn".
5031 (insert_expr_in_table): Likewise for param "insn".
5032 (dump_expr_hash_table_entry): Likewise for local "insn".
5033 (oprs_unchanged_p): Likewise for param "insn".
5034 (load_killed_in_block_p): Likewise for local "setter".
5035 (record_last_reg_set_info): Likewise for param "insn".
5036 (record_last_reg_set_info_regno): Likewise.
5037 (record_last_mem_set_info): Likewise.
5038 (record_last_set_info): Likewise for local "last_set_insn".
5039 (record_opr_changes): Likewise for param "insn".
5040 (hash_scan_set): Likewise.
5041 (compute_hash_table): Likewise for local "insn".
5042 (get_avail_load_store_reg): Likewise for param "insn".
5043 (eliminate_partially_redundant_load): Likewise, also for locals
5044 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
5046 (eliminate_partially_redundant_loads): Likewise for local "insn".
5048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5050 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5052 (expand_binop): Likewise for locals "entry_last", "last", "insns"
5053 (expand_twoval_unop): Likewise for locals entry_last", "last".
5054 (expand_twoval_binop): Likewise.
5055 (expand_twoval_binop_libfunc): Likewise for local "insns".
5056 (widen_leading): Likewise for local "last".
5057 (expand_doubleword_clz): Likewise for local "seq". Strengthen
5058 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5059 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5060 (expand_parity): Likewise for locals "last" and "seq".
5061 (expand_ffs): Likewise for local "seq". Strengthen local
5062 "nonzero_label" from rtx to rtx_code_label *.
5063 (expand_absneg_bit): Strengthen local "insns" from rtx to
5065 (expand_unop_direct): Likewise for local "last".
5066 (expand_unop): Likewise for locals "last", "insns".
5067 (expand_abs_nojump): Likewise for local "last".
5068 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5069 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5071 (expand_copysign_absneg): Strengthen local "label" from rtx to
5073 (expand_copysign_bit): Strengthen local "insns" from rtx to
5075 (struct no_conflict_data): Likewise for fields "first", "insn".
5076 (emit_libcall_block_1): Likewise for param "insns" and locals
5077 "next", "last", "insn".
5078 (emit_libcall_block): For now, add a checked cast to rtx_insn *
5079 on "insns" when invoking emit_libcall_block_1. Ultimately we
5080 want to strengthen insns itself.
5081 (prepare_cmp_insn): Strengthen local "last" from rtx to
5083 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5084 (prepare_float_lib_cmp): Likewise for local "insns".
5085 (emit_conditional_move): Likewise for local "last".
5086 (emit_conditional_add): Likewise.
5087 (have_sub2_insn): Likewise for local "seq".
5088 (expand_float): Likewise for local "insns". Strengthen locals
5089 "label", "neglabel" from rtx to rtx_code_label *.
5090 (expand_fix): Likewise for locals "last", "insn", "insns" (to
5091 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5092 (expand_fixed_convert): Likewise for local "insns" (to
5094 (expand_sfix_optab): Likewise for local "last".
5095 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5096 to rtx_code_label *.
5097 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5098 from rtx to rtx_insn *.
5099 (expand_atomic_fetch_op): Likewise for local "insn".
5100 (maybe_legitimize_operand_same_code): Likewise for local "last".
5101 (maybe_legitimize_operands): Likewise.
5103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5105 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5106 "insn" from rtx to rtx_insn *.
5107 (ps_rtl_insn): Likewise for return type.
5108 (doloop_register_get): Likewise for params "head", "tail" and
5109 locals "insn", "first_insn_not_to_check".
5110 (schedule_reg_move): Likewise for local "this_insn".
5111 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5112 of gen_move_insn for now.
5113 (reset_sched_times): Strengthen local "insn" from rtx to
5115 (permute_partial_schedule): Likewise.
5116 (duplicate_insns_of_cycles): Likewise for local "u_insn".
5117 (dump_insn_location): Likewise for param "insn".
5118 (loop_canon_p): Likewise for local "insn".
5119 (sms_schedule): Likewise.
5120 (print_partial_schedule): Likewise.
5121 (ps_has_conflicts): Likewise.
5123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5125 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5126 "tailp" from rtx * to rtx_insn **.
5128 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5129 from rtx to rtx_insn *.
5130 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5131 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
5132 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5134 * modulo-sched.c (const_iteration_count): Strengthen return type
5135 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
5136 use of NULL_RTX with NULL when working with insns.
5137 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5139 (sms_schedule): Likewise.
5140 * sched-rgn.c (init_ready_list): Likewise, also for locals
5141 "src_head" and "src_next_tail".
5142 (compute_block_dependences): Likewise.
5143 (free_block_dependencies): Likewise.
5144 (debug_rgn_dependencies): Likewise.
5145 (free_rgn_deps): Likewise.
5146 (compute_priorities): Likewise.
5147 (schedule_region): Likewise.
5148 * sel-sched.c (find_ebb_boundaries): Likewise.
5150 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5151 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5155 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5156 from rtx to rtx_insn *.
5157 (new_seginfo): Likewise for param "insn".
5158 (create_pre_exit): Likewise for locals "last_insn",
5159 "before_return_copy", "return_copy".
5160 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5165 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5166 from rtx to rtx_insn *.
5167 (lra_push_insn): Likewise for 1st param.
5168 (lra_push_insn_and_update_insn_regno_info): Likewise.
5169 (lra_pop_insn): Likewise for return type.
5170 (lra_invalidate_insn_data): Likewise for 1st param.
5171 (lra_set_insn_deleted): Likewise.
5172 (lra_delete_dead_insn): Likewise.
5173 (lra_process_new_insns): Likewise for first 3 params.
5174 (lra_set_insn_recog_data): Likewise for 1st param.
5175 (lra_update_insn_recog_data): Likewise.
5176 (lra_set_used_insn_alternative): Likewise.
5177 (lra_invalidate_insn_regno_info): Likewise.
5178 (lra_update_insn_regno_info): Likewise.
5179 (lra_former_scratch_operand_p): Likewise.
5180 (lra_eliminate_regs_1): Likewise.
5181 (lra_get_insn_recog_data): Likewise.
5183 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5186 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5188 (substitute_within_insn): New.
5189 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5190 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
5191 Replace call to "substitute" with call to substitute_within_insn.
5193 * lra-constraints.c (curr_insn): Strengthen from rtx to
5195 (get_equiv_with_elimination): Likewise for param "insn".
5196 (match_reload): Strengthen params "before" and "after" from rtx *
5198 (emit_spill_move): Likewise for return type. Add a checked cast
5199 to rtx_insn * on result of gen_move_insn for now.
5200 (check_and_process_move): Likewise for local "before". Replace
5201 NULL_RTX with NULL when referring to insns.
5202 (process_addr_reg): Strengthen params "before" and "after" from
5203 rtx * to rtx_insn **.
5204 (insert_move_for_subreg): Likewise.
5205 (simplify_operand_subreg): Strengthen locals "before" and "after"
5206 from rtx to rtx_insn *.
5207 (process_address_1): Strengthen params "before" and "after" from
5208 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
5210 (process_address): Strengthen params "before" and "after" from
5211 rtx * to rtx_insn **.
5212 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5213 (curr_insn_transform): Strengthen locals "before" and "after"
5214 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
5216 (loc_equivalence_callback): Update cast of "data", changing
5217 resulting type from rtx to rtx_insn *.
5218 (substitute_pseudo_within_insn): New.
5219 (inherit_reload_reg): Strengthen param "insn" from rtx to
5220 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
5221 NULL when referring to insns. Add a checked cast to rtx_insn *
5222 when using usage_insn to invoke lra_update_insn_regno_info.
5223 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5224 likewise for locals "restore", "save". Add checked casts to
5225 rtx_insn * when using usage_insn to invoke
5226 lra_update_insn_regno_info and lra_process_new_insns. Replace
5227 NULL_RTX with NULL when referring to insns.
5228 (split_if_necessary): Strengthen param "insn" from rtx to
5230 (update_ebb_live_info): Likewise for params "head", "tail" and local
5232 (get_last_insertion_point): Likewise for return type and local "insn".
5233 (get_live_on_other_edges): Likewise for local "last".
5234 (inherit_in_ebb): Likewise for params "head", "tail" and locals
5235 "prev_insn", "next_insn", "restore".
5236 (remove_inheritance_pseudos): Likewise for local "prev_insn".
5237 (undo_optional_reloads): Likewise for local "insn".
5239 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5241 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5243 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5245 (spill_pseudos): Likewise for local "insn".
5246 (init_elimination): Likewise.
5247 (process_insn_for_elimination): Likewise for param "insn".
5249 * lra-lives.c (curr_insn): Likewise.;
5251 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5252 (remove_pseudos): Likewise for param "insn".
5253 (spill_pseudos): Likewise for local "insn".
5254 (lra_final_code_change): Likewise for locals "insn", "curr".
5256 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5257 (lra_set_insn_deleted): Likewise.
5258 (lra_delete_dead_insn): Likewise, and for local "prev".
5259 (new_insn_reg): Likewise for param "insn".
5260 (lra_set_insn_recog_data): Likewise.
5261 (lra_update_insn_recog_data): Likewise.
5262 (lra_set_used_insn_alternative): Likewise.
5263 (get_insn_freq): Likewise.
5264 (invalidate_insn_data_regno_info): Likewise.
5265 (lra_invalidate_insn_regno_info): Likewise.
5266 (lra_update_insn_regno_info): Likewise.
5267 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5269 (lra_push_insn_1): Strengthen param "insn" from rtx to
5271 (lra_push_insn): Likewise.
5272 (lra_push_insn_and_update_insn_regno_info): Likewise.
5273 (lra_pop_insn): Likewise for return type and local "insn".
5274 (push_insns): Likewise for params "from", "to", and local "insn".
5275 (setup_sp_offset): Likewise for params "from", "last" and locals
5277 (lra_process_new_insns): Likewise for params "insn", "before",
5278 "after" and local "last".
5279 (struct sloc): Likewise for field "insn".
5280 (lra_former_scratch_operand_p): Likewise for param "insn".
5281 (remove_scratches): Likewise for locals "insn", "last".
5282 (check_rtl): Likewise for local "insn".
5283 (add_auto_inc_notes): Likewise for param "insn".
5284 (update_inc_notes): Likewise for local "insn".
5285 (lra): Replace NULL_RTX with NULL when referring to insn.
5287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5289 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5291 (resolve_reg_notes): Likewise.
5292 (resolve_simple_move): Likewise for return type, param "insn", and
5293 locals "insns", "minsn".
5294 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5295 (resolve_use): Likewise.
5296 (resolve_debug): Likewise.
5297 (find_decomposable_shift_zext): Likewise.
5298 (resolve_shift_zext): Likewise for return type, param "insn", and
5299 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
5300 (decompose_multiword_subregs): Likewise for local "insn",
5301 "orig_insn", "decomposed_shift", "end".
5303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5305 * basic-block.h (basic_block split_edge_and_insert): Strengthen
5306 param "insns" from rtx to rtx_insn *.
5308 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5310 (struct iv_to_split): Likewise.
5311 (loop_exit_at_end_p): Likewise for local "insn".
5312 (split_edge_and_insert): Likewise for param "insns".
5313 (compare_and_jump_seq): Likewise for return type, param "cinsn",
5314 and locals "seq", "jump".
5315 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5316 "branch_code"; update invocations of compare_and_jump_seq to
5317 eliminate NULL_RTX in favor of NULL.
5318 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5320 (reset_debug_uses_in_loop): Likewise.
5321 (analyze_insn_to_expand_var): Likewise for param "insn".
5322 (analyze_iv_to_split_insn): Likewise.
5323 (analyze_insns_in_loop): Likewise for local "insn".
5324 (insert_base_initialization): Likewise for param
5325 "insn" and local "seq".
5326 (split_iv): Likewise for param "insn" and local "seq".
5327 (expand_var_during_unrolling): Likewise for param "insn".
5328 (insert_var_expansion_initialization): Likewise for local "seq".
5329 (combine_var_copies_in_loop_exit): Likewise.
5330 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5332 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5333 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5338 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5340 (iv_analyze_result): Likewise.
5341 (iv_analyze_expr): Likewise.
5344 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5345 local "def_insn" from rtx to rtx_insn *.
5346 (get_biv_step_1): Likewise for local "insn".
5347 (iv_analyze_expr): Likewise for param "insn".
5348 (iv_analyze_def): Likewise for local "insn".
5349 (iv_analyze_op): Likewise for param "insn".
5350 (iv_analyze): Likewise.
5351 (iv_analyze_result): Likewise.
5353 (suitable_set_for_replacement): Likewise.
5354 (simplify_using_initial_values): Likewise for local "insn".
5355 (iv_number_of_iterations): Likewise for param "insn".
5356 (check_simple_exit): Add checked cast to rtx_insn when invoking
5357 iv_number_of_iterations for now (until get_condition is
5360 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5361 "insn" from rtx to rtx_insn *.
5362 (analyze_insns_in_loop): Likewise for local "insn".
5364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5366 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5368 (struct invariant): Likewise.
5369 (hash_invariant_expr_1): Likewise for param "insn".
5370 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5371 (find_exits): Likewise for local "insn".
5372 (create_new_invariant): Likewise for param "insn".
5373 (check_dependencies): Likewise.
5374 (find_invariant_insn): Likewise.
5375 (record_uses): Likewise.
5376 (find_invariants_insn): Likewise.
5377 (find_invariants_bb): Likewise for local "insn".
5378 (get_pressure_class_and_nregs): Likewise for param "insn".
5379 (calculate_loop_reg_pressure): Likewise for local "insn".
5381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5383 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5385 (add_test): Likewise for locals "seq", "jump".
5386 (doloop_modify): Likewise for locals "sequence", "jump_insn".
5388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5390 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5392 (rebuild_jump_labels_chain): Likewise for param "chain".
5394 * cfgexpand.c (pass_expand::execute): Add checked cast to
5395 rtx_insn * when calling rebuild_jump_labels_chain in region where
5396 we know e->insns.r is non-NULL.
5398 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5400 (rebuild_jump_labels): Likewise.
5401 (rebuild_jump_labels_chain): Likewise for param "chain".
5402 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5403 (init_label_info): Likewise for param "f".
5404 (maybe_propagate_label_ref): Likewise for params "jump_insn",
5405 "prev_nonjump_insn".
5406 (mark_all_labels): Likewise for param "f" and locals "insn",
5407 "prev_nonjump_insn".
5409 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5411 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5412 from rtx to rtx_insn *insn.
5413 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5414 (ira_add_allocno_copy): Likewise.
5415 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5417 (ira_create_copy): Likewise.
5418 (ira_add_allocno_copy): Likewise.
5419 (create_bb_allocnos): Likewise for local "insn".
5420 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5421 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5422 process_regs_for_copy for rtx_insn * param.
5423 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5424 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
5425 process_regs_for_copy for rtx_insn * param.
5426 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5427 * ira-costs.c (record_reg_classes): Likewise for param "insn".
5428 (record_operand_costs): Likewise.
5429 (scan_one_insn): Likewise for return type, and for param "insn".
5430 (process_bb_for_costs): Likewise for local "insn".
5431 (process_bb_node_for_hard_reg_moves): Likewise.
5432 * ira-emit.c (struct move): Likewise for field "insn".
5433 (create_move): Eliminate use of NULL_RTX when dealing with an
5435 (emit_move_list): Strengthen return type and locals "result",
5436 "insn" from rtx to rtx_insn *insn.
5437 (emit_moves): Likewise for locals "insns", "tmp".
5438 (ira_emit): Likewise for local "insn".
5439 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5441 (find_call_crossed_cheap_reg): Likewise.
5442 (process_bb_node_lives): Likewise for local "insn".
5443 * ira.c (decrease_live_ranges_number): Likewise.
5444 (compute_regs_asm_clobbered): Likewise.
5445 (build_insn_chain): Likewise.
5446 (find_moveable_pseudos): Likewise, also locals "def_insn",
5447 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
5448 to rtx_insn **. Add a checked cast when assigning from
5449 "closest_use" into closest_uses array in a region where we know
5450 it's a non-NULL insn.
5451 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5453 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5454 "last_interesting_insn", "uin".
5455 (move_unallocated_pseudos): Likewise for locals "def_insn",
5456 "move_insn", "newinsn".
5458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5460 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5461 Strengthen locals "done_label", "do_error" from rtx to
5463 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5464 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
5466 (ubsan_expand_si_overflow_neg_check): Likewise for locals
5467 "done_label", "do_error" to rtx_code_label * and local "last" to
5469 (ubsan_expand_si_overflow_mul_check): Likewise for locals
5470 "done_label", "do_error", "large_op0", "small_op0_large_op1",
5471 "one_small_one_large", "both_ops_large", "after_hipart_neg",
5472 "after_lopart_neg", "do_overflow", "hipart_different" to
5473 rtx_code_label * and local "last" to rtx_insn *.
5475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5477 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5478 "insn" and "move_insn" from rtx to rtx_insn *.
5480 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5482 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5484 (cheap_bb_rtx_cost_p): Likewise.
5485 (first_active_insn): Likewise for return type and local "insn".
5486 (last_active_insn): Likewise for return type and locals "insn",
5488 (struct noce_if_info): Likewise for fields "jump", "insn_a",
5490 (end_ifcvt_sequence): Likewise for return type and locals "insn",
5492 (noce_try_move): Likewise for local "seq".
5493 (noce_try_store_flag): Likewise.
5494 (noce_try_store_flag_constants): Likewise.
5495 (noce_try_addcc): Likewise.
5496 (noce_try_store_flag_mask): Likewise.
5497 (noce_try_cmove): Likewise.
5498 (noce_try_minmax): Likewise.
5499 (noce_try_abs): Likewise.
5500 (noce_try_sign_mask): Likewise.
5501 (noce_try_bitop): Likewise.
5502 (noce_can_store_speculate_p): Likewise for local "insn".
5503 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5505 (check_cond_move_block): Likewise for local "insn".
5506 (cond_move_convert_if_block): Likewise.
5507 (cond_move_process_if_block): Likewise for locals "seq",
5509 (noce_find_if_block): Likewise for local "jump".
5510 (merge_if_block): Likewise for local "last".
5511 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5512 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5513 (block_has_only_trap): Likewise for return type and local "trap".
5514 (find_if_case_1): Likewise for local "jump".
5515 (dead_or_predicable): Likewise for locals "head", "end", "jump",
5518 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5520 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
5521 "last_insn", "loop_end" from rtx to rtx_insn *.
5523 * hw-doloop.c (scan_loop): Likewise for local "insn".
5524 (discover_loop): Likewise for param "tail_insn".
5525 (discover_loops): Likewise for local "tail".
5527 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
5528 cast to rtx_insn * when assigning from an rtx local to a
5529 hwloop_info's "last_insn" field.
5531 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5533 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
5534 (add_delay_dependencies): Strengthen local "pro" from rtx to
5536 (recompute_todo_spec): Likewise.
5537 (dep_cost_1): Likewise for locals "insn", "used".
5538 (schedule_insn): Likewise for local "dbg".
5539 (schedule_insn): Likewise for locals "pro", "next".
5540 (unschedule_insns_until): Likewise for local "con".
5541 (restore_pattern): Likewise for local "next".
5542 (estimate_insn_tick): Likewise for local "pro".
5543 (resolve_dependencies): Likewise for local "next".
5544 (fix_inter_tick): Likewise.
5545 (fix_tick_ready): Likewise for local "pro".
5546 (add_to_speculative_block): Likewise for locals "check", "twin",
5548 (sched_extend_bb): Likewise for locals "end", "insn".
5549 (init_before_recovery): Likewise for local "x".
5550 (sched_create_recovery_block): Likewise for local "barrier".
5551 (create_check_block_twin): Likewise for local "pro".
5552 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
5554 (unlink_bb_notes): Update for change to type of bb_header.
5555 Strengthen locals "prev", "label", "note", "next" from rtx to
5557 (clear_priorities): Likewise for local "pro".
5559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5561 * gcse.c (struct occr): Strengthen field "insn" from rtx to
5563 (test_insn): Likewise for this global.
5564 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
5566 (oprs_anticipatable_p): Likewise.
5567 (oprs_available_p): Likewise.
5568 (insert_expr_in_table): Strengthen param "insn" from rtx to
5570 (hash_scan_set): Likewise.
5571 (hash_scan_clobber): Likewise.
5572 (hash_scan_call): Likewise.
5573 (hash_scan_insn): Likewise.
5574 (compute_hash_table_work): Likewise for local "insn".
5575 (process_insert_insn): Likewise for return type and local "pat".
5576 (insert_insn_end_basic_block): Likewise for locals "new_insn",
5577 "pat", "pat_end", "maybe_cc0_setter".
5578 (pre_edge_insert): Likewise for local "insn".
5579 (pre_insert_copy_insn): Likewise for param "insn".
5580 (pre_insert_copies): Likewise for local "insn".
5581 (struct set_data): Likewise for field "insn".
5582 (single_set_gcse): Likewise for param "insn".
5583 (gcse_emit_move_after): Likewise.
5584 (pre_delete): Likewise for local "insn".
5585 (update_bb_reg_pressure): Likewise for param "from" and local
5587 (should_hoist_expr_to_dom): Likewise for param "from".
5588 (hoist_code): Likewise for local "insn".
5589 (get_pressure_class_and_nregs): Likewise for param "insn".
5590 (calculate_bb_reg_pressure): Likewise for local "insn".
5591 (compute_ld_motion_mems): Likewise.
5593 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5595 * genpeep.c (main): Rename param back from "uncast_ins1" to
5596 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
5599 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
5601 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5604 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
5605 documentation to state it is only for VSX operations.
5607 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
5608 constraint only active if VSX.
5610 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
5611 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
5614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5616 * fwprop.c (single_def_use_dom_walker::before_dom_children):
5617 Strengthen local "insn" from rtx to rtx_insn *.
5618 (use_killed_between): Likewise for param "target_insn".
5619 (all_uses_available_at): Likewise for param "target_insn" and
5621 (update_df_init): Likewise for params "def_insn", "insn".
5622 (update_df): Likewise for param "insn".
5623 (try_fwprop_subst): Likewise for param "def_insn" and local
5625 (free_load_extend): Likewise for param "insn".
5626 (forward_propagate_subreg): Likewise for param "def_insn" and
5628 (forward_propagate_asm): Likewise for param "def_insn" and local
5630 (forward_propagate_and_simplify): Likewise for param "def_insn"
5631 and local "use_insn".
5632 (forward_propagate_into): Likewise for locals "def_insn" and
5635 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5637 * function.c (emit_initial_value_sets): Strengthen local "seq"
5638 from rtx to rtx_insn *.
5639 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
5641 (instantiate_virtual_regs): Likewise for local "insn".
5642 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
5643 (reorder_blocks_1): Likewise for param "insns" and local "insn".
5644 (expand_function_end): Likewise for locals "insn" and "seq".
5645 (epilogue_done): Likewise for local "insn".
5646 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
5648 (reposition_prologue_and_epilogue_notes): Likewise for locals
5649 "insn", "last", "note", "first".
5650 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
5651 (pass_match_asm_constraints::execute): Likewise for local "insn".
5653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5655 * output.h (final_scan_insn): Strengthen return type from rtx to
5657 (final_forward_branch_p): Likewise for param.
5658 (current_output_insn): Likewise for this global.
5660 * final.c (rtx debug_insn): Likewise for this variable.
5661 (current_output_insn): Likewise.
5662 (get_attr_length_1): Rename param "insn" to "uncast_insn",
5663 adding "insn" back in as an rtx_insn * with a checked cast, so
5664 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
5666 (compute_alignments): Strengthen local "label" from rtx to
5668 (shorten_branches): Rename param from "first" to "uncast_first",
5669 introducing a new local rtx_insn * "first" using a checked cast to
5670 effectively strengthen "first" from rtx to rtx_insn * without
5671 affecting the type signature. Strengthen locals "insn", "seq",
5672 "next", "label" from rtx to rtx_insn *.
5673 (change_scope): Strengthen param "orig_insn" and local "insn" from
5675 (final_start_function): Rename param from "first" to "uncast_first",
5676 introducing a new local rtx_insn * "first" using a checked cast to
5677 effectively strengthen "first" from rtx to rtx_insn * without
5678 affecting the type signature. Strengthen local "insn" from rtx to
5680 (dump_basic_block_info): Strengthen param "insn" from rtx to
5682 (final): Rename param from "first" to "uncast_first",
5683 introducing a new local rtx_insn * "first" using a checked cast to
5684 effectively strengthen "first" from rtx to rtx_insn * without
5685 affecting the type signature. Strengthen locals "insn", "next"
5686 from rtx to rtx_insn *.
5687 (output_alternate_entry_point): Strengthen param "insn" from rtx to
5689 (call_from_call_insn): Strengthen param "insn" from rtx to
5691 (final_scan_insn): Rename param from "insn" to "uncast_insn",
5692 introducing a new local rtx_insn * "insn" using a checked cast to
5693 effectively strengthen "insn" from rtx to rtx_insn * without
5694 affecting the type signature. Strengthen return type and locals
5695 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
5696 now-redundant checked cast to rtx_insn * from both invocations of
5697 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
5698 introducing a local "call_insn" for use when invoking
5699 call_from_call_insn.
5700 (notice_source_line): Strengthen param "insn" from rtx to
5702 (leaf_function_p): Likewise for local "insn".
5703 (final_forward_branch_p): Likewise.
5704 (leaf_renumber_regs): Likewise for param "first".
5705 (rest_of_clean_state): Likewise for locals "insn" and "next".
5706 (self_recursive_call_p): Likewise for param "insn".
5707 (collect_fn_hard_reg_usage): Likewise for local "insn".
5708 (get_call_fndecl): Likewise for param "insn".
5709 (get_call_cgraph_rtl_info): Likewise.
5710 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
5711 introducing a new local rtx_insn * "insn" using a checked cast to
5712 effectively strengthen "insn" from rtx to rtx_insn * without
5713 affecting the type signature.
5715 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
5716 cast when assigning from param "insn" to current_output_insn.
5717 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
5718 so that we can assign it back to current_output_insn.
5720 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5722 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
5723 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
5724 atmxt540s and atmxt540sreva devices.
5725 * config/avr/avr-tables.opt: Regenerate.
5726 * config/avr/t-multilib: Regenerate.
5727 * doc/avr-mmcu.texi: Regenerate.
5729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5731 * expr.c (convert_move): Strengthen local "insns" from rtx to
5733 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
5734 "top_label" from rtx to rtx_code_label *.
5735 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
5737 (emit_single_push_insn): Likewise for locals "prev", "last".
5738 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
5739 to rtx_code_label *.
5740 (store_constructor): Likewise for locals "loop_start", "loop_end".
5741 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
5743 (expand_expr_real_2): Likewise.
5744 (expand_expr_real_1): Strengthen local "label" from rtx to
5747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5749 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
5750 from rtx to rtx_insn *.
5751 (store_bit_field_1): Likewise.
5752 (extract_bit_field_1): Likewise.
5753 (expand_mult_const): Likewise for local "insns".
5754 (expmed_mult_highpart): Strengthen local "label" from rtx to
5756 (expand_smod_pow2): Likewise.
5757 (expand_sdiv_pow2): Likewise.
5758 (expand_divmod): Strengthen locals "last", "insn" from rtx to
5759 rtx_insn *. Strengthen locals "label", "label1", "label2",
5760 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
5761 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
5762 (emit_store_flag): Likewise.
5763 (emit_store_flag_force): Strengthen local "label" from rtx to
5765 (do_cmp_and_jump): Likewise for param "label".
5767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5769 * explow.c (force_reg): Strengthen local "insn" from rtx to
5771 (adjust_stack_1): Likewise.
5772 (allocate_dynamic_stack_space): Likewise. Strengthen locals
5773 "final_label", "available_label", "space_available" from rtx to
5775 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
5776 (anti_adjust_stack_and_probe): Likewise.
5778 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5780 * except.h (sjlj_emit_function_exit_after): Strengthen param
5781 "after" from rtx to rtx_insn *. This is only called with
5782 result of get_last_insn (in function.c) so type-change should be
5785 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
5786 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
5787 to rtx_insn *. These fields are only used from except.c so this
5788 type-change should be self-contained to this patch.
5790 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
5791 local "last" from rtx to rtx_insn *.
5792 (dw2_build_landing_pads): Likewise for local "seq".
5793 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
5794 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
5795 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
5797 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
5799 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
5800 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
5801 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
5802 referring to an insn. Strengthen local "dispatch_label" from
5803 rtx to rtx_code_label *.
5804 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
5806 (expand_eh_return): Strengthen local "around_label" from
5807 rtx to rtx_code_label *.
5808 (convert_to_eh_region_ranges): Strengthen locals "iter",
5809 "last_action_insn", "first_no_action_insn",
5810 "first_no_action_insn_before_switch",
5811 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
5813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5815 * dwarf2out.c (last_var_location_insn): Strengthen this variable
5816 from rtx to rtx_insn *.
5817 (cached_next_real_insn): Likewise.
5818 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
5820 (dwarf2out_var_location): Strengthen locals "next_real",
5821 "next_note", "expected_next_loc_note", "last_start", "insn" from
5824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5826 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
5827 from rtx to rtx_insn *.
5828 (create_pseudo_cfg): Likewise for local "insn".
5830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5832 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
5833 from rtx to rtx_insn *.
5834 (df_bb_regno_last_def_find): Likewise.
5836 * df-problems.c (df_rd_bb_local_compute): Likewise.
5837 (df_lr_bb_local_compute): Likewise.
5838 (df_live_bb_local_compute): Likewise.
5839 (df_chain_remove_problem): Likewise.
5840 (df_chain_create_bb): Likewise.
5841 (df_word_lr_bb_local_compute): Likewise.
5842 (df_remove_dead_eq_notes): Likewise for param "insn".
5843 (df_note_bb_compute): Likewise for local "insn".
5844 (simulate_backwards_to_point): Likewise.
5845 (df_md_bb_local_compute): Likewise.
5847 * df-scan.c (df_scan_free_bb_info): Likewise.
5848 (df_scan_start_dump): Likewise.
5849 (df_scan_start_block): Likewise.
5850 (df_install_ref_incremental): Likewise for local "insn".
5851 (df_insn_rescan_all): Likewise.
5852 (df_reorganize_refs_by_reg_by_insn): Likewise.
5853 (df_reorganize_refs_by_insn_bb): Likewise.
5854 (df_recompute_luids): Likewise.
5855 (df_bb_refs_record): Likewise.
5856 (df_update_entry_exit_and_calls): Likewise.
5857 (df_bb_verify): Likewise.
5859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5861 * ddg.h (struct ddg_node): Strengthen fields "insn" and
5862 "first_note" from rtx to rtx_insn *.
5863 (get_node_of_insn): Likewise for param 2 "insn".
5864 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5866 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
5868 (mem_write_insn_p): Likewise.
5869 (mem_access_insn_p): Likewise.
5870 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5871 (def_has_ccmode_p): Likewise for param "insn".
5872 (add_cross_iteration_register_deps): Likewise for locals
5873 "def_insn" and "use_insn".
5874 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
5875 (build_intra_loop_deps): Likewise for local "src_insn".
5876 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
5878 (get_node_of_insn): Likewise for param "insn".
5880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5882 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
5883 (deletable_insn_p): Strengthen param "insn" from rtx to
5884 rtx_insn *. Add checked cast to rtx_call_insn when invoking
5885 find_call_stack_args, since this is guarded by CALL_P (insn).
5886 (marked_insn_p): Strengthen param "insn" from rtx to
5888 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
5889 invoking find_call_stack_args, since this is guarded by
5891 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
5892 rtx_insn *; we know this is an insn since this was called by
5894 (mark_nonreg_stores_2): Likewise.
5895 (mark_nonreg_stores): Strengthen param "insn" from rtx to
5897 (find_call_stack_args): Strengthen param "call_insn" from rtx to
5898 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
5900 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
5901 from rtx to rtx_insn *.
5902 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
5904 (delete_unmarked_insns): Likewise for locals "insn", "next".
5905 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
5906 (mark_reg_dependencies): Likewise for param "insn".
5907 (rest_of_handle_ud_dce): Likewise for local "insn".
5908 (word_dce_process_block): Likewise.
5909 (dce_process_block): Likewise.
5911 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5913 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
5914 from rtx to rtx_insn *.
5915 (struct change_cc_mode_args): Likewise for field "insn".
5916 (this_insn): Strengthen from rtx to rtx_insn *.
5917 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
5919 (validate_canon_reg): Strengthen param "insn" from rtx to
5921 (canon_reg): Likewise.
5922 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
5924 (record_jump_equiv): Strengthen param "insn" from rtx to
5926 (try_back_substitute_reg): Likewise, also for locals "prev",
5928 (find_sets_in_insn): Likewise for param "insn".
5929 (canonicalize_insn): Likewise.
5930 (cse_insn): Likewise. Add a checked cast.
5931 (invalidate_from_clobbers): Likewise for param "insn".
5932 (invalidate_from_sets_and_clobbers): Likewise.
5933 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
5935 (cse_prescan_path): Strengthen local "insn" from rtx to
5937 (cse_extended_basic_block): Likewise for locals "insn" and
5939 (cse_main): Likewise for param "f".
5940 (check_for_label_ref): Likewise for local "insn".
5941 (set_live_p): Likewise for second param ("insn").
5942 (insn_live_p): Likewise for first param ("insn") and for local
5944 (cse_change_cc_mode_insn): Likewise for first param "insn".
5945 (cse_change_cc_mode_insns): Likewise for first and second params
5947 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
5949 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
5952 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5953 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5954 Anna Tikhonova <anna.tikhonova@intel.com>
5955 Ilya Tocar <ilya.tocar@intel.com>
5956 Andrey Turetskiy <andrey.turetskiy@intel.com>
5957 Ilya Verbin <ilya.verbin@intel.com>
5958 Kirill Yukhin <kirill.yukhin@intel.com>
5959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5961 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
5963 * config/i386/sse.md
5964 (define_mode_iterator VI248_AVX2): Delete.
5965 (define_mode_iterator VI2_AVX2_AVX512BW): New.
5966 (define_mode_iterator VI48_AVX2): Ditto.
5967 (define_insn <shift_insn><mode>3): Delete.
5968 (define_insn "<shift_insn><mode>3<mask_name>" with
5969 VI2_AVX2_AVX512BW): New.
5970 (define_insn "<shift_insn><mode>3<mask_name>" with
5973 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5975 Anna Tikhonova <anna.tikhonova@intel.com>
5976 Ilya Tocar <ilya.tocar@intel.com>
5977 Andrey Turetskiy <andrey.turetskiy@intel.com>
5978 Ilya Verbin <ilya.verbin@intel.com>
5979 Kirill Yukhin <kirill.yukhin@intel.com>
5980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5982 * config/i386/sse.md
5983 (define_mode_iterator VI4F_BRCST32x2): New.
5984 (define_mode_attr 64x2_mode): Ditto.
5985 (define_mode_attr 32x2mode): Ditto.
5986 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
5987 with VI4F_BRCST32x2): Ditto.
5988 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
5989 with V16FI mode iterator): Ditto.
5990 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5992 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5993 with VI8F_BRCST64x2): Ditto.
5995 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5997 Anna Tikhonova <anna.tikhonova@intel.com>
5998 Ilya Tocar <ilya.tocar@intel.com>
5999 Andrey Turetskiy <andrey.turetskiy@intel.com>
6000 Ilya Verbin <ilya.verbin@intel.com>
6001 Kirill Yukhin <kirill.yukhin@intel.com>
6002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6004 * config/i386/sse.md
6005 (define_mode_iterator VI8_AVX512VL): New.
6006 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6008 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
6010 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6011 (define_mode_iterator V48_AVX512VL): New.
6012 (define_mode_iterator V12_AVX512VL): Ditto.
6013 (define_insn <avx512>_load<mode>_mask): Split into two similar
6014 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6015 Refactor output template.
6016 (define_insn "<avx512>_store<mode>_mask"): Ditto.
6018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6020 * cprop.c (struct occr): Strengthen field "insn" from rtx to
6022 (reg_available_p): Likewise for param "insn".
6023 (insert_set_in_table): Likewise.
6024 (hash_scan_set): Likewise.
6025 (hash_scan_insn): Likewise.
6026 (make_set_regs_unavailable): Likewise.
6027 (compute_hash_table_work): Likewise for local "insn".
6028 (reg_not_set_p): Strengthen param "insn" from const_rtx to
6030 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6031 (try_replace_reg): Likewise.
6032 (find_avail_set): Likewise.
6033 (cprop_jump): Likewise for params "setcc", "jump".
6034 (constprop_register): Likewise for param "insn".
6035 (cprop_insn): Likewise.
6036 (do_local_cprop): Likewise.
6037 (local_cprop_pass): Likewise for local "insn".
6038 (bypass_block): Likewise for params "setcc" and "jump".
6039 (bypass_conditional_jumps): Likewise for locals "setcc" and
6041 (one_cprop_pass): Likewise for local "insn".
6043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6045 * compare-elim.c (struct comparison_use): Strengthen field "insn"
6046 from rtx to rtx_insn *.
6047 (struct comparison): Likewise, also for field "prev_clobber".
6048 (conforming_compare): Likewise for param "insn".
6049 (arithmetic_flags_clobber_p): Likewise.
6050 (find_flags_uses_in_insn): Likewise.
6051 (find_comparison_dom_walker::before_dom_children): Likewise for
6052 locals "insn", "next", "last_clobber".
6053 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6057 * combine-stack-adj.c (struct csa_reflist): Strengthen field
6058 "insn" from rtx to rtx_insn *.
6059 (single_set_for_csa): Likewise for param "insn".
6060 (record_one_stack_ref): Likewise.
6061 (try_apply_stack_adjustment): Likewise.
6062 (struct record_stack_refs_data): Likewise for field "insn".
6063 (maybe_move_args_size_note): Likewise for params "last" and "insn".
6064 (prev_active_insn_bb): Likewise for return type and param "insn".
6065 (next_active_insn_bb): Likewise.
6066 (force_move_args_size_note): Likewise for params "prev" and "last"
6067 and locals "test", "next_candidate", "prev_candidate".
6068 (combine_stack_adjustments_for_block): Strengthen locals
6069 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6072 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6074 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6075 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6076 (subst_insn): Likewise for this variable.
6077 (added_links_insn): Likewise.
6078 (struct insn_link): Likewise for field "insn".
6079 (alloc_insn_link): Likewise for param "insn".
6080 (struct undobuf): Likewise for field "other_insn".
6081 (find_single_use): Likewise for param "insn" and local "next".
6082 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6083 (delete_noop_moves): Likewise for locals "insn", "next".
6084 (create_log_links): Likewise for locals "insn", "use_insn".
6085 Strengthen local "next_use" from rtx * to rtx_insn **.
6086 (insn_a_feeds_b): Likewise for params "a", "b".
6087 (combine_instructions): Likewise for param "f" and locals "insn",
6088 "next", "prev", "first", "last_combined_insn", "link", "link1",
6089 "temp". Replace use of NULL_RTX with NULL when referring to
6091 (setup_incoming_promotions): Likewise for param "first"
6092 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6093 (can_combine_p): Likewise for params "insn", "i3", "pred",
6094 "pred2", "succ", "succ2" and for local "p".
6095 (combinable_i3pat): Likewise for param "i3".
6096 (cant_combine_insn_p): Likewise for param "insn".
6097 (likely_spilled_retval_p): Likewise.
6098 (adjust_for_new_dest): Likewise.
6099 (update_cfg_for_uncondjump): Likewise, also for local "insn".
6100 (try_combine): Likewise for return type and for params "i3", "i2",
6101 "i1", "i0", "last_combined_insn", and for locals "insn",
6102 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6103 "i0_insn". Eliminate local "tem" in favor of new locals
6104 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
6105 checked cast for now to rtx_insn * on the return type of
6106 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
6108 (find_split_point): Strengthen param "insn" from rtx to
6110 (simplify_set): Likewise for local "other_insn".
6111 (recog_for_combine): Likewise for param "insn".
6112 (record_value_for_reg): Likewise.
6113 (record_dead_and_set_regs_1): Likewise for local
6115 (record_dead_and_set_regs): Likewise for param "insn".
6116 (record_promoted_value): Likewise.
6117 (check_promoted_subreg): Likewise.
6118 (get_last_value_validate): Likewise.
6119 (reg_dead_at_p): Likewise.
6120 (move_deaths): Likewise for param "to_insn".
6121 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6122 and locals "place", "place2", "cc0_setter". Eliminate local "tem
6123 in favor of new locals "tem_note" and "tem_insn", the latter being
6125 (distribute_links): Strengthen locals "place", "insn" from rtx to
6128 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6130 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6132 (can_delete_label_p): Require a const rtx_code_label * rather than
6134 (delete_insn): Add checked cast to rtx_code_label * when we know
6135 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
6137 (delete_insn_chain): Strengthen locals "prev" and "current" from
6138 rtx to rtx_insn *. Add a checked cast when assigning from
6139 "finish" (strengthening the params will come later). Add a
6140 checked cast to rtx_note * in region where we know
6142 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6144 (compute_bb_for_insn): Likewise.
6145 (free_bb_for_insn): Likewise for local "insn".
6146 (compute_bb_for_insn): Likewise.
6147 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6148 local "insn" from rtx to rtx_insn *
6149 (flow_active_insn_p): Require a const rtx_insn * rather than a
6151 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6153 (can_fallthru): Likewise for locals "insn" and "insn2".
6154 (bb_note): Likewise for local "note".
6155 (first_insn_after_basic_block_note): Likewise for local "note" and
6157 (rtl_split_block): Likewise for locals "insn" and "next".
6158 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6160 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6161 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6163 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6164 them), "kill_from", "barrier", "new_insn".
6165 (patch_jump_insn): Likewise for params "insn", "old_label".
6166 (redirect_branch_edge): Likewise for locals "old_label", "insn".
6167 (force_nonfallthru_and_redirect): Likewise for locals "insn",
6168 "old_label", "new_label".
6169 (rtl_tidy_fallthru_edge): Likewise for local "q".
6170 (rtl_split_edge): Likewise for locals "before", "last".
6171 (commit_one_edge_insertion): Likewise for locals "before",
6172 "after", "insns", "tmp", "last", adding a checked cast where
6173 currently necessary.
6174 (commit_edge_insertions): Likewise.
6175 (rtl_dump_bb): Likewise for locals "insn", "last".
6176 (print_rtl_with_bb): Likewise for local "x".
6177 (rtl_verify_bb_insns): Likewise for local "x".
6178 (rtl_verify_bb_pointers): Likewise for local "insn".
6179 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6181 (rtl_verify_fallthru): Likewise for local "insn".
6182 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6183 (purge_dead_edges): Likewise for local "insn".
6184 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6185 (skip_insns_after_block): Likewise for return type and for locals
6186 "insn", "last_insn", "next_head", "prev".
6187 (record_effective_endpoints): Likewise for locals "next_insn",
6189 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6190 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6191 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6192 (duplicate_insn_chain): For now, add checked cast from rtx to
6193 rtx_insn * when returning insn.
6194 (cfg_layout_duplicate_bb): Likewise for local "insn".
6195 (cfg_layout_delete_block): Likewise for locals "insn", "next",
6197 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6198 (rtl_block_empty_p): Likewise.
6199 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6200 "split_point", "last".
6201 (rtl_block_ends_with_call_p): Likewise for local "insn".
6202 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6204 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6205 "split_at_insn" from rtx to rtx_insn *.
6206 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6207 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6208 to const rtx_insn *.
6209 (rtl_account_profile_record): Likewise.
6211 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6213 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6215 (average_num_loop_insns): Likewise.
6216 (init_set_costs): Likewise for local "seq".
6217 (seq_cost): Likewise for param "seq", from const_rtx to const
6220 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6222 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6225 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6227 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6228 "f1" and "f2" from rtx * to rtx_insn **.
6229 (flow_find_head_matching_sequence): Likewise.
6231 * cfgcleanup.c (try_simplify_condjump): Strengthen local
6232 "cbranch_insn" from rtx to rtx_insn *.
6233 (thread_jump): Likewise for local "insn".
6234 (try_forward_edges): Likewise for local "last".
6235 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6236 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6238 (can_replace_by): Likewise for params "i1", "i2".
6239 (old_insns_match_p): Likewise.
6240 (merge_notes): Likewise.
6241 (walk_to_nondebug_insn): Likewise for param "i1".
6242 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6243 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
6244 "afterlast1", "afterlast2" from rtx to rtx_insn *.
6245 (flow_find_head_matching_sequence): Strengthen params "f1" and
6246 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
6247 "last1", "last2", "beforelast1", "beforelast2" from rtx to
6249 (outgoing_edges_match): Likewise for locals "last1", "last2".
6250 (try_crossjump_to_edge): Likewise for local "insn".
6251 Replace call to for_each_rtx with for_each_rtx_in_insn.
6253 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6254 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6255 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
6256 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6257 (try_optimize_cfg): Strengthen local "last" from rtx to
6259 (delete_dead_jumptables): Likewise for locals "insn", "next",
6262 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6263 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6264 "rtx else_first_tail", to reflect the basic-block.h changes above.
6266 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6268 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6270 (purge_dead_tablejump_edges): Likewise.
6271 (find_bb_boundaries): Likewise for locals "insn", "end",
6272 "flow_transfer_insn".
6274 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6276 * caller-save.c (save_call_clobbered_regs): Strengthen locals
6277 "ins" and "prev" from rtx to rtx_insn *.
6279 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6281 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6283 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6284 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6286 (load_register_parameters): Likewise for local "before_arg".
6287 (check_sibcall_argument_overlap): Likewise for param "insn".
6288 (expand_call): Likewise for locals "normal_call_insns",
6289 "tail_call_insns", "insns", "before_call", "after_args",
6290 "before_arg", "last", "prev". Strengthen one of the "last" from
6291 rtx to rtx_call_insn *.
6292 (fixup_tail_calls): Strengthen local "insn" from rtx to
6294 (emit_library_call_value_1): Likewise for locals "before_call" and
6297 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6299 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6300 and "last" from rtx to rtx_insn *.
6301 (expand_builtin_nonlocal_goto): Likewise for local "insn".
6302 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6304 (expand_errno_check): Strengthen local "lab" from rtx to
6306 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6308 (expand_builtin_mathfn_2): Likewise.
6309 (expand_builtin_mathfn_ternary): Likewise.
6310 (expand_builtin_mathfn_3): Likewise.
6311 (expand_builtin_interclass_mathfn): Likewise for local "last".
6312 (expand_builtin_int_roundingfn): Likewise for local "insns".
6313 (expand_builtin_int_roundingfn_2): Likewise.
6314 (expand_builtin_strlen): Likewise for local "before_strlen".
6315 (expand_builtin_strncmp): Likewise for local "seq".
6316 (expand_builtin_signbit): Likewise for local "last".
6317 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6318 from rtx to rtx_code_label *.
6319 (expand_stack_restore): Strengthen local "prev" from rtx to
6322 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6324 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6326 (struct btr_def_s): Likewise.
6327 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6329 (add_btr_def): Likewise.
6330 (new_btr_user): Likewise.
6331 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6333 (link_btr_uses): Likewise.
6334 (move_btr_def): Likewise for locals "insp", "old_insn",
6335 "new_insn". Add checked cast to rtx_insn * for now on result of
6337 (can_move_up): Strengthen param "insn" from const_rtx to
6340 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6342 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6344 (get_uncond_jump_length): Likewise for locals "label", "jump".
6345 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6347 (add_labels_and_missing_jumps): Likewise for local "new_jump".
6348 (fix_up_fall_thru_edges): Likewise for local "old_jump".
6349 (find_jump_block): Likewise for local "insn".
6350 (fix_crossing_conditional_branches): Likewise for locals
6351 "old_jump", "new_jump".
6352 (fix_crossing_unconditional_branches): Likewise for locals
6353 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6354 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6356 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6358 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6360 (struct mem_insn): Likewise for field "insn".
6361 (reg_next_use): Strengthen from rtx * to rtx_insn **.
6362 (reg_next_inc_use): Likewise.
6363 (reg_next_def): Likewise.
6364 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6365 from rtx to rtx_insn *.
6366 (move_insn_before): Likewise for param "next_insn" and local "insns".
6367 (attempt_change): Likewise for local "mov_insn".
6368 (try_merge): Likewise for param "last_insn".
6369 (get_next_ref): Likewise for return type and local "insn".
6370 Strengthen param "next_array" from rtx * to rtx_insn **.
6371 (parse_add_or_inc): Strengthen param "insn" from rtx to
6373 (find_inc): Likewise for locals "insn" and "other_insn" (three of
6375 (merge_in_block): Likewise for locals "insn", "curr",
6377 (pass_inc_dec::execute): Update allocations of the arrays to
6378 reflect the stronger types.
6380 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6382 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6383 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
6384 from rtx to rtx_code_label *.
6386 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6388 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6391 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6393 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6394 generated a warning and prevented bootstrapping the compiler.
6396 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6398 * rtl.h (delete_related_insns): Strengthen return type from rtx to
6401 * jump.c (delete_related_insns): Likewise, also for locals "next"
6404 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6406 * genautomata.c (output_internal_insn_latency_func): When writing
6407 the function "internal_insn_latency" to insn-automata.c,
6408 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6409 allowing the optional guard function of (define_bypass) clauses to
6410 expect a pair of rtx_insn *, rather than a pair of rtx.
6411 (output_insn_latency_func): When writing the function
6412 "insn_latency", add an "uncast_" prefix to params "insn" and
6413 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6414 using checked casts from the params, thus enabling the above
6415 change to the generated "internal_insn_latency" function.
6417 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
6419 PR tree-optimization/62091
6420 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6421 handle correctly arrays.
6422 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6424 (record_known_type): Walk into inner type.
6425 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6426 condition on no type changes.
6428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6430 * genattrtab.c (write_attr_get): Within the generated get_attr_
6431 functions, rename param "insn" to "uncast_insn" and reintroduce
6432 "insn" as an local rtx_insn * using a checked cast, so that "insn"
6433 is an rtx_insn * within insn-attrtab.c
6435 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6437 * output.h (peephole): Strengthen return type from rtx to
6439 * rtl.h (delete_for_peephole): Likewise for both params.
6440 * genpeep.c (main): In generated "peephole" function, strengthen
6441 return type and local "insn" from rtx to rtx_insn *. For now,
6442 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6443 rtx_insn *, with a checked cast.
6444 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6445 locals "insn", "next", "prev" from rtx to rtx_insn *.
6447 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
6449 PR tree-optimization/62112
6450 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6451 * gimple-iterator.h (gsi_replace): Return bool.
6452 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6453 moved from ref_may_alias_global_p.
6454 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6456 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6457 (stmt_kills_ref_p_1): Rename...
6458 (stmt_kills_ref_p): ... to this.
6459 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6460 stmt_kills_ref_p): Declare.
6461 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6462 Move the self-assignment case...
6463 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6465 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6467 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6469 * emit-rtl.c (try_split): Likewise, also for locals "before" and
6470 "after". For now, don't strengthen param "trial", which requires
6471 adding checked casts when returning it.
6473 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6475 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6476 "label" from rtx to rtx_code_label *. Strengthen param 1 of
6477 "var_location" hook from rtx to rtx_insn *.
6478 (debug_nothing_rtx): Delete in favor of...
6479 (debug_nothing_rtx_code_label): New prototype.
6480 (debug_nothing_rtx_rtx): Delete unused prototype.
6481 (debug_nothing_rtx_insn): New prototype.
6483 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6484 invoking debug_hooks->var_location (in two places, one in a NOTE
6485 case of a switch statement, the other guarded by a CALL_P
6486 conditional. Add checked cast to rtx_code_label * when invoking
6487 debug_hooks->label (within CODE_LABEL case of switch statement).
6489 * dbxout.c (dbx_debug_hooks): Update "label" hook from
6490 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6491 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6492 (xcoff_debug_hooks): Likewise.
6493 * debug.c (do_nothing_debug_hooks): Likewise.
6494 (debug_nothing_rtx): Delete in favor of...
6495 (debug_nothing_rtx_insn): New function.
6496 (debug_nothing_rtx_rtx): Delete unused function.
6497 (debug_nothing_rtx_code_label): New function.
6498 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6499 debug_nothing_rtx to debug_nothing_rtx_code_label.
6500 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6502 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6503 debug_nothing_rtx to debug_nothing_rtx_insn.
6504 (sdbout_label): Strengthen param "insn" from rtx to
6506 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6507 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6508 "var_location" hook from debug_nothing_rtx to
6509 debug_nothing_rtx_insn.
6511 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6513 * recog.h (insn_output_fn): Update this function typedef to match
6514 the changes below to the generated output functions, strengthening
6515 the 2nd param from rtx to rtx_insn *.
6517 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
6518 insn when invoking an output function, to match the new signature
6519 of insn_output_fn with a stronger second param.
6521 * genconditions.c (write_header): In the generated code for
6522 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
6523 to match the other changes in this patch.
6525 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
6526 the generated "gen_" functions from rtx to rtx_insn * within their
6529 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
6530 the subfunctions within the generated "recog_", "split", "peephole2"
6531 function trees from rtx to rtx_insn *. For now, the top-level
6532 generated functions ("recog", "split", "peephole2") continue to
6533 take a plain rtx for "insn", to avoid introducing dependencies on
6534 other patches. Rename this 2nd param from "insn" to
6535 "uncast_insn", and reintroduce "insn" as a local variable of type
6536 rtx_insn *, initialized at the top of the generated function with
6537 a checked cast on "uncast_insn".
6538 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
6539 the generated "gen_" functions from rtx to rtx_insn * within their
6542 * genoutput.c (process_template): Strengthen the 2nd param within
6543 the generated "output_" functions "insn" from rtx to rtx_insn *.
6545 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6547 * tree-profile.c (tree_profiling): Skip external functions
6548 when doing coverage instrumentation.
6549 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
6551 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6553 * config/rs6000/altivec.h (vec_cpsgn): New #define.
6554 (vec_mergee): Likewise.
6555 (vec_mergeo): Likewise.
6556 (vec_cntlz): Likewise.
6557 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
6558 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
6559 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
6561 * doc/extend.texi: Document various forms of vec_cpsgn,
6562 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
6563 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
6564 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
6565 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
6566 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
6568 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6570 * config/rs6000/rs6000.c (context.h): New include.
6571 (tree-pass.h): Likewise.
6572 (make_pass_analyze_swaps): New decl.
6573 (rs6000_option_override): Register pass_analyze_swaps.
6574 (swap_web_entry): New subsclass of web_entry_base (df.h).
6575 (special_handling_values): New enum.
6576 (union_defs): New function.
6577 (union_uses): Likewise.
6578 (insn_is_load_p): Likewise.
6579 (insn_is_store_p): Likewise.
6580 (insn_is_swap_p): Likewise.
6581 (rtx_is_swappable_p): Likewise.
6582 (insn_is_swappable_p): Likewise.
6583 (chain_purpose): New enum.
6584 (chain_contains_only_swaps): New function.
6585 (mark_swaps_for_removal): Likewise.
6586 (swap_const_vector_halves): Likewise.
6587 (adjust_subreg_index): Likewise.
6588 (permute_load): Likewise.
6589 (permute_store): Likewise.
6590 (handle_special_swappables): Likewise.
6591 (replace_swap_with_copy): Likewise.
6592 (dump_swap_insn_table): Likewise.
6593 (rs6000_analyze_swaps): Likewise.
6594 (pass_data_analyze_swaps): New pass_data.
6595 (pass_analyze_swaps): New rtl_opt_pass.
6596 (make_pass_analyze_swaps): New function.
6597 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
6599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6601 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
6602 type from rtx to rtx_insn *.
6603 (create_copy_of_insn_rtx): Likewise.
6604 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
6605 (create_copy_of_insn_rtx): Likewise, also for local "res".
6607 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6609 * rtl.h (find_first_parameter_load): Strengthen return type from
6611 * rtlanal.c (find_first_parameter_load): Strengthen return type
6612 from rtx to rtx_insn *. Add checked cast for now, to postpone
6613 strengthening the params.
6615 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6618 * diagnostic.c: Set default caret.
6619 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
6621 * diagnostic.h (struct diagnostic_context):
6623 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6625 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
6626 (sel_bb_head): Strengthen return type insn_t (currently just an
6628 (sel_bb_end): Likewise.
6630 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
6631 (sel_bb_head): Strengthen return type and local "head" from
6632 insn_t (currently just an rtx) to rtx_insn *.
6633 (sel_bb_end): Likewise for return type.
6634 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
6637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6639 * basic-block.h (get_last_bb_insn): Strengthen return type from
6641 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
6644 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6647 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
6649 (diagnostic_report_diagnostic): ... from here.
6650 * toplev.c (general_init): Move code to c-family.
6652 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6654 * df.h (web_entry_base): Replace existing struct web_entry with a
6655 new class web_entry_base with only the predecessor member.
6656 (unionfind_root): Remove declaration and move to class member.
6657 (unionfind_union): Remove declaration and move to friend
6659 (union_defs): Remove declaration.
6660 * web.c (web_entry_base::unionfind_root): Modify to be member
6661 function and adjust accessors.
6662 (unionfind_union): Modify to be friend function and adjust
6664 (web_entry): New subclass of web_entry_base containing the reg
6666 (union_match_dups): Modify for struct -> class changes.
6667 (union_defs): Likewise.
6668 (entry_register): Likewise.
6669 (pass_web::execute): Likewise.
6671 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
6673 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
6674 builtin define __VEC_ELEMENT_REG_ORDER__.
6676 2014-08-20 Martin Jambor <mjambor@suse.cz>
6677 Wei Mi <wmi@google.com>
6681 * tree-ssa-operands.c (update_stmt_operands): Remove
6682 MODIFIED_NORETURN_CALLS.
6683 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
6684 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
6685 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
6686 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
6687 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
6688 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
6689 (gimple_call_set_ctrl_altering): New func.
6690 (gimple_call_ctrl_altering_p): Ditto.
6691 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
6692 (make_blocks): Use gimple_call_initialize_ctrl_altering.
6693 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
6694 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
6695 remove MODIFIED_NORETURN_CALLS.
6697 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6699 * coverage.c (coverage_compute_profile_id): Return non-0;
6700 also handle symbols with unique name.
6701 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
6703 2014-08-20 Steve Ellcey <sellcey@mips.com>
6706 * doc/sourcebuild.texi (non_strict_align): New.
6708 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6710 * cgraphunit.c (ipa_passes, compile): Reshedule
6711 symtab_remove_unreachable_nodes passes; update comments.
6712 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
6713 TODO_remove_functions before the pass; the functions ought to be
6715 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
6716 TODO_remove_functions.
6717 * passes.c (pass_data_early_local_passes): Do not schedule function
6719 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
6721 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6724 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
6725 before setting the option.
6726 * diagnostic.c (diagnostic_classify_diagnostic): Record
6727 command-line status.
6729 2014-08-20 Richard Biener <rguenther@suse.de>
6732 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
6733 to build uint{16,32,64}_type_node.
6735 2014-08-20 Terry Guo <terry.guo@arm.com>
6737 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
6738 with immediate_operand.
6740 2014-08-20 David Malcolm <dmalcolm@redhat.com>
6742 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
6743 "insn" from an as_a to a safe_as_a, for the case when "insn" is
6746 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6748 PR preprocessor/51303
6749 * incpath.c (remove_duplicates): Use cpp_warning.
6751 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6755 * doc/options.texi (CPP): Document it.
6756 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
6757 * optc-gen.awk: Handle CPP.
6758 * opth-gen.awk: Likewise.
6760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6762 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
6764 (duplicate_insn_chain): Likewise.
6765 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
6766 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
6767 checked cast for now (until we can strengthen the params in the
6769 (duplicate_insn_chain): Likewise.
6771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6773 * rtl.h (next_cc0_user): Strengthen return type from rtx to
6775 (prev_cc0_setter): Likewise.
6777 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
6778 rtx_insn *, adding checked casts for now as necessary.
6779 (prev_cc0_setter): Likewise.
6781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6783 * expr.h (emit_move_insn): Strengthen return type from rtx to
6785 (emit_move_insn_1): Likewise.
6786 (emit_move_complex_push): Likewise.
6787 (emit_move_complex_parts): Likewise.
6789 * expr.c (emit_move_via_integer): Strengthen return type from rtx
6790 to rtx_insn *. Replace use of NULL_RTX with NULL when working
6792 (emit_move_complex_push): Strengthen return type from rtx to
6794 (emit_move_complex): Likewise, also for local "ret".
6795 (emit_move_ccmode): Likewise.
6796 (emit_move_multi_word): Likewise for return type and locals
6798 (emit_move_insn_1): Likewise for return type and locals "result",
6800 (emit_move_insn): Likewise for return type and local "last_insn".
6801 (compress_float_constant): Likewise.
6803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6805 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
6806 from rtx to rtx_insn *.
6808 * rtl.h (emit_insn_before): Likewise.
6809 (emit_insn_before_noloc): Likewise.
6810 (emit_insn_before_setloc): Likewise.
6811 (emit_jump_insn_before): Likewise.
6812 (emit_jump_insn_before_noloc): Likewise.
6813 (emit_jump_insn_before_setloc): Likewise.
6814 (emit_call_insn_before): Likewise.
6815 (emit_call_insn_before_noloc): Likewise.
6816 (emit_call_insn_before_setloc): Likewise.
6817 (emit_debug_insn_before): Likewise.
6818 (emit_debug_insn_before_noloc): Likewise.
6819 (emit_debug_insn_before_setloc): Likewise.
6820 (emit_label_before): Likewise.
6821 (emit_insn_after): Likewise.
6822 (emit_insn_after_noloc): Likewise.
6823 (emit_insn_after_setloc): Likewise.
6824 (emit_jump_insn_after): Likewise.
6825 (emit_jump_insn_after_noloc): Likewise.
6826 (emit_jump_insn_after_setloc): Likewise.
6827 (emit_call_insn_after): Likewise.
6828 (emit_call_insn_after_noloc): Likewise.
6829 (emit_call_insn_after_setloc): Likewise.
6830 (emit_debug_insn_after): Likewise.
6831 (emit_debug_insn_after_noloc): Likewise.
6832 (emit_debug_insn_after_setloc): Likewise.
6833 (emit_label_after): Likewise.
6834 (emit_insn): Likewise.
6835 (emit_debug_insn): Likewise.
6836 (emit_jump_insn): Likewise.
6837 (emit_call_insn): Likewise.
6838 (emit_label): Likewise.
6839 (gen_clobber): Likewise.
6840 (emit_clobber): Likewise.
6841 (gen_use): Likewise.
6842 (emit_use): Likewise.
6845 (emit_barrier_before): Strengthen return type from rtx to
6847 (emit_barrier_after): Likewise.
6848 (emit_barrier): Likewise.
6850 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
6851 from rtx to rtx_insn *. Add checked casts for now when converting
6852 "last" from rtx to rtx_insn *.
6853 (emit_insn_before_noloc): Likewise for return type.
6854 (emit_jump_insn_before_noloc): Likewise.
6855 (emit_call_insn_before_noloc): Likewise.
6856 (emit_debug_insn_before_noloc): Likewise.
6857 (emit_barrier_before): Strengthen return type and local "insn"
6858 from rtx to rtx_barrier *.
6859 (emit_label_before): Strengthen return type from rtx to
6860 rtx_insn *. Add checked cast for now when returning param
6861 (emit_pattern_after_noloc): Strengthen return type from rtx to
6862 rtx_insn *. Add checked casts for now when converting "last" from
6864 (emit_insn_after_noloc): Strengthen return type from rtx to
6866 (emit_jump_insn_after_noloc): Likewise.
6867 (emit_call_insn_after_noloc): Likewise.
6868 (emit_debug_insn_after_noloc): Likewise.
6869 (emit_barrier_after): Strengthen return type from rtx to
6871 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
6872 Add checked cast for now when converting "label" from rtx to
6874 (emit_pattern_after_setloc): Strengthen return type from rtx to
6875 rtx_insn *. Add checked casts for now when converting "last" from
6877 (emit_pattern_after): Strengthen return type from rtx to
6879 (emit_insn_after_setloc): Likewise.
6880 (emit_insn_after): Likewise.
6881 (emit_jump_insn_after_setloc): Likewise.
6882 (emit_jump_insn_after): Likewise.
6883 (emit_call_insn_after_setloc): Likewise.
6884 (emit_call_insn_after): Likewise.
6885 (emit_debug_insn_after_setloc): Likewise.
6886 (emit_debug_insn_after): Likewise.
6887 (emit_pattern_before_setloc): Likewise. Add checked casts for now
6888 when converting "last" from rtx to rtx_insn *.
6889 (emit_pattern_before): Strengthen return type from rtx to
6891 (emit_insn_before_setloc): Likewise.
6892 (emit_insn_before): Likewise.
6893 (emit_jump_insn_before_setloc): Likewise.
6894 (emit_jump_insn_before): Likewise.
6895 (emit_call_insn_before_setloc): Likewise.
6896 (emit_call_insn_before): Likewise.
6897 (emit_debug_insn_before_setloc): Likewise.
6898 (emit_debug_insn_before): Likewise.
6899 (emit_insn): Strengthen return type and locals "last", "insn",
6900 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
6901 within cases where we know we have an insn.
6902 (emit_debug_insn): Likewise.
6903 (emit_jump_insn): Likewise.
6904 (emit_call_insn): Strengthen return type and local "insn" from rtx
6906 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
6907 a checked cast to rtx_insn * for now on "label".
6908 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
6909 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
6910 (emit_use): Likewise.
6911 (gen_use): Likewise, also for local "seq".
6912 (emit): Likewise for return type and local "insn".
6913 (rtx_insn): Likewise for return type and local "new_rtx".
6915 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
6916 from rtx to rtx_barrier *.
6918 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
6919 changed return type from rtx to rtx_insn *, we must update
6920 "emit_fn" type, and this in turn means updating...
6921 (frame_insn): ...this. Strengthen return type from rtx to
6922 rtx_insn *. Introduce a new local "insn" of the appropriate type.
6924 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6926 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
6927 rtx to rtx_jump_table_data *. Also for local.
6928 * rtl.h (emit_jump_table_data): Likewise.
6930 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6932 * basic-block.h (create_basic_block_structure): Strengthen third
6933 param "bb_note" from rtx to rtx_note *.
6934 * rtl.h (emit_note_before): Strengthen return type from rtx to
6936 (emit_note_after): Likewise.
6937 (emit_note): Likewise.
6938 (emit_note_copy): Likewise. Also, strengthen param similarly.
6939 * function.h (struct rtl_data): Strengthen field
6940 "x_stack_check_probe_note" from rtx to rtx_note *.
6942 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
6943 from rtx to rtx_note *.
6944 * cfgrtl.c (create_basic_block_structure): Strengthen third param
6945 "bb_note" from rtx to rtx_note *.
6946 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
6947 when calling emit_note_copy.
6948 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
6950 (emit_note_after): Likewise.
6951 (emit_note_before): Likewise.
6952 (emit_note_copy): Likewise. Also, strengthen param similarly.
6953 (emit_note): Likewise.
6954 * except.c (emit_note_eh_region_end): Likewise for return type.
6955 Strengthen local "next" from rtx to rtx_insn *.
6956 (convert_to_eh_region_ranges): Strengthen local "note"
6957 from rtx to rtx_note *.
6958 * final.c (change_scope): Likewise.
6959 (reemit_insn_block_notes): Likewise, for both locals named "note".
6960 Also, strengthen local "insn" from rtx to rtx_insn *.
6961 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
6963 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
6964 strengthen local "seq" from rtx to rtx_insn *.
6965 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
6967 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
6969 (get_bb_note_from_pool): Strengthen return type from rtx to
6971 (sel_create_basic_block): Strengthen local "new_bb_note" from
6972 insn_t to rtx_note *.
6973 * var-tracking.c (emit_note_insn_var_location): Strengthen local
6974 "note" from rtx to rtx_note *.
6975 (emit_notes_in_bb): Likewise.
6977 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6979 * function.h (struct rtl_data): Strengthen field
6980 "x_parm_birth_insn" from rtx to rtx_insn *.
6981 * function.c (struct assign_parm_data_all): Strengthen fields
6982 "first_conversion_insn" and "last_conversion_insn" from rtx to
6985 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6987 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
6988 to rtx_insn *; also for local "var_end_seq".
6989 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
6990 (maybe_cleanup_end_of_block): Likewise for param "last" and local
6992 (expand_gimple_cond): Likewise for locals "last2" and "last".
6993 (mark_transaction_restart_calls): Likewise for local "insn".
6994 (expand_gimple_stmt): Likewise for return type and locals "last"
6996 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
6997 (avoid_complex_debug_insns): Likewise for param "insn".
6998 (expand_debug_locations): Likewise for locals "insn", "last",
6999 "prev_insn" and "insn2".
7000 (expand_gimple_basic_block): Likewise for local "last".
7001 (construct_exit_block): Likewise for locals "head", "end",
7003 (pass_expand::execute): Likewise for locals "var_seq",
7004 "var_ret_seq", "next".
7006 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7008 * asan.h (asan_emit_stack_protection): Strengthen return type from
7010 * asan.c (asan_emit_stack_protection): Likewise. Add local
7011 "insns" to hold the return value.
7013 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7015 * basic-block.h (bb_note): Strengthen return type from rtx to
7017 * sched-int.h (bb_note): Likewise.
7018 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
7020 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7022 * rtl.h (make_insn_raw): Strengthen return type from rtx to
7025 * emit-rtl.c (make_insn_raw): Strengthen return type and local
7026 "insn" from rtx to rtx_insn *.
7027 (make_debug_insn_raw): Strengthen return type from rtx to
7028 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7029 (make_jump_insn_raw): Strengthen return type from rtx to
7030 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7031 (make_call_insn_raw): Strengthen return type from rtx to
7032 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7033 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7034 callback from rtx to rtx_insn *; likewise for local "insn" and
7035 "next", adding a checked cast to rtx_insn in the relevant cases of
7036 the switch statement.
7037 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7038 callback from rtx to rtx_insn *.
7039 (emit_pattern_after_setloc): Likewise.
7040 (emit_pattern_after): Likewise.
7041 (emit_pattern_before_setloc): Likewise.
7042 (emit_pattern_before): Likewise.
7044 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7046 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7048 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7049 accepting an rtx_insn *.
7050 (last_call_insn): Strengthen return type from rtx to
7053 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7055 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7056 "insns" from rtx to rtx_insn *.
7057 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7058 locals "insn" and "prev".
7060 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7062 * rtl.h (tablejump_p): Strengthen third param from rtx * to
7063 rtx_jump_table_data **.
7065 * cfgbuild.c (make_edges): Introduce local "table", using it in
7066 place of "tmp" for jump table data.
7067 (find_bb_boundaries): Strengthen local "table" from rtx to
7068 rtx_jump_table_data *.
7069 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7070 (outgoing_edges_match): Likewise for locals "table1" and "table2".
7071 (try_crossjump_to_edge): Likewise.
7072 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7074 (patch_jump_insn): Introduce local "table", using it in place of
7075 "tmp" for jump table data.
7076 (force_nonfallthru_and_redirect): Introduce local "table", so that
7077 call to tablejump_p can receive an rtx_jump_table_data **. Update
7078 logic around the call to overwrite "note" appropriately if
7079 tablejump_p returns non-zero.
7080 (get_last_bb_insn): Introduce local "table", using it in place of
7081 "tmp" for jump table data.
7082 * dwarf2cfi.c (create_trace_edges): Likewise.
7084 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7085 from rtx to rtx_jump_table_data *.
7086 (create_fix_barrier): Strengthen local "tmp" from rtx to
7087 rtx_jump_table_data *.
7088 (arm_reorg): Likewise for local "table".
7090 * config/s390/s390.c (s390_chunkify_start): Likewise.
7092 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7094 * jump.c (delete_related_insns): Strengthen local "lab_next" from
7095 rtx to rtx_jump_table_data *.
7097 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7098 rtx_jump_table_data **. Add a checked cast when writing through
7099 the pointer: we know there that local "table" is non-NULL and that
7100 JUMP_TABLE_DATA_P (table) holds.
7101 (label_is_jump_target_p): Introduce local "table", using it in
7102 place of "tmp" for jump table data.
7104 2014-08-19 Marek Polacek <polacek@redhat.com>
7107 * doc/invoke.texi: Document -Wbool-compare.
7109 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7111 * rtl.h (entry_of_function): Strengthen return type from rtx to
7113 * cfgrtl.c (entry_of_function): Likewise.
7115 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7117 * emit-rtl.h (get_insns): Strengthen return type from rtx to
7118 rtx_insn *, adding a checked cast for now.
7119 (get_last_insn): Likewise.
7121 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7123 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7126 * emit-rtl.c (gen_label_rtx): Likewise.
7128 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7130 * rtl.h (previous_insn): Strengthen return type from rtx to
7132 (next_insn): Likewise.
7133 (prev_nonnote_insn): Likewise.
7134 (prev_nonnote_insn_bb): Likewise.
7135 (next_nonnote_insn): Likewise.
7136 (next_nonnote_insn_bb): Likewise.
7137 (prev_nondebug_insn): Likewise.
7138 (next_nondebug_insn): Likewise.
7139 (prev_nonnote_nondebug_insn): Likewise.
7140 (next_nonnote_nondebug_insn): Likewise.
7141 (prev_real_insn): Likewise.
7142 (next_real_insn): Likewise.
7143 (prev_active_insn): Likewise.
7144 (next_active_insn): Likewise.
7146 * emit-rtl.c (next_insn): Strengthen return type from rtx to
7147 rtx_insn *, adding a checked cast.
7148 (previous_insn): Likewise.
7149 (next_nonnote_insn): Likewise.
7150 (next_nonnote_insn_bb): Likewise.
7151 (prev_nonnote_insn): Likewise.
7152 (prev_nonnote_insn_bb): Likewise.
7153 (next_nondebug_insn): Likewise.
7154 (prev_nondebug_insn): Likewise.
7155 (next_nonnote_nondebug_insn): Likewise.
7156 (prev_nonnote_nondebug_insn): Likewise.
7157 (next_real_insn): Likewise.
7158 (prev_real_insn): Likewise.
7159 (next_active_insn): Likewise.
7160 (prev_active_insn): Likewise.
7162 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7163 param "stepfunc" so that it returns an rtx_insn * rather than an
7164 rtx, to track the change to prev_nonnote_insn_bb, which is the
7165 only function this is called with.
7166 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7168 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
7170 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7173 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7175 * coretypes.h (class rtx_debug_insn): Add forward declaration.
7176 (class rtx_nonjump_insn): Likewise.
7177 (class rtx_jump_insn): Likewise.
7178 (class rtx_call_insn): Likewise.
7179 (class rtx_jump_table_data): Likewise.
7180 (class rtx_barrier): Likewise.
7181 (class rtx_code_label): Likewise.
7182 (class rtx_note): Likewise.
7184 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7185 adding the invariant DEBUG_INSN_P (X).
7186 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7187 the invariant NONJUMP_INSN_P (X).
7188 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7189 the invariant JUMP_P (X).
7190 (class rtx_call_insn): New, a subclass of rtx_insn, adding
7191 the invariant CALL_P (X).
7192 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7193 invariant JUMP_TABLE_DATA_P (X).
7194 (class rtx_barrier): New, a subclass of rtx_insn, adding the
7195 invariant BARRIER_P (X).
7196 (class rtx_code_label): New, a subclass of rtx_insn, adding
7197 the invariant LABEL_P (X).
7198 (class rtx_note): New, a subclass of rtx_insn, adding
7199 the invariant NOTE_P(X).
7200 (is_a_helper <rtx_debug_insn *>::test): New.
7201 (is_a_helper <rtx_nonjump_insn *>::test): New.
7202 (is_a_helper <rtx_jump_insn *>::test): New.
7203 (is_a_helper <rtx_call_insn *>::test): New.
7204 (is_a_helper <rtx_jump_table_data *>::test): New functions,
7205 overloaded for both rtx and rtx_insn *.
7206 (is_a_helper <rtx_barrier *>::test): New.
7207 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7208 for both rtx and rtx_insn *.
7209 (is_a_helper <rtx_note *>::test): New.
7211 2014-08-19 Marek Polacek <polacek@redhat.com>
7213 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7214 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7215 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7216 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7218 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7220 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7221 rtx_insn *. To help with transition, for now, convert from an
7222 access macro into a pair of functions: BND_TO, returning an
7224 (SET_BND_TO): New function, for use where BND_TO is used as an
7227 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7229 (BND_TO): New function, adding a checked cast.
7230 (SET_BND_TO): New function.
7232 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7234 (compute_av_set_on_boundaries): Likewise.
7236 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7238 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7239 destination if it is used in source.
7240 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7241 (*popcount<mode>2_falsedep_1): Likewise.
7243 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
7246 * configure.ac: Set install_gold_as_default to no first.
7247 * configure: Regenerated.
7249 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7251 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7252 "note_list" field will eventually be an rtx_insn *. To help with
7253 transition, for now, convert from an access macro into a pair of
7254 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7255 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7258 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7259 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7261 * sel-sched-ir.c (init_bb): Likewise.
7262 (sel_restore_notes): Likewise.
7263 (move_bb_info): Likewise.
7264 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7265 (SET_BB_NOTE_LIST): New function.
7267 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7269 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7270 field will eventually be an rtx_insn *. To help with transition,
7271 for now, convert from an access macro into a pair of functions:
7272 VINSN_INSN_RTX, returning an rtx_insn *, and...
7273 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7274 is used as an lvalue.
7276 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7277 SET_VINSN_INSN_RTX where it's used as an lvalue.
7278 (VINSN_INSN_RTX): New function.
7279 (SET_VINSN_INSN_RTX): New function.
7281 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7283 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7284 eventually be rtx_insn *, but to help with transition, for now,
7285 convert from an access macro into a pair of functions: DEP_PRO
7286 returning an rtx_insn * and...
7287 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7288 lvalue, returning an rtx&.
7289 (DEP_CON): Analogous changes to DEP_PRO above.
7290 (SET_DEP_CON): Likewise.
7292 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7293 an lvalue to SET_DEP_CON.
7294 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7295 (sd_copy_back_deps): Likewise for DEP_CON.
7296 (DEP_PRO): New function, adding a checked cast for now.
7297 (DEP_CON): Likewise.
7298 (SET_DEP_PRO): New function.
7299 (SET_DEP_CON): Likewise.
7301 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7303 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7304 (extra_options): Add i386/cygwin.opt.
7305 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7306 (CPP_SPEC): Accept -pthread.
7308 (GOMP_SELF_SPECS): Update comment.
7309 * config/i386/cygwin.opt: New file for -pthread flag.
7311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7313 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7314 * df.h (DF_REF_INSN): Convert from a macro to a function, so
7315 that we can return an rtx_insn *.
7317 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7319 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7320 when building executables, not DLLs. Add --large-address-aware
7321 under the same conditions.
7322 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7323 when building executables, not DLLs. Add --large-address-aware
7324 under the same conditions when using -m32.
7326 * config/i386/cygwin-stdint.h: Throughout, make type
7327 definitions dependent on target architecture, not host.
7329 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7331 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
7332 the return type from rtx to rtx_insn *, which will enable various
7333 conversions in followup patches. For now this is is done by a
7335 (NEXT_INSN): Likewise.
7336 (SET_PREV_INSN): Convert to an inline function. This is intended
7337 for use as an lvalue, and so returns an rtx& to allow in-place
7339 (SET_NEXT_INSN): Likewise.
7341 2014-07-08 Mark Wielaard <mjw@redhat.com>
7344 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7346 2014-08-19 Marek Polacek <polacek@redhat.com>
7349 * cgraphunit.c (handle_alias_pairs): Fix condition.
7351 2014-08-19 Richard Biener <rguenther@suse.de>
7353 * gimple-fold.c (fold_gimple_assign): Properly build a
7354 null-pointer constant when devirtualizing addresses.
7356 2014-07-07 Mark Wielaard <mjw@redhat.com>
7358 * dwarf2out.c (decl_quals): New function.
7359 (modified_type_die): Take one cv_quals argument instead of two,
7360 one for const and one for volatile.
7361 (add_type_attribute): Likewise.
7362 (generic_parameter_die): Call add_type_attribute with one modifier
7364 (base_type_for_mode): Likewise.
7365 (add_bounds_info): Likewise.
7366 (add_subscript_info): Likewise.
7367 (gen_array_type_die): Likewise.
7368 (gen_descr_array_type_die): Likewise.
7369 (gen_entry_point_die): Likewise.
7370 (gen_enumeration_type_die): Likewise.
7371 (gen_formal_parameter_die): Likewise.
7372 (gen_subprogram_die): Likewise.
7373 (gen_variable_die): Likewise.
7374 (gen_const_die): Likewise.
7375 (gen_field_die): Likewise.
7376 (gen_pointer_type_die): Likewise.
7377 (gen_reference_type_die): Likewise.
7378 (gen_ptr_to_mbr_type_die): Likewise.
7379 (gen_inheritance_die): Likewise.
7380 (gen_subroutine_type_die): Likewise.
7381 (gen_typedef_die): Likewise.
7382 (force_type_die): Likewise.
7384 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7386 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7388 * configure: Regenerate.
7390 2014-08-19 Richard Biener <rguenther@suse.de>
7392 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7393 DECL_EXTERNALs in BLOCKs as non-references.
7394 * tree-streamer-out.c (streamer_write_chain): Likewise.
7396 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
7397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7398 Anna Tikhonova <anna.tikhonova@intel.com>
7399 Ilya Tocar <ilya.tocar@intel.com>
7400 Andrey Turetskiy <andrey.turetskiy@intel.com>
7401 Ilya Verbin <ilya.verbin@intel.com>
7402 Kirill Yukhin <kirill.yukhin@intel.com>
7403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7405 * config/i386/sse.md
7406 (define_mode_iterator VI48_AVX512F): Delete.
7407 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7408 (define_mode_iterator VI2_AVX512VL): Ditto.
7409 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7412 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7414 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7415 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7416 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7417 with VI48_AVX512F_AVX512VL): New.
7418 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7419 with VI2_AVX512VL): Ditto.
7421 2014-08-19 Marek Polacek <polacek@redhat.com>
7423 * doc/invoke.texi: Document -Wc99-c11-compat.
7425 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7427 * rtl.h (PREV_INSN): Split macro in two: the existing one,
7429 (SET_PREV_INSN): New macro, for use as an lvalue.
7430 (NEXT_INSN, SET_NEXT_INSN): Likewise.
7432 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7433 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7434 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7435 (fixup_abnormal_edges): Likewise.
7436 (unlink_insn_chain): Likewise.
7437 (fixup_reorder_chain): Likewise.
7438 (cfg_layout_delete_block): Likewise.
7439 (cfg_layout_merge_blocks): Likewise.
7440 * combine.c (update_cfg_for_uncondjump): Likewise.
7441 * emit-rtl.c (link_insn_into_chain): Likewise.
7442 (remove_insn): Likewise.
7443 (delete_insns_since): Likewise.
7444 (reorder_insns_nobb): Likewise.
7445 (emit_insn_after_1): Likewise.
7446 * final.c (rest_of_clean_state): Likewise.
7447 (final_scan_insn): Likewise.
7448 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7449 * haifa-sched.c (concat_note_lists): Likewise.
7450 (remove_notes): Likewise.
7451 (restore_other_notes): Likewise.
7452 (move_insn): Likewise.
7453 (unlink_bb_notes): Likewise.
7454 (restore_bb_notes): Likewise.
7455 * jump.c (delete_for_peephole): Likewise.
7456 * optabs.c (emit_libcall_block_1): Likewise.
7457 * reorg.c (emit_delay_sequence): Likewise.
7458 (fill_simple_delay_slots): Likewise.
7459 * sel-sched-ir.c (sel_move_insn): Likewise.
7460 (sel_remove_insn): Likewise.
7461 (get_bb_note_from_pool): Likewise.
7462 * sel-sched.c (move_nop_to_previous_block): Likewise.
7464 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7465 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7466 (c6x_gen_bundles): Likewise.
7467 (hwloop_optimize): Likewise.
7468 * config/frv/frv.c (frv_function_prologue): Likewise.
7469 (frv_register_nop): Likewise.
7470 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7471 (ia64_reorg): Likewise.
7472 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7473 (mep_make_bundle): Likewise.
7474 (mep_bundle_insns): Likewise.
7475 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7476 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7477 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7479 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7481 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
7482 return type from rtx to rtx_insn *.
7484 (BB_HEADER): Likewise.
7485 (BB_FOOTER): Likewise.
7486 (SET_BB_HEAD): Convert to a function.
7487 (SET_BB_END): Likewise.
7488 (SET_BB_HEADER): Likewise.
7489 (SET_BB_FOOTER): Likewise.
7491 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7492 Strengthen the return type from rtx to rtx_insn *. For now, this
7493 is done by adding a checked cast, but this will eventually
7494 become a field lookup.
7496 (BB_HEADER): Likewise.
7497 (BB_FOOTER): Likewise.
7498 (SET_BB_HEAD): New function, from macro of same name. This is
7499 intended for use as an lvalue, and so returns an rtx& to allow
7500 in-place modification.
7501 (SET_BB_END): Likewise.
7502 (SET_BB_HEADER): Likewise.
7503 (SET_BB_FOOTER): Likewise.
7505 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7507 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7509 (SET_BB_HEAD): New macro, for use as a lvalue.
7510 (BB_END, SET_BB_END): Likewise.
7511 (BB_HEADER, SET_BB_HEADER): Likewise.
7512 (BB_FOOTER, SET_BB_FOOTER): Likewise.
7514 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7515 of BB_* macros into SET_BB_* macros.
7516 (fix_crossing_unconditional_branches): Likewise.
7517 * caller-save.c (save_call_clobbered_regs): Likewise.
7518 (insert_one_insn): Likewise.
7519 * cfgbuild.c (find_bb_boundaries): Likewise.
7520 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7521 (outgoing_edges_match): Likewise.
7522 (try_optimize_cfg): Likewise.
7523 * cfgexpand.c (expand_gimple_cond): Likewise.
7524 (expand_gimple_tailcall): Likewise.
7525 (expand_gimple_basic_block): Likewise.
7526 (construct_exit_block): Likewise.
7527 * cfgrtl.c (delete_insn): Likewise.
7528 (create_basic_block_structure): Likewise.
7529 (rtl_delete_block): Likewise.
7530 (rtl_split_block): Likewise.
7531 (emit_nop_for_unique_locus_between): Likewise.
7532 (rtl_merge_blocks): Likewise.
7533 (block_label): Likewise.
7534 (try_redirect_by_replacing_jump): Likewise.
7535 (emit_barrier_after_bb): Likewise.
7536 (fixup_abnormal_edges): Likewise.
7537 (record_effective_endpoints): Likewise.
7538 (relink_block_chain): Likewise.
7539 (fixup_reorder_chain): Likewise.
7540 (fixup_fallthru_exit_predecessor): Likewise.
7541 (cfg_layout_duplicate_bb): Likewise.
7542 (cfg_layout_split_block): Likewise.
7543 (cfg_layout_delete_block): Likewise.
7544 (cfg_layout_merge_blocks): Likewise.
7545 * combine.c (update_cfg_for_uncondjump): Likewise.
7546 * emit-rtl.c (add_insn_after): Likewise.
7547 (remove_insn): Likewise.
7548 (reorder_insns): Likewise.
7549 (emit_insn_after_1): Likewise.
7550 * haifa-sched.c (get_ebb_head_tail): Likewise.
7551 (restore_other_notes): Likewise.
7552 (move_insn): Likewise.
7553 (sched_extend_bb): Likewise.
7554 (fix_jump_move): Likewise.
7555 * ifcvt.c (noce_process_if_block): Likewise.
7556 (dead_or_predicable): Likewise.
7557 * ira.c (update_equiv_regs): Likewise.
7558 * reg-stack.c (change_stack): Likewise.
7559 * sel-sched-ir.c (sel_move_insn): Likewise.
7560 * sel-sched.c (move_nop_to_previous_block): Likewise.
7562 * config/c6x/c6x.c (hwloop_optimize): Likewise.
7563 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7565 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7567 * rtl.h (for_each_rtx_in_insn): New function.
7568 * rtlanal.c (for_each_rtx_in_insn): Likewise.
7570 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7572 * coretypes.h (class rtx_insn): Add forward declaration.
7574 * rtl.h: Include is-a.h.
7575 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
7576 workaround to ensure gengtype knows inheritance is occurring,
7577 whilst continuing to use the pre-existing special-casing for
7579 (class rtx_insn): New subclass of rtx_def, adding the
7580 invariant that we're dealing with something we can sanely use
7581 INSN_UID, NEXT_INSN, PREV_INSN on.
7582 (is_a_helper <rtx_insn *>::test): New.
7583 (is_a_helper <const rtx_insn *>::test): New.
7585 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7587 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
7589 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7591 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
7594 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7596 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
7597 to BUILT_IN_UNREACHABLE.
7599 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
7602 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
7604 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
7605 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
7606 (ffs<mode>2): Do not expand with tzcnt for
7607 TARGET_AVOID_FALSE_DEP_FOR_BMI.
7608 (ffssi2_no_cmove): Ditto.
7609 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
7610 (ctz<mode>2): New expander.
7611 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
7612 (*ctz<mode>2_falsedep): New insn.
7613 (*ctz<mode>2): Rename from ctz<mode>2.
7614 (clz<mode>2_lzcnt): New expander.
7615 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
7616 (*clz<mode>2_lzcnt_falsedep): New insn.
7617 (*clz<mode>2): Rename from ctz<mode>2.
7618 (popcount<mode>2): New expander.
7619 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
7620 (*popcount<mode>2_falsedep): New insn.
7621 (*popcount<mode>2): Rename from ctz<mode>2.
7622 (*popcount<mode>2_cmp): Remove.
7623 (*popcountsi2_cmp_zext): Ditto.
7625 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
7627 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
7628 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
7629 * config/microblaze/microblaze.h
7630 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
7632 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
7635 * configure.ac: Set install_gold_as_default to no for
7637 * configure: Regenerated.
7639 2014-08-18 Roman Gareev <gareevroman@gmail.com>
7641 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
7642 * config.in: Add undef of HAVE_isl.
7643 * configure: Regenerate.
7644 * configure.ac: Add definition of HAVE_isl.
7645 * graphite-blocking.c: Add checking of HAVE_isl.
7646 * graphite-dependences.c: Likewise.
7647 * graphite-interchange.c: Likewise.
7648 * graphite-isl-ast-to-gimple.c: Likewise.
7649 * graphite-optimize-isl.c: Likewise.
7650 * graphite-poly.c: Likewise.
7651 * graphite-scop-detection.c: Likewise.
7652 * graphite-sese-to-poly.c: Likewise.
7653 * graphite.c: Likewise.
7654 * toplev.c: Replace the checking of HAVE_cloog with the checking
7657 2014-08-18 Richard Biener <rguenther@suse.de>
7659 PR tree-optimization/62090
7660 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
7661 (fold_builtin_3): Do not fold snprintf.
7662 (fold_builtin_4): Likewise.
7663 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
7664 moved from builtins.c.
7665 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
7666 (gimple_fold_builtin): Do not fold sprintf here.
7668 2014-08-18 Richard Biener <rguenther@suse.de>
7670 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
7672 (maybe_canonicalize_mem_ref_addr): ... this function.
7673 (fold_stmt_1): Apply it here before all simplification.
7675 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
7678 * cgraph.h (cgraph_node::create_indirect_edge): Add
7679 compute_indirect_info param.
7680 * cgraph.c (cgraph_node::create_indirect_edge): Compute
7681 indirect_info only when it is required.
7682 * cgraphclones.c (cgraph_clone_edge): Do not recompute
7683 indirect_info fore cloned indirect edge.
7685 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7687 Anna Tikhonova <anna.tikhonova@intel.com>
7688 Ilya Tocar <ilya.tocar@intel.com>
7689 Andrey Turetskiy <andrey.turetskiy@intel.com>
7690 Ilya Verbin <ilya.verbin@intel.com>
7691 Kirill Yukhin <kirill.yukhin@intel.com>
7692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7694 * config/i386/sse.md
7695 (define_mode_iterator VI8_AVX2_AVX512BW): New.
7696 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
7698 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7699 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7700 Anna Tikhonova <anna.tikhonova@intel.com>
7701 Ilya Tocar <ilya.tocar@intel.com>
7702 Andrey Turetskiy <andrey.turetskiy@intel.com>
7703 Ilya Verbin <ilya.verbin@intel.com>
7704 Kirill Yukhin <kirill.yukhin@intel.com>
7705 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7707 * config/i386/sse.md
7708 (define_mode_iterator VF1_AVX512VL): New.
7709 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
7710 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
7713 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7715 Anna Tikhonova <anna.tikhonova@intel.com>
7716 Ilya Tocar <ilya.tocar@intel.com>
7717 Andrey Turetskiy <andrey.turetskiy@intel.com>
7718 Ilya Verbin <ilya.verbin@intel.com>
7719 Kirill Yukhin <kirill.yukhin@intel.com>
7720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7722 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
7723 * config/i386/i386.md
7724 (define_code_iterator any_float): New.
7725 (define_code_attr floatsuffix): New.
7726 * config/i386/sse.md
7727 (define_mode_iterator VF1_128_256VL): New.
7728 (define_mode_iterator VF2_512_256VL): New.
7729 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
7731 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
7732 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
7734 (define_mode_attr qq2pssuff): New.
7735 (define_mode_attr sselongvecmode): New.
7736 (define_mode_attr sselongvecmodelower): New.
7737 (define_mode_attr sseintvecmode3): New.
7738 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
7740 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
7741 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
7742 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
7743 (define_insn "ufloatv2siv2df2<mask_name>"): New.
7745 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7746 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7747 Anna Tikhonova <anna.tikhonova@intel.com>
7748 Ilya Tocar <ilya.tocar@intel.com>
7749 Andrey Turetskiy <andrey.turetskiy@intel.com>
7750 Ilya Verbin <ilya.verbin@intel.com>
7751 Kirill Yukhin <kirill.yukhin@intel.com>
7752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7754 * config/i386/sse.md
7755 (define_mode_iterator VF2_AVX512VL): New.
7756 (define_mode_attr sseintvecmode2): New.
7757 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
7758 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
7759 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
7761 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
7763 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7765 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7768 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7769 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7770 Anna Tikhonova <anna.tikhonova@intel.com>
7771 Ilya Tocar <ilya.tocar@intel.com>
7772 Andrey Turetskiy <andrey.turetskiy@intel.com>
7773 Ilya Verbin <ilya.verbin@intel.com>
7774 Kirill Yukhin <kirill.yukhin@intel.com>
7775 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7777 * config/i386/i386.md
7778 (define_insn "*movoi_internal_avx"): Add evex version.
7779 (define_insn "*movti_internal"): Ditto.
7781 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7782 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7783 Anna Tikhonova <anna.tikhonova@intel.com>
7784 Ilya Tocar <ilya.tocar@intel.com>
7785 Andrey Turetskiy <andrey.turetskiy@intel.com>
7786 Ilya Verbin <ilya.verbin@intel.com>
7787 Kirill Yukhin <kirill.yukhin@intel.com>
7788 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7790 * config/i386/i386.md
7791 (define_attr "isa"): Add avx512dq, noavx512dq.
7792 (define_attr "enabled"): Ditto.
7793 * config/i386/sse.md
7794 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
7796 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7797 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7798 Anna Tikhonova <anna.tikhonova@intel.com>
7799 Ilya Tocar <ilya.tocar@intel.com>
7800 Andrey Turetskiy <andrey.turetskiy@intel.com>
7801 Ilya Verbin <ilya.verbin@intel.com>
7802 Kirill Yukhin <kirill.yukhin@intel.com>
7803 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7805 * config/i386/i386.c
7806 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
7807 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
7808 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
7809 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
7810 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
7811 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
7812 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
7813 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
7814 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
7815 * config/i386/sse.md
7816 (define_mode_iterator VMOVE): Allow V4TI mode.
7817 (define_mode_iterator V_AVX512VL): New.
7818 (define_mode_iterator V): New handling for AVX512VL.
7819 (define_insn "avx512f_load<mode>_mask"): Delete.
7820 (define_insn "<avx512>_load<mode>_mask"): New.
7821 (define_insn "avx512f_store<mode>_mask"): Delete.
7822 (define_insn "<avx512>_store<mode>_mask"): New.
7825 2014-08-18 Yury Gribov <y.gribov@samsung.com>
7828 * asan.c (instrument_derefs): Fix bitfield check.
7830 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7832 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
7833 * config/rs6000/htm.md (ttest): Remove clobber.
7834 * config/rs6000/predicates.md (any_mask_operand): New predicate.
7835 (and_operand): Reformat.
7836 (and_2rld_operand): New predicate.
7837 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
7839 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
7840 parameter. Handle AND directly.
7841 (rs6000_split_logical_di): Remove last parameter.
7842 (rs6000_split_logical): Remove last parameter. Remove obsolete
7844 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
7845 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
7846 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
7847 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
7848 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
7849 and 5 anonymous splitters): Delete.
7850 (and<mode>3): New expander.
7851 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
7852 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
7853 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
7854 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
7855 (floatdisf2_internal1): Remove clobbers.
7856 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
7857 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
7858 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
7859 (and<mode>3 for BOOL_128): Remove clobber.
7860 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
7861 rs6000_split_logical.
7862 (*bool<mode>3_internal for BOOL_128): Adjust call of
7863 rs6000_split_logical.
7864 (*boolc<mode>3_internal1 for BOOL_128,
7865 *boolc<mode>3_internal2 for BOOL_128,
7866 *boolcc<mode>3_internal1 for BOOL_128,
7867 *boolcc<mode>3_internal2 for BOOL_128,
7868 *eqv<mode>3_internal1 for BOOL_128,
7869 *eqv<mode>3_internal2 for BOOL_128,
7870 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
7871 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
7873 (*vec_reload_and_reg_<mptrsize>): Delete.
7875 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7877 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
7878 and split, *boolccsi3_internal3 and split): Delete.
7879 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
7880 *boolccdi3_internal3 and split): Delete.
7881 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
7882 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
7884 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7886 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
7887 and split, *boolcsi3_internal3 and split): Delete.
7888 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
7889 *boolcdi3_internal3 and split): Delete.
7890 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
7892 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7894 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
7895 <'u'>: Also support printing the low-order 16 bits.
7896 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
7897 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
7898 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
7899 *booldi3_internal3 and split): Delete.
7900 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
7901 *bool<mode>3_dot2): New.
7902 (two anonymous define_splits for non_logical_cint_operand): Merge.
7904 2014-08-17 Marek Polacek <polacek@redhat.com>
7905 Manuel López-Ibáñez <manu@gcc.gnu.org>
7908 * diagnostic.c (adjust_line): Add gcc_checking_assert.
7909 (diagnostic_show_locus): Don't print caret diagnostic
7910 if a column is larger than the line_width.
7912 2014-08-17 Roman Gareev <gareevroman@gmail.com>
7914 * common.opt: Make the ISL AST generator to be the main code generator
7917 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
7919 * wide-int.h (generic_wide_int): Declare as class instead of struct.
7921 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
7924 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
7926 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
7927 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
7928 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
7930 * config/pa/pa.md (begin_brtab): Delete insn.
7931 (end_brtab): Likewise.
7933 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7935 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
7937 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
7939 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
7940 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
7941 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
7942 (get_dynamic_type): Remove.
7943 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
7944 (clear_speculation): Bring to ipa-deivrt.h
7945 (get_class_context): Rename to ...
7946 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
7947 (contains_type_p): Update.
7948 (get_dynamic_type): Rename to ...
7949 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
7950 (possible_polymorphic_call_targets): UPdate.
7951 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
7952 * ipa-prop.c (ipa_analyze_call_uses): Update.
7954 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
7956 * doc/invoke.texi (SH options): Document missing processor variant
7957 options. Remove references to Hitachi. Undocument deprecated mspace
7960 2014-08-15 Jason Merrill <jason@redhat.com>
7962 * tree.c (type_hash_canon): Uncomment assert.
7964 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7966 * input.h (in_system_header_at): Add comment.
7968 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7971 * diagnostic.c (build_message_string): Make it extern.
7972 * diagnostic.h (build_message_string): Make it extern.
7974 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
7976 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
7977 load/store from/to non-floating class pseudo.
7979 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7981 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
7983 2014-08-15 Richard Biener <rguenther@suse.de>
7985 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
7986 (get_constraint_for_ssa_var): Remove dead code.
7987 (get_constraint_for_1): Adjust.
7988 (find_what_var_points_to): Likewise.
7989 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
7991 2014-08-15 Ilya Tocar <tocarip@gmail.com>
7994 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
7995 (_mm512_mask_cmpge_epu32_mask): Ditto.
7996 (_mm512_cmpge_epu32_mask): Ditto.
7997 (_mm512_mask_cmpge_epi64_mask): Ditto.
7998 (_mm512_cmpge_epi64_mask): Ditto.
7999 (_mm512_mask_cmpge_epu64_mask): Ditto.
8000 (_mm512_cmpge_epu64_mask): Ditto.
8001 (_mm512_mask_cmple_epi32_mask): Ditto.
8002 (_mm512_cmple_epi32_mask): Ditto.
8003 (_mm512_mask_cmple_epu32_mask): Ditto.
8004 (_mm512_cmple_epu32_mask): Ditto.
8005 (_mm512_mask_cmple_epi64_mask): Ditto.
8006 (_mm512_cmple_epi64_mask): Ditto.
8007 (_mm512_mask_cmple_epu64_mask): Ditto.
8008 (_mm512_cmple_epu64_mask): Ditto.
8009 (_mm512_mask_cmplt_epi32_mask): Ditto.
8010 (_mm512_cmplt_epi32_mask): Ditto.
8011 (_mm512_mask_cmplt_epu32_mask): Ditto.
8012 (_mm512_cmplt_epu32_mask): Ditto.
8013 (_mm512_mask_cmplt_epi64_mask): Ditto.
8014 (_mm512_cmplt_epi64_mask): Ditto.
8015 (_mm512_mask_cmplt_epu64_mask): Ditto.
8016 (_mm512_cmplt_epu64_mask): Ditto.
8017 (_mm512_mask_cmpneq_epi32_mask): Ditto.
8018 (_mm512_mask_cmpneq_epu32_mask): Ditto.
8019 (_mm512_cmpneq_epu32_mask): Ditto.
8020 (_mm512_mask_cmpneq_epi64_mask): Ditto.
8021 (_mm512_cmpneq_epi64_mask): Ditto.
8022 (_mm512_mask_cmpneq_epu64_mask): Ditto.
8023 (_mm512_cmpneq_epu64_mask): Ditto.
8024 (_mm512_castpd_ps): Ditto.
8025 (_mm512_castpd_si512): Ditto.
8026 (_mm512_castps_pd): Ditto.
8027 (_mm512_castps_si512): Ditto.
8028 (_mm512_castsi512_ps): Ditto.
8029 (_mm512_castsi512_pd): Ditto.
8030 (_mm512_castpd512_pd128): Ditto.
8031 (_mm512_castps512_ps128): Ditto.
8032 (_mm512_castsi512_si128): Ditto.
8033 (_mm512_castpd512_pd256): Ditto.
8034 (_mm512_castps512_ps256): Ditto.
8035 (_mm512_castsi512_si256): Ditto.
8036 (_mm512_castpd128_pd512): Ditto.
8037 (_mm512_castps128_ps512): Ditto.
8038 (_mm512_castsi128_si512): Ditto.
8039 (_mm512_castpd256_pd512): Ditto.
8040 (_mm512_castps256_ps512): Ditto.
8041 (_mm512_castsi256_si512): Ditto.
8042 (_mm512_cmpeq_epu32_mask): Ditto.
8043 (_mm512_mask_cmpeq_epu32_mask): Ditto.
8044 (_mm512_mask_cmpeq_epu64_mask): Ditto.
8045 (_mm512_cmpeq_epu64_mask): Ditto.
8046 (_mm512_cmpgt_epu32_mask): Ditto.
8047 (_mm512_mask_cmpgt_epu32_mask): Ditto.
8048 (_mm512_mask_cmpgt_epu64_mask): Ditto.
8049 (_mm512_cmpgt_epu64_mask): Ditto.
8050 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8051 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8052 * config/i386/i386.c (enum ix86_builtins): Add
8053 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8054 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8055 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8056 (bdesc_args): Add __builtin_ia32_si512_256si,
8057 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8058 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8059 __builtin_ia32_pd512_pd.
8060 (ix86_expand_args_builtin): Handle new FTYPEs.
8061 * config/i386/sse.md (castmode): Add 512-bit modes.
8062 (AVX512MODE2P): New.
8063 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8064 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8066 2014-08-15 Richard Biener <rguenther@suse.de>
8068 * fold-const.c (tree_swap_operands_p): Put all constants
8069 last, also strip sign-changing NOPs when considering further
8070 canonicalization. Canonicalize also when optimizing for size.
8072 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8074 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8075 one_match > zero_match case to just before simple_sequence.
8077 2014-08-15 Richard Biener <rguenther@suse.de>
8079 * data-streamer.h (streamer_string_index, string_for_index):
8081 * data-streamer-out.c (streamer_string_index): Make static.
8082 * data-streamer-in.c (string_for_index): Likewise.
8083 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8084 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8086 2014-08-15 Richard Biener <rguenther@suse.de>
8088 PR tree-optimization/62031
8089 * tree-data-ref.c (dr_analyze_indices): Do not set
8090 DR_UNCONSTRAINED_BASE.
8091 (dr_may_alias_p): All indirect accesses have to go the
8092 formerly DR_UNCONSTRAINED_BASE path.
8093 * tree-data-ref.h (struct indices): Remove
8094 unconstrained_base member.
8095 (DR_UNCONSTRAINED_BASE): Remove.
8097 2014-08-15 Jakub Jelinek <jakub@redhat.com>
8100 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8101 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8102 in OMP_CLAUSE_MAP in some outer target region.
8104 2014-08-15 Bin Cheng <bin.cheng@arm.com>
8106 * tree-ssa-loop-ivopts.c (ivopts_data): New field
8107 name_expansion_cache.
8108 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8109 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8110 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8111 (difference_cannot_overflow_p): New parameter. Use affine
8112 expansion for equality check.
8113 (iv_elimination_compare_lt): Pass new argument.
8115 2014-08-14 DJ Delorie <dj@redhat.com>
8117 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8118 variables to the accumulator.
8120 * config/rl78/predicates.md (rl78_near_mem_operand): New.
8121 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8122 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8125 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8126 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8127 (umulqihi3_virt): Likewise.
8128 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8129 (umulqihi3_real): Likewise.
8131 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8133 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8135 PR tree-optimization/62091
8136 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8137 function_entry_reached.
8138 (walk_aliased_vdefs): Clear it here.
8139 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8141 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
8143 * ipa-utils.h (compare_virtual_tables): Declare.
8144 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8146 2014-08-14 Marek Polacek <polacek@redhat.com>
8149 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8150 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8152 2014-08-14 Tom de Vries <tom@codesourcery.com>
8154 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8156 2014-08-14 Tom de Vries <tom@codesourcery.com>
8158 PR rtl-optimization/62004
8159 PR rtl-optimization/62030
8160 * ifcvt.c (rtx_interchangeable_p): New function.
8161 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8162 * emit-rtl.h (mem_attrs_eq_p): Declare.
8164 2014-08-14 Roman Gareev <gareevroman@gmail.com>
8166 * graphite-scop-detection.c:
8167 Add inclusion of cp-tree.h.
8168 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8169 in case they are pointers to object types
8171 2014-08-14 Richard Biener <rguenther@suse.de>
8173 * BASE-VER: Change to 5.0.0
8175 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8177 Anna Tikhonova <anna.tikhonova@intel.com>
8178 Ilya Tocar <ilya.tocar@intel.com>
8179 Andrey Turetskiy <andrey.turetskiy@intel.com>
8180 Ilya Verbin <ilya.verbin@intel.com>
8181 Kirill Yukhin <kirill.yukhin@intel.com>
8182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8184 * config/i386/sse.md (define_mode_attr avx512): New.
8185 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8187 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8188 (define_mode_attr ssse3_avx2): Ditto.
8189 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8190 (define_mode_attr avx2_avx512bw): New.
8191 (define_mode_attr ssedoublemodelower): New.
8192 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8194 (define_mode_attr ssebytemode): Allow V8DI modes.
8195 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8196 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8197 (define_mode_attr ssePSmode2): New.
8198 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8200 (define_mode_attr dbpsadbwmode): New.
8201 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8202 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8203 (vi8_sse4_1_avx2_avx512): New.
8204 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8206 (define_mode_attr blendbits): Move before its immediate use.
8208 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8209 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8210 Anna Tikhonova <anna.tikhonova@intel.com>
8211 Ilya Tocar <ilya.tocar@intel.com>
8212 Andrey Turetskiy <andrey.turetskiy@intel.com>
8213 Ilya Verbin <ilya.verbin@intel.com>
8214 Kirill Yukhin <kirill.yukhin@intel.com>
8215 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8217 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8218 * config/i386/subst.md
8219 (define_mode_iterator SUBST_V): Update.
8220 (define_mode_iterator SUBST_A): Ditto.
8221 (define_subst_attr "mask_operand7"): New.
8222 (define_subst_attr "mask_operand10"): New.
8223 (define_subst_attr "mask_operand_arg34") : New.
8224 (define_subst_attr "mask_expand_op3"): New.
8225 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8226 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8227 (define_subst_attr "mask_avx512vl_condition"): New.
8228 (define_subst_attr "round_mask_operand4"): Ditto.
8229 (define_subst_attr "round_mask_scalar_op3"): Delete.
8230 (define_subst_attr "round_mask_op4"): New.
8231 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8233 (define_subst_attr "round_modev8sf_condition"): New.
8234 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8236 (define_subst_attr "round_saeonly_mask_operand4"): New.
8237 (define_subst_attr "round_saeonly_mask_op4"): New.
8238 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8239 V8DImode, V16SImode.
8240 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8241 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8242 (define_subst_attr "mask_expand4_args"): New.
8243 (define_subst "mask_expand4"): New.
8245 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8246 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8247 Anna Tikhonova <anna.tikhonova@intel.com>
8248 Ilya Tocar <ilya.tocar@intel.com>
8249 Andrey Turetskiy <andrey.turetskiy@intel.com>
8250 Ilya Verbin <ilya.verbin@intel.com>
8251 Kirill Yukhin <kirill.yukhin@intel.com>
8252 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8254 * config/i386/i386.md
8255 (define_attr "isa"): Add avx512bw,noavx512bw.
8256 (define_attr "enabled"): Ditto.
8257 (define_split): Add 32/64-bit mask logic.
8258 (define_insn "*k<logic>qi"): New.
8259 (define_insn "*k<logic>hi"): New.
8260 (define_insn "*anddi_1"): Add mask version.
8261 (define_insn "*andsi_1"): Ditto.
8262 (define_insn "*<code><mode>_1"): Ditto.
8263 (define_insn "*<code>hi_1"): Ditto.
8264 (define_insn "kxnor<mode>"): New.
8265 (define_insn "kunpcksi"): New.
8266 (define_insn "kunpckdi"): New.
8267 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8268 (define_insn "*one_cmplhi2_1"): Ditto.
8270 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8272 Anna Tikhonova <anna.tikhonova@intel.com>
8273 Ilya Tocar <ilya.tocar@intel.com>
8274 Andrey Turetskiy <andrey.turetskiy@intel.com>
8275 Ilya Verbin <ilya.verbin@intel.com>
8276 Kirill Yukhin <kirill.yukhin@intel.com>
8277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8279 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8282 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8283 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8284 Anna Tikhonova <anna.tikhonova@intel.com>
8285 Ilya Tocar <ilya.tocar@intel.com>
8286 Andrey Turetskiy <andrey.turetskiy@intel.com>
8287 Ilya Verbin <ilya.verbin@intel.com>
8288 Kirill Yukhin <kirill.yukhin@intel.com>
8289 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8291 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8293 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8294 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8295 xmm/ymm16+ when availble.
8296 * config/i386/i386.h
8297 (HARD_REGNO_NREGS): Add mask regs.
8298 (VALID_AVX512F_REG_MODE): Ditto.
8299 (VALID_AVX512F_REG_MODE) : Define.
8300 (VALID_MASK_AVX512BW_MODE): Ditto.
8301 (reg_class) (MASK_REG_P(X)): Define.
8302 * config/i386/i386.md: Do not split long moves with mask register,
8303 use kmovb if avx512bw is availible.
8304 (movdi_internal): Handle mask registers.
8306 2014-08-14 Richard Biener <rguenther@suse.de>
8308 PR tree-optimization/62081
8309 * tree-ssa-loop.c (pass_fix_loops): New pass.
8310 (pass_tree_loop::gate): Do not fixup loops here.
8311 * tree-pass.h (make_pass_fix_loops): Declare.
8312 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8314 2014-08-14 Richard Biener <rguenther@suse.de>
8316 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8317 (type_hash_canon): ... this and avoid 2nd lookup for the add.
8319 2014-08-14 Richard Biener <rguenther@suse.de>
8321 PR tree-optimization/62090
8322 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8323 (fold_builtin_2): Do not fold sprintf.
8324 (fold_builtin_3): Likewise.
8325 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8326 moved from builtins.c.
8327 (gimple_fold_builtin): Fold sprintf.
8329 2014-08-14 Richard Biener <rguenther@suse.de>
8331 PR rtl-optimization/62079
8332 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8335 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8337 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8338 current_function_decl.
8340 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8342 * cgraph.c (cgraph_node::function_symbol): Fix wrong
8343 cgraph_function_node to cgraph_node::function_symbol
8346 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
8348 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8349 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8351 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
8353 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8356 2014-08-13 Roman Gareev <gareevroman@gmail.com>
8358 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8361 2014-08-12 Jakub Jelinek <jakub@redhat.com>
8364 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8365 any registers that are used in mem_insn.
8367 2014-08-12 Steve Ellcey <sellcey@mips.com>
8369 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
8371 2014-08-12 Steve Ellcey <sellcey@mips.com>
8373 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8374 (MULTILIB_DIRNAMES): Ditto.
8375 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8376 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8377 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8378 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8379 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8380 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8382 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8385 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8386 of __ARM_SIZEOF_WCHAR_T.
8388 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8391 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8392 Remove unnecessary attributes.
8394 2014-08-12 Yury Gribov <y.gribov@samsung.com>
8396 * internal-fn.c (init_internal_fns): Fix off-by-one.
8398 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
8399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8400 Anna Tikhonova <anna.tikhonova@intel.com>
8401 Ilya Tocar <ilya.tocar@intel.com>
8402 Andrey Turetskiy <andrey.turetskiy@intel.com>
8403 Ilya Verbin <ilya.verbin@intel.com>
8404 Kirill Yukhin <kirill.yukhin@intel.com>
8405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8407 * config/i386/i386.c (standard_sse_constant_opcode): Use
8408 vpxord/vpternlog if avx512 is availible.
8410 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8413 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8414 bitfields, that is when size doesn't match the size of type or the
8415 size of the constructor.
8417 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8419 * config/rs6000/constraints.md (wh constraint): New constraint,
8420 for FP registers if direct move is available.
8421 (wi constraint): New constraint, for VSX/FP registers that can
8422 handle 64-bit integers.
8423 (wj constraint): New constraint for VSX/FP registers that can
8424 handle 64-bit integers for direct moves.
8425 (wk constraint): New constraint for VSX/FP registers that can
8426 handle 64-bit doubles for direct moves.
8427 (wy constraint): Make documentation match implementation.
8429 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8430 scalar_in_vmx_p field to simplify tests of whether SFmode or
8431 DFmode can go in the Altivec registers.
8432 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8433 (rs6000_setup_reg_addr_masks): Likewise.
8434 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8435 field, and wh/wi/wj/wk constraints.
8436 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8437 the wh/wi/wj/wk constraints.
8438 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8439 upper registers, prefer VSX registers unless the operation is a
8440 memory operation with REG+OFFSET addressing.
8442 * config/rs6000/vsx.md (VSr mode attribute): Add support for
8443 DImode. Change SFmode to use ww constraint instead of d to allow
8444 SF registers in the upper registers.
8447 (VSr5): Fix thinko in comment.
8448 (VSa): New mode attribute that is an alternative to wa, that
8449 returns the VSX register class that a mode can go in, but may not
8450 be the preferred register class.
8451 (VS_64dm): New mode attribute for appropriate register classes for
8452 referencing 64-bit elements of vectors for direct moves and normal
8454 (VS_64reg): Likewise.
8455 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8456 register allocator to only registers the data type can handle.
8457 (vsx_le_perm_load_<mode>): Likewise.
8458 (vsx_le_perm_store_<mode>): Likewise.
8459 (vsx_xxpermdi2_le_<mode>): Likewise.
8460 (vsx_xxpermdi4_le_<mode>): Likewise.
8461 (vsx_lxvd2x2_le_<mode>): Likewise.
8462 (vsx_lxvd2x4_le_<mode>): Likewise.
8463 (vsx_stxvd2x2_le_<mode>): Likewise.
8464 (vsx_add<mode>3): Likewise.
8465 (vsx_sub<mode>3): Likewise.
8466 (vsx_mul<mode>3): Likewise.
8467 (vsx_div<mode>3): Likewise.
8468 (vsx_tdiv<mode>3_internal): Likewise.
8469 (vsx_fre<mode>2): Likewise.
8470 (vsx_neg<mode>2): Likewise.
8471 (vsx_abs<mode>2): Likewise.
8472 (vsx_nabs<mode>2): Likewise.
8473 (vsx_smax<mode>3): Likewise.
8474 (vsx_smin<mode>3): Likewise.
8475 (vsx_sqrt<mode>2): Likewise.
8476 (vsx_rsqrte<mode>2): Likewise.
8477 (vsx_tsqrt<mode>2_internal): Likewise.
8478 (vsx_fms<mode>4): Likewise.
8479 (vsx_nfma<mode>4): Likewise.
8480 (vsx_eq<mode>): Likewise.
8481 (vsx_gt<mode>): Likewise.
8482 (vsx_ge<mode>): Likewise.
8483 (vsx_eq<mode>_p): Likewise.
8484 (vsx_gt<mode>_p): Likewise.
8485 (vsx_ge<mode>_p): Likewise.
8486 (vsx_xxsel<mode>): Likewise.
8487 (vsx_xxsel<mode>_uns): Likewise.
8488 (vsx_copysign<mode>3): Likewise.
8489 (vsx_float<VSi><mode>2): Likewise.
8490 (vsx_floatuns<VSi><mode>2): Likewise.
8491 (vsx_fix_trunc<mode><VSi>2): Likewise.
8492 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8493 (vsx_x<VSv>r<VSs>i): Likewise.
8494 (vsx_x<VSv>r<VSs>ic): Likewise.
8495 (vsx_btrunc<mode>2): Likewise.
8496 (vsx_b2trunc<mode>2): Likewise.
8497 (vsx_floor<mode>2): Likewise.
8498 (vsx_ceil<mode>2): Likewise.
8499 (vsx_<VS_spdp_insn>): Likewise.
8500 (vsx_xscvspdp): Likewise.
8501 (vsx_xvcvspuxds): Likewise.
8502 (vsx_float_fix_<mode>2): Likewise.
8503 (vsx_set_<mode>): Likewise.
8504 (vsx_extract_<mode>_internal1): Likewise.
8505 (vsx_extract_<mode>_internal2): Likewise.
8506 (vsx_extract_<mode>_load): Likewise.
8507 (vsx_extract_<mode>_store): Likewise.
8508 (vsx_splat_<mode>): Likewise.
8509 (vsx_xxspltw_<mode>): Likewise.
8510 (vsx_xxspltw_<mode>_direct): Likewise.
8511 (vsx_xxmrghw_<mode>): Likewise.
8512 (vsx_xxmrglw_<mode>): Likewise.
8513 (vsx_xxsldwi_<mode>): Likewise.
8514 (vsx_xscvdpspn): Tighten constraints to only use register classes
8516 (vsx_xscvspdpn): Likewise.
8517 (vsx_xscvdpspn_scalar): Likewise.
8519 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
8520 wj, and wk constraints.
8521 (GPR_REG_CLASS_P): New helper macro for register classes targeting
8522 general purpose registers.
8524 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
8526 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
8527 DImode instead of wm. Use wk constraint for direct move of DFmode
8529 (extendsidi2_lfiwax): Likewise.
8532 (movdi_internal64): Likewise.
8534 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
8535 wk constraints. Make the wy constraint documentation match them
8538 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
8540 Replacement of isl_int by isl_val
8541 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
8542 (compute_bounds_for_param): use isl_val instead of isl_int
8543 (compute_bounds_for_loop): likewise
8544 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
8545 (build_linearized_memory_access): use isl_val instead of isl_int
8546 (pdr_stride_in_loop): likewise
8547 * graphite-optimize-isl.c:
8548 (getPrevectorMap): use isl_val instead of isl_int
8550 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
8551 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
8552 (extern the_isl_ctx): declare
8553 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
8554 (extract_affine_gmp): likewise
8556 (build_loop_iteration_domains): likewise
8557 (add_param_constraints): likewise
8559 2014-08-11 Richard Biener <rguenther@suse.de>
8561 PR tree-optimization/62075
8562 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
8563 handle uses in patterns.
8565 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8567 Anna Tikhonova <anna.tikhonova@intel.com>
8568 Ilya Tocar <ilya.tocar@intel.com>
8569 Andrey Turetskiy <andrey.turetskiy@intel.com>
8570 Ilya Verbin <ilya.verbin@intel.com>
8571 Kirill Yukhin <kirill.yukhin@intel.com>
8572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8574 * common/config/i386/i386-common.c
8575 (OPTION_MASK_ISA_AVX512VL_SET): Define.
8576 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
8577 (ix86_handle_option): Handle OPT_mavx512vl.
8578 * config/i386/cpuid.h (bit_AVX512VL): Define.
8579 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
8580 set -mavx512vl accordingly.
8581 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8582 OPTION_MASK_ISA_AVX512VL.
8583 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
8584 (ix86_option_override_internal): Define PTA_AVX512VL, handle
8585 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
8586 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
8587 * config/i386/i386.h (TARGET_AVX512VL): Define.
8588 (TARGET_AVX512VL_P(x)): Ditto.
8589 * config/i386/i386.opt: Add mavx512vl.
8591 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
8593 PR tree-optimization/62073
8594 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
8597 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8599 Anna Tikhonova <anna.tikhonova@intel.com>
8600 Ilya Tocar <ilya.tocar@intel.com>
8601 Andrey Turetskiy <andrey.turetskiy@intel.com>
8602 Ilya Verbin <ilya.verbin@intel.com>
8603 Kirill Yukhin <kirill.yukhin@intel.com>
8604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8606 * common/config/i386/i386-common.c
8607 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
8608 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
8609 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
8610 (ix86_handle_option): Handle OPT_mavx512bw.
8611 * config/i386/cpuid.h (bit_AVX512BW): Define.
8612 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
8613 set -mavx512bw accordingly.
8614 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8615 OPTION_MASK_ISA_AVX512BW.
8616 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
8617 (ix86_option_override_internal): Define PTA_AVX512BW, handle
8618 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
8619 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
8620 * config/i386/i386.h (TARGET_AVX512BW): Define.
8621 (TARGET_AVX512BW_P(x)): Ditto.
8622 * config/i386/i386.opt: Add mavx512bw.
8624 2014-08-11 Richard Biener <rguenther@suse.de>
8626 PR tree-optimization/62070
8627 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
8628 Remove SSA checking.
8630 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8632 * asan.c (asan_check_flags): New enum.
8633 (build_check_stmt_with_calls): Removed function.
8634 (build_check_stmt): Split inlining logic to
8635 asan_expand_check_ifn.
8636 (instrument_derefs): Rename parameter.
8637 (instrument_mem_region_access): Rename parameter.
8638 (instrument_strlen_call): Likewise.
8639 (asan_expand_check_ifn): New function.
8640 (asan_instrument): Remove old code.
8641 (pass_sanopt::execute): Change handling of
8642 asan-instrumentation-with-call-threshold.
8643 (asan_clear_shadow): Fix formatting.
8644 (asan_function_start): Likewise.
8645 (asan_emit_stack_protection): Likewise.
8646 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
8648 * internal-fn.c (expand_ASAN_CHECK): New function.
8649 * internal-fn.def (ASAN_CHECK): New internal function.
8650 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
8652 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
8653 * tree.c: Small comment fix.
8655 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8657 * gimple.c (gimple_call_fnspec): Support internal functions.
8658 (gimple_call_return_flags): Use const.
8659 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
8660 * internal-fn.def: Add fnspec information.
8661 * internal-fn.h (internal_fn_fnspec): New function.
8662 (init_internal_fns): Declare new function.
8663 * internal-fn.c (internal_fn_fnspec_array): New global variable.
8664 (init_internal_fns): New function.
8665 * tree-core.h: Update macro call.
8666 * tree.c (build_common_builtin_nodes): Initialize internal fns.
8668 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
8670 * lto-streamer.h (struct output_block::symbol): Change from
8671 struct symtab_node to plain symtab_node.
8672 (referenced_from_this_partition_p): Change first parameter
8673 from struct symtab_node to plain symtab_node.
8675 2014-08-10 Marek Polacek <polacek@redhat.com>
8678 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
8680 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
8682 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
8683 DECL correctly; do not give up on types in static storage.
8685 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
8687 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
8689 2014-08-09 Roman Gareev <gareevroman@gmail.com>
8691 * graphite-isl-ast-to-gimple.c:
8692 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
8694 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
8696 2014-08-08 Guozhi Wei <carrot@google.com>
8698 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
8700 2014-08-08 Cary Coutant <ccoutant@google.com>
8702 * dwarf2out.c (get_skeleton_type_unit): Remove.
8703 (output_skeleton_debug_sections): Remove skeleton type units.
8704 (output_comdat_type_unit): Likewise.
8705 (dwarf2out_finish): Likewise.
8707 2014-08-07 Yi Yang <ahyangyi@google.com>
8709 * predict.c (expr_expected_value_1): Remove the redundant assignment.
8711 2014-08-08 Richard Biener <rguenther@suse.de>
8713 * lto-streamer.h (struct lto_input_block): Make it a class
8715 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
8716 (struct lto_function_header, struct lto_simple_header,
8717 struct lto_simple_header_with_strings,
8718 struct lto_decl_header, struct lto_function_header): Make
8719 a simple inheritance hieararchy. Remove unused fields.
8720 (struct lto_asm_header): Remove.
8721 * lto-streamer-out.c (produce_asm): Adjust.
8722 (lto_output_toplevel_asms): Likewise.
8723 (produce_asm_for_decls): Likewise.
8724 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8725 * data-streamer-in.c (string_for_index): Likewise.
8726 * ipa-inline-analysis.c (inline_read_section): Likewise.
8727 * ipa-prop.c (ipa_prop_read_section): Likewise.
8728 (read_replacements_section): Likewise.
8729 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8730 * lto-section-in.c (lto_create_simple_input_block): Likewise.
8731 (lto_destroy_simple_input_block): Likewise.
8732 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
8733 (lto_input_toplevel_asms): Likewise.
8735 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
8736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8737 Anna Tikhonova <anna.tikhonova@intel.com>
8738 Ilya Tocar <ilya.tocar@intel.com>
8739 Andrey Turetskiy <andrey.turetskiy@intel.com>
8740 Ilya Verbin <ilya.verbin@intel.com>
8741 Kirill Yukhin <kirill.yukhin@intel.com>
8742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8744 * common/config/i386/i386-common.c
8745 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
8746 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
8747 (ix86_handle_option): Handle OPT_mavx512dq.
8748 * config/i386/cpuid.h (bit_AVX512DQ): Define.
8749 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
8750 set -mavx512dq accordingly.
8751 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8752 OPTION_MASK_ISA_AVX512DQ.
8753 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
8754 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
8755 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
8756 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
8757 * config/i386/i386.h (TARGET_AVX512DQ): Define.
8758 (TARGET_AVX512DQ_P(x)): Ditto.
8759 * config/i386/i386.opt: Add mavx512dq.
8761 2014-08-08 Richard Biener <rguenther@suse.de>
8763 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
8764 target_percent, target_percent_s): Export.
8765 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
8766 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
8767 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
8768 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
8769 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
8770 Move to gimple-fold.c.
8771 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
8773 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
8774 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
8775 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
8776 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
8777 (rewrite_call_expr_array): Remove.
8778 (fold_builtin_sprintf_chk): Likewise.
8779 (fold_builtin_snprintf_chk): Likewise.
8780 (fold_builtin_varargs): Remove handling of sprintf_chk,
8781 vsprintf_chk, snprintf_chk and vsnprintf_chk.
8782 (gimple_fold_builtin_sprintf_chk): Remove.
8783 (gimple_fold_builtin_snprintf_chk): Likewise.
8784 (gimple_fold_builtin_varargs): Likewise.
8785 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
8786 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
8787 * gimple.c (gimple_seq_add_seq_without_update): New function.
8788 * gimple.h (gimple_seq_add_seq_without_update): Declare.
8789 * gimple-fold.c: Include output.h.
8790 (gsi_replace_with_seq_vops): New function, split out from ...
8791 (gimplify_and_update_call_from_tree): ... here.
8792 (replace_call_with_value): New function.
8793 (replace_call_with_call_and_fold): Likewise.
8794 (var_decl_component_p): Moved from builtins.c.
8795 (gimple_fold_builtin_memory_op): Moved from builtins.c
8796 fold_builtin_memory_op and rewritten to GIMPLE.
8797 (gimple_fold_builtin_memset): Likewise.
8798 (gimple_fold_builtin_strcpy): Likewise.
8799 (gimple_fold_builtin_strncpy): Likewise.
8800 (gimple_fold_builtin_strcat): Likewise.
8801 (gimple_fold_builtin_fputs): Likewise.
8802 (gimple_fold_builtin_memory_chk): Likewise.
8803 (gimple_fold_builtin_stxcpy_chk): Likewise.
8804 (gimple_fold_builtin_stxncpy_chk): Likewise.
8805 (gimple_fold_builtin_snprintf_chk): Likewise.
8806 (gimple_fold_builtin_sprintf_chk): Likewise.
8807 (gimple_fold_builtin_strlen): New function.
8808 (gimple_fold_builtin_with_strlen): New function split out from
8809 gimple_fold_builtin.
8810 (gimple_fold_builtin): Change signature and handle
8811 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
8812 here. Call gimple_fold_builtin_with_strlen.
8813 (gimple_fold_call): Adjust.
8815 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8817 * calls.c (precompute_arguments): Check
8818 promoted_for_signed_and_unsigned_p and set the promoted mode.
8819 (promoted_for_signed_and_unsigned_p): New function.
8820 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8821 and set the promoted mode.
8822 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8823 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8824 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8827 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8829 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
8830 instead of SUBREG_PROMOTED_UNSIGNED_SET.
8831 (expand_call): Likewise.
8832 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
8833 to get promoted mode.
8834 * combine.c (record_promoted_value): Skip > 0 comparison with
8835 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
8836 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
8837 of SUBREG_PROMOTED_UNSIGNED_P.
8838 (convert_modes): Likewise.
8839 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
8840 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
8841 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
8842 SUBREG_PROMOTED_UNSIGNED_SET.
8843 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
8844 instead of SUBREG_PROMOTED_UNSIGNED_SET.
8845 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
8846 SUBREG_PROMOTED_SET.
8847 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
8848 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
8849 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
8850 of SUBREG_PROMOTED_UNSIGNED_P.
8851 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
8852 (SUBREG_PROMOTED_SET): New define.
8853 (SUBREG_PROMOTED_GET): Likewise.
8854 (SUBREG_PROMOTED_SIGN): Likewise.
8855 (SUBREG_PROMOTED_SIGNED_P): Likewise.
8856 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
8857 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
8858 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
8859 instead of SUBREG_PROMOTED_UNSIGNED_GET.
8860 (nonzero_bits1): Skip > 0 comparison with the results as
8861 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
8862 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
8863 of !SUBREG_PROMOTED_UNSIGNED_P.
8864 * simplify-rtx.c (simplify_unary_operation_1): Use new
8865 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
8866 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
8867 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
8868 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
8870 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
8872 * ipa-devirt.c: Include gimple-pretty-print.h
8873 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
8875 (decl_maybe_in_construction_p): Fix conditional on cdtor check
8876 (get_polymorphic_call_info): Fix return value
8877 (type_change_info): New sturcture based on ipa-prop
8879 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
8880 based on ipa-prop variant.
8881 (extr_type_from_vtbl_ptr_store): New function
8882 based on ipa-prop variant.
8883 (record_known_type): New function.
8884 (check_stmt_for_type_change): New function.
8885 (get_dynamic_type): New function.
8886 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
8887 * tree-ssa-pre.c: ipa-utils.h
8888 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
8889 machinery; sanity check with ipa-prop devirtualization.
8890 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
8893 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8895 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
8896 * alias.c, cfgexpand.c, cgraphbuild.c,
8897 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
8898 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
8899 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
8900 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
8901 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
8902 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8903 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
8904 dse.c, except.c, gengtype.c, gimple-expr.c,
8905 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
8906 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
8907 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
8908 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
8909 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
8910 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
8912 * pointer-set.c: Remove file.
8913 * pointer-set.h: Remove file.
8915 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8917 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
8918 * config/arm/types.md (f_sels, f_seld): Delete.
8920 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8922 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
8923 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
8924 (aarch64_movdi_<mode>high): Likewise.
8925 (aarch64_mov<mode>high_di): Likewise.
8926 (aarch64_movdi_<mode>low): Likewise.
8927 (aarch64_mov<mode>low_di): Likewise.
8928 (aarch64_movtilow_tilow): Likewise.
8929 Add comment explaining usage of fp,simd attributes and of
8930 TARGET_FLOAT and TARGET_SIMD.
8932 2014-08-07 Ian Bolton <ian.bolton@arm.com>
8933 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8935 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
8936 Use MOVN when one of the half-words is 0xffff.
8938 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
8940 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
8942 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8944 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
8945 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
8946 (rfs_str): String corresponding to RFS_* constants.
8947 (rank_for_schedule_stats_t): New typedef.
8948 (rank_for_schedule_stats): New static variable.
8949 (rfs_result): New static function.
8950 (rank_for_schedule): Track statistics for deciding heuristics.
8951 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
8953 (ready_sort): Use them for debug printouts.
8954 (schedule_block): Init statistics state. Print statistics on
8955 rank_for_schedule decisions.
8957 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8959 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
8961 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
8963 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
8966 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8968 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
8969 function to not conflict.
8970 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
8971 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
8972 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
8973 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
8974 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
8977 2014-08-07 Marek Polacek <polacek@redhat.com>
8979 * fold-const.c (fold_binary_loc): Add folding of
8980 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
8982 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
8984 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
8985 instead of type size.
8986 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8988 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
8990 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
8991 (*thumb1_movqi_insn): Likewise.
8992 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
8994 2014-08-07 Tom de Vries <tom@codesourcery.com>
8996 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8997 (glibc_2_11_or_earlier): Remove effective-target keywords.
8999 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9001 * config/arm/arm.c (bdesc_2arg): Fix typo.
9002 (arm_atomic_assign_expand_fenv): Remove The default implementation.
9004 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
9006 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9008 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
9011 * haifa-sched.c (advance_one_cycle): Fix dump.
9012 (schedule_block): Don't advance cycle if we are already at the
9013 beginning of the cycle.
9015 2014-08-06 Martin Jambor <mjambor@suse.cz>
9018 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9020 2014-08-06 Richard Biener <rguenther@suse.de>
9023 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9025 (lto_input_tree): Pop SCCs here.
9027 2014-08-06 Richard Biener <rguenther@suse.de>
9029 PR tree-optimization/61320
9030 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9031 handle misaligned loads.
9033 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
9035 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9036 (aarch64_expand_vec_perm_const): Check for dup before zip.
9038 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9040 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9041 CONST_INT_P instead of GET_CODE and compare.
9042 (aarch64_select_cc_mode): Likewise.
9043 (aarch64_print_operand): Likewise.
9044 (aarch64_rtx_costs): Likewise.
9045 (aarch64_simd_valid_immediate): Likewise.
9046 (aarch64_simd_check_vect_par_cnst_half): Likewise.
9047 (aarch64_simd_emit_pair_result_insn): Likewise.
9049 2014-08-05 David Malcolm <dmalcolm@redhat.com>
9051 * gdbhooks.py (find_gcc_source_dir): New helper function.
9052 (class PassNames): New class, locating and parsing passes.def.
9053 (class BreakOnPass): New command "break-on-pass".
9055 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
9057 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9060 2014-08-05 Richard Biener <rguenther@suse.de>
9062 PR rtl-optimization/61672
9063 * emit-rtl.h (mem_attrs_eq_p): Declare.
9064 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
9065 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9066 * cfgcleanup.c (merge_memattrs): Likewise.
9069 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9071 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9072 rather than singleton vectors.
9073 (vqdmlsls_lane_s32): Likewise.
9075 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9077 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9078 Use VSDQ_HSI mode iterator.
9079 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9080 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9081 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9082 Use BUILTIN_VDQHS macro.
9083 (sqrdmulh_laneq): Likewise.
9084 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9085 (vqdmlals_laneq_s32): Likewise.
9086 (vqdmlslh_laneq_s16): Likewise.
9087 (vqdmlsls_laneq_s32): Likewise.
9088 (vqdmulhh_laneq_s16): Likewise.
9089 (vqdmulhs_laneq_s32): Likewise.
9090 (vqrdmulhh_laneq_s16): Likewise.
9091 (vqrdmulhs_laneq_s32): Likewise.
9093 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9095 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9096 (vmuld_laneq_f64): Likewise.
9097 (vmuls_laneq_f32): Likewise.
9098 (vmul_n_f64): Likewise.
9099 (vmuld_lane_f64): Reimplement in C.
9100 (vmuls_lane_f32): Likewise.
9102 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9104 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9106 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9108 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9110 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9111 (rbitsi2): Likewise.
9112 (*arm_rev): Set predicable and predicable_short_it attributes.
9114 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9116 * convert.c (convert_to_integer): Guard transformation to lrint by
9119 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
9121 * config/aarch64/aarch64-builtins.c
9122 (aarch64_simd_builtin_type_mode): Delete.
9123 (v8qi_UP): Remap to V8QImode.
9124 (v4hi_UP): Remap to V4HImode.
9125 (v2si_UP): Remap to V2SImode.
9126 (v2sf_UP): Remap to V2SFmode.
9127 (v1df_UP): Remap to V1DFmode.
9128 (di_UP): Remap to DImode.
9129 (df_UP): Remap to DFmode.
9130 (v16qi_UP):V16QImode.
9131 (v8hi_UP): Remap to V8HImode.
9132 (v4si_UP): Remap to V4SImode.
9133 (v4sf_UP): Remap to V4SFmode.
9134 (v2di_UP): Remap to V2DImode.
9135 (v2df_UP): Remap to V2DFmode.
9136 (ti_UP): Remap to TImode.
9137 (ei_UP): Remap to EImode.
9138 (oi_UP): Remap to OImode.
9139 (ci_UP): Map to CImode.
9140 (xi_UP): Remap to XImode.
9141 (si_UP): Remap to SImode.
9142 (sf_UP): Remap to SFmode.
9143 (hi_UP): Remap to HImode.
9144 (qi_UP): Remap to QImode.
9145 (aarch64_simd_builtin_datum): Make mode a machine_mode.
9146 (VAR1): Build builtin name.
9147 (aarch64_init_simd_builtins): Remove dead code.
9149 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9151 * graphite-isl-ast-to-gimple.c:
9152 (set_options): New function.
9153 (scop_to_isl_ast): Add calling of set_options.
9155 2014-08-05 Jakub Jelinek <jakub@redhat.com>
9157 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9158 (analyze_iv_to_split_insn): Don't initialize them.
9159 (get_ivts_expr): Removed.
9160 (allocate_basic_variable, insert_base_initialization): Use
9161 SET_SRC instead of *get_ivts_expr.
9162 (split_iv): Use &SET_SRC instead of get_ivts_expr.
9164 2014-08-05 Roman Gareev <gareevroman@gmail.com>
9166 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9167 (translate_isl_ast_for_loop): Add checking of the
9168 flag_loop_parallelize_all.
9169 (ast_build_before_for): New function.
9170 (scop_to_isl_ast): Add checking of the
9171 flag_loop_parallelize_all.
9172 * graphite-dependences.c: Move the defenition of the
9173 scop_get_dependences from graphite-optimize-isl.c to this file.
9174 (apply_schedule_on_deps): Add checking of the ux's emptiness.
9175 (carries_deps): Add checking of the x's value.
9176 * graphite-optimize-isl.c: Move the defenition of the
9177 scop_get_dependences to graphite-dependences.c.
9178 * graphite-poly.h: Add declarations of scop_get_dependences
9181 2014-08-04 Rohit <rohitarulraj@freescale.com>
9184 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9186 (alt_reg_names): Likewise.
9187 (rs6000_dwarf_register_span): For SPE high registers, replace
9188 dwarf register numbers with GCC hard register numbers.
9189 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9190 (rs6000_dbx_register_number): For SPE high registers, return dwarf
9191 register number for the corresponding GCC hard register number.
9192 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9193 newly added GCC hard register numbers for SPE high registers.
9194 (DWARF_FRAME_REGISTERS): Likewise.
9195 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9196 (DWARF_FRAME_REGNUM): Likewise.
9197 (FIXED_REGISTERS): Likewise.
9198 (CALL_USED_REGISTERS): Likewise.
9199 (CALL_REALLY_USED_REGISTERS): Likewise.
9200 (REG_ALLOC_ORDER): Likewise.
9201 (enum reg_class): Likewise.
9202 (REG_CLASS_NAMES): Likewise.
9203 (REG_CLASS_CONTENTS): Likewise.
9204 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9206 2014-08-04 Richard Biener <rguenther@suse.de>
9208 * gimple-fold.h (gimple_fold_builtin): Remove.
9209 * gimple-fold.c (gimple_fold_builtin): Make static.
9210 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9211 fold_stmt, not gimple_fold_builtin.
9213 2014-08-04 Martin Liska <mliska@suse.cz>
9215 * cgraph.h (csi_end_p): Removed.
9216 (csi_next): Likewise.
9217 (csi_node): Likewise.
9218 (csi_start): Likewise.
9219 (cgraph_node_in_set_p): Likewise.
9220 (cgraph_node_set_size): Likewise.
9221 (vsi_end_p): Likewise.
9222 (vsi_next): Likewise.
9223 (vsi_node): Likewise.
9224 (vsi_start): Likewise.
9225 (varpool_node_set_size): Likewise.
9226 (cgraph_node_set_nonempty_p): Likewise.
9227 (varpool_node_set_nonempty_p): Likewise.
9228 * cgraphunit.c (cgraph_process_new_functions): vec replaces
9230 * ipa-inline-transform.c: Likewise.
9231 * ipa-utils.c (cgraph_node_set_new): Removed.
9232 (cgraph_node_set_add): Likewise.
9233 (cgraph_node_set_remove): Likewise.
9234 (cgraph_node_set_find): Likewise.
9235 (dump_cgraph_node_set): Likewise.
9236 (debug_cgraph_node_set): Likewise.
9237 (free_cgraph_node_set): Likewise.
9238 (varpool_node_set_new): Likewise.
9239 (varpool_node_set_add): Likewise.
9240 (varpool_node_set_remove): Likewise.
9241 (varpool_node_set_find): Likewise.
9242 (dump_varpool_node_set): Likewise.
9243 (free_varpool_node_set): Likewise.
9244 (debug_varpool_node_set): Likewise.
9245 * tree-emutls.c (struct tls_var_data):
9246 (emutls_index): Removed.
9247 (emutls_decl): Likewise.
9248 (gen_emutls_addr): Function implementation uses newly added
9249 hash_map<varpool_node *, tls_var_data>.
9250 (clear_access_vars): Likewise.
9251 (create_emultls_var): Likewise.
9252 (ipa_lower_emutls): Likewise.
9253 (reset_access): New function.
9255 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9257 * config/i386/i386.c (ix86_option_override_internal): Add
9258 PTA_RDRND and PTA_MOVBE for bdver4.
9260 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9261 James Greenhalgh <james.greenhalgh@arm.com>
9263 * doc/md.texi (clrsb): Document.
9264 (clz): Change reference to x into operand 1.
9266 (popcount): Likewise.
9268 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9271 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9272 move to subtarget in serial version if result is ignored.
9274 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9275 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9277 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9278 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
9279 (sched_analyze_insn): Update use of try_group_insn to
9280 sched_macro_fuse_insns.
9281 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9282 arguments that are not conditional jumps.
9284 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9286 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9287 family information. Handle BTVER2 cpu with cpuid family value.
9289 2014-08-04 Tom de Vries <tom@codesourcery.com>
9291 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9292 (glibc_2_11_or_earlier): Document effective-target keywords.
9294 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9296 * ipa-devirt.c (odr_type_warn_count): Add type.
9297 (possible_polymorphic_call_targets): Set it.
9298 (ipa_devirt): Use it.
9300 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9302 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9304 * ipa-devirt.c: Include hash-map.h
9305 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9306 (clear_speculation): Break out of ...
9307 (get_class_context): ... here; speed up handling obviously useless
9309 (odr_type_warn_count, decl_warn_count): New structures.
9310 (final_warning_record): New structure.
9311 (final_warning_records): New static variable.
9312 (possible_polymorphic_call_targets): Cleanup handling of
9313 speculative info; do not build speculation when user do not care;
9314 record info about warnings when asked for.
9315 (add_decl_warning): New function.
9316 (type_warning_cmp): New function.
9317 (decl_warning_cmp): New function.
9318 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9319 (gate): Enable pass when warnings are requested.
9320 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9323 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9325 * hash-map.h (default_hashmap_traits::mark_key_deleted):
9327 (hash_map::remove): New method.
9328 (hash_map::traverse): New method.
9329 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9330 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9331 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9332 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9333 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9334 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9337 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9339 * hash-set.h: new File.
9340 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9341 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9342 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9343 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9344 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9345 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9346 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9347 varpool.c: Use hash_set instead of pointer_set.
9349 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
9351 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9353 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9355 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9356 for frame access when strict_p is false.
9358 2014-08-01 Renlin Li <renlin.li@arm.com>
9359 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9361 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9362 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9363 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9365 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9367 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9368 aarch64_mem_pair_offset.
9370 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9372 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9374 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9375 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9377 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
9379 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9381 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
9384 * cgraphunit.c (analyze_functions): Use get_create rather than get
9385 for decls which are clones of abstract functions.
9387 2014-08-01 Martin Liska <mliska@suse.cz>
9389 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9390 * ipa-prop.h (count_formal_params): Global function created from static.
9391 * ipa-prop.c (count_formal_params): Likewise.
9392 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9393 profiles for semantically equivalent functions.
9394 * passes.c (do_per_function): If we load body of a function
9395 during WPA, this condition should behave same.
9396 * varpool.c (ctor_for_folding): More tolerant assert for variable
9397 aliases created during WPA.
9399 2014-08-01 Martin Liska <mliska@suse.cz>
9401 * doc/invoke.texi (Options That Control Optimization): Documentation
9402 for -foptimize-strlen introduced. Optimization levels default options
9405 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9407 * opts.c (common_handle_option): Handle -fsanitize=alignment.
9408 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9409 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9411 * stor-layout.h (min_align_of_type): New prototype.
9412 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9413 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
9415 * ubsan.c: Include builtins.h.
9416 (ubsan_expand_bounds_ifn): Change return type to bool,
9418 (ubsan_expand_null_ifn): Change return type to bool, change
9419 argument to gimple_stmt_iterator *. Handle both null and alignment
9420 sanitization, take type from ckind argument's type rather than
9422 (instrument_member_call): Removed.
9423 (instrument_mem_ref): Remove t argument, add mem and base arguments.
9424 Handle both null and alignment sanitization, don't say whole
9425 struct access is member access. Build 3 argument IFN_UBSAN_NULL
9426 call instead of 2 argument.
9427 (instrument_null): Adjust instrument_mem_ref caller. Don't
9428 instrument calls here.
9429 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9431 * stor-layout.c (min_align_of_type): New function.
9432 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9433 Or it into SANITIZE_UNDEFINED.
9434 * doc/invoke.texi (-fsanitize=alignment): Document.
9436 2014-07-31 Andi Kleen <ak@linux.intel.com>
9438 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9440 2014-07-31 Andi Kleen <ak@linux.intel.com>
9442 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9444 (vn_reference_compute_hash): Dito.
9445 (vn_nary_op_compute_hash): Dito.
9446 (vn_phi_compute_hash): Dito.
9447 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9449 2014-07-31 Andi Kleen <ak@linux.intel.com>
9451 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9452 Rename to inchash:add_expr_commutative. Convert to inchash.
9453 (iterative_hash_hashable_expr): Rename to
9454 inchash:add_hashable_expr. Convert to inchash.
9455 (avail_expr_hash): Dito.
9457 2014-07-31 Andi Kleen <ak@linux.intel.com>
9459 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9462 2014-07-31 Andi Kleen <ak@linux.intel.com>
9464 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9466 2014-07-31 Andi Kleen <ak@linux.intel.com>
9468 * Makefile.in (OBJS): Add rtlhash.o
9469 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9470 (loc_checksum): Dito.
9471 (loc_checksum_ordered): Dito.
9472 (hash_loc_operands): Dito.
9474 (hash_loc_list): Dito.
9475 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9476 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9477 * rtlhash.c: New file.
9478 * rtlhash.h: New file.
9480 2014-07-31 Andi Kleen <ak@linux.intel.com>
9482 * inchash.h (inchash): Change inchash class to namespace.
9483 (class hash): ... Rename from inchash.
9484 (add_object): Move from macro to class template.
9485 * lto-streamer-out.c (hash_tree): Change inchash
9487 * tree.c (build_type_attribute_qual_variant): Dito.
9488 (type_hash_list): Dito.
9489 (attribute_hash_list): Dito.
9490 (iterative_hstate_expr): Rename to inchash::add_expr
9491 (build_range_type_1): Change inchash to inchash::hash
9492 and use hash::add_expr.
9493 (build_array_type_1): Dito.
9494 (build_function_type): Dito
9495 (build_method_type_directly): Dito.
9496 (build_offset_type): Dito.
9497 (build_complex_type): Dito.
9498 (make_vector_type): Dito.
9499 * tree.h (iterative_hash_expr): Dito.
9501 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
9503 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9505 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9507 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9508 correct alphabetical position.
9509 (vpaddd_f64): Rewrite using builtins.
9510 (vpaddd_s64): Move to correct alphabetical position.
9513 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
9516 * config/sh/sh.c (sh_legitimate_address_p,
9517 sh_legitimize_reload_address): Handle reg+reg address modes when
9518 ALLOW_INDEXED_ADDRESS is false.
9519 * config/sh/predicates.md (general_movsrc_operand,
9520 general_movdst_operand): Likewise.
9522 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9524 * config/aarch64/aarch64-builtins.c
9525 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
9528 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9530 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
9531 the generated mask based on BYTES_BIG_ENDIAN.
9532 (aarch64_simd_check_vect_par_cnst_half): New.
9533 * config/aarch64/aarch64-protos.h
9534 (aarch64_simd_check_vect_par_cnst_half): New.
9535 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
9536 the check out to aarch64_simd_check_vect_par_cnst_half.
9537 (vect_par_cnst_lo_half): Likewise.
9538 * config/aarch64/aarch64-simd.md
9539 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
9540 (move_hi_quad_<mode>): Always generate a low mask.
9542 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9544 * doc/invoke.texi (AVR Options): Add documentation about
9545 __AVR_DEVICE_NAME__ built-in macro.
9547 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
9550 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
9551 constraints are satisfied.
9552 (<shift>di3_neon): Likewise.
9554 2014-07-31 Richard Biener <rguenther@suse.de>
9556 PR tree-optimization/61964
9557 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
9558 by structural equality.
9560 2014-07-31 Yury Gribov <y.gribov@samsung.com>
9562 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
9563 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
9564 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
9566 * gcc.c (sanitize_spec_function): Support new option.
9567 (SANITIZER_SPEC): Remove now redundant check.
9568 * opts.c (common_handle_option): Support new option.
9569 (finish_options): Check for incompatibilities.
9570 * toplev.c (process_options): Split userspace-specific checks.
9572 2014-07-31 Richard Biener <rguenther@suse.de>
9574 * lto-streamer.h (struct output_block): Remove global.
9575 (struct data_in): Remove labels, num_named_labels and
9577 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
9578 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
9580 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
9583 * common.opt (-Wreturn-local-addr): Moved from c.opt.
9584 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
9585 (isolate_path): New argument to avoid inserting a trap.
9586 (find_implicit_erroneous_behaviour): Handle returning the address
9587 of a local variable.
9588 (find_explicit_erroneous_behaviour): Likewise.
9590 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
9593 * toplev.c (init_random_seed): Move piece of code never called to
9595 (set_random_seed): see above.
9597 2014-07-31 Tom de Vries <tom@codesourcery.com>
9599 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
9601 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9603 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
9604 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
9606 2014-07-31 Richard Biener <rguenther@suse.de>
9608 * data-streamer.h (streamer_write_data_stream): Declare here,
9610 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
9611 * lto-cgraph.c (lto_output_node): Adjust.
9612 (lto_output_varpool_node): Likewise.
9613 * data-streamer-out.c (streamer_string_index): Likewise.
9614 (streamer_write_data_stream, lto_append_block): Move from ...
9615 * lto-section-out.c (lto_output_data_stream,
9616 lto_append_block): ... here.
9618 2014-07-30 Mike Stump <mikestump@comcast.net>
9620 * configure.ac: Also check for popen.
9621 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
9622 * configure: Regenerate.
9623 * config.in: Regenerate.
9625 2014-07-30 Martin Jambor <mjambor@suse.cz>
9627 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
9628 parameter to gimple.
9630 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9632 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
9633 address as second parameter to __tpf_eh_return routine.
9635 2014-07-30 Jiong Wang <jiong.wang@arm.com>
9637 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
9640 2014-07-30 Tom Tromey <tromey@redhat.com>
9643 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
9644 * doc/extend.texi (Type Attributes): Document designated_init
9647 2014-07-30 Roman Gareev <gareevroman@gmail.com>
9649 * graphite-isl-ast-to-gimple.c:
9650 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
9651 (gcc_expression_from_isl_expression): Pass type to
9652 gcc_expression_from_isl_ast_expr_id.
9654 2014-07-30 Richard Biener <rguenther@suse.de>
9656 * lto-streamer.h (lto_write_data): New function.
9657 * langhooks.c (lhd_append_data): Do not free block.
9658 * lto-section-out.c (lto_write_data): New function writing
9659 raw data to the current section.
9660 (lto_write_stream): Adjust for langhook semantic change.
9661 (lto_destroy_simple_output_block): Write header directly.
9662 * lto-opts.c (lto_write_options): Write options directly.
9663 * lto-streamer-out.c (produce_asm): Write heaeder directly.
9664 (lto_output_toplevel_asms): Likewise.
9665 (copy_function_or_variable): Copy data directly.
9666 (write_global_references): Output index table directly.
9667 (lto_output_decl_state_refs): Likewise.
9668 (write_symbol): Write data directly.
9669 (produce_symtab): Adjust.
9670 (produce_asm_for_decls): Output header and refs directly.
9672 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9674 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
9675 to speculative_targets
9676 (get_class_context): Fix handling of contextes without outer type;
9677 avoid matching non-polymorphic types in LTO.
9678 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
9679 parameter to speculative_targetsp; handle speculation.
9680 (dump_possible_polymorphic_call_targets): Update dumping.
9682 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9684 * common.opt (Wodr): Enable by default.
9686 2014-07-29 Olivier Hainque <hainque@adacore.com>
9688 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
9690 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
9693 * gengtype.c (strtoken): New function.
9694 (create_user_defined_type): Replace strtok with strtoken.
9696 2014-07-29 Nathan Sidwell <nathan@acm.org>
9698 * gcov-io.c (gcov_var): Make hidden.
9699 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
9700 (gcov_do_dump): Declare.
9701 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
9703 2014-07-29 Martin Jambor <mjambor@suse.cz>
9705 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
9706 parameter to gimple.
9707 (sra_modify_assign): Likewise.
9709 2014-07-29 Richard Biener <rguenther@suse.de>
9712 * expr.c (expand_expr_real_2): Revert last change.
9714 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9716 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
9717 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
9718 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
9720 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
9721 (contains_type_p): Forward declare.
9722 (polymorphic_call_target_hasher::hash): Hash speculative info.
9723 (polymorphic_call_target_hasher::equal): Compare speculative info.
9724 (get_class_context): Handle speuclation.
9725 (contains_type_p): Update.
9726 (get_polymorphic_call_info_for_decl): Update.
9727 (walk_ssa_copies): Break out from ...
9728 (get_polymorphic_call_info): ... here; set speculative context
9730 * ipa-prop.c (ipa_write_indirect_edge_info,
9731 ipa_read_indirect_edge_info): Stream speculative context.
9732 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
9733 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
9734 SPECULATIVE_MAYBE_DERIVED_TYPE).
9735 (possible_polymorphic_call_targets overriders): Update.
9736 (dump_possible_polymorphic_call_targets overriders): Update.
9737 (dump_possible_polymorphic_call_target_p overriders): Update.
9739 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9741 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
9742 ipa-devirt path; fix thinko there.
9744 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
9746 * config/i386/i386.c (ix86_return_in_memory): Replace one
9747 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
9749 2014-07-28 Marek Polacek <polacek@redhat.com>
9751 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
9753 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
9755 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
9756 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
9757 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
9758 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9759 (USE_LD_AS_NEEDED): Likewise.
9760 (ASM_APP_ON): Likewise.
9761 (ASM_APP_OFF): Likewise.
9762 (TARGET_POSIX_IO): Likewise.
9763 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
9764 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9765 (USE_LD_AS_NEEDED): Likewise.
9766 (ASM_APP_ON): Likewise.
9767 (ASM_APP_OFF): Likewise.
9768 (TARGET_POSIX_IO): Likewise.
9770 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
9773 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
9774 operators other than the equality operators.
9776 2014-07-28 Richard Biener <rguenther@suse.de>
9779 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
9780 sure to register SImode ones, not only >= word_mode ones.
9781 * expr.c (expand_expr_real_2): When expanding -ftrapv
9782 binops do not use OPTAB_LIB_WIDEN.
9784 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
9787 * tree-outof-ssa.c (insert_partition_copy_on_edge)
9788 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
9789 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
9790 inserting them in the insn stream.
9792 2014-07-28 Marek Polacek <polacek@redhat.com>
9795 * common.opt (Wodr): Add Var.
9797 2014-07-28 Richard Biener <rguenther@suse.de>
9799 PR tree-optimization/61921
9800 * tree-ssa-structalias.c (create_variable_info_for_1): Check
9801 if there is a varpool node before dereferencing it.
9803 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9805 * graphite-sese-to-poly.c:
9806 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
9807 id of the pbb), which contains pointer to the pbb1.
9809 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
9811 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9813 * graphite-isl-ast-to-gimple.c:
9814 (graphite_create_new_guard): New function.
9815 (translate_isl_ast_node_if): New function.
9816 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
9818 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
9820 2014-07-27 Anthony Green <green@moxielogic.com>
9822 * config.gcc: Add moxie-*-moxiebox* configuration.
9823 * config/moxie/moxiebox.h: New file.
9825 2014-07-26 Andrew Pinski <apinski@cavium.com>
9827 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
9828 from the read only register.
9830 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
9832 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
9833 as the allocation class if it isn't likely to be spilled.
9835 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
9837 * rtl.h (tls_referenced_p): Declare.
9838 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
9839 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
9840 (mips_cannot_force_const_mem): Use tls_referenced_p.
9841 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
9842 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
9843 instead of pa_tls_referenced_p.
9844 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
9845 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
9846 (pa_legitimate_constant_p): Likewise.
9847 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
9848 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
9849 (rs6000_cannot_force_const_mem, rs6000_emit_move)
9850 (rs6000_address_for_altivec): Use tls_referenced_p instead of
9851 rs6000_tls_referenced_p.
9852 (rs6000_tls_symbol_ref_1): Delete.
9854 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
9857 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9858 Optimize inverse of a VEC_CONCAT.
9860 2014-07-25 Xinliang David Li <davidxl@google.com>
9862 * params.def: New parameter.
9863 * coverage.c (get_coverage_counts): Check new flag.
9864 (coverage_compute_profile_id): Check new flag.
9865 (coverage_begin_function): Check new flag.
9866 (coverage_end_function): Check new flag.
9867 * value-prof.c (coverage_node_map_initialized_p): New function.
9868 (init_node_map): Populate map with all functions.
9869 * doc/invoke.texi: Document new parameter.
9871 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
9872 Richard Biener <rguenther@suse.de>
9874 * lto-streamer-out.c (struct sccs): Turn to ...
9875 (class DFS): ... this one; refactor the DFS walk so it can
9876 be re-done on per-SCC basis.
9877 (DFS::DFS): New constructor.
9878 (DFS::~DFS): New destructor.
9879 (hash_tree): Add new MAP argument holding in-SCC hash values;
9880 remove POINTER_TYPE hashing hack.
9881 (scc_entry_compare): Rename to ...
9882 (DFS::scc_entry_compare): ... this one.
9883 (hash_scc): Rename to ...
9884 (DFS::hash_scc): ... this one; pass output_block instead
9885 of streamer_cache; work harder to get unique and stable SCC
9887 (DFS_write_tree): Rename to ...
9888 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
9889 (lto_output_tree): Update.
9891 2014-07-25 Andi Kleen <ak@linux.intel.com>
9893 * lto-streamer-out.c (hash_tree): Convert to inchash.
9895 2014-07-25 Andi Kleen <ak@linux.intel.com>
9897 * tree.c (build_type_attribute_qual_variant): Use inchash.
9898 (type_hash_list): Dito.
9899 (attribute_hash_list): Dito
9900 (iterative_hstate_expr): Dito.
9901 (iterative_hash_expr): Dito.
9902 (build_range_type_1): Dito.
9903 (build_array_type_1): Dito.
9904 (build_function_type): Dito.
9905 (build_method_type_directly): Dito.
9906 (build_offset_type): Dito.
9907 (build_complex_type): Dito.
9908 (make_vector_type): Dito.
9909 * tree.h (iterative_hash_expr): Add compat wrapper.
9910 (iterative_hstate_expr): Add.
9912 2014-07-25 Andi Kleen <ak@linux.intel.com>
9914 * Makefile.in (OBJS): Add inchash.o.
9915 (PLUGIN_HEADERS): Add inchash.h.
9916 * ipa-devirt.c: Include inchash.h.
9917 * lto-streamer-out.c: Dito.
9918 * tree-ssa-dom.c: Dito.
9919 * tree-ssa-pre.c: Dito.
9920 * tree-ssa-sccvn.c: Dito.
9921 * tree-ssa-tail-merge.c: Dito.
9923 * tree.c (iterative_hash_hashval_t): Move to ...
9924 (iterative_hash_host_wide_int): Move to ...
9925 * inchash.c: Here. New file.
9926 * tree.h (iterative_hash_hashval_t): Move to ...
9927 (iterative_hash_host_wide_int): Move to ...
9928 * inchash.h: Here. New file.
9930 2014-07-25 Richard Biener <rguenther@suse.de>
9934 * fold-const.c (native_encode_int): Add and handle offset
9935 parameter to do partial encodings of expr.
9936 (native_encode_fixed): Likewise.
9937 (native_encode_real): Likewise.
9938 (native_encode_complex): Likewise.
9939 (native_encode_vector): Likewise.
9940 (native_encode_string): Likewise.
9941 (native_encode_expr): Likewise.
9942 * fold-const.c (native_encode_expr): Add offset parameter
9944 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
9945 (fold_ctor_reference): Handle all reads from tcc_constant
9948 2014-07-25 Richard Biener <rguenther@suse.de>
9950 * tree-inline.c (estimate_move_cost): Mark speed_p argument
9953 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9955 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
9957 2014-07-24 Kyle McMartin <kyle@redhat.com>
9959 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
9961 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9963 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
9965 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
9967 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
9968 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9969 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9971 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9973 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
9974 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
9975 aggregate types. Instead, *all* aggregate types, except for single-
9976 element or homogeneous float/vector aggregates, are quadword-aligned
9977 if required by their type alignment. Issue -Wpsabi note when a type
9978 is now treated differently than before.
9980 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9982 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
9983 does not fit fully into floating-point registers, and there is still
9984 space in the register parameter area, use GPRs to pass those parts
9985 of the argument. Issue -Wpsabi note if any parameter is now treated
9986 differently than before.
9987 (rs6000_arg_partial_bytes): Update.
9989 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
9991 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
9993 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9995 * rtl.h (target_rtl): Remove lang_dependent_initialized.
9996 * toplev.c (initialize_rtl): Don't use it. Move previously
9997 "language-dependent" calls to...
9998 (backend_init): ...here.
9999 (lang_dependent_init_target): Don't set lang_dependent_initialized.
10000 Assert that RTL initialization hasn't happend yet.
10002 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10004 PR rtl-optimization/61629
10005 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10006 they have already been initialized.
10008 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
10010 PR middle-end/61268
10011 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10012 DECL_INCOMING_RTL and entry_parm.
10013 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10014 * calls.c (load_register_parameters): Likewise argument values.
10015 (emit_library_call_value_1, store_one_arg): Likewise argument
10017 * config/i386/i386.c (assign_386_stack_local): Likewise the local
10019 * explow.c (validize_mem): Modify the argument in-place.
10021 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10023 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10024 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10026 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10028 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10029 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10031 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10033 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10034 (aarch64_save_callee_saves): New parameter "skip_wb".
10035 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10037 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10039 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10041 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10043 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10045 * graphite-isl-ast-to-gimple.c:
10046 (graphite_create_new_loop): Add calling of isl_id_free to properly
10047 decrement reference counts.
10049 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10051 2014-07-24 Martin Liska <mliska@suse.cz>
10052 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10054 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10055 (rs6000_code_end): Likewise.
10057 2014-07-24 Martin Liska <mliska@suse.cz>
10059 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10060 symtab_node funtion used.
10061 (rs6000_xcoff_declare_object_name): Likewise.
10063 2014-07-24 Martin Liska <mliska@suse.cz>
10065 * cgraphunit.c (compile): Correct function used.
10067 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10069 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10072 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
10075 * varasm.c (bss_initializer_p): Handle offlined ctors.
10076 (align_variable, get_variable_align): Likewise.
10077 (make_decl_one_only): Likewise.
10078 (default_binds_local_p_1): Likewise.
10079 (decl_binds_to_current_def_p): Likewise.
10080 (get_variable_section): Get constructor if it is offlined.
10081 (assemble_variable_contents): Sanity check that the caller
10082 streamed in the ctor in LTO.
10084 2014-07-24 Roman Gareev <gareevroman@gmail.com>
10086 * graphite-isl-ast-to-gimple.c:
10087 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10088 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10089 isl_ast_op_pdiv_r to the different case.
10091 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10093 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10095 PR middle-end/61876
10096 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10097 when flag_errno_math is on.
10099 2014-07-24 Martin Liska <mliska@suse.cz>
10101 * cgraph.h (varpool_node):
10102 (availability get_availability (void)):
10103 created from cgraph_variable_initializer_availability
10104 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10105 created from: cgraph_variable_initializer_availability
10106 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10107 (void finalize_named_section_flags (void)):
10108 created from varpool_finalize_named_section_flags
10109 (bool assemble_decl (void)): created from varpool_assemble_decl
10110 (void analyze (void)): created from varpool_analyze_node
10111 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10112 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10113 (void remove_initializer (void)): created from varpool_remove_initializer
10114 (tree get_constructor (void)): created from varpool_get_constructor
10115 (bool externally_visible_p (void)): created from varpool_externally_visible_p
10116 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10117 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10118 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10119 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10120 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10121 (static bool output_variables (void)): created from varpool_output_variables
10122 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10123 created from varpool_extra_name_alias
10124 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10125 (static void dump_varpool (FILE *f)): created from dump_varpool
10126 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10127 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10128 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10129 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10130 (void assemble_aliases (void)): created from assemble_aliases
10132 2014-07-24 Martin Liska <mliska@suse.cz>
10134 * cgraph.h (symtab_node):
10135 (void register_symbol (void)): created from symtab_register_node
10136 (void remove (void)): created from symtab_remove_node
10137 (void dump (FILE *f)): created from dump_symtab_node
10138 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10139 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10140 (struct ipa_ref *add_reference (symtab_node *referred_node,
10141 enum ipa_ref_use use_type)): created from add_reference
10142 (struct ipa_ref *add_reference (symtab_node *referred_node,
10143 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10144 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10145 gimple stmt)): created from maybe_add_reference
10146 (bool semantically_equivalent_p (symtab_node *target)): created from
10147 symtab_semantically_equivalent_p
10148 (void remove_from_same_comdat_group (void)): created from
10149 remove_from_same_comdat_group
10150 (void add_to_same_comdat_group (symtab_node *old_node)): created from
10151 symtab_add_to_same_comdat_group
10152 (void dissolve_same_comdat_group_list (void)): created from
10153 symtab_dissolve_same_comdat_group_list
10154 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10155 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10156 created from symtab_alias_ultimate_target
10157 (inline symtab_node *next_defined_symbol (void)): created from
10158 symtab_next_defined_symbol
10159 (bool resolve_alias (symtab_node *target)): created from
10160 symtab_resolve_alias
10161 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10162 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10163 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10164 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10165 (void set_section (const char *section)): created from set_section_1
10166 (enum availability get_availability (void)): created from symtab_node_availability
10167 (void make_decl_local (void)): created from symtab_make_decl_local
10168 (bool real_symbol_p (void)): created from symtab_read_node
10169 (can_be_discarded_p (void)): created from symtab_can_be_discarded
10170 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10171 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10172 symtab_in_same_comdat_p;
10173 (bool address_taken_from_non_vtable_p (void)): created from
10174 address_taken_from_non_vtable_p
10175 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10176 (static void dump_table (FILE *)): created from dump_symtab
10177 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10178 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10179 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10180 symtab_used_from_object_file_p
10181 (void dump_base (FILE *)): created from dump_symtab_base
10182 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10183 (void unregister (void)): created from symtab_unregister_node
10184 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10185 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10186 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10187 symtab_nonoverwritable_alias_1
10188 * cgraph.h (cgraph_node):
10189 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10190 created from cgraph_remove_node_and_inline_clones
10191 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10192 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10193 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10194 (cgraph_node *function_symbol (enum availability *avail = NULL)):
10195 created from cgraph_function_node
10196 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10197 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10198 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10199 created from cgraph_create_clone
10200 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10201 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10202 created from cgraph_create_virtual_clone
10203 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10204 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10205 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10206 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10207 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10208 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10209 created from cgraph_function_version_info
10210 (struct cgraph_function_version_info *insert_new_function_version (void)):
10211 created from insert_new_cgraph_node_version
10212 (struct cgraph_function_version_info *function_version (void)): created from
10213 get_cgraph_node_version
10214 (void analyze (void)): created from analyze_function
10215 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10216 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10217 tree real_alias) cgraph_add_thunk
10218 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10219 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10220 created from cgraph_function_or_thunk_node
10221 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10222 created from expand_thunk
10223 (void reset (void)): created from cgraph_reset_node
10224 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10225 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10226 (void remove (void)): created from cgraph_remove_node
10227 (void dump (FILE *f)): created from dump_cgraph_node
10228 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10229 (bool get_body (void)): created from cgraph_get_body
10230 (void release_body (void)): created from cgraph_release_function_body
10231 (void unnest (void)): created from cgraph_unnest_node
10232 (void make_local (void)): created from cgraph_make_node_local
10233 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10234 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10235 gcov_type count, int freq)): created from cgraph_create_edge
10236 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10237 gcov_type count, int freq)): created from cgraph_create_indirect_edge
10238 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10239 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10240 created from cgraph_create_edge_including_clones
10241 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10242 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10243 (void remove_callers (void)): created from cgraph_node_remove_callers
10244 (void remove_callees (void)): created from cgraph_node_remove_callees
10245 (enum availability get_availability (void)): created from cgraph_function_body_availability
10246 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10247 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10248 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10249 (void call_duplication_hooks (cgraph_node *node2)): created from
10250 cgraph_call_node_duplication_hooks
10251 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10252 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10253 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10254 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10255 (void call_function_insertion_hooks (void)):
10256 created from cgraph_call_function_insertion_hooks
10257 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10258 (bool local_p (void)): created from cgraph_local_node
10259 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10260 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10261 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10262 (inline bool only_called_directly_or_aliased_p (void)):
10263 created from cgraph_only_called_directly_or_aliased_p
10264 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10265 created from cgraph_will_be_removed_from_program_if_no_direct_calls
10266 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10267 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10268 (bool can_remove_if_no_direct_calls_p (void)):
10269 created from cgraph_can_remove_if_no_direct_calls_p
10270 (inline bool has_gimple_body_p (void)):
10271 created from cgraph_function_with_gimple_body_p
10272 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10273 (static void dump_cgraph (FILE *f)): created from dump_cgraph
10274 (static inline void debug_cgraph (void)): created from debug_cgraph
10275 (static void record_function_versions (tree decl1, tree decl2)):
10276 created from record_function_versions
10277 (static void delete_function_version (tree decl)):
10278 created from delete_function_version
10279 (static void add_new_function (tree fndecl, bool lowered)):
10280 created from cgraph_add_new_function
10281 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10282 (static cgraph_node * create (tree decl)): created from cgraph_create_node
10283 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10284 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10285 (static cgraph_node *get_for_asmname (tree asmname)):
10286 created from cgraph_node_for_asm
10287 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10288 created from cgraph_same_body_alias
10289 (static bool used_from_object_file_p_worker (cgraph_node *node,
10290 void *): new function
10291 (static bool non_local_p (cgraph_node *node, void *)):
10292 created from cgraph_non_local_node_p_1
10293 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10294 created from verify_cgraph
10295 (static bool make_local (cgraph_node *node, void *)):
10296 created from cgraph_make_node_local
10297 (static cgraph_node *create_alias (tree alias, tree target)):
10298 created from cgraph_create_function_alias
10299 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10300 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10301 created from cgraph_create_edge_1
10302 * cgraph.h (varpool_node):
10303 (void remove (void)): created from varpool_remove_node
10304 (void dump (FILE *f)): created from dump_varpool_node
10306 2014-07-24 Richard Biener <rguenther@suse.de>
10309 * tree-ssa-structalias.c (create_variable_info_for_1):
10310 Use varpool_get_constructor.
10311 (create_variable_info_for): Likewise.
10313 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10315 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10316 subtract outgoing area size when restoring stack_pointer_rtx.
10318 2014-07-24 Nick Clifton <nickc@redhat.com>
10320 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10321 that operations are taking place in parallel.
10322 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10324 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
10326 * omp-low.c (extract_omp_for_data): Add missing break statement.
10328 2014-07-24 Richard Biener <rguenther@suse.de>
10330 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10331 * tree-inline.c (estimate_move_cost): Add speed_p parameter
10332 and adjust MOVE_RATIO query accordingly.
10333 (estimate_num_insns): Adjust callers.
10334 * ipa-prop.c (ipa_populate_param_decls): Likewise.
10335 * ipa-cp.c (gather_context_independent_values,
10336 estimate_local_effects): Likewise.
10337 * ipa-split.c (consider_split): Likewise.
10339 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
10341 * config/i386/driver-i386.c: Remove names of unused arguments and
10342 unnecessary unused attributes.
10343 * config/i386/host-mingw32.c: Likewise.
10344 * config/i386/i386.c: Likewise.
10345 * config/i386/winnt-stubs.c: Likewise.
10346 * config/i386/winnt.c: Likewise.
10348 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10350 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10351 (aarch64_gen_loadwb_pair): New helper function.
10352 (aarch64_expand_epilogue): Simplify code using new helper functions.
10353 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10355 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10357 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10358 (aarch64_gen_storewb_pair): New helper function.
10359 (aarch64_expand_prologue): Simplify code using new helper functions.
10360 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10362 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10364 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10365 Rename to aarch64_save_callee_saves, remove restore code.
10366 (aarch64_restore_callee_saves): New function.
10368 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10370 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10371 (aarch64_save_callee_saves): New function to handle reg save
10372 for both core and vectore regs.
10374 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10376 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10377 (aarch64_gen_store_pair): New helper function.
10378 (aarch64_save_or_restore_callee_save_registers)
10379 (aarch64_save_or_restore_fprs): Use new helper functions.
10381 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10383 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10384 (aarch64_save_or_restore_callee_save_registers)
10385 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10387 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10389 * config/aarch64/aarch64.c
10390 (aarch64_save_or_restore_callee_save_registers)
10391 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10393 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10395 * config/aarch64/aarch64.c
10396 (aarch64_save_or_restore_callee_save_registers)
10397 (aarch64_save_or_restore_fprs): Remove 'increment'.
10399 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10401 * config/aarch64/aarch64.c
10402 (aarch64_save_or_restore_callee_save_registers)
10403 (aarch64_save_or_restore_fprs): Use register offset in
10404 cfun->machine->frame.reg_offset.
10406 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10408 * config/aarch64/aarch64.c
10409 (aarch64_save_or_restore_callee_save_registers)
10410 (aarch64_save_or_restore_fprs): Remove base_rtx.
10412 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10414 * config/aarch64/aarch64.c
10415 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10416 to 'start_offset'. Remove local variable 'start_offset'.
10418 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10420 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10421 type to HOST_WIDE_INT.
10423 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10425 * config/aarch64/aarch64.c (aarch64_expand_prologue)
10426 (aarch64_save_or_restore_fprs)
10427 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10429 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10431 * config/arm/t-rtems-eabi: Add
10432 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10433 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10434 mbig-endian/mthumb/march=armv7-r, and
10435 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10438 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10439 Chris Johns <chrisj@rtems.org>
10440 Joel Sherrill <joel.sherrill@oarcorp.com>
10442 * config.gcc: Add nios2-*-rtems*.
10443 * config/nios2/rtems.h: New file.
10444 * gcc/config/nios2/t-rtems: New file.
10446 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10449 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10450 constant numbers, not general constants.
10451 (rs6000_expand_vector_init): Ditto.
10453 2014-07-23 Nathan Sidwell <nathan@acm.org>
10455 * gcov-tool.c (gcov_list): Declare here.
10456 (set_gcov_list): Remove.
10457 (gcov_output_files): Set gcov_list directly.
10459 2014-07-23 Host Schirmeier <horst@schirmeier.com>
10461 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10463 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10465 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10466 callee-saved registers are available for padding purpose
10467 and r3 is not mandatory, then prefer use those callee-saved
10470 2014-07-23 Richard Biener <rguenther@suse.de>
10472 * params.def (PARAM_MAX_COMBINE_INSNS): New.
10473 * combine.c: Include statistics.h and params.h.
10474 (combine_instructions): Guard three and four insn combines
10475 with max-combine-insns value. Record statistics for combines
10477 * doc/invoke.texi (max-combine-insns): Document new param.
10479 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10481 * graphite-isl-ast-to-gimple.c:
10482 (translate_isl_ast_node_block): New function.
10483 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10485 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10486 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10488 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10490 * graphite-isl-ast-to-gimple.c:
10491 (get_max_schedule_dimensions): New function.
10492 (extend_schedule): Likewise.
10493 (generate_isl_schedule): Add calling of extend_schedule and
10494 get_max_schedule_dimensions.
10496 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10498 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10499 (case UNSPEC): Handle UNSPEC_RBIT.
10501 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10503 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10504 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10506 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10508 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10510 2014-07-22 Roman Gareev <gareevroman@gmail.com>
10512 * graphite-isl-ast-to-gimple.c:
10513 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10514 (ivs_params_clear):
10515 (build_iv_mapping): New function.
10516 (translate_isl_ast_node_user): Likewise.
10517 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
10519 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
10520 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
10521 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
10523 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10526 * config/arm/arm.md (setmem): New pattern.
10527 * config/arm/arm-protos.h (struct tune_params): New fields.
10528 (arm_gen_setmem): New prototype.
10529 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10530 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10531 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10532 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10533 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10534 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10535 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10536 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10537 (arm_const_inline_cost): New function.
10538 (arm_block_set_max_insns): New function.
10539 (arm_block_set_non_vect_profit_p): New function.
10540 (arm_block_set_vect_profit_p): New function.
10541 (arm_block_set_unaligned_vect): New function.
10542 (arm_block_set_aligned_vect): New function.
10543 (arm_block_set_unaligned_non_vect): New function.
10544 (arm_block_set_aligned_non_vect): New function.
10545 (arm_block_set_vect, arm_gen_setmem): New functions.
10547 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10549 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10551 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
10554 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
10555 out of #ifdef __OPTIMIZE__.
10557 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10559 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
10560 different trapping status if -fnon-call-exceptions is enabled.
10562 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10564 * expr.c (store_field): Handle VOIDmode for calls that return values
10565 in multiple locations.
10567 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10569 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
10570 (altivec_vsldoi_<mode>): Likewise.
10572 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10574 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
10575 to the number of characters in the line.
10577 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10579 * graphite-isl-ast-to-gimple.c: Add using of
10580 build_nonstandard_integer_type instead of int128_integer_type_node.
10582 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
10584 * toplev.c (output_stack_usage): Adjust the location of the warning.
10586 2014-07-19 Daniel Cederman <cederman@gaisler.com>
10588 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
10589 (*membar_storeload): Disable for LEON3.
10591 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10593 PR rtl-optimization/61461
10594 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
10596 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
10599 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
10600 Fix instruction constraint.
10601 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
10603 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
10605 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
10607 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
10609 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
10610 GNU coding standards.
10611 (nds32_register_move_cost): Likewise.
10612 (nds32_memory_move_cost): Likewise.
10613 (nds32_address_cost): Likewise.
10615 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10617 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
10619 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
10621 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
10622 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
10623 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10624 (HAVE_sync_compare_and_swapqi): Define.
10625 (HAVE_sync_compare_and_swaphi): Likewise.
10626 (HAVE_sync_compare_and_swapsi): Likewise.
10628 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
10630 * config/mips/p5600.md: Add missing cpu tests.
10632 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10634 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
10635 (vmla_f64): Likewise.
10636 (vfms_f64): Likewise.
10637 (vmls_f64): Likewise.
10639 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10641 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
10642 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
10644 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10646 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
10647 (vmlal_high_lane_s32): Likewise.
10648 (vmlal_high_lane_u16): Likewise.
10649 (vmlal_high_lane_u32): Likewise.
10650 (vmlsl_high_lane_s16): Likewise.
10651 (vmlsl_high_lane_s32): Likewise.
10652 (vmlsl_high_lane_u16): Likewise.
10653 (vmlsl_high_lane_u32): Likewise.
10655 2014-07-17 Terry Guo <terry.guo@arm.com>
10657 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
10658 (alus_reg): Renamed to alus_sreg.
10659 * config/arm/arm-fixed.md: Change type of non-dsp instructions
10660 from alu_reg to alu_sreg. Change type of dsp instructions from
10661 alu_reg to alu_dsp_reg.
10662 * config/arm/thumb1.md: Likewise.
10663 * config/arm/thumb2.md: Likewise.
10664 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
10665 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
10666 with alu_sreg and alus_sreg.
10667 * config/arm/arm1026ejs.md (alu_op): Likewise.
10668 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10669 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10670 * config/arm/fa526.md (526_alu_op): Likewise.
10671 * config/arm/fa606te.md (606te_alu_op): Likewise.
10672 * config/arm/fa626te.md (626te_alu_op): Likewise.
10673 * config/arm/fa726te.md (726te_alu_op): Likewise.
10674 * config/arm/fmp626.md (mp626_alu_op): Likewise.
10675 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
10676 alu_sreg, alu_dsp_reg and alus_sreg.
10677 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10678 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10679 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10680 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
10681 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10682 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10683 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10684 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10685 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
10686 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
10687 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
10688 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
10689 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
10690 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
10691 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
10692 alus_reg to alus_sreg.
10694 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
10696 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
10699 2014-07-17 Richard Biener <rguenther@suse.de>
10701 PR rtl-optimization/61801
10702 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
10703 don't set reg_pending_barrier if it appears in a debug-insn.
10705 2014-07-16 DJ Delorie <dj@redhat.com>
10707 * config/rx/rx.c (rx_option_override): Fix alignment values.
10708 (rx_align_for_label): Likewise.
10710 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
10713 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
10714 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10715 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
10717 (cris_print_index, cris_print_operand, cris_constant_index_p)
10718 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
10719 (cris_address_cost): Ditto last CONSTANT_P.
10720 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
10721 callers changed. Yield cris_offsettable_symbol for non-PIC
10722 constant symbolic expressions including labels. Yield cris_unspec
10724 (cris_expand_pic_call_address): New parameter MARKERP. Set its
10725 target to pic_offset_table_rtx for calls that will likely go
10726 through PLT, const0_rtx when they can't. All callers changed.
10727 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
10728 symbolic expressions to be PICified. Remove second, redundant,
10729 assert on can_create_pseudo_p returning non-zero. Use
10730 replace_equiv_address_nv, not replace_equiv_address, for final
10732 * config/cris/cris.md ("movsi"): Move variable t to pattern
10733 toplevel. Adjust assert for new cris_symbol_type member. Use
10734 CONSTANT_P instead of CONSTANT_ADDRESS_P.
10735 ("*movsi_internal") <case 9>: Make check for valid unspec operands
10737 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
10738 ("call", "call_value"): Use second incoming operand as a marker
10739 for pic-offset-table-register being used.
10740 ("*expanded_call_non_v32", "*expanded_call_v32")
10741 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
10742 second incoming operand to CALL, match cris_call_type_marker.
10743 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
10744 ("*expanded_call_side"): Ditto. Fix typo in comment.
10745 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
10747 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
10748 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
10749 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
10750 users changed. Add members cris_offsettable_symbol and cris_unspec.
10751 (cris_symbol_type): Rename from cris_pic_symbol_type.
10752 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
10754 * config/cris/cris-protos.h (cris_symbol_type_of,
10755 cris_expand_pic_call_address): Adjust prototypes.
10756 (cris_legitimate_constant_p): New prototype.
10758 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
10759 an existing tmake_file. Don't add t-slibgcc and t-linux.
10761 2014-07-17 Jason Merrill <jason@redhat.com>
10764 * symtab.c (symtab_remove_from_same_comdat_group): Also
10765 set_comdat_group to NULL_TREE.
10766 (verify_symtab): Fix diagnostic.
10768 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
10771 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
10773 2014-07-16 Dodji Seketeli <dodji@redhat.com>
10775 Support location tracking for built-in macro tokens
10776 * input.h (is_location_from_builtin_token): New function declaration.
10777 * input.c (is_location_from_builtin_token): New function definition.
10778 * toplev.c (general_init): Tell libcpp what the pre-defined
10779 spelling location for built-in tokens is.
10781 2014-07-16 Jakub Jelinek <jakub@redhat.com>
10783 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
10784 on the FUNCTION_DECL.
10786 2014-07-16 Richard Biener <rguenther@suse.de>
10789 * doc/extend.texi (always_inline): Clarify.
10791 2014-07-15 Eric Christopher <echristo@gmail.com>
10793 * doc/invoke.texi (Link Options): Document -z option.
10795 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
10797 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
10798 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10800 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
10802 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
10804 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
10806 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
10807 varpool_assemble_decl.
10808 * varpool.c (varpool_assemble_decl): Assert that node->definition is
10811 2014-07-15 Michael Matz <matz@suse.de>
10813 PR rtl-optimization/61772
10814 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
10816 2014-07-15 Richard Biener <rguenther@suse.de>
10818 * opts.c (default_options_table): Disable bit-ccp at -Og.
10820 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10822 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
10824 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10826 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
10827 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
10828 call langhook for unknown declaration.
10829 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
10830 * tree.h (DECL_ARGUMENTS): Update.
10831 * print-tree.c (print_node): Update.
10832 * tree-core.h (tree_decl_non_common): Remove arguments.
10833 (tree_function_decl): Add arguments.
10835 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
10837 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
10839 2014-07-14 Richard Biener <rguenther@suse.de>
10841 PR tree-optimization/61779
10842 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
10843 simplifying a condition.
10845 2014-07-14 Richard Biener <rguenther@suse.de>
10847 * builtins.c (c_strlen): Make only_value == 2 really only
10848 affect warning generation.
10850 2014-07-14 Richard Biener <rguenther@suse.de>
10852 PR tree-optimization/61757
10853 PR tree-optimization/61783
10854 PR tree-optimization/61787
10855 * tree-ssa-dom.c (record_equality): Revert canonicalization
10856 change and add comment.
10857 (propagate_rhs_into_lhs): Revert previous fix, removing
10858 loop depth restriction again.
10860 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10862 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
10863 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10864 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10865 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
10866 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10867 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10868 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10870 2014-07-14 Richard Biener <rguenther@suse.de>
10872 * cgraph.h (decl_in_symtab_p): Make inline.
10874 2014-07-14 Jakub Jelinek <jakub@redhat.com>
10876 PR middle-end/61294
10877 * doc/invoke.texi (-Wmemset-transposed-args): Document.
10880 * config/i386/i386.c (classify_argument): Don't merge classes above
10883 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
10885 * cgraph.h (symtab_node): Add nonzero_address.
10886 (decl_in_symtab_p): Break out from ...
10887 (symtab_get_node): ... here.
10888 * fold-const.c: Include cgraph.h
10889 (tree_single_nonzero_warnv_p): Use symtab to determine
10890 if symbol is non-zero.
10891 * symtab.c (symtab_node::nonzero_address): New method.
10893 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10895 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
10896 forgotten in previous commit.
10898 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10900 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
10902 * ipa-devirt.c: Include stor-layout.h and intl.h
10903 (odr_subtypes_equivalent_p): New function.
10904 (warn_odr): New function.
10905 (warn_type_mismatch): New function.
10906 (odr_types_equivalent_p): New function.
10907 (add_type_duplicate): Use it.
10908 * common.opt (Wodr): New flag.
10909 * doc/invoke.texi (Wodr): Document new warning.
10911 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10913 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
10914 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
10915 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
10916 (varpool_get_constructor): Push CTORS_IN timevar.
10917 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
10919 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
10921 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
10922 Remove VOID_FTYPE_PUSHORT.
10923 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
10924 Change code to USHORT_FTYPE_VOID.
10925 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
10926 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
10927 (ix86_atomic_assign_expand_fenv): Update for
10928 __builtin_ia32_fnstsw changes.
10929 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
10930 (fnstsw): Change operand 0 to nonimmediate operand.
10932 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10934 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
10935 (varpool_get_constructor): New function.
10936 (varpool_ctor_useable_for_folding_p): Break out from ...
10937 (ctor_for_folding): ... here; use varpool_get_constructor.
10938 (varpool_assemble_decl): Likewise.
10939 * lto-streamer.h (struct output_block): Turn cgraph_node
10941 (lto_input_variable_constructor): Declare.
10942 * ipa-visibility.c (function_and_variable_visibility): Use
10943 varpool_get_constructor.
10944 * cgraph.h (varpool_get_constructor): Declare.
10945 (varpool_ctor_useable_for_folding_p): New function.
10946 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
10947 parameter; return error_mark_node for non-trivial constructors.
10948 (lto_write_tree_1, DFS_write_tree): Update use of
10949 get_symbol_initial_value.
10950 (output_function): Update initialization of symbol.
10951 (output_constructor): New function.
10952 (copy_function): Rename to ..
10953 (copy_function_or_variable): ... this one; handle vars too.
10954 (lto_output): Output variable sections.
10955 * lto-streamer-in.c (input_constructor): New function.
10956 (lto_read_body): Rename from ...
10957 (lto_read_body_or_constructor): ... this one; handle vars too.
10958 (lto_input_variable_constructor): New function.
10959 * ipa-prop.c (ipa_prop_write_jump_functions,
10960 ipa_prop_write_all_agg_replacement): Update.
10961 * lto-cgraph.c (compute_ltrans_boundary): Use it.
10962 (output_cgraph_opt_summary): Set symbol to NULL.
10964 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10966 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
10967 non-polymorphic types.
10968 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
10969 * ipa-devirt.c (types_same_for_odr): Do not explode when one
10970 of types is not polymorphic.
10972 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
10974 * lra-constraints.c (remove_inheritance_pseudos): Process
10975 destination pseudo too.
10977 2014-07-11 Rong Xu <xur@google.com>
10979 * gcov-tool.c (gcov_output_files): Fix build error introduced in
10982 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10984 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
10985 * config/avr/avr-devices.c (AVR_MCU): Same.
10986 (avr_mcu_types): add text start value to end of device list.
10987 * config/avr/avr-mcus.def: Add text section start for all devices.
10988 (ata5782): Add new avr5 device.
10990 * config/avr/avr-tables.opt: Regenerate.
10991 * config/avr/avr.h: Add declaration for text section start handler.
10992 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
10994 (LINK_SPEC): Include text section start handler to linker spec.
10995 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
10996 pass -Ttext option to linker if the text section start for the device
10998 * config/avr/t-multilib: Regenerate.
10999 * doc/avr-mmcu.texi: Regenerate.
11001 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
11003 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11004 * config/rs6000/aix52.h (LINK_SPEC): Same.
11005 * config/rs6000/aix53.h (LINK_SPEC): Same.
11006 * config/rs6000/aix61.h (LINK_SPEC): Same.
11007 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11009 2014-07-11 Roman Gareev <gareevroman@gmail.com>
11011 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11012 (graphite_verify): New function.
11013 (ivs_params_clear): New function.
11014 (gcc_expression_from_isl_ast_expr_id): New function.
11015 (gcc_expression_from_isl_expr_int): New function.
11016 (binary_op_to_tree): New function.
11017 (ternary_op_to_tree): New function.
11018 (unary_op_to_tree): New function.
11019 (nary_op_to_tree): New function.
11020 (gcc_expression_from_isl_expr_op): New function.
11021 (gcc_expression_from_isl_expression): New function.
11022 (graphite_create_new_loop): New function.
11023 (translate_isl_ast_for_loop): New function.
11024 (get_upper_bound): New function.
11025 (graphite_create_new_loop_guard): New function.
11026 (translate_isl_ast_node_for): New function.
11027 (translate_isl_ast): New function.
11028 (add_parameters_to_ivs_params): New function.
11029 (scop_to_isl_ast): New parameter ip.
11030 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11032 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
11034 * config/xtensa/predicates.md (call expander): Update for
11035 DECL_SECTION_NAME being string.
11037 2014-07-11 Richard Biener <rguenther@suse.de>
11039 PR middle-end/61473
11040 * builtins.c (fold_builtin_memory_op): Inline memory moves that
11041 can be implemented with a single load followed by a single store.
11042 (c_strlen): Only warn when only_value is not 2.
11044 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
11046 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11048 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
11051 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11052 (*movhi_bytes): Likewise.
11053 (*arm_movqi_insn): Likewise.
11055 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
11058 * config/alpha/alpha.c: Include tree-pass.h, context.h
11059 and pass_manager.h.
11060 (pass_data_handle_trap_shadows): New pass.
11061 (pass_handle_trap_shadows::gate): New pass gate function.
11062 (make_pass_handle_trap_shadows): New function.
11063 (rest_of_handle_trap_shadows): Ditto.
11065 (alpha_align_insns_1): Rename from alpha_align_insns.
11066 (pass_data_align_insns): New pass.
11067 (pass_align_insns::gate): New pass gate function.
11068 (make_pass_aling_insns): New function.
11069 (rest_of_align_insns): Ditto.
11070 (alpha_align_insns): Ditto.
11072 (alpha_option_override): Declare handle_trap_shadows info
11073 and align_insns_info. Register handle_trap_shadows and align_insns
11075 (alpha_reorg): Do not call alpha_trap_shadows and
11076 alpha_align_insn from here.
11078 (alpha_pad_function_end): Do not skip BARRIERs.
11080 2014-07-10 Rong Xu <xur@google.com>
11082 Add gcov-tool: an offline gcda profile processing tool support.
11083 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11084 (gcov_is_error): Ditto.
11085 (gcov_read_string): Ditto.
11086 (gcov_read_sync): Ditto.
11087 * gcov-io.h: Move counter defines to gcov-counter.def.
11088 * gcov-dump.c (tag_counters): Use gcov-counter.def.
11089 * coverage.c: Ditto.
11090 * gcov-tool.c: Offline gcda profile processing tool.
11091 (unlink_gcda_file): Remove one gcda file.
11092 (unlink_profile_dir): Remove gcda files from the profile path.
11093 (gcov_output_files): Output gcda files to an output dir.
11094 (profile_merge): Merge two profiles in directory.
11095 (print_merge_usage_message): Print merge usage.
11096 (merge_usage): Print merge usage and exit.
11097 (do_merge): Driver for profile merge sub-command.
11098 (profile_rewrite): Rewrite profile.
11099 (print_rewrite_usage_message): Print rewrite usage.
11100 (rewrite_usage): Print rewrite usage and exit.
11101 (do_rewrite): Driver for profile rewrite sub-command.
11102 (print_usage): Print gcov-info usage and exit.
11103 (print_version): Print gcov-info version.
11104 (process_args): Process arguments.
11105 (main): Main routine for gcov-tool.
11106 * Makefile.in: Build and install gcov-tool.
11107 * gcov-counter.def: New file split from gcov-io.h.
11108 * doc/gcc.texi: Include gcov-tool.texi.
11109 * doc/gcov-tool.texi: Document for gcov-tool.
11111 2014-07-10 Richard Biener <rguenther@suse.de>
11113 PR tree-optimization/61757
11114 * tree-ssa-dom.c (loop_depth_of_name): Restore.
11115 (propagate_rhs_into_lhs): Revert part of last change.
11117 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
11119 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11122 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
11124 PR middle-end/53590
11125 * function.c (allocate_struct_function): Revert r188667 change.
11127 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11129 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
11131 * doc/install.texi: Remove links to defunct package providers for
11134 2014-07-09 Tom de Vries <tom@codesourcery.com>
11136 * final.c (get_call_fndecl): Declare.
11137 (self_recursive_call_p): New function.
11138 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11140 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11142 * ipa-devirt.c (record_node): Walk through aliases.
11144 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11146 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11148 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11151 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11153 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11155 * ipa-visibility.c (function_and_variable_visibility): Remove
11156 temporary hack disabling local aliases on AIX.
11158 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11160 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11161 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11163 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11165 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11166 * rs6000/rs6000.c: Inline output of .set instruction.
11167 (declare_alias_data): New struct.
11168 (rs6000_declare_alias): New function.
11169 (rs6000_xcoff_declare_function_name): Use it.
11170 (rs6000_xcoff_declare_object_name): New function.
11171 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11172 (ASM_OUTPUT_DEF): Turn to empty definition.
11174 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11177 * hash-table.h: use hash_table::value_type instead of
11178 Descriptor::value_type in the return types of several methods.
11180 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11182 * tree-pass.h (pass_data): Remove has_execute member.
11183 * passes.c (execute_one_pass): Don't check pass->has_execute.
11184 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11185 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11186 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11187 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11188 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11189 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11190 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11191 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11192 gimple-low.c, gimple-ssa-isolate-paths.c,
11193 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11194 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11195 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11196 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11197 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11198 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11199 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11200 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11201 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11202 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11203 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11204 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11205 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11206 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11207 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11208 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11209 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11210 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11211 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11212 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11213 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11214 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11215 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11216 web.c: Remove initializer for pass_data::has_execute.
11218 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
11220 * graphite-htab.h: Use hash_map instead of hash_table.
11221 * graphite-clast-to-gimple.c: Adjust.
11222 * passes.c: Use hash_map instead of hash_table.
11223 * sese.c: Likewise.
11224 * sese.h: Remove now unused code.
11226 2014-07-08 Sriraman Tallam <tmsriram@google.com>
11229 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11232 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11234 PR rtl-optimization/61673
11235 * combine.c (simplify_comparison): Test just mode's sign bit
11236 in tmode rather than the sign bit and any bits above it.
11238 2014-07-08 Roman Gareev <gareevroman@gmail.com>
11240 * graphite-isl-ast-to-gimple.c (generate_isl_context):
11241 Add __isl_give to the declaration.
11242 (generate_isl_schedule): Likewise.
11243 (scop_to_isl_ast): Likewise.
11245 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11247 * config/arm/arm.c (cortexa5_extra_costs): New table.
11248 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11250 2014-07-08 Jakub Jelinek <jakub@redhat.com>
11252 PR tree-optimization/61725
11253 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11254 range, use range_includes_zerop_p instead of integer_zerop on
11255 vr0->min, only use log2 of max if min is not negative.
11257 2014-07-08 Richard Biener <rguenther@suse.de>
11259 * tree-ssa-dom.h (loop_depth_of_name): Remove.
11260 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11261 restriction on loop depth difference.
11262 (record_equality): Likewise.
11263 (propagate_rhs_into_lhs): Likewise. Simplify condition.
11264 (loop_depth_of_name): Remove.
11265 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11266 restriction on loop depth difference.
11267 (init_copy_prop): Likewise.
11269 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11271 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11273 (walk_aliased_vdefs): Likewise.
11274 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11275 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11276 (detect_type_change_from_memory_writes): Check if entry was reached.
11278 2014-07-08 Richard Biener <rguenther@suse.de>
11280 PR tree-optimization/61681
11281 * tree-ssa-structalias.c (find_what_var_points_to): Expand
11282 NONLOCAL inside ESCAPED.
11284 2014-07-08 Richard Biener <rguenther@suse.de>
11286 PR tree-optimization/61680
11287 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11288 Handle properly all read-write dependences with group accesses.
11290 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11292 PR tree-optimization/61576
11293 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11294 block containing reduction statement is predecessor of phi basi block.
11296 2014-07-08 Marek Polacek <polacek@redhat.com>
11299 * fold-const.c (round_up_loc): Change the parameter type.
11301 * fold-const.h (round_up_loc): Adjust declaration.
11302 * stor-layout.c (finalize_record_size): Check for too large types.
11304 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
11306 * symtab.c: Include calls.h.
11307 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11309 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
11311 * config/rs6000/rs6000.c (output_vec_const_move): Handle
11312 little-endian code generation.
11313 * config/rs6000/spe.md (spe_evmergehi): Rename to...
11314 (vec_perm00_v2si): ... this. Handle little-endian code generation.
11315 (spe_evmergehilo): Rename to...
11316 (vec_perm01_v2si): ... this. Handle little-endian code generation.
11317 (spe_evmergelo): Rename to...
11318 (vec_perm11_v2si): ... this. Handle little-endian code generation.
11319 (spe_evmergelohi): Rename to...
11320 (vec_perm10_v2si): ... this. Handle little-endian code generation.
11321 (spe_evmergehi, spe_evmergehilo): New expanders.
11322 (spe_evmergelo, spe_evmergelohi): Likewise.
11323 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11324 (*frob_tf_ti): Likewise.
11325 (*frob_<mode>_di_2): Likewise.
11326 (*frob_tf_di_8_2): Likewise.
11327 (*frob_di_<mode>): Likewise.
11328 (*frob_ti_tf): Likewise.
11329 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11330 (*frob_ti_<mode>_8_2): Likewise.
11331 (*frob_ti_tf_2): Likewise.
11332 (mov_si<mode>_e500_subreg0): Rename to...
11333 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
11335 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11336 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11337 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
11338 the big endianness only.
11339 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11340 (*mov_si<mode>_e500_subreg0_2): Rename to...
11341 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
11342 big big endianness only.
11343 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11344 (*mov_si<mode>_e500_subreg4): Rename to...
11345 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
11347 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11348 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11349 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
11350 the big endianness only.
11351 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11353 (*mov_si<mode>_e500_subreg4_2): Rename to...
11354 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
11356 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11357 (*mov_sitf_e500_subreg8): Rename to...
11358 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
11360 (*mov_sitf_e500_subreg8_le): New instruction pattern.
11361 (*mov_sitf_e500_subreg8_2): Rename to...
11362 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
11364 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11365 (*mov_sitf_e500_subreg12): Rename to...
11366 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
11368 (*mov_sitf_e500_subreg12_le): New instruction pattern.
11369 (*mov_sitf_e500_subreg12_2): Rename to...
11370 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
11372 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11374 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
11376 * asan.c (instrument_strlen_call): Do not instrument first byte
11377 in strlen if already instrumented.
11379 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11381 * config/arm/arm.opt (mwords-little-endian): Delete.
11382 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11383 of TARGET_LITTLE_WORDS.
11384 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11385 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11387 * doc/invoke.texi: Remove references to -mwords-little-endian.
11389 2014-07-07 Jakub Jelinek <jakub@redhat.com>
11391 * expmed.c (struct init_expmed_rtl): Change all fields but
11392 pow2 and cint from struct rtx_def to rtx.
11393 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11394 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
11397 2014-07-06 Marek Polacek <polacek@redhat.com>
11400 * doc/invoke.texi: Document -Wsizeof-array-argument.
11402 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
11404 * wide-int.h (wide_int_storage): Change declaration from struct
11407 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
11409 * cgraph.c (cgraph_create_indirect_edge): Update call of
11410 get_polymorphic_call_info.
11411 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11412 (possible_polymorphic_call_targets): Add parameter call.
11413 (decl_maybe_in_construction_p): New predicate.
11414 (get_polymorphic_call_info): Add parameter call;
11415 use decl_maybe_in_construction_p.
11416 * gimple-fold.c (fold_gimple_assign): Update use of
11417 possible_polymorphic_call_targets.
11418 (gimple_fold_call): Likewise.
11419 * ipa-prop.c: Inlcude calls.h
11420 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11421 (param_type_may_change_p): New predicate.
11422 (detect_type_change_from_memory_writes): Break out from ...
11423 (detect_type_change): ... this one; use param_type_may_change_p.
11424 (detect_type_change_ssa): Use param_type_may_change_p.
11425 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11427 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
11430 * config/arm/arm-protos.h (arm_legitimate_address_p,
11431 arm_is_constant_pool_ref): Add prototypes.
11432 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11433 (arm_is_constant_pool_ref) New function.
11434 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11435 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11436 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11437 operand. Remove pool_range and neg_pool_range attributes.
11438 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11439 pool_range and neg_pool_range attributes.
11440 * config/arm/constraints.md (Uh): New constraint.
11441 (Uq): Don't allow constant pool references.
11443 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
11445 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11446 (move_lo_quad_internal_be_<mode>): Likewise.
11447 (move_lo_quad_<mode>): Convert to define_expand.
11448 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11449 (aarch64_simd_move_hi_quad_be_<mode>): New.
11450 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11451 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11452 (aarch64_combinez_be<mode>): New.
11453 (aarch64_combine<mode>): Convert to define_expand.
11454 (aarch64_combine_internal<mode>): New.
11455 (aarch64_simd_combine<mode>): Remove bogus RTL description.
11457 2014-07-04 Tom de Vries <tom@codesourcery.com>
11459 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11460 combination of earlyclobber and read/write modifiers.
11462 2014-07-04 Tom de Vries <tom@codesourcery.com>
11464 * config/aarch64/aarch64-simd.md
11465 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11467 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
11470 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11472 2014-07-04 Jakub Jelinek <jakub@redhat.com>
11474 PR middle-end/61654
11475 * cgraphunit.c (expand_thunk): Call free_dominance_info.
11477 PR tree-optimization/61684
11478 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11479 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11481 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11482 Kito Cheng <kito@0xlab.org>
11483 Monk Chiang <sh.chiang04@gmail.com>
11485 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11486 (nds32_symbol_load_store_p): Move to ...
11487 (nds32_fp_as_gp_check_available): Move to ...
11488 * config/nds32/nds32-fp-as-gp.c: ... here.
11489 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11490 extern declaration.
11492 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11493 Kito Cheng <kito@0xlab.org>
11494 Monk Chiang <sh.chiang04@gmail.com>
11496 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
11497 (nds32_expand_store_multiple): Move to ...
11498 (nds32_expand_movmemqi): Move to ...
11499 * config/nds32/nds32-memory-manipulation.c: ... here.
11501 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11502 Kito Cheng <kito@0xlab.org>
11503 Monk Chiang <sh.chiang04@gmail.com>
11505 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11506 (nds32_output_casesi_pc_relative): Move to ...
11507 (nds32_output_casesi): Move to ...
11508 (nds32_mem_format): Move to ...
11509 (nds32_output_16bit_store): Move to ...
11510 (nds32_output_16bit_load): Move to ...
11511 (nds32_output_32bit_store): Move to ...
11512 (nds32_output_32bit_load): Move to ...
11513 (nds32_output_32bit_load_s): Move to ...
11514 (nds32_output_stack_push): Move to ...
11515 (nds32_output_stack_pop): Move to ...
11516 * config/nds32/nds32-md-auxiliary.c: ... here.
11518 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11519 Ling-Hua Tseng <uranus@tinlans.org>
11521 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
11522 the purpose of this file.
11524 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11525 Kito Cheng <kito@0xlab.org>
11526 Monk Chiang <sh.chiang04@gmail.com>
11528 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
11529 (nds32_address_cost): Move implementation to ...
11530 * config/nds32/nds32-cost.c: ... here.
11531 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
11532 (nds32_address_cost_impl): Declare.
11534 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11535 Kito Cheng <kito@0xlab.org>
11536 Monk Chiang <sh.chiang04@gmail.com>
11538 * config/nds32/nds32.c
11539 (nds32_consecutive_registers_load_store_p): Move to ...
11540 (nds32_valid_multiple_load_store): Move to ...
11541 (nds32_valid_stack_push_pop): Move to ...
11542 (nds32_can_use_bclr_p): Move to ...
11543 (nds32_can_use_bset_p): Move to ...
11544 (nds32_can_use_btgl_p): Move to ...
11545 (nds32_can_use_bitci_p): Move to ...
11546 * config/nds32/nds32-predicates.c: ... here.
11548 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11549 Kito Cheng <kito@0xlab.org>
11550 Monk Chiang <sh.chiang04@gmail.com>
11552 * config/nds32/nds32.c
11553 (nds32_expand_builtin_null_ftype_reg): Move to ...
11554 (nds32_expand_builtin_reg_ftype_imm): Move to ...
11555 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
11556 (nds32_init_builtins): Move implementation to ...
11557 (nds32_expand_builtin): Move implementation to ...
11558 * config/nds32/nds32-intrinsic.c: ... here.
11559 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
11560 (nds32_expand_builtin_impl): Declare.
11562 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11563 Kito Cheng <kito@0xlab.org>
11564 Monk Chiang <sh.chiang04@gmail.com>
11566 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
11567 (nds32_emit_section_tail_template): Move to ...
11568 (nds32_emit_isr_jmptbl_section): Move to ...
11569 (nds32_emit_isr_vector_section): Move to ...
11570 (nds32_emit_isr_reset_conten): Move to ...
11571 (nds32_check_isr_attrs_conflict): Move to ...
11572 (nds32_construct_isr_vectors_information): Move to ...
11573 (nds32_asm_file_start): Move implementation to ...
11574 (nds32_asm_file_end): Move implementation to ...
11575 * config/nds32/nds32-isr.c: ... here.
11576 * config/nds32/nds32-protos.h
11577 (nds32_check_isr_attrs_conflict): Declare.
11578 (nds32_construct_isr_vectors_information): Declare.
11579 (nds32_asm_file_start_for_isr): Declare.
11580 (nds32_asm_file_end_for_isr): Declare.
11582 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11583 Kito Cheng <kito@0xlab.org>
11584 Monk Chiang <sh.chiang04@gmail.com>
11586 * config.gcc (nds32*): Add new modules to extra_objs.
11587 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
11588 (nds32be-*-*): Likewise.
11589 * config/nds32/nds32-cost.c: New file.
11590 * config/nds32/nds32-fp-as-gp.c: New file.
11591 * config/nds32/nds32-intrinsic.c: New file.
11592 * config/nds32/nds32-isr.c: New file.
11593 * config/nds32/nds32-md-auxiliary.c: New file.
11594 * config/nds32/nds32-memory-manipulation.c: New file.
11595 * config/nds32/nds32-pipelines-auxiliary.c: New file.
11596 * config/nds32/nds32-predicates.c: New file.
11597 * config/nds32/t-nds32: New file.
11599 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11601 PR tree-optimization/61682
11602 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
11603 using cases and when one of the operands is equal to 1.
11605 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
11607 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
11608 ashr<mode>3): Correct mode of operands[2].
11609 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
11610 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
11611 Correct mode of operands[2]. Fix split condition.
11613 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
11615 * arm.md (arch): Add armv6_or_vfpv3.
11616 (arch_enabled): Add test for the above.
11617 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
11619 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
11621 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11623 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
11624 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
11625 HWI 1 and negate the unsigned value.
11626 * expmed.c (expand_sdiv_pow2): For modes wider than word always
11627 use AND instead of shift.
11628 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
11630 2014-07-03 Marek Polacek <polacek@redhat.com>
11632 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
11633 (-fsanitize=float-divide-by-zero): Move to the table with
11634 -fsanitize=undefined suboptions.
11635 (-fsanitize=float-cast-overflow): Likewise.
11637 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
11639 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
11640 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
11643 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11645 * loop-invariant.c (struct invariant): Add a new member: eqno;
11646 (find_identical_invariants): Update eqno;
11647 (create_new_invariant): Init eqno;
11648 (get_inv_cost): Compute comp_cost with eqno;
11650 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11652 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
11653 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
11654 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
11655 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
11656 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
11658 2014-07-02 Christian Bruel <christian.bruel@st.com>
11662 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
11663 (make_preds_opaque): Delete.
11664 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
11665 (commit_mode_sets): New function.
11666 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
11667 Process all modes at once.
11668 * basic-block.h (pre_edge_lcm_avs): Declare.
11669 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
11670 Call clear_aux_for_edges. Fix comments.
11671 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
11672 (pre_edge_rev_lcm): Idem.
11673 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
11675 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
11676 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11678 * config/i386/i386.c (x96_emit_mode_set): Idem.
11679 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
11680 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
11681 (fpscr_toggle) Disallow from delay slot.
11682 * target.def (emit_mode_set): Add prev_mode parameter.
11683 * doc/tm.texi: Regenerate.
11685 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11687 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
11690 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11692 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
11693 vtable_pointer_value_to_vtable): Constify.
11694 (contains_polymorphic_type_p): Declare.
11695 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
11696 vtable_pointer_value_to_vtable): Constify.
11697 (contains_polymorphic_type_p): New predicate.
11698 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
11700 (ipa_set_ancestor_jf): Likewise.
11701 (detect_type_change): Return false in easy cases.
11702 (compute_complex_assign_jump_func): Require type to contain
11704 (compute_known_type_jump_func): Likewise.
11706 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11708 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
11710 (type_in_anonymous_namespace_p): Constify argument.
11711 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
11712 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
11713 (main_odr_variant): New function.
11714 (hash_type_name): Make static; update assert; do not ICE on
11716 (types_same_for_odr): Bring here from tree.c; simplify and remove
11717 old structural comparing code that doesn't work for templates.
11718 (odr_hasher::equal): Update assert.
11719 (add_type_duplicate): Return true when bases should be computed;
11720 replace incomplete loader by complete; do not output duplicated
11721 warnings; do not ICE on non-records; set odr_violated flag.
11722 (get_odr_type): Be ready to replace incomplete type by complete
11723 one; work on ODR variants instead of main variants; reorder item
11724 in array so bases have still smaller indexes.
11725 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
11726 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
11728 2014-07-01 Cary Coutant <ccoutant@google.com>
11730 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
11732 (resolve_addr_in_expr): When replacing the rtx in a location list
11733 entry, get a new address table entry.
11734 (dwarf2out_finish): Call index_location_lists even if there are no
11735 addr_index_table entries yet.
11737 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11739 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
11740 change for not being obvious.
11742 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11744 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
11747 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11749 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
11750 (vcagt_f64): Likewise.
11751 (vcale_f64): Likewise.
11752 (vcaled_f64): Likewise.
11753 (vcales_f32): Likewise.
11754 (vcalt_f64): Likewise.
11755 (vcaltd_f64): Likewise.
11756 (vcalts_f32): Likewise.
11758 2014-07-01 Marek Polacek <polacek@redhat.com>
11760 * doc/invoke.texi: Document -Wint-conversion.
11762 2014-07-01 Marek Polacek <polacek@redhat.com>
11765 * doc/invoke.texi: Document -Wincompatible-pointer-types.
11767 2014-07-01 Martin Liska <mliska@suse.cz>
11769 IPA REF alias refactoring
11770 * cgraph.h (iterate_direct_aliases): New function.
11771 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
11772 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
11773 FOR_EACH_ALIAS added.
11774 (cgraph_for_node_and_aliases): Likewise.
11775 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
11776 * ipa-inline.c (reset_edge_caches): Likewise.
11777 (update_caller_keys): Likewise.
11778 * trans-mem.c (ipa_tm_execute): Likewise.
11779 *varpool.c (varpool_analyze_node): Likewise.
11780 (varpool_for_node_and_aliases): Likewise.
11781 * ipa-ref.h (first_alias): New function.
11782 (last_alias): Likewise.
11783 (has_aliases_p): Likewise.
11784 * ipa-ref.c (ipa_ref::remove_reference): Removal function
11785 is sensitive to IPA_REF_ALIASes.
11786 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
11787 are put at the beginning of the list.
11788 (symtab_node::iterate_direct_aliases): New function.
11790 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11793 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11795 (write_ts_type_common_tree_pointers): Do not stream fields not set
11796 for incomplete types; do not stream duplicated fields for variants;
11797 sanity check that variant and type match.
11798 (write_ts_type_non_common_tree_pointers): Likewise.
11799 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11800 TYPE_SIZE whether type is complete.
11801 (lto_input_ts_type_common_tree_pointers): Do same changes as in
11802 write_ts_type_common_tree_pointers
11803 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11805 2014-06-30 Joseph Myers <joseph@codesourcery.com>
11807 * var-tracking.c (add_stores): Return instead of asserting if old
11808 and new values for conditional store are the same.
11810 2014-06-30 Richard Henderson <rth@redhat.com>
11814 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
11815 the cfg if there were any changes.
11816 * passes.def: Revert move of peephole2 after reorder_blocks;
11817 move duplicate_computed_gotos before peephole2.
11819 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
11821 * except.c (emit_note_eh_region_end): New helper function.
11822 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
11823 emit EH_REGION_END note.
11824 * jump.c (cleanup_barriers): Do not split a call and its
11825 corresponding CALL_ARG_LOCATION note.
11827 2014-06-30 Jeff Law <law@redhat.com>
11829 PR tree-optimization/61607
11830 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
11831 deeper into the SSA_NAME_VALUE chain.
11833 2014-06-30 Marek Polacek <polacek@redhat.com>
11835 * convert.c (convert_to_integer): Don't instrument conversions if the
11836 function has no_sanitize_undefined attribute.
11837 * ubsan.c: Don't run the ubsan pass if the function has
11838 no_sanitize_undefined attribute.
11840 2014-06-30 Jakub Jelinek <jakub@redhat.com>
11842 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
11843 -fsanitize=undefined suboptions.
11845 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
11847 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
11848 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
11849 against bigendian and adjust indices.
11851 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
11853 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
11855 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
11858 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
11859 Add alternative; make early clobber. Adjust both split patterns
11860 to use operand 0 as the working register.
11862 2014-06-30 Jakub Jelinek <jakub@redhat.com>
11864 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
11865 as ira_object_id_map might be NULL, or 1.
11867 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11869 * loop-invariant.c (get_inv_cost): Handle register class.
11870 (gain_for_invariant): Check the register pressure of the inv
11871 and its overlapped register class, other than all.
11873 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
11875 * doc/invoke.texi (Optimize Options): Fix descriptions of
11876 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
11878 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
11880 * doc/extend.texi (Function Attributes): Update 'naked' attribute
11883 2014-06-29 Tobias Grosser <tobias@grosser.es>
11886 * graphite-isl-ast-to-gimple.c: Add missing guards.
11888 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11890 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
11891 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
11892 * flag-types.h: Add new enum fgraphite_generator.
11893 * graphite-isl-ast-to-gimple.c: New.
11894 * graphite-isl-ast-to-gimple.h: New.
11895 * graphite.c (graphite_transform_loops): Add choice of Graphite
11896 code generator, which depends on flag_graphite_code_gen.
11898 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11900 * graphite-dependences.c (subtract_commutative_associative_deps):
11901 Add NULL checking of the following variables: must_raw_no_source,
11902 may_raw_no_source, must_war_no_source, may_war_no_source,
11903 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
11904 must_war, may_war, must_waw, may_waw.
11906 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11908 * graphite-clast-to-gimple.c: gloog is renamed to
11909 graphite_regenerate_ast_cloog. gloog_error is renamed to
11910 graphite_regenerate_error.
11911 * graphite-clast-to-gimple.h: The definition of the struct
11912 bb_pbb_def is moved to graphite-htab.h.
11913 Add inclusion of the hash-table.h.
11914 * graphite-htab.h: The declaration of the function gloog is moved
11915 to graphite-clast-to-gimple.h and renamed to
11916 graphite_regenerate_ast_cloog.
11917 * graphite.c (graphite_transform_loops): gloog is renamed
11918 to graphite_regenerate_ast_cloog.
11920 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11922 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11924 (write_ts_type_common_tree_pointers): Do not stream fields not set
11925 for incomplete types; do not stream duplicated fields for variants;
11926 sanity check that variant and type match.
11927 (write_ts_type_non_common_tree_pointers): Likewise.
11928 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11929 TYPE_SIZE whether type is complete.
11930 (lto_input_ts_type_common_tree_pointers): Do same changes as in
11931 write_ts_type_common_tree_pointers
11932 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11934 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11936 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
11938 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11940 * tree-inline.c (remap_type_1): Do not duplicate fields
11941 that are shared in between type and its main variant.
11943 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11945 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
11947 (ipa_set_ancestor_jf) Likewise.
11948 (check_stmt_for_type_change): Check that we work on main variant.
11949 (detect_type_change): Look into main variant.
11950 (compute_known_type_jump_func): Check that main variant has BINFO.
11952 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11954 * ipa-devirt.c (set_type_binfo): New function.
11955 (add_type_duplicate): Use it.
11956 (get_odr_type): Sanity check that binfos points to main variants.
11957 (get_class_context): Be sure the context's outer_type is main variant.
11958 (contains_type_p): Walk main variant.
11959 (get_polymorphic_call_info_for_decl): Set outer_type to be
11961 (get_polymorphic_call_info): Likewise.
11962 (possible_polymorphic_call_targets): Sanity check that we operate
11965 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11967 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11969 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11971 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
11972 accidental change due to wide-int branch merge.
11974 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11976 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
11977 compressed debug support.
11978 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
11979 * configure: Regenerate.
11980 * config.in: Regenerate.
11981 * common.opt (compressed_debug_sections): New enum.
11982 (gz, gz=): New options.
11983 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
11984 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
11985 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
11986 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
11987 LINK_COMPRESS_DEBUG_SPEC.
11988 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
11989 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
11990 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
11991 (Debugging Options): Document -gz[=type].
11993 2014-06-27 Martin Jambor <mjambor@suse.cz>
11996 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
11997 args_to_skip, use those from node instead. Copy args_to_skip and
11998 combined_args_to_skip from node to the new thunk.
11999 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12000 (cgraph_create_virtual_clone): Moved computation of
12001 combined_args_to_skip...
12002 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12004 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
12006 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12007 redundant diagnostic machinary.
12009 2014-06-27 Richard Biener <rguenther@suse.de>
12011 * tree-ssa-math-opts.c (bswap_replace): Fix
12012 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12014 2014-06-27 Martin Liska <mliska@suse.cz>
12016 * gimple.h (gimple_location_safe): New function introduced.
12017 * cgraphunit.c (walk_polymorphic_call_targets): Usage
12018 of gimple_location_safe replaces gimple_location.
12019 (gimple_fold_call): Likewise.
12020 * ipa-devirt.c (ipa_devirt): Likewise.
12021 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12022 * ipa.c (walk_polymorphic_call_targets): Likewise.
12023 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12025 2014-06-27 Jakub Jelinek <jakub@redhat.com>
12027 PR tree-optimization/57233
12028 PR tree-optimization/61299
12029 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12031 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
12032 would be lowered to scalar shifts, check if corresponding
12033 shifts and vector BIT_IOR_EXPR are supported and don't lower
12034 or lower just to narrower vector type in that case.
12035 * expmed.c (expand_shift_1): Fix up handling of vector
12036 shifts and rotates.
12038 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
12041 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12043 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
12045 * doc/invoke.texi (-fsemantic-interposition): Document.
12046 * common.opt (fsemantic-interposition): New flag.
12047 * varasm.c (decl_replaceable_p): Use it.
12049 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12052 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12053 extraction other than index 3.
12055 2014-06-26 Teresa Johnson <tejohnson@google.com>
12057 * doc/invoke.texi: Fix typo.
12058 * dumpfile.c: Add support for documented -fdump-* options
12059 optimized/missed/note/optall.
12061 2014-06-26 Martin Jambor <mjambor@suse.cz>
12063 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12064 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12065 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12066 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12067 * opts.c (default_options_optimization): Set
12068 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12069 * doc/invoke.texi (allow-load-data-races)
12070 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12071 (allow-store-data-races): Document the new default.
12073 2014-06-26 Martin Jambor <mjambor@suse.cz>
12075 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12076 renamed to ipa_impossible_devirt_target. Fix typo.
12077 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12078 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12079 ipa_impossible_devirt_target.
12081 2014-06-26 Richard Biener <rguenther@suse.de>
12083 PR tree-optimization/61607
12084 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12085 explaining why we restrict copies on loop depth.
12086 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12088 (record_equivalences_from_phis): Instead add it here.
12090 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
12092 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12093 (LTO_WRAPPER_OBJS): New variable.
12094 (lto-wrapper$(exeext)): Use it.
12095 * collect2.c: Include "collect-utils.h".
12096 (verbose, debug): Remove variables.
12097 (at_file_supplied): No longer static.
12098 (tool_name): New variable.
12099 (do_wait, fork_execute, maybe_unlink): Don't declare.
12100 (tool_cleanup): No longer static.
12101 (notice): Remove function.
12102 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12103 fork_execute calls.
12104 (collect_wait, do_wait, collect_execute): Remove functions.
12105 (maybe_unlink): No longer static.
12106 * collect2.h (verbose, debug): Don't declare.
12107 (at_file_supplied): Declare.
12108 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
12110 (collect_execute): Replace with implementation from collect2, plus a
12111 new arg use_atfile. All callers changed.
12112 (collect_wait): Replace with implementation from collect2.
12113 (maybe_unlink_file): Remove function.
12114 (fork_execute): Replace with implementation from collect2, plus a
12115 new arg use_atfile. All callers changed.
12116 (do_wait): Add call to utils_cleanup to the error path.
12117 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12118 (tool_cleanup): Adjust declarations.
12119 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12120 * tlink.c: Include "collect-utils.h".
12121 (tlink_execute): New arg use_atfile. All callers changed.
12122 (tlink_init, tlink_execute): Remove declarations.
12124 * collect-utils.c (save_temps): New variable.
12125 (do_wait): Use it instead of debug. Use fatal_error.
12126 * collect-utils.h (save_temps): Declare.
12127 * collect2.c (verbose): Rename from vflag. All uses changed.
12128 (tool_cleanup): New function, copied from collect_atexit.
12129 (collect_atexit, handler): Just call it.
12130 * collect2.h (verbose): Declaration renamed from vflag.
12131 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12134 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12135 (lto-wrapper$(exeext)): Link with collect-utils.o.
12136 * collect-utils.c: New file.
12137 * collect-utils.h: New file.
12138 * lto-wrapper.c: Include "collect-utils.h".
12139 (args_name): Delete variable.
12140 (tool_name): New variable.
12141 (tool_cleanup): New function.
12142 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
12143 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12144 (fork_execute): Remove functions.
12146 2014-06-26 Nick Clifton <nickc@redhat.com>
12148 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12150 * doc/extend.texi (Function Attributes): Fix typo in description
12151 of RX vector attribute.
12153 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
12155 * config.gcc (supported_defaults): Error when passing either
12156 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12158 2014-06-26 Richard Biener <rguenther@suse.de>
12160 * tree-ssa-dom.c (cprop_operand): Remove restriction on
12161 propagating volatile pointers.
12163 2014-06-26 Richard Biener <rguenther@suse.de>
12165 PR tree-optimization/61607
12166 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12167 loop if we redirected its latch edge.
12168 (thread_block_1): Do not cancel loops prematurely.
12170 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
12172 * toplev.c (backend_init_target): Move init_emit_regs and
12174 (backend_init) ... here; skip ira_init_once and backend_init_target.
12175 (target_reinit) ... and here; clear
12176 this_target_rtl->lang_dependent_initialized.
12177 (lang_dependent_init_target): Clear
12178 this_target_rtl->lang_dependent_initialized;
12179 break out rtl initialization to ...
12180 (initialize_rtl): ... here; call also backend_init_target
12182 * toplev.h (initialize_rtl): New function.
12183 * function.c: Include toplev.h
12184 (init_function_start): Call initialize_rtl.
12185 * rtl.h (target_rtl): Add target_specific_initialized,
12186 lang_dependent_initialized.
12188 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
12189 Jakub Jelinek <jakub@redhat.com>
12191 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12193 2014-06-25 Tom de Vries <tom@codesourcery.com>
12195 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12197 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12199 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12200 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12201 Issue a strict overflow warning if appropriate.
12203 2014-06-25 Martin Liska <mliska@suse.cz>
12205 IPA REF refactoring
12206 * Makefile.in: Removed header file (ipa-ref-inline.h).
12207 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12209 (cgraph_speculative_call_info): Likewise.
12210 (cgraph_for_node_thunks_and_aliases): Likewise.
12211 (cgraph_for_node_and_aliases): Likewise.
12212 (verify_cgraph_node): Likewise.
12213 * cgraph.h: Batch of IPA REF functions become member functions of
12214 symtab_node: add_reference, maybe_add_reference, clone_references,
12215 clone_referring, clone_reference, find_reference,
12216 remove_stmt_references, remove_all_references,
12217 remove_all_referring, dump_references, dump_referring,
12218 has_alias_p, iterate_reference, iterate_referring.
12219 * cgraphbuild.c (record_reference): New IPA REF function used.
12220 (record_type_list): Likewise.
12221 (record_eh_tables): Likewise.
12222 (mark_address): Likewise.
12223 (mark_load): Likewise.
12224 (mark_store): Likewise.
12225 (pass_build_cgraph_edges): Likewise.
12226 (rebuild_cgraph_edge): Likewise.
12227 (cgraph_rebuild_references): Likewise.
12228 (pass_remove_cgraph_callee_edges): Likewise.
12229 * cgraphclones.c (cgraph_clone_node): Likewise.
12230 (cgraph_create_virtual_clone): Likewise.
12231 (cgraph_materialize_clone): Likewise.
12232 (cgraph_materialize_all_clones): Likewise.
12233 * cgraphunit.c (cgraph_reset_node): Likewise.
12234 (cgraph_reset_node): Likewise.
12235 (analyze_function): Likewise.
12236 (assemble_thunks_and_aliases): Likewise.
12237 (expand_function): Likewise.
12238 * ipa-comdats.c (propagate_comdat_group): Likewise.
12239 (enqueue_references): Likewise.
12240 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12241 (create_specialized_node): Likewise.
12242 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12243 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12244 * ipa-inline.c (reset_edge_caches): Likewise.
12245 (update_caller_keys): Likewise.
12246 (execute): Likewise.
12247 * ipa-prop.c (remove_described_reference): Likewise.
12248 (propagate_controlled_uses): Likewise.
12249 (ipa_edge_duplication_hook): Likewise.
12250 (ipa_modify_call_arguments): Likewise.
12251 * ipa-pure-const.c (propagate_pure_const): Likewise.
12252 * ipa-ref-inline.h: Header file removed, functions moved
12253 to symtab_node class.
12254 * ipa-ref.c (remove_reference): New class member function.
12255 (cannot_lead_to_return): New class member function.
12256 (referring_ref_list): Likewise.
12257 (referred_ref_list): Likewise.
12258 Rest of functions moved to symtab_node class.
12259 * ipa-ref.h: New member functions remove_reference,
12260 cannot_lead_to_return, referring_ref_list, referred_ref_list added
12262 ipa_ref_list class has new member functions: first_reference,
12263 first_referring, clear, nreferences.
12264 * ipa-reference.c (analyze_function): New IPA REF function used.
12265 (write_node_summary_p): Likewise.
12266 (ipa_reference_write_optimization_summary): Likewise.
12267 * ipa-split.c (split_function): Likewise.
12268 * ipa-utils.c (ipa_reverse_postorder): Likewise.
12269 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12270 (function_and_variable_visibility): Likewise.
12271 * ipa.c (has_addr_references_p): Likewise.
12272 (process_references): Argument type changed.
12273 (symtab_remove_unreachable_nodes): New IPA REF function used.
12274 (process_references): Likewise.
12275 (set_writeonly_bit): Likewise.
12276 * lto-cgraph.c: Implementation of new symtab_node member functions
12277 that uses new IPA REF functions.
12278 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12280 * lto-streamer-out.c (output_symbol_p): Likewise.
12281 * lto-streamer.h (referenced_from_this_partition_p): Argument type
12283 * symtab.c: Implementation of new IPA REF API.
12284 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12285 (ipa_tm_create_version): Likewise.
12286 (ipa_tm_execute): Likewise.
12287 * tree-emutls.c (gen_emutls_addr): Likewise.
12288 * tree-inline.c (copy_bb): Likewise.
12289 (delete_unreachable_blocks_update_callgraph): Likewise.
12290 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12291 (varpool_for_node_and_aliases): Likewise.
12293 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12295 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12297 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12300 * fold-const.c (fold_checksum_tree): Use a hash_table of const
12301 tree_node * instead of tree_node *.
12303 (print_fold_checksum): Likewise.
12304 (fold_check_failed): Likewise.
12305 (debug_fold_checksum): Likewise.
12306 (fold_build1_stat_loc): Likewise.
12307 (fold_build2_stat_loc): Likewise.
12308 (fold_build3_stat_loc): Likewise.
12309 (fold_build_call_array_loc): Likewise.
12311 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
12313 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12314 implementation with call to...
12315 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12317 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12320 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
12322 PR tree-optimization/57742
12323 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12324 after replacing the statement.
12326 2014-06-25 Nick Clifton <nickc@redhat.com>
12328 * config/v850/v850.c (GHS_default_section_names): Change to const
12330 (GHS_current_section_names): Likewise.
12331 (v850_insert_attributes): Do not build strings, just assign the
12332 names directly. Change the type of 'chosen_section' to const
12334 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12335 directly to the array entry.
12336 * config/v850/v850.h (GHS_default_section_names): Change to const
12338 (GHS_current_section_names): Likewise.
12340 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12342 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12343 (LANG_HOOKS_DECLS): Add it.
12344 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12346 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12347 * langhooks.h (struct lang_hooks_for_decls): Add
12348 omp_clause_linear_ctor hook.
12349 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12350 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
12351 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
12352 combined simd loop use omp_clause_linear_ctor hook.
12354 2014-06-24 Cong Hou <congh@google.com>
12356 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12357 pattern recognition.
12358 (type_conversion_p): PROMOTION is true if it's a type promotion
12359 conversion, and false otherwise. Return true if the given expression
12360 is a type conversion one.
12361 * tree-vectorizer.h: Adjust the number of patterns.
12362 * tree.def: Add SAD_EXPR.
12363 * optabs.def: Add sad_optab.
12364 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12365 * expr.c (expand_expr_real_2): Likewise.
12366 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12367 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12368 * optabs.c (optab_for_tree_code): Likewise.
12369 * tree-cfg.c (estimate_operator_cost): Likewise.
12370 * tree-ssa-operands.c (get_expr_operands): Likewise.
12371 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12372 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12373 * doc/generic.texi: Add document for SAD_EXPR.
12374 * doc/md.texi: Add document for ssad and usad.
12376 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12378 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12379 qualification in cast.
12381 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
12383 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12384 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12385 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12386 (tree_function_decl): ... here.
12387 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12388 streaming of vindex to ...
12389 (write_ts_function_decl_tree_pointers): ... here.
12390 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12391 Do not stream DECL_VINDEX.
12392 (lto_input_ts_function_decl_tree_pointers): Stream it here.
12394 2014-06-24 Catherine Moore <clm@codesourcery.com>
12395 Sandra Loosemore <sandra@codesourcery.com>
12397 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12398 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12399 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12401 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12403 * doc/invoke.texi (Warning Options): Remove duplicated
12404 -Wmaybe-uninitialized.
12406 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12408 PR tree-optimization/57742
12409 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12410 (handle_builtin_malloc, handle_builtin_memset): New functions.
12411 (strlen_optimize_stmt): Call them.
12412 * passes.def: Move strlen after loop+dom but before vrp.
12414 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12417 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12418 model family 6 CPU with has_longmode never use a CPU without
12421 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
12424 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12427 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12429 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12430 * dominance.c (iterate_fix_dominators): Use hash_map instead of
12432 * hash-map.h: New file.
12433 * ipa-comdats.c: Use hash_map instead of pointer_map.
12435 * lto-section-out.c: Adjust.
12436 * lto-streamer.h: Replace pointer_map with hash_map.
12437 * symtab.c (verify_symtab): Likewise.
12438 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12439 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12440 * tree-streamer.h: Likewise.
12441 * tree-streamer.c: Adjust.
12442 * pointer-set.h: Remove pointer_map.
12444 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12446 * hash-table.h: Add a template arg to choose between storing values
12447 and storing pointers to values, and then provide partial
12448 specializations for both.
12449 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12450 should store, not the type values should point to.
12451 * tree-into-ssa.c (var_info_hasher): Likewise.
12452 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12453 * tree-complex.c: Adjust.
12454 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12455 table instead of int_tree_map *.
12456 * tree-parloops.c: Adjust.
12457 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12458 type is being stored.
12459 * tree-vectorizer.c: Adjust.
12461 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12463 * hash-table.h: Remove a layer of indirection from hash_table so that
12464 it contains the hash table's data instead of a pointer to the data.
12465 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12466 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12467 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12468 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12469 fold-const.c, gcse.c, ggc-common.c,
12470 gimple-ssa-strength-reduction.c, gimplify.c,
12471 graphite-clast-to-gimple.c, graphite-dependences.c,
12472 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12473 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12474 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12475 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12476 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12477 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12478 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12479 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12480 tree-ssa-live.c, tree-ssa-loop-im.c,
12481 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12482 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12483 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12484 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12485 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12486 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12487 vtable-verify.c, vtable-verify.h: Adjust.
12489 2014-06-24 Richard Biener <rguenther@suse.de>
12491 PR tree-optimization/61572
12492 * tree-ssa-sink.c (statement_sink_location): Do not sink
12493 loads from hard registers.
12495 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12497 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12498 not mentioned in clauses use private clause if the iterator is
12499 declared in #pragma omp for simd, and when adding lastprivate
12500 instead, add it to the outer #pragma omp for too. Diagnose
12501 if the variable is private in outer context. For simd collapse > 1
12502 loops, replace all iterators with temporaries.
12503 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12504 same even in collapse > 1 loops.
12506 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12507 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12509 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12510 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12512 (gimplify_adjust_omp_clauses): Likewise.
12513 * omp-low.c (lower_rec_simd_input_clauses,
12514 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12515 safelen the same as safelen(1).
12516 * tree-nested.c (convert_nonlocal_omp_clauses,
12517 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
12518 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
12519 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
12520 Fixup handling of GIMPLE_OMP_TARGET.
12521 (convert_tramp_reference_stmt, convert_gimple_call): Handle
12524 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
12526 PR tree-optimization/61554
12527 * tree-ssa-propagate.c: Include "bitmap.h".
12528 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
12529 properly update constructor/destructor.
12530 (substitute_and_fold_dom_walker::before_dom_children):
12531 Remove call to gimple_purge_dead_eh_edges, add bb->index to
12532 need_eh_cleaup instead.
12533 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
12536 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12538 * varpool.c (dump_varpool_node): Dump used_by_single_function.
12539 * tree-pass.h (make_pass_ipa_single_use): New pass.
12540 * cgraph.h (used_by_single_function): New flag.
12541 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
12543 * passes.def (pass_ipa_single_use): Scedule.
12544 * ipa.c (BOTTOM): New macro.
12545 (meet): New function
12546 (propagate_single_user): New function.
12547 (ipa_single_use): New function.
12548 (pass_data_ipa_single_use): New pass.
12549 (pass_ipa_single_use): New pass.
12550 (pass_ipa_single_use::gate): New gate.
12551 (make_pass_ipa_single_use): New function.
12553 2014-06-23 Kai Tietz <ktietz@redhat.com>
12556 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
12557 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
12559 2014-06-23 Richard Biener <rguenther@suse.de>
12561 * tree-ssa-loop.c (gate_loop): New function.
12562 (pass_tree_loop::gate): Call it.
12563 (pass_data_tree_no_loop, pass_tree_no_loop,
12564 make_pass_tree_no_loop): New.
12565 * tree-vectorizer.c: Include tree-scalar-evolution.c
12566 (pass_slp_vectorize::execute): Initialize loops and SCEV if
12568 (pass_slp_vectorize::clone): New method.
12569 * timevar.def (TV_TREE_NOLOOP): New.
12570 * tree-pass.h (make_pass_tree_no_loop): Declare.
12571 * passes.def (pass_tree_no_loop): New pass group with
12574 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
12577 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
12578 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
12580 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12582 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
12583 "yes" where needed.
12585 2014-06-23 Alan Modra <amodra@gmail.com>
12588 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
12589 to zero on debug statements.
12591 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12594 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
12595 Ignore third operand if present by marking qualifier_internal.
12597 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
12599 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
12601 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
12602 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
12603 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
12604 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
12605 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
12606 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
12607 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
12608 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
12609 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
12610 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
12611 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
12612 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
12613 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
12614 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
12615 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
12616 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
12617 logic in GCC vector extensions
12619 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
12620 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
12621 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
12622 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
12623 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
12624 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
12625 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
12626 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
12627 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
12628 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
12630 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
12632 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
12635 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
12636 (vget_low_s64): Use __GET_LOW macro.
12637 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
12638 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
12639 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
12640 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
12641 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
12643 (vcombine_s64): Use GCC vector extensions; remove cast.
12644 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
12645 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
12646 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
12647 Fix type signature; remove cast.
12649 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12652 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
12654 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
12656 (BUILTIN_VD1): New.
12657 (BUILTIN_VD_RE): Remove.
12658 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
12659 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
12660 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
12661 variant but not df.
12662 (vreinterpretv1df*, vreinterpret*v1df): New.
12663 (vreinterpretdf*, vreinterpret*df): Remove.
12664 * config/aarch64/aarch64-simd.md (aarch64_create,
12665 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
12666 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
12668 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
12669 (vcreate_f64): Remove cast, use v1df builtin.
12670 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
12671 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
12672 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
12673 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
12674 vmov_n_f64, vst1_f64): Use gcc vector extensions.
12675 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
12676 add range check using __builtin_aarch64_im_lane_boundsi.
12677 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
12678 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
12679 type signature, use gcc vector extensions.
12680 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
12681 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
12682 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
12683 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
12684 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
12685 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
12686 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
12687 vreinterpret_u64_f64): Use v1df builtin not df.
12689 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12691 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
12694 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12696 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
12699 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12701 * loop-invariant.c (pre_check_invariant_p): New function.
12702 (find_invariant_insn): Call pre_check_invariant_p.
12704 2014-06-22 Richard Henderson <rth@redhat.com>
12707 * compare-elim.c (struct comparison): Add eh_note.
12708 (find_comparison_dom_walker::before_dom_children): Don't eliminate
12709 a redundant comparison in a different EH region. Purge EH edges if
12712 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12714 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
12715 (var_shift): Use it.
12716 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
12717 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12718 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12719 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12720 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12721 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
12722 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
12723 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
12724 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
12725 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
12726 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
12727 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
12728 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
12729 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
12730 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
12731 *rotldi3_internal15be): Use the new attribute. Merge register and
12732 integer alternatives.
12734 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12736 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
12737 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
12738 split, *ashrdi3_internal3 and split): Delete, merge into...
12739 (ashr<mode>3): New expander.
12740 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
12741 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
12743 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12745 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
12746 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
12747 *rotldi3_internal3 and split): Delete, merge into...
12748 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
12749 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
12750 Use "rotlw" extended mnemonic.
12752 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12754 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
12755 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
12756 and split, *ashldi3_internal3 and split): Delete, merge into...
12757 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
12758 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
12760 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12762 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
12763 (lshrsi3, two anonymous define_insns and define_splits,
12764 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
12765 *lshrdi3_internal3 and split): Delete, merge into...
12766 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
12767 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
12769 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12771 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
12772 Remove "O" alternative.
12774 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
12776 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
12777 (mips_move_from_gpr_cost): Likewise.
12778 (mips_register_move_cost): Update accordingly.
12779 (mips_secondary_reload_class): Remove name of in_p.
12781 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
12784 * config/i386/i386.md (x86_64_shrd, x86_shrd,
12785 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
12787 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12789 * config/nios2/nios2.c: Include "builtins.h".
12791 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12793 * cgraph.h (tls_model_names): New variable.
12794 * print-tree.c (print_node): Simplify.
12795 * varpool.c (tls_model_names): New variable.
12796 (dump_varpool_node): Output tls model.
12798 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12800 * ipa-visibility.c (function_and_variable_visibility): Disable
12801 temporarily local aliases for some targets.
12803 2014-06-20 Marek Polacek <polacek@redhat.com>
12805 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
12806 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
12807 into SANITIZE_UNDEFINED.
12808 * doc/invoke.texi: Describe -fsanitize=bounds.
12809 * gimplify.c (gimplify_call_expr): Add gimplification of internal
12810 functions created in the FEs.
12811 * internal-fn.c: Move "internal-fn.h" after "tree.h".
12812 (expand_UBSAN_BOUNDS): New function.
12813 * internal-fn.def (UBSAN_BOUNDS): New internal function.
12814 * internal-fn.h: Don't define internal functions here.
12815 * opts.c (common_handle_option): Add -fsanitize=bounds.
12816 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
12817 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
12818 * tree-core.h: Define internal functions here.
12819 (struct tree_base): Add ifn field.
12820 * tree-pretty-print.c: Include "internal-fn.h".
12821 (dump_generic_node): Handle functions without CALL_EXPR_FN.
12822 * tree.c (get_callee_fndecl): Likewise.
12823 (build_call_expr_internal_loc): New function.
12824 * tree.def (CALL_EXPR): Update description.
12825 * tree.h (CALL_EXPR_IFN): Define.
12826 (build_call_expr_internal_loc): Declare.
12827 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
12829 (ubsan_type_descriptor): Change bool parameter to enum
12830 ubsan_print_style. Adjust the code. Add handling of
12832 (ubsan_expand_bounds_ifn): New function.
12833 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
12834 (ubsan_build_overflow_builtin): Likewise.
12835 (instrument_bool_enum_load): Likewise.
12836 (ubsan_instrument_float_cast): Likewise.
12837 * ubsan.h (enum ubsan_print_style): New enum.
12838 (ubsan_expand_bounds_ifn): Declare.
12839 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
12841 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
12843 * config/rs6000/rs6000.md: Append `DONE' to preparation
12844 statements of `bswap' pattern splitters.
12846 2014-06-20 Tom de Vries <tom@codesourcery.com>
12848 * target.def (call_fusage_contains_non_callee_clobbers): Update
12850 * doc/tm.texi: Regenerate.
12852 2014-06-20 Yury Gribov <y.gribov@samsung.com>
12853 Max Ostapenko <m.ostapenko@partner.samsung.com>
12856 * asan.c (instrument_strlen_call): Fixed instrumentation of
12859 2014-06-20 Martin Jambor <mjambor@suse.cz>
12862 * ipa-prop.c (impossible_devirt_target): New function.
12863 (try_make_edge_direct_virtual_call): Use it, also instead of
12866 2014-06-20 Yury Gribov <y.gribov@samsung.com>
12867 Max Ostapenko <m.ostapenko@partner.samsung.com>
12870 * asan.c (build_check_stmt): Add condition.
12872 2014-06-20 Martin Jambor <mjambor@suse.cz>
12875 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
12878 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12880 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
12882 (VCONQ): Make comment more helpful.
12884 * config/aarch64/aarch64-simd.md
12885 (aarch64_sqdmulh_lane<mode>):
12886 Use VCOND for operands 2. Update lane checking and flipping logic.
12887 (aarch64_sqrdmulh_lane<mode>): Likewise.
12888 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
12889 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
12890 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
12891 attribute of operand 3 to VCOND.
12892 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
12893 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12894 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
12895 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
12896 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12897 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
12899 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
12900 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
12901 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
12902 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
12903 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
12904 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
12905 operand to VCOND. Update lane flipping and bounds checking logic.
12906 (aarch64_sqdmlal2_lane<mode>): Likewise.
12907 (aarch64_sqdmlsl_lane<mode>): Likewise.
12908 (aarch64_sqdmull_lane<mode>): Likewise.
12909 (aarch64_sqdmull2_lane<mode>): Likewise.
12910 (aarch64_sqdmlal_laneq<mode>):
12911 Replace VCON usage with VCONQ.
12912 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
12913 (aarch64_sqdmlal2_laneq<mode>): Emit
12914 aarch64_sqdmlal2_laneq<mode>_internal insn.
12915 Replace VCON with VCONQ.
12916 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
12917 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12918 (aarch64_sqdmull_laneq<mode>): Emit
12919 aarch64_sqdmull_laneq<mode>_internal insn.
12920 Replace VCON with VCONQ.
12921 (aarch64_sqdmull2_laneq<mode>): Emit
12922 aarch64_sqdmull2_laneq<mode>_internal insn.
12923 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
12924 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
12925 of 3rd argument to int16x4_t.
12926 (vqdmlalh_lane_s16): Likewise.
12927 (vqdmlslh_lane_s16): Likewise.
12928 (vqdmull_high_lane_s16): Likewise.
12929 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
12930 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
12931 (vqdmlsl_lane_s16): Likewise.
12932 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
12933 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
12934 (vqdmlals_lane_s32): Likewise.
12935 (vqdmlsls_lane_s32): Likewise.
12936 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
12937 (vqdmulls_lane_s32): Likewise.
12938 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
12939 (vqdmlsl_lane_s32): Likewise.
12940 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
12941 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
12942 (vqrdmulhh_lane_s16): Likewise.
12943 (vqdmlsl_high_lane_s16): Likewise.
12944 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
12945 (vqdmlsl_high_lane_s32): Likewise.
12946 (vqrdmulhs_lane_s32): Likewise.
12948 2014-06-20 Tom de Vries <tom@codesourcery.com>
12950 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
12951 get_call_reg_set_usage.
12953 2014-06-20 Tom de Vries <tom@codesourcery.com>
12955 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
12956 it contains all call_used_regs.
12958 2014-06-20 Tom de Vries <tom@codesourcery.com>
12960 * final.c (collect_fn_hard_reg_usage): Add and use variable
12961 function_used_regs.
12963 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12965 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
12966 (set_init_priority, get_init_priority, set_fini_priority,
12967 get_fini_priority): New methods.
12968 * tree.c (init_priority_for_decl): Remove.
12969 (init_ttree): Do not initialize init priority.
12970 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
12971 (decl_priority_info): Remove.
12972 (decl_init_priority_insert): Rewrite.
12973 (decl_fini_priority_insert): Rewrite.
12974 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
12975 tree_priority_map_marked_p): Remove.
12976 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
12977 * lto-streamer-out.c (hash_tree): Do not hash priorities.
12978 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
12979 not output priorities.
12980 (pack_ts_function_decl_value_fields): Likewise.
12981 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12982 not input priorities.
12983 (unpack_ts_function_decl_value_fields): Likewise.
12984 * symtab.c (symbol_priority_map): Declare.
12985 (init_priority_hash): Declare.
12986 (symtab_unregister_node): Unregister from priority hash, too.
12987 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
12989 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
12990 (symbol_priority_info): New function.
12991 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
12993 * tree-core.h (tree_priority_map): Remove.
12995 2014-06-20 Jakub Jelinek <jakub@redhat.com>
12997 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
12998 0xff to uint64_t before shifting it up.
13000 2014-06-20 Julian Brown <julian@codesourcery.com>
13001 Chung-Lin Tang <cltang@codesourcery.com>
13003 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13004 TARGET_THUMB1_ONLY. Add comments.
13006 2014-06-19 Tom de Vries <tom@codesourcery.com>
13008 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13009 return type to void.
13010 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13012 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13014 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13015 as "move", from depends_on.
13017 2014-06-19 Terry Guo <terry.guo@arm.com>
13019 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13022 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
13024 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13026 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
13028 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
13031 * config/sh/sh.c (prepare_move_operands): Don't process TLS
13032 addresses here if reload in progress or completed.
13034 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13036 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13037 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13038 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13039 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13040 (mips_register_priority): New function that implements the target
13041 hook TARGET_REGISTER_PRIORITY.
13042 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13043 (mips_lra_p): Likewise for TARGET_LRA_P.
13044 (TARGET_REGISTER_PRIORITY): Define macro.
13045 (TARGET_SPILL_CLASS): Likewise.
13046 (TARGET_LRA_P): Likewise.
13047 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13049 (REG_CLASS_NAMES): Likewise.
13050 (REG_CLASS_CONTENTS): Likewise.
13051 (BASE_REG_CLASS): Use M16_SP_REGS.
13052 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13053 New set attribute to enable alternatives depending on the register
13055 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13056 (*lea64): Disable pattern for MIPS16.
13057 * config/mips/mips.opt (mlra): New option.
13059 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
13061 * lra-constraints.c (base_to_reg): New function.
13062 (process_address): Use new function.
13064 2014-06-18 Tom de Vries <tom@codesourcery.com>
13066 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13067 * config/aarch64/aarch64.c
13068 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13069 (aarch64_emit_call_insn): New function.
13070 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13072 * config/aarch64/aarch64.md (define_expand "call_internal")
13073 (define_expand "call_value_internal", define_expand "sibcall_internal")
13074 (define_expand "sibcall_value_internal"): New.
13075 (define_expand "call", define_expand "call_value")
13076 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13077 expand variant and aarch64_emit_call_insn.
13079 2014-06-18 Radovan Obradovic <robradovic@mips.com>
13080 Tom de Vries <tom@codesourcery.com>
13082 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13083 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13085 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
13086 clobbers to CALL_INSN_FUNCTION_USAGE.
13087 (define_expand "sibcall_internal")
13088 (define_expand "sibcall_value_internal"): New.
13089 (define_expand "call", define_expand "call_value"): Add argument to
13090 arm_emit_call_insn.
13091 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13092 (define_expand "sibcall_value"): Use sibcall_value_internal and
13093 arm_emit_call_insn.
13095 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13097 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13099 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13101 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13104 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13106 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13107 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13108 annotations. Fix DWARF information.
13110 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13112 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13113 __udivmoddi4, and fixups for negative operands.
13115 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13117 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13119 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13121 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13124 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13126 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13129 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13131 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13132 describing register usage on function entry and exit.
13134 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13136 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13137 (__aeabi_ldivmod): Fix whitespace.
13139 2014-06-18 Andreas Schwab <schwab@suse.de>
13141 * doc/md.texi (Standard Names): Use @itemx for grouped items.
13142 Remove blank line after @item.
13144 2014-06-18 Richard Henderson <rth@redhat.com>
13147 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13149 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
13151 * config/arm/arm.c (neon_vector_mem_operand): Allow register
13152 POST_MODIFY for neon loads and stores.
13153 (arm_print_operand): Output post-index register for neon loads and
13156 2014-06-18 Richard Biener <rguenther@suse.de>
13158 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13160 2014-06-18 Richard Biener <rguenther@suse.de>
13162 * tree-pass.h (make_pass_dce_loop): Remove.
13163 * passes.def: Replace pass_dce_loop with pass_dce.
13164 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13165 changed free niter estimates and reset the scev cache.
13166 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13167 make_pass_dce_loop): Remove.
13168 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13169 (fini_copy_prop): Return whether something changed. Always
13170 let substitute_and_fold perform DCE and free niter estimates
13171 and reset the scev cache if so.
13172 (execute_copy_prop): If sth changed schedule cleanup-cfg.
13173 (pass_data_copy_prop): Do not unconditionally schedule
13174 cleanup-cfg or update-ssa.
13176 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13178 PR tree-optimization/61518
13179 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13180 reduction var is used in reduction stmt or phi-function only.
13182 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13184 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13186 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
13188 PR tree-optimization/61517
13189 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13190 whose rhs's first tree is the source expression instead of the
13192 (find_bswap_or_nop): Likewise.
13193 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13194 gimple stmt whose rhs's first tree is the source. In the memory source
13195 case, move the stmt to be replaced close to one of the original load to
13196 avoid the problem of a store between the load and the stmt's original
13198 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13201 2014-06-18 Andreas Schwab <schwab@suse.de>
13203 PR rtl-optimization/54555
13204 * postreload.c (move2add_use_add2_insn): Substitute
13205 STRICT_LOW_PART only if it is cheaper.
13207 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
13209 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13210 Do not use unspec as call operand. Use memory_operand instead of
13211 memory_nox32_operand and add "m" operand constraint. Disable
13212 pattern for TARGET_X32.
13213 (*sibcall_pop_memory): Ditto.
13214 (*sibcall_value_memory): Ditto.
13215 (*sibcall_value_pop_memory): Ditto.
13216 (sibcall peepholes): Merge SImode and DImode patterns using
13217 W mode iterator. Use memory_operand instead of memory_nox32_operand.
13218 Disable pattern for TARGET_X32. Check if eliminated register is
13219 really dead after call insn. Generate call RTX without unspec operand.
13220 (sibcall_value peepholes): Ditto.
13221 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
13222 instead of memory_nox32_operand. Check if eliminated register is
13223 really dead after call insn. Generate call RTX without unspec operand.
13224 (sibcall_value_pop peepholes): Ditto.
13225 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13227 2014-06-18 Terry Guo <terry.guo@arm.com>
13230 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13233 2014-06-18 Olivier Hainque <hainque@adacore.com>
13235 * tree-core.h (tree_block): Add an "end_locus" field, allowing
13236 memorization of the end of block source location.
13237 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13238 * gimplify.c (gimplify_bind_expr): Propagate the block start and
13239 end source location info we have on the block entry/exit code we
13242 2014-06-18 Richard Biener <rguenther@suse.de>
13244 * common.opt (fssa-phiopt): New option.
13245 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13247 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13248 * doc/invoke.texi (-fssa-phiopt): Document.
13250 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13252 * genattrtab.c (n_bypassed): New variable.
13253 (process_bypasses): Initialise n_bypassed.
13254 Count number of bypassed reservations.
13255 (make_automaton_attrs): Allocate space for bypassed reservations
13256 rather than number of bypasses.
13258 2014-06-18 Richard Biener <rguenther@suse.de>
13260 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13261 we propagated anything.
13262 (substitute_and_fold_dom_walker::before_dom_children): Something
13263 changed if we propagated into PHI arguments.
13264 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13267 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
13269 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13271 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13272 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13273 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13274 Introduces alternative way of loads group permutaions.
13275 (vect_transform_grouped_load): Try alternative way of permutations.
13277 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13279 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13280 changed in ORT_TARGET region, don't jump to do_outer.
13281 (struct gimplify_adjust_omp_clauses_data): New type.
13282 (gimplify_adjust_omp_clauses_1): Adjust for data being
13283 a struct gimplify_adjust_omp_clauses_data pointer instead
13284 of tree *. Pass pre_p as a new argument to
13285 lang_hooks.decls.omp_finish_clause hook.
13286 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13287 splay_tree_foreach to pass both list_p and pre_p.
13288 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13289 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13290 gimplify_adjust_omp_clauses callers.
13291 * langhooks.c (lhd_omp_finish_clause): New function.
13292 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13293 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13294 * langhooks.h (struct lang_hooks_for_decls): Add a new
13295 gimple_seq * argument to omp_finish_clause hook.
13296 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13297 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13298 (scan_omp_parallel, lower_omp_for): When adding
13299 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13300 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13301 * tree-nested.c (convert_nonlocal_omp_clauses,
13302 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13303 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13305 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
13307 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13308 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13310 2014-06-17 Xinliang David Li <davidxl@google.com>
13312 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13313 * passes.c (pass_init_dump_file): Do not set initialize
13314 flag to false unconditionally.
13316 2014-06-17 Richard Biener <rguenther@suse.de>
13318 * genopinit.c (main): Use vec<>::qsort method.
13319 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13321 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13323 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
13325 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13326 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13327 (mips_move_to_gpr_cost): Remove ST_REGS case.
13328 (mips_move_from_gpr_cost): Likewise.
13329 (mips_register_move_cost): Likewise.
13330 (mips_secondary_reload_class): Likewise.
13332 2014-06-17 Richard Biener <rguenther@suse.de>
13334 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13335 (pass_all_optimizations): Move 3rd copy-prop pass from after
13336 fre to before ifcombine/phiopt.
13338 2014-06-17 Richard Biener <rguenther@suse.de>
13340 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13341 and allow all blocks to be forwarders.
13343 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
13346 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13347 variable 'size'; calculate 'size' right in the front; use
13348 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13349 pcum->aapcs_stack_words.
13351 2014-06-17 Nick Clifton <nickc@redhat.com>
13353 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13354 (umulhi3, mulsidi3, umulsidi3): Likewise.
13356 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
13358 PR middle-end/61508
13359 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13360 check for section name.
13362 2014-06-17 Richard Biener <rguenther@suse.de>
13364 * tree-ssa-propagate.c: Include domwalk.h.
13365 (substitute_and_fold): Outline main worker into a domwalker ...
13366 (substitute_and_fold_dom_walker::before_dom_children): ... here.
13367 Schedule stmts we can fully propagate for removal. Remove
13369 (substitute_and_fold): Apply a dominator walk to perform
13370 substitution. Process stmts scheduled for removal here.
13372 2014-06-17 Richard Biener <rguenther@suse.de>
13374 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13375 of PHI node moving.
13377 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13379 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13380 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13381 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13382 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13383 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13385 (get_fpscr) : Likewise.
13387 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13389 PR rtl-optimization/61325
13390 * lra-constraints.c (valid_address_p): Add forward declaration.
13391 (simplify_operand_subreg): Check address validity before and after
13392 alter_reg of memory subreg.
13394 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
13396 * config/i386/i386.c (decide_alg): Correctly handle
13397 maximum size of stringop algorithm.
13399 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13401 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13403 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13405 PR rtl-optimization/61522
13406 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13408 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
13411 * symtab.c (symtab_node::reset_section): New method.
13412 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13414 * cgraph.h (reset_section): Declare.
13415 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13416 do not consider comdat locals.
13417 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13419 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13420 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13421 reset sections of symbols dragged out of the comdats.
13422 (function_and_variable_visibility): Reset sections of
13425 2014-06-16 Richard Biener <rguenther@suse.de>
13427 PR tree-optimization/61482
13428 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13429 [-INF(OVF), +INF(OVF)] range.
13431 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13433 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13434 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13435 handling 32-bit multiplication.
13437 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
13439 PR middle-end/61430
13440 * lra-lives.c (process_bb_lives): Skip creating copy during
13441 insn scan when src/dest has constrained to same regno.
13443 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13445 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13446 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13448 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13450 * asan.c (check_func): New function.
13451 (maybe_create_ssa_name): Likewise.
13452 (build_check_stmt_with_calls): Likewise.
13453 (use_calls_p): Likewise.
13454 (report_error_func): Change interface.
13455 (build_check_stmt): Allow non-integer lengths; add support
13457 (asan_instrument): Likewise.
13458 (instrument_mem_region_access): Moved code to build_check_stmt.
13459 (instrument_derefs): Likewise.
13460 (instrument_strlen_call): Likewise.
13461 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13462 * doc/invoke.texi: Describe new parameter.
13463 * params.def: Define new parameter.
13464 * params.h: Likewise.
13465 * sanitizer.def: Describe new builtins.
13467 2014-06-16 Richard Biener <rguenther@suse.de>
13469 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13470 Make all defs available at the end.
13471 (eliminate): If we remove a PHI node schedule cfg-cleanup.
13473 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13476 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13478 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
13481 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13482 initialization. Replace remaining use of uid.
13484 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13486 * c-family/c-common.c (handle_tls_model_attribute): Use
13487 set_decl_tls_model.
13488 * c-family/c-common.c (handle_tls_model_attribute): Use
13489 set_decl_tls_model.
13490 * cgraph.h (struct varpool_node): Add tls_model.
13491 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13492 * tree.h (DECL_TLS_MODEL): Update.
13493 (DECL_THREAD_LOCAL_P): Check that variable is static.
13494 (decl_tls_model): Declare.
13495 (set_decl_tls_model): Declare.
13496 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13497 set symbol prorperties.
13498 (get_emutls_init_templ_addr): Cleanup.
13499 (new_emutls_decl): Update.
13500 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13501 (lto_input_varpool_node): Likewise.
13502 * lto-streamer-out.c (hash_tree): Likewise.
13503 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13504 not stream DECL_TLS_MODEL.
13505 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13506 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13508 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13510 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13512 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13514 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13515 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13517 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
13518 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
13519 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
13520 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
13521 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
13522 (df_get_artificial_defs, df_get_artificial_uses)
13523 (df_single_def, df_single_use): Update accordingly.
13524 (df_refs_chain_dump): Take the first element in a linked list as
13525 parameter, rather than a pointer to an array of pointers.
13526 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
13527 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
13528 (df_chain_create_bb_process_use): Likewise.
13529 (df_md_bb_local_compute_process_def): Likewise.
13530 * fwprop.c (process_defs, process_uses): Likewise.
13531 (register_active_defs, update_uses): Likewise.
13532 (forward_propagate_asm): Update for new df_ref linking.
13533 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
13534 (df_null_ref_rec, df_null_mw_rec): Likewise.
13535 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
13537 (df_scan_free_bb_info): Remove check for null artificial_defs.
13538 (df_install_ref_incremental): Adjust for new df_ref linking.
13539 Use a single-element insertion rather than a full sort.
13540 (df_ref_chain_delete_du_chain): Take the first element
13541 in a linked list as parameter, rather than a pointer to an array of
13543 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
13544 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
13545 (df_insn_info_delete): Remove check for null defs and call to
13546 df_scan_free_mws_vec.
13547 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
13548 null rather than df_null_*_rec.
13549 (df_insn_rescan_debug_internal): Likewise, and update null
13550 checks in the same way. Remove check for null defs.
13551 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
13552 Move a single element rather doing a full sort.
13553 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
13555 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
13556 Initialize df_ref and df_mw_hardreg lists to null rather than
13558 (df_ref_compare): Take df_refs as parameter, transferring the
13559 old interface to...
13560 (df_ref_ptr_compare): ...this new function.
13561 (df_sort_and_compress_refs): Update accordingly.
13562 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
13563 old interface to...
13564 (df_mw_ptr_compare): ...this new function.
13565 (df_sort_and_compress_mws): Update accordingly.
13566 (df_install_refs, df_install_mws): Return a linked list rather than
13567 an array of pointers.
13568 (df_refs_add_to_chains): Assert that old lists are empty rather
13570 (df_insn_refs_verify): Don't handle null defs speciailly.
13571 * web.c (union_match_dups): Update for new df_ref linking.
13573 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13575 * df.h (df_ref_create, df_ref_remove): Delete.
13576 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
13577 (df_ref_remove): Likewise.
13579 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13581 * df.h (df_single_def, df_single_use): New functions.
13582 * ira.c (find_moveable_pseudos): Use them.
13584 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13586 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
13587 * df-problems.c (df_note_bb_compute): Use it.
13588 * regstat.c (regstat_bb_compute_ri): Likewise.
13590 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13592 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
13593 * cse.c (cse_extended_basic_block): Use them.
13594 * dce.c (mark_artificial_use): Likewise.
13595 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
13596 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13597 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
13598 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
13599 (df_simulate_initialize_backwards): Likewise.
13600 (df_simulate_finalize_backwards): Likewise.
13601 (df_simulate_initialize_forwards): Likewise.
13602 (df_md_simulate_artificial_defs_at_top): Likewise.
13603 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13604 * regrename.c (init_rename_info): Likewise.
13605 * regstat.c (regstat_bb_compute_ri): Likewise.
13606 (regstat_bb_compute_calls_crossed): Likewise.
13608 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13610 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
13611 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
13612 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
13613 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
13614 * combine.c (create_log_links): Likewise.
13615 * compare-elim.c (find_flags_uses_in_insn): Likewise.
13616 (try_eliminate_compare): Likewise.
13617 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
13618 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
13619 (remove_reg_equal_equiv_notes_for_defs): Likewise.
13620 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
13621 (word_dce_process_block, dce_process_block): Likewise.
13622 * ddg.c (def_has_ccmode_p): Likewise.
13623 * df-core.c (df_bb_regno_first_def_find): Likewise.
13624 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
13625 * df-problems.c (df_rd_simulate_one_insn): Likewise.
13626 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13627 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
13628 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
13629 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
13630 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
13631 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
13632 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
13633 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
13634 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13635 * fwprop.c (local_ref_killed_between_p): Likewise.
13636 (all_uses_available_at, free_load_extend): Likewise.
13637 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
13638 * hw-doloop.c (scan_loop): Likewise.
13639 * ifcvt.c (dead_or_predicable): Likewise.
13640 * init-regs.c (initialize_uninitialized_regs): Likewise.
13641 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
13642 (process_bb_node_lives): Likewise.
13643 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
13644 (find_moveable_pseudos): Likewise.
13645 * loop-invariant.c (check_dependencies, record_uses): Likewise.
13646 * recog.c (peep2_find_free_register): Likewise.
13647 * ree.c (get_defs): Likewise.
13648 * regstat.c (regstat_bb_compute_ri): Likewise.
13649 (regstat_bb_compute_calls_crossed): Likewise.
13650 * sched-deps.c (find_inc, find_mem): Likewise.
13651 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
13652 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
13653 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13654 (prepare_shrink_wrap): Likewise.
13655 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
13656 * web.c (union_defs, pass_web::execute): Likewise.
13657 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
13658 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
13660 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
13662 * lra-assign.c (assign_by_spills): Add code to assign vector regs
13663 to inheritance pseudos.
13664 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
13666 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
13669 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
13670 (BU_MISC_2): Rename to ...
13671 (BU_LDBL128_2): ... this.
13672 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
13673 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
13674 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13675 RS6000_BTM_LDBL128.
13676 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
13677 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
13678 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
13679 (unpacktf_1): Likewise.
13680 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
13681 (__builtin_longdouble_dw1): Likewise.
13682 * doc/sourcebuild.texi (longdouble128): Document.
13684 2014-06-13 Jeff Law <law@redhat.com>
13686 PR rtl-optimization/61094
13687 PR rtl-optimization/61446
13688 * ree.c (combine_reaching_defs): Get the mode for the copy from
13689 the extension insn rather than the defining insn.
13691 2014-06-13 Dehao Chen <dehao@google.com>
13693 * dwarf2out.c (add_linkage_name): Emit more linkage name.
13695 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
13697 * doc/install.texi (--enable-linker-plugin-configure-flags)
13698 (--enable-linker-plugin-flags): Document new flags.
13700 2014-06-13 Martin Jambor <mjambor@suse.cz>
13703 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
13704 cache_token if returning early.
13706 2014-06-13 Nick Clifton <nickc@redhat.com>
13708 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
13709 requested alignment is active.
13710 (LABEL_ALIGN): Likewise.
13711 (LOOP_ALIGN): Likewise.
13713 2014-06-13 Richard Biener <rguenther@suse.de>
13715 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13716 Rewrite to propagate the VN result into all uses where
13717 possible and to remove stmts becoming dead because of that.
13718 (eliminate): Generalize stmt removal handling, remove in
13719 reverse dominator order to support proper debug stmt
13720 generation. Update stmts before removing stmts.
13721 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
13723 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13725 PR tree-optimization/61375
13726 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
13727 symbolic number cannot be represented in an uint64_t.
13728 (find_bswap_or_nop_1): Likewise.
13730 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13732 * symtab.c (symtab_node::reset_section): New method.
13733 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13735 * cgraph.h (reset_section): Declare.
13736 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13737 do not consider comdat locals.
13738 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13740 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13741 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13742 reset sections of symbols dragged out of the comdats.
13743 (function_and_variable_visibility): Reset sections of
13746 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13748 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
13749 to use symtab and decl_binds_to_current_def_p
13750 * tree-vectorizer.c (increase_alignment): Increase alignment
13751 of alias target, too.
13753 2014-06-12 Jakub Jelinek <jakub@redhat.com>
13755 PR middle-end/61486
13756 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
13757 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
13758 if outer combined construct is distribute.
13759 (gimplify_omp_for): For OMP_DISTRIBUTE set
13760 gimplify_omp_ctxp->distribute.
13761 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
13762 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
13763 mapping into decl map.
13765 2014-06-12 Jason Merrill <jason@redhat.com>
13767 * common.opt (fabi-version): Change default to 0.
13769 2014-06-12 Jason Merrill <jason@redhat.com>
13771 * toplev.c (process_options): Reject -fabi-version=1.
13773 2014-06-12 Jeff Law <law@redhat.com>
13775 PR tree-optimization/61009
13776 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
13777 value when we stop processing a block due to problematic PHIs.
13779 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
13781 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
13782 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
13783 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
13784 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
13785 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
13786 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
13787 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
13788 are not in the spec.
13790 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
13793 * config/aarch64/aarch64-modes.def: Add V1DFmode.
13794 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
13797 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
13799 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
13801 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
13804 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
13805 loading from address spaces.
13807 2014-06-12 Martin Liska <mliska@suse.cz>
13810 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
13811 statement is reachable.
13813 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13815 * symtab.c (section_hash): New hash.
13816 (symtab_unregister_node): Clear section before freeing.
13817 (hash_section_hash_entry): New haser.
13818 (eq_sections): New function.
13819 (symtab_node::set_section_for_node): New method.
13820 (set_section_1): Update.
13821 (symtab_node::set_section): Take string instead of tree as parameter.
13822 (symtab_resolve_alias): Update.
13823 * cgraph.h (section_hash_entry_d): New structure.
13824 (section_hash_entry): New typedef.
13825 (cgraph_node): Change comdat_group_ to x_comdat_group,
13826 change section_ to x_section and turn into section_hash_entry;
13827 update accestors; put set_section_for_node offline.
13828 * tree.c (decl_section_name): Turn into string.
13829 (set_decl_section_name): Change parameter to be string.
13830 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
13831 * sdbout.c (sdbout_one_type): Update.
13832 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
13833 * varasm.c (IN_NAMED_SECTION, get_named_section,
13834 resolve_unique_section, hot_function_section, get_named_text_section,
13835 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
13836 make_decl_rtl, default_unique_section): Update.
13837 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
13838 (c6x_elf_unique_section): Update.
13839 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
13840 * config/pa/pa.c (pa_function_section): Update.
13841 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
13842 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
13843 * config/arc/arc.c (arc_in_small_data_p): Update.
13844 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
13845 * config/mcore/mcore.c (mcore_unique_section): Update.
13846 * config/mips/mips.c (mips16_build_function_stub): Update.
13847 (mips16_build_call_stub): Update.
13848 (mips_function_rodata_section): Update.
13849 (mips_in_small_data_p): Update.
13850 * config/score/score.c (score_in_small_data_p): Update.
13851 * config/rx/rx.c (rx_in_small_data): Update.
13852 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
13853 (rs6000_xcoff_asm_named_section): Update.
13854 (rs6000_xcoff_unique_section): Update.
13855 * config/frv/frv.c (frv_string_begins_with): Update.
13856 (frv_in_small_data_p): Update.
13857 * config/v850/v850.c (v850_encode_data_area): Update.
13858 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
13859 (bfin_handle_l1_data_attribute): Update.
13860 (bfin_handle_l2_attribute): Update.
13861 * config/mep/mep.c (mep_unique_section): Update.
13862 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
13864 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
13865 (h8300_handle_tiny_data_attribute): Update.
13866 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
13867 (m32r_in_small_data_p): Update.
13868 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
13869 * config/i386/i386.c (ix86_in_large_data_p): Update.
13870 * config/i386/winnt.c (i386_pe_unique_section): Update.
13871 * config/darwin.c (darwin_function_section): Update.
13872 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
13873 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13874 (new_emutls_decl): Update.
13875 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
13876 input_varpool_node): Update.
13877 (ead_string_cst): Turn to ...
13878 (read_string): ... this one.
13879 * dwarf2out.c (secname_for_decl): Update.
13880 * asan.c (asan_protect_global): Update.
13882 2014-06-11 DJ Delorie <dj@redhat.com>
13884 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
13886 * config/rx/rx.c (rx_option_override): Likewise.
13887 (rx_align_for_label): Likewise.
13889 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
13891 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
13893 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
13896 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13898 * common.md: New file.
13899 * doc/md.texi: Update description of generic, machine-independent
13901 * config/s390/constraints.md (e): Delete.
13902 * Makefile.in (md_file): Include common.md.
13903 * config/m32c/t-m32c (md_file): Likewise.
13904 * genpreds.c (general_mem): New array.
13905 (generic_constraint_letters): Remove constraints now defined by
13907 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13908 Allow the first character to be '<' or '>' as well.
13909 * genoutput.c (general_mem): New array.
13910 (indep_constraints): Remove constraints now defined by common.md.
13911 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13912 Remove special handling of 'm'.
13913 * ira-costs.c (record_reg_classes): Remove special handling of
13914 constraints now defined by common.md.
13915 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13916 * ira-lives.c (single_reg_class): Likewise.
13917 (ira_implicitly_set_insn_hard_regs): Likewise.
13918 * lra-constraints.c (reg_class_from_constraints): Likewise.
13919 (process_alt_operands, process_address, curr_insn_transform): Likewise.
13920 * postreload.c (reload_cse_simplify_operands): Likewise.
13921 * reload.c (push_secondary_reload, scratch_reload_class)
13922 (find_reloads, alternative_allows_const_pool_ref): Likewise.
13923 * reload1.c (maybe_fix_stack_asms): Likewise.
13924 * targhooks.c (default_secondary_reload): Likewise.
13925 * stmt.c (parse_output_constraint): Likewise.
13926 * recog.c (preprocess_constraints): Likewise.
13927 (constrain_operands, peep2_find_free_register): Likewise.
13928 (asm_operand_ok): Likewise, but add a comment saying why 'o'
13929 must be handled specially.
13931 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13933 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
13934 * genpreds.c (have_const_dbl_constraints): Delete.
13935 (add_constraint): Don't set it.
13936 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
13937 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
13938 constraints using the lookup_constraint logic.
13939 * ira-lives.c (single_reg_class): Likewise.
13940 * ira.c (ira_setup_alts): Likewise.
13941 * lra-constraints.c (process_alt_operands): Likewise.
13942 * recog.c (asm_operand_ok, constrain_operands): Likewise.
13943 * reload.c (find_reloads): Likewise.
13945 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13947 * genpreds.c (const_int_start, const_int_end): New variables.
13948 (choose_enum_order): Output CONST_INT constraints before memory
13950 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
13952 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
13953 * ira.c (ira_setup_alts): Likewise.
13954 * lra-constraints.c (process_alt_operands): Likewise.
13955 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13956 * reload.c (find_reloads): Likewise.
13958 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13960 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
13961 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
13962 * recog.c (preprocess_constraints): Update accordingly.
13964 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13966 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
13967 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
13968 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
13969 * genpreds.c (print_type_tree): New function.
13970 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
13971 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
13972 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
13973 Write out enum constraint_type and get_constraint_type.
13974 * lra-constraints.c (satisfies_memory_constraint_p): Take a
13975 constraint_num rather than a constraint string.
13976 (satisfies_address_constraint_p): Likewise.
13977 (reg_class_from_constraints): Avoid old constraint macros.
13978 (process_alt_operands, process_address_1): Likewise.
13979 (curr_insn_transform): Likewise.
13980 * ira-costs.c (record_reg_classes): Likewise.
13981 (record_operand_costs): Likewise.
13982 * ira-lives.c (single_reg_class): Likewise.
13983 (ira_implicitly_set_insn_hard_regs): Likewise.
13984 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13985 * postreload.c (reload_cse_simplify_operands): Likewise.
13986 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13987 (constrain_operands, peep2_find_free_register): Likewise.
13988 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
13989 (find_reloads, alternative_allows_const_pool_ref): Likewise.
13990 * reload1.c (maybe_fix_stack_asms): Likewise.
13991 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13992 * targhooks.c (default_secondary_reload): Likewise.
13993 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
13994 to EXTRA_CONSTRAINT_STR.
13995 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
13997 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13999 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14000 (write_constraint_satisfied_p_array): ...this new function.
14001 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14003 (write_insn_preds_c): Update accordingly.
14005 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14007 * genpreds.c (write_lookup_constraint): Rename to...
14008 (write_lookup_constraint_1): ...this.
14009 (write_lookup_constraint_array): New function.
14010 (write_tm_preds_h): Define lookup_constraint as an inline function
14011 that uses write_lookup_constraint_array where possible.
14012 (write_insn_preds_c): Update for the changes above.
14014 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
14016 * doc/md.texi (regclass_for_constraint): Rename to...
14017 (reg_class_for_constraint): ...this.
14018 * genpreds.c (num_constraints, enum_order, register_start)
14019 (register_end, satisfied_start, memory_start, memory_end)
14020 (address_start, address_end): New variables.
14021 (add_constraint): Count the number of constraints.
14022 (choose_enum_order): New function.
14023 (write_enum_constraint_num): Iterate over enum_order.
14024 (write_regclass_for_constraint): Rename to...
14025 (write_reg_class_for_constraint_1): ...this and update output
14027 (write_constraint_satisfied_p): Rename to...
14028 (write_constraint_satisfied_p_1): ...this and update output
14029 accordingly. Do nothing if all extra constraints are register
14031 (write_insn_extra_memory_constraint): Delete.
14032 (write_insn_extra_address_constraint): Delete.
14033 (write_range_function): New function.
14034 (write_tm_preds_h): Define constraint_satisfied_p and
14035 reg_class_for_constraint as inline functions that do a range check
14036 before calling the out-of-line function. Use write_range_function
14037 to implement insn_extra_{register,memory,address}_constraint,
14038 the first of which is new.
14039 (write_insn_preds_c): Update after above changes to write_* functions.
14040 (main): Call choose_enum_order.
14042 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14044 PR tree-optimization/61306
14045 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14046 expression instead of its size.
14047 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14048 false to prevent optimization when the result is unpredictable due to
14049 arithmetic right shift of signed type with highest byte is set.
14050 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14051 (init_symbolic_number): Likewise.
14052 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14053 when the result is unpredictable due to sign extension.
14055 2014-06-11 Terry Guo <terry.guo@arm.com>
14057 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14058 (*thumb1_addsi3): Ditto.
14059 (*thumb_subdi3): Ditto.
14060 (thumb1_subsi3_insn): Ditto.
14061 (*thumb_mulsi3): Ditto.
14062 (*thumb_mulsi3_v6): Ditto.
14063 (*thumb1_andsi3_insn): Ditto.
14064 (thumb1_bicsi3): Ditto.
14065 (*thumb1_iorsi3_insn): Ditto.
14066 (*thumb1_xorsi3_insn): Ditto.
14067 (*thumb1_ashlsi3): Ditto.
14068 (*thumb1_ashrsi3): Ditto.
14069 (*thumb1_lshrsi3): Ditto.
14070 (*thumb1_rotrsi3): Ditto.
14071 (*thumb1_negdi2): Ditto.
14072 (*thumb1_negsi2): Ditto.
14073 (*thumb1_abssi2): Ditto.
14074 (*thumb1_neg_abssi2): Ditto.
14075 (*thumb1_one_cmplsi2): Ditto.
14076 (*thumb1_zero_extendhisi2): Ditto.
14077 (*thumb1_zero_extendqisi2): Ditto.
14078 (*thumb1_zero_extendqisi2_v6): Ditto.
14079 (thumb1_extendhisi2): Ditto.
14080 (thumb1_extendqisi2): Ditto.
14081 (*thumb1_movdi_insn): Ditto.
14082 (*thumb1_movsi_insn): Ditto.
14083 (*thumb1_movhi_insn): Ditto.
14084 (thumb_movhi_clobber): Ditto.
14085 (*thumb1_movqi_insn): Ditto.
14086 (*thumb1_movhf): Ditto.
14087 (*thumb1_movsf_insn): Ditto.
14088 (*thumb_movdf_insn): Ditto.
14089 (movmem12b): Ditto.
14091 (cbranchqi4): Ditto.
14092 (cbranchsi4_insn): Ditto.
14093 (cbranchsi4_scratch): Ditto.
14094 (*negated_cbranchsi4): Ditto.
14095 (*tbit_cbranch): Ditto.
14096 (*tlobits_cbranch): Ditto.
14097 (*tstsi3_cbranch): Ditto.
14098 (*cbranchne_decr1): Ditto.
14099 (*addsi3_cbranch): Ditto.
14100 (*addsi3_cbranch_scratch): Ditto.
14101 (*thumb_cmpdi_zero): Ditto.
14102 (cstoresi_eq0_thumb1): Ditto.
14103 (cstoresi_ne0_thumb1): Ditto.
14104 (*cstoresi_eq0_thumb1_insn): Ditto.
14105 (*cstoresi_ne0_thumb1_insn): Ditto.
14106 (cstoresi_nltu_thumb1): Ditto.
14107 (cstoresi_ltu_thumb1): Ditto.
14108 (thumb1_addsi3_addgeu): Ditto.
14109 (*thumb_jump): Ditto.
14110 (*call_reg_thumb1_v5): Ditto.
14111 (*call_reg_thumb1): Ditto.
14112 (*call_value_reg_thumb1_v5): Ditto.
14113 (*call_value_reg_thumb1): Ditto.
14114 (*call_insn): Ditto.
14115 (*call_value_insn): Ditto.
14116 (thumb1_casesi_internal_pic): Ditto.
14117 (thumb1_casesi_dispatch): Ditto.
14118 (*thumb1_indirect_jump): Ditto.
14119 (prologue_thumb1_interwork): Ditto.
14120 (*epilogue_insns): Ditto.
14121 (consttable_1): Ditto.
14122 (consttable_2): Ditto.
14123 (tablejump): Ditto.
14124 (*thumb1_tablejump): Ditto.
14125 (thumb_eh_return): Ditto.
14126 (define_peephole2): Two of them are thumb1 only and got moved into
14127 new file thumb1.md.
14128 (define_split): Six of them are thumb1 only and got moved into new
14130 * config/arm/thumb1.md: New file comprised of above thumb1 only
14133 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14135 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14136 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14138 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14139 (aarch64_crc_builtin_datum): New struct.
14140 (aarch64_crc_builtin_data): New.
14141 (aarch64_init_crc32_builtins): New function.
14142 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14143 (aarch64_crc32_expand_builtin): New.
14144 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14145 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14146 __ARM_FEATURE_CRC32 when appropriate.
14147 (TARGET_CRC32): Define.
14148 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14149 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14150 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14151 (aarch64_<crc_variant>): New pattern.
14152 * config/aarch64/arm_acle.h: New file.
14153 * config/aarch64/iterators.md (CRC): New int iterator.
14154 (crc_variant, crc_mode): New int attributes.
14155 * doc/aarch64-acle-intrinsics.texi: New file.
14156 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14157 Include aarch64-acle-intrinsics.texi.
14159 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
14161 * tree-vect-data-refs.c (vect_grouped_store_supported): New
14162 check for stores group of length 3.
14163 (vect_permute_store_chain): New permutations for stores group of
14165 * tree-vect-stmts.c (vect_model_store_cost): Change cost
14166 of vec_perm_shuffle for the new permutations.
14168 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
14170 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14171 table rewriting temporarily on targets not supporting ONE_ONLY.
14173 2014-06-11 Richard Biener <rguenther@suse.de>
14175 PR middle-end/61437
14177 2014-06-04 Richard Biener <rguenther@suse.de>
14179 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14180 TREE_PUBLIC and DECL_EXTERNAL decls.
14182 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14184 * varasm.c (set_implicit_section): New function.
14185 (resolve_unique_section): Use it to set implicit section
14187 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14188 (default_function_section): Likewise.
14189 (decl_binds_to_current_def_p): Constify argument.
14190 * varasm.h (decl_binds_to_current_def_p): Update prototype.
14191 * asan.c (asan_protect_global): Use
14192 symtab_get_node (decl)->implicit_section.
14193 * symtab.c (dump_symtab_base): Dump implicit sections.
14194 (verify_symtab_base): Verify sanity of sectoins and comdats.
14195 (symtab_resolve_alias): Alias share the section of its target.
14196 (set_section_1): New function.
14197 (symtab_node::set_section): Move here, recurse to aliases.
14198 (verify_symtab): Check for duplicated symtab lists.
14199 * tree-core.h (implicit_section_name_p): Remove.
14200 * tree-vect-data-refs.c: Include varasm.h.
14201 (vect_can_force_dr_alignment_p): Fix conditional on when
14202 decl bints to current definition; use
14203 symtab_get_node (decl)->implicit_section.
14204 * cgraph.c (cgraph_make_node_local_1): Fix section set.
14205 * cgraph.h (struct symtab_node): Add implicit_section.
14206 (set_section): Rename to ...
14207 (set_section_for_node): ... this one.
14208 (set_section): Declare.
14209 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14210 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14211 input_overwrite_node, input_varpool_node): Stream implicit_section.
14212 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14213 removal; it will fail in LTO.
14215 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14217 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14218 Change second alternative type to f_mcr.
14219 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14220 and 12th alternatives' types to f_mcr and f_mrc.
14221 (*movdi_aarch64): Same for 12th and 13th alternatives.
14222 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14223 (aarch64_movtilow_tilow): Change type to fmov.
14225 2014-06-10 Jiong Wang <jiong.wang@arm.com>
14227 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14228 (aarch64_save_or_restore_callee_save_registers): Fix layout.
14230 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14232 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14234 (aarch64_sqrdmulh_lane<mode>): Likewise.
14235 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14236 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14237 (aarch64_sqdmulh_laneq<mode>): New expander.
14238 (aarch64_sqrdmulh_laneq<mode>): Likewise.
14239 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14240 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14241 (aarch64_sqdmulh_lane<mode>): New expander.
14242 (aarch64_sqrdmulh_lane<mode>): Likewise.
14243 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14244 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14245 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14246 (aarch64_sqdmlal_laneq<mode>): Likewise.
14247 (aarch64_sqdmlsl_lane<mode>): Likewise.
14248 (aarch64_sqdmlsl_laneq<mode>): Likewise.
14249 (aarch64_sqdmlal2_lane<mode>): Likewise.
14250 (aarch64_sqdmlal2_laneq<mode>): Likewise.
14251 (aarch64_sqdmlsl2_lane<mode>): Likewise.
14252 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14253 (aarch64_sqdmull_lane<mode>): Likewise.
14254 (aarch64_sqdmull_laneq<mode>): Likewise.
14255 (aarch64_sqdmull2_lane<mode>): Likewise.
14256 (aarch64_sqdmull2_laneq<mode>): Likewise.
14258 2014-06-10 Richard Biener <rguenther@suse.de>
14260 PR tree-optimization/61438
14261 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14262 (eliminate_dom_walker::before_dom_children): Only try to inhibit
14263 insertion of IVs if running PRE.
14264 (eliminate): Adjust.
14265 (pass_pre::execute): Likewise.
14266 (pass_fre::execute): Likewise.
14268 2014-06-10 Richard Biener <rguenther@suse.de>
14270 PR middle-end/61456
14271 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14272 Do not use the main variant for the type comparison.
14273 (ncr_compar): Likewise.
14274 (nonoverlapping_component_refs_p): Likewise.
14276 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
14278 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14279 REG_CFA_RESTORE mode.
14281 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
14283 * config/i386/i386.c (expand_vec_perm_pblendv): New.
14284 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14285 expand_vec_perm_pblendv.
14287 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14289 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14291 Simplify description of __crc32d and __crc32cd intrinsics.
14292 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14295 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
14298 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14299 * config.in: Regenerate.
14300 * configure: Likewise.
14302 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14304 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14306 (intersect_static_var_sets): Remove.
14307 (propagate): Do not prune local statics.
14309 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14312 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14313 Set lastprivate_firstprivate even if omp_private_outer_ref
14314 langhook returns true.
14315 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14316 langhook, call unshare_expr on new_var and call
14317 build_outer_var_ref to get the last argument.
14319 2014-06-10 Marek Polacek <polacek@redhat.com>
14322 * doc/extend.texi: Add cindex for transparent_union.
14324 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14326 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14327 init_symbolic_number ().
14329 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
14331 PR middle-end/61141
14332 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14333 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14334 (verify_rtl_sharing): Likewise.
14336 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
14339 * tree.c (build_qualified_type): Use a canonical type for
14342 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14344 * config/arm/arm-modes.def: Remove XFmode.
14346 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
14349 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14350 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14351 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14352 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14353 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14354 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14355 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14356 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14357 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14359 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
14361 * tree-core.h (tree_decl_with_vis): Remove section_name.
14363 2014-06-09 Kito Cheng <kito@0xlab.org>
14365 * ira.c (ira): Don't call init_caller_save if LRA enabled
14366 since LRA use its own infrastructure to handle that.
14368 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14370 * symtab.c (dump_symtab_base): Update dumping.
14371 (symtab_make_decl_local): Clear only DECL_COMDAT.
14372 * tree-vect-data-refs.c (Check that variable is static before
14373 tampering with sections.
14374 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14375 (cgraph_create_virtual_clone): Likewise.
14376 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14377 (decl_section_name, set_decl_section_name): New accessors.
14378 (find_decls_types_r): Do not walk section name
14379 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14380 (decl_comdat_group, decl_comdat_group_id): Constify.
14381 (decl_section_name, set_decl_section_name): Update.
14382 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14383 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14384 (cgraph_make_node_local_1): Clear section and comdat group.
14385 * cgraph.h (set_comdat_group): Sanity check.
14386 (get_section, set_section): New.
14387 * ipa-comdats.c (ipa_comdats): Use get_section.
14388 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14389 * lto-streamer-out.c: Do not follow section names.
14390 * c-family/c-common.c (handle_section_attribute): Update.
14391 * lto-cgraph.c (lto_output_node): Output section.
14392 (lto_output_varpool_node): Likewise.
14393 (read_comdat_group): Rename to ...
14394 (read_identifier): ... this one.
14395 (read_string_cst): New function.
14396 (input_node, input_varpool_node): Input section names.
14397 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14398 (new_emutls_decl): Update.
14399 (secname_for_decl): Check section names only of static vars.
14400 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14401 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14402 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14403 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14404 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14405 * config/mcore/mcore.c (mcore_unique_section): Likewise.
14406 * config/mips/mips.c (mips16_build_function_stub): Likewise.
14407 * config/v850/v850.c (v850_insert_attributes): Likewise.
14408 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14410 (h8300_handle_tiny_data_attribute): Likewise.
14411 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14412 (bfin_handle_l2_attribute): Likewise.
14414 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14416 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14417 remove static initializer.
14419 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14421 * varasm.c (use_blocks_for_decl_p): Check symbol table
14422 instead of alias attribute.
14423 (place_block_symbol): Recurse on aliases.
14425 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14427 * ipa-visibility.c: Include varasm.h
14428 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14430 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14432 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14433 outputting aliases.
14435 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
14437 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14438 from test_insn into GGC space escape via SET_SRC.
14440 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
14442 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14443 call statement, if any.
14444 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14445 statements, if any. Tidy up.
14447 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14450 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14451 iterators, VSX_D that handles 64-bit types, and VSX_LE that
14452 handles swapping the two 64-bit double words on little endian
14453 systems. Include V1TImode and optionally TImode in VSX_LE so that
14454 these types are properly swapped. Change all of the insns and
14455 splits that do the 64-bit swaps to use VSX_LE.
14456 (vsx_le_perm_load_<mode>): Likewise.
14457 (vsx_le_perm_store_<mode>): Likewise.
14458 (splitters for little endian memory operations): Likewise.
14459 (vsx_xxpermdi2_le_<mode>): Likewise.
14460 (vsx_lxvd2x2_le_<mode>): Likewise.
14461 (vsx_stxvd2x2_le_<mode>): Likewise.
14463 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
14466 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14467 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14468 and corresponding splitters. Zero extend general register
14469 or memory input operand to XMM temporary. Enable for
14470 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14471 (floatunssi<mode>2): Update expander predicate.
14473 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
14475 PR rtl-optimization/61325
14476 * lra-constraints.c (process_address_1): Check scale equal to one
14477 to prevent transformation: base + scale * index => base + new_reg.
14479 2014-06-06 Richard Biener <rguenther@suse.de>
14481 PR tree-optimization/59299
14482 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14484 (nearest_common_dominator_of_uses): Likewise.
14485 (statement_sink_location): Adjust. Support sinking loads.
14487 2014-06-06 Martin Jambor <mjambor@suse.cz>
14489 * ipa-prop.c (get_place_in_agg_contents_list): New function.
14490 (build_agg_jump_func_from_list): Likewise.
14491 (determine_known_aggregate_parts): Renamed to
14492 determine_locally_known_aggregate_parts. Moved some functionality
14493 to the two functions above, removed bound checks.
14495 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
14497 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14498 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14499 (aarch64_progress_pointer): Likewise.
14500 (aarch64_copy_one_part_and_move_pointers): Likewise.
14501 (aarch64_expand_movmen): Likewise.
14502 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14503 * config/aarch64/aarch64.md (movmem<mode>): New.
14505 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
14507 * targhooks.c (default_add_stmt_cost): Call target specific
14508 hook instead of default one.
14510 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14512 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14513 endianness instead of host endianness.
14514 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14517 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14520 * function.c (instantiate_decls): Process the saved static chain.
14521 (expand_function_start): If not optimizing, save the static chain
14523 * tree-nested.c (convert_all_function_calls): Always create the static
14524 chain for nested functions if not optimizing.
14526 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14528 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
14530 2014-06-06 Richard Biener <rguenther@suse.de>
14532 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
14533 (construct_init_block): Likewise.
14534 (construct_exit_block): Likewise.
14535 (pass_expand::execute): Likewise.
14536 * graphite.c (graphite_transforms): Replace check for current_loops
14537 with a check for > 1 loops.
14538 (pass_graphite_transforms::execute): Adjust.
14539 * ipa-split.c (split_function): Remove check for current_loops.
14540 * omp-low.c (expand_parallel_call): Likewise.
14541 (expand_omp_for_init_counts): Likewise.
14542 (extract_omp_for_update_vars): Likewise.
14543 (expand_omp_for_generic): Likewise.
14544 (expand_omp_sections): Likewise.
14545 (expand_omp_target): Likewise.
14546 * tracer.c (tail_duplicate): Likewise.
14547 (pass_tracer::execute): Likewise.
14548 * trans-mem.c (expand_transaction): Likewise.
14549 * tree-complex.c (expand_complex_div_wide): Likewise.
14550 * tree-eh.c (lower_resx): Likewise.
14551 (cleanup_empty_eh_merge_phis): Likewise.
14552 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
14553 current_loops with a check for > 1 loops.
14554 (pass_predcom::execute): Adjust.
14555 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
14556 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
14557 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
14558 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
14559 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14560 * tree-switch-conversion.c (process_switch): Likewise.
14561 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14562 * tree-vrp.c (vrp_visit_phi_node): Likewise.
14563 (execute_vrp): Likewise.
14564 * ubsan.c (ubsan_expand_null_ifn): Likewise.
14566 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14568 * rtl.h (insn_location): Declare.
14569 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
14570 with UNKNOWN_LOCATION.
14571 * emit-rtl.c (insn_location): New function.
14572 * final.c (notice_source_line): Check that the instruction has a
14573 location before retrieving it and use insn_location.
14574 * modulo-sched.c (loop_single_full_bb_p): Likewise.
14575 * print-rtl.c (print_rtx): Likewise.
14577 2014-06-06 Richard Biener <rguenther@suse.de>
14579 * passes.def: Move 2nd VRP pass before phi-only-cprop.
14581 2014-06-06 Christian Bruel <christian.bruel@st.com>
14583 PR tree-optimization/43934
14584 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
14587 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
14589 * ira-lives.c (single_reg_class): Add missing break. Explicitly
14590 return NO_REGS for extra address and memory constraints. Handle
14591 operands that match (or are equivalent to something that matches)
14592 extra constant constraints. Ignore other non-register operands.
14594 2014-06-06 Alan Modra <amodra@gmail.com>
14597 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
14598 * doc/tm.texi: Regenerate.
14599 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
14600 Use throughout in place of REG_PARM_STACK_SPACE.
14601 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
14602 "incoming" param. Pass to rs6000_function_parms_need_stack.
14603 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
14604 prototype_p when incoming. Use function decl when incoming
14605 to handle K&R style functions.
14606 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
14607 (INCOMING_REG_PARM_STACK_SPACE): Define.
14609 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14612 * cfgexpand.c (expand_debug_expr): Use address space of nested
14613 TREE_TYPE for ADDR_EXPR and MEM_REF.
14615 2014-06-05 Jeff Law <law@redhat.com>
14617 PR tree-optimization/61289
14618 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
14619 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
14620 looking for those which match LHS. All callers changed.
14621 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
14622 parameters and code which manipulated them. All callers changed.
14623 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
14624 and DST_MAP parameters. Simplify invalidation code by just calling
14625 invalidate_equivalences. All callers changed.
14626 (thread_across_edge): Simplify now that we don't need to maintain
14627 the map of equivalences to invalidate.
14629 2014-06-05 Kai Tietz <ktietz@redhat.com>
14630 Richard Henderson <rth@redhat.com>
14633 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
14634 checking for !TARGET_X32.
14635 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
14636 (sibcall_intern): New define_insn, plus required peepholes.
14637 (sibcall_pop_intern): Likewise.
14638 (sibcall_value_intern): Likewise.
14639 (sibcall_value_pop_intern): Likewise.
14641 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
14643 * tree-inline.c (tree_function_versioning): Check DF info existence
14644 before accessing it.
14646 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14648 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
14650 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
14651 aarch64_frame hard_fp_offset and frame_size.
14652 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
14653 frame_size; remove original_frame_size.
14654 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
14655 (aarch64_initial_elimination_offset): Remove frame_size and
14656 offset. Use aarch64_frame frame_size.
14658 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14659 Jiong Wang <jiong.wang@arm.com>
14660 Renlin <renlin.li@arm.com>
14662 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
14663 initialization of R30 offset. Update offset. Iterate core
14664 regisers upto X30. Remove X29, X30 specific code.
14666 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14667 Jiong Wang <jiong.wang@arm.com>
14669 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
14670 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
14671 (aarch64_register_saved_on_entry): Adjust test.
14673 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14675 * config/aarch64/aarch64.h (machine_function): Move
14676 saved_varargs_size from here...
14677 (aarch64_frame): ... to here.
14679 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14680 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
14681 (aarch64_initial_elimination_offset)
14682 (aarch64_setup_incoming_varargs): Adjust location of
14683 saved_varargs_size.
14685 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14687 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
14690 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
14691 Prachi Godbole <Prachi.Godbole@imgtec.com>
14693 * config/mips/mips-cpus.def: Add definition for p5600. Updated
14694 mips32r5 entry to use PROCESSOR_P5600.
14695 * config/mips/mips-tables.opt: Regenerate.
14696 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
14697 * config/mips/mips.c (mips_fmadd_bypass): New function.
14698 (mips_rtx_cost_data): Add costs for p5600.
14699 (mips_issue_rate): Add support for p5600.
14700 (mips_multipass_dfa_lookahead): Likewise.
14701 * config/mips/mips.h (TUNE_P5600): New define.
14702 (TUNE_MACC_CHAINS): Add TUNE_P5600.
14703 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
14704 * config/mips/mips.md: Include p5600.md.
14705 (processor): Add p5600.
14706 * config/mips/p5600.md: New file.
14708 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
14710 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
14711 * config/i386/predicates.md (palignr_operand): New.
14712 Indicates if permutation is suitable for palignr instruction.
14714 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
14716 PR tree-optimization/61319
14717 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14718 stmt belongs to loop.
14720 2014-06-05 Richard Biener <rguenther@suse.de>
14722 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
14723 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
14724 (lookup_tmp_var): Adjust.
14725 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
14727 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14729 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
14731 2014-06-05 Marek Polacek <polacek@redhat.com>
14734 * doc/invoke.texi: Document -Wlogical-not-parentheses.
14736 2014-06-04 Tom de Vries <tom@codesourcery.com>
14738 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
14741 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
14743 PR tree-optimization/61385
14744 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
14746 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
14748 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
14749 changed to use fatal_error.
14750 (main): Ensure lto_wrapper_cleanup is run atexit.
14752 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14754 * lra-constraints.c (valid_address_p): Move earlier in file.
14755 (address_eliminator): New structure.
14756 (satisfies_memory_constraint_p): New function.
14757 (satisfies_address_constraint_p): Likewise.
14758 (process_alt_operands, process_address, curr_insn_transform): Use them.
14760 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14762 * lra-int.h (lra_static_insn_data): Make operand_alternative a
14764 (target_lra_int, default_target_lra_int, this_target_lra_int)
14765 (op_alt_data): Delete.
14766 * lra.h (lra_init): Delete.
14767 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
14768 (init_insn_code_data_once): Remove op_alt_data handling.
14769 (finish_insn_code_data_once): Likewise.
14770 (init_op_alt_data): Delete.
14771 (get_static_insn_data): Initialize operand_alternative to null.
14772 (free_insn_recog_data): Cast operand_alternative before freeing it.
14773 (setup_operand_alternative): Take the operand_alternative as
14774 parameter and assume it isn't already cached in the static
14776 (lra_set_insn_recog_data): Update accordingly.
14777 (lra_init): Delete.
14778 * ira.c (ira_init): Don't call lra_init.
14779 * target-globals.h (this_target_lra_int): Declare.
14780 (target_globals): Remove lra_int.
14781 (restore_target_globals): Update accordingly.
14782 * target-globals.c: Don't include lra-int.h.
14783 (default_target_globals, save_target_globals): Remove lra_int.
14785 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14787 * recog.h (operand_alternative): Convert reg_class, reject,
14788 matched and matches into bitfields.
14789 (preprocess_constraints): New overload.
14790 (preprocess_insn_constraints): New function.
14791 (preprocess_constraints): Take the insn as parameter.
14792 (recog_op_alt): Change into a pointer.
14793 (target_recog): Add x_op_alt.
14794 * recog.c (asm_op_alt): New variable.
14795 (recog_op_alt): Change into a pointer.
14796 (preprocess_constraints): New overload, replacing the old function
14797 definition with one that doesn't use global state.
14798 (preprocess_insn_constraints): New function.
14799 (preprocess_constraints): Use them. Take the insn as parameter.
14800 Use asm_op_alt for asms.
14801 (recog_init): Free existing x_op_alt entries.
14802 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
14804 (make_early_clobber_and_input_conflicts): Likewise.
14805 (process_bb_node_lives): Pass the insn to process_constraints.
14806 * reg-stack.c (check_asm_stack_operands): Likewise.
14807 (subst_asm_stack_regs): Likewise.
14808 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14809 * regrename.c (build_def_use): Likewise.
14810 * sched-deps.c (sched_analyze_insn): Likewise.
14811 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
14812 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14813 (note_invalid_constants): Likewise.
14814 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14815 (ix86_legitimate_combined_insn): Make operand_alternative pointer
14818 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14820 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
14821 * ira-lives.c (check_and_make_def_conflict): Check for disabled
14823 (make_early_clobber_and_input_conflicts): Likewise.
14824 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14826 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14828 * recog.h (alternative_class): New function.
14829 (which_op_alt): Return a const recog_op_alt.
14830 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
14831 (subst_asm_stack_regs): Likewise.
14832 * config/arm/arm.c (note_invalid_constants): Likewise.
14833 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
14834 the operand_alternative; use alternative class instead.
14835 * sel-sched.c (get_reg_class): Likewise.
14836 * regrename.c (build_def_use): Likewise.
14837 (hide_operands, restore_operands, record_out_operands): Update type
14840 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14842 * recog.h (recog_op_alt): Convert to a flat array.
14843 (which_op_alt): New function.
14844 * recog.c (recog_op_alt): Convert to a flat array.
14845 (preprocess_constraints): Update accordingly, grouping all
14846 operands of the same alternative together, rather than the
14848 * ira-lives.c (check_and_make_def_conflict): Likewise.
14849 (make_early_clobber_and_input_conflicts): Likewise.
14850 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14851 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
14852 (subst_asm_stack_regs): Likewise.
14853 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14854 * regrename.c (hide_operands, record_out_operands): Likewise.
14855 (build_def_use): Likewise.
14856 * sel-sched.c (get_reg_class): Likewise.
14857 * config/arm/arm.c (note_invalid_constants): Likewise.
14859 2014-06-04 Jason Merrill <jason@redhat.com>
14863 * gimplify.c (gimplify_arg): Non-static.
14864 * gimplify.h: Declare it.
14866 2014-06-04 Richard Biener <rguenther@suse.de>
14868 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14869 TREE_PUBLIC and DECL_EXTERNAL decls.
14871 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
14873 * regcprop.c (copyprop_hardreg_forward_1): Account for
14874 HARD_REGNO_CALL_PART_CLOBBERED.
14876 2014-06-04 Richard Biener <rguenther@suse.de>
14878 * configure.ac: Check whether the underlying type of int64_t
14879 is long or long long.
14880 * configure: Regenerate.
14881 * config.in: Likewise.
14882 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
14883 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14885 2014-06-04 Richard Biener <rguenther@suse.de>
14887 PR tree-optimization/60098
14888 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
14890 (dse_optimize_stmt): Simplify, now that we found a kill
14893 2014-06-04 Richard Biener <rguenther@suse.de>
14895 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
14896 of accesses with non-invariant address.
14898 2014-06-04 Martin Liska <mliska@suse.cz>
14900 * cgraph.h (cgraph_make_wrapper): New function introduced.
14901 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
14902 * ipa-inline.h (inline_analyze_function): The function is global.
14903 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
14905 2014-06-04 Martin Liska <mliska@suse.cz>
14907 * tree.h (private_lookup_attribute_starting): New function.
14908 (lookup_attribute_starting): Likewise.
14909 * tree.c (private_lookup_attribute_starting): Likewise.
14911 2014-06-04 Martin Liska <mliska@suse.cz>
14913 * cgraph.h (expand_thunk): New argument added.
14914 (address_taken_from_non_vtable_p): New global function.
14915 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
14916 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
14917 * cgraphunit.c (analyze_function): Likewise.
14918 (assemble_thunks_and_aliases): Argument added to call.
14919 (expand_thunk): New argument forces to produce GIMPLE thunk.
14921 2014-06-04 Martin Liska <mliska@suse.cz>
14923 * coverage.h (coverage_compute_cfg_checksum): Argument added.
14924 * coverage.c (coverage_compute_cfg_checksum): Likewise.
14925 * profile.c (branch_prob): Likewise.
14927 2014-06-04 Martin Jambor <mjambor@suse.cz>
14930 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
14931 handler for switch on an ipa_ref_use enum.
14932 * ipa-reference.c (analyze_function): Likewise.
14934 2014-06-04 Kai Tietz <ktietz@redhat.com>
14936 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
14937 from old call-instruction.
14939 2014-06-04 Bin Cheng <bin.cheng@arm.com>
14941 * config/aarch64/aarch64.c (aarch64_classify_address)
14942 (aarch64_legitimize_reload_address): Support full addressing modes
14944 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
14945 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
14947 2014-06-03 Andrew Pinski <apinski@cavium.com>
14949 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
14952 2014-06-03 Andrew Pinski <apinski@cavium.com>
14954 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
14955 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
14957 2014-06-03 Kai Tietz <ktietz@redhat.com>
14959 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
14962 2014-06-03 Dehao Chen <dehao@google.com>
14964 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
14967 2014-06-03 Marek Polacek <polacek@redhat.com>
14970 * doc/invoke.texi: Document -Wswitch-bool.
14971 * function.c (stack_protect_epilogue): Cast controlling expression of
14973 * gengtype.c (walk_type): Generate switch expression with its
14974 controlling expression cast to int.
14976 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
14978 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
14980 * config/avr/avr-tables.opt: Regenerate.
14981 * config/avr/t-multilib: Regenerate.
14982 * doc/avr-mmcu.texi: Regenerate.
14984 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
14985 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14987 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
14988 (ata6617c, ata664251): Add new avr35 devices.
14989 (ata6612c): Add new avr4 device.
14990 (ata6613c, ata6614q): Add new avr5 devices.
14991 * config/avr/avr-tables.opt: Regenerate.
14992 * config/avr/t-multilib: Regenerate.
14993 * doc/avr-mmcu.texi: Regenerate.
14995 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14997 * gcc/config/aarch64/aarch64-builtins.c
14998 (aarch64_types_binop_ssu_qualifiers): New static data.
14999 (TYPES_BINOP_SSU): Define.
15000 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15001 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15002 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15003 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15004 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15005 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15006 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15007 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15008 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15009 suffix to builtin function name, remove cast.
15010 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15011 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15012 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15014 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15016 * gcc/config/aarch64/aarch64-builtins.c
15017 (aarch64_types_binop_uus_qualifiers,
15018 aarch64_types_shift_to_unsigned_qualifiers,
15019 aarch64_types_unsigned_shiftacc_qualifiers): Define.
15020 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15021 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15022 sqshlu_n, uqshl_n): Update qualifiers.
15023 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15024 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15025 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15026 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15027 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15028 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15029 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15030 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15031 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15032 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15033 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15034 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15035 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15036 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15037 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15038 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15039 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15040 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15041 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15042 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15043 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15044 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15045 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15046 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15047 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15048 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15049 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15051 2014-06-03 Teresa Johnson <tejohnson@google.com>
15053 * tree-sra.c (modify_function): Record caller nodes after rebuild.
15055 2014-06-02 Jason Merrill <jason@redhat.com>
15058 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15060 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15062 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15065 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
15067 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15069 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15070 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15071 * config/aarch64/iterators.md (REVERSE): New iterator.
15072 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15073 (rev_op): New int_attribute.
15074 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15075 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15076 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15077 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15078 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15079 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15080 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15081 Replace temporary __asm__ with __builtin_shuffle.
15083 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15085 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15087 * config/mips/mips-tables.opt: Regenerate.
15088 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15089 to use mips_isa_rev rather than ISA_MIPS32R2.
15090 * config/mips/mips.h (ISA_MIPS32R3): New define.
15091 (ISA_MIPS32R5): New define.
15092 (ISA_MIPS64R3): New define.
15093 (ISA_MIPS64R5): New define.
15094 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15095 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15096 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15098 (MIPS_ISA_SYNCI_SPEC): Likewise.
15099 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15100 (LINK_SPEC): Added mips32r3 and mips32r5.
15101 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15102 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15103 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15104 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15105 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15106 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15107 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15109 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
15111 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15113 * config/mips/mips.opt (mxpa): New option.
15114 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15117 2014-06-03 Martin Jambor <mjambor@suse.cz>
15120 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15123 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
15125 PR tree-optimization/61328
15126 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15127 initialization from find_bswap_or_nop_1.
15128 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15129 in source_expr2 before using the size value the function sets. Also
15130 make use of init_symbolic_number () in both the old place and
15131 find_bswap_or_nop_load () to avoid reading uninitialized memory when
15132 doing recursion in the GIMPLE_BINARY_RHS case.
15134 2014-06-03 Richard Biener <rguenther@suse.de>
15136 PR tree-optimization/61383
15137 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15140 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
15142 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15143 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15144 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15145 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15147 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15148 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15149 * system.h: ...here and make it unconditional.
15150 * target.def (conditional_register_usage): Mention
15151 define_register_constraint instead of old-style constraint macros.
15152 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15153 * doc/tm.texi: Regenerate.
15154 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15155 protected by !USE_MD_CONSTRAINTS.
15156 * config/frv/frv.md: Remove quote from old version of documentation.
15157 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15158 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15159 CONST_DOUBLE_OK_FOR_LETTER.
15160 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15162 2014-06-02 Andrew Pinski <apinski@cavium.com>
15164 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15165 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15166 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15167 file whose name depends on -mabi= and -mbig-endian.
15168 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15169 Handle LP64 better and handle ilp32 too.
15170 (MULTILIB_OPTIONS): Delete.
15171 (MULTILIB_DIRNAMES): Delete.
15173 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
15175 * expr.h: Remove prototypes of functions defined in builtins.c.
15176 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15177 Remove prototypes of functions defined in builtins.c.
15178 * builtins.h: Update prototype list to include all exported functions.
15179 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15180 no_c99_libc_has_function): Move to targhooks.c
15181 (build_string_literal, build_call_expr_loc_array,
15182 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15184 (expand_builtin_object_size, fold_builtin_object_size): Make static.
15185 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15186 no_c99_libc_has_function): Relocate from builtins.c.
15187 * tree.c: Include builtins.h.
15188 (build_call_expr_loc_array, build_call_expr_loc_vec,
15189 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15191 * fold-const.h (fold_fma): Move prototype to builtins.h.
15192 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15193 * asan.c: Include builtins.h.
15194 * cfgexpand.c: Likewise.
15195 * convert.c: Likewise.
15196 * emit-rtl.c: Likewise.
15197 * except.c: Likewise.
15198 * expr.c: Likewise.
15199 * fold-const.c: Likewise.
15200 * gimple-fold.c: Likewise.
15201 * gimple-ssa-strength-reduction.c: Likewise.
15202 * gimplify.c: Likewise.
15203 * ipa-inline.c: Likewise.
15204 * ipa-prop.c: Likewise.
15205 * lto-streamer-out.c: Likewise.
15206 * stmt.c: Likewise.
15207 * tree-inline.c: Likewise.
15208 * tree-object-size.c: Likewise.
15209 * tree-sra.c: Likewise.
15210 * tree-ssa-ccp.c: Likewise.
15211 * tree-ssa-forwprop.c: Likewise.
15212 * tree-ssa-loop-ivcanon.c: Likewise.
15213 * tree-ssa-loop-ivopts.c: Likewise.
15214 * tree-ssa-math-opts.c: Likewise.
15215 * tree-ssa-reassoc.c: Likewise.
15216 * tree-ssa-threadedge.c: Likewise.
15217 * tree-streamer-in.c: Likewise.
15218 * tree-vect-data-refs.c: Likewise.
15219 * tree-vect-patterns.c: Likewise.
15220 * tree-vect-stmts.c: Likewise.
15221 * config/aarch64/aarch64.c: Likewise.
15222 * config/alpha/alpha.c: Likewise.
15223 * config/arc/arc.c: Likewise.
15224 * config/arm/arm.c: Likewise.
15225 * config/avr/avr.c: Likewise.
15226 * config/bfin/bfin.c: Likewise.
15227 * config/c6x/c6x.c: Likewise.
15228 * config/cr16/cr16.c: Likewise.
15229 * config/cris/cris.c: Likewise.
15230 * config/epiphany/epiphany.c: Likewise.
15231 * config/fr30/fr30.c: Likewise.
15232 * config/frv/frv.c: Likewise.
15233 * config/h8300/h8300.c: Likewise.
15234 * config/i386/i386.c: Likewise.
15235 * config/i386/winnt.c: Likewise.
15236 * config/ia64/ia64.c: Likewise.
15237 * config/iq2000/iq2000.c: Likewise.
15238 * config/lm32/lm32.c: Likewise.
15239 * config/m32c/m32c.c: Likewise.
15240 * config/m32r/m32r.c: Likewise.
15241 * config/m68k/m68k.c: Likewise.
15242 * config/mcore/mcore.c: Likewise.
15243 * config/mep/mep.c: Likewise.
15244 * config/microblaze/microblaze.c: Likewise.
15245 * config/mips/mips.c: Likewise.
15246 * config/mmix/mmix.c: Likewise.
15247 * config/mn10300/mn10300.c: Likewise.
15248 * config/moxie/moxie.c: Likewise.
15249 * config/msp430/msp430.c: Likewise.
15250 * config/nds32/nds32.c: Likewise.
15251 * config/pa/pa.c: Likewise.
15252 * config/pdp11/pdp11.c: Likewise.
15253 * config/picochip/picochip.c: Likewise.
15254 * config/rl78/rl78.c: Likewise.
15255 * config/rs6000/rs6000.c: Likewise.
15256 * config/rx/rx.c: Likewise.
15257 * config/s390/s390.c: Likewise.
15258 * config/score/score.c: Likewise.
15259 * config/sh/sh.c: Likewise.
15260 * config/sparc/sparc.c: Likewise.
15261 * config/spu/spu.c: Likewise.
15262 * config/stormy16/stormy16.c: Likewise.
15263 * config/tilegx/tilegx.c: Likewise.
15264 * config/tilepro/tilepro.c: Likewise.
15265 * config/v850/v850.c: Likewise.
15266 * config/vax/vax.c: Likewise.
15267 * config/xtensa/xtensa.c: Likewise.
15269 2014-06-02 Jeff Law <law@redhat.com>
15271 PR rtl-optimization/61094
15272 * ree.c (combine_reaching_defs): Do not reextend an insn if it
15273 was marked as do_no_reextend. If a copy is needed to eliminate
15274 an extension, then mark it as do_not_reextend.
15276 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
15278 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15280 2014-06-02 Richard Henderson <rth@redhat.com>
15283 * config/alpha/alpha.c (print_operand_address): Allow symbolic
15284 addresses inside asms. Use output_operand_lossage instead of
15287 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
15290 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15291 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15293 2014-06-02 Tom de Vries <tom@codesourcery.com>
15295 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15296 case that x has VOIDmode.
15298 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
15300 * varasm.c (copy_constant): Delete function.
15301 (build_constant_desc): Don't call it.
15303 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15306 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15307 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15308 with immediate_operand.
15310 2014-06-02 Andreas Schwab <schwab@suse.de>
15312 * config/ia64/ia64.c
15313 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15314 pending_data_specs first.
15316 2014-06-02 Richard Biener <rguenther@suse.de>
15318 PR tree-optimization/61378
15319 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15320 valueized_anything.
15322 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
15324 * config/i386/constraints.md (Bw): Rename from 'w'.
15325 (Bz): Rename from 'z'.
15326 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15328 2014-06-01 Kai Tietz <ktietz@redhat.com>
15331 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15332 * config/i386/i386.md (sibcall_insn_operand): Use Bs
15333 instead of m constraint.
15335 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
15337 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15338 a separate alternative where the scratch operand 2 is marked as
15341 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
15343 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15344 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15345 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15346 and __builtins_arm_get_fpscr.
15347 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15348 __builtins_arm_get_fpscr.
15349 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15350 __builtins_arm_ldfpscr.
15351 (arm_atomic_assign_expand_fenv): New function.
15352 * config/arm/vfp.md (set_fpscr): New pattern.
15353 (get_fpscr) : Likewise.
15354 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15356 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15357 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15359 2014-05-30 Jakub Jelinek <jakub@redhat.com>
15361 * asan.c (report_error_func): Add SLOW_P argument, use
15362 BUILT_IN_ASAN_*_N if set.
15363 (build_check_stmt): Likewise.
15364 (instrument_derefs): If T has insufficient alignment,
15365 force same handling as for odd sizes.
15367 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15368 BUILT_IN_ASAN_REPORT_STORE_N): New.
15369 * asan.c (struct asan_mem_ref): Change access_size type to
15371 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15372 update_mem_ref_hash_table): Likewise.
15373 (asan_mem_ref_hasher::hash): Hash in a HWI.
15374 (report_error_func): Change size_in_bytes argument to HWI.
15375 Use *_N builtins if size_in_bytes is larger than 16 or not power of
15377 (build_shadow_mem_access): New function.
15378 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
15379 Handle size_in_bytes not power of two or larger than 16.
15380 (instrument_derefs): Don't give up if size_in_bytes is not
15381 power of two or is larger than 16.
15383 2014-05-30 Kai Tietz <ktietz@redhat.com>
15386 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15387 for sibling-tail-calls.
15388 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15390 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15391 (sibcall_insn_operand): Add check for sibcall_memory_operand.
15393 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15395 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15396 * config/avr/avr-tables.opt: Regenerate.
15397 * config/avr/t-multilib: Regenerate.
15398 * doc/avr-mmcu.texi: Regenerate.
15400 2014-05-30 Ian Lance Taylor <iant@google.com>
15402 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15405 2014-05-30 Tom de Vries <tom@codesourcery.com>
15407 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15410 2014-05-30 Tom de Vries <tom@codesourcery.com>
15412 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15413 * lra.c (initialize_lra_reg_info_element): Add init of
15414 actual_call_used_reg_set field.
15415 (lra): Call lra_create_live_ranges before lra_inheritance for
15417 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15419 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15420 instead of call_used_reg_set for -fuse-caller-save.
15421 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15423 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15425 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15427 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15429 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15431 * ira.c (ira_get_dup_out_num): Check for output operands at
15432 the start of the loop. Handle cases where an included alternative
15433 follows an excluded one.
15435 2014-05-29 Mike Stump <mikestump@comcast.net>
15438 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15439 post ld passes when lto is used.
15441 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
15443 PR rtl-optimization/61325
15444 * lra-constraints.c (process_address): Rename to process_address_1.
15445 (process_address): New function.
15447 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
15449 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15450 TYPES_BINOPV): New static data.
15451 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15453 * config/aarch64/aarch64-simd.md (aarch64_ext,
15454 aarch64_im_lane_boundsi): New patterns.
15455 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15457 (aarch64_evpc_ext): New function.
15459 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15461 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15462 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15463 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15464 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15465 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15467 2014-05-29 Tom de Vries <tom@codesourcery.com>
15469 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15471 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
15472 Richard Sandiford <rdsandiford@googlemail.com>
15474 * arm/iterators.md (shiftable_ops): New code iterator.
15475 (t2_binop0, arith_shift_insn): New code attributes.
15476 * arm/predicates.md (shift_nomul_operator): New predicate.
15477 * arm/arm.md (insn_enabled): Delete.
15478 (enabled): Remove insn_enabled test.
15479 (*arith_shiftsi): Delete. Replace with ...
15480 (*<arith_shift_insn>_multsi): ... new pattern.
15481 (*<arith_shift_insn>_shiftsi): ... new pattern.
15482 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15484 2014-05-29 Radovan Obradovic <robradovic@mips.com>
15485 Tom de Vries <tom@codesourcery.com>
15487 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15488 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15490 (mips_split_call): Use POST_CALL_TMP_REG.
15491 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15493 2014-05-29 Tom de Vries <tom@codesourcery.com>
15495 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15496 with #ifdef STACK_REGS.
15498 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
15500 * varasm.c (get_variable_section): Walk aliases.
15501 (place_block_symbol): Walk aliases.
15503 2014-05-28 Tom de Vries <tom@codesourcery.com>
15506 2014-05-28 Tom de Vries <tom@codesourcery.com>
15508 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15509 * lra.c (initialize_lra_reg_info_element): Add init of
15510 actual_call_used_reg_set field.
15511 (lra): Call lra_create_live_ranges before lra_inheritance for
15513 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15515 * lra-constraints.c (need_for_call_save_p): Use
15516 actual_call_used_reg_set instead of call_used_reg_set for
15518 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15520 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15522 * doc/md.texi: Document that the % constraint character must
15523 be at the beginning of the string.
15524 * genoutput.c (validate_insn_alternatives): Check that '=',
15525 '+' and '%' only appear at the beginning of a constraint.
15526 * ira.c (commutative_constraint_p): Delete.
15527 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
15528 at the start of the string.
15529 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
15531 * config/arm/neon.md (bicdi3_neon): Likewise.
15532 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
15533 (slt_si, sltu_si): Likewise.
15534 * config/vax/vax.md (sbcdi3): Likewise.
15535 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
15536 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
15537 (mul64): Move '%' to beginning of constraint.
15538 * config/arm/arm.md (*xordi3_insn): Likewise.
15539 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
15540 (xorsi3): Likewise.
15542 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15544 * doc/md.texi: Document the restrictions on the "enabled" attribute.
15546 2014-05-28 Jason Merrill <jason@redhat.com>
15549 * cgraph.h (symtab_node::get_comdat_group_id): New.
15550 * cgraphunit.c (analyze_functions): Call it.
15551 * symtab.c (dump_symtab_node): Likewise.
15552 * tree.c (decl_comdat_group_id): New.
15553 * tree.h: Declare it.
15554 * lto-streamer-out.c (write_symbol): Use it.
15555 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
15557 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15559 PR bootstrap/PR61146
15560 * wide-int.cc: Do not include longlong.h when compiling with clang.
15562 2014-05-28 Richard Biener <rguenther@suse.de>
15564 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
15565 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
15566 (vrp_visit_assignment_or_call): Print less vertical space.
15567 (vrp_visit_stmt): Likewise.
15568 (vrp_visit_phi_node): Likewise. For a PHI argument with
15569 VR_VARYING range consider recording it as copy.
15571 2014-05-28 Richard Biener <rguenther@suse.de>
15574 2014-05-28 Richard Biener <rguenther@suse.de>
15576 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15578 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15580 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
15581 sufficiently aligned and an offset is used at the same time.
15582 (expand_expr_real_1): Likewise.
15584 2014-05-28 Richard Biener <rguenther@suse.de>
15586 PR middle-end/61045
15587 * fold-const.c (fold_comparison): When folding
15588 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
15589 the sign of the remaining constant operand stays the same.
15591 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
15593 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15594 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
15595 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
15597 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
15598 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
15599 (m32bit-doubles) Likewise.
15600 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
15601 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
15604 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15606 * configure.ac ($gcc_cv_ld_clearcap): New test.
15607 * configure: Regenerate.
15608 * config.in: Regenerate.
15609 * config/sol2.opt (mclear-hwcap): New option.
15610 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
15611 * config/sol2-clearcap.map: Moved here from
15612 testsuite/gcc.target/i386/clearcap.map.
15613 * config/sol2-clearcapv2.map: Move here from
15614 gcc.target/i386/clearcapv2.map.
15615 * config/t-sol2 (install): Depend on install-clearcap-map.
15616 (install-clearcap-map): New target.
15617 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
15620 2014-05-28 Richard Biener <rguenther@suse.de>
15622 * hwint.h (*_HALF_WIDE_INT*): Move to ...
15623 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
15624 ... here and remove the rest.
15625 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15627 2014-05-28 Richard Biener <rguenther@suse.de>
15629 PR tree-optimization/61335
15630 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
15631 new range fails, drop to varying.
15633 2014-05-28 Olivier Hainque <hainque@adacore.com>
15635 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
15636 (CPP_SPEC): Add entry for -mcpu=8548.
15637 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
15638 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
15640 2014-05-28 Tom de Vries <tom@codesourcery.com>
15642 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15643 * lra.c (initialize_lra_reg_info_element): Add init of
15644 actual_call_used_reg_set field.
15645 (lra): Call lra_create_live_ranges before lra_inheritance for
15647 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15649 * lra-constraints.c (need_for_call_save_p): Use
15650 actual_call_used_reg_set instead of call_used_reg_set for
15652 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15654 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15655 Tom de Vries <tom@codesourcery.com>
15657 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
15659 (@item -fuse-caller-save): New item.
15661 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15662 Tom de Vries <tom@codesourcery.com>
15664 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
15665 OPT_fuse_caller_save.
15667 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15668 Tom de Vries <tom@codesourcery.com>
15670 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
15671 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
15672 get_call_reg_set_usage.
15673 * resource.c (mark_set_resources, mark_target_live_regs): Use
15674 get_call_reg_set_usage.
15675 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
15677 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
15678 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
15679 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15680 * ira-build.c (ira_create_allocno): Init
15681 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15682 (create_cap_allocno, propagate_allocno_info)
15683 (propagate_some_info_from_allocno)
15684 (copy_info_to_removed_store_destinations): Handle
15685 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15686 * ira-costs.c (ira_tune_allocno_costs): Use
15687 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
15689 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15690 Tom de Vries <tom@codesourcery.com>
15692 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
15693 and function_used_regs_valid fields.
15694 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
15695 find_all_hard_reg_sets.
15696 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
15697 (get_call_reg_set_usage): New function.
15698 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
15699 * regs.h (get_call_reg_set_usage): Declare.
15701 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15704 * config/dbx.h (License): Add Runtime Library Exception.
15705 * config/newlib-stdint.h (License): Same.
15706 * config/rtems.h (License): Same
15707 * config/initfini-array.h (License): Same
15708 * config/v850/v850.h (License): Same.
15709 * config/v850/v850-opts.h (License): Same
15710 * config/v850/rtems.h (License): Same.
15712 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15715 * doc/extend.texi (Local Labels): Note that label differences are
15716 not supported for AVR.
15718 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15719 Olivier Hainque <hainque@adacore.com>
15721 * rtl.h (set_for_reg_notes): Declare.
15722 * emit-rtl.c (set_for_reg_notes): New function.
15723 (set_unique_reg_note): Use it.
15724 * optabs.c (add_equal_note): Likewise
15726 2014-05-27 Andrew Pinski <apinski@cavium.com>
15728 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
15729 Use <w> for the register in assembly template.
15730 (stack_protect_test): Use the mode of operands[0] for the result.
15731 (stack_protect_test_<mode>): Use <w> for the register
15732 in assembly template.
15734 2014-05-27 DJ Delorie <dj@redhat.com>
15736 * config/rx/rx.c (add_vector_labels): New.
15737 (rx_output_function_prologue): Call it.
15738 (rx_handle_func_attribute): Don't require empty arguments.
15739 (rx_handle_vector_attribute): New.
15740 (rx_attribute_table): Add "vector" attribute.
15741 * doc/extend.texi (interrupt, vector): Document new/changed
15742 RX-specific attributes.
15744 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
15746 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15748 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
15749 predicate to detect a negative quotient.
15751 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15753 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
15754 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
15755 Add X - Y CMP 0 to X CMP Y transformation.
15756 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
15758 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
15760 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
15763 2014-05-27 Steve Ellcey <sellcey@mips.com>
15765 * config/mips/mips.c: Add include of cgraph.h.
15767 2014-05-27 Richard Biener <rguenther@suse.de>
15769 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
15771 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
15774 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
15775 * config/arm/arm-cores.def (License): Same.
15776 * config/arm/arm-opts.h (License): Same.
15777 * config/arm/aout.h (License): Same.
15778 * config/arm/bpabi.h (License): Same.
15779 * config/arm/elf.h (License): Same.
15780 * config/arm/linux-elf.h (License): Same.
15781 * config/arm/linux-gas.h (License): Same.
15782 * config/arm/netbsd-elf.h (License): Same.
15783 * config/arm/uclinux-eabi.h (License): Same.
15784 * config/arm/uclinux-elf.h (License): Same.
15785 * config/arm/vxworks.h (License): Same.
15787 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15789 * config/arm/neon.md (neon_bswap<mode>): New pattern.
15790 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
15791 (arm_init_neon_builtins): Handle NEON_BSWAP.
15792 Define required type nodes.
15793 (arm_expand_neon_builtin): Handle NEON_BSWAP.
15794 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
15795 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
15796 * config/arm/iterators.md (VDQHSD): New mode iterator.
15798 2014-05-27 Richard Biener <rguenther@suse.de>
15800 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15801 Try using literal operands when comparing value-ranges failed.
15803 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15805 * ira.c (commutative_operand): Adjust for change to recog_data.
15806 [Missing from previous commit.]
15808 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15810 * system.h (TEST_BIT): New macro.
15811 * recog.h (alternative_mask): New type.
15812 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
15813 (recog_data_d): Replace alternative_enabled_p array with
15814 enabled_alternatives.
15815 (target_recog): New structure.
15816 (default_target_recog, this_target_recog): Declare.
15817 (get_enabled_alternatives, recog_init): Likewise.
15818 * recog.c (default_target_recog, this_target_recog): New variables.
15819 (get_enabled_alternatives): New function.
15820 (extract_insn): Use it.
15821 (recog_init): New function.
15822 (preprocess_constraints, constrain_operands): Adjust for change to
15824 * postreload.c (reload_cse_simplify_operands): Likewise.
15825 * reload.c (find_reloads): Likewise.
15826 * ira-costs.c (record_reg_classes): Likewise.
15827 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
15828 all alternatives after a disabled one would be skipped.
15829 (ira_implicitly_set_insn_hard_regs): Likewise.
15830 * ira.c (ira_setup_alts): Adjust for change to recog_data.
15831 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
15832 with enabled_alternatives.
15833 * lra.c (free_insn_recog_data): Update accordingly.
15834 (lra_update_insn_recog_data): Likewise.
15835 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
15836 * lra-constraints.c (process_alt_operands): Likewise. Handle
15837 only_alternative as part of the enabled mask.
15838 * target-globals.h (this_target_recog): Declare.
15839 (target_globals): Add a recog field.
15840 (restore_target_globals): Restore this_target_recog.
15841 * target-globals.c: Include recog.h.
15842 (default_target_globals): Initialize recog field.
15843 (save_target_globals): Likewise.
15844 * reginfo.c (reinit_regs): Call recog_init.
15845 * toplev.c (backend_init_target): Likewise.
15847 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15849 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
15850 rather than any named insn's code.
15852 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
15855 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
15856 * config/arm/arm-cores.def (License): Same.
15858 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
15860 * tree.h (decl_comdat_group): Declare.
15861 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
15862 * tree.c (decl_comdat_group): Here.
15864 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
15866 PR rtl-optimization/61222
15867 * combine.c (simplify_shift_const_1): When moving a PLUS outside
15868 the shift, truncate the PLUS operand to the result mode.
15870 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
15873 * config/i386/i386.c (ix86_rtx_costs)
15874 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
15877 2014-05-26 Martin Jambor <mjambor@suse.cz>
15879 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
15882 2014-05-26 Richard Biener <rguenther@suse.de>
15884 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
15885 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
15886 Provide specializations.
15887 (wi::int_traits <HOST_WIDE_INT>,
15888 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
15890 2014-05-26 Alan Modra <amodra@gmail.com>
15893 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
15894 params and return a bool. Remove dead code. Update comment.
15895 Assert we have a const_int source. Remove bogus code from
15896 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
15897 handling of constants > 2G and reg_equal note, from..
15898 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
15899 return value. Update comment. If we can, use a new pseudo
15900 for intermediate calculations.
15901 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
15903 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
15904 call to rs6000_emit_set_const in splitter.
15905 (movdi_internal64+2, +3): Likewise.
15907 2014-05-26 Richard Biener <rguenther@suse.de>
15909 * system.h: Define __STDC_FORMAT_MACROS before
15910 including inttypes.h.
15911 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
15912 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
15913 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
15914 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
15915 HOST_WIDEST_INT_C): Remove.
15916 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
15917 if C99 inttypes.h is not available.
15918 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
15919 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
15920 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
15921 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
15922 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
15923 (struct output_info): Likewise.
15924 (print_statistics): Adjust.
15925 (dump_bitmap_statistics): Likewise.
15926 * bt-load.c (migrate_btr_defs): Print with PRId64.
15927 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
15928 (MAX_SAFE_MULTIPLIER): Adjust.
15929 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
15930 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
15931 dump_cgraph_node): Likewise.
15932 * final.c (dump_basic_block_info): Likewise.
15933 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
15934 * gcov.c (format_gcov): Likewise.
15935 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
15937 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
15938 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
15939 (inline_small_functions, dump_overall_stats, dump_inline_stats):
15940 Use PRId64 for dumping.
15941 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
15942 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
15943 (add_allocno_hard_regs): Adjust.
15944 * loop-doloop.c (doloop_modify): Print using PRId64.
15945 * loop-iv.c (inverse): Compute in uint64_t.
15946 (determine_max_iter, iv_number_of_iterations): Likewise.
15947 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
15948 Print using PRId64.
15949 * lto-streamer-out.c (write_symbol): Use uint64_t.
15950 * mcf.c (CAP_INFINITY): Use int64_t maximum.
15951 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
15952 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
15953 * modulo-sched.c (const_iteration_count): Use int64_t.
15954 (sms_schedule): Dump using PRId64.
15955 * predict.c (dump_prediction): Likewise.
15956 * pretty-print.h (pp_widest_integer): Remove.
15957 * profile.c (get_working_sets, is_edge_inconsistent,
15958 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
15959 * tree-pretty-print.c (pp_double_int): Remove case handling
15960 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
15961 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
15963 (pass_optimize_bswap::execute): Remove restriction on hosts.
15964 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
15965 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
15966 * tree.c (widest_int_cst_value): Remove.
15967 * tree.h (widest_int_cst_value): Likewise.
15968 * value-prof.c (dump_histogram_value): Print using PRId64.
15969 * gengtype.c (main): Also inject int64_t.
15970 * ggc-page.c (struct max_alignment): Use int64_t.
15971 * alloc-pool.c (struct allocation_object_def): Likewise.
15972 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
15974 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
15975 * doc/tm.texi: Regenerated.
15976 * gengtype-lex.l (IWORD): Handle [u]int64_t.
15977 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
15978 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
15979 mmix_output_register_setting): Use [u]int64_t in prototypes.
15980 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
15981 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
15982 mmix_output_octa, mmix_output_shifted_value): Adjust.
15983 (mmix_intval): Adjust. Remove unreachable case.
15984 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
15986 2014-05-26 Richard Biener <rguenther@suse.de>
15988 * configure.ac: Drop __int64 type check. Insist that we
15989 found uint64_t and int64_t.
15990 * hwint.h (HOST_BITS_PER___INT64): Remove.
15991 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
15992 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
15993 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
15994 (HOST_WIDEST_FAST_INT): Remove __int64 case.
15995 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
15996 for dst_q_src_df_rms_cdt.
15997 * configure: Regenerate.
15998 * config.in: Likewise.
16000 2014-05-26 Michael Tautschnig <mt@debian.org>
16003 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16004 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16006 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16008 PR rtl-optimization/61278
16009 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16011 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16013 PR rtl-optimization/61220
16014 Part of PR rtl-optimization/61225
16015 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16016 insn; skip split_edge for a block with only one successor.
16018 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16020 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16023 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16025 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16026 (update_vtable_references): New function.
16027 (function_and_variable_visibility): Rewrite also vtable initializers.
16028 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16030 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16032 * ggc.h (ggc_grow): New function.
16033 * ggc-none.c (ggc_grow): New function.
16034 * ggc-page.c (ggc_grow): Likewise.
16036 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16038 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16039 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16040 comdat_can_be_unshared_p, cgraph_externally_visible_p,
16041 varpool_externally_visible_p, can_replace_by_local_alias,
16042 update_visibility_by_resolution_info, function_and_variable_visibility,
16043 pass_data_ipa_function_and_variable_visibility,
16044 make_pass_ipa_function_and_variable_visibility,
16045 whole_program_function_and_variable_visibility,
16046 pass_data_ipa_whole_program_visibility,
16047 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16048 * cgraph.h (cgraph_local_node_p): Declare.
16049 * ipa-visibility.c: New file.
16050 * Makefile.in (OBJS): Add ipa-visiblity.o
16052 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16054 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16055 that var decl is available.
16057 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16059 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16060 symtab_node pointer.
16061 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16062 (find_decls_types_r): Do not walk COMDAT_GROUP.
16063 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16064 * varasm.c (make_decl_one_only): Use set_comdat_group;
16065 create node if needed.
16066 * ipa-inline-transform.c (save_inline_function_body): Update
16067 way we decl->symtab mapping.
16068 * symtab.c (symtab_hash, hash_node, eq_node
16069 symtab_insert_node_to_hashtable): Remove.
16070 (symtab_register_node): Update.
16071 (symtab_unregister_node): Update.
16072 (symtab_get_node): Reimplement as inline function.
16073 (symtab_add_to_same_comdat_group): Update.
16074 (symtab_dissolve_same_comdat_group_list): Update.
16075 (dump_symtab_base): Update.
16076 (verify_symtab_base): Update.
16077 (symtab_make_decl_local): Update.
16078 (fixup_same_cpp_alias_visibility): Update.
16079 (symtab_nonoverwritable_alias): Update.
16080 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16081 * ipa.c (update_visibility_by_resolution_info): UPdate.
16082 * bb-reorder.c: Include cgraph.h
16083 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16084 with comdat groups.
16085 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16086 * cgraph.c (cgraph_get_create_node): Update.
16087 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16089 (symtab_get_node): Make inline.
16090 (symtab_insert_node_to_hashtable): Remove.
16091 (symtab_can_be_discarded): Update.
16092 (decl_comdat_group): New function.
16093 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16095 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16097 (read_comdat_group): New function.
16098 (input_node, input_varpool_node): Use it.
16099 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16101 * mips.c (mips_start_unique_function): Likewise.
16102 (ix86_code_end): Likewise.
16103 (rs6000_code_end): Likweise.
16104 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16106 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16108 * gengtype-state.c (fatal_reading_state): Bring offline.
16109 * optabs.c (widening_optab_handler): Bring offline.
16110 * optabs.h (widening_optab_handler): Likewise.
16111 * final.c (get_attr_length_1): Likewise.
16113 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
16115 * sched-int.h (sd_iterator_cond): Manually tail recurse.
16117 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16119 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16120 (ppc440-compare): Include shift with dot.
16121 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16122 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16124 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16126 (e6500_sfx2): Include it.
16127 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16128 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16129 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16130 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16131 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16132 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16133 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16134 *lshiftrt_internal1le, *lshiftrt_internal1be,
16135 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16136 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16137 *rotldi3_internal10le, *rotldi3_internal10be,
16138 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16139 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16140 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16141 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16142 define_insns): Use type "shift" in the appropriate alternatives.
16144 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16146 * config/rs6000/rs6000.md (type): Add "logical". Delete
16148 (dot): Adjust comment.
16149 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16150 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16151 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16152 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16153 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16154 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16155 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16156 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16158 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16159 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16160 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16161 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16162 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16163 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16164 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16165 * config/rs6000/8540.md (ppc8540_su): Adjust.
16166 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16167 cell-cmp-microcoded): Adjust.
16168 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16169 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16170 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16171 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16172 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16173 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16174 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16175 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16176 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16178 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16179 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16180 Adjust. Adjust comment.
16181 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16182 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16184 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16186 * config/rs6000/rs6000.md (type): Add "add".
16187 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16188 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16189 define_insns): Use it.
16190 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16192 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16193 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16194 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16195 * config/rs6000/601.md (ppc601-integer): Adjust.
16196 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16197 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16198 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16199 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16200 * config/rs6000/8540.md (ppc8540_su): Adjust.
16201 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16202 cell-cmp-microcoded): Adjust.
16203 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16204 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16205 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16206 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16207 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16208 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16209 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16210 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16211 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16213 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16214 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16215 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16216 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16218 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16220 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16221 "delayed_compare", "var_delayed_compare".
16222 (var_shift): New attribute.
16223 (cell_micro): Adjust.
16224 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16225 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16226 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16227 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16228 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16229 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16230 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16231 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16232 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16233 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16234 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16235 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16236 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16237 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16238 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16239 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16240 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16241 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16242 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16243 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16244 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16245 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16246 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16247 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16248 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16250 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16251 * config/rs6000/440.md (ppc440-integer): Adjust.
16252 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16253 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16254 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16255 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16256 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16257 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16258 * config/rs6000/8540.md (ppc8540_su): Adjust.
16259 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16260 cell-cmp-microcoded): Adjust.
16261 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16262 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16263 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16264 e500mc64_delayed): Adjust.
16265 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16266 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16267 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16268 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16269 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16270 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16271 power6-delayed-compare, power6-var-delayed-compare): Adjust.
16272 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16273 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16275 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16276 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16278 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16280 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
16281 (bits): New mode_attr.
16282 (idiv_ldiv): Delete mode_attr.
16283 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16284 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16285 rs6000_adjust_priority, is_nonpipeline_insn,
16286 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16288 * config/rs6000/40x.md (ppc403-idiv): Adjust.
16289 * config/rs6000/440.md (ppc440-idiv): Adjust.
16290 * config/rs6000/476.md (ppc476-idiv): Adjust.
16291 * config/rs6000/601.md (ppc601-idiv): Adjust.
16292 * config/rs6000/603.md (ppc603-idiv): Adjust.
16293 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16294 ppc620-ldiv): Adjust.
16295 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16296 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16297 * config/rs6000/8540.md (ppc8540_divide): Adjust.
16298 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16299 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16300 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16301 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16302 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16303 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16304 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16305 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16306 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16307 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16308 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16309 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16310 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16311 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16312 * config/rs6000/titan.md (titan_fxu_div): Adjust.
16314 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16316 * config/rs6000/rs6000.md (type): Delete "insert_word",
16317 "insert_dword". Add "insert".
16318 (size): Update comment.
16319 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16320 insn_must_be_first_in_group): Adjust.
16321 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16322 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16323 *insvsi_internal6, insvdi_internal): Adjust.
16325 * config/rs6000/40x.md (ppc403-integer): Adjust.
16326 * config/rs6000/440.md (ppc440-integer): Adjust.
16327 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16328 * config/rs6000/601.md (ppc601-integer): Adjust.
16329 * config/rs6000/603.md (ppc603-integer): Adjust.
16330 * config/rs6000/6xx.md (ppc604-integer): Adjust.
16331 * config/rs6000/7450.md (ppc7450-integer): Adjust.
16332 * config/rs6000/7xx.md (ppc750-integer): Adjust.
16333 * config/rs6000/8540.md (ppc8540_su): Adjust.
16334 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16335 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16336 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16337 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16338 * config/rs6000/e5500.md (e5500_sfx): Adjust.
16339 * config/rs6000/e6500.md (e6500_sfx): Adjust.
16340 * config/rs6000/mpc.md (mpccore-integer): Adjust.
16341 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16342 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16343 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16344 * config/rs6000/power7.md (power7-integer): Adjust.
16345 * config/rs6000/power8.md (power8-1cyc): Adjust.
16346 * config/rs6000/rs64.md (rs64a-integer): Adjust.
16347 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16349 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16351 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
16352 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16353 (size): New attribute.
16354 (dot): New attribute.
16355 (cell_micro): Adjust.
16356 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16357 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16358 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16359 umuldi3_highpart): Adjust.
16360 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16361 rs6000_adjust_priority, is_nonpipeline_insn,
16362 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16364 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16365 ppc405-imul3): Adjust.
16366 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16367 * config/rs6000/476.md (ppc476-imul): Adjust.
16368 * config/rs6000/601.md (ppc601-imul): Adjust.
16369 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16370 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16371 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16372 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16373 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16375 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16376 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16377 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16378 cell-imul): Adjust.
16379 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16380 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16381 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16382 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16383 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16384 * config/rs6000/mpc.md (mpccore-imul): Adjust.
16385 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16386 power4-lmul, power4-imul, power4-imul3): Adjust.
16387 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16388 power5-lmul, power5-imul, power5-imul3): Adjust.
16389 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16390 power6-lmul, power6-imul, power6-imul3): Adjust.
16391 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16392 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16394 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16395 rs64a-lmul): Adjust.
16396 * config/rs6000/titan.md (titan_imul): Adjust.
16398 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16400 * config/rs6000/rs6000.md (type): Add new value "halfmul".
16401 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16402 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16403 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16404 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16405 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16406 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16407 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16408 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16409 * config/rs6000/titan.md: Delete nonsensical comment.
16410 (titan_imul): Add type imul3.
16411 (titan_mulhw): Remove type imul3; add type halfmul.
16413 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16415 * config/rs6000/rs6000.md (type): Reorder, reformat.
16417 2014-05-23 Martin Jambor <mjambor@suse.cz>
16419 PR tree-optimization/53787
16420 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16421 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16422 analysis_done, update all uses.
16423 * ipa-prop.c: Include domwalk.h
16424 (param_analysis_info): Removed.
16425 (param_aa_status): New type.
16426 (ipa_bb_info): Likewise.
16427 (func_body_info): Likewise.
16428 (ipa_get_bb_info): New function.
16429 (aa_overwalked): Likewise.
16430 (find_dominating_aa_status): Likewise.
16431 (parm_bb_aa_status_for_bb): Likewise.
16432 (parm_preserved_before_stmt_p): Changed to use new param AA info.
16433 (load_from_unmodified_param): Accept func_body_info as a parameter
16434 instead of parms_ainfo.
16435 (parm_ref_data_preserved_p): Changed to use new param AA info.
16436 (parm_ref_data_pass_through_p): Likewise.
16437 (ipa_load_from_parm_agg_1): Likewise. Update callers.
16438 (compute_complex_assign_jump_func): Changed to use new param AA info.
16439 (compute_complex_ancestor_jump_func): Likewise.
16440 (ipa_compute_jump_functions_for_edge): Likewise.
16441 (ipa_compute_jump_functions): Removed.
16442 (ipa_compute_jump_functions_for_bb): New function.
16443 (ipa_analyze_indirect_call_uses): Likewise, moved variable
16445 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16446 and info, moved variable declarations down.
16447 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16449 (ipa_analyze_stmt_uses): Likewise.
16450 (ipa_analyze_params_uses): Removed.
16451 (ipa_analyze_params_uses_in_bb): New function.
16452 (ipa_analyze_controlled_uses): Likewise.
16453 (free_ipa_bb_info): Likewise.
16454 (analysis_dom_walker): New class.
16455 (ipa_analyze_node): Handle node-specific forbidden analysis,
16456 initialize and free func_body_info, use dominator walker.
16457 (ipcp_modif_dom_walker): New class.
16458 (ipcp_transform_function): Create and free func_body_info, use
16459 ipcp_modif_dom_walker, moved a lot of functionality there.
16461 2014-05-23 Marek Polacek <polacek@redhat.com>
16462 Jakub Jelinek <jakub@redhat.com>
16464 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16465 * gcc.c (sanitize_spec_function): Likewise.
16466 * convert.c (convert_to_integer): Include "ubsan.h". Add
16467 floating-point to integer instrumentation.
16468 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16469 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16470 SANITIZE_NONDEFAULT.
16471 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16472 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16473 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16474 * ubsan.c: Include "realmpfr.h" and "dfp.h".
16475 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16476 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16477 float/double/long double.
16478 (ubsan_instrument_float_cast): New function.
16479 * ubsan.h (ubsan_instrument_float_cast): Declare.
16481 2014-05-23 Jiong Wang <jiong.wang@arm.com>
16483 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16485 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
16486 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16487 Adjust for tailcalling through registers.
16488 * config/aarch64/aarch64.h (enum reg_class): New caller save
16490 (REG_CLASS_NAMES): Likewise.
16491 (REG_CLASS_CONTENTS): Likewise.
16492 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16493 Allow tailcalling without decls.
16495 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16497 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16498 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16500 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16501 gsi, and variables v_* to v*.
16503 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
16505 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16507 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16509 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16510 * omp-low.c: Update accordingly.
16512 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16513 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16514 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16515 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16516 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16517 GF_OMP_TARGET_KIND_UPDATE.
16519 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16520 Explicitly enumerate the expected region types.
16522 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
16525 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
16526 documentation; the old documentation didn't clearly state the
16527 constraints on the contents of the pointed-to storage.
16529 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16531 Fix bootstrap error on ia64
16532 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
16533 Return default value.
16535 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
16537 PR tree-optimization/54733
16538 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
16540 (find_bswap_or_nop_load): New.
16541 (find_bswap_1): Renamed to ...
16542 (find_bswap_or_nop_1): This. Also add support for memory source.
16543 (find_bswap): Renamed to ...
16544 (find_bswap_or_nop): This. Also add support for memory source and
16545 detection of bitwise operations equivalent to load in target
16547 (execute_optimize_bswap): Likewise. Also move its leading comment back
16548 in place and split statement transformation into ...
16549 (bswap_replace): This.
16551 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16553 PR rtl-optimization/61215
16554 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
16555 simplify_gen_subreg until final substitution.
16557 2014-05-23 Alan Modra <amodra@gmail.com>
16560 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
16561 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
16562 Use "Y" constraint rather than "m".
16564 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16566 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
16568 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
16569 New function declaration.
16570 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
16571 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
16572 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
16573 (aarch64_init_builtins) : Initialize builtins
16574 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16575 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16576 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
16577 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
16578 and __builtins_aarch64_set_fpsr.
16579 (aarch64_atomic_assign_expand_fenv): New function.
16580 * config/aarch64/aarch64.md (set_fpcr): New pattern.
16581 (get_fpcr) : Likewise.
16582 (set_fpsr) : Likewise.
16583 (get_fpsr) : Likewise.
16584 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
16585 and UNSPECV_SET_FPSR.
16586 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16587 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16588 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16590 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16592 PR rtl-optimization/60969
16593 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
16594 constraints. Set up mem cost for NO_REGS case.
16596 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
16598 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
16600 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
16602 * config/darwin.c: Include "lto-section-names.h".
16603 (LTO_SEGMENT_NAME): Don't define.
16604 * config/i386/winnt.c: Include "lto-section-names.h".
16605 * lto-streamer.c: Include "lto-section-names.h".
16606 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
16607 * lto-wrapper.c: Include "lto-section-names.h".
16608 (LTO_SECTION_NAME_PREFIX): Don't define.
16609 * lto-section-names.h: New file.
16610 * cgraphunit.c: Include "lto-section-names.h".
16612 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
16614 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
16616 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
16619 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
16621 2014-05-22 Nick Clifton <nickc@redhat.com>
16623 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
16625 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
16627 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
16628 -> (T)A transformation to integer types.
16630 2014-05-22 Teresa Johnson <tejohnson@google.com>
16632 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
16633 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
16634 (gcov_rewrite): Use gcov_nonruntime_assert.
16635 (gcov_open): Ditto.
16636 (gcov_write_words): Ditto.
16637 (gcov_write_length): Ditto.
16638 (gcov_read_words): Use gcov_nonruntime_assert, and remove
16639 gcc_assert from IN_LIBGCOV code.
16640 (gcov_read_summary): Use gcov_error to flag profile corruption.
16641 (gcov_sync): Use gcov_nonruntime_assert.
16642 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
16643 (gcov_histo_index): Use gcov_nonruntime_assert.
16644 (static void gcov_histogram_merge): Ditto.
16645 (compute_working_sets): Ditto.
16646 * gcov-io.h (gcov_nonruntime_assert): Define.
16647 (gcov_error): Define for !IN_LIBGCOV
16649 2014-05-22 Richard Biener <rguenther@suse.de>
16651 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16652 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
16653 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
16654 and deallocation site.
16655 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16656 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
16657 passing through the incoming points-to set.
16658 (handle_lhs_call): Use flags argument instead of recomputing it.
16659 (find_func_aliases_for_call): Call handle_lhs_call with proper
16662 2014-05-22 Jakub Jelinek <jakub@redhat.com>
16664 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
16665 all padding bits in REAL_VALUE_TYPE are cleared.
16667 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16669 Cleanup and improve multipass_dfa_lookahead_guard
16670 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
16671 (core2i7_first_cycle_multipass_begin,)
16672 (core2i7_first_cycle_multipass_issue,)
16673 (core2i7_first_cycle_multipass_backtrack): Update signature.
16674 * config/ia64/ia64.c
16675 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
16676 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
16677 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
16679 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
16680 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
16682 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
16684 * doc/tm.texi: Regenerate.
16686 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
16687 * haifa-sched.c (ready_try): Make signed to allow negative values.
16688 (rebug_ready_list_1): Update.
16689 (choose_ready): Simplify.
16690 (sched_extend_ready_list): Update.
16692 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16694 Remove IA64 speculation tweaking flags
16695 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
16696 speculation tuning flags.
16697 (msched-prefer-non-data-spec-insns,)
16698 (msched-prefer-non-control-spec-insns): Obsolete options.
16699 * haifa-sched.c (choose_ready): Remove handling of
16700 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16701 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
16702 and PREFER_NON_DATA_SPEC.
16703 * sel-sched.c (process_spec_exprs): Remove handling of
16704 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16706 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16708 Improve scheduling debug output
16709 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
16710 (advance_one_cycle): Update.
16711 (schedule_insn, queue_to_ready): Add debug printouts.
16712 (debug_ready_list_1): New static function.
16713 (debug_ready_list): Update.
16714 (max_issue): Add debug printouts.
16715 (dump_insn_stream): New static function.
16716 (schedule_block): Use it. Also better indent printouts.
16718 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16720 Fix sched_insn debug counter
16721 * haifa-sched.c (schedule_insn): Update.
16722 (struct haifa_saved_data): Add nonscheduled_insns_begin.
16723 (save_backtrack_point, restore_backtrack_point): Update.
16724 (first_nonscheduled_insn): New static function.
16725 (queue_to_ready, choose_ready): Use it.
16726 (schedule_block): Init nonscheduled_insns_begin.
16727 (sched_emit_insn): Update.
16730 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16732 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
16734 (aarch64_secondary_reload) : LikeWise.
16735 (aarch64_class_max_nregs) : Remove CORE_REGS.
16736 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
16737 (REG_CLASS_NAMES) : Likewise.
16738 (REG_CLASS_CONTENTS) : LikeWise.
16739 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
16741 2014-05-21 Guozhi Wei <carrot@google.com>
16744 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
16746 (vqdmulhq_n_s16): Likewise.
16748 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16750 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
16752 2014-05-21 Marek Polacek <polacek@redhat.com>
16755 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
16757 2014-05-21 Martin Jambor <mjambor@suse.cz>
16759 * doc/invoke.texi (Optimize Options): Document parameters
16760 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
16761 ipa-cp-array-index-hint-bonus.
16763 2014-05-21 Mark Wielaard <mjw@redhat.com>
16766 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
16767 version >= 3 or not strict DWARF.
16768 * langhooks.h (struct lang_hooks_for_types): Add
16769 enum_underlying_base_type.
16770 * langhooks.c (lhd_enum_underlying_base_type): New function.
16771 * gcc/langhooks.h (struct lang_hooks_for_types): Add
16772 enum_underlying_base_type.
16773 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
16774 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
16775 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
16777 2014-05-21 Richard Biener <rguenther@suse.de>
16779 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
16781 2014-05-21 John Marino <gnugcc@marino.st>
16783 * config.gcc (*-*-dragonfly*): New target.
16784 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
16785 * configure: Regenerate.
16786 * config/dragonfly-stdint.h: New.
16787 * config/dragonfly.h: New.
16788 * config/dragonfly.opt: New.
16789 * config/i386/dragonfly.h: New.
16790 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
16792 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16794 * tree.def (VOID_CST): New.
16795 * tree-core.h (TI_VOID): New.
16796 * tree.h (void_node): New.
16797 * tree.c (tree_node_structure_for_code, tree_code_size)
16798 (iterative_hash_expr): Handle VOID_CST.
16799 (build_common_tree_nodes): Initialize void_node.
16801 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
16803 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
16805 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
16807 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
16810 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
16811 flag_reorder_blocks_and_partition.
16812 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
16814 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16817 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
16819 (*addc_r_t): Add new insn_and_split.
16821 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16823 PR middle-end/61252
16824 * omp-low.c (handle_simd_reference): New function.
16825 (lower_rec_input_clauses): Use it. Defer adding reference
16826 initialization even for reduction without placeholder if in simd,
16827 handle it properly later on.
16829 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16831 PR tree-optimization/60899
16832 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
16833 assume all static symbols will have definition wile parsing and
16834 check the do have definition later in compilation; check that
16835 variable referring symbol will be output before concluding that
16836 reference is safe; be conservative for referring local statics;
16837 be more precise about when comdat is output in other partition.
16839 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16842 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
16844 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
16845 (ipa_inline): Loop inline_to_all_callers until no more aliases
16848 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16850 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
16851 set writeonly flag only for vars actually written to.
16853 2014-05-20 Dehao Chen <dehao@google.com>
16855 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
16856 and callee count to get clone count.
16857 * tree-inline.c (expand_call_inline): Use callee count instead of bb
16858 count in copy_body.
16860 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
16862 PR rtl-optimization/61243
16863 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
16865 2014-05-20 Xinliang David Li <davidxl@google.com>
16867 * cgraphunit.c (walk_polymorphic_call_targets): Add
16868 dbgcnt and fopt-info support.
16869 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
16870 * ipa-devirt.c (ipa_devirt): Ditto.
16871 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
16872 * ipa.c (walk_polymorphic_call_targets): Ditto.
16873 * gimple-fold.c (fold_gimple_assign): Ditto.
16874 (gimple_fold_call): Ditto.
16875 * dbgcnt.def: New counter.
16877 2014-05-20 DJ Delorie <dj@redhat.com>
16879 * config/msp430/msp430.md (split): Don't allow subregs when
16880 splitting SImode adds.
16881 (andneghi): Fix subtraction logic.
16882 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
16884 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16886 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
16888 * except.c (switch_to_exception_section, resolve_unique_section,
16889 get_named_text_section, default_function_rodata_section,
16890 align_variable, get_block_for_decl, default_section_type_flags):
16891 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
16892 * symtab.c (symtab_add_to_same_comdat_group,
16893 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
16894 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
16896 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
16897 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
16898 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16899 (c6x_function_in_section_p): Likewise.
16900 * config/darwin.c (machopic_select_section): Likewise.
16901 * config/arm/arm.c (arm_function_in_section_p): Likewise.
16902 * config/mips/mips.c (mips_function_rodata_section): Likewise.
16903 * config/mep/mep.c (mep_select_section): LIkewise.
16904 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16906 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
16908 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
16909 EH region of calls to pure functions that can throw an exception.
16910 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
16911 (copy_reference_ops_from_call): Also copy the EH region of the call if
16912 it can throw an exception.
16914 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16916 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
16917 nested VEC_SELECTs that are inverses of each other.
16919 2014-05-20 Richard Biener <rguenther@suse.de>
16921 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
16922 (extract_and_process_scc_for_name): not here.
16923 (cond_dom_walker::before_dom_children): Only process
16924 stmts that end the BB in interesting ways.
16925 (run_scc_vn): Mark param uses as visited.
16927 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16929 * config/arm/arm.md (arith_shiftsi): Do not predicate for
16932 2014-05-20 Nick Clifton <nickc@redhat.com>
16934 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
16935 (msp430_gimplify_va_arg_expr): New function.
16936 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
16938 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
16939 operand 0 in order to prevent confusion about the number of
16940 registers involved.
16942 2014-05-20 Richard Biener <rguenther@suse.de>
16944 PR tree-optimization/61221
16945 * tree-ssa-pre.c (el_to_update): Remove.
16946 (eliminate_dom_walker::before_dom_children): Handle released
16947 VDEFs by value-numbering them to the associated VUSE. Update
16948 stmt immediately for substituted call address.
16949 (eliminate): Remove delayed stmt updating code.
16950 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
16951 possibly late re-numbered vuses.
16952 (vn_reference_lookup_2): Adjust.
16953 (vn_reference_lookup_pieces): Likewise.
16954 (vn_reference_lookup): Likewise.
16956 2014-05-20 Richard Biener <rguenther@suse.de>
16958 * config.gcc: Remove need_64bit_hwint.
16959 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
16960 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
16962 * config.in: Regenerate.
16963 * configure: Likewise.
16965 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
16967 * doc/extend.texi: Create Label Attributes section,
16968 move all label attributes into it and reference it.
16970 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
16972 * arm.c (thumb1_reorg): When scanning backwards skip anything
16973 that's not a proper insn.
16975 2014-05-19 Richard Biener <rguenther@suse.de>
16977 PR tree-optimization/61221
16978 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16979 Do nothing for unreachable blocks.
16980 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
16981 Improve unreachability detection.
16983 2014-05-19 Richard Biener <rguenther@suse.de>
16985 PR tree-optimization/61209
16986 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
16988 2014-05-19 Nick Clifton <nickc@redhat.com>
16990 * except.c (init_eh): Fix computation of builtin setjmp buffer
16991 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
16993 2014-05-19 Richard Biener <rguenther@suse.de>
16995 PR tree-optimization/61184
16996 * tree-vrp.c (is_negative_overflow_infinity): Use
16997 TREE_OVERFLOW_P and do that check first.
16998 (is_positive_overflow_infinity): Likewise.
16999 (is_overflow_infinity): Likewise.
17000 (vrp_operand_equal_p): Properly treat operands with
17001 differing overflow as not equal.
17003 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
17005 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17006 shift simplification where it was intended.
17008 2014-05-19 Christian Bruel <christian.bruel@st.com>
17011 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17013 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
17016 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17019 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17021 * reg-notes.def (CROSSING_JUMP): Likewise.
17022 * rtl.h (rtx_def): Update comment for jump flag.
17023 (CROSSING_JUMP_P): Define.
17024 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17025 of a REG_CROSSING_JUMP note.
17026 * cfghooks.c (tidy_fallthru_edges): Likewise.
17027 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17028 * emit-rtl.c (try_split): Likewise.
17029 * haifa-sched.c (sched_create_recovery_edges): Likewise.
17030 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17031 * jump.c (redirect_jump_2): Likewise.
17032 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17033 (relax_delay_slots): Likewise.
17034 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17035 (bbit_di): Likewise.
17036 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17037 * config/sh/sh.md (jump_compact): Likewise.
17038 * bb-reorder.c (rotate_loop): Likewise.
17039 (pass_duplicate_computed_gotos::execute): Likewise.
17040 (add_reg_crossing_jump_notes): Rename to...
17041 (update_crossing_jump_flags): ...this.
17042 (pass_partition_blocks::execute): Update accordingly.
17044 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17046 * tree.h: Remove extraneous template <>.
17048 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17050 * ipa.c (symtab_remove_unreachable_nodes): Remove
17051 symbol from comdat group if its body was eliminated.
17052 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17053 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17054 (symtab_unregister_node): ... this one.
17055 (verify_symtab_base): More strict checking of comdats.
17056 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17058 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17060 * tree-pass.h (make_pass_ipa_comdats): New pass.
17061 * timevar.def (TV_IPA_COMDATS): New timevar.
17062 * passes.def (pass_ipa_comdats): Add.
17063 * Makefile.in (OBJS): Add ipa-comdats.o
17064 * ipa-comdats.c: New file.
17066 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17068 * ipa.c (update_visibility_by_resolution_info): New function.
17069 (function_and_variable_visibility): Use it.
17071 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
17073 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17075 (FOR_EACH_DEFINED_SYMBOL): New macro.
17076 (varpool_first_static_initializer, varpool_next_static_initializer,
17077 varpool_first_defined_variable, varpool_next_defined_variable):
17079 (symtab_in_same_comdat_p): Correctly deal with inline functions.
17081 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17083 * ggc-page.c (ggc_handle_finalizers): Add comment.
17085 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17087 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17088 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17089 (ggc_internal_cleared_alloc): Likewise.
17090 * ggc-page.c (finalizer): New class.
17091 (vec_finalizer): Likewise.
17092 (globals::finalizers): New member.
17093 (globals::vec_finalizers): Likewise.
17094 (ggc_internal_alloc): Record the finalizer if any for the block being
17096 (ggc_handle_finalizers): New function.
17097 (ggc_collect): Call ggc_handle_finalizers.
17098 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17100 (ggc_internal_cleared_alloc): Likewise.
17101 (finalize): New function.
17102 (need_finalization_p): Likewise.
17103 (ggc_alloc): Install the type's destructor as the finalizer if it
17104 might do something.
17105 (ggc_cleared_alloc): Likewise.
17106 (ggc_vec_alloc): Likewise.
17107 (ggc_cleared_vec_alloc): Likewise.
17109 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17111 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17113 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17115 * alias.c (record_alias_subset): Adjust.
17116 * bitmap.c (bitmap_element_allocate): Likewise.
17117 (bitmap_gc_alloc_stat): Likewise.
17118 * cfg.c (init_flow): Likewise.
17119 (alloc_block): Likewise.
17120 (unchecked_make_edge): Likewise.
17121 * cfgloop.c (alloc_loop): Likewise.
17122 (flow_loops_find): Likewise.
17123 (rescan_loop_exit): Likewise.
17124 * cfgrtl.c (init_rtl_bb_info): Likewise.
17125 * cgraph.c (insert_new_cgraph_node_version): Likewise.
17126 (cgraph_allocate_node): Likewise.
17127 (cgraph_create_edge_1): Likewise.
17128 (cgraph_allocate_init_indirect_info): Likewise.
17129 * cgraphclones.c (cgraph_clone_edge): Likewise.
17130 * cgraphunit.c (add_asm_node): Likewise.
17131 (init_lowered_empty_function): Likewise.
17132 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17133 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17134 (alpha_use_linkage): Likewise.
17135 * config/arc/arc.c (arc_init_machine_status): Likewise.
17136 * config/arm/arm.c (arm_init_machine_status): Likewise.
17137 * config/avr/avr.c (avr_init_machine_status): Likewise.
17138 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17139 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17140 * config/cris/cris.c (cris_init_machine_status): Likewise.
17141 * config/darwin.c (machopic_indirection_name): Likewise.
17142 (darwin_build_constant_cfstring): Likewise.
17143 (darwin_enter_string_into_cfstring_table): Likewise.
17144 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17145 * config/frv/frv.c (frv_init_machine_status): Likewise.
17146 * config/i386/i386.c (get_dllimport_decl): Likewise.
17147 (ix86_init_machine_status): Likewise.
17148 (assign_386_stack_local): Likewise.
17149 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17150 (i386_pe_maybe_record_exported_symbol): Likewise.
17151 (i386_pe_record_stub): Likewise.
17152 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17153 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17154 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17155 (m32c_note_pragma_address): Likewise.
17156 * config/mep/mep.c (mep_init_machine_status): Likewise.
17157 (mep_note_pragma_flag): Likewise.
17158 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17159 (mips16_local_alias): Likewise.
17160 (mips_init_machine_status): Likewise.
17161 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17162 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17163 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17164 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17165 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17166 * config/pa/pa.c (pa_init_machine_status): Likewise.
17167 (pa_get_deferred_plabel): Likewise.
17168 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17169 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17170 (rs6000_init_machine_status): Likewise.
17171 (output_toc): Likewise.
17172 * config/s390/s390.c (s390_init_machine_status): Likewise.
17173 * config/score/score.c (score_output_external): Likewise.
17174 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17175 * config/spu/spu.c (spu_init_machine_status): Likewise.
17176 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17177 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17178 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17179 * coverage.c (coverage_end_function): Likewise.
17180 * dbxout.c (dbxout_init): Likewise.
17181 * doc/gty.texi: Don't mention variable_size attribute.
17182 * dwarf2cfi.c (new_cfi): Adjust.
17183 (new_cfi_row): Likewise.
17184 (copy_cfi_row): Likewise.
17185 (create_cie_data): Likewise.
17186 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17187 (new_loc_descr): Likewise.
17188 (find_AT_string_in_table): Likewise.
17189 (add_addr_table_entry): Likewise.
17190 (new_die): Likewise.
17191 (add_var_loc_to_decl): Likewise.
17192 (clone_die): Likewise.
17193 (clone_as_declaration): Likewise.
17194 (break_out_comdat_types): Likewise.
17195 (new_loc_list): Likewise.
17196 (add_loc_descr_to_each): Likewise.
17197 (add_location_or_const_value_attribute): Likewise.
17198 (add_linkage_name): Likewise.
17199 (lookup_filename): Likewise.
17200 (dwarf2out_var_location): Likewise.
17201 (new_line_info_table): Likewise.
17202 (dwarf2out_init): Likewise.
17203 (mem_loc_descriptor): Likewise.
17204 (loc_descriptor): Likewise.
17205 (add_const_value_attribute): Likewise.
17206 (tree_add_const_value_attribute): Likewise.
17207 (comp_dir_string): Likewise.
17208 (dwarf2out_vms_debug_main_pointer): Likewise.
17209 (string_cst_pool_decl): Likewise.
17210 * emit-rtl.c (set_mem_attrs): Likewise.
17211 (get_reg_attrs): Likewise.
17212 (start_sequence): Likewise.
17213 (init_emit): Likewise.
17214 (init_emit_regs): Likewise.
17215 * except.c (init_eh_for_function): Likewise.
17216 (gen_eh_region): Likewise.
17217 (gen_eh_region_catch): Likewise.
17218 (gen_eh_landing_pad): Likewise.
17219 (add_call_site): Likewise.
17220 * function.c (add_frame_space): Likewise.
17221 (insert_temp_slot_address): Likewise.
17222 (assign_stack_temp_for_type): Likewise.
17223 (get_hard_reg_initial_val): Likewise.
17224 (allocate_struct_function): Likewise.
17225 (prepare_function_start): Likewise.
17226 (types_used_by_var_decl_insert): Likewise.
17227 * gengtype.c (variable_size_p): Remove function.
17228 (enum alloc_quantity): Remove enum.
17229 (write_typed_alloc_def): Remove function.
17230 (write_typed_struct_alloc_def): Likewise.
17231 (write_typed_typedef_alloc_def): Likewise.
17232 (write_typed_alloc_defns): Likewise.
17234 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17235 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17236 * ggc.h (ggc_alloc): new function.
17237 (ggc_cleared_alloc): Likewise.
17238 (ggc_vec_alloc): Template on type of vector element, and remove
17239 element size argument.
17240 (ggc_cleared_vec_alloc): Likewise.
17241 * gimple.c (gimple_build_omp_for): Adjust.
17242 (gimple_copy): Likewise.
17243 * ipa-cp.c (get_replacement_map): Likewise.
17244 (find_aggregate_values_for_callers_subset): Likewise.
17245 (known_aggs_to_agg_replacement_list): Likewise.
17246 * ipa-devirt.c (get_odr_type): Likewise.
17247 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17248 (read_agg_replacement_chain): Likewise.
17249 * loop-iv.c (get_simple_loop_desc): Likewise.
17250 * lto-cgraph.c (input_node_opt_summary): Likewise.
17251 * lto-section-in.c (lto_new_in_decl_state): Likewise.
17252 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17253 (input_eh_region): Likewise.
17254 (input_eh_lp): Likewise.
17255 (input_cfg): Likewise.
17256 * optabs.c (set_optab_libfunc): Likewise.
17257 (init_tree_optimization_optabs): Likewise.
17258 (set_conv_libfunc): Likewise.
17259 * passes.c (do_per_function_toporder): Likewise.
17260 * rtl.h: Don't use variable_size gty attribute.
17261 * sese.c (if_region_set_false_region): Adjust.
17262 * stringpool.c (gt_pch_save_stringpool): Likewise.
17263 * target-globals.c (save_target_globals): Likewise.
17264 * toplev.c (general_init): Likewise.
17265 * trans-mem.c (record_tm_replacement): Likewise.
17266 (split_bb_make_tm_edge): Likewise.
17267 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17268 * tree-data-ref.h (lambda_vector_new): Likewise.
17269 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17270 * tree-iterator.c (tsi_link_before): Likewise.
17271 (tsi_link_after): Likewise.
17272 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17273 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17274 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17275 * tree-ssa-operands.h: Don't use variable_size gty attribute.
17276 * tree-ssa.c (init_tree_ssa): Adjust.
17277 * tree-ssanames.c (set_range_info): Likewise.
17278 (get_ptr_info): Likewise.
17279 (duplicate_ssa_name_ptr_info): Likewise.
17280 (duplicate_ssa_name_range_info): Likewise.
17281 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17282 (unpack_ts_fixed_cst_value_fields): Likewise.
17283 * tree.c (build_fixed): Likewise.
17284 (build_real): Likewise.
17285 (build_string): Likewise.
17286 (decl_priority_info): Likewise.
17287 (decl_debug_expr_insert): Likewise.
17288 (decl_value_expr_insert): Likewise.
17289 (decl_debug_args_insert): Likewise.
17290 (type_hash_add): Likewise.
17291 (build_omp_clause): Likewise.
17292 * ubsan.c (decl_for_type_insert): Likewise.
17293 * varasm.c (get_unnamed_section): Likewise.
17294 (get_noswitch_section): Likewise.
17295 (get_section): Likewise.
17296 (get_block_for_section): Likewise.
17297 (create_block_symbol): Likewise.
17298 (build_constant_desc): Likewise.
17299 (create_constant_pool): Likewise.
17300 (force_const_mem): Likewise.
17301 (record_tm_clone_pair): Likewise.
17302 * varpool.c (varpool_create_empty_node): Likewise.
17304 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17306 * dwarf2out.c (tree_add_const_value_attribute): Call
17307 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17308 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17309 instead of ggc_internal_<x>alloc_stat.
17310 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17311 (ggc_realloc): Likewise.
17312 * ggc-none.c (ggc_internal_alloc): Likewise.
17313 (ggc_internal_cleared_alloc): Likewise.
17314 * ggc-page.c: Likewise.
17315 * ggc.h (ggc_internal_alloc_stat): Likewise.
17316 (ggc_internal_alloc): Remove macro.
17317 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17318 (ggc_internal_cleared_alloc): Remove macro.
17319 (GGC_RESIZEVEC): Adjust.
17320 (ggc_resizevar): Remove macro.
17321 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17322 (ggc_internal_cleared_vec_alloc_stat): Likewise.
17323 (ggc_internal_vec_cleared_alloc): Remove macro.
17324 (ggc_alloc_atomic_stat): Drop _stat suffix.
17325 (ggc_alloc_atomic): Remove macro.
17326 (ggc_alloc_cleared_atomic): Remove macro.
17327 (ggc_alloc_string_stat): Drop _stat suffix.
17328 (ggc_alloc_string): Remove macro.
17329 (ggc_alloc_rtx_def_stat): Adjust.
17330 (ggc_alloc_tree_node_stat): Likewise.
17331 (ggc_alloc_cleared_tree_node_stat): Likewise.
17332 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17333 (ggc_alloc_cleared_simd_clone_stat): Likewise.
17334 * gimple.c (gimple_build_omp_for): Likewise.
17335 (gimple_copy): Likewise.
17336 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17337 * toplev.c (realloc_for_line_map): Adjust.
17338 * tree-data-ref.h (lambda_vector_new): Likewise.
17339 * tree-phinodes.c (allocate_phi_node): Likewise.
17340 * tree.c (grow_tree_vec_stat): Likewise.
17341 * vec.h (va_gc::reserve): Adjust.
17343 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
17345 * config/microblaze/microblaze.c (break_handler): New Declaration.
17346 (microblaze_break_function_p,microblaze_is_break_handler): New.
17347 (compute_frame_size): Use microblaze_break_function_p.
17348 Add the test of break_handler.
17349 (microblaze_function_prologue) : Add the test of variable
17350 break_handler. Check the fnname by BREAK_HANDLER_NAME.
17351 (microblaze_function_epilogue) : Add the test of break_handler.
17352 (microblaze_globalize_label) : Add the test of break_handler.
17353 Check the name by BREAK_HANDLER_NAME.
17355 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17357 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17358 microblaze_is_break_handler test.
17359 (call_internal1,call_value_intern): Use microblaze_break_function_p.
17360 Use SYMBOL_REF_DECL.
17362 * config/microblaze/microblaze-protos.h
17363 (microblaze_break_function_p,microblaze_is_break_handler):
17366 * doc/extend.texi (MicroBlaze break_handler Functions): Document
17367 new MicroBlaze break_handler functions.
17369 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17371 * doc/extend.texi (Size of an asm): Move node text according
17372 to its @menu entry position.
17374 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
17376 PR tree-optimization/61140
17377 PR tree-optimization/61150
17378 PR tree-optimization/61197
17379 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17381 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17383 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
17385 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
17387 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17388 __SIZEOF_INT128__ is defined.
17390 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17392 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17393 (rs6000_delegitimize_address): Use it.
17395 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17397 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17398 inplace argument. Store the new address in the original MEM when true.
17399 * emit-rtl.c (change_address_1): Likewise.
17400 (adjust_address_1, adjust_automodify_address_1, offset_address):
17401 Update accordingly.
17402 * rtl.h (plus_constant): Add an inplace argument.
17403 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
17404 when true. Avoid generating (plus X (const_int 0)).
17405 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17406 in-place. Pass true to plus_constant.
17407 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17409 2014-05-16 Dehao Chen <dehao@google.com>
17411 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17413 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17416 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17418 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17420 2014-05-16 Dehao Chen <dehao@google.com>
17422 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17423 optimize_function_for_size_p.
17424 * regs.h (REG_FREQ_FROM_BB): Likewise.
17426 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17429 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17430 negt_reg_operand cases.
17431 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17433 * config/sh/predicates.md (cbranch_treg_value): Simplify.
17435 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17437 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17440 2014-05-16 David Malcolm <dmalcolm@redhat.com>
17443 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17445 * tree-cfg.c (dump_function_to_file): Dump the return type of
17446 functions, in a line to itself before the function body, mimicking
17447 the layout of a C function.
17449 2014-05-16 Dehao Chen <dehao@google.com>
17451 * cfghooks.c (make_forwarder_block): Use direct computation to
17452 get fall-through edge's count and frequency.
17454 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
17456 * config/arc/arc.c (arc_init): Fix typo in error message.
17457 * config/i386/i386.c (ix86_expand_builtin): Likewise.
17458 (split_stack_prologue_scratch_regno): Likewise.
17459 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17460 word from error message.
17462 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17464 * ira-costs.c: Fix typo in comment.
17466 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
17468 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17470 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
17472 * varpool.c (dump_varpool_node): Dump write-only flag.
17473 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17475 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17476 write-only variables.
17477 * ipa.c (process_references): New function.
17478 (set_readonly_bit): New function.
17479 (set_writeonly_bit): New function.
17480 (clear_addressable_bit): New function.
17481 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17482 fix handling of aliases.
17483 * cgraph.h (struct varpool_node): Add writeonly flag.
17485 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
17487 PR rtl-optimization/60969
17488 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17489 Calculate costs for this case.
17491 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
17493 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17494 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17496 2014-05-16 Richard Biener <rguenther@suse.de>
17498 PR tree-optimization/61194
17499 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17500 bool patterns ending in a COND_EXPR.
17502 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17504 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17506 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17508 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17509 where we were unable to cost an RTX.
17511 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17516 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17517 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
17521 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17522 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17524 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
17525 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
17527 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17528 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17530 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
17533 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17534 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17536 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17539 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17540 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17542 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
17543 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
17545 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17546 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17548 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17549 rotates and shifts.
17551 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17552 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
17555 ZERO_EXTEND and SIGN_EXTEND better.
17557 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17558 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
17561 logical operations.
17563 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17564 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17566 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
17567 costs when costing loads and stores to memory.
17569 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17570 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
17572 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
17575 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17577 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
17579 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17580 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17582 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
17584 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
17586 (aarch64_rtx_mult_cost): New.
17587 (aarch64_rtx_costs): Use it, refactor as appropriate.
17589 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17590 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17592 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
17593 emit instructions, return number of instructions which would
17595 (aarch64_add_constant): Update call to aarch64_build_constant.
17596 (aarch64_output_mi_thunk): Likewise.
17597 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
17600 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17602 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
17603 (TARGET_RTX_COSTS): Call it.
17605 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17607 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
17608 (cortexa57_vector_cost): Likewise.
17609 (cortexa57_tunings): Use them.
17611 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17613 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
17614 (cpu_addrcost_table): Use it.
17615 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
17616 (aarch64_address_cost): Rewrite using aarch64_classify_address,
17619 2014-05-16 Richard Biener <rguenther@suse.de>
17621 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
17622 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
17623 (visit_phi): Ignore edges marked as not executable.
17624 (class cond_dom_walker): New.
17625 (cond_dom_walker::before_dom_children): Value-number
17626 control statements and mark successor edges as not
17627 executable if possible.
17628 (run_scc_vn): First walk all control statements in
17629 dominator order, marking edges as not executable.
17630 * tree-inline.c (copy_edges_for_bb): Be not confused
17631 about random edge flags.
17633 2014-05-16 Richard Biener <rguenther@suse.de>
17635 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
17637 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
17640 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
17641 (__TM_simple_begin): Use it.
17642 (__TM_begin): Likewise.
17644 2014-05-15 Martin Jambor <mjambor@suse.cz>
17647 * ipa-prop.c (update_indirect_edges_after_inlining): Check
17648 type_preserved flag when the indirect edge is polymorphic.
17650 2014-05-15 Martin Jambor <mjambor@suse.cz>
17652 PR tree-optimization/61090
17653 * tree-sra.c (sra_modify_expr): Pass the current gsi to
17654 build_ref_for_model.
17656 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17658 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
17659 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
17661 2014-05-15 Jakub Jelinek <jakub@redhat.com>
17663 PR tree-optimization/61158
17664 * fold-const.c (fold_binary_loc): If X is zero-extended and
17665 shiftc >= prec, make sure zerobits is all ones instead of
17666 invoking undefined behavior.
17668 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17670 * regcprop.h: New file.
17671 * regcprop.c (skip_debug_insn_p): New decl.
17672 (replace_oldest_value_reg): Check skip_debug_insn_p.
17673 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
17674 * shrink-wrap.c: Include regcprop.h.
17675 (prepare_shrink_wrap): Call
17676 copyprop_hardreg_forward_bb_without_debug_insn.
17678 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17680 * shrink-wrap.h: Update comment.
17681 * shrink-wrap.c: Update comment.
17682 (next_block_for_reg): Rename to live_edge_for_reg.
17683 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
17684 (move_insn_for_shrink_wrap): Split live_edge.
17685 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
17687 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
17689 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
17691 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
17692 * config/sparc/sparc.md (fptype_ut699): New attribute.
17693 (in_branch_delay): Return false if -mfix-ut699 is specified and
17694 fptype_ut699 is set to single.
17695 (truncdfsf2): Add fptype_ut699 attribute.
17696 (fix_truncdfsi2): Likewise.
17697 (floatsisf2): Change fptype attribute.
17698 (fix_truncsfsi2): Likewise.
17699 (negtf2_notv9): Delete.
17700 (negtf2_v9): Likewise.
17701 (negtf2_hq): New instruction.
17702 (negtf2): New instruction and splitter.
17703 (negdf2_notv9): Rewrite.
17704 (abstf2_notv9): Delete.
17705 (abstf2_hq_v9): Likewise.
17706 (abstf2_v9): Likewise.
17707 (abstf2_hq): New instruction.
17708 (abstf2): New instruction and splitter.
17709 (absdf2_notv9): Rewrite.
17711 2014-05-14 Cary Coutant <ccoutant@google.com>
17714 * opts.c (common_handle_option): Don't special-case "-g".
17715 (set_debug_level): Default to at least level 2 with "-g".
17717 2014-05-14 DJ Delorie <dj@redhat.com>
17719 * config/msp430/msp430.c (msp430_builtin): Add
17720 MSP430_BUILTIN_DELAY_CYCLES.
17721 (msp430_init_builtins): Register void __delay_cycles(long long).
17722 (msp430_builtin_decl): Add it.
17723 (cg_magic_constant): New.
17724 (msp430_expand_delay_cycles): New.
17725 (msp430_expand_builtin): Call it.
17726 (msp430_print_operand_raw): Change integer printing from "int" to
17728 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
17729 (delay_cycles_start): New.
17730 (delay_cycles_end): New.
17731 (delay_cycles_32): New.
17732 (delay_cycles_32x): New.
17733 (delay_cycles_16): New.
17734 (delay_cycles_16x): New.
17735 (delay_cycles_2): New.
17736 (delay_cycles_1): New.
17737 * doc/extend.texi: Document __delay_cycles().
17739 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
17741 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
17742 length attribute computation.
17744 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
17747 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
17749 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
17752 * config/sparc/sparc.md: Fix types of low and high in DI constant
17753 splitter. Use gen_int_mode in some other splitters.
17755 2014-05-14 Martin Jambor <mjambor@suse.cz>
17758 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
17760 2014-05-14 James Norris <jnorris@codesourcery.com>
17762 * omp-low.c (expand_parallel_call): Remove shadow variable.
17763 (expand_omp_taskreg): Likewise.
17765 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
17767 * common/config/i386/i386-common.c
17768 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
17769 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
17770 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
17771 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
17772 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
17773 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
17774 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
17775 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
17776 xsavecintrin.h, xsavesintrin.h.
17777 (x86_64-*-*): Ditto.
17778 * config/i386/clflushoptintrin.h: New.
17779 * config/i386/xsavecintrin.h: Ditto.
17780 * config/i386/xsavesintrin.h: Ditto.
17781 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
17782 (bit_XSAVES): Ditto.
17783 (bit_XSAVES): Ditto.
17784 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17785 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
17787 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17788 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
17789 OPTION_MASK_ISA_XSAVES.
17790 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
17791 -mxsavec, -mxsaves.
17792 (PTA_CLFLUSHOPT) Define.
17793 (PTA_XSAVEC): Ditto.
17794 (PTA_XSAVES): Ditto.
17795 (ix86_option_override_internal): Handle new options.
17796 (ix86_valid_target_attribute_inner_p): Ditto.
17797 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
17798 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
17799 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
17800 (bdesc_special_args): Add __builtin_ia32_xsaves,
17801 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
17802 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
17803 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
17804 (ix86_expand_builtin): Handle new builtins.
17805 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
17806 (TARGET_CLFLUSHOPT_P): Ditto.
17807 (TARGET_XSAVEC): Ditto.
17808 (TARGET_XSAVEC_P): Ditto.
17809 (TARGET_XSAVES): Ditto.
17810 (TARGET_XSAVES_P): Ditto.
17811 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
17812 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
17813 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
17815 (ANY_XRSTOR64): Ditto.
17817 (xrstor): Change into <xrstor>.
17818 (xrstor_rex64): Change into <xrstor>_rex64.
17819 (xrstor64): Change into <xrstor>64
17821 * config/i386/i386.opt (mclflushopt): New.
17824 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
17826 * doc/invoke.texi: Document new options.
17828 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
17830 PR rtl-optimization/60866
17831 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
17832 Default it to -1. Pass it down to init_simplejump_data.
17833 (init_simplejump_data): New parameter old_seqno. Pass it down
17834 to get_seqno_for_a_jump.
17835 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
17836 initializing new jump seqno as a last resort. Add comment.
17837 (sel_redirect_edge_and_branch): Save old seqno of the conditional
17838 jump and pass it down to sel_init_new_insn.
17839 (sel_redirect_edge_and_branch_force): Likewise.
17841 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
17843 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
17844 shifted values to avoid build warning.
17846 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
17848 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
17849 * cfgrtl.c (rtl_merge_blocks): Fix comment.
17850 (cfg_layout_merge_blocks): Likewise.
17851 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
17853 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
17855 PR rtl-optimization/60901
17856 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
17857 bb predecessor belongs to the same scheduling region. Adjust comment.
17859 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
17861 * doc/sourcebuild.texi: (dfp_hw): Document.
17862 (p8vector_hw): Likewise.
17863 (powerpc_eabi_ok): Likewise.
17864 (powerpc_elfv2): Likewise.
17865 (powerpc_htm_ok): Likewise.
17866 (ppc_recip_hw): Likewise.
17867 (vsx_hw): Likewise.
17869 2014-05-13 Cary Coutant <ccoutant@google.com>
17871 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
17873 2014-05-13 David Malcolm <dmalcolm@redhat.com>
17875 * gengtype-parse.c (require3): Eliminate in favor of...
17877 (require_template_declaration): Update to support optional single *
17880 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
17881 (create_user_defined_type): Handle a single level of explicit
17882 pointerness within template arguments.
17883 (struct write_types_data): Add field "kind".
17884 (filter_type_name): Handle "*" character.
17885 (write_user_func_for_structure_ptr): Require a write_types_data
17886 rather than just a prefix string, so that we can look up the kind
17887 of the wtd and use it as an index into wrote_user_func_for_ptr,
17888 ensuring that such functions are written at most once. Support
17889 subclasses by invoking the marking function of the ultimate base class.
17890 (write_user_func_for_structure_body): Require a write_types_data
17891 rather than just a prefix string, so that we can pass this to
17892 write_user_func_for_structure_ptr.
17893 (write_func_for_structure): Likewise.
17894 (ggc_wtd): Add initializer of new "kind" field.
17895 (pch_wtd): Likewise.
17897 * gengtype.h (enum write_types_kinds): New.
17898 (struct type): Add field wrote_user_func_for_ptr to the "s"
17901 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
17903 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
17904 instead of const_binop.
17905 (fold_binary_loc): Likewise.
17907 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
17909 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
17910 calculation to match get_ref_base_and_extent.
17912 2014-05-13 Catherine Moore <clm@codesourcery.com>
17913 Sandra Loosemore <sandra@codesourcery.com>
17915 * configure.ac: Fix assembly for explicit JALR relocation check.
17916 * configure: Regenerate.
17918 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17920 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
17921 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
17922 Remove associated type declarations and initialisations.
17923 (arm_expand_neon_builtin): Likewise.
17924 (neon_emit_pair_result_insn): Delete.
17925 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
17926 * config/arm/neon.md (neon_vtrn<mode>): Delete.
17927 (neon_vzip<mode>): Likewise.
17928 (neon_vuzp<mode>): Likewise.
17930 2014-05-13 Richard Biener <rguenther@suse.de>
17933 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
17934 it needs revisiting whether the call still may be tail-called.
17936 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17938 * rtl.def (SYMBOL_REF): Remove middle "0" field.
17939 * rtl.h (block_symbol): Reduce number of fields to 2.
17940 (rtx_def): Add u2.symbol_ref_flags.
17941 (SYMBOL_REF_FLAGS): Use it.
17942 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
17943 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
17944 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
17945 Lower index of SYMBOL_REF_DATA.
17946 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
17947 Print SYMBOL_REF_FLAGS at the same time.
17948 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
17950 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17952 * rtl.def (VAR_LOCATION): Remove "i" field.
17953 * rtl.h (rtx_def): Add u2.var_location_status.
17954 (PAT_VAR_LOCATION_STATUS): Use it.
17955 (gen_rtx_VAR_LOCATION): Declare.
17956 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
17957 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
17958 * var-tracking.c (emit_note_insn_var_location): Remove casts.
17960 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17962 * rtl.def (scratch): Fix outdated comment and remove "0" field.
17963 * gengtype.c (adjust_field_rtx_def): Update accordingly.
17965 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17967 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
17968 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
17969 * rtl.h (rtx_def): Add insn_uid to u2 field.
17970 (RTX_FLAG_CHECK8): Delete in favor of...
17971 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
17972 (INSN_DELETED_P): Update accordingly.
17973 (INSN_UID): Use u2.insn_uid.
17974 (INSN_CHAIN_CODE_P): Define.
17975 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
17976 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
17977 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
17978 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
17979 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
17980 indices accordingly.
17981 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
17982 Update indices for insn-chain rtxes.
17983 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
17984 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
17985 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
17986 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
17987 * combine.c (try_combine): Likewise.
17988 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17990 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17992 * rtl.def (REG): Remove middle field.
17993 * rtl.h (rtx_def): Add orignal_regno to u2.
17994 (ORIGINAL_REGNO): Use it instead of field 1.
17995 (REG_ATTRS): Lower field index accordingly.
17996 * gengtype.c (adjust_field_rtx_def): Remove handling of
17997 ORIGINAL_REGNO. Move REG_ATTRS index down.
17998 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
17999 code that prints the REGNO.
18001 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18003 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18006 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
18008 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18010 2014-05-13 Bin Cheng <bin.cheng@arm.com>
18012 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18013 (alloc_iv): Lower base expressions containing ADDR_EXPR.
18015 2014-05-13 Ian Bolton <ian.bolton@arm.com>
18017 * config/aarch64/aarch64-protos.h
18018 (aarch64_hard_regno_caller_save_mode): New prototype.
18019 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18021 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18023 2014-05-13 Christian Bruel <christian.bruel@st.com>
18025 * target.def (mode_switching): New hook vector.
18026 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18027 (mode_exit, modepriority_to_mode): Likewise.
18028 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18029 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18030 * target.h: Include tm.h and hard-reg-set.h.
18031 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18032 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18033 * doc/tm.texi Regenerate.
18034 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18035 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18036 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18037 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18038 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18039 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18040 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18041 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18042 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18043 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18044 (ix86_emit_mode_set): Hookify.
18045 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18047 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18048 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18049 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18050 (epiphany_mode_priority_to_mode): Remove declaration.
18051 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18052 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18053 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18055 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
18056 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18057 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18059 2014-05-13 Jakub Jelinek <jakub@redhat.com>
18062 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18063 is const0_rtx, return immediately. Don't test count == 0 when
18066 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18068 * Makefile.in: add shrink-wrap.o.
18069 * config/i386/i386.c: include "shrink-wrap.h"
18070 * function.c: Likewise.
18071 (requires_stack_frame_p, next_block_for_reg,
18072 move_insn_for_shrink_wrap, prepare_shrink_wrap,
18073 dup_block_and_redirect): Move to shrink-wrap.c
18074 (thread_prologue_and_epilogue_insns): Extract three code segments
18075 as functions in shrink-wrap.c
18076 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18078 * shrink-wrap.c: New file.
18079 * shrink-wrap.h: New file.
18081 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18083 * doc/extend.texi: Reflect current numbers of pragmas. Remove
18084 reference to Solaris.
18086 2014-05-12 Mike Stump <mikestump@comcast.net>
18089 * genattrtab.c (filename): Add.
18090 (convert_set_attr_alternative): Improve error message.
18091 (check_defs): Restore read_md_filename for error messages.
18092 (gen_insn): Save filename.
18094 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
18096 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18097 -fno-local-ivars and -fivar-visibility.
18098 * c-family/c.opt: Make -Wshadow also implicitly enable
18101 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
18103 * doc/tm.texi: Remove reference to deleted macro.
18104 * doc/tm.texi.in: Likewise.
18106 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18109 * config/avr/avr.c (avr_out_store_psi): Use correct constant
18112 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
18115 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18116 * config/arm/aout.h (License): Same.
18117 * config/arm/bpabi.h (License): Same.
18118 * config/arm/elf.h (License): Same.
18119 * config/arm/linux-elf.h (License): Same.
18120 * config/arm/linux-gas.h (License): Same.
18121 * config/arm/netbsd-elf.h (License): Same.
18122 * config/arm/uclinux-eabi.h (License): Same.
18123 * config/arm/uclinux-elf.h (License): Same.
18124 * config/arm/vxworks.h (License): Same.
18126 2014-05-11 Jakub Jelinek <jakub@redhat.com>
18128 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18129 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18130 number of operands to 3.
18131 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18132 * tree-nested.c (convert_nonlocal_omp_clauses,
18133 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18134 * gimplify.c (gimplify_scan_omp_clauses): Handle
18135 OMP_CLAUSE_LINEAR_STMT.
18136 * omp-low.c (lower_rec_input_clauses): Fix typo.
18137 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18138 cast between Fortran boolean_type_node and C _Bool if
18141 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
18143 PR tree-optimization/61136
18144 * wide-int.h (multiple_of_p): Define a version that doesn't return
18146 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18147 integer_zerop/const_binop pair.
18148 (multiple_of_p): Likewise, converting both operands to widest_int
18151 2014-05-09 Teresa Johnson <tejohnson@google.com>
18153 * cgraphunit.c (analyze_functions): Use correct dump file.
18155 2014-05-09 Florian Weimer <fweimer@redhat.com>
18157 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18159 (stack_protect_return_slot_p): New function.
18160 (expand_used_vars): Call stack_protect_decl_p and
18161 stack_protect_return_slot_p for -fstack-protector-strong.
18163 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
18164 Andrew Haley <aph@redhat.com>
18165 Richard Sandiford <rdsandiford@googlemail.com>
18167 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18170 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
18172 PR middle-end/61111
18173 * fold-const.c (fold_binary_loc): Changed width of mask.
18175 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18177 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18178 unsigned int initializers for regno_in, regno_out.
18180 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
18183 * config/avr/avr.md (cc): Add new attribute set_vzn.
18184 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18185 Set cc insn attribute to set_vzn instead of set_zn for alternatives
18186 with INC, DEC or NEG.
18187 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18188 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18189 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18191 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18194 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18196 * wide-int.cc (UTItype): Define.
18197 (UDWtype): Define for appropriate W_TYPE_SIZE.
18199 2014-05-09 Richard Biener <rguenther@suse.de>
18201 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18202 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18203 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18204 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18205 ssa_propagate): Adjust.
18207 2014-05-08 Jeff Law <law@redhat.com>
18209 PR tree-optimization/61009
18210 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18211 tri-state rather than a boolean. When a block is too big to
18212 thread through, inform caller via negative return value.
18213 (thread_across_edge): If a block was too big for normal threading,
18214 then it's too big for a joiner too, so remove temporary equivalences
18215 and return immediately.
18217 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
18218 Matthias Klose <doko@ubuntu.com>
18221 * optc-gen.awk: Fix option handling for -Wunused-parameter.
18223 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18226 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18228 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
18231 * config/alpha/alpha.c: Include gimple-iterator.h.
18232 (alpha_gimple_fold_builtin): New function. Move
18233 ALPHA_BUILTIN_UMULH folding from ...
18234 (alpha_fold_builtin): ... here.
18235 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18237 2014-05-08 Wei Mi <wmi@google.com>
18240 * config/i386/i386.c (ix86_compute_frame_layout): Update
18241 preferred_stack_boundary for call, expanded from tls descriptor.
18242 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18243 to depend on SP register.
18244 (*tls_local_dynamic_base_32_gnu): Ditto.
18245 (*tls_local_dynamic_32_once): Ditto.
18246 (tls_global_dynamic_64_<mode>): Set
18247 ix86_tls_descriptor_calls_expanded_in_cfun.
18248 (tls_local_dynamic_base_64_<mode>): Ditto.
18249 (tls_global_dynamic_32): Set
18250 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18251 to depend on SP register.
18252 (tls_local_dynamic_base_32): Ditto.
18254 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18256 * config/arm/arm_neon.h: Update comment.
18257 * config/arm/neon-docgen.ml: Delete.
18258 * config/arm/neon-gen.ml: Delete.
18259 * doc/arm-neon-intrinsics.texi: Update comment.
18261 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18263 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18265 (vand, vorr, veor, vorn, vbic): Remove.
18266 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18268 (neon_vsub_unspec): Likewise.
18269 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18271 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18273 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18274 (vadd_s16): Likewise.
18275 (vadd_s32): Likewise.
18276 (vadd_f32): Likewise.
18277 (vadd_u8): Likewise.
18278 (vadd_u16): Likewise.
18279 (vadd_u32): Likewise.
18280 (vadd_s64): Likewise.
18281 (vadd_u64): Likewise.
18282 (vaddq_s8): Likewise.
18283 (vaddq_s16): Likewise.
18284 (vaddq_s32): Likewise.
18285 (vaddq_s64): Likewise.
18286 (vaddq_f32): Likewise.
18287 (vaddq_u8): Likewise.
18288 (vaddq_u16): Likewise.
18289 (vaddq_u32): Likewise.
18290 (vaddq_u64): Likewise.
18291 (vmul_s8): Likewise.
18292 (vmul_s16): Likewise.
18293 (vmul_s32): Likewise.
18294 (vmul_f32): Likewise.
18295 (vmul_u8): Likewise.
18296 (vmul_u16): Likewise.
18297 (vmul_u32): Likewise.
18298 (vmul_p8): Likewise.
18299 (vmulq_s8): Likewise.
18300 (vmulq_s16): Likewise.
18301 (vmulq_s32): Likewise.
18302 (vmulq_f32): Likewise.
18303 (vmulq_u8): Likewise.
18304 (vmulq_u16): Likewise.
18305 (vmulq_u32): Likewise.
18306 (vsub_s8): Likewise.
18307 (vsub_s16): Likewise.
18308 (vsub_s32): Likewise.
18309 (vsub_f32): Likewise.
18310 (vsub_u8): Likewise.
18311 (vsub_u16): Likewise.
18312 (vsub_u32): Likewise.
18313 (vsub_s64): Likewise.
18314 (vsub_u64): Likewise.
18315 (vsubq_s8): Likewise.
18316 (vsubq_s16): Likewise.
18317 (vsubq_s32): Likewise.
18318 (vsubq_s64): Likewise.
18319 (vsubq_f32): Likewise.
18320 (vsubq_u8): Likewise.
18321 (vsubq_u16): Likewise.
18322 (vsubq_u32): Likewise.
18323 (vsubq_u64): Likewise.
18324 (vand_s8): Likewise.
18325 (vand_s16): Likewise.
18326 (vand_s32): Likewise.
18327 (vand_u8): Likewise.
18328 (vand_u16): Likewise.
18329 (vand_u32): Likewise.
18330 (vand_s64): Likewise.
18331 (vand_u64): Likewise.
18332 (vandq_s8): Likewise.
18333 (vandq_s16): Likewise.
18334 (vandq_s32): Likewise.
18335 (vandq_s64): Likewise.
18336 (vandq_u8): Likewise.
18337 (vandq_u16): Likewise.
18338 (vandq_u32): Likewise.
18339 (vandq_u64): Likewise.
18340 (vorr_s8): Likewise.
18341 (vorr_s16): Likewise.
18342 (vorr_s32): Likewise.
18343 (vorr_u8): Likewise.
18344 (vorr_u16): Likewise.
18345 (vorr_u32): Likewise.
18346 (vorr_s64): Likewise.
18347 (vorr_u64): Likewise.
18348 (vorrq_s8): Likewise.
18349 (vorrq_s16): Likewise.
18350 (vorrq_s32): Likewise.
18351 (vorrq_s64): Likewise.
18352 (vorrq_u8): Likewise.
18353 (vorrq_u16): Likewise.
18354 (vorrq_u32): Likewise.
18355 (vorrq_u64): Likewise.
18356 (veor_s8): Likewise.
18357 (veor_s16): Likewise.
18358 (veor_s32): Likewise.
18359 (veor_u8): Likewise.
18360 (veor_u16): Likewise.
18361 (veor_u32): Likewise.
18362 (veor_s64): Likewise.
18363 (veor_u64): Likewise.
18364 (veorq_s8): Likewise.
18365 (veorq_s16): Likewise.
18366 (veorq_s32): Likewise.
18367 (veorq_s64): Likewise.
18368 (veorq_u8): Likewise.
18369 (veorq_u16): Likewise.
18370 (veorq_u32): Likewise.
18371 (veorq_u64): Likewise.
18372 (vbic_s8): Likewise.
18373 (vbic_s16): Likewise.
18374 (vbic_s32): Likewise.
18375 (vbic_u8): Likewise.
18376 (vbic_u16): Likewise.
18377 (vbic_u32): Likewise.
18378 (vbic_s64): Likewise.
18379 (vbic_u64): Likewise.
18380 (vbicq_s8): Likewise.
18381 (vbicq_s16): Likewise.
18382 (vbicq_s32): Likewise.
18383 (vbicq_s64): Likewise.
18384 (vbicq_u8): Likewise.
18385 (vbicq_u16): Likewise.
18386 (vbicq_u32): Likewise.
18387 (vbicq_u64): Likewise.
18388 (vorn_s8): Likewise.
18389 (vorn_s16): Likewise.
18390 (vorn_s32): Likewise.
18391 (vorn_u8): Likewise.
18392 (vorn_u16): Likewise.
18393 (vorn_u32): Likewise.
18394 (vorn_s64): Likewise.
18395 (vorn_u64): Likewise.
18396 (vornq_s8): Likewise.
18397 (vornq_s16): Likewise.
18398 (vornq_s32): Likewise.
18399 (vornq_s64): Likewise.
18400 (vornq_u8): Likewise.
18401 (vornq_u16): Likewise.
18402 (vornq_u32): Likewise.
18403 (vornq_u64): Likewise.
18405 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18407 * wide-int.cc (UTItype): Define.
18408 (UDWtype): Define for appropriate W_TYPE_SIZE.
18410 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
18412 PR tree-optimization/59100
18413 * tree-ssa-phiopt.c: Include tree-inline.h.
18414 (neutral_element_p, absorbing_element_p): New functions.
18415 (value_replacement): Handle conditional binary operations with a
18416 neutral or absorbing element.
18418 2014-05-08 Richard Biener <rguenther@suse.de>
18420 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18421 folding the expression.
18422 (valueize_expr): Remove.
18423 (visit_reference_op_load): Do not valueize the result of
18425 (simplify_binary_expression): Likewise.
18426 (simplify_unary_expression): Likewise.
18428 2014-05-08 Richard Biener <rguenther@suse.de>
18430 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18431 looking at TYPE_ARG_TYPES.
18433 2014-05-08 Richard Biener <rguenther@suse.de>
18435 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18436 pointer propagation special-case.
18438 2014-05-08 Bin Cheng <bin.cheng@arm.com>
18440 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18441 core part of address expressions.
18443 2014-05-08 Alan Modra <amodra@gmail.com>
18446 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18447 loads and stores when -mno-strict-align at any alignment.
18448 (expand_block_clear): Similarly. Also correct calculation of
18451 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18453 PR middle-end/39246
18454 * tree-complex.c (expand_complex_move): Keep line info when expanding
18456 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18457 of complex expression. Use new argument to display correct location
18458 for values coming from phi statement.
18459 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18460 (warn_uninitialized_phi): Pass location of phi argument to
18462 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18463 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18465 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18467 * config/rs6000/predicates.md (indexed_address_mem): New.
18468 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18469 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18470 fpstore_ux, fpstore_u.
18471 (sign_extend, indexed, update): New.
18472 (cell_micro): Adjust.
18473 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18474 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18475 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18476 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18477 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18478 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18479 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18480 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18481 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18482 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18483 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18484 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18485 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18486 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18487 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18489 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18490 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18491 *vsx_extract_<mode>_store): Adjust.
18492 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18493 is_cracked_insn, insn_must_be_first_in_group,
18494 insn_must_be_last_in_group): Adjust.
18496 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18498 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18499 ppc440-fpstore): Adjust.
18500 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18501 ppc476-fpstore): Adjust.
18502 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18503 ppc601-fpstore): Adjust.
18504 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18506 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18508 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18509 ppc7450-fpstore): Adjust.
18510 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18511 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18512 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18514 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18515 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18516 cell-fpstore, cell-fpstore-update): Adjust.
18517 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
18518 ppce300c3_store, ppce300c3_fpstore): Adjust.
18519 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
18520 e500mc_fpstore): Adjust.
18521 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
18522 e500mc64_store, e500mc64_fpstore): Adjust.
18523 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
18524 e5500_fpstore): Adjust.
18525 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
18526 e6500_fpstore): Adjust.
18527 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
18529 * config/rs6000/power4.md (power4-load, power4-load-ext,
18530 power4-load-ext-update, power4-load-ext-update-indexed,
18531 power4-load-update-indexed, power4-load-update, power4-fpload,
18532 power4-fpload-update, power4-store, power4-store-update,
18533 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
18535 * config/rs6000/power5.md (power5-load, power5-load-ext,
18536 power5-load-ext-update, power5-load-ext-update-indexed,
18537 power5-load-update-indexed, power5-load-update, power5-fpload,
18538 power5-fpload-update, power5-store, power5-store-update,
18539 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
18541 * config/rs6000/power6.md (power6-load, power6-load-ext,
18542 power6-load-update, power6-load-update-indexed,
18543 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
18544 power6-fpload-update, power6-store, power6-store-update,
18545 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
18547 * config/rs6000/power7.md (power7-load, power7-load-ext,
18548 power7-load-update, power7-load-update-indexed,
18549 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
18550 power7-fpload-update, power7-store, power7-store-update,
18551 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
18553 * config/rs6000/power8.md (power8-load, power8-load-update,
18554 power8-load-ext, power8-load-ext-update, power8-fpload,
18555 power8-fpload-update, power8-store, power8-store-update-indexed,
18556 power8-fpstore, power8-fpstore-update): Adjust.
18557 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
18559 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
18560 titan_lsu_store, titan_lsu_fpstore): Adjust.
18561 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
18563 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18566 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
18567 unrolled byte insns. Emit address increments after move insns.
18569 2014-05-07 David Malcolm <dmalcolm@redhat.com>
18571 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
18572 const_gimple, rather than a gimple.
18573 (gimple_call_builtin_p): Likewise, for the three variants.
18575 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
18576 (gimple_call_builtin_p): Likewise, for the three variants.
18578 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18580 PR tree-optimization/61095
18581 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
18583 2014-05-07 Richard Biener <rguenther@suse.de>
18585 PR tree-optimization/61034
18586 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
18587 (maybe_skip_until): Use translate to take into account
18588 lattices when trying to do disambiguations.
18589 (get_continuation_for_phi_1): Likewise.
18590 (get_continuation_for_phi): Adjust for added translate arguments.
18591 (walk_non_aliased_vuses): Likewise.
18592 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
18593 (walk_non_aliased_vuses): Likewise.
18594 (call_may_clobber_ref_p_1): Declare.
18595 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
18596 calls. Stop early if we are only supposed to disambiguate.
18597 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
18599 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
18601 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
18602 Emit an error when the function has arguments.
18604 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18606 * cfgloop.h (unswitch_loops): Remove.
18607 * doc/passes.texi: Remove references to loop-unswitch.c
18608 * timevar.def (TV_LOOP_UNSWITCH): Remove.
18610 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
18612 * tree-vect-data-refs.c (vect_grouped_load_supported): New
18613 check for loads group of length 3.
18614 (vect_permute_load_chain): New permutations for loads group of
18616 * tree-vect-stmts.c (vect_model_load_cost): Change cost
18617 of vec_perm_shuffle for the new permutations.
18619 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
18621 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
18622 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
18623 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
18624 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
18625 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
18626 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
18627 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
18628 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
18630 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18632 * loop-unswitch.c: Delete.
18634 2014-05-07 Richard Biener <rguenther@suse.de>
18636 * config.gcc: Always set need_64bit_hwint to yes.
18638 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
18640 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
18641 of using optimize_size.
18643 2014-05-06 Mike Stump <mikestump@comcast.net>
18645 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
18647 2014-05-06 Joseph Myers <joseph@codesourcery.com>
18649 * config/i386/sse.md (*mov<mode>_internal)
18650 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
18651 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
18652 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
18653 (*<code><mode>3, *andnot<mode>3<mask_name>)
18654 (<mask_codefor><code><mode>3<mask_name>): Only consider
18655 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
18657 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18660 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18662 * lra-constraints.c (valid_address_p): Move earlier in file.
18663 Add a constraint argument to the address_info version.
18664 (satisfies_memory_constraint_p): New function.
18665 (satisfies_address_constraint_p): Likewise.
18666 (process_alt_operands, curr_insn_transform): Use them.
18667 (process_address): Pass the constraint to valid_address_p when
18668 checking address operands.
18670 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
18672 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
18673 to their respective blocks. Fix inadvertent use of "node".
18675 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18677 * emit-rtl.c (init_derived_machine_modes): New functionm, split
18679 (init_emit_once): ...here.
18680 * rtl.h (init_derived_machine_modes): Declare.
18681 * toplev.c (do_compile): Call it even if no_backend.
18683 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
18684 Mike Stump <mikestump@comcast.net>
18685 Richard Sandiford <rdsandiford@googlemail.com>
18686 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18688 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
18689 (rtx_equal_for_memref_p): Update comment.
18690 (adjust_offset_for_component_ref): Use wide-int interfaces.
18691 * builtins.c (get_object_alignment_2): Likewise.
18692 (c_readstr): Likewise.
18693 (target_char_cast): Add comment.
18694 (determine_block_size): Use wide-int interfaces.
18695 (expand_builtin_signbit): Likewise.
18696 (fold_builtin_int_roundingfn): Likewise.
18697 (fold_builtin_bitop): Likewise.
18698 (fold_builtin_bswap): Likewise.
18699 (fold_builtin_logarithm): Use signop.
18700 (fold_builtin_pow): Likewise.
18701 (fold_builtin_memory_op): Use wide-int interfaces.
18702 (fold_builtin_object_size): Likewise.
18703 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
18704 nb_iterations_estimate.
18705 (record_niter_bound): Use wide-int interfaces.
18706 (get_estimated_loop_iterations_int): Likewise.
18707 (get_estimated_loop_iterations): Likewise.
18708 (get_max_loop_iterations): Likewise.
18709 * cfgloop.h: Include wide-int.h.
18710 (struct nb_iter_bound): Change bound to widest_int.
18711 (struct loop): Change nb_iterations_upper_bound and
18712 nb_iterations_estimate to widest_int.
18713 (record_niter_bound): Switch to use widest_int.
18714 (get_estimated_loop_iterations): Likewise.
18715 (get_max_loop_iterations): Likewise.
18716 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
18717 update for wide-int.
18718 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
18719 * combine.c (try_combine): Likewise.
18720 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
18721 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
18723 (aarch64_float_const_representable_p): Likewise.
18724 * config/arc/arc.c: Include wide-int.h.
18725 (arc_can_use_doloop_p): Use wide-int interfaces.
18726 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
18727 (vfp3_const_double_index): Likewise.
18728 * config/avr/avr.c (avr_out_round): Likewise.
18729 (avr_fold_builtin): Likewise.
18730 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
18731 (bfin_can_use_doloop_p): Likewise.
18732 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
18733 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
18734 * config/i386/i386.c: Include wide-int.h.
18735 (ix86_data_alignment): Use wide-int interfaces.
18736 (ix86_local_alignment): Likewise.
18737 (ix86_emit_swsqrtsf): Update real_from_integer.
18738 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
18739 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
18740 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
18741 (zero_constant): Likewise.
18742 (input_operand): Likewise.
18743 (splat_input_operand): Likewise.
18744 (non_logical_cint_operand): Change const_double to const_wide_int.
18745 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
18746 (easy_altivec_constant): Remove comment.
18747 (paired_expand_vector_init): Use CONSTANT_P.
18748 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
18749 (rs6000_emit_move): Update checks.
18750 (rs6000_aggregate_candidate): Use wide-int interfaces.
18751 (rs6000_expand_ternop_builtin): Likewise.
18752 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
18753 (rs6000_assemble_integer): Likewise.
18754 (rs6000_hash_constant): Likewise.
18755 (output_toc): Likewise.
18756 (rs6000_rtx_costs): Likewise.
18757 (rs6000_emit_swrsqrt); Update call to real_from_integer.
18758 * config/rs6000/rs6000-c.c: Include wide-int.h.
18759 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
18760 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
18761 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
18762 Handle CONST_WIDE_INT.
18763 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
18764 Use tree_fits_uhwi_p.
18765 * config/sparc/sparc.c: Include wide-int.h.
18766 (sparc_fold_builtin): Use wide-int interfaces.
18767 * config/vax/vax.c: Include wide-int.h.
18768 (vax_float_literal): Use real_from_integer.
18769 * coretypes.h (struct hwivec_def): New.
18771 (const_hwivec): New.
18772 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
18773 (equiv_constant): Handle CONST_WIDE_INT.
18774 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
18775 (cselib_hash_rtx): Handle CONST_WIDE_INT.
18776 * dbxout.c (stabstr_U): Use wide-int interfaces.
18777 (dbxout_type): Update to use cst_fits_shwi_p.
18778 * defaults.h (LOG2_BITS_PER_UNIT): Define.
18779 (TARGET_SUPPORTS_WIDE_INT): Add default.
18780 * dfp.c: Include wide-int.h.
18781 (decimal_real_to_integer2): Use wide-int interfaces and rename to
18782 decimal_real_to_integer.
18783 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
18784 decimal_real_to_integer.
18785 * doc/generic.texi (Constant expressions): Update for wide_int.
18786 * doc/rtl.texi (const_double): Likewise.
18787 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
18788 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
18789 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
18790 (REAL_VALUE_FROM_INT): Remove.
18791 (TARGET_SUPPORTS_WIDE_INT): New.
18792 * doc/tm.texi: Regenerate.
18793 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
18794 * double-int.h: Include wide-int.h.
18795 (struct wi::int_traits): New.
18796 * dwarf2out.c (get_full_len): New.
18797 (dw_val_equal_p): Add case dw_val_class_wide_int.
18798 (size_of_loc_descr): Likewise.
18799 (output_loc_operands): Likewise.
18800 (insert_double): Remove.
18801 (insert_wide_int): New.
18802 (add_AT_wide): New.
18803 (print_die): Add case dw_val_class_wide_int.
18804 (attr_checksum): Likewise.
18805 (attr_checksum_ordered): Likewise.
18806 (same_dw_val_p): Likewise.
18807 (size_of_die): Likewise.
18808 (value_format): Likewise.
18809 (output_die): Likewise.
18810 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
18812 (clz_loc_descriptor): Use wide-int interfaces.
18813 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
18814 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
18815 (round_up_to_align): Use wide-int interfaces.
18816 (field_byte_offset): Likewise.
18817 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
18818 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
18819 CONST_DOUBLE handling. Use wide-int interfaces.
18820 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
18821 (gen_enumeration_type_die): Use add_AT_wide.
18822 (hash_loc_operands): Add case dw_val_class_wide_int.
18823 (compare_loc_operands): Likewise.
18824 * dwarf2out.h: Include wide-int.h.
18825 (wide_int_ptr): New.
18826 (enum dw_val_class): Add dw_val_class_wide_int.
18827 (struct dw_val_struct): Add val_wide.
18828 * emit-rtl.c (const_wide_int_htab): New.
18829 (const_wide_int_htab_hash): New.
18830 (const_wide_int_htab_eq): New.
18831 (lookup_const_wide_int): New.
18832 (const_double_htab_hash): Use wide-int interfaces.
18833 (const_double_htab_eq): Likewise.
18834 (rtx_to_double_int): Conditionally compile for wide-int.
18835 (immed_double_int_const): Rename to immed_wide_int_const and
18836 update for wide-int.
18837 (immed_double_const): Conditionally compile for wide-int.
18838 (init_emit_once): Use wide-int interfaces.
18839 * explow.c (plus_constant): Likewise.
18840 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
18841 (lshift_value): Use wide-int interfaces.
18842 (expand_mult): Likewise.
18843 (choose_multiplier): Likewise.
18844 (expand_smod_pow2): Likewise.
18845 (make_tree): Likewise.
18846 * expr.c (convert_modes): Consolidate handling of constants.
18847 Use wide-int interfaces.
18848 (emit_group_load_1): Add note.
18849 (store_expr): Update comment.
18850 (get_inner_reference): Use wide-int interfaces.
18851 (expand_constructor): Update comment.
18852 (expand_expr_real_2): Use wide-int interfaces.
18853 (expand_expr_real_1): Likewise.
18854 (reduce_to_bit_field_precision): Likewise.
18855 (const_vector_from_tree): Likewise.
18856 * final.c: Include wide-int-print.h.
18857 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
18858 * fixed-value.c: Include wide-int.h.
18859 (fixed_from_string): Use wide-int interfaces.
18860 (fixed_to_decimal): Likewise.
18861 (fixed_convert_from_real): Likewise.
18862 (real_convert_from_fixed): Likewise.
18863 * fold-const.h (mem_ref_offset): Return an offset_int.
18864 (div_if_zero_remainder): Remove code parameter.
18865 * fold-const.c (div_if_zero_remainder): Remove code parameter.
18866 Use wide-int interfaces.
18867 (may_negate_without_overflow_p): Use wide-int interfaces.
18868 (negate_expr_p): Likewise.
18869 (fold_negate_expr): Likewise.
18870 (int_const_binop_1): Likewise.
18871 (const_binop): Likewise.
18872 (fold_convert_const_int_from_int): Likewise.
18873 (fold_convert_const_int_from_real): Likewise.
18874 (fold_convert_const_int_from_fixed): Likewise.
18875 (fold_convert_const_fixed_from_int): Likewise.
18876 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
18877 (sign_bit_p): Use wide-int interfaces.
18878 (make_range_step): Likewise.
18879 (build_range_check): Likewise. Pass an integer of the correct type
18880 instead of using integer_one_node.
18881 (range_predecessor): Pass an integer of the correct type instead
18882 of using integer_one_node.
18883 (range_successor): Likewise.
18884 (merge_ranges): Likewise.
18885 (unextend): Use wide-int interfaces.
18886 (extract_muldiv_1): Likewise.
18887 (fold_div_compare): Likewise.
18888 (fold_single_bit_test): Likewise.
18889 (fold_sign_changed_comparison): Likewise.
18890 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
18891 (fold_plusminus_mult_expr): Use wide-int interfaces.
18892 (native_encode_int): Likewise.
18893 (native_interpret_int): Likewise.
18894 (fold_unary_loc): Likewise.
18895 (pointer_may_wrap_p): Likewise.
18896 (size_low_cst): Likewise.
18897 (mask_with_tz): Likewise.
18898 (fold_binary_loc): Likewise.
18899 (fold_ternary_loc): Likewise.
18900 (multiple_of_p): Likewise.
18901 (tree_call_nonnegative_warnv_p): Update calls to
18902 tree_int_cst_min_precision and real_from_integer.
18903 (fold_negate_const): Use wide-int interfaces.
18904 (fold_abs_const): Likewise.
18905 (fold_relational_const): Use tree_int_cst_lt.
18906 (round_up_loc): Use wide-int interfaces.
18907 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
18908 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
18909 * gengtype.c: Remove include of double-int.h.
18910 (do_typedef): Use wide-int interfaces.
18911 (open_base_files): Add wide-int.h.
18912 (main): Add offset_int and widest_int typedefs.
18913 * gengtype-lex.l: Handle "^".
18914 (CXX_KEYWORD): Add "static".
18915 * gengtype-parse.c (require3): New.
18916 (require_template_declaration): Handle constant template arguments
18917 and nested templates.
18918 * gengtype-state.c: Don't include "double-int.h".
18919 * genpreds.c (write_one_predicate_function): Update comment.
18920 (write_tm_constrs_h): Add check for hval and lval use in
18922 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
18923 (add_to_sequence): Likewise.
18924 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
18925 and const_double_operand.
18926 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
18928 * gimple-fold.c (get_base_constructor): Likewise.
18929 (fold_array_ctor_reference): Likewise.
18930 (fold_nonarray_ctor_reference): Likewise.
18931 (fold_const_aggregate_ref_1): Likewise.
18932 (gimple_val_nonnegative_real_p): Likewise.
18933 (gimple_fold_indirect_ref): Likewise.
18934 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
18935 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
18936 (struct slsr_cand_d): Change index to be widest_int.
18937 (struct incr_info_d): Change incr to be widest_int.
18938 (alloc_cand_and_find_basis): Use wide-int interfaces.
18939 (slsr_process_phi): Likewise.
18940 (backtrace_base_for_ref): Likewise. Return a widest_int.
18941 (restructure_reference): Take a widest_int instead of a double_int.
18942 (slsr_process_ref): Use wide-int interfaces.
18943 (create_mul_ssa_cand): Likewise.
18944 (create_mul_imm_cand): Likewise.
18945 (create_add_ssa_cand): Likewise.
18946 (create_add_imm_cand): Take a widest_int instead of a double_int.
18947 (slsr_process_add): Use wide-int interfaces.
18948 (slsr_process_cast): Likewise.
18949 (slsr_process_copy): Likewise.
18950 (dump_candidate): Likewise.
18951 (dump_incr_vec): Likewise.
18952 (replace_ref): Likewise.
18953 (cand_increment): Likewise. Return a widest_int.
18954 (cand_abs_increment): Likewise.
18955 (replace_mult_candidate): Take a widest_int instead of a double_int.
18956 (replace_unconditional_candidate): Use wide-int interfaces.
18957 (incr_vec_index): Take a widest_int instead of a double_int.
18958 (create_add_on_incoming_edge): Likewise.
18959 (create_phi_basis): Use wide-int interfaces.
18960 (replace_conditional_candidate): Likewise.
18961 (record_increment): Take a widest_int instead of a double_int.
18962 (record_phi_increments): Use wide-int interfaces.
18963 (phi_incr_cost): Take a widest_int instead of a double_int.
18964 (lowest_cost_path): Likewise.
18965 (total_savings): Likewise.
18966 (analyze_increments): Use wide-int interfaces.
18967 (ncd_with_phi): Take a widest_int instead of a double_int.
18968 (ncd_of_cand_and_phis): Likewise.
18969 (nearest_common_dominator_for_cands): Likewise.
18970 (insert_initializers): Use wide-int interfaces.
18971 (all_phi_incrs_profitable): Likewise.
18972 (replace_one_candidate): Likewise.
18973 (replace_profitable_candidates): Likewise.
18974 * godump.c: Include wide-int-print.h.
18975 (go_output_typedef): Use wide-int interfaces.
18976 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
18977 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
18978 (build_loop_iteration_domains): Likewise.
18979 * hooks.h: Include wide-int.h rather than double-int.h.
18980 (hook_bool_dint_dint_uint_bool_true): Delete.
18981 (hook_bool_wint_wint_uint_bool_true): Declare.
18982 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
18983 (hook_bool_wint_wint_uint_bool_true): New.
18984 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
18986 (ubsan_expand_si_overflow_mul_check): Likewise.
18987 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
18988 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
18989 (get_ancestor_addr_info): Likewise.
18990 (ipa_modify_call_arguments): Likewise.
18991 * loop-doloop.c (doloop_modify): Likewise.
18992 (doloop_optimize): Likewise.
18993 * loop-iv.c (iv_number_of_iterations): Likewise.
18994 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
18995 (unroll_loop_constant_iterations): Likewise.
18996 (decide_unroll_runtime_iterations): Likewise.
18997 (unroll_loop_runtime_iterations): Likewise.
18998 (decide_peel_simple): Likewise.
18999 (decide_unroll_stupid): Likewise.
19000 * lto-streamer-in.c (streamer_read_wi): Add.
19001 (input_cfg): Use wide-int interfaces.
19002 (lto_input_tree_1): Likewise.
19003 * lto-streamer-out.c (streamer_write_wi): Add.
19004 (hash_tree): Use wide-int interfaces.
19005 (output_cfg): Likewise.
19006 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19007 (GTFILES): Add wide-int.h and signop.h.
19008 (TAGS): Look for .cc files too.
19009 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19010 * optabs.c (expand_subword_shift): Likewise.
19011 (expand_doubleword_shift): Likewise.
19012 (expand_absneg_bit): Likewise.
19013 (expand_copysign_absneg): Likewise.
19014 (expand_copysign_bit): Likewise.
19015 * postreload.c (reload_cse_simplify_set): Likewise.
19016 * predict.c (predict_iv_comparison): Likewise.
19017 * pretty-print.h: Include wide-int-print.h.
19019 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19020 * print-tree.c: Include wide-int-print.h.
19021 (print_node_brief): Use wide-int interfaces.
19022 (print_node): Likewise.
19023 * read-rtl.c (validate_const_wide_int): New.
19024 (read_rtx_code): Add CONST_WIDE_INT case.
19025 * real.c: Include wide-int.h.
19026 (real_to_integer2): Delete.
19027 (real_to_integer): New function, returning a wide_int.
19028 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19029 (ten_to_ptwo): Update call to real_from_integer.
19030 (real_digit): Likewise.
19031 * real.h: Include signop.h, wide-int.h and insn-modes.h.
19032 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19033 (REAL_VALUE_TO_INT): Delete.
19034 (real_to_integer): Declare a wide-int form.
19035 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19036 * recog.c (const_int_operand): Improve comment.
19037 (const_scalar_int_operand): New.
19038 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19039 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19040 (split_double): Likewise.
19041 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19042 (rtx_size): Likewise.
19043 (rtx_alloc_stat_v): New.
19044 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19045 (cwi_output_hex): New.
19046 (iterative_hash_rtx): Handle CONST_WIDE_INT.
19047 (cwi_check_failed_bounds): New.
19048 * rtl.def (CONST_WIDE_INT): New.
19049 * rtl.h: Include <utility> and wide-int.h.
19050 (struct hwivec_def): New.
19051 (CWI_GET_NUM_ELEM): New.
19052 (CWI_PUT_NUM_ELEM): New.
19053 (struct rtx_def): Add num_elem and hwiv.
19054 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19055 (CASE_CONST_UNIQUE): Likewise.
19056 (CASE_CONST_ANY): Likewise.
19057 (CONST_SCALAR_INT_P): Likewise.
19058 (CONST_WIDE_INT_P): New.
19060 (HWIVEC_CHECK): New.
19061 (cwi_check_failed_bounds): New.
19063 (HWIVEC_CHECK): New.
19064 (CONST_WIDE_INT_VEC) New.
19065 (CONST_WIDE_INT_NUNITS) New.
19066 (CONST_WIDE_INT_ELT) New.
19067 (rtx_mode_t): New type.
19068 (wi::int_traits <rtx_mode_t>): New.
19070 (wi::min_value): New.
19071 (wi::max_value): New.
19073 (const_wide_int_alloc): New.
19074 (immed_wide_int_const): New.
19075 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19076 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19077 * signop.h: New file.
19078 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19079 (simplify_const_unary_operation): Use wide-int interfaces.
19080 (simplify_binary_operation_1): Likewise.
19081 (simplify_const_binary_operation): Likewise.
19082 (simplify_const_relational_operation): Likewise.
19083 (simplify_immed_subreg): Likewise.
19084 * stmt.c (expand_case): Likewise.
19085 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19086 signop rather than a bool.
19087 * stor-layout.c (layout_type): Use wide-int interfaces.
19088 (initialize_sizetypes): Update calls to
19089 set_min_and_max_values_for_integral_type.
19090 (set_min_and_max_values_for_integral_type): Take a signop rather
19091 than a bool. Use wide-int interfaces.
19092 (fixup_signed_type): Update accordingly. Remove
19093 HOST_BITS_PER_DOUBLE_INT limit.
19094 (fixup_unsigned_type): Likewise.
19095 * system.h (STATIC_CONSTANT_P): New.
19096 (STATIC_ASSERT): New.
19097 * target.def (can_use_doloop_p): Take widest_ints rather than
19099 * target.h: Include wide-int.h rather than double-int.h.
19100 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19102 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19103 rather than INT_CST_LT_UNSIGNED.
19104 (can_use_doloop_if_innermost): Take widest_ints rather than
19106 * tree-affine.c: Include wide-int-print.h.
19107 (double_int_ext_for_comb): Delete.
19108 (wide_int_ext_for_comb): New.
19109 (aff_combination_zero): Use wide-int interfaces.
19110 (aff_combination_const): Take a widest_int instead of a double_int.
19111 (aff_combination_elt): Use wide-int interfaces.
19112 (aff_combination_scale): Take a widest_int instead of a double_int.
19113 (aff_combination_add_elt): Likewise.
19114 (aff_combination_add_cst): Likewise.
19115 (aff_combination_add): Use wide-int interfaces.
19116 (aff_combination_convert): Likewise.
19117 (tree_to_aff_combination): Likewise.
19118 (add_elt_to_tree): Take a widest_int instead of a double_int.
19119 (aff_combination_to_tree): Use wide-int interfaces.
19120 (aff_combination_remove_elt): Likewise.
19121 (aff_combination_add_product): Take a widest_int instead of
19123 (aff_combination_mult): Use wide-int interfaces.
19124 (aff_combination_expand): Likewise.
19125 (double_int_constant_multiple_p): Delete.
19126 (wide_int_constant_multiple_p): New.
19127 (aff_combination_constant_multiple_p): Take a widest_int pointer
19128 instead of a double_int pointer.
19129 (print_aff): Use wide-int interfaces.
19130 (get_inner_reference_aff): Take a widest_int pointer
19131 instead of a double_int pointer.
19132 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19133 * tree-affine.h: Include wide-int.h.
19134 (struct aff_comb_elt): Change type of coef to widest_int.
19135 (struct affine_tree_combination): Change type of offset to widest_int.
19136 (double_int_ext_for_comb): Delete.
19137 (wide_int_ext_for_comb): New.
19138 (aff_combination_const): Use widest_int instead of double_int.
19139 (aff_combination_scale): Likewise.
19140 (aff_combination_add_elt): Likewise.
19141 (aff_combination_constant_multiple_p): Likewise.
19142 (get_inner_reference_aff): Likewise.
19143 (aff_comb_cannot_overlap_p): Likewise.
19144 (aff_combination_zero_p): Use wide-int interfaces.
19145 * tree.c: Include tree.h.
19146 (init_ttree): Use make_int_cst.
19147 (tree_code_size): Removed code for INTEGER_CST case.
19148 (tree_size): Add INTEGER_CST case.
19149 (make_node_stat): Update comment.
19150 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19151 (build_int_cst_type): Use wide-int interfaces.
19152 (double_int_to_tree): Likewise.
19153 (double_int_fits_to_tree_p): Delete.
19154 (force_fit_type_double): Delete.
19155 (force_fit_type): New.
19156 (int_cst_hash_hash): Use wide-int interfaces.
19157 (int_cst_hash_eq): Likewise.
19158 (build_int_cst_wide): Delete.
19159 (wide_int_to_tree): New.
19160 (cache_integer_cst): Use wide-int interfaces.
19161 (build_low_bits_mask): Likewise.
19162 (cst_and_fits_in_hwi): Likewise.
19163 (real_value_from_int_cst): Likewise.
19164 (make_int_cst_stat): New.
19165 (integer_zerop): Use wide_int interfaces.
19166 (integer_onep): Likewise.
19167 (integer_all_onesp): Likewise.
19168 (integer_pow2p): Likewise.
19169 (integer_nonzerop): Likewise.
19170 (tree_log2): Likewise.
19171 (tree_floor_log2): Likewise.
19172 (tree_ctz): Likewise.
19173 (int_size_in_bytes): Likewise.
19174 (mem_ref_offset): Return an offset_int rather than a double_int.
19175 (build_type_attribute_qual_variant): Use wide_int interfaces.
19176 (type_hash_eq): Likewise
19177 (tree_int_cst_equal): Likewise.
19178 (tree_int_cst_lt): Delete.
19179 (tree_int_cst_compare): Likewise.
19180 (tree_fits_shwi_p): Use wide_int interfaces.
19181 (tree_fits_uhwi_p): Likewise.
19182 (tree_int_cst_sign_bit): Likewise.
19183 (tree_int_cst_sgn): Likewise.
19184 (tree_int_cst_min_precision): Take a signop rather than a bool.
19185 (simple_cst_equal): Use wide_int interfaces.
19186 (compare_tree_int): Likewise.
19187 (iterative_hash_expr): Likewise.
19188 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
19190 (get_type_static_bounds): Use wide_int interfaces.
19191 (tree_int_cst_elt_check_failed): New.
19192 (build_common_tree_nodes): Reordered to set prec before filling in
19194 (int_cst_value): Check cst_and_fits_in_hwi.
19195 (widest_int_cst_value): Use wide_int interfaces.
19196 (upper_bound_in_type): Likewise.
19197 (lower_bound_in_type): Likewise.
19198 (num_ending_zeros): Likewise.
19199 (drop_tree_overflow): Likewise.
19200 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19201 (gen_conditions_for_pow_cst_base): Likewise.
19202 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19203 (group_case_labels_stmt): Use wide-int interfaces.
19204 (verify_gimple_assign_binary): Likewise.
19205 (print_loop): Likewise.
19206 * tree-chrec.c (tree_fold_binomial): Likewise.
19207 * tree-core.h (struct tree_base): Add int_length.
19208 (struct tree_int_cst): Change rep of value.
19209 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19210 (dr_may_alias_p): Likewise.
19211 (max_stmt_executions_tree): Likewise.
19212 * tree.def (INTEGER_CST): Update comment.
19213 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19214 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19215 * tree-dump.c: Include wide-int.h and wide-int-print.h.
19216 (dequeue_and_dump): Use wide-int interfaces.
19217 * tree.h: Include wide-int.h.
19218 (NULL_TREE): Moved to earlier loc in file.
19219 (TREE_INT_CST_ELT_CHECK): New.
19220 (tree_int_cst_elt_check_failed): New.
19222 (TREE_INT_CST): Delete.
19223 (TREE_INT_CST_LOW): Use wide-int interfaces.
19224 (TREE_INT_CST_HIGH): Delete.
19225 (TREE_INT_CST_NUNITS): New.
19226 (TREE_INT_CST_EXT_NUNITS): Likewise.
19227 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19228 (TREE_INT_CST_ELT): Likewise.
19229 (INT_CST_LT): Delete.
19230 (tree_int_cst_elt_check): New (two forms).
19231 (type_code_size): Update comment.
19232 (make_int_cst_stat, make_int_cst): New.
19233 (tree_to_double_int): Delete.
19234 (double_int_fits_to_tree_p): Delete.
19235 (force_fit_type_double): Delete.
19236 (build_int_cstu): Replace with out-of-line function.
19237 (build_int_cst_wide): Delete.
19238 (tree_int_cst_lt): Define inline.
19239 (tree_int_cst_le): New.
19240 (tree_int_cst_compare): Define inline.
19241 (tree_int_cst_min_precision): Take a signop rather than a bool.
19242 (wi::int_traits <const_tree>): New.
19243 (wi::int_traits <tree>): New.
19244 (wi::extended_tree): New.
19245 (wi::int_traits <wi::extended_tree>): New.
19246 (wi::to_widest): New.
19247 (wi::to_offset): New.
19248 (wi::fits_to_tree_p): New.
19249 (wi::min_value): New.
19250 (wi::max_value): New.
19251 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19252 (copy_tree_body_r): Likewise.
19253 * tree-object-size.c (compute_object_offset): Likewise.
19254 (addr_object_size): Likewise.
19255 * tree-predcom.c: Include wide-int-print.h.
19256 (struct dref_d): Change type of offset to widest_int.
19257 (dump_dref): Call wide-int printer.
19258 (aff_combination_dr_offset): Use wide-int interfaces.
19259 (determine_offset): Take a widest_int pointer rather than a
19260 double_int pointer.
19261 (split_data_refs_to_components): Use wide-int interfaces.
19262 (suitable_component_p): Likewise.
19263 (order_drefs): Likewise.
19264 (add_ref_to_chain): Likewise.
19265 (valid_initializer_p): Likewise.
19266 (determine_roots_comp): Likewise.
19267 * tree-pretty-print.c: Include wide-int-print.h.
19268 (dump_generic_node): Use wide-int interfaces.
19269 * tree-sra.c (sra_ipa_modify_expr): Likewise.
19270 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19271 (move_fixed_address_to_symbol): Likewise.
19272 (move_hint_to_base): Likewise.
19273 (move_pointer_to_base): Likewise.
19274 (move_variant_to_index): Likewise.
19275 (most_expensive_mult_to_index): Likewise.
19276 (addr_to_parts): Likewise.
19277 (copy_ref_info): Likewise.
19278 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19279 (indirect_refs_may_alias_p): Likewise.
19280 (stmt_kills_ref_p_1): Likewise.
19281 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19282 * tree-ssa-ccp.c: Update comment at top of file. Include
19284 (struct prop_value_d): Change type of mask to widest_int.
19285 (extend_mask): New function.
19286 (dump_lattice_value): Use wide-int interfaces.
19287 (get_default_value): Likewise.
19288 (set_constant_value): Likewise.
19289 (set_value_varying): Likewise.
19290 (valid_lattice_transition): Likewise.
19291 (set_lattice_value): Likewise.
19292 (value_to_double_int): Delete.
19293 (value_to_wide_int): New.
19294 (get_value_from_alignment): Use wide-int interfaces.
19295 (get_value_for_expr): Likewise.
19296 (do_dbg_cnt): Likewise.
19297 (ccp_finalize): Likewise.
19298 (ccp_lattice_meet): Likewise.
19299 (bit_value_unop_1): Use widest_ints rather than double_ints.
19300 (bit_value_binop_1): Likewise.
19301 (bit_value_unop): Use wide-int interfaces.
19302 (bit_value_binop): Likewise.
19303 (bit_value_assume_aligned): Likewise.
19304 (evaluate_stmt): Likewise.
19305 (ccp_fold_stmt): Likewise.
19306 (visit_cond_stmt): Likewise.
19307 (ccp_visit_stmt): Likewise.
19308 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19309 (constant_pointer_difference): Likewise.
19310 (associate_pointerplus): Likewise.
19311 (combine_conversions): Likewise.
19312 * tree-ssa-loop.h: Include wide-int.h.
19313 (struct tree_niter_desc): Change type of max to widest_int.
19314 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19315 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19316 (remove_redundant_iv_tests): Likewise.
19317 (canonicalize_loop_induction_variables): Likewise.
19318 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19319 (constant_multiple_of): Take a widest_int pointer instead of
19320 a double_int pointer.
19321 (get_computation_aff): Use wide-int interfaces.
19322 (ptr_difference_cost): Likewise.
19323 (difference_cost): Likewise.
19324 (get_loop_invariant_expr_id): Likewise.
19325 (get_computation_cost_at): Likewise.
19326 (iv_elimination_compare_lt): Likewise.
19327 (may_eliminate_iv): Likewise.
19328 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19329 instead of double_int.
19330 (max_loop_iterations): Likewise.
19331 (max_stmt_executions): Likewise.
19332 (estimated_stmt_executions): Likewise.
19333 * tree-ssa-loop-niter.c: Include wide-int-print.h.
19334 (split_to_var_and_offset): Use wide-int interfaces.
19335 (determine_value_range): Likewise.
19336 (bound_difference_of_offsetted_base): Likewise.
19337 (bounds_add): Take a widest_int instead of a double_int.
19338 (number_of_iterations_ne_max): Use wide-int interfaces.
19339 (number_of_iterations_ne): Likewise.
19340 (number_of_iterations_lt_to_ne): Likewise.
19341 (assert_loop_rolls_lt): Likewise.
19342 (number_of_iterations_lt): Likewise.
19343 (number_of_iterations_le): Likewise.
19344 (number_of_iterations_cond): Likewise.
19345 (number_of_iterations_exit): Likewise.
19346 (finite_loop_p): Likewise.
19347 (derive_constant_upper_bound_assign): Likewise.
19348 (derive_constant_upper_bound): Return a widest_int.
19349 (derive_constant_upper_bound_ops): Likewise.
19350 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19351 (record_estimate): Take a widest_int rather than a double_int.
19352 (record_nonwrapping_iv): Use wide-int interfaces.
19353 (double_int_cmp): Delete.
19354 (wide_int_cmp): New.
19355 (bound_index): Take a widest_int rather than a double_int.
19356 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19357 (maybe_lower_iteration_bound): Likewise.
19358 (estimate_numbers_of_iterations_loop): Likewise.
19359 (estimated_loop_iterations): Take a widest_int pointer than than
19360 a double_int pointer.
19361 (estimated_loop_iterations_int): Use wide-int interfaces.
19362 (max_loop_iterations): Take a widest_int pointer than than
19363 a double_int pointer.
19364 (max_loop_iterations_int): Use wide-int interfaces.
19365 (max_stmt_executions): Take a widest_int pointer than than
19366 a double_int pointer.
19367 (estimated_stmt_executions): Likewise.
19368 (n_of_executions_at_most): Use wide-int interfaces.
19369 (scev_probably_wraps_p): Likewise.
19370 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19371 to real_to_integer.
19372 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19374 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19375 double_ints. Adjust for trailing_wide_ints <3> representation.
19376 (set_nonzero_bits): Likewise.
19377 (get_range_info): Return wide_ints rather than double_ints.
19378 Adjust for trailing_wide_ints <3> representation.
19379 (get_nonzero_bits): Likewise.
19380 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19382 * tree-ssanames.h (struct range_info_def): Replace min, max and
19383 nonzero_bits with a trailing_wide_ints <3>.
19384 (set_range_info): Use wide_int_refs rather than double_ints.
19385 (set_nonzero_bits): Likewise.
19386 (get_range_info): Return wide_ints rather than double_ints.
19387 (get_nonzero_bits): Likewise.
19388 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19389 * tree-ssa-pre.c (phi_translate_1): Likewise.
19390 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19391 (acceptable_pow_call): Likewise.
19392 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19394 (vn_reference_fold_indirect): Likewise.
19395 (vn_reference_maybe_forwprop_address): Likewise.
19396 (valueize_refs_1): Likewise.
19397 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19398 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19399 tree_int_cst_lt and tree_int_cst_le.
19400 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19402 (streamer_alloc_tree): Likewise.
19403 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19404 (streamer_write_tree_header): Likewise.
19405 (streamer_write_integer_cst): Likewise.
19406 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19407 (build_constructors): Likewise.
19408 (array_value_type): Likewise.
19409 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19410 (vect_check_gather): Likewise.
19411 * tree-vect-generic.c (build_replicated_const): Likewise.
19412 (expand_vector_divmod): Likewise.
19413 * tree-vect-loop.c (vect_transform_loop): Likewise.
19414 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19415 (vect_do_peeling_for_alignment): Likewise.
19416 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19417 * tree-vrp.c: Include wide-int.h.
19418 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19419 (extract_range_from_assert): Use wide-int interfaces.
19420 (vrp_int_const_binop): Likewise.
19421 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19422 double_int pointers.
19423 (ranges_from_anti_range): Use wide-int interfaces.
19424 (quad_int_cmp): Delete.
19425 (quad_int_pair_sort): Likewise.
19426 (extract_range_from_binary_expr_1): Use wide-int interfaces.
19427 (extract_range_from_unary_expr_1): Likewise.
19428 (adjust_range_with_scev): Likewise.
19429 (masked_increment): Take and return wide_ints rather than double_ints.
19430 (register_edge_assert_for_2): Use wide-int interfaces.
19431 (check_array_ref): Likewise.
19432 (search_for_addr_array): Likewise.
19433 (maybe_set_nonzero_bits): Likewise.
19434 (union_ranges): Pass an integer of the correct type instead of
19435 using integer_one_node.
19436 (intersect_ranges): Likewise.
19437 (simplify_truth_ops_using_ranges): Likewise.
19438 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19439 (range_fits_type_p): Likewise.
19440 (simplify_cond_using_ranges): Likewise. Take a signop rather than
19442 (simplify_conversion_using_ranges): Use wide-int interfaces.
19443 (simplify_float_conversion_using_ranges): Likewise.
19444 (vrp_finalize): Likewise.
19445 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19446 (gimple_stringops_transform): Likewise.
19447 * varasm.c (decode_addr_const): Likewise.
19448 (const_hash_1): Likewise.
19449 (const_rtx_hash_1): Likewise
19450 (output_constant): Likewise.
19451 (array_size_for_constructor): Likewise.
19452 (output_constructor_regular_field): Likewise.
19453 (output_constructor_bitfield): Likewise.
19454 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19455 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19457 * gencheck.c: Define BITS_PER_UNIT.
19458 * wide-int.cc: New.
19460 * wide-int-print.cc: New.
19461 * wide-int-print.h: New.
19463 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19465 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19467 2014-05-06 Richard Biener <rguenther@suse.de>
19469 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19470 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19471 (TODO_verify_all): Adjust.
19472 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19473 TODO_verify_stmts and TODO_verify_rtl_sharing.
19474 * bb-reorder.c: Likewise.
19475 * cfgexpand.c: Likewise.
19476 * cprop.c: Likewise.
19478 * function.c: Likewise.
19479 * fwprop.c: Likewise.
19480 * gcse.c: Likewise.
19481 * gimple-ssa-isolate-paths.c: Likewise.
19482 * gimple-ssa-strength-reduction.c: Likewise.
19483 * ipa-split.c: Likewise.
19484 * loop-init.c: Likewise.
19485 * loop-unroll.c: Likewise.
19486 * lower-subreg.c: Likewise.
19487 * modulo-sched.c: Likewise.
19488 * postreload-gcse.c: Likewise.
19489 * predict.c: Likewise.
19490 * recog.c: Likewise.
19491 * sched-rgn.c: Likewise.
19492 * store-motion.c: Likewise.
19493 * tracer.c: Likewise.
19494 * trans-mem.c: Likewise.
19495 * tree-call-cdce.c: Likewise.
19496 * tree-cfg.c: Likewise.
19497 * tree-cfgcleanup.c: Likewise.
19498 * tree-complex.c: Likewise.
19499 * tree-eh.c: Likewise.
19500 * tree-emutls.c: Likewise.
19501 * tree-if-conv.c: Likewise.
19502 * tree-into-ssa.c: Likewise.
19503 * tree-loop-distribution.c: Likewise.
19504 * tree-object-size.c: Likewise.
19505 * tree-parloops.c: Likewise.
19506 * tree-pass.h: Likewise.
19507 * tree-sra.c: Likewise.
19508 * tree-ssa-ccp.c: Likewise.
19509 * tree-ssa-copy.c: Likewise.
19510 * tree-ssa-copyrename.c: Likewise.
19511 * tree-ssa-dce.c: Likewise.
19512 * tree-ssa-dom.c: Likewise.
19513 * tree-ssa-dse.c: Likewise.
19514 * tree-ssa-forwprop.c: Likewise.
19515 * tree-ssa-ifcombine.c: Likewise.
19516 * tree-ssa-loop-ch.c: Likewise.
19517 * tree-ssa-loop-ivcanon.c: Likewise.
19518 * tree-ssa-loop.c: Likewise.
19519 * tree-ssa-math-opts.c: Likewise.
19520 * tree-ssa-phiopt.c: Likewise.
19521 * tree-ssa-phiprop.c: Likewise.
19522 * tree-ssa-pre.c: Likewise.
19523 * tree-ssa-reassoc.c: Likewise.
19524 * tree-ssa-sink.c: Likewise.
19525 * tree-ssa-strlen.c: Likewise.
19526 * tree-ssa-tail-merge.c: Likewise.
19527 * tree-ssa-uncprop.c: Likewise.
19528 * tree-switch-conversion.c: Likewise.
19529 * tree-tailcall.c: Likewise.
19530 * tree-vect-generic.c: Likewise.
19531 * tree-vectorizer.c: Likewise.
19532 * tree-vrp.c: Likewise.
19533 * tsan.c: Likewise.
19534 * var-tracking.c: Likewise.
19535 * bt-load.c: Likewise.
19536 * cfgcleanup.c: Likewise.
19537 * combine-stack-adj.c: Likewise.
19538 * combine.c: Likewise.
19539 * compare-elim.c: Likewise.
19540 * config/epiphany/resolve-sw-modes.c: Likewise.
19541 * config/i386/i386.c: Likewise.
19542 * config/mips/mips.c: Likewise.
19543 * config/s390/s390.c: Likewise.
19544 * config/sh/sh_treg_combine.cc: Likewise.
19545 * config/sparc/sparc.c: Likewise.
19548 * final.c: Likewise.
19549 * ifcvt.c: Likewise.
19550 * mode-switching.c: Likewise.
19551 * passes.c: Likewise.
19552 * postreload.c: Likewise.
19554 * reg-stack.c: Likewise.
19555 * regcprop.c: Likewise.
19556 * regrename.c: Likewise.
19559 2014-05-06 Richard Biener <rguenther@suse.de>
19561 PR middle-end/61070
19562 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
19563 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
19565 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
19568 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
19570 2014-05-05 Radovan Obradovic <robradovic@mips.com>
19571 Tom de Vries <tom@codesourcery.com>
19573 * target.def (call_fusage_contains_non_callee_clobbers): New
19575 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
19577 (@node Miscellaneous Register Hooks): New node.
19578 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
19579 * doc/tm.texi: Regenerate.
19581 2014-05-05 Marek Polacek <polacek@redhat.com>
19584 * opts.c (common_handle_option): Call error_at instead of warning_at.
19586 2014-05-05 Richard Biener <rguenther@suse.de>
19588 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
19589 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
19590 under the TODO_verify_il umbrella.
19592 2014-05-05 Richard Biener <rguenther@suse.de>
19594 * passes.c (execute_function_todo): Move TODO_verify_flow under
19595 the TODO_verify_ul umbrella.
19597 2014-05-05 Richard Biener <rguenther@suse.de>
19599 PR middle-end/61010
19600 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
19601 X & CST away from a CST that is the mask of a mode.
19603 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19605 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
19606 int argument to enum machine_mode.
19607 (picochip_class_max_nregs): Ditto.
19608 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
19609 (picochip_class_max_nregs): Ditto.
19611 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19613 * target.def: Add new target hook.
19614 * doc/tm.texi: Regenerate.
19615 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
19616 * targhooks.c (default_keep_leaf_when_profiled): New function.
19618 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
19619 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
19621 2014-05-05 Bin Cheng <bin.cheng@arm.com>
19623 PR tree-optimization/60363
19624 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
19625 (copy_phi_args): New parameters. Call get_value_locus_in_path.
19626 (update_destination_phis): New parameter.
19627 (create_edge_and_update_destination_phis): Ditto.
19628 (ssa_fix_duplicate_block_edges): Pass new arguments.
19629 (thread_single_edge): Ditto.
19631 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
19633 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
19634 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
19635 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
19636 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
19637 Use RS6000_BTM_HARD_FLOAT.
19638 (BU_MISC_2): Likewise.
19639 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19640 RS6000_BTM_HARD_FLOAT.
19641 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
19642 is explicitly used.
19643 (rs6000_invalid_builtin): Add hard floating builtin support.
19644 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
19645 hard float builtins.
19646 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
19648 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19650 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
19651 Add missing function* argument.
19653 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19655 * lra-constraints.c (valid_address_p): Move earlier in file.
19656 Add a constraint argument to the address_info version.
19657 (satisfies_memory_constraint_p): New function.
19658 (satisfies_address_constraint_p): Likewise.
19659 (process_alt_operands, curr_insn_transform): Use them.
19660 (process_address): Pass the constraint to valid_address_p when
19661 checking address operands.
19663 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19665 * config/mips/mips.c (mips_isa_rev): New variable.
19666 (mips_set_architecture): Set it.
19667 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
19669 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
19670 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
19671 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
19672 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
19673 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
19674 conditions in terms of mips_isa_rev.
19675 (mips_isa_rev): Declare.
19677 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19679 * config/sh/sh-mem.cc: Use tabs instead of spaces.
19680 (prob_unlikely, prob_likely): Make variables const.
19682 2014-05-03 Denis Chertykov <chertykov@gmail.com>
19684 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
19686 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19688 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
19690 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19692 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
19693 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
19694 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
19696 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
19697 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
19699 Replace usage of ROUND_REG with sh_round_reg.
19700 Use CEIL instead of ROUND_ADVANCE.
19702 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19705 * config/sh/sh.c: Include stdlib headers before everything else.
19707 2014-05-02 Jakub Jelinek <jakub@redhat.com>
19709 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
19710 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
19711 (gimplify_adjust_omp_clauses): Simd region is never
19712 directly nested in combined parallel. Instead, for linear
19713 with copyin/copyout, if in combined for simd loop, make decl
19714 firstprivate/lastprivate on OMP_FOR.
19715 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
19716 expand_omp_for_static_chunk): When setting endvar, also set
19717 fd->loop.v to the same value.
19719 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19721 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
19723 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
19725 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
19728 2014-05-02 Marek Polacek <polacek@redhat.com>
19730 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
19732 2014-05-02 Kito Cheng <kito@0xlab.org>
19734 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
19735 to a C expression marco.
19736 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
19737 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
19738 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
19739 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
19740 HONOR_REG_ALLOC_ORDER.
19741 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
19743 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19745 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
19747 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19749 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
19751 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19753 * tree-if-conv.c (is_cond_scalar_reduction): New function.
19754 (convert_scalar_cond_reduction): Likewise.
19755 (predicate_scalar_phi): Add recognition and transformation
19756 of simple conditioanl reduction to be vectorizable.
19758 2014-05-01 Marek Polacek <polacek@redhat.com>
19761 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
19763 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
19765 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
19766 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
19767 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
19768 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
19769 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
19770 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
19771 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
19772 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
19774 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
19776 * config/arc/arc.opt (mlra): Move comment above option name
19777 to avoid mis-parsing as language options.
19779 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19781 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
19782 * config/sol2.h: ... here.
19783 * config/sol2-10.h: Remove.
19785 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
19786 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
19787 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
19788 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
19789 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
19790 * config/sol2.h: ... here.
19791 (SECTION_NAME_FORMAT): Don't redefine.
19792 (STARTFILE_ARCH32_SPEC): Rename to ...
19793 (STARTFILE_ARCH_SPEC): ... this.
19794 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19795 * config/sparc/sol2.h: ... here.
19796 (SECTION_NAME_FORMAT): Don't undef.
19797 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
19798 (SUBTARGET_EXTRA_SPECS): Remove.
19799 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19801 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
19802 (MD_STARTFILE_PREFIX): Remove.
19803 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
19804 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
19805 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
19806 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
19807 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
19808 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
19809 * config/i386/sol2.h: ... here.
19810 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
19811 * config/i386/sol2-bi.h: Remove.
19812 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
19813 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
19815 * config/i386/t-sol2-64: Rename to ...
19816 * config/i386/t-sol2: ... this.
19817 * config/sparc/t-sol2-64: Rename to ...
19818 * config/sparc/t-sol2: ... this.
19820 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
19821 sol2_tm_file_head, sol2_tm_file_tail.
19822 Include ${cpu_type}/sol2.h before sol2.h.
19824 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
19825 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
19826 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
19827 Reflect i386/t-sol2-64 renaming.
19828 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
19829 Reflect sparc/t-sol2-64 renaming.
19831 2014-04-30 Richard Biener <rguenther@suse.de>
19833 * passes.c (execute_function_todo): Move TODO_verify_stmts
19834 and TODO_verify_ssa under the TODO_verify_il umbrella.
19835 * tree-ssa.h (verify_ssa): Adjust prototype.
19836 * tree-ssa.c (verify_ssa): Add parameter to tell whether
19837 we should verify SSA operands.
19838 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
19839 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
19840 whether we should verify whether not throwing stmts have EH info.
19841 * graphite-scop-detection.c (create_sese_edges): Adjust.
19842 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
19843 * tree-eh.c (lower_try_finally_switch): Do not add the
19844 default case label twice.
19846 2014-04-30 Marek Polacek <polacek@redhat.com>
19848 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
19849 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
19850 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
19851 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
19853 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
19855 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
19856 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
19857 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
19858 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
19859 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
19860 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
19861 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
19862 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
19864 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19866 * tree-cfg.c (dump_function_to_file): Dump the return type of
19867 functions, in a line to itself before the function body, mimicking
19868 the layout of a C function.
19870 2014-04-29 Jakub Jelinek <jakub@redhat.com>
19872 PR tree-optimization/60971
19873 * tree-tailcall.c (process_assignment): Reject conversions which
19876 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
19878 * calls.c (initialize_argument_information): Always treat
19879 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
19880 (expand_call): Likewise.
19881 (emit_library_call_calue_1): Likewise.
19882 * expr.c (PUSH_ARGS_REVERSED): Do not define.
19883 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
19886 2014-04-29 Nick Clifton <nickc@redhat.com>
19888 * config/msp430/msp430.md (umulsidi): Fix typo.
19889 (mulhisi3): Enable even inside interrupt handlers.
19890 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
19891 bigger return address pushed in large mode.
19893 2014-04-29 Nick Clifton <nickc@redhat.com>
19895 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
19896 (arc_init_reg_tables): Use a machine_mode enum to iterate over
19898 * config/m32r/m32r.c (init_reg_tables): Likewise.
19899 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
19900 enum to hold the modes.
19902 2014-04-29 Richard Biener <rguenther@suse.de>
19904 * dominance.c (free_dominance_info): Add overload with
19905 function parameter.
19906 (dom_info_state): Likewise.
19907 (dom_info_available_p): Likewise.
19908 * basic-block.h (free_dominance_info, dom_info_state,
19909 dom_info_available_p): Declare overloads.
19910 * passes.c (execute_function_todo): Verify that verifiers
19911 don't change dominator info state. Drop dominator info
19912 for IPA pass invocations.
19913 * cgraph.c (release_function_body): Restore asserts that
19914 dominator information is released.
19916 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
19918 * doc/invoke.texi: Fix typo.
19919 * tree-vrp.c: Fix typos.
19920 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
19922 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19924 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
19926 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
19928 * config/aarch64/aarch64-builtins.c
19929 (aarch64_types_storestruct_lane_qualifiers): New.
19930 (TYPES_STORESTRUCT_LANE): Likewise.
19931 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
19932 (st3_lane): Likewise.
19933 (st4_lane): Likewise.
19934 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
19935 (vec_store_lanesci_lane<mode>): Likewise.
19936 (vec_store_lanesxi_lane<mode>): Likewise.
19937 (aarch64_st2_lane<VQ:mode>): Likewise.
19938 (aarch64_st3_lane<VQ:mode>): Likewise.
19939 (aarch64_st4_lane<VQ:mode>): Likewise.
19940 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
19941 * config/aarch64/arm_neon.h
19942 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
19943 use new macro arguments.
19944 (__ST3_LANE_FUNC): Likewise.
19945 (__ST4_LANE_FUNC): Likewise.
19946 * config/aarch64/iterators.md (V_TWO_ELEM): New.
19947 (V_THREE_ELEM): Likewise.
19948 (V_FOUR_ELEM): Likewise.
19950 2014-04-28 David Malcolm <dmalcolm@redhat.com>
19952 * doc/gimple.texi: Replace the description of the now-defunct
19953 union gimple_statement_d with a diagram showing the
19954 gimple_statement_base class hierarchy and its relationships to
19955 the GSS_ and GIMPLE_ enums.
19957 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
19959 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
19960 * config/aarch64/aarch64.c
19961 (aarch64_cannot_change_mode_class): Weaken conditions.
19962 (aarch64_modes_tieable_p): New.
19963 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
19965 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
19967 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19968 (loadsync_<mode>): Change mode.
19969 (load_quadpti, store_quadpti): New.
19970 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19971 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19973 2014-04-28 Martin Jambor <mjambor@suse.cz>
19975 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
19976 same alias type as the original statement.
19977 (subreplacement_assignment_data): New type.
19978 (handle_unscalarized_data_in_subtree): New type of parameter,
19979 generate new memory accesses with same alias type as the original
19981 (load_assign_lhs_subreplacements): Likewise.
19982 (sra_modify_constructor_assign): Generate new memory accesses with
19983 same alias type as the original statement.
19985 2014-04-28 Richard Biener <rguenther@suse.de>
19987 * tree-pass.h (TODO_verify_il): Define.
19988 (TODO_verify_all): Complete properly.
19989 * passes.c (execute_function_todo): Move existing loop-closed
19990 SSA verification under TODO_verify_il.
19991 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
19992 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
19993 Fix tree sharing issue.
19995 2014-04-28 Richard Biener <rguenther@suse.de>
19997 PR middle-end/60092
19998 * builtins.def (DEF_C11_BUILTIN): Add.
19999 (BUILT_IN_ALIGNED_ALLOC): Likewise.
20000 * coretypes.h (enum function_class): Add function_c11_misc.
20001 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20002 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20003 (call_may_clobber_ref_p_1): Likewise.
20004 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20005 (mark_all_reaching_defs_necessary_1): Likewise.
20006 (propagate_necessity): Likewise.
20007 (eliminate_unnecessary_stmts): Likewise.
20008 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20010 2014-04-28 Richard Biener <rguenther@suse.de>
20012 * tree-vrp.c (vrp_var_may_overflow): Remove.
20013 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20014 with overflow immediately bump to one before that value and
20015 let iteration figure out overflow status.
20017 2014-04-28 Richard Biener <rguenther@suse.de>
20019 * configure.ac: Do valgrind header checks unconditionally.
20020 Add --enable-valgrind-annotations.
20021 * system.h: Guard valgrind header inclusion with
20022 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20023 * alloc-pool.c (pool_alloc, pool_free): Use
20024 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20025 to guard possibly dead code.
20026 * config.in: Regenerated.
20027 * configure: Likewise.
20029 2014-04-28 Jeff Law <law@redhat.com>
20031 PR tree-optimization/60902
20032 * tree-ssa-threadedge.c
20033 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20034 over real defs when invalidating outputs from statements that do not
20035 produce useful outputs for threading.
20037 2014-04-28 Richard Biener <rguenther@suse.de>
20039 PR tree-optimization/60979
20040 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20041 SCOPs that end in a block with a successor with abnormal
20044 2014-04-28 Richard Biener <rguenther@suse.de>
20046 * tree-pass.h (execute_pass_list): Adjust prototype.
20047 * passes.c (pass_manager::execute_early_local_passes): Adjust.
20048 (do_per_function): Change callback signature, push all actual
20049 work to the callbals.
20050 (do_per_function_toporder): Likewise.
20051 (execute_function_dump): Adjust.
20052 (execute_function_todo): Likewise.
20053 (clear_last_verified): Likewise.
20054 (verify_curr_properties): Likewise.
20055 (update_properties_after_pass): Likewise.
20056 (execute_pass_list_1): Split out from ...
20057 (execute_pass_list): ... here. Adjust.
20058 (execute_ipa_pass_list): Likewise.
20059 * cgraphunit.c (cgraph_add_new_function): Adjust.
20060 (analyze_function): Likewise.
20061 (expand_function): Likewise.
20062 * cgraph.c (release_function_body): Free dominance info
20063 here instead of asserting it was magically freed elsewhere.
20065 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
20067 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20068 * configure: Regenerate.
20069 * config/sparc/sparc.opt (muser-mode): New option.
20070 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20072 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20073 * doc/invoke.texi (SPARC options): Document -muser-mode.
20075 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20077 * cselib.c (find_slot_memmode): Delete.
20078 (cselib_hasher): Change compare_type to a struct.
20079 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
20081 (preserve_constants_and_equivs): Adjust for new compare_type.
20082 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
20083 (wrap_constant): Delete.
20084 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20086 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
20088 * doc/install.texi (Building with profile feedback): Remove
20091 2014-04-26 Tom de Vries <tom@codesourcery.com>
20093 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20096 2014-04-25 Cary Coutant <ccoutant@google.com>
20099 * dwarf2out.c (should_move_die_to_comdat): A type definition
20100 can contain a subprogram definition, but don't move it to a
20102 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20103 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20105 (clone_tree_hash): Rename to...
20106 (clone_tree_partial): ...this; change callers. Copy
20107 DW_TAG_subprogram DIEs as declarations.
20108 (copy_decls_walk): Don't copy children of a declaration into a
20111 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
20114 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20117 2014-04-25 Jiong Wang <jiong.wang@arm.com>
20119 * config/arm/predicates.md (call_insn_operand): Add long_call check.
20120 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20122 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20125 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20127 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20129 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20131 PR tree-optimization/60930
20132 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
20133 creating a multiply candidate by folding two constant
20134 multiplicands when the result overflows.
20136 2014-04-25 Jakub Jelinek <jakub@redhat.com>
20138 PR tree-optimization/60960
20139 * tree-vect-generic.c (expand_vector_operation): Only call
20140 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20142 2014-04-25 Tom de Vries <tom@codesourcery.com>
20144 * expr.c (clobber_reg_mode): New function.
20145 * expr.h (clobber_reg): New function.
20147 2014-04-25 Tom de Vries <tom@codesourcery.com>
20149 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20152 2014-04-25 Radovan Obradovic <robradovic@mips.com>
20153 Tom de Vries <tom@codesourcery.com>
20155 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20157 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20158 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20159 new argument to find_all_hard_reg_sets call.
20161 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20163 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20164 Use HOST_WIDE_INT_C for mask literal.
20165 (aarch_rev16_shleft_mask_imm_p): Likewise.
20167 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
20170 * config/sparc/sparc.md (ashlsi3_extend): Delete.
20172 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
20174 PR preprocessor/56540
20175 * config/i386/i386-c.c (ix86_target_macros): Define
20176 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20178 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20180 * configure.ac (tga_func): Remove.
20181 (LIB_TLS_SPEC): Remove.
20182 * configure: Regenerate.
20183 * config.in: Regenerate.
20184 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20186 2014-04-25 Richard Biener <rguenther@suse.de>
20189 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20190 call stmt use/clobber sets during stmt walk instead of
20191 walking the possibly incomplete set of caller edges.
20193 2014-04-25 Richard Biener <rguenther@suse.de>
20196 * passes.c (apply_ipa_transforms): Inline into only caller ...
20197 (execute_one_pass): ... here. Properly bring in function
20198 bodies for nodes we want to apply IPA transforms to.
20200 2014-04-24 Cong Hou <congh@google.com>
20202 PR tree-optimization/60896
20203 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20204 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20205 (vect_mark_pattern_stmts): Set the def type of all statements in
20206 PATTERN_DEF_SEQ as vect_internal_def.
20208 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20210 * doc/extend.texi (PowerPC Built-in Functions): Document new
20211 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20212 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20214 * config/rs6000/predicates.md (const_0_to_3_operand): New
20215 predicate to match 0..3 integer constants.
20217 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20218 to support adding miscellaneous builtin functions.
20219 (BU_DFP_MISC_2): Likewise.
20220 (BU_P7_MISC_1): Likewise.
20221 (BU_P7_MISC_2): Likewise.
20222 (BU_P8V_MISC_3): Likewise.
20223 (BU_MISC_1): Likewise.
20224 (BU_MISC_2): Likewise.
20225 (DIVWE): Add extended divide builtin functions.
20226 (DIVWEO): Likewise.
20227 (DIVWEU): Likewise.
20228 (DIVWEUO): Likewise.
20230 (DIVDEO): Likewise.
20231 (DIVDEU): Likewise.
20232 (DIVDEUO): Likewise.
20233 (DXEX): Add decimal floating-point builtin functions.
20235 (DDEDPD): Likewise.
20236 (DDEDPDQ): Likewise.
20237 (DENBCD): Likewise.
20238 (DENBCDQ): Likewise.
20242 (DSCLIQ): Likewise.
20244 (DSCRIQ): Likewise.
20245 (CDTBCD): Add new BCD builtin functions.
20246 (CBCDTD): Likewise.
20247 (ADDG6S): Likewise.
20248 (BCDADD): Likewise.
20249 (BCDADD_LT): Likewise.
20250 (BCDADD_EQ): Likewise.
20251 (BCDADD_GT): Likewise.
20252 (BCDADD_OV): Likewise.
20253 (BCDSUB): Likewise.
20254 (BCDSUB_LT): Likewise.
20255 (BCDSUB_EQ): Likewise.
20256 (BCDSUB_GT): Likewise.
20257 (BCDSUB_OV): Likewise.
20258 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20259 (UNPACK_TD): Likewise.
20260 (PACK_TF): Likewise.
20261 (UNPACK_TF): Likewise.
20262 (UNPACK_TF_0): Likewise.
20263 (UNPACK_TF_1): Likewise.
20264 (PACK_V1TI): Likewise.
20265 (UNPACK_V1TI): Likewise.
20267 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20268 support for decimal floating point builtin functions.
20269 (rs6000_expand_ternop_builtin): Add checks for the new builtin
20270 functions that take constant arguments.
20271 (rs6000_invalid_builtin): Add decimal floating point builtin support.
20272 (rs6000_init_builtins): Setup long double, _Decimal64, and
20273 _Decimal128 types for new builtin functions.
20274 (builtin_function_type): Set the unsigned flags appropriately for
20275 the new builtin functions.
20276 (rs6000_opt_masks): Add support for decimal floating point builtin
20279 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20280 floating point builtin functions.
20281 (RS6000_BTM_COMMON): Likewise.
20282 (RS6000_BTI_long_double): Likewise.
20283 (RS6000_BTI_dfloat64): Likewise.
20284 (RS6000_BTI_dfloat128): Likewise.
20285 (long_double_type_internal_node): Likewise.
20286 (dfloat64_type_internal_node): Likewise.
20287 (dfloat128_type_internal_node): Likewise.
20289 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20290 2.07 bcd arithmetic instructions.
20291 (UNSPEC_BCDSUB): Likewise.
20292 (UNSPEC_BCD_OVERFLOW): Likewise.
20293 (UNSPEC_BCD_ADD_SUB): Likewise.
20294 (bcd_add_sub): Likewise.
20295 (BCD_TEST): Likewise.
20296 (bcd<bcd_add_sub>): Likewise.
20297 (bcd<bcd_add_sub>_test): Likewise.
20298 (bcd<bcd_add_sub>_test2): Likewise.
20299 (bcd<bcd_add_sub>_<code>): Likewise.
20300 (peephole2 for combined bcd ops): Likewise.
20302 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20303 decimal floating point builtin functions.
20304 (UNSPEC_DENBCD): Likewise.
20305 (UNSPEC_DXEX): Likewise.
20306 (UNSPEC_DIEX): Likewise.
20307 (UNSPEC_DSCLI): Likewise.
20308 (UNSPEC_DSCRI): Likewise.
20309 (D64_D128): Likewise.
20310 (dfp_suffix): Likewise.
20311 (dfp_ddedpd_<mode>): Likewise.
20312 (dfp_denbcd_<mode>): Likewise.
20313 (dfp_dxex_<mode>): Likewise.
20314 (dfp_diex_<mode>): Likewise.
20315 (dfp_dscli_<mode>): Likewise.
20316 (dfp_dscri_<mode>): Likewise.
20318 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20320 (UNSPEC_CDTBCD): Likewise.
20321 (UNSPEC_CBCDTD): Likewise.
20322 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20323 (UNSPEC_DIVEO): Likewise.
20324 (UNSPEC_DIVEU): Likewise.
20325 (UNSPEC_DIVEUO): Likewise.
20326 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20327 pack/unpack 128-bit types.
20328 (UNSPEC_PACK_128BIT): Likewise.
20329 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20330 (udiv<mode>3): Use idiv_ldiv mode attribute.
20331 (div<mode>3): Likewise.
20332 (addg6s): Add new BCD builtin functions.
20333 (cdtbcd): Likewise.
20334 (cbcdtd): Likewise.
20335 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20336 (div_extend): Likewise.
20337 (div<div_extend>_<mode>"): Likewise.
20338 (FP128_64): Add support for new builtin functions to pack/unpack
20340 (unpack<mode>): Likewise.
20341 (unpacktf_0): Likewise.
20342 (unpacktf_1): Likewise.
20343 (unpack<mode>_dm): Likewise.
20344 (unpack<mode>_nodm): Likewise.
20345 (pack<mode>): Likewise.
20346 (unpackv1ti): Likewise.
20347 (packv1ti): Likewise.
20349 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
20351 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20354 2014-04-24 Jakub Jelinek <jakub@redhat.com>
20356 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20357 * gimplify.c (omp_is_private): Change last argument's type to int.
20358 Only diagnose lastprivate if the simd argument is 1, only diagnose
20359 linear if the simd argument is 2.
20360 (gimplify_omp_for): Adjust omp_is_private callers. When adding
20361 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
20362 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
20363 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20364 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20365 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20366 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20367 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20368 * tree-nested.c (convert_nonlocal_omp_clauses,
20369 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20371 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
20374 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20377 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
20379 * flag-types.h (enum ivar_visibility): Add.
20381 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
20383 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20384 function * argument.
20386 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
20388 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20390 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20391 Tom de Vries <tom@codesourcery.com>
20393 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20394 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20396 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20397 * emit-rtl.c (try_split): Same.
20399 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20400 Tom de Vries <tom@codesourcery.com>
20402 * common.opt (fuse-caller-save): New option.
20404 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
20406 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20407 elements for big-endian.
20409 2014-04-24 Richard Biener <rguenther@suse.de>
20411 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20412 during TER and instead use the sepops interface for expanding
20413 non-GIMPLE_SINGLE_RHS.
20415 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20417 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20418 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20420 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20422 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20423 assembler 64-bit option.
20424 * configure: Regenerate.
20426 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20428 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20429 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20430 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20431 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20432 (TARGET_CRYPTO): Take TARGET_SIMD into account.
20434 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20436 * config/aarch64/aarch64-builtins.c
20437 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20438 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20439 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20440 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20442 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20443 (Vrevsuff): New mode attribute.
20445 2014-04-24 Terry Guo <terry.guo@arm.com>
20447 * config/arm/arm.h (machine_function): Define variable
20448 after_arm_reorg here.
20449 * config/arm/arm.c (after_arm_reorg): Remove the definition.
20450 (arm_split_constant): Update the way to access variable
20452 (arm_reorg): Ditto.
20453 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20455 2014-04-23 Tom de Vries <tom@codesourcery.com>
20457 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20459 2014-04-23 David Malcolm <dmalcolm@redhat.com>
20461 * is-a.h: Update comments to reflect the following changes to the
20462 "pointerness" of the API, making the template parameter match the
20463 return type, allowing use of is-a.h with typedefs of pointers.
20464 (is_a_helper::cast): Return a T rather then a pointer to a T, so
20465 that the return type matches the parameter to the is_a_helper.
20467 (dyn_cast): Likewise.
20469 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20470 pointer from the is-a.h API.
20472 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20473 (is_a_helper <cgraph_node *>::test): ...this, matching change to
20475 (is_a_helper <varpool_node>::test): Likewise, convert to...
20476 (is_a_helper <varpool_node *>::test): ...this.
20478 (varpool_first_variable): Update for removal of implicit pointer
20479 from the is-a.h API.
20480 (varpool_next_variable): Likewise.
20481 (varpool_first_static_initializer): Likewise.
20482 (varpool_next_static_initializer): Likewise.
20483 (varpool_first_defined_variable): Likewise.
20484 (varpool_next_defined_variable): Likewise.
20485 (cgraph_first_defined_function): Likewise.
20486 (cgraph_next_defined_function): Likewise.
20487 (cgraph_first_function): Likewise.
20488 (cgraph_next_function): Likewise.
20489 (cgraph_first_function_with_gimple_body): Likewise.
20490 (cgraph_next_function_with_gimple_body): Likewise.
20491 (cgraph_alias_target): Likewise.
20492 (varpool_alias_target): Likewise.
20493 (cgraph_function_or_thunk_node): Likewise.
20494 (varpool_variable_node): Likewise.
20495 (symtab_real_symbol_p): Likewise.
20496 * cgraphunit.c (referred_to_p): Likewise.
20497 (analyze_functions): Likewise.
20498 (handle_alias_pairs): Likewise.
20499 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20500 * gimple-ssa.h (gimple_vuse_op): Likewise.
20501 (gimple_vdef_op): Likewise.
20502 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20503 * gimple.c (gimple_build_asm_1): Likewise.
20504 (gimple_build_try): Likewise.
20505 (gimple_build_resx): Likewise.
20506 (gimple_build_eh_dispatch): Likewise.
20507 (gimple_build_omp_for): Likewise.
20508 (gimple_omp_for_set_clauses): Likewise.
20510 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20511 (is_a_helper <gimple_statement_asm *>::test): ...this.
20512 (is_a_helper <gimple_statement_bind>::test): Convert to...
20513 (is_a_helper <gimple_statement_bind *>::test): ...this.
20514 (is_a_helper <gimple_statement_call>::test): Convert to...
20515 (is_a_helper <gimple_statement_call *>::test): ...this.
20516 (is_a_helper <gimple_statement_catch>::test): Convert to...
20517 (is_a_helper <gimple_statement_catch *>::test): ...this.
20518 (is_a_helper <gimple_statement_resx>::test): Convert to...
20519 (is_a_helper <gimple_statement_resx *>::test): ...this.
20520 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
20521 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
20522 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
20523 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
20524 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
20525 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
20526 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
20527 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
20528 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
20529 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
20530 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
20531 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
20532 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
20533 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
20534 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
20535 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
20536 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
20537 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
20538 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
20539 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
20540 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
20541 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
20542 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
20543 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
20544 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
20545 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
20546 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
20547 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
20548 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
20549 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
20550 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
20551 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
20552 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
20553 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
20554 (is_a_helper <gimple_statement_phi>::test): Convert to...
20555 (is_a_helper <gimple_statement_phi *>::test): ...this.
20556 (is_a_helper <gimple_statement_transaction>::test): Convert to...
20557 (is_a_helper <gimple_statement_transaction *>::test): ...this.
20558 (is_a_helper <gimple_statement_try>::test): Convert to...
20559 (is_a_helper <gimple_statement_try *>::test): ...this.
20560 (is_a_helper <gimple_statement_wce>::test): Convert to...
20561 (is_a_helper <gimple_statement_wce *>::test): ...this.
20562 (is_a_helper <const gimple_statement_asm>::test): Convert to...
20563 (is_a_helper <const gimple_statement_asm *>::test): ...this.
20564 (is_a_helper <const gimple_statement_bind>::test): Convert to...
20565 (is_a_helper <const gimple_statement_bind *>::test): ...this.
20566 (is_a_helper <const gimple_statement_call>::test): Convert to...
20567 (is_a_helper <const gimple_statement_call *>::test): ...this.
20568 (is_a_helper <const gimple_statement_catch>::test): Convert to...
20569 (is_a_helper <const gimple_statement_catch *>::test): ...this.
20570 (is_a_helper <const gimple_statement_resx>::test): Convert to...
20571 (is_a_helper <const gimple_statement_resx *>::test): ...this.
20572 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
20573 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
20574 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
20575 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
20576 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
20578 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
20580 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
20582 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
20584 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
20585 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
20586 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
20588 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
20589 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
20591 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
20592 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
20593 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
20594 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
20595 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
20596 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
20598 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
20599 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
20600 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
20601 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
20603 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
20604 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
20605 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
20606 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
20607 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
20608 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
20609 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
20610 (is_a_helper <const gimple_statement_phi>::test): Convert to...
20611 (is_a_helper <const gimple_statement_phi *>::test): ...this.
20612 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
20613 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
20614 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
20615 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
20616 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
20617 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
20618 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
20620 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
20622 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
20623 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
20625 (gimple_use_ops): Update for removal of implicit pointer from the
20627 (gimple_set_use_ops): Likewise.
20628 (gimple_vuse): Likewise.
20629 (gimple_vdef): Likewise.
20630 (gimple_vuse_ptr): Likewise.
20631 (gimple_vdef_ptr): Likewise.
20632 (gimple_set_vuse): Likewise.
20633 (gimple_set_vdef): Likewise.
20634 (gimple_omp_return_set_lhs): Likewise.
20635 (gimple_omp_return_lhs): Likewise.
20636 (gimple_omp_return_lhs_ptr): Likewise.
20637 (gimple_call_fntype): Likewise.
20638 (gimple_call_set_fntype): Likewise.
20639 (gimple_call_set_internal_fn): Likewise.
20640 (gimple_call_use_set): Likewise.
20641 (gimple_call_clobber_set): Likewise.
20642 (gimple_bind_vars): Likewise.
20643 (gimple_bind_set_vars): Likewise.
20644 (gimple_bind_body_ptr): Likewise.
20645 (gimple_bind_set_body): Likewise.
20646 (gimple_bind_add_stmt): Likewise.
20647 (gimple_bind_block): Likewise.
20648 (gimple_bind_set_block): Likewise.
20649 (gimple_asm_ninputs): Likewise.
20650 (gimple_asm_noutputs): Likewise.
20651 (gimple_asm_nclobbers): Likewise.
20652 (gimple_asm_nlabels): Likewise.
20653 (gimple_asm_input_op): Likewise.
20654 (gimple_asm_input_op_ptr): Likewise.
20655 (gimple_asm_output_op): Likewise.
20656 (gimple_asm_output_op_ptr): Likewise.
20657 (gimple_asm_set_output_op): Likewise.
20658 (gimple_asm_clobber_op): Likewise.
20659 (gimple_asm_set_clobber_op): Likewise.
20660 (gimple_asm_label_op): Likewise.
20661 (gimple_asm_set_label_op): Likewise.
20662 (gimple_asm_string): Likewise.
20663 (gimple_catch_types): Likewise.
20664 (gimple_catch_types_ptr): Likewise.
20665 (gimple_catch_handler_ptr): Likewise.
20666 (gimple_catch_set_types): Likewise.
20667 (gimple_catch_set_handler): Likewise.
20668 (gimple_eh_filter_types): Likewise.
20669 (gimple_eh_filter_types_ptr): Likewise.
20670 (gimple_eh_filter_failure_ptr): Likewise.
20671 (gimple_eh_filter_set_types): Likewise.
20672 (gimple_eh_filter_set_failure): Likewise.
20673 (gimple_eh_must_not_throw_fndecl): Likewise.
20674 (gimple_eh_must_not_throw_set_fndecl): Likewise.
20675 (gimple_eh_else_n_body_ptr): Likewise.
20676 (gimple_eh_else_e_body_ptr): Likewise.
20677 (gimple_eh_else_set_n_body): Likewise.
20678 (gimple_eh_else_set_e_body): Likewise.
20679 (gimple_try_eval_ptr): Likewise.
20680 (gimple_try_cleanup_ptr): Likewise.
20681 (gimple_try_set_eval): Likewise.
20682 (gimple_try_set_cleanup): Likewise.
20683 (gimple_wce_cleanup_ptr): Likewise.
20684 (gimple_wce_set_cleanup): Likewise.
20685 (gimple_phi_capacity): Likewise.
20686 (gimple_phi_num_args): Likewise.
20687 (gimple_phi_result): Likewise.
20688 (gimple_phi_result_ptr): Likewise.
20689 (gimple_phi_set_result): Likewise.
20690 (gimple_phi_arg): Likewise.
20691 (gimple_phi_set_arg): Likewise.
20692 (gimple_resx_region): Likewise.
20693 (gimple_resx_set_region): Likewise.
20694 (gimple_eh_dispatch_region): Likewise.
20695 (gimple_eh_dispatch_set_region): Likewise.
20696 (gimple_omp_critical_name): Likewise.
20697 (gimple_omp_critical_name_ptr): Likewise.
20698 (gimple_omp_critical_set_name): Likewise.
20699 (gimple_omp_for_clauses): Likewise.
20700 (gimple_omp_for_clauses_ptr): Likewise.
20701 (gimple_omp_for_set_clauses): Likewise.
20702 (gimple_omp_for_collapse): Likewise.
20703 (gimple_omp_for_index): Likewise.
20704 (gimple_omp_for_index_ptr): Likewise.
20705 (gimple_omp_for_set_index): Likewise.
20706 (gimple_omp_for_initial): Likewise.
20707 (gimple_omp_for_initial_ptr): Likewise.
20708 (gimple_omp_for_set_initial): Likewise.
20709 (gimple_omp_for_final): Likewise.
20710 (gimple_omp_for_final_ptr): Likewise.
20711 (gimple_omp_for_set_final): Likewise.
20712 (gimple_omp_for_incr): Likewise.
20713 (gimple_omp_for_incr_ptr): Likewise.
20714 (gimple_omp_for_set_incr): Likewise.
20715 (gimple_omp_for_pre_body_ptr): Likewise.
20716 (gimple_omp_for_set_pre_body): Likewise.
20717 (gimple_omp_parallel_clauses): Likewise.
20718 (gimple_omp_parallel_clauses_ptr): Likewise.
20719 (gimple_omp_parallel_set_clauses): Likewise.
20720 (gimple_omp_parallel_child_fn): Likewise.
20721 (gimple_omp_parallel_child_fn_ptr): Likewise.
20722 (gimple_omp_parallel_set_child_fn): Likewise.
20723 (gimple_omp_parallel_data_arg): Likewise.
20724 (gimple_omp_parallel_data_arg_ptr): Likewise.
20725 (gimple_omp_parallel_set_data_arg): Likewise.
20726 (gimple_omp_task_clauses): Likewise.
20727 (gimple_omp_task_clauses_ptr): Likewise.
20728 (gimple_omp_task_set_clauses): Likewise.
20729 (gimple_omp_task_child_fn): Likewise.
20730 (gimple_omp_task_child_fn_ptr): Likewise.
20731 (gimple_omp_task_set_child_fn): Likewise.
20732 (gimple_omp_task_data_arg): Likewise.
20733 (gimple_omp_task_data_arg_ptr): Likewise.
20734 (gimple_omp_task_set_data_arg): Likewise.
20735 (gimple_omp_taskreg_clauses): Likewise.
20736 (gimple_omp_taskreg_clauses_ptr): Likewise.
20737 (gimple_omp_taskreg_set_clauses): Likewise.
20738 (gimple_omp_taskreg_child_fn): Likewise.
20739 (gimple_omp_taskreg_child_fn_ptr): Likewise.
20740 (gimple_omp_taskreg_set_child_fn): Likewise.
20741 (gimple_omp_taskreg_data_arg): Likewise.
20742 (gimple_omp_taskreg_data_arg_ptr): Likewise.
20743 (gimple_omp_taskreg_set_data_arg): Likewise.
20744 (gimple_omp_task_copy_fn): Likewise.
20745 (gimple_omp_task_copy_fn_ptr): Likewise.
20746 (gimple_omp_task_set_copy_fn): Likewise.
20747 (gimple_omp_task_arg_size): Likewise.
20748 (gimple_omp_task_arg_size_ptr): Likewise.
20749 (gimple_omp_task_set_arg_size): Likewise.
20750 (gimple_omp_task_arg_align): Likewise.
20751 (gimple_omp_task_arg_align_ptr): Likewise.
20752 (gimple_omp_task_set_arg_align): Likewise.
20753 (gimple_omp_single_clauses): Likewise.
20754 (gimple_omp_single_clauses_ptr): Likewise.
20755 (gimple_omp_single_set_clauses): Likewise.
20756 (gimple_omp_target_clauses): Likewise.
20757 (gimple_omp_target_clauses_ptr): Likewise.
20758 (gimple_omp_target_set_clauses): Likewise.
20759 (gimple_omp_target_child_fn): Likewise.
20760 (gimple_omp_target_child_fn_ptr): Likewise.
20761 (gimple_omp_target_set_child_fn): Likewise.
20762 (gimple_omp_target_data_arg): Likewise.
20763 (gimple_omp_target_data_arg_ptr): Likewise.
20764 (gimple_omp_target_set_data_arg): Likewise.
20765 (gimple_omp_teams_clauses): Likewise.
20766 (gimple_omp_teams_clauses_ptr): Likewise.
20767 (gimple_omp_teams_set_clauses): Likewise.
20768 (gimple_omp_sections_clauses): Likewise.
20769 (gimple_omp_sections_clauses_ptr): Likewise.
20770 (gimple_omp_sections_set_clauses): Likewise.
20771 (gimple_omp_sections_control): Likewise.
20772 (gimple_omp_sections_control_ptr): Likewise.
20773 (gimple_omp_sections_set_control): Likewise.
20774 (gimple_omp_for_set_cond): Likewise.
20775 (gimple_omp_for_cond): Likewise.
20776 (gimple_omp_atomic_store_set_val): Likewise.
20777 (gimple_omp_atomic_store_val): Likewise.
20778 (gimple_omp_atomic_store_val_ptr): Likewise.
20779 (gimple_omp_atomic_load_set_lhs): Likewise.
20780 (gimple_omp_atomic_load_lhs): Likewise.
20781 (gimple_omp_atomic_load_lhs_ptr): Likewise.
20782 (gimple_omp_atomic_load_set_rhs): Likewise.
20783 (gimple_omp_atomic_load_rhs): Likewise.
20784 (gimple_omp_atomic_load_rhs_ptr): Likewise.
20785 (gimple_omp_continue_control_def): Likewise.
20786 (gimple_omp_continue_control_def_ptr): Likewise.
20787 (gimple_omp_continue_set_control_def): Likewise.
20788 (gimple_omp_continue_control_use): Likewise.
20789 (gimple_omp_continue_control_use_ptr): Likewise.
20790 (gimple_omp_continue_set_control_use): Likewise.
20791 (gimple_transaction_body_ptr): Likewise.
20792 (gimple_transaction_label): Likewise.
20793 (gimple_transaction_label_ptr): Likewise.
20794 (gimple_transaction_set_body): Likewise.
20795 (gimple_transaction_set_label): Likewise.
20797 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20798 * ipa-inline-analysis.c (inline_write_summary): Likewise.
20799 * ipa-ref.c (ipa_record_reference): Likewise.
20800 * ipa-reference.c (analyze_function): Likewise.
20801 (ipa_reference_write_optimization_summary): Likewise.
20802 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
20803 (address_taken_from_non_vtable_p): Likewise.
20804 (comdat_can_be_unshared_p_1): Likewise.
20805 * lto-cgraph.c (lto_output_ref): Likewise.
20806 (add_references): Likewise.
20807 (compute_ltrans_boundary): Likewise.
20808 (output_symtab): Likewise.
20809 (input_ref): Likewise.
20810 (input_cgraph_1): Likewise.
20811 (output_cgraph_opt_summary): Likewise.
20812 * lto-streamer-out.c (lto_output): Likewise.
20813 (output_symbol_p): Likewise.
20814 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
20815 (lsei_start_function_in_partition): Likewise.
20816 (lsei_next_variable_in_partition): Likewise.
20817 (lsei_start_variable_in_partition): Likewise.
20818 * symtab.c (insert_to_assembler_name_hash): Likewise.
20819 (unlink_from_assembler_name_hash): Likewise.
20820 (symtab_unregister_node): Likewise.
20821 (symtab_remove_node): Likewise.
20822 (dump_symtab_node): Likewise.
20823 (verify_symtab_base): Likewise.
20824 (verify_symtab_node): Likewise.
20825 (symtab_make_decl_local): Likewise.
20826 (symtab_alias_ultimate_target): Likewise.
20827 (symtab_resolve_alias): Likewise.
20828 (symtab_get_symbol_partitioning_class): Likewise.
20829 * tree-phinodes.c (allocate_phi_node): Likewise.
20830 (reserve_phi_args_for_new_edge): Likewise.
20831 (remove_phi_args): Likewise.
20832 * varpool.c (varpool_node_for_asm): Likewise.
20833 (varpool_remove_unreferenced_decls): Likewise.
20835 2014-04-23 Jeff Law <law@redhat.com>
20837 PR tree-optimization/60902
20838 * tree-ssa-threadedge.c
20839 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
20840 invalidate outputs from statements that do not produce useful
20841 outputs for threading.
20843 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
20845 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
20846 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
20847 machine descriptions for Stack Smashing Protector.
20849 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
20851 * aarch64.md (<optab>_rol<mode>3): New pattern.
20852 (<optab>_rolsi3_uxtw): Likewise.
20853 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
20855 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
20857 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
20858 (arm_cortex_a12_tune): Likewise.
20860 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20862 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
20864 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20866 * config/arm/arm.md (arm_rev16si2): New pattern.
20867 (arm_rev16si2_alt): Likewise.
20868 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
20870 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20872 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
20873 (rev16<mode>2_alt): Likewise.
20874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
20875 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
20876 (aarch_rev16_shleft_mask_imm_p): Likewise.
20877 (aarch_rev16_p_1): Likewise.
20878 (aarch_rev16_p): Likewise.
20879 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
20880 (aarch_rev16_shright_mask_imm_p): Likewise.
20881 (aarch_rev16_shleft_mask_imm_p): Likewise.
20883 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20885 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
20886 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
20888 (cortex_a53_extra_costs): Likewise.
20889 (cortex_a57_extra_costs): Likewise.
20890 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
20891 (cortexa7_extra_costs): Likewise.
20892 (cortexa8_extra_costs): Likewise.
20893 (cortexa12_extra_costs): Likewise.
20894 (cortexa15_extra_costs): Likewise.
20895 (v7m_extra_costs): Likewise.
20896 (arm_new_rtx_costs): Handle BSWAP.
20898 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20900 * config/arm/arm.c (cortexa8_extra_costs): New table.
20901 (arm_cortex_a8_tune): New tuning struct.
20902 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
20904 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20906 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
20908 2014-04-23 Richard Biener <rguenther@suse.de>
20910 * Makefile.in (OBJS): Remove loop-unswitch.o.
20911 * tree-pass.h (make_pass_rtl_unswitch): Remove.
20912 * passes.def (pass_rtl_unswitch): Likewise.
20913 * loop-init.c (gate_rtl_unswitch): Likewise.
20914 (rtl_unswitch): Likewise.
20915 (pass_data_rtl_unswitch): Likewise.
20916 (pass_rtl_unswitch): Likewise.
20917 (make_pass_rtl_unswitch): Likewise.
20918 * rtl.h (reversed_condition): Likewise.
20919 (compare_and_jump_seq): Likewise.
20920 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
20922 * loop-unroll.c (compare_and_jump_seq): Likewise.
20924 2014-04-23 Richard Biener <rguenther@suse.de>
20926 PR tree-optimization/60903
20927 * tree-ssa-loop-im.c (analyze_memory_references): Remove
20928 commented code block.
20929 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
20930 loop flags to newly created BBs and edges.
20932 2014-04-23 Nick Clifton <nickc@redhat.com>
20934 * config/msp430/msp430.c (msp430_handle_option): Move function
20936 (msp430_option_override): Simplify mcu and mcpu option handling.
20937 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
20938 support for -mhwmult command line option.
20939 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
20940 -mhwmult command line option.
20941 (msp430_hwmult_enabled): Delete.
20942 (msp43o_output_labelref): Add support for -mhwmult command line option.
20943 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
20944 (umulsidi3): Likewise.
20945 * config/msp430/msp430.opt (mmcu): Add Report attribute.
20946 (mcpu, mlarge, msmall): Likewise.
20947 (mhwmult): New option.
20948 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
20950 (msp430_is_f5_mcu): Remove prototype.
20951 (msp430_use_f5_series_hwmult): Add prototype.
20952 * config/msp430/msp430-opts.h: New file.
20953 * common/config/msp430: New directory.
20954 * common/config/msp430/msp430-common.c: New file.
20955 * config.gcc (msp430): Remove target_has_targetm_common.
20956 * doc/invoke.texi: Document -mhwmult command line option.
20958 2014-04-23 Nick Clifton <nickc@redhat.com>
20960 * config/i386/cygwin.h (ENDFILE_SPEC): Include
20961 default-manifest.o if it can be found in the search path.
20962 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20964 2014-04-23 Terry Guo <terry.guo@arm.com>
20966 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
20968 2014-04-23 Richard Biener <rguenther@suse.de>
20970 PR middle-end/60895
20971 * tree-inline.c (declare_return_variable): Use mark_addressable.
20973 2014-04-23 Richard Biener <rguenther@suse.de>
20975 PR middle-end/60891
20976 * loop-init.c (loop_optimizer_init): Make sure to apply
20977 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
20979 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20982 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
20984 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
20985 if flag_sanitize_undefined_trap_on_error.
20986 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
20987 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
20988 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
20989 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
20990 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
20991 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
20992 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
20993 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
20994 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
20995 * ubsan.c (ubsan_instrument_unreachable): Return
20996 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
20997 (ubsan_expand_null_ifn): Emit __builtin_trap ()
20998 if flag_sanitize_undefined_trap_on_error and
20999 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21000 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21001 instrument_bool_enum_load): Emit __builtin_trap () if
21002 flag_sanitize_undefined_trap_on_error and
21003 __builtin_handle_*_abort () if !flag_sanitize_recover.
21004 * doc/invoke.texi (-fsanitize-recover,
21005 -fsanitize-undefined-trap-on-error): Document.
21007 2014-04-22 Christian Bruel <christian.bruel@st.com>
21009 * config/sh/sh.md (mov<mode>): Replace movQIHI.
21010 Force immediates to SImode.
21012 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
21014 * config/nios2/nios2.md (UNSPEC_ROUND): New.
21015 (lroundsfsi2): New.
21016 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21017 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21018 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21019 (nios2_fpu_insn): Add entry for round.
21020 (N2FPU_NO_ERRNO_P): Define.
21021 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21023 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21025 2014-04-22 Richard Henderson <rth@redhat.com>
21027 * config/aarch64/aarch64 (addti3, subti3): New expanders.
21028 (add<GPI>3_compare0): Remove leading * from name.
21029 (add<GPI>3_carryin): Likewise.
21030 (sub<GPI>3_compare0): Likewise.
21031 (sub<GPI>3_carryin): Likewise.
21032 (<su_optab>mulditi3): New expander.
21033 (multi3): New expander.
21034 (madd<GPI>): Remove leading * from name.
21036 2014-04-22 Martin Jambor <mjambor@suse.cz>
21038 * cgraphclones.c (cgraph_function_versioning): Copy
21039 ipa_transforms_to_apply instead of asserting it is empty.
21041 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
21044 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21045 on count_exp to get mode.
21047 2014-04-22 Andrew Pinski <apinski@cavium.com>
21049 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21050 Handle TLS for ILP32.
21051 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21052 (tlsie_small_<mode>): this and handle PTR.
21053 (tlsie_small_sidi): New pattern.
21054 (tlsle_small): Change to an expand to handle ILP32.
21055 (tlsle_small_<mode>): New pattern.
21056 (tlsdesc_small): Rename to ...
21057 (tlsdesc_small_<mode>): this and handle PTR.
21059 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21061 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21063 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21065 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21066 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21067 (aarch64_types_signed_poly_qualifiers): Likewise.
21068 (aarch64_types_unsigned_signed_qualifiers): Likewise.
21069 (aarch64_types_poly_signed_qualifiers): Likewise.
21070 (TYPES_REINTERP_SS): Type macro added.
21071 (TYPES_REINTERP_SU): Likewise.
21072 (TYPES_REINTERP_SP): Likewise.
21073 (TYPES_REINTERP_US): Likewise.
21074 (TYPES_REINTERP_PS): Likewise.
21075 (aarch64_fold_builtin): New expression folding added.
21076 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21077 Declarations removed.
21078 (REINTERP_SS): Declarations added.
21079 (REINTERP_US): Likewise.
21080 (REINTERP_PS): Likewise.
21081 (REINTERP_SU): Likewise.
21082 (REINTERP_SP): Likewise.
21083 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21084 (vreinterpretq_p8_f64): Likewise.
21085 (vreinterpret_p16_f64): Likewise.
21086 (vreinterpretq_p16_f64): Likewise.
21087 (vreinterpret_f32_f64): Likewise.
21088 (vreinterpretq_f32_f64): Likewise.
21089 (vreinterpret_f64_f32): Likewise.
21090 (vreinterpret_f64_p8): Likewise.
21091 (vreinterpret_f64_p16): Likewise.
21092 (vreinterpret_f64_s8): Likewise.
21093 (vreinterpret_f64_s16): Likewise.
21094 (vreinterpret_f64_s32): Likewise.
21095 (vreinterpret_f64_s64): Likewise.
21096 (vreinterpret_f64_u8): Likewise.
21097 (vreinterpret_f64_u16): Likewise.
21098 (vreinterpret_f64_u32): Likewise.
21099 (vreinterpret_f64_u64): Likewise.
21100 (vreinterpretq_f64_f32): Likewise.
21101 (vreinterpretq_f64_p8): Likewise.
21102 (vreinterpretq_f64_p16): Likewise.
21103 (vreinterpretq_f64_s8): Likewise.
21104 (vreinterpretq_f64_s16): Likewise.
21105 (vreinterpretq_f64_s32): Likewise.
21106 (vreinterpretq_f64_s64): Likewise.
21107 (vreinterpretq_f64_u8): Likewise.
21108 (vreinterpretq_f64_u16): Likewise.
21109 (vreinterpretq_f64_u32): Likewise.
21110 (vreinterpretq_f64_u64): Likewise.
21111 (vreinterpret_s64_f64): Likewise.
21112 (vreinterpretq_s64_f64): Likewise.
21113 (vreinterpret_u64_f64): Likewise.
21114 (vreinterpretq_u64_f64): Likewise.
21115 (vreinterpret_s8_f64): Likewise.
21116 (vreinterpretq_s8_f64): Likewise.
21117 (vreinterpret_s16_f64): Likewise.
21118 (vreinterpretq_s16_f64): Likewise.
21119 (vreinterpret_s32_f64): Likewise.
21120 (vreinterpretq_s32_f64): Likewise.
21121 (vreinterpret_u8_f64): Likewise.
21122 (vreinterpretq_u8_f64): Likewise.
21123 (vreinterpret_u16_f64): Likewise.
21124 (vreinterpretq_u16_f64): Likewise.
21125 (vreinterpret_u32_f64): Likewise.
21126 (vreinterpretq_u32_f64): Likewise.
21128 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21130 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21131 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21132 (vreinterpret_p8_s8): Likewise.
21133 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21134 (vreinterpret_p8_s16): Likewise.
21135 (vreinterpret_p8_s32): Likewise.
21136 (vreinterpret_p8_s64): Likewise.
21137 (vreinterpret_p8_f32): Likewise.
21138 (vreinterpret_p8_u8): Likewise.
21139 (vreinterpret_p8_u16): Likewise.
21140 (vreinterpret_p8_u32): Likewise.
21141 (vreinterpret_p8_u64): Likewise.
21142 (vreinterpret_p8_p16): Likewise.
21143 (vreinterpretq_p8_s8): Likewise.
21144 (vreinterpretq_p8_s16): Likewise.
21145 (vreinterpretq_p8_s32): Likewise.
21146 (vreinterpretq_p8_s64): Likewise.
21147 (vreinterpretq_p8_f32): Likewise.
21148 (vreinterpretq_p8_u8): Likewise.
21149 (vreinterpretq_p8_u16): Likewise.
21150 (vreinterpretq_p8_u32): Likewise.
21151 (vreinterpretq_p8_u64): Likewise.
21152 (vreinterpretq_p8_p16): Likewise.
21153 (vreinterpret_p16_s8): Likewise.
21154 (vreinterpret_p16_s16): Likewise.
21155 (vreinterpret_p16_s32): Likewise.
21156 (vreinterpret_p16_s64): Likewise.
21157 (vreinterpret_p16_f32): Likewise.
21158 (vreinterpret_p16_u8): Likewise.
21159 (vreinterpret_p16_u16): Likewise.
21160 (vreinterpret_p16_u32): Likewise.
21161 (vreinterpret_p16_u64): Likewise.
21162 (vreinterpret_p16_p8): Likewise.
21163 (vreinterpretq_p16_s8): Likewise.
21164 (vreinterpretq_p16_s16): Likewise.
21165 (vreinterpretq_p16_s32): Likewise.
21166 (vreinterpretq_p16_s64): Likewise.
21167 (vreinterpretq_p16_f32): Likewise.
21168 (vreinterpretq_p16_u8): Likewise.
21169 (vreinterpretq_p16_u16): Likewise.
21170 (vreinterpretq_p16_u32): Likewise.
21171 (vreinterpretq_p16_u64): Likewise.
21172 (vreinterpretq_p16_p8): Likewise.
21173 (vreinterpret_f32_s8): Likewise.
21174 (vreinterpret_f32_s16): Likewise.
21175 (vreinterpret_f32_s32): Likewise.
21176 (vreinterpret_f32_s64): Likewise.
21177 (vreinterpret_f32_u8): Likewise.
21178 (vreinterpret_f32_u16): Likewise.
21179 (vreinterpret_f32_u32): Likewise.
21180 (vreinterpret_f32_u64): Likewise.
21181 (vreinterpret_f32_p8): Likewise.
21182 (vreinterpret_f32_p16): Likewise.
21183 (vreinterpretq_f32_s8): Likewise.
21184 (vreinterpretq_f32_s16): Likewise.
21185 (vreinterpretq_f32_s32): Likewise.
21186 (vreinterpretq_f32_s64): Likewise.
21187 (vreinterpretq_f32_u8): Likewise.
21188 (vreinterpretq_f32_u16): Likewise.
21189 (vreinterpretq_f32_u32): Likewise.
21190 (vreinterpretq_f32_u64): Likewise.
21191 (vreinterpretq_f32_p8): Likewise.
21192 (vreinterpretq_f32_p16): Likewise.
21193 (vreinterpret_s64_s8): Likewise.
21194 (vreinterpret_s64_s16): Likewise.
21195 (vreinterpret_s64_s32): Likewise.
21196 (vreinterpret_s64_f32): Likewise.
21197 (vreinterpret_s64_u8): Likewise.
21198 (vreinterpret_s64_u16): Likewise.
21199 (vreinterpret_s64_u32): Likewise.
21200 (vreinterpret_s64_u64): Likewise.
21201 (vreinterpret_s64_p8): Likewise.
21202 (vreinterpret_s64_p16): Likewise.
21203 (vreinterpretq_s64_s8): Likewise.
21204 (vreinterpretq_s64_s16): Likewise.
21205 (vreinterpretq_s64_s32): Likewise.
21206 (vreinterpretq_s64_f32): Likewise.
21207 (vreinterpretq_s64_u8): Likewise.
21208 (vreinterpretq_s64_u16): Likewise.
21209 (vreinterpretq_s64_u32): Likewise.
21210 (vreinterpretq_s64_u64): Likewise.
21211 (vreinterpretq_s64_p8): Likewise.
21212 (vreinterpretq_s64_p16): Likewise.
21213 (vreinterpret_u64_s8): Likewise.
21214 (vreinterpret_u64_s16): Likewise.
21215 (vreinterpret_u64_s32): Likewise.
21216 (vreinterpret_u64_s64): Likewise.
21217 (vreinterpret_u64_f32): Likewise.
21218 (vreinterpret_u64_u8): Likewise.
21219 (vreinterpret_u64_u16): Likewise.
21220 (vreinterpret_u64_u32): Likewise.
21221 (vreinterpret_u64_p8): Likewise.
21222 (vreinterpret_u64_p16): Likewise.
21223 (vreinterpretq_u64_s8): Likewise.
21224 (vreinterpretq_u64_s16): Likewise.
21225 (vreinterpretq_u64_s32): Likewise.
21226 (vreinterpretq_u64_s64): Likewise.
21227 (vreinterpretq_u64_f32): Likewise.
21228 (vreinterpretq_u64_u8): Likewise.
21229 (vreinterpretq_u64_u16): Likewise.
21230 (vreinterpretq_u64_u32): Likewise.
21231 (vreinterpretq_u64_p8): Likewise.
21232 (vreinterpretq_u64_p16): Likewise.
21233 (vreinterpret_s8_s16): Likewise.
21234 (vreinterpret_s8_s32): Likewise.
21235 (vreinterpret_s8_s64): Likewise.
21236 (vreinterpret_s8_f32): Likewise.
21237 (vreinterpret_s8_u8): Likewise.
21238 (vreinterpret_s8_u16): Likewise.
21239 (vreinterpret_s8_u32): Likewise.
21240 (vreinterpret_s8_u64): Likewise.
21241 (vreinterpret_s8_p8): Likewise.
21242 (vreinterpret_s8_p16): Likewise.
21243 (vreinterpretq_s8_s16): Likewise.
21244 (vreinterpretq_s8_s32): Likewise.
21245 (vreinterpretq_s8_s64): Likewise.
21246 (vreinterpretq_s8_f32): Likewise.
21247 (vreinterpretq_s8_u8): Likewise.
21248 (vreinterpretq_s8_u16): Likewise.
21249 (vreinterpretq_s8_u32): Likewise.
21250 (vreinterpretq_s8_u64): Likewise.
21251 (vreinterpretq_s8_p8): Likewise.
21252 (vreinterpretq_s8_p16): Likewise.
21253 (vreinterpret_s16_s8): Likewise.
21254 (vreinterpret_s16_s32): Likewise.
21255 (vreinterpret_s16_s64): Likewise.
21256 (vreinterpret_s16_f32): Likewise.
21257 (vreinterpret_s16_u8): Likewise.
21258 (vreinterpret_s16_u16): Likewise.
21259 (vreinterpret_s16_u32): Likewise.
21260 (vreinterpret_s16_u64): Likewise.
21261 (vreinterpret_s16_p8): Likewise.
21262 (vreinterpret_s16_p16): Likewise.
21263 (vreinterpretq_s16_s8): Likewise.
21264 (vreinterpretq_s16_s32): Likewise.
21265 (vreinterpretq_s16_s64): Likewise.
21266 (vreinterpretq_s16_f32): Likewise.
21267 (vreinterpretq_s16_u8): Likewise.
21268 (vreinterpretq_s16_u16): Likewise.
21269 (vreinterpretq_s16_u32): Likewise.
21270 (vreinterpretq_s16_u64): Likewise.
21271 (vreinterpretq_s16_p8): Likewise.
21272 (vreinterpretq_s16_p16): Likewise.
21273 (vreinterpret_s32_s8): Likewise.
21274 (vreinterpret_s32_s16): Likewise.
21275 (vreinterpret_s32_s64): Likewise.
21276 (vreinterpret_s32_f32): Likewise.
21277 (vreinterpret_s32_u8): Likewise.
21278 (vreinterpret_s32_u16): Likewise.
21279 (vreinterpret_s32_u32): Likewise.
21280 (vreinterpret_s32_u64): Likewise.
21281 (vreinterpret_s32_p8): Likewise.
21282 (vreinterpret_s32_p16): Likewise.
21283 (vreinterpretq_s32_s8): Likewise.
21284 (vreinterpretq_s32_s16): Likewise.
21285 (vreinterpretq_s32_s64): Likewise.
21286 (vreinterpretq_s32_f32): Likewise.
21287 (vreinterpretq_s32_u8): Likewise.
21288 (vreinterpretq_s32_u16): Likewise.
21289 (vreinterpretq_s32_u32): Likewise.
21290 (vreinterpretq_s32_u64): Likewise.
21291 (vreinterpretq_s32_p8): Likewise.
21292 (vreinterpretq_s32_p16): Likewise.
21293 (vreinterpret_u8_s8): Likewise.
21294 (vreinterpret_u8_s16): Likewise.
21295 (vreinterpret_u8_s32): Likewise.
21296 (vreinterpret_u8_s64): Likewise.
21297 (vreinterpret_u8_f32): Likewise.
21298 (vreinterpret_u8_u16): Likewise.
21299 (vreinterpret_u8_u32): Likewise.
21300 (vreinterpret_u8_u64): Likewise.
21301 (vreinterpret_u8_p8): Likewise.
21302 (vreinterpret_u8_p16): Likewise.
21303 (vreinterpretq_u8_s8): Likewise.
21304 (vreinterpretq_u8_s16): Likewise.
21305 (vreinterpretq_u8_s32): Likewise.
21306 (vreinterpretq_u8_s64): Likewise.
21307 (vreinterpretq_u8_f32): Likewise.
21308 (vreinterpretq_u8_u16): Likewise.
21309 (vreinterpretq_u8_u32): Likewise.
21310 (vreinterpretq_u8_u64): Likewise.
21311 (vreinterpretq_u8_p8): Likewise.
21312 (vreinterpretq_u8_p16): Likewise.
21313 (vreinterpret_u16_s8): Likewise.
21314 (vreinterpret_u16_s16): Likewise.
21315 (vreinterpret_u16_s32): Likewise.
21316 (vreinterpret_u16_s64): Likewise.
21317 (vreinterpret_u16_f32): Likewise.
21318 (vreinterpret_u16_u8): Likewise.
21319 (vreinterpret_u16_u32): Likewise.
21320 (vreinterpret_u16_u64): Likewise.
21321 (vreinterpret_u16_p8): Likewise.
21322 (vreinterpret_u16_p16): Likewise.
21323 (vreinterpretq_u16_s8): Likewise.
21324 (vreinterpretq_u16_s16): Likewise.
21325 (vreinterpretq_u16_s32): Likewise.
21326 (vreinterpretq_u16_s64): Likewise.
21327 (vreinterpretq_u16_f32): Likewise.
21328 (vreinterpretq_u16_u8): Likewise.
21329 (vreinterpretq_u16_u32): Likewise.
21330 (vreinterpretq_u16_u64): Likewise.
21331 (vreinterpretq_u16_p8): Likewise.
21332 (vreinterpretq_u16_p16): Likewise.
21333 (vreinterpret_u32_s8): Likewise.
21334 (vreinterpret_u32_s16): Likewise.
21335 (vreinterpret_u32_s32): Likewise.
21336 (vreinterpret_u32_s64): Likewise.
21337 (vreinterpret_u32_f32): Likewise.
21338 (vreinterpret_u32_u8): Likewise.
21339 (vreinterpret_u32_u16): Likewise.
21340 (vreinterpret_u32_u64): Likewise.
21341 (vreinterpret_u32_p8): Likewise.
21342 (vreinterpret_u32_p16): Likewise.
21343 (vreinterpretq_u32_s8): Likewise.
21344 (vreinterpretq_u32_s16): Likewise.
21345 (vreinterpretq_u32_s32): Likewise.
21346 (vreinterpretq_u32_s64): Likewise.
21347 (vreinterpretq_u32_f32): Likewise.
21348 (vreinterpretq_u32_u8): Likewise.
21349 (vreinterpretq_u32_u16): Likewise.
21350 (vreinterpretq_u32_u64): Likewise.
21351 (vreinterpretq_u32_p8): Likewise.
21352 (vreinterpretq_u32_p16): Likewise.
21354 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21356 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21358 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21360 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21361 (vqnegd_s64): Likewise.
21362 (vqabs_s64): Likewise.
21363 (vqabsd_s64): Likewise.
21365 2014-04-22 Richard Henderson <rth@redhat.com>
21367 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21368 computation to the top of the loop.
21370 2014-04-22 Renlin <renlin.li@arm.com>
21371 Jiong Wang <jiong.wang@arm.com>
21373 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21374 * config/aarch64/aarch64.c (aarch64_layout_frame)
21375 (aarch64_initial_elimination_offset): Likewise.
21377 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
21379 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21382 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
21384 * machmode.h (bitwise_mode_for_mode): Declare.
21385 * stor-layout.h (bitwise_type_for_mode): Likewise.
21386 * stor-layout.c (bitwise_mode_for_mode): New function.
21387 (bitwise_type_for_mode): Likewise.
21388 * builtins.c (fold_builtin_memory_op): Use it instead of
21389 int_mode_for_mode and build_nonstandard_integer_type.
21391 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21393 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21394 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21395 (*-*-solaris2*): Simplify.
21396 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21397 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21398 *-*-solaris2.9* handling.
21400 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21402 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21403 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21404 handling, simplify.
21405 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21406 * configure: Regenerate.
21408 * config/i386/sol2-9.h: Remove.
21410 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21411 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21412 Remove Solaris 9 references.
21414 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
21416 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21417 (floatuns<GPI:mode><GPF:mode>2): Remove.
21418 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21419 and floatuns conversions.
21420 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21421 and floatuns conversions.
21422 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21423 (w1,w2): New mode attributes for inequal width conversions.
21425 2014-04-22 Renlin Li <Renlin.Li@arm.com>
21427 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21428 the output asm format.
21430 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
21432 * config/aarch64/aarch64-simd.md
21433 (aarch64_cm<optab>di): Always split.
21434 (*aarch64_cm<optab>di): New.
21435 (aarch64_cmtstdi): Always split.
21436 (*aarch64_cmtstdi): New.
21438 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21440 PR tree-optimization/60823
21441 * omp-low.c (ipa_simd_modify_function_body): Go through
21442 all SSA_NAMEs and for those refering to vector arguments
21443 which are going to be replaced adjust SSA_NAME_VAR and,
21444 if it is a default definition, change it into a non-default
21445 definition assigned at the beginning of function from new_decl.
21446 (ipa_simd_modify_stmt_ops): Rewritten.
21447 * tree-dfa.c (set_ssa_default_def): When removing default def,
21448 check for NULL loc instead of NULL *loc.
21450 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21452 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21453 restrictions on core registers for DImode values in Thumb2.
21455 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21457 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21458 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21460 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21462 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21463 (*iordi_notzesidi_di): Likewise.
21464 (*iordi_notsesidi_di): Likewise.
21466 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21468 * config/arm/arm-protos.h (tune_params): New struct members.
21469 * config/arm/arm.c: Initialise tune_params per processor.
21470 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21471 for speed, based on new tune_params.
21473 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21475 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21476 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21477 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21478 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21479 * config/aarch64/arm_neon.h (vrnd_f64): Added.
21480 (vrnda_f64): Likewise.
21481 (vrndi_f64): Likewise.
21482 (vrndm_f64): Likewise.
21483 (vrndn_f64): Likewise.
21484 (vrndp_f64): Likewise.
21485 (vrndx_f64): Likewise.
21487 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21489 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21490 GET_MODE_SIZE argument is enum machine_mode.
21492 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21495 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21496 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21498 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
21500 PR middle-end/60281
21501 * asan.c (asan_emit_stack_protection): Force the base to align to
21502 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
21503 appropriate bits if STRICT_ALIGNMENT.
21504 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21506 (expand_used_vars): Leave a space in the stack frame for alignment
21507 if STRICT_ALIGNMENT.
21509 2014-04-21 David Malcolm <dmalcolm@redhat.com>
21511 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21513 (gimple_store_p): Likewise.
21514 (gimple_assign_load_p): Likewise.
21515 (gimple_assign_cast_p): Likewise.
21516 (gimple_clobber_p): Likewise.
21518 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
21519 rather than a gimple.
21520 (gimple_assign_cast_p): Likewise.
21522 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21525 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
21526 If mode is DDmode and TARGET_E500_DOUBLE allow move.
21528 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
21529 more debug information for E500 if -mdebug=reg.
21531 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
21534 * config/i386/i386.c (ix86_expand_builtin)
21535 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
21536 register for target RTX.
21537 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
21539 2014-04-18 Cong Hou <congh@google.com>
21541 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
21542 the widen-mult pattern by handling two operands with different sizes,
21543 and operands whose size is smaller than half of the result type.
21545 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21547 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
21548 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
21549 (do_estimate_edge_time): Compute it.
21550 * ipa-inline.c (want_inline_small_function_p): Bypass
21551 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
21553 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21555 * ipa-inline.c (spec_rem): New static variable.
21556 (dump_overall_stats): New function.
21557 (dump_inline_stats): New function.
21559 2014-04-18 Richard Henderson <rth@redhat.com>
21561 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
21562 to GET_MODE_SIZE, not a reg_class_t.
21564 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21566 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
21567 (vsx_xxmrglw_<mode>): Likewise.
21569 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
21572 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
21573 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
21574 (rs6000_init_hard_regno_mode_ok): Likewise.
21576 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
21578 * ipa-inline.c (inline_small_functions): Account only non-cold
21580 * doc/invoke.texi (inline-unit-growth): Update documentation.
21582 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
21584 * config/rs6000/rs6000.md (addti3, subti3): New.
21586 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
21589 * config/i386/i386.c (ix86_expand_clear): Remove outdated
21590 comment. Check optimize_insn_for_size_p instead of
21591 optimize_insn_for_speed_p.
21593 2014-04-17 Martin Jambor <mjambor@suse.cz>
21595 * gimple-iterator.c (gsi_start_edge): New function.
21596 * gimple-iterator.h (gsi_start_edge): Declare.
21597 * tree-sra.c (single_non_eh_succ): New function.
21598 (disqualify_ops_if_throwing_stmt): Renamed to
21599 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
21600 having one non-EH successor BB.
21601 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
21602 generate loads into replacements.
21603 (sra_modify_assign): Likewise and and also use the simple path for
21605 (sra_modify_function_body): Commit statements on edges.
21607 2014-04-17 Richard Biener <rguenther@suse.de>
21609 PR middle-end/60849
21610 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
21611 comparison results and add clarifying comment.
21613 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21615 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
21616 (blank_mode): Initialize it.
21617 (emit_mode_size_inline, emit_mode_nunits_inline,
21618 emit_mode_inner_inline): New functions.
21619 (emit_insn_modes_h): Call them and surround their output with
21620 #if GCC_VERSION >= 4001 ... #endif.
21621 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
21622 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
21623 mode_* arrays if the argument is __builtin_constant_p.
21624 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
21625 is enum machine_mode.
21627 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21629 * passes.c (opt_pass::execute): Adjust.
21630 (pass_manager::execute_pass_mode_switching): Likewise.
21631 (early_local_passes::execute): Likewise.
21632 (execute_one_pass): Pass cfun to the pass's execute method.
21633 * tree-pass.h (opt_pass::execute): Add function * argument.
21634 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21635 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21636 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21637 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21638 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21639 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
21640 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
21641 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21642 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21643 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
21644 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
21645 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
21646 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
21647 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
21648 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21649 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21650 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21651 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
21652 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
21653 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21654 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21655 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21656 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21657 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21658 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21659 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21660 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21661 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21662 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21665 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21667 * passes.c (opt_pass::gate): Take function * argument.
21668 (gate_all_early_local_passes): Merge into
21669 (early_local_passes::gate): this.
21670 (gate_all_early_optimizations): Merge into
21671 (all_early_optimizations::gate): this.
21672 (gate_all_optimizations): Mege into
21673 (all_optimizations::gate): this.
21674 (gate_all_optimizations_g): Merge into
21675 (all_optimizations_g::gate): this.
21676 (gate_rest_of_compilation): Mege into
21677 (rest_of_compilation::gate): this.
21678 (gate_postreload): Merge into
21679 (postreload::gate): this.
21680 (dump_one_pass): Pass cfun to the pass's gate method.
21681 (execute_ipa_summary_passes): Likewise.
21682 (execute_one_pass): Likewise.
21683 (ipa_write_summaries_2): Likewise.
21684 (ipa_write_optimization_summaries_1): Likewise.
21685 (ipa_read_summaries_1): Likewise.
21686 (ipa_read_optimization_summaries_1): Likewise.
21687 (execute_ipa_stmt_fixups): Likewise.
21688 * tree-pass.h (opt_pass::gate): Add function * argument.
21689 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
21690 combine-stack-adj.c, combine.c, compare-elim.c,
21691 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21692 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
21693 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
21694 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
21695 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21696 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21697 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21698 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
21699 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21700 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
21701 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21702 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21703 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
21704 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21705 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21706 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21707 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21708 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21709 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21710 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21711 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21712 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21713 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
21714 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
21715 var-tracking.c, vtable-verify.c, web.c: Adjust.
21717 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21719 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
21720 * configure: Regenerate.
21722 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21724 * passes.c (dump_one_pass): don't check pass->has_gate.
21725 (execute_ipa_summary_passes): Likewise.
21726 (execute_one_pass): Likewise.
21727 (ipa_write_summaries_2): Likewise.
21728 (ipa_write_optimization_summaries_1): Likewise.
21729 (ipa_read_optimization_summaries_1): Likewise.
21730 (execute_ipa_stmt_fixups): Likewise.
21731 * tree-pass.h (pass_data::has_gate): Remove.
21732 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21733 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21734 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21735 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21736 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21737 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21738 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21739 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21740 gimple-low.c, gimple-ssa-isolate-paths.c,
21741 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21742 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
21743 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21744 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
21745 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
21746 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
21747 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
21748 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
21749 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
21750 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21751 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21752 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21753 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21754 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21755 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21756 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21757 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21758 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21759 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21760 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21761 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21762 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21765 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21767 * pass_manager.h (pass_manager::register_dump_files_1): Remove
21769 * passes.c (pass_manager::register_dump_files_1): Merge into
21770 (pass_manager::register_dump_files): this, and remove its handling of
21771 properties since the pass always has the properties anyway.
21772 (pass_manager::pass_manager): Adjust.
21774 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21776 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
21777 * passes.c (pass_manager::register_dump_files_1): Remove dead code
21778 dealing with properties.
21779 (pass_manager::register_dump_files): Adjust.
21781 2014-03-20 Mark Wielaard <mjw@redhat.com>
21783 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
21784 then represent the bound as normal constant value.
21786 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21789 Forward port from 4.8 branch
21790 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
21792 * config/i386/bmiintrin.h (_blsi_u32): New.
21793 (_blsi_u64): Ditto.
21794 (_blsr_u32): Ditto.
21795 (_blsr_u64): Ditto.
21796 (_blsmsk_u32): Ditto.
21797 (_blsmsk_u64): Ditto.
21798 (_tzcnt_u32): Ditto.
21799 (_tzcnt_u64): Ditto.
21801 2014-04-17 Kito Cheng <kito@0xlab.org>
21803 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
21805 2014-04-17 Richard Biener <rguenther@suse.de>
21807 PR middle-end/60849
21808 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
21809 boolean results for comparisons.
21811 2014-04-17 Richard Biener <rguenther@suse.de>
21813 PR tree-optimization/60836
21814 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
21815 initial PHI args to be gimple values.
21817 2014-04-17 Richard Biener <rguenther@suse.de>
21819 PR tree-optimization/60841
21820 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
21821 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
21822 of stmts to SLP build.
21823 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
21824 (vect_analyze_slp): Likewise.
21825 (vect_analyze_slp_instance): Likewise.
21826 (vect_build_slp_tree): Limit overall SLP tree growth.
21827 * tree-vectorizer.h (vect_analyze_data_refs,
21828 vect_analyze_slp): Adjust prototypes.
21830 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21832 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
21835 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21837 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
21838 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
21839 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
21840 for TARGET_SLOW_PSHUFB
21842 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21844 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
21845 * config/i386/i386.c (intel_cost): Ditto.
21847 2014-04-17 Joey Ye <joey.ye@arm.com>
21849 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
21851 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21853 * opts.c (common_handle_option): Disable -fipa-reference coorectly
21854 with -fuse-profile.
21856 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21858 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
21859 (type_all_derivations_known_p): New predicate.
21860 (type_all_ctors_visible_p): New predicate.
21861 (type_possibly_instantiated_p): New predicate.
21862 (get_odr_type): Compute all_derivations_known.
21863 (dump_odr_type): Dump the flag.
21864 (maybe_record_type): Cleanup.
21865 (record_target_from_binfo): Add bases_to_consider array;
21866 record bases for types w/o instances and skip CXX destructor.
21867 (possible_polymorphic_call_targets_1): Add bases_to_consider
21868 and consider_construction parameters; check if type may have instance.
21869 (get_polymorphic_call_info): Set maybe_in_construction to true
21870 when we know nothing.
21871 (record_targets_from_bases): Skip CXX destructors; they are
21872 never called for types in construction.
21873 (possible_polymorphic_call_targets): Do not record target when
21874 type may not have instance.
21876 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21879 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
21880 external aliases alive, too.
21882 2014-04-16 Andrew Pinski <apinski@cavium.com>
21884 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
21887 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
21889 * final.c (compute_alignments): Do not apply loop alignment to a block
21890 falling through to the exit.
21892 2014-04-16 Catherine Moore <clm@codesourcery.com>
21894 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
21895 Adjust constraints for microMIPS store patterns.
21897 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21899 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
21901 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
21903 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
21904 (append_use): Run at -O0.
21905 (append_vdef): Likewise.
21906 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
21907 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
21909 2014-04-16 Jakub Jelinek <jakub@redhat.com>
21911 PR tree-optimization/60844
21912 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
21913 (propagate_op_to_single_use, remove_visited_stmt_chain,
21914 linearize_expr, repropagate_negates, reassociate_bb): Use it
21915 instead of gsi_remove.
21917 2014-04-16 Martin Jambor <mjambor@suse.cz>
21919 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
21920 ipa_transforms_to_apply.
21921 (cgraph_function_versioning): Assert that old_node has empty
21922 ipa_transforms_to_apply.
21923 * trans-mem.c (ipa_tm_create_version): Likewise.
21924 * tree-inline.c (tree_function_versioning): Do not duplicate
21925 ipa_transforms_to_apply.
21927 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21930 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
21932 Pass necessary as flags on 64-bit Solaris/x86.
21933 Use lowercase relocs for x86_64-*-*.
21934 * configure: Regenerate.
21936 2014-04-15 Jan Hubicka <jh@suse.cz>
21938 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
21939 (maybe_record_node, likely_target_p): Use it.
21941 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21944 Revert following patch
21946 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21949 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21950 software floating point or no floating point registers, do not
21951 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21952 in GPRs that occurs after we tested for GPRs that would never be
21955 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21956 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21957 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21958 specifically allow DDmode, since that does not use the SPE SIMD
21961 2014-03-21 Mark Wielaard <mjw@redhat.com>
21963 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
21964 as unsigned or int depending on type and value used.
21966 2014-04-15 Richard Biener <rguenther@suse.de>
21968 PR rtl-optimization/56965
21969 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
21970 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
21972 * alias.c (true_dependence_1): Do not call
21973 nonoverlapping_component_refs_p.
21974 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
21975 nonoverlapping_component_refs_p.
21976 (indirect_refs_may_alias_p): Likewise.
21978 2014-04-15 Teresa Johnson <tejohnson@google.com>
21980 * cfg.c (dump_bb_info): Fix flags check.
21981 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
21983 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21985 PR rtl-optimization/60663
21986 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
21989 2014-04-15 Richard Biener <rguenther@suse.de>
21991 * lto-streamer.h (LTO_major_version): Bump to 4.
21993 2014-04-15 Richard Biener <rguenther@suse.de>
21995 * common.opt (lto_partition_model): New enum.
21996 (flto-partition=): Merge separate options with a single with argument,
21997 add -flto-partition=one support.
21998 * flag-types.h (enum lto_partition_model): Declare.
21999 * opts.c (finish_options): Remove duplicate -flto-partition=
22001 * lto-wrapper.c (run_gcc): Adjust.
22003 2014-04-15 Richard Biener <rguenther@suse.de>
22005 * alias.c (ncr_compar): New function.
22006 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22008 2014-04-15 Richard Biener <rguenther@suse.de>
22010 * alias.c (record_component_aliases): Do not walk BINFOs.
22012 2014-04-15 Richard Biener <rguenther@suse.de>
22014 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22015 Add struct function argument and adjust.
22016 (find_func_aliases_for_call): Likewise.
22017 (find_func_aliases): Likewise.
22018 (find_func_clobbers): Likewise.
22019 (intra_create_variable_infos): Likewise.
22020 (compute_points_to_sets): Likewise.
22021 (ipa_pta_execute): Adjust. Do not push/pop cfun.
22023 2014-04-15 Richard Biener <rguenther@suse.de>
22025 * tree.c (iterative_hash_expr): Use enum tree_code_class
22026 to store TREE_CODE_CLASS.
22027 (tree_block): Likewise.
22028 (tree_set_block): Likewise.
22029 * tree.h (fold_build_pointer_plus_loc): Use
22030 convert_to_ptrofftype_loc.
22032 2014-04-15 Jakub Jelinek <jakub@redhat.com>
22035 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22038 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
22040 * cfgloop.h (struct loop): Move force_vectorize down.
22041 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22042 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22043 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22044 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22045 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22046 * tree-core.h (enum annot_expr_kind): Add new kind values.
22047 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22048 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22050 * tree.def (ANNOTATE_EXPR): Tweak comment.
22052 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22054 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22057 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
22059 * tree.h (TYPE_IDENTIFIER): Declare.
22060 * tree.c (subrange_type_for_debug_p): Use it.
22061 * godump.c (go_format_type): Likewise.
22062 * dwarf2out.c (is_cxx_auto, modified_type_die,
22063 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22064 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22066 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22069 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22071 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
22073 * config/i386/i386.c (examine_argument): Return bool. Return true if
22074 parameter should be passed in memory.
22075 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22076 (construct_container): Update calls to examine_argument.
22077 (function_arg_advance_64): Ditto.
22078 (return_in_memory_32): Merge with ix86_return_in_memory.
22079 (return_in_memory_64): Ditto.
22080 (return_in_memory_ms_64): Ditto.
22082 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
22084 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22085 * coverage.c (coverage_compute_profile_id): Handle externally visible
22088 2014-04-14 Martin Jambor <mjambor@suse.cz>
22090 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22091 DECL_DISREGARD_INLINE_LIMITS functions.
22093 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22096 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22098 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
22101 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22102 optimize_insn_for_speed_p instead of
22103 optimize_function_for_speed_p.
22105 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
22107 * doc/invoke.texi (free): Document AArch64.
22109 2014-04-14 Richard Biener <rguenther@suse.de>
22111 PR tree-optimization/60042
22112 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22113 (insert_into_preds_of_block): Do not prevent PHI insertion
22114 for REFERENCE exprs here ...
22115 (eliminate_dom_walker::before_dom_children): ... but prevent
22116 their use here under similar conditions when applied to the
22117 IL after PRE optimizations.
22119 2014-04-14 Richard Biener <rguenther@suse.de>
22121 * passes.def: Move early points-to after early SRA.
22123 2014-04-14 Richard Biener <rguenther@suse.de>
22125 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22126 check for which sign-changes we allow when forwarding
22127 a converted value into a switch.
22129 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22131 * stor-layout.c (place_field): Finalize non-constant offset for the
22134 2014-04-14 Richard Biener <rguenther@suse.de>
22136 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22138 (expand_switch_using_bit_tests_p): Likewise.
22139 (process_switch): Compute and pass on speed_p based on the
22141 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22142 optimize_bb_for_speed_p.
22144 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
22146 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22147 * function.h (struct function): Rename has_force_vect_loops into
22148 has_force_vectorize_loops.
22149 * lto-streamer-in.c (input_cfg): Adjust for renaming.
22150 (input_struct_function_base): Likewise.
22151 * lto-streamer-out.c (output_cfg): Likewise.
22152 (output_struct_function_base): Likewise.
22153 * omp-low.c (expand_omp_simd): Likewise.
22154 * tree-cfg.c (move_sese_region_to_fn): Likewise.
22155 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22156 (version_loop_for_if_conversion): Likewise.
22157 (tree_if_conversion): Likewise.
22158 (main_tree_if_conversion): Likewise.
22159 (gate_tree_if_conversion): Likewise.
22160 * tree-inline.c (copy_loops): Likewise.
22161 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22162 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22163 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22164 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22165 * tree-vectorizer.c (vectorize_loops): Likewise.
22166 * tree-vectorizer.h (unlimited_cost_model): Likewise.
22168 2014-04-14 Richard Biener <rguenther@suse.de>
22171 * lto-streamer-out.c (wrap_refs): New function.
22172 (lto_output): Wrap symbol references in global initializes in
22173 type-preserving MEM_REFs.
22175 2014-04-14 Christian Bruel <christian.bruel@st.com>
22177 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22179 2014-04-14 Christian Bruel <christian.bruel@st.com>
22181 * config/sh/sh.md (setmemqi): New expand pattern.
22182 * config/sh/sh.h (CLEAR_RATIO): Define.
22183 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22184 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22186 2014-04-14 Richard Biener <rguenther@suse.de>
22188 PR middle-end/55022
22189 * fold-const.c (negate_expr_p): Don't negate directional rounding
22191 (fold_negate_expr): Likewise.
22193 2014-04-14 Richard Biener <rguenther@suse.de>
22195 PR tree-optimization/59817
22196 PR tree-optimization/60453
22197 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22198 recursion to catch all CHRECs in the scalar evolution and restrict
22199 the predicate for the remains appropriately.
22201 2014-04-12 Catherine Moore <clm@codesourcery.com>
22203 * config/mips/constraints.md: Add new register constraint "kb".
22204 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22205 (*movhi_internal): Likewise.
22206 (*movqi_internal): Likewise.
22207 * config/mips/mips.h (M16_STORE_REGS): New register class.
22208 (REG_CLASS_NAMES): Add M16_STORE_REGS.
22209 (REG_CLASS_CONTENTS): Likewise.
22210 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22212 2014-04-11 Tobias Burnus <burnus@net-b.de>
22215 * doc/invoke.texi (-Wformat-signedness): Document it.
22216 (Wformat=2): Mention that this enables -Wformat-signedness.
22218 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22220 * common/config/epiphany/epiphany-common.c
22221 (epiphany_option_optimization_table): Enable section anchors by
22222 default at -O1 or higher.
22223 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22224 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22225 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22226 carries no extra cost.
22227 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22228 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22229 * config/epiphany/predicates.md (memclob_operand): New predicate.
22230 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22231 Use memclob_operand predicate and X constraint for operand 3.
22233 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22235 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22236 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22239 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
22241 PR rtl-optimization/60651
22242 * mode-switching.c (optimize_mode_switching): Make sure to emit
22243 sets of a lower numbered entity before sets of a higher numbered
22244 entity to a mode of the same or lower priority.
22245 When creating a seginfo for a basic block that starts with a code
22246 label, move the insertion point past the code label.
22247 (new_seginfo): Document and enforce requirement that
22248 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22249 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22250 * doc/tm.texi: Regenerate.
22252 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
22255 * config/arc/arc.c (arc_save_restore): Fix assert typo.
22257 2013-04-11 Jakub Jelinek <jakub@redhat.com>
22259 * BASE-VER: Set to 4.10.0.
22261 2014-04-11 Tobias Burnus <burnus@net-b.de>
22264 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22265 * doc/gcc.texi (Service): Update description in the @menu
22266 * doc/invoke.texi (Option Summary): Remove misplaced and
22269 2014-04-11 Steve Ellcey <sellcey@mips.com>
22270 Jakub Jelinek <jakub@redhat.com>
22272 PR middle-end/60556
22273 * expr.c (convert_move): Use emit_store_flag_force instead of
22274 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
22277 2014-04-11 Richard Biener <rguenther@suse.de>
22279 PR middle-end/60797
22280 * varasm.c (assemble_alias): Avoid endless error reporting
22281 recursion by setting TREE_ASM_WRITTEN.
22283 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22285 * config/s390/s390.md: Add a splitter for NOT rtx.
22287 2014-04-11 Jakub Jelinek <jakub@redhat.com>
22289 PR rtl-optimization/60663
22290 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22292 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
22293 Jakub Jelinek <jakub@redhat.com>
22296 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22297 flag from decl_node to node.
22299 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22302 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22303 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22304 ameliorating the cases where it can be.
22306 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
22309 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22311 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22312 (loadsync_<mode>): Change mode.
22313 (load_quadpti, store_quadpti): New.
22314 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22315 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22316 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22318 2014-04-09 Cong Hou <congh@google.com>
22321 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22324 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22326 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22327 instead of vnor to exploit possible fusion opportunity in the
22329 (altivec_expand_vec_perm_const_le): Likewise.
22331 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22333 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22334 (loadsync_<mode>): Change mode.
22335 (load_quadpti, store_quadpti): New.
22336 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22337 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22339 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
22342 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22343 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22344 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22346 2014-04-08 Richard Biener <rguenther@suse.de>
22348 PR middle-end/60706
22349 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22350 a 64bit widest int print double-int similar to on HWI64 hosts.
22352 2014-04-08 Richard Biener <rguenther@suse.de>
22354 PR tree-optimization/60785
22355 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22356 default defs properly.
22358 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
22360 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22361 (Weffc++): Likewise.
22363 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
22365 * ipa-devirt.c (maybe_record_node): When node is not recorded,
22366 set completep to false rather than true.
22368 2014-04-07 Douglas B Rupp <rupp@adacore.com>
22371 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22372 ARM_TARGET2_DWARF_FORMAT.
22374 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
22377 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22378 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22381 2014-04-07 Richard Biener <rguenther@suse.de>
22383 PR tree-optimization/60766
22384 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22385 (may_eliminate_iv): Convert cand_value_at result to desired type.
22387 2014-04-07 Jason Merrill <jason@redhat.com>
22390 * common.opt (-fno-gnu-unique): Add.
22391 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22393 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22395 * haifa-sched.c: Fix outdated function reference and minor
22396 grammar errors in introductory comment.
22398 2014-04-07 Richard Biener <rguenther@suse.de>
22400 PR middle-end/60750
22401 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22402 for noreturn calls.
22403 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22405 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
22408 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22409 size accounting for thunks.
22410 (pa_asm_output_mi_thunk): Use final_start_function() and
22411 final_end_function() to output function start and end directives.
22413 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22415 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22416 device specific ISA/ feature information. Remove short_sp and
22417 errata_skip ds. Add avr_device_specific_features enum to have device
22419 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22420 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22421 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22422 updated device specific info.
22423 * config/avr/avr-mcus.def: Merge device specific details to
22424 dev_attribute field.
22425 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22427 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22428 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22429 assembler if RMW isa supported by current device.
22430 * config/avr/genmultilib.awk: Update as device info structure changed.
22431 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22433 2014-04-04 Cong Hou <congh@google.com>
22435 PR tree-optimization/60656
22436 * tree-vect-stmts.c (supportable_widening_operation):
22437 Fix a bug that elements in a vector with vect_used_by_reduction
22438 property are incorrectly reordered when the operation on it is not
22439 consistant with the one in reduction operation.
22441 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
22443 PR rtl-optimization/60155
22444 * gcse.c (record_set_data): New function.
22445 (single_set_gcse): New function.
22446 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22447 (hoist_code): Likewise.
22448 (get_pressure_class_and_nregs): Likewise.
22450 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
22452 * explow.c (probe_stack_range): Emit a final optimization blockage.
22454 2014-04-04 Anthony Green <green@moxielogic.com>
22456 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22459 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
22462 * lto-cgraph.c (input_overwrite_node): Check that partitioning
22463 flags are set only during streaming.
22464 * ipa.c (process_references, walk_polymorphic_call_targets,
22465 symtab_remove_unreachable_nodes): Drop bodies of always inline
22466 after early inlining.
22467 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22469 2014-04-04 Jakub Jelinek <jakub@redhat.com>
22470 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22473 * dwarf2out.c (const_ok_for_output_1): Reject expressions
22476 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22479 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22481 (cortex_a53_fdivd): Likewise.
22483 2014-04-04 Martin Jambor <mjambor@suse.cz>
22486 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22487 Adjust all callers.
22488 * cgraph.c (clone_of_p): Also return true if thunks match.
22489 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22490 cgraph_function_or_thunk_node and an obsolete comment.
22491 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22493 (build_function_decl_skip_args): Likewise.
22494 (set_new_clone_decl_and_node_flags): New function.
22495 (duplicate_thunk_for_node): Likewise.
22496 (redirect_edge_duplicating_thunks): Likewise.
22497 (cgraph_clone_node): New parameter args_to_skip, pass it to
22498 redirect_edge_duplicating_thunks which is called instead of
22499 cgraph_redirect_edge_callee.
22500 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22501 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22503 2014-04-04 Jeff Law <law@redhat.com>
22506 * config/arm/predicates.md (const_int_I_operand): New predicate.
22507 (const_int_M_operand): Similarly.
22508 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22510 (insv_t2, extv_reg, extzv_t2): Likewise.
22511 (load_multiple_with_writeback): Similarly for const_int_I_operand.
22512 (pop_multiple_with_writeback_and_return): Likewise.
22513 (vfp_pop_multiple_with_writeback): Likewise
22515 2014-04-04 Richard Biener <rguenther@suse.de>
22518 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
22519 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
22521 * gimplify.h (gimple_add_tmp_var_fn): Declare.
22522 * gimplify.c (gimple_add_tmp_var_fn): New function.
22523 * gimple-expr.h (create_tmp_reg_fn): Declare.
22524 * gimple-expr.c (create_tmp_reg_fn): New function.
22525 * gimple-low.c (record_vars_into): Don't change cfun.
22526 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
22527 code generation without cfun.
22529 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
22532 * Makefile.in (install-driver): Fix shell scripting.
22534 2014-04-03 Cong Hou <congh@google.com>
22536 PR tree-optimization/60505
22537 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
22538 threshold of number of iterations below which no vectorization
22540 * tree-vect-loop.c (new_loop_vec_info):
22541 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
22542 * tree-vect-loop.c (vect_analyze_loop_operations):
22543 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
22544 * tree-vect-loop.c (vect_transform_loop):
22545 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
22546 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
22547 of iterations of the loop and see if we should build the epilogue.
22549 2014-04-03 Richard Biener <rguenther@suse.de>
22551 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
22552 (streamer_tree_cache_create): Adjust.
22553 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
22554 to allow optional nodes array.
22555 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
22556 (streamer_tree_cache_append): Likewise.
22557 (streamer_tree_cache_create): Create nodes array optionally
22558 as specified by parameter.
22559 * lto-streamer-out.c (create_output_block): Avoid maintaining
22560 the node array in the writer cache.
22561 (DFS_write_tree): Remove assertion.
22562 (produce_asm_for_decls): Free the out decl state hash table early.
22563 * lto-streamer-in.c (lto_data_in_create): Adjust for
22564 streamer_tree_cache_create prototype change.
22566 2014-04-03 Richard Biener <rguenther@suse.de>
22568 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
22569 set TREE_CHAIN to NULL_TREE.
22571 2014-04-03 Richard Biener <rguenther@suse.de>
22573 PR tree-optimization/60740
22574 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
22575 over all GIMPLE_COND operands.
22577 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
22579 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
22580 (Weffc++): Remove Scott's numbering, merge lists and reference
22583 2014-04-03 Nick Clifton <nickc@redhat.com>
22585 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
22588 2014-04-03 Martin Jambor <mjambor@suse.cz>
22590 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
22591 mention gcc_unreachable before failing.
22592 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
22595 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
22598 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
22599 inconsistent code and instead mark the context inconsistent.
22600 (possible_polymorphic_call_targets): For inconsistent contexts
22601 return empty complete list.
22603 2014-04-02 Anthony Green <green@moxielogic.com>
22605 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
22606 (extendqisi2, extendhisi2): Define.
22607 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
22608 (WCHAR_TYPE): Change to unsigned int.
22610 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22612 PR tree-optimization/60733
22613 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
22614 insertion point for PHI candidates to be the end of the feeding
22615 block for the PHI argument.
22617 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
22619 PR rtl-optimization/60650
22620 * lra-constraints.c (process_alt_operands): Decrease reject for
22621 earlyclobber matching.
22623 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22625 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
22627 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22629 * config/spu/spu.c (pad_bb): Do not crash when the last
22630 insn is CODE_FOR_blockage.
22632 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22634 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
22635 lies outside the target mode.
22637 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22640 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22641 software floating point or no floating point registers, do not
22642 allow any type in the FPRs. Eliminate a test for SPE SIMD types
22643 in GPRs that occurs after we tested for GPRs that would never be
22646 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22647 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22648 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
22649 specifically allow DDmode, since that does not use the SPE SIMD
22652 2014-04-02 Richard Biener <rguenther@suse.de>
22654 PR middle-end/60729
22655 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
22656 MODE_INTs. Properly use negv_optab.
22657 (expand_abs): Likewise.
22659 2014-04-02 Richard Biener <rguenther@suse.de>
22662 * Makefile.in (install-driver): Guard extra installs with special
22665 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
22667 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22668 Document vec_vgbbd.
22670 2014-04-01 Richard Henderson <rth@redhat.com>
22673 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
22674 alternative enabled before register allocation.
22676 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
22678 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
22679 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
22681 (nios2_large_got_address): Remove unneeded 'sym' parameter.
22682 (nios2_got_address): Update nios2_large_got_address call site.
22683 (nios2_delegitimize_address): New function.
22684 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
22685 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
22686 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
22688 2014-04-01 Martin Husemann <martin@duskware.de>
22690 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
22693 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
22695 PR rtl-optimization/60604
22696 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
22697 check from register_operand.
22698 (register_operand): Redefine in terms of general_operand.
22699 (nonmemory_operand): Use register_operand for the non-constant cases.
22701 2014-04-01 Richard Biener <rguenther@suse.de>
22703 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
22705 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
22707 * doc/invoke.texi (mapp-regs): Clarify.
22709 2014-03-31 Ulrich Drepper <drepper@gmail.com>
22711 * config/i386/avx512fintrin.h (__v32hi): Define type.
22712 (__v64qi): Likewise.
22713 (_mm512_set1_epi8): Define.
22714 (_mm512_set1_epi16): Define.
22715 (_mm512_set4_epi32): Define.
22716 (_mm512_set4_epi64): Define.
22717 (_mm512_set4_pd): Define.
22718 (_mm512_set4_ps): Define.
22719 (_mm512_setr4_epi64): Define.
22720 (_mm512_setr4_epi32): Define.
22721 (_mm512_setr4_pd): Define.
22722 (_mm512_setr4_ps): Define.
22723 (_mm512_setzero_epi32): Define.
22725 2014-03-31 Martin Jambor <mjambor@suse.cz>
22727 PR middle-end/60647
22728 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
22729 callsite_arguments_match_p. Updated all callers. Also check types of
22730 corresponding formal parameters and actual arguments.
22731 (not_all_callers_have_enough_arguments_p) Renamed to
22732 some_callers_have_mismatched_arguments_p.
22734 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
22736 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
22738 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22741 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
22744 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
22746 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
22747 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
22749 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
22750 Use FMAMODE_NOVF512 mode iterator.
22751 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
22752 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
22753 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
22754 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
22756 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
22757 Use VF_128_256 mode iterator.
22758 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
22761 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22763 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
22764 static chain if needed.
22766 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
22769 * lra-constraints.c (index_part_to_reg): New.
22770 (process_address): Use it.
22772 2014-03-27 Jeff Law <law@redhat.com>
22773 Jakub Jelinek <jakub@redhat.com>
22776 * expr.c (do_tablejump): Use simplify_gen_binary rather than
22777 gen_rtx_{PLUS,MULT} to build up the address expression.
22779 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
22780 creating non-canonical RTL.
22782 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22785 * ipa-inline.c (want_inline_small_function_p): Short circuit large
22786 functions; reorganize to make cheap checks first.
22787 (inline_small_functions): Do not estimate growth when dumping;
22789 * ipa-inline.h (inline_summary): Add min_size.
22790 (growth_likely_positive): New function.
22791 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
22792 (set_cond_stmt_execution_predicate): Cleanup.
22793 (estimate_edge_size_and_time): Compute min_size.
22794 (estimate_calls_size_and_time): Likewise.
22795 (estimate_node_size_and_time): Likewise.
22796 (inline_update_overall_summary): Update min_size.
22797 (do_estimate_edge_time): Likewise.
22798 (do_estimate_edge_size): Update.
22799 (do_estimate_edge_hints): Update.
22800 (growth_likely_positive): New function.
22802 2014-03-28 Jakub Jelinek <jakub@redhat.com>
22805 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
22806 also if addr has VOIDmode.
22808 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22810 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
22811 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
22813 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
22814 instructions as well as AdvancedSIMD loads.
22816 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22818 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
22819 Use crypto_aese type.
22820 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
22821 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
22822 crypto_aese, crypto_aesmc. Move to types.md.
22823 * config/arm/types.md (crypto_aes): Split into crypto_aese,
22825 * config/arm/iterators.md (crypto_type): Likewise.
22827 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22829 * cgraph.c: Include expr.h and tree-dfa.h.
22830 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
22833 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
22836 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
22837 regs from checking multi-reg pseudos.
22839 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22841 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
22843 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22845 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
22846 if it would clobber the stack pointer, even temporarily.
22848 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
22850 * mode-switching.c: Make small adjustments to the top comment.
22852 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
22854 * config/rs6000/constraints.md (wD constraint): New constraint to
22855 match the constant integer to get the top DImode/DFmode out of a
22856 vector in a VSX register.
22858 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
22859 match the constant integer to get the top DImode/DFmode out of a
22860 vector in a VSX register.
22862 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
22865 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22868 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22869 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
22871 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
22872 Optimize vec_extract of 64-bit values, where the value being
22873 extracted is in the top word, where we can use scalar
22874 instructions. Add direct move and store support. Combine the big
22875 endian/little endian vector select load support into a single insn.
22876 (vsx_extract_<mode>_internal1): Likewise.
22877 (vsx_extract_<mode>_internal2): Likewise.
22878 (vsx_extract_<mode>_load): Likewise.
22879 (vsx_extract_<mode>_store): Likewise.
22880 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
22881 combined into vsx_extract_<mode>_load.
22882 (vsx_extract_<mode>_one_le): Likewise.
22884 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
22885 define the top 64-bit vector element.
22887 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
22890 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22891 Document vec_vbpermq builtin.
22894 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
22895 enable use of xxsldwi and xxpermdi builtin functions.
22896 (vec_xxpermdi): Likewise.
22898 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22899 Document use of vec_xxsldwi and vec_xxpermdi builtins.
22901 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
22903 PR rtl-optimization/60650
22904 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
22906 (find_spills_for): New.
22907 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
22908 Spill all pseudos on the second iteration.
22910 2014-03-27 Marek Polacek <polacek@redhat.com>
22913 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
22916 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22918 * config/s390/s390.c (s390_can_use_return_insn): Check for
22919 call-saved FPRs on 31 bit.
22921 2014-03-27 Jakub Jelinek <jakub@redhat.com>
22923 PR middle-end/60682
22924 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
22925 if they need regimplification, just drop them instead of
22926 calling gimple_regimplify_operands on them.
22928 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
22931 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
22932 (aarch64_frame_pointer_required): Adjust logic.
22933 (aarch64_can_eliminate): Adjust logic.
22934 (aarch64_override_options_after_change): Adjust logic.
22936 2014-03-27 Dehao Chen <dehao@google.com>
22938 * ipa-inline.c (early_inliner): Update node's inline info.
22940 2014-03-26 Dehao Chen <dehao@google.com>
22942 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
22943 compiler inserted conditional jumps for NAN float check.
22945 2014-03-26 Jakub Jelinek <jakub@redhat.com>
22947 * ubsan.h (ubsan_create_data): Change second argument's type
22948 to const location_t *.
22949 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
22951 (ubsan_create_data): Change second argument to const location_t *PLOC.
22952 Create Loc field whenever PLOC is non-NULL.
22953 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
22954 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
22958 * real.c (real_to_integer2): Change type of low to UHWI.
22960 2014-03-26 Tobias Burnus <burnus@net-b.de>
22962 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
22963 (CILK_SELF_SPECS): New define.
22964 (driver_self_specs): Use it.
22966 2014-03-26 Richard Biener <rguenther@suse.de>
22968 * tree-pretty-print.c (percent_K_format): Implement special
22969 case for LTO and its stripped down BLOCK tree.
22971 2014-03-26 Jakub Jelinek <jakub@redhat.com>
22974 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
22976 * tree-vrp.c (simplify_internal_call_using_ranges): If only
22977 one range is range_int_cst_p, but not both, at least optimize
22978 addition/subtraction of 0 and multiplication by 0 or 1.
22979 * gimple-fold.c (gimple_fold_call): Fold
22980 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
22981 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
22982 INTEGER_CSTs, try to fold at least x * 0 and y - y.
22984 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
22986 PR rtl-optimization/60452
22987 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
22988 <case REG>: Return 1 for invalid offsets from the frame pointer.
22990 2014-03-26 Marek Polacek <polacek@redhat.com>
22993 * doc/extend.texi (C Extensions): Mention variable-length arrays in
22996 2014-03-26 Marek Polacek <polacek@redhat.com>
22999 * doc/extend.texi (Designated Inits): Describe what happens to omitted
23002 2014-03-26 Marek Polacek <polacek@redhat.com>
23005 * ira-color.c (update_conflict_hard_regno_costs): Perform the
23006 multiplication in unsigned type.
23008 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23010 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23012 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
23014 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23016 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23019 * cif-code.def (UNREACHABLE) New code.
23020 * ipa-inline.c (inline_small_functions): Skip edges to
23021 __builtlin_unreachable.
23022 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23023 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23024 predicate to __bulitin_unreachable.
23025 (set_cond_stmt_execution_predicate): Fix issue when
23026 invert_tree_comparison returns ERROR_MARK.
23027 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23028 propagate to inline clones.
23029 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23031 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23032 * cgraphclones.c (cgraph_clone_node): If call destination is already
23033 ureachable, do not redirect it back.
23034 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23037 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
23039 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23040 Do not modify inline clones.
23042 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23044 * config/i386/i386.md (general_sext_operand): New mode attr.
23045 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23046 don't generate (sign_extend (const_int)).
23047 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23048 operands[2]. Use We constraint instead of <i> and
23049 <general_sext_operand> predicate instead of <general_operand>.
23050 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23051 * config/i386/constraints.md (We): New constraint.
23052 * config/i386/predicates.md (x86_64_sext_operand,
23053 sext_operand): New predicates.
23055 2014-03-25 Martin Jambor <mjambor@suse.cz>
23058 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23059 inconsistent devirtualizations to __builtin_unreachable.
23061 2014-03-25 Marek Polacek <polacek@redhat.com>
23064 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23066 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
23068 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23069 order of elements for big-endian.
23071 2014-03-25 Richard Biener <rguenther@suse.de>
23073 PR middle-end/60635
23074 * gimplify-me.c (gimple_regimplify_operands): Update the
23077 2014-03-25 Martin Jambor <mjambor@suse.cz>
23080 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23081 (lto_output_varpool_node): Likewise.
23082 (input_overwrite_node): Likewise.
23083 (input_varpool_node): Likewise.
23085 2014-03-25 Richard Biener <rguenther@suse.de>
23087 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23088 (run_gcc): Likewise.
23090 2014-03-25 Jakub Jelinek <jakub@redhat.com>
23092 * combine.c (simplify_compare_const): Add MODE argument.
23093 Handle mode_width 0 as very large mode_width.
23094 (try_combine, simplify_comparison): Adjust callers.
23096 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23097 type to avoid signed integer overflow.
23098 * explow.c (plus_constant): Likewise.
23100 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23102 * doc/generic.texi: Correct typos.
23104 2014-03-24 Tobias Burnus <burnus@net-b.de>
23106 * doc/invoke.texi (-flto): Expand section about
23107 using static libraries with LTO.
23109 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23111 PR rtl-optimization/60501
23112 * optabs.def (addptr3_optab): New optab.
23113 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23114 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23115 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23117 * lra.c (emit_add3_insn): Use the addptr pattern if available.
23119 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23121 2014-03-24 Ulrich Drepper <drepper@gmail.com>
23123 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23126 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23127 (_mm256_undefined_ps): Define.
23128 (_mm256_undefined_pd): Define.
23129 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23130 (_mm_undefined_pd): Define.
23131 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23132 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23133 (_mm512_undefined_ps): Define.
23134 (_mm512_undefined_pd): Define.
23135 Use _mm*_undefined_*.
23136 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23138 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
23140 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23141 (lshr_simd): DI mode added.
23142 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23143 (aarch64_ushr_simddi): Likewise.
23144 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23145 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23146 (vshrd_n_u64): Likewise.
23148 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23150 * Makefile.in (s-macro_list): Depend on cc1.
23152 2014-03-23 Teresa Johnson <tejohnson@google.com>
23154 * ipa-utils.c (ipa_print_order): Use specified dump file.
23156 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
23158 PR rtl-optimization/60601
23159 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23161 * gcc.c (eval_spec_function): Initialize save_growing_value.
23163 2014-03-22 Jakub Jelinek <jakub@redhat.com>
23166 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23167 code == MINUS_EXPR, never swap op0 with op1.
23169 * toplev.c (init_local_tick): Avoid signed integer multiplication
23171 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23172 shift by first operand's bitsize.
23174 2014-03-21 Jakub Jelinek <jakub@redhat.com>
23177 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23178 redefine to 1 or 0.
23179 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23180 TARGET_ISA_64BIT_P(x).
23182 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23184 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23185 pattern for vector nor instead of subtract from splat(-1).
23186 (altivec_expand_vec_perm_const_le): Likewise.
23188 2014-03-21 Richard Henderson <rth@twiddle.net>
23191 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23192 related insns after epilogue_completed.
23194 2014-03-21 Martin Jambor <mjambor@suse.cz>
23197 * cgraph.h (symtab_node): New flag body_removed.
23198 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23199 when removing bodies.
23200 * symtab.c (dump_symtab_base): Dump body_removed flag.
23201 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23202 had their bodies removed.
23204 2014-03-21 Martin Jambor <mjambor@suse.cz>
23207 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23210 2014-03-21 Richard Biener <rguenther@suse.de>
23212 PR tree-optimization/60577
23213 * tree-core.h (struct tree_base): Document nothrow_flag use
23214 in DECL_NONALIASED.
23215 * tree.h (DECL_NONALIASED): New.
23216 (may_be_aliased): Adjust.
23217 * coverage.c (build_var): Set DECL_NONALIASED.
23219 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23221 * expr.c (expand_expr_real_1): Remove outdated comment.
23223 2014-03-20 Jakub Jelinek <jakub@redhat.com>
23225 PR middle-end/60597
23226 * ira.c (adjust_cleared_regs): Call copy_rtx on
23227 *reg_equiv[REGNO (loc)].src_p before passing it to
23228 simplify_replace_fn_rtx.
23231 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23232 into CONST, put pic register as first operand of PLUS. Use
23233 gen_const_mem for both 32-bit and 64-bit PIC got loads.
23235 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23237 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23239 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23241 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23242 around for store forwarding issue in the FPU on the UT699.
23243 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23244 loads and operations if -mfix-ut699 is specified.
23245 (divtf3_hq): Tweak attribute.
23246 (sqrttf2_hq): Likewise.
23248 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
23250 * calls.c (store_one_arg): Remove incorrect const qualification on the
23251 type of the temporary.
23252 * cfgexpand.c (expand_return): Likewise.
23253 * expr.c (expand_constructor): Likewise.
23254 (expand_expr_real_1): Likewise.
23256 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23258 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23261 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23264 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23266 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
23268 * config/arm/aarch-common-protos.h
23269 (alu_cost_table): Fix spelling of "extend".
23270 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23272 2014-03-19 Richard Biener <rguenther@suse.de>
23274 PR middle-end/60553
23275 * tree-core.h (tree_type_common): Re-order pointer members
23276 to reduce recursion depth during GC walks.
23278 2014-03-19 Marek Polacek <polacek@redhat.com>
23281 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23282 before accessing it.
23284 2014-03-19 Richard Biener <rguenther@suse.de>
23287 * lto-streamer-in.c (input_function): In WPA stage do not drop
23290 2014-03-19 Jakub Jelinek <jakub@redhat.com>
23292 PR tree-optimization/60559
23293 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23294 with build_zero_cst assignment.
23296 2014-03-18 Kai Tietz <ktietz@redhat.com>
23298 PR rtl-optimization/56356
23299 * sdbout.c (sdbout_parms): Verify that parms'
23300 incoming argument is valid.
23301 (sdbout_reg_parms): Likewise.
23303 2014-03-18 Richard Henderson <rth@redhat.com>
23306 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23307 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
23308 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23310 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
23312 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23313 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23314 Italicize plugin event names in description. Explain that
23315 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
23316 Remind that no GCC functions should be called after PLUGIN_FINISH.
23317 Explain what pragmas with expansion are.
23319 2014-03-18 Martin Liska <mliska@suse.cz>
23321 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23322 gimple call statement is update.
23323 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23324 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23326 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23329 * ubsan.c (ubsan_instrument_unreachable): Call
23330 initialize_sanitizer_builtins.
23331 (ubsan_pass): Likewise.
23334 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23335 varpool_finalize_decl instead of rest_of_decl_compilation.
23337 2014-03-18 Richard Biener <rguenther@suse.de>
23339 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23340 by using bitmap_and_compl instead of bitmap_and_compl_into.
23341 (df_rd_transfer_function): Likewise.
23343 2014-03-18 Richard Biener <rguenther@suse.de>
23345 * doc/lto.texi (fresolution): Fix typo.
23347 2014-03-18 Richard Biener <rguenther@suse.de>
23349 * doc/invoke.texi (flto): Update for changes in 4.9.
23351 2014-03-18 Richard Biener <rguenther@suse.de>
23353 * doc/loop.texi: Remove section on the removed lambda framework.
23354 Update loop docs with recent changes in preserving loop structure.
23356 2014-03-18 Richard Biener <rguenther@suse.de>
23358 * doc/lto.texi (-fresolution): Document.
23360 2014-03-18 Richard Biener <rguenther@suse.de>
23362 * doc/contrib.texi: Adjust my name.
23364 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23367 * internal-fn.c: Include diagnostic-core.h.
23368 (expand_BUILTIN_EXPECT): New function.
23369 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23370 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23371 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23372 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23373 IFN_BUILTIN_EXPECT.
23374 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23375 Revert 3 argument __builtin_expect code.
23376 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23377 * gimple-fold.c (gimple_fold_call): Likewise.
23378 * tree.h (fold_builtin_expect): New prototype.
23379 * builtins.c (build_builtin_expect_predicate): Add predictor
23380 argument, if non-NULL, create 3 argument __builtin_expect.
23381 (fold_builtin_expect): No longer static. Add ARG2 argument,
23382 pass it through to build_builtin_expect_predicate.
23383 (fold_builtin_2): Adjust caller.
23384 (fold_builtin_3): Handle BUILT_IN_EXPECT.
23385 * internal-fn.def (BUILTIN_EXPECT): New.
23387 2014-03-18 Tobias Burnus <burnus@net-b.de>
23390 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23391 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23392 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23394 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
23397 * predict.c (combine_predictions_for_bb): Fix up formatting.
23398 (expr_expected_value_1, expr_expected_value): Add predictor argument,
23399 fill what it points to if non-NULL.
23400 (tree_predict_by_opcode): Adjust caller, use the predictor.
23401 * predict.def (PRED_COMPARE_AND_SWAP): Add.
23403 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
23405 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23406 proper constant for the store mode.
23408 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
23410 * symtab.c (change_decl_assembler_name): Fix transparent alias
23411 chain construction.
23413 2014-03-16 Renlin Li <Renlin.Li@arm.com>
23415 * config/aarch64/aarch64.c: Correct the comments about the
23416 aarch64 stack layout.
23418 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
23420 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23421 check for GF_OMP_FOR_KIND_FOR.
23423 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
23425 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23426 ymm and zmm register names.
23428 2014-03-17 Jakub Jelinek <jakub@redhat.com>
23431 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23432 note creation for the 2010-08-31 changes.
23434 2014-03-17 Marek Polacek <polacek@redhat.com>
23436 PR middle-end/60534
23437 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23438 as -fno-tree-loop-vectorize.
23439 (expand_omp_simd): Likewise.
23441 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
23443 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23444 (eligible_for_call_delay): New prototype.
23445 * config/sparc/sparc.c (tls_call_delay): Rename into...
23446 (eligible_for_call_delay): ...this. Return false if the instruction
23447 cannot be put in the delay slot of a branch.
23448 (eligible_for_restore_insn): Simplify.
23449 (eligible_for_return_delay): Return false if the instruction cannot be
23450 put in the delay slot of a branch and simplify.
23451 (eligible_for_sibcall_delay): Return false if the instruction cannot be
23452 put in the delay slot of a branch.
23453 * config/sparc/sparc.md (fix_ut699): New attribute.
23454 (tls_call_delay): Delete.
23455 (in_call_delay): Reimplement.
23456 (eligible_for_sibcall_delay): Rename into...
23457 (in_sibcall_delay): ...this.
23458 (eligible_for_return_delay): Rename into...
23459 (in_return_delay): ...this.
23460 (in_branch_delay): Reimplement.
23461 (in_uncond_branch_delay): Delete.
23462 (in_annul_branch_delay): Delete.
23464 2014-03-14 Richard Henderson <rth@redhat.com>
23467 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23468 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23469 (*floathi<X87MODEF>2_i387_with_temp): Remove.
23470 (floathi splitters): Remove.
23471 (float<SWI48x>xf2): New pattern.
23472 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
23473 code that tried to handle DImode for 32-bit, but which was excluded
23474 by the pattern's condition. Drop allocation of stack temporary.
23475 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23476 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23477 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23478 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23479 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23480 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23481 (*float<SWI48><MODEF>2_sse_interunit): Remove.
23482 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23483 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23484 (*float<SWI48x><X87MODEF>2_i387): Remove.
23485 (all float _with_temp splitters): Remove.
23486 (*float<SWI48x><MODEF>2_i387): New pattern.
23487 (*float<SWI48><MODEF>2_sse): New pattern.
23488 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23489 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23491 2014-03-14 Jakub Jelinek <jakub@redhat.com>
23492 Marek Polacek <polacek@redhat.com>
23494 PR middle-end/60484
23495 * common.opt (dump_base_name_prefixed): New Variable.
23496 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23497 if x_dump_base_name_prefixed is already set, set it at the end.
23499 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
23501 PR rtl-optimization/60508
23502 * lra-constraints.c (get_reload_reg): Add new parameter
23504 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23505 Pass the new parameter values.
23507 2014-03-14 Richard Biener <rguenther@suse.de>
23509 * common.opt: Revert unintented changes from r205065.
23510 * opts.c: Likewise.
23512 2014-03-14 Richard Biener <rguenther@suse.de>
23514 PR middle-end/60518
23515 * cfghooks.c (split_block): Properly adjust all loops the
23516 block was a latch of.
23518 2014-03-14 Martin Jambor <mjambor@suse.cz>
23521 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
23524 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
23527 * config/avr/avr.c (avr_set_current_function): Pass function name
23528 through default_strip_name_encoding before sanity checking instead
23529 of skipping the first char of the assembler name.
23531 2014-03-13 Richard Henderson <rth@redhat.com>
23534 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
23535 (ix86_force_to_memory, ix86_free_from_memory): Remove.
23536 * config/i386/i386-protos.h: Likewise.
23537 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
23538 in the expander instead of a splitter.
23539 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
23540 any possibility of requiring a memory.
23541 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
23542 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
23543 (fp branch splitters): Update for ix86_split_fp_branch.
23544 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
23545 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
23546 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
23547 (*fop_<MODEF>_2_i387): Remove f/r alternative.
23548 (*fop_<MODEF>_3_i387): Likewise.
23549 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
23550 (splitters for the fop_* register patterns): Remove.
23551 (fscalexf4_i387): Rename from *fscalexf4_i387.
23552 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
23554 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23556 PR tree-optimization/59779
23557 * tree-dfa.c (get_ref_base_and_extent): Use double_int
23558 type for bitsize and maxsize instead of HOST_WIDE_INT.
23560 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
23562 PR rtl-optimization/57320
23563 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
23564 the CFG after thread_prologue_and_epilogue_insns.
23566 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
23568 PR rtl-optimization/57189
23569 * lra-constraints.c (process_alt_operands): Disfavor spilling
23572 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
23574 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
23576 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23578 PR tree-optimization/59025
23579 PR middle-end/60418
23580 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
23581 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
23583 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
23586 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
23587 calls of avr_out_plus_1.
23589 2014-03-13 Bin Cheng <bin.cheng@arm.com>
23591 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
23592 BB's single pred and update the father loop's latch info later.
23594 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23596 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
23600 (VEC_base): Likewise.
23601 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
23602 registers, we need to swap double words in little endian mode.
23604 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
23605 to be a container mode for 128-bit integer operations added in ISA
23606 2.07. Unlike TImode and PTImode, the preferred register set is
23607 the Altivec/VMX registers for the 128-bit operations.
23609 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
23611 (rs6000_split_128bit_ok_p): Likewise.
23613 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
23614 macros for creating ISA 2.07 normal and overloaded builtin
23615 functions with 3 arguments.
23616 (BU_P8V_OVERLOAD_3): Likewise.
23617 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
23618 for use as overloaded functions.
23619 (VPERM_1TI_UNS): Likewise.
23620 (VSEL_1TI): Likewise.
23621 (VSEL_1TI_UNS): Likewise.
23622 (ST_INTERNAL_1ti): Likewise.
23623 (LD_INTERNAL_1ti): Likewise.
23624 (XXSEL_1TI): Likewise.
23625 (XXSEL_1TI_UNS): Likewise.
23626 (VPERM_1TI): Likewise.
23627 (VPERM_1TI_UNS): Likewise.
23628 (XXPERMDI_1TI): Likewise.
23629 (SET_1TI): Likewise.
23630 (LXVD2X_V1TI): Likewise.
23631 (STXVD2X_V1TI): Likewise.
23632 (VEC_INIT_V1TI): Likewise.
23633 (VEC_SET_V1TI): Likewise.
23634 (VEC_EXT_V1TI): Likewise.
23635 (EQV_V1TI): Likewise.
23636 (NAND_V1TI): Likewise.
23637 (ORC_V1TI): Likewise.
23638 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
23639 added in ISA 2.07. Add both normal 'altivec' builtins, and the
23640 overloaded builtin.
23641 (VADDUQM): Likewise.
23642 (VSUBCUQ): Likewise.
23643 (VADDEUQM): Likewise.
23644 (VADDECUQ): Likewise.
23645 (VSUBEUQM): Likewise.
23646 (VSUBECUQ): Likewise.
23648 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
23649 __int128_t and __uint128_t types.
23650 (__uint128_type): Likewise.
23651 (altivec_categorize_keyword): Add support for vector __int128_t,
23652 vector __uint128_t, vector __int128, and vector unsigned __int128
23653 as a container type for TImode operations that need to be done in
23654 VSX/Altivec registers.
23655 (rs6000_macro_to_expand): Likewise.
23656 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
23657 to support 128-bit integer instructions vaddcuq, vadduqm,
23658 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
23659 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
23661 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
23662 for V1TImode, and set up preferences to use VSX/Altivec registers.
23663 Setup VSX reload handlers.
23664 (rs6000_debug_reg_global): Likewise.
23665 (rs6000_init_hard_regno_mode_ok): Likewise.
23666 (rs6000_preferred_simd_mode): Likewise.
23667 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
23668 (easy_altivec_constant): Likewise.
23669 (output_vec_const_move): Likewise.
23670 (rs6000_expand_vector_set): Convert V1TImode set and extract to
23672 (rs6000_expand_vector_extract): Likewise.
23673 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
23675 (rs6000_const_vec): Add support for V1TImode.
23676 (rs6000_emit_le_vsx_load): Swap double words when loading or
23677 storing TImode/V1TImode.
23678 (rs6000_emit_le_vsx_store): Likewise.
23679 (rs6000_emit_le_vsx_move): Likewise.
23680 (rs6000_emit_move): Add support for V1TImode.
23681 (altivec_expand_ld_builtin): Likewise.
23682 (altivec_expand_st_builtin): Likewise.
23683 (altivec_expand_vec_init_builtin): Likewise.
23684 (altivec_expand_builtin): Likewise.
23685 (rs6000_init_builtins): Add support for V1TImode type. Add
23686 support for ISA 2.07 128-bit integer builtins. Define type names
23687 for the VSX/Altivec vector types.
23688 (altivec_init_builtins): Add support for overloaded vector
23689 functions with V1TImode type.
23690 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
23691 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
23693 (rs6000_split_128bit_ok_p): Likewise.
23694 (rs6000_handle_altivec_attribute): Create V1TImode from vector
23695 __int128_t and vector __uint128_t.
23697 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
23698 and mode attributes.
23700 (VSX_M2): Likewise.
23705 (VS_scalar): Likewise.
23706 (VS_double): Likewise.
23707 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
23709 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
23710 we support the ISA 2.07 128-bit integer arithmetic instructions.
23711 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
23712 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
23713 and TImode types for use with the builtin functions.
23714 (V1TI_type_node): Likewise.
23715 (unsigned_V1TI_type_node): Likewise.
23716 (intTI_type_internal_node): Likewise.
23717 (uintTI_type_internal_node): Likewise.
23719 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
23720 128-bit builtin functions.
23721 (UNSPEC_VADDEUQM): Likewise.
23722 (UNSPEC_VADDECUQ): Likewise.
23723 (UNSPEC_VSUBCUQ): Likewise.
23724 (UNSPEC_VSUBEUQM): Likewise.
23725 (UNSPEC_VSUBECUQ): Likewise.
23726 (VM): Add V1TImode to vector mode iterators.
23728 (VI_unit): Likewise.
23729 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
23730 (altivec_vaddcuq): Likewise.
23731 (altivec_vsubuqm): Likewise.
23732 (altivec_vsubcuq): Likewise.
23733 (altivec_vaddeuqm): Likewise.
23734 (altivec_vaddecuq): Likewise.
23735 (altivec_vsubeuqm): Likewise.
23736 (altivec_vsubecuq): Likewise.
23738 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
23740 (BOOL_128): Likewise.
23741 (BOOL_REGS_OUTPUT): Likewise.
23742 (BOOL_REGS_OP1): Likewise.
23743 (BOOL_REGS_OP2): Likewise.
23744 (BOOL_REGS_UNARY): Likewise.
23745 (BOOL_REGS_AND_CR0): Likewise.
23747 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
23748 128-bit integer builtin support.
23749 (vec_vadduqm): Likewise.
23750 (vec_vaddecuq): Likewise.
23751 (vec_vaddeuqm): Likewise.
23752 (vec_vsubecuq): Likewise.
23753 (vec_vsubeuqm): Likewise.
23754 (vec_vsubcuq): Likewise.
23755 (vec_vsubuqm): Likewise.
23757 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23758 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
23759 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
23760 128-bit integer add/subtract to ISA 2.07.
23762 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
23764 * config/arc/arc.c (arc_predicate_delay_insns):
23765 Fix third argument passed to conditionalize_nonjump.
23767 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
23769 * config/aarch64/aarch64-builtins.c
23770 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
23771 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
23772 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
23773 instead of __builtin_lfloor.
23774 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
23776 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23778 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
23779 (tree_ssa_ifcombine_bb_1): New function.
23780 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
23781 is an empty forwarder block to then_bb or vice versa and then_bb
23782 and else_bb are effectively swapped.
23784 2014-03-12 Christian Bruel <christian.bruel@st.com>
23787 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
23788 REG_CFA_DEF_CFA note.
23789 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
23790 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
23792 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23794 PR tree-optimization/60454
23795 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
23797 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23799 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
23800 Do not define target_cpu_default2 to generic.
23801 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
23802 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
23803 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
23805 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23806 Marc Glisse <marc.glisse@inria.fr>
23808 PR tree-optimization/60502
23809 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
23810 instead of build_low_bits_mask.
23812 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23814 PR middle-end/60482
23815 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
23816 if there are multiple uses, but op doesn't live on E edge.
23817 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
23818 clobber stmts before __builtin_unreachable.
23820 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
23822 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
23823 hard_frame_pointer_rtx.
23824 * cse.c (cse_insn): Remove volatile check.
23825 * cselib.c (cselib_process_insn): Likewise.
23826 * dse.c (scan_insn): Likewise.
23828 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
23830 * config/arc/arc.c (conditionalize_nonjump): New function,
23832 (arc_ifcvt): ... this.
23833 (arc_predicate_delay_insns): Use it.
23835 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
23837 * config/arc/predicates.md (extend_operand): During/after reload,
23838 allow const_int_operand.
23839 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
23840 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
23841 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
23843 (umulsi3_highpart_i): Likewise.
23845 2014-03-11 Richard Biener <rguenther@suse.de>
23847 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
23848 Add asserts to guard possible wrong-code bugs.
23850 2014-03-11 Richard Biener <rguenther@suse.de>
23852 PR tree-optimization/60429
23853 PR tree-optimization/60485
23854 * tree-ssa-structalias.c (set_union_with_increment): Properly
23855 take into account all fields that overlap the shifted vars.
23856 (do_sd_constraint): Likewise.
23857 (do_ds_constraint): Likewise.
23858 (get_constraint_for_ptr_offset): Likewise.
23860 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
23862 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
23863 (nios2_compute_frame_layout):
23864 Add calculation of cfun->machine->fp_save_offset.
23865 (nios2_expand_prologue): Correct setting of frame pointer register
23867 (nios2_expand_epilogue): Update recovery of stack pointer from
23868 frame pointer accordingly.
23869 (nios2_initial_elimination_offset): Update calculation of offset
23870 for eliminating to HARD_FRAME_POINTER_REGNUM.
23872 2014-03-10 Jakub Jelinek <jakub@redhat.com>
23875 * ipa.c (symtab_remove_unreachable_nodes): Don't call
23876 cgraph_get_create_node on VAR_DECLs.
23878 2014-03-10 Richard Biener <rguenther@suse.de>
23880 PR middle-end/60474
23881 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
23883 2014-03-08 Douglas B Rupp <rupp@gnat.com>
23885 * config/vms/vms.opt (vms_float_format): New variable.
23887 2014-03-08 Tobias Burnus <burnus@net-b.de>
23889 * doc/invoke.texi (-fcilkplus): Update implementation status.
23891 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
23892 Richard Biener <rguenther@suse.de>
23894 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
23895 consistently accross all TUs.
23896 (run_gcc): Enable -fshort-double automatically at link at link-time
23897 and disallow override.
23899 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
23902 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
23903 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
23904 if they can't be used.
23906 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23908 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
23909 for Solaris 11/x86 ld.
23910 * configure: Regenerate.
23912 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23914 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
23915 (LIB_TLS_SPEC): Save as ld_tls_libs.
23916 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
23917 (HAVE_AS_IX86_TLSLDM): New test.
23918 * configure, config.in: Regenerate.
23919 * config/i386/i386.c (legitimize_tls_address): Fall back to
23920 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
23921 cannot support TLS_MODEL_LOCAL_DYNAMIC.
23922 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
23923 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
23925 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
23927 * common.opt (fira-loop-pressure): Mark as optimization.
23929 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
23931 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
23932 an OpenMP mappable type.
23934 2014-03-06 Matthias Klose <doko@ubuntu.com>
23936 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
23937 MULTILIB_OSDIRNAMES is not defined.
23939 2014-03-06 Jakub Jelinek <jakub@redhat.com>
23940 Meador Inge <meadori@codesourcery.com>
23943 * config/arm/arm.c (arm_tls_symbol_p): Remove.
23944 (arm_legitimize_address): Call legitimize_tls_address for any
23945 arm_tls_referenced_p expression, handle constant addend. Call it
23946 before testing for !TARGET_ARM.
23947 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
23949 2014-03-06 Richard Biener <rguenther@suse.de>
23951 PR middle-end/60445
23955 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
23957 * tree-streamer.c (record_common_node): Assert we don't record
23958 nodes with type double.
23959 (preload_common_node): Skip type double, complex double and double
23960 pointer since it is now frontend dependent due to fshort-double option.
23962 2014-03-06 Richard Biener <rguenther@suse.de>
23964 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
23965 or -fno-lto is specified and the linker has full plugin support.
23966 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
23967 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
23968 * lto-wrapper.c (merge_and_complain): Merge compile-time
23969 optimization levels.
23970 (run_gcc): And pass it through to the link options.
23972 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
23976 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23978 * cselib.c (remove_useless_values): Skip to avoid quadratic
23979 behavior if the condition moved from...
23980 (cselib_process_insn): ... here holds.
23982 2014-03-05 Jakub Jelinek <jakub@redhat.com>
23985 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
23986 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
23989 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
23990 (TM_H): Add x86-tune.def.
23992 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23994 * config/aarch64/aarch64.c (generic_tunings):
23995 Use cortexa57_extra_costs.
23997 2014-03-05 Jakub Jelinek <jakub@redhat.com>
24000 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24001 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24002 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24005 2014-03-04 Heiher <r@hev.cc>
24007 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24008 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24010 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
24012 * config/i386/predicates.md (const2356_operand): Change to ...
24013 (const2367_operand): ... this.
24014 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24016 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24017 (*avx512pf_scatterpf<mode>sf): Ditto.
24018 (avx512pf_scatterpf<mode>df): Ditto.
24019 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24020 (*avx512pf_scatterpf<mode>df): Ditto.
24021 * config/i386/i386.c (ix86_expand_builtin): Update
24022 incorrect hint operand error message.
24024 2014-03-04 Richard Biener <rguenther@suse.de>
24026 * lto-section-in.c (lto_get_section_data): Fix const cast.
24028 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
24030 * tree-streamer.c (record_common_node): Assert we don't record
24031 nodes with type double.
24032 (preload_common_node): Skip type double, complex double and double
24033 pointer since it is now frontend dependent due to fshort-double option.
24035 2014-03-04 Richard Biener <rguenther@suse.de>
24038 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24039 (lto_input_toplevel_asms): Likewise.
24040 * lto-section-in.c (lto_get_section_data): Instead do it here
24043 2014-03-04 Richard Biener <rguenther@suse.de>
24045 PR tree-optimization/60382
24046 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24047 dead PHIs a reduction.
24049 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
24051 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24053 (_mm_prefetch): Move out of GCC target("sse") pragma.
24054 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24055 GCC target("prfchw") pragma.
24056 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24058 * config/i386/i386.c (ix86_option_override_internal): Enable
24059 -mprfchw with -mprefetchwt1.
24061 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24063 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24066 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
24068 * opts.h (CL_PCH_IGNORE): Define.
24069 * targhooks.c (option_affects_pch_p):
24070 Return false for options that have CL_PCH_IGNORE set.
24071 * opt-functions.awk: Process PchIgnore.
24072 * doc/options.texi: Document PchIgnore.
24074 * config/arc/arc.opt (misize): Add PchIgnore property.
24076 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24078 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24079 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24080 constraint on constants to permit them being loaded into
24081 GENERAL_REGS or BASE_REGS.
24083 2014-03-03 Nick Clifton <nickc@redhat.com>
24085 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24086 anti-cacnonical alternatives.
24087 (negandhi3_real): New pattern.
24088 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24090 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24092 * config/avr/avr-mcus.def: Remove atxmega16x1.
24093 * config/avr/avr-tables.opt: Regenerate.
24094 * config/avr/t-multilib: Regenerate.
24095 * doc/avr-mmcu.texi: Regenerate.
24097 2014-03-03 Tobias Grosser <tobias@grosser.es>
24098 Mircea Namolaru <mircea.namolaru@inria.fr>
24100 PR tree-optimization/58028
24101 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24104 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24106 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24107 not handled by recognizers.
24109 2014-03-03 Jakub Jelinek <jakub@redhat.com>
24111 PR middle-end/60175
24112 * function.c (expand_function_end): Don't emit
24113 clobber_return_register sequence if clobber_after is a BARRIER.
24114 * cfgexpand.c (construct_exit_block): Append instructions before
24115 return_label to prev_bb.
24117 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24119 * config/rs6000/constraints.md: Document reserved use of "wc".
24121 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24124 * ipa.c (function_and_variable_visibility): When dissolving comdat
24125 group, also set all symbols to local.
24127 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
24132 2013-12-14 Jan Hubicka <jh@suse.cz>
24133 PR middle-end/58477
24134 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24136 2014-03-02 Jon Beniston <jon@beniston.com>
24142 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24143 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24144 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24145 (simple_return, *simple_return): New patterns
24146 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24147 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24149 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
24151 * dwarf2out.c (gen_subprogram_die): Tidy.
24153 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
24156 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24157 (*mov_t_msb_neg_negc): ... this new insn.
24159 2014-02-28 Jason Merrill <jason@redhat.com>
24162 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24165 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
24168 * dwarf2out.c (decltype_auto_die): New static.
24169 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24170 (gen_type_die_with_usage): Handle 'decltype(auto)'.
24171 (is_cxx_auto): Likewise.
24173 2014-02-28 Ian Bolton <ian.bolton@arm.com>
24175 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24176 we are not using general regs only.
24178 2014-02-28 Richard Biener <rguenther@suse.de>
24181 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24182 previous fix and only allow to remove trivial pre-headers
24183 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24184 (remove_forwarder_block): Properly update the latch of a loop.
24186 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24189 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24190 (cselib_preserved_hash_table): New.
24191 (preserve_constants_and_equivs): Move preserved vals to it.
24192 (cselib_find_slot): Look it up first.
24193 (cselib_init): Initialize it.
24194 (cselib_finish): Release it.
24195 (dump_cselib_table): Dump it.
24197 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24200 * cselib.c (remove_useless_values): Skip to avoid quadratic
24201 behavior if the condition moved from...
24202 (cselib_process_insn): ... here holds.
24204 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
24207 * var-tracking.c (vt_initialize): Apply the same condition to
24208 preserve the CFA base value.
24210 2014-02-28 Joey Ye <joey.ye@arm.com>
24213 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24214 if reload in progress or completed.
24216 2014-02-28 Tobias Burnus <burnus@net-b.de>
24218 PR middle-end/60147
24219 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24222 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
24224 * doc/tm.texi.in (Condition Code Status): Update documention for
24225 relative locations of cc0-setter and cc0-user.
24227 2014-02-27 Jeff Law <law@redhat.com>
24229 PR rtl-optimization/52714
24230 * combine.c (try_combine): When splitting an unrecognized PARALLEL
24231 into two independent simple sets, if I3 is a jump, ensure the
24232 pattern we place into I3 is a (set (pc) ...).
24234 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
24235 Jeff Law <law@redhat.com>
24237 PR rtl-optimization/49847
24238 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24239 are in different blocks.
24240 * doc/tm.texi (Condition Code Status): Update documention for
24241 relative locations of cc0-setter and cc0-user.
24243 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
24246 * lra.c (lra_emit_add): Check SUBREG too.
24248 2014-02-27 Andreas Schwab <schwab@suse.de>
24250 * config/m68k/m68k.c (m68k_option_override): Disable
24251 -flive-range-shrinkage for classic m68k.
24252 (m68k_override_options_after_change): Likewise.
24254 2014-02-27 Marek Polacek <polacek@redhat.com>
24256 PR middle-end/59223
24257 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24258 -Wmaybe-uninitialized.
24260 2014-02-27 Alan Modra <amodra@gmail.com>
24263 * reload1.c (emit_input_reload_insns): When reload_override_in,
24264 set old to rl->in_reg when rl->in_reg is a subreg.
24266 2014-02-26 Richard Biener <rguenther@suse.de>
24269 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24271 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24273 * common/config/i386/predicates.md (const1256_operand): Remove.
24274 (const2356_operand): New.
24275 (const_1_to_2_operand): Remove.
24276 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24277 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24278 (*avx512pf_gatherpf<mode>sf): Ditto.
24279 (avx512pf_gatherpf<mode>df): Ditto.
24280 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24281 (*avx512pf_gatherpf<mode>df): Ditto.
24282 (avx512pf_scatterpf<mode>sf): Ditto.
24283 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24284 (*avx512pf_scatterpf<mode>sf): Ditto.
24285 (avx512pf_scatterpf<mode>df): Ditto.
24286 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24287 (*avx512pf_scatterpf<mode>df): Ditto.
24288 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24290 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
24292 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24293 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24294 (_mm512_mask_testn_epi64_mask): Move to ...
24295 * config/i386/avx512cdintrin.h: Here.
24296 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24297 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24298 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24299 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24300 TARGET_AVX512F from TARGET_AVX512CD.
24302 2014-02-26 Richard Biener <rguenther@suse.de>
24305 * ipa.c (walk_polymorphic_call_targets): Properly guard
24306 call to inline_update_overall_summary.
24308 2014-02-26 Bin Cheng <bin.cheng@arm.com>
24311 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24312 and latches only if requested. Fix latch if it is removed.
24313 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24314 LOOPS_HAVE_PREHEADERS.
24316 2014-02-25 Andrew Pinski <apinski@cavium.com>
24318 * builtins.c (expand_builtin_thread_pointer): Create a new target
24319 when the target is NULL.
24321 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
24323 PR rtl-optimization/60317
24324 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24325 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24326 * lra-assigns.c: Include params.h.
24327 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24328 other reload pseudos considerations.
24330 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24332 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24333 to use canonical form for nor<mode>3.
24335 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24338 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24341 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24343 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24344 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24345 (ix86_handle_option): Handle OPT_mprefetchwt1.
24346 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24347 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24349 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24350 OPTION_MASK_ISA_PREFETCHWT1.
24351 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24352 (PTA_PREFETCHWT1): New.
24353 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24354 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24355 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24356 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24357 (*prefetch_avx512pf_<mode>_: Change into ...
24358 (*prefetch_prefetchwt1_<mode>: This.
24359 * config/i386/i386.opt (mprefetchwt1): New.
24360 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24361 (_mm_prefetch): Handle intent to write.
24362 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24364 2014-02-25 Richard Biener <rguenther@suse.de>
24366 PR middle-end/60291
24367 * emit-rtl.c (mem_attrs_htab): Remove.
24368 (mem_attrs_htab_hash): Likewise.
24369 (mem_attrs_htab_eq): Likewise.
24370 (set_mem_attrs): Always allocate new mem-attrs when something changed.
24371 (init_emit_once): Do not allocate mem_attrs_htab.
24373 2014-02-25 Richard Biener <rguenther@suse.de>
24376 * lto-opts.c (lto_write_options): Output non-explicit conservative
24377 -fwrapv, -fno-trapv and -fno-strict-overflow.
24378 * lto-wrapper.c (merge_and_complain): Handle merging those options.
24379 (run_gcc): And pass them through.
24381 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24383 * sel-sched.c (calculate_new_fences): New parameter ptime.
24384 Calculate it as a maximum over all fence cycles.
24385 (sel_sched_region_2): Adjust the call to calculate_new_fences.
24386 Print the final schedule timing when sched_verbose.
24388 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24390 PR rtl-optimization/60292
24391 * sel-sched.c (fill_vec_av_set): Do not reset target availability
24392 bit fot the fence instruction.
24394 2014-02-24 Alangi Derick <alangiderick@gmail.com>
24396 * calls.h: Fix typo in comment.
24398 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
24400 * config/pa/pa.c (pa_output_move_double): Don't valididate when
24401 adjusting offsetable addresses.
24403 2014-02-24 Guozhi Wei <carrot@google.com>
24405 * sparseset.h (sparseset_pop): Fix the wrong index.
24407 2014-02-24 Walter Lee <walt@tilera.com>
24409 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24410 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24412 * common/config/tilegx/tilegx-common.c
24413 (TARGET_DEFAULT_TARGET_FLAGS): Define.
24414 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24415 (LINK_SPEC): Ditto.
24416 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24417 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24418 (tilegx_gimplify_va_arg_expr): Handle big endian.
24419 (tilegx_expand_unaligned_load): Ditto.
24420 (tilegx_expand_unaligned_store): Ditto.
24421 (TARGET_RETURN_IN_MSB): New.
24422 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24423 (TARGET_ENDIAN_DEFAULT): New.
24424 (TARGET_BIG_ENDIAN): Handle big endian.
24425 (BYTES_BIG_ENDIAN): Ditto.
24426 (WORDS_BIG_ENDIAN): Ditto.
24427 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24428 (ENDIAN_SPEC): New.
24429 (EXTRA_SPECS): New.
24430 * config/tilegx/tilegx.md (extv): Handle big endian.
24432 (insn_st<n>): Ditto.
24433 (insn_st<n>_add<bitsuffix>): Ditto.
24434 (insn_stnt<n>): Ditto.
24435 (insn_stnt<n>_add<bitsuffix>):Ditto.
24436 (vec_interleave_highv8qi): Handle big endian.
24437 (vec_interleave_highv8qi_be): New.
24438 (vec_interleave_highv8qi_le): New.
24439 (insn_v1int_h): Handle big endian.
24440 (vec_interleave_lowv8qi): Handle big endian.
24441 (vec_interleave_lowv8qi_be): New.
24442 (vec_interleave_lowv8qi_le): New.
24443 (insn_v1int_l): Handle big endian.
24444 (vec_interleave_highv4hi): Handle big endian.
24445 (vec_interleave_highv4hi_be): New.
24446 (vec_interleave_highv4hi_le): New.
24447 (insn_v2int_h): Handle big endian.
24448 (vec_interleave_lowv4hi): Handle big endian.
24449 (vec_interleave_lowv4hi_be): New.
24450 (vec_interleave_lowv4hi_le): New.
24451 (insn_v2int_l): Handle big endian.
24452 (vec_interleave_highv2si): Handle big endian.
24453 (vec_interleave_highv2si_be): New.
24454 (vec_interleave_highv2si_le): New.
24455 (insn_v4int_h): Handle big endian.
24456 (vec_interleave_lowv2si): Handle big endian.
24457 (vec_interleave_lowv2si_be): New.
24458 (vec_interleave_lowv2si_le): New.
24459 (insn_v4int_l): Handle big endian.
24460 * config/tilegx/tilegx.opt (mbig-endian): New option.
24461 (mlittle-endian): New option.
24462 * doc/install.texi: Document tilegxbe-linux.
24463 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24465 2014-02-24 Martin Jambor <mjambor@suse.cz>
24468 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24469 there are no parameter descriptors.
24471 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
24473 PR rtl-optimization/60268
24474 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24475 initialization to ...
24476 (sched_rgn_init): ... here.
24477 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24479 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24481 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24484 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
24486 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24489 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24491 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24492 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24494 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24496 * config/microblaze/predicates.md: Add cmp_op predicate.
24497 * config/microblaze/microblaze.md: Add branch_compare instruction
24498 which uses cmp_op predicate and emits cmp insn before branch.
24499 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24500 to microblaze_expand_conditional_branch and consolidate logic.
24501 (microblaze_expand_conditional_branch): emit branch_compare
24502 insn instead of handling cmp op separate from branch insn.
24504 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24506 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24509 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24511 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24512 define_insn with define_expand and new define_insn
24513 *altivec_lve<VI_char>x_internal.
24514 (altivec_stve<VI_char>x): Replace define_insn with define_expand
24515 and new define_insn *altivec_stve<VI_char>x_internal.
24516 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
24518 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
24520 (altivec_expand_stvex_be): New function.
24522 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
24524 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
24525 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
24526 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
24527 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
24529 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
24532 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
24533 instead of emit_move_insn.
24535 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24537 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
24538 vspltw with vsldoi.
24539 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
24540 gen_altivec_vsumsws.
24542 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24544 * config/rs6000/altivec.md (altivec_lvxl): Rename as
24545 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
24546 (altivec_lvxl_<mode>): New define_expand incorporating
24547 -maltivec=be semantics where needed.
24548 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
24549 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
24550 semantics where needed.
24551 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
24552 (altivec_stvx_<mode>): New define_expand incorporating
24553 -maltivec=be semantics where needed.
24554 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
24555 VM2 iterator instead of V4SI.
24556 (altivec_stvxl_<mode>): New define_expand incorporating
24557 -maltivec=be semantics where needed.
24558 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
24559 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
24560 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
24561 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
24562 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
24563 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
24564 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
24565 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
24566 ALTIVEC_BUILTIN_STVXL.
24567 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
24568 (altivec_expand_stvx_be): Likewise.
24569 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
24570 (altivec_expand_lvx_be): Likewise.
24571 (altivec_expand_stvx_be): Likewise.
24572 (altivec_expand_builtin): Add cases for
24573 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
24574 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
24575 (altivec_init_builtins): Add definitions for
24576 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
24577 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
24579 2014-02-21 Catherine Moore <clm@codesourcery.com>
24581 * doc/invoke.texi (mvirt, mno-virt): Document.
24582 * config/mips/mips.opt (mvirt): New option.
24583 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
24585 2014-02-21 Richard Biener <rguenther@suse.de>
24587 PR tree-optimization/60276
24588 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
24589 (STMT_VINFO_MIN_NEG_DIST): New macro.
24590 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
24591 STMT_VINFO_MIN_NEG_DIST.
24592 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
24593 made for negative dependence distances still hold.
24595 2014-02-21 Richard Biener <rguenther@suse.de>
24597 PR middle-end/60291
24598 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
24599 DECL_INITIAL for globals not in the current function context.
24601 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24603 PR tree-optimization/56490
24604 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
24605 * tree-ssa-uninit.c: Include params.h.
24606 (compute_control_dep_chain): Add num_calls argument, return false
24607 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
24608 num_calls to recursive call.
24609 (find_predicates): Change dep_chain into normal array,
24610 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
24611 variable and adjust compute_control_dep_chain caller.
24612 (find_def_preds): Likewise.
24614 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
24616 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
24617 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
24619 2014-02-21 Nick Clifton <nickc@redhat.com>
24621 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
24622 (pushhi1): Likewise.
24623 (popqi1): Add mode to pre_dec.
24624 (pophi1): Likewise.
24626 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24628 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
24629 mode for mask of V8SFmode permutation.
24631 2014-02-20 Richard Henderson <rth@redhat.com>
24634 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
24635 a new pseudo for OLDVAL.
24637 2014-02-20 Jakub Jelinek <jakub@redhat.com>
24640 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
24641 gen_reg_rtx if d->testing_p.
24642 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
24643 if d->testing_p and we will certainly return true.
24644 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
24647 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
24649 * emit-rtl.c (gen_reg_rtx): Assert that
24650 crtl->emit.regno_pointer_align_length is non-zero.
24652 2014-02-20 Richard Henderson <rth@redhat.com>
24655 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
24656 on failure the store back into EXPECT.
24658 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
24659 Sandra Loosemore <sandra@codesourcery.com>
24661 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
24662 * config/nios2/nios2.c (nios2_function_profiler): Add
24663 -fPIC (flag_pic == 2) support.
24664 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
24665 (nios2_large_offset_p): New function.
24666 (nios2_unspec_reloc_p): Move up position, update to use
24667 nios2_large_offset_p.
24668 (nios2_unspec_address): Remove function.
24669 (nios2_unspec_offset): New function.
24670 (nios2_large_got_address): New function.
24671 (nios2_got_address): Add large offset support.
24672 (nios2_legitimize_tls_address): Update usage of removed and new
24674 (nios2_symbol_binds_local_p): New function.
24675 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
24676 (nios2_legitimize_address): Update to use nios2_large_offset_p.
24677 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
24678 (nios2_print_operand): Merge H/L processing, add hiadj/lo
24679 processing for (const (unspec ...)).
24680 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
24682 2014-02-20 Richard Biener <rguenther@suse.de>
24684 * tree-cfg.c (replace_uses_by): Mark altered BBs before
24685 doing the substitution.
24686 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
24688 2014-02-20 Martin Jambor <mjambor@suse.cz>
24691 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
24692 info when checking whether lattices are bottom.
24694 2014-02-20 Richard Biener <rguenther@suse.de>
24696 PR middle-end/60221
24697 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
24700 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
24703 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
24704 parameter specifying the scaling.
24705 (inline_call): Update.
24706 (want_inline_recursively): Guard division by zero.
24707 (recursive_inlining): Update.
24708 * ipa-inline.h (clone_inlined_nodes): Update.
24710 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24713 * config/i386/i386.c (classify_argument): Pass structures of size
24714 64 bytes or less in register.
24716 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24717 Kirill Yukhin <kirill.yukhin@intel.com>
24719 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
24720 (_mm_rcp28_round_ss): Ditto.
24721 (_mm_rsqrt28_round_sd): Ditto.
24722 (_mm_rsqrt28_round_ss): Ditto.
24723 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
24724 (_mm_rcp14_round_ss): Ditto.
24725 (_mm_rsqrt14_round_sd): Ditto.
24726 (_mm_rsqrt14_round_ss): Ditto.
24727 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
24728 the first input operand, get rid of match_dup.
24729 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
24731 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24733 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
24734 operand as the first input operand, set type attribute.
24735 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24736 Set type attribute.
24737 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
24738 operand as the first input operand, set type attribute.
24740 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24742 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
24745 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
24748 * config/i386/i386.c (construct_container): Remove TFmode check
24749 for X86_64_INTEGER_CLASS.
24751 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
24754 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
24755 only when -Wpsabi is enabled.
24757 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
24760 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
24761 passing arrays in registers are the same as for structs, so remove the
24762 special case for them.
24764 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
24766 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
24767 destination type, extract only the valid bits if the source type is not
24768 integral and has a different mode.
24770 2014-02-19 Richard Biener <rguenther@suse.de>
24773 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
24776 2014-02-19 Richard Biener <rguenther@suse.de>
24779 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
24780 (ipa_modify_call_arguments): Emit an argument load explicitely and
24781 preserve virtual SSA form there and for the replacement call.
24782 Do not update SSA form nor free dominance info.
24784 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24786 * ipa.c (function_and_variable_visibility): Also clear WEAK
24787 flag when disolving COMDAT_GROUP.
24789 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24791 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
24792 * ipa-prop.c (ipa_set_jf_known_type): Return early when
24793 not devirtualizing.
24794 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
24795 do more sanity checks.
24796 (detect_type_change): Return true when giving up early.
24797 (compute_complex_assign_jump_func): Fix type parameter of
24798 ipa_set_ancestor_jf.
24799 (compute_complex_ancestor_jump_func): Likewise.
24800 (update_jump_functions_after_inlining): Fix updating of
24802 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
24804 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24806 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
24807 inline clones when edge disappears.
24809 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24812 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
24813 Split 64-bit moves into 2 patterns. Do not allow the use of
24814 direct move for TDmode in little endian, since the decimal value
24815 has little endian bytes within a word, but the 64-bit pieces are
24816 ordered in a big endian fashion, and normal subreg's of TDmode are
24818 (mov<mode>_64bit_dm): Likewise.
24819 (movtd_64bit_nodm): Likewise.
24821 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
24823 PR tree-optimization/60174
24824 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
24825 statement of an SSA_NAME that occurs in an abnormal PHI node.
24827 2014-02-18 Jakub Jelinek <jakub@redhat.com>
24830 * final.c (SEEN_BB): Remove.
24831 (SEEN_NOTE, SEEN_EMITTED): Renumber.
24832 (final_scan_insn): Don't force_source_line on second
24833 NOTE_INSN_BASIC_BLOCK.
24835 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
24838 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
24839 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
24840 (type_natural_mode): Warn ABI change when %zmm register is not
24841 available for AVX512F vector value passing.
24843 2014-02-18 Kai Tietz <ktietz@redhat.com>
24846 * config/i386/i386.c (ix86_expand_prologue): Use value in
24847 rax register as displacement when restoring %r10 or %rax.
24848 Fix wrong offset when restoring both registers.
24850 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
24852 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
24853 assertion with conditional return.
24855 2014-02-18 Jakub Jelinek <jakub@redhat.com>
24856 Uros Bizjak <ubizjak@gmail.com>
24859 * config/i386/driver-i386.c (host_detect_local_cpu): If
24860 YMM state is not saved by the OS, also clear has_f16c. Move
24861 CPUID 0x80000001 handling before YMM state saving checking.
24863 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
24865 PR rtl-optimization/58960
24866 * haifa-sched.c (alloc_global_sched_pressure_data): New,
24867 factored out from ...
24868 (sched_init): ... here.
24869 (free_global_sched_pressure_data): New, factored out from ...
24870 (sched_finish): ... here.
24871 * sched-int.h (free_global_sched_pressure_data): Declare.
24872 * sched-rgn.c (nr_regions_initial): New static global.
24873 (haifa_find_rgns): Initialize it.
24874 (schedule_region): Disable sched-pressure for the newly
24877 2014-02-17 Richard Biener <rguenther@suse.de>
24879 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
24880 release SSA defs of pattern stmts.
24882 2014-02-17 Richard Biener <rguenther@suse.de>
24884 * tree-inline.c (expand_call_inline): Release the virtual
24885 operand defined by the call we are about to inline.
24887 2014-02-17 Richard Biener <rguenther@suse.de>
24889 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
24891 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
24892 Ilya Tocar <ilya.tocar@intel.com>
24894 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
24895 arguments order in builtin.
24896 (_mm512_permutexvar_epi64): Ditto.
24897 (_mm512_mask_permutexvar_epi64): Ditto
24898 (_mm512_maskz_permutexvar_epi32): Ditto
24899 (_mm512_permutexvar_epi32): Ditto
24900 (_mm512_mask_permutexvar_epi32): Ditto
24902 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24904 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
24905 (p8_vmrgow): Likewise.
24907 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24909 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
24912 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24915 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
24916 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
24917 into 64-bit and 32-bit moves. On 64-bit moves, add support for
24918 using direct move instructions on ISA 2.07. Also adjust
24919 instruction length for 64-bit.
24920 (mov<mode>_64bit, TFmode/TDmode): Likewise.
24921 (mov<mode>_32bit, TFmode/TDmode): Likewise.
24923 2014-02-15 Alan Modra <amodra@gmail.com>
24927 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24928 find_replacement on parts of insn rtl that might be reloaded.
24930 2014-02-15 Richard Biener <rguenther@suse.de>
24932 PR tree-optimization/60183
24933 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
24934 (tree_ssa_phiprop): Calculate and free post-dominators.
24936 2014-02-14 Jeff Law <law@redhat.com>
24938 PR rtl-optimization/60131
24939 * ree.c (get_extended_src_reg): New function.
24940 (combine_reaching_defs): Use it rather than assuming location of REG.
24941 (find_and_remove_re): Verify first operand of extension is
24942 a REG before adding the insns to the copy list.
24944 2014-02-14 Roland McGrath <mcgrathr@google.com>
24946 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
24947 * configure: Regenerated.
24948 * config.in: Regenerated.
24949 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
24950 instead of ASM_SHORT.
24952 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
24953 Richard Earnshaw <rearnsha@arm.com>
24955 PR rtl-optimization/59535
24956 * lra-constraints.c (process_alt_operands): Encourage alternative
24957 when unassigned pseudo class is superset of the alternative class.
24958 (inherit_reload_reg): Don't inherit when optimizing for code size.
24959 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
24960 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
24961 modes not less than 4 for Thumb1.
24963 2014-02-14 Kyle McMartin <kyle@redhat.com>
24966 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
24968 2014-02-14 Richard Biener <rguenther@suse.de>
24970 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
24971 (get_frame_arg): Drop the assert with langhook types_compatible_p.
24972 Do not strip INDIRECT_REFs.
24974 2014-02-14 Richard Biener <rguenther@suse.de>
24977 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
24978 DECL_FUNCTION_SPECIFIC_TARGET.
24979 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
24980 * tree-streamer-out.c (pack_ts_target_option): Remove.
24981 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
24982 (write_ts_function_decl_tree_pointers): Do not stream
24983 DECL_FUNCTION_SPECIFIC_TARGET.
24984 * tree-streamer-in.c (unpack_ts_target_option): Remove.
24985 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
24986 (lto_input_ts_function_decl_tree_pointers): Do not stream
24987 DECL_FUNCTION_SPECIFIC_TARGET.
24989 2014-02-14 Jakub Jelinek <jakub@redhat.com>
24991 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
24992 (get_initial_def_for_induction, vectorizable_induction): Ignore
24993 debug stmts when looking for exit_phi.
24994 (vectorizable_live_operation): Fix up condition.
24996 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24998 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
24999 nreverse() because it changes the content of original tree list.
25001 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25003 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25004 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25006 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
25008 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25009 GNU coding standards.
25011 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25014 * dwarf2out.c (gen_subprogram_die): Don't call
25015 add_calling_convention_attribute if subr_die is old_die.
25017 2014-02-13 Sharad Singhai <singhai@google.com>
25019 * doc/optinfo.texi: Fix order of nodes.
25021 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
25023 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25024 operands[2], not operands[3].
25026 2014-02-13 Richard Biener <rguenther@suse.de>
25029 * doc/install.texi (ISL): Update recommended version to 0.12.2,
25030 mention the possibility of an in-tree build.
25031 (CLooG): Update recommended version to 0.18.1, mention the
25032 possibility of an in-tree build and clarify that the ISL
25033 bundled with CLooG does not work.
25035 2014-02-13 Jakub Jelinek <jakub@redhat.com>
25038 * expr.c (compress_float_constant): If x is a hard register,
25039 extend into a pseudo and then move to x.
25041 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
25043 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25044 caused by bad second argument to warning_at() with -mhotpatch and
25045 nested functions (e.g. with gfortran).
25047 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
25049 * opts.c (option_name): Remove "enabled by default" rider.
25051 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
25053 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25055 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
25056 Uros Bizjak <ubizjak@gmail.com>
25059 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25060 * configure: Regenerated.
25062 2014-02-12 Richard Biener <rguenther@suse.de>
25064 * vec.c (vec_prefix::calculate_allocation): Move as
25065 inline variant to vec.h.
25066 (vec_prefix::calculate_allocation_1): New out-of-line version.
25067 * vec.h (vec_prefix::calculate_allocation_1): Declare.
25068 (vec_prefix::m_has_auto_buf): Rename to ...
25069 (vec_prefix::m_using_auto_storage): ... this.
25070 (vec_prefix::calculate_allocation): Inline the easy cases
25071 and dispatch to calculate_allocation_1 which doesn't need the
25073 (va_heap::reserve): Use gcc_checking_assert.
25074 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25075 m_using_auto_storage.
25076 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25078 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25079 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25080 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25082 2014-02-12 Richard Biener <rguenther@suse.de>
25084 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25085 when we found a dependence.
25087 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
25089 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25091 (maybe_fold_stmt): ... into this new function.
25092 * omp-low.c (lower_omp): Update comment.
25094 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25097 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25100 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
25102 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25103 identifiers in comments.
25104 (cortexa53_extra_costs): Likewise.
25105 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25106 (cortexa7_extra_costs): Likewise.
25107 (cortexa12_extra_costs): Likewise.
25108 (cortexa15_extra_costs): Likewise.
25109 (v7m_extra_costs): Likewise.
25111 2014-02-12 Richard Biener <rguenther@suse.de>
25113 PR middle-end/60092
25114 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25115 of posix_memalign being successful.
25116 (lower_stmt): Restrict lowering of posix_memalign to when
25117 -ftree-bit-ccp is enabled.
25119 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25121 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25123 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25125 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
25127 PR rtl-optimization/60116
25128 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25129 other_insn once the combination has been validated.
25131 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
25134 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25136 * ipa-devirt.c: Include demangle.h
25137 (odr_violation_reported): New static variable.
25138 (add_type_duplicate): Update odr_violations.
25139 (maybe_record_node): Add completep parameter; update it.
25140 (record_target_from_binfo): Add COMPLETEP parameter;
25141 update it as needed.
25142 (possible_polymorphic_call_targets_1): Likewise.
25143 (struct polymorphic_call_target_d): Add nonconstruction_targets;
25144 rename FINAL to COMPLETE.
25145 (record_targets_from_bases): Sanity check we found the binfo;
25146 fix COMPLETEP updating.
25147 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25148 parameter, fix computing of COMPLETEP.
25149 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25150 at LTO time do demangling.
25151 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25152 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25154 (gimple_get_virt_method_for_binfo): Likewise.
25155 * gimple-fold.h (gimple_get_virt_method_for_binfo,
25156 gimple_get_virt_method_for_vtable): Update prototypes.
25158 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
25161 * genautomata.c (add_presence_absence): Fix typo with
25162 {final_}presence_list.
25164 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25167 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25168 for VSX/Altivec vectors that land in GPR registers.
25170 2014-02-11 Richard Henderson <rth@redhat.com>
25171 Jakub Jelinek <jakub@redhat.com>
25174 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25175 around drhs if type conversion to lacc->type is not useless.
25177 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25179 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25181 (cortex-a57.cortex-a53): Likewise.
25182 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25184 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25186 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25189 2014-02-11 Renlin Li <Renlin.Li@arm.com>
25191 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25192 add_options_for_arm_vfp3.
25194 2014-02-11 Jeff Law <law@redhat.com>
25196 PR middle-end/54041
25197 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25198 object with an undesirable mode.
25200 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25203 * config/i386/sol2-9.h: New file.
25204 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25205 *-*-solaris2.9*): Use it.
25207 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25209 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25210 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25212 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
25214 * config/microblaze/microblaze.c: Extend mcpu version format
25216 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
25218 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25220 2014-02-10 Richard Henderson <rth@redhat.com>
25223 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25224 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25225 ms-abi vs -mno-accumulate-outgoing-args.
25226 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25227 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25230 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
25232 PR middle-end/60080
25233 * cfgexpand.c (expand_asm_operands): Attach source location to
25234 ASM_INPUT rtx objects.
25235 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25237 2014-02-10 Nick Clifton <nickc@redhat.com>
25239 * config/mn10300/mn10300.c (popcount): New function.
25240 (mn10300_expand_prologue): Include saved registers in stack usage
25243 2014-02-10 Jeff Law <law@redhat.com>
25245 PR middle-end/52306
25246 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25247 when changing the SET_DEST of a prior insn to avoid an input reload.
25249 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25251 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25252 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25253 -mcall-openbsd, or -mcall-linux.
25254 (CC1_ENDIAN_BIG_SPEC): Remove.
25255 (CC1_ENDIAN_LITTLE_SPEC): Remove.
25256 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25257 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25258 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25259 and %cc1_endian_default.
25260 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25262 2014-02-10 Richard Biener <rguenther@suse.de>
25264 PR tree-optimization/60115
25265 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25266 MEM_REF handling. Properly verify that the accesses are not
25267 out of the objects bound.
25269 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25271 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25274 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
25276 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25277 proper constants and fix formatting.
25278 (possible_polymorphic_call_targets): Fix formatting.
25280 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
25281 Ilya Tocar <ilya.tocar@intel.com>
25283 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25284 (_mm512_loadu_epi32): Renamed into...
25285 (_mm512_loadu_si512): This.
25286 (_mm512_storeu_epi32): Renamed into...
25287 (_mm512_storeu_si512): This.
25288 (_mm512_maskz_ceil_ps): Removed.
25289 (_mm512_maskz_ceil_pd): Ditto.
25290 (_mm512_maskz_floor_ps): Ditto.
25291 (_mm512_maskz_floor_pd): Ditto.
25292 (_mm512_floor_round_ps): Ditto.
25293 (_mm512_floor_round_pd): Ditto.
25294 (_mm512_ceil_round_ps): Ditto.
25295 (_mm512_ceil_round_pd): Ditto.
25296 (_mm512_mask_floor_round_ps): Ditto.
25297 (_mm512_mask_floor_round_pd): Ditto.
25298 (_mm512_mask_ceil_round_ps): Ditto.
25299 (_mm512_mask_ceil_round_pd): Ditto.
25300 (_mm512_maskz_floor_round_ps): Ditto.
25301 (_mm512_maskz_floor_round_pd): Ditto.
25302 (_mm512_maskz_ceil_round_ps): Ditto.
25303 (_mm512_maskz_ceil_round_pd): Ditto.
25304 (_mm512_expand_pd): Ditto.
25305 (_mm512_expand_ps): Ditto.
25306 * config/i386/i386.c (ix86_builtins): Remove
25307 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25308 (bdesc_args): Ditto.
25309 * config/i386/predicates.md (const1256_operand): New.
25310 (const_1_to_2_operand): Ditto.
25311 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25312 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25313 (*avx512pf_gatherpf<mode>sf): Ditto.
25314 (avx512pf_gatherpf<mode>df): Ditto.
25315 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25316 (*avx512pf_gatherpf<mode>df): Ditto.
25317 (avx512pf_scatterpf<mode>sf): Ditto.
25318 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25319 (*avx512pf_scatterpf<mode>sf): Ditto.
25320 (avx512pf_scatterpf<mode>df): Ditto.
25321 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25322 (*avx512pf_scatterpf<mode>df): Ditto.
25323 (avx512f_expand<mode>): Removed.
25324 (<shift_insn><mode>3<mask_name>): Change predicate type.
25326 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25328 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25329 not at the end of datarefs vector use ordered_remove to avoid
25330 reordering datarefs vector.
25333 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25334 mark local addressable non-static vars as GOVD_PRIVATE
25335 instead of GOVD_LOCAL.
25336 * omp-low.c (lower_omp_for): Move gimple_bind_vars
25337 and BLOCK_VARS of gimple_bind_block to new_stmt rather
25340 PR middle-end/60092
25341 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25342 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25343 assume_aligned or alloc_align attributes.
25344 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25345 arguments. Handle also assume_aligned and alloc_align attributes.
25346 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
25347 calls to functions with assume_aligned or alloc_align attributes.
25348 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25350 2014-02-08 Terry Guo <terry.guo@arm.com>
25352 * doc/invoke.texi: Document ARM -march=armv7e-m.
25354 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25356 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25357 flag on __cilkrts_rethrow builtin.
25360 * ipa-cp.c (determine_versionability): Fail at -O0
25361 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25362 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25365 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25368 * tree-inline.c (copy_forbidden): Fail for
25369 __attribute__((optimize (0))) functions.
25371 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25373 * varpool.c: Include pointer-set.h.
25374 (varpool_remove_unreferenced_decls): Variables in other partitions
25375 will not be output; be however careful to not lose information
25376 about partitioning.
25378 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25380 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25381 lookup in the vtable constructor.
25383 2014-02-07 Jeff Law <law@redhat.com>
25386 * config/m68k/m68k.md (ashldi_extsi): Turn into a
25387 define_insn_and_split.
25389 * ipa-inline.c (inline_small_functions): Fix typos.
25391 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25393 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25394 (s390_can_use_return_insn): Declare.
25395 * config/s390/s390.h (EPILOGUE_USES): Define.
25396 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25398 (s390_chunkify_start): Handle return JUMP_LABELs.
25399 (s390_early_mach): Emit a main_pool instruction on the entry edge.
25400 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25401 (s390_can_use_return_insn): New functions.
25402 (s390_fix_long_loop_prediction): Handle conditional returns.
25403 (TARGET_SET_UP_BY_PROLOGUE): Define.
25404 * config/s390/s390.md (ANY_RETURN): New code iterator.
25405 (*creturn, *csimple_return, return, simple_return): New patterns.
25407 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25409 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25410 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
25411 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
25412 REG_CFA_RESTORE list when deciding not to restore a register.
25414 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25416 * config/s390/s390.c: Include tree-pass.h and context.h.
25417 (s390_early_mach): New function, split out from...
25418 (s390_emit_prologue): ...here.
25419 (pass_data_s390_early_mach): New pass structure.
25420 (pass_s390_early_mach): New class.
25421 (s390_option_override): Create and register early_mach pass.
25422 Move to end of file.
25424 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25426 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25427 to match for the exit block.
25429 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25431 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25432 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25433 Reject misaligned operands.
25435 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25437 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25439 2014-02-07 Richard Biener <rguenther@suse.de>
25441 PR middle-end/60092
25442 * gimple-low.c (lower_builtin_posix_memalign): New function.
25443 (lower_stmt): Call it to lower posix_memalign in a way
25444 to make alignment info accessible.
25446 2014-02-07 Jakub Jelinek <jakub@redhat.com>
25449 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25450 __builtin_setjmp_receiver.
25452 2014-02-07 Richard Biener <rguenther@suse.de>
25454 PR middle-end/60092
25455 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25456 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25457 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25458 Handle BUILT_IN_POSIX_MEMALIGN.
25459 (find_func_clobbers): Likewise.
25460 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25461 (call_may_clobber_ref_p_1): Likewise.
25463 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25466 * ipa-devirt.c (record_target_from_binfo): Remove overactive
25469 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25472 * lto-cgraph.c (lto_output_node): Use
25473 symtab_get_symbol_partitioning_class.
25474 (lto_output_varpool_node): likewise.
25475 (symtab_get_symbol_partitioning_class): Move here from
25476 lto/lto-partition.c
25477 * cgraph.h (symbol_partitioning_class): Likewise.
25478 (symtab_get_symbol_partitioning_class): Declare.
25480 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25482 * ggc.h (ggc_internal_cleared_alloc): New macro.
25483 * vec.h (vec_safe_copy): Handle memory stats.
25484 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25485 * target-globals.c (save_target_globals): Likewise.
25487 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25490 * expr.c (emit_move_resolve_push): Export; be bit more selective
25491 on when to clear alias set.
25492 * expr.h (emit_move_resolve_push): Declare.
25493 * function.h (struct function): Add tail_call_marked.
25494 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25495 * config/i386/i386-protos.h (ix86_expand_push): Remove.
25496 * config/i386/i386.md (TImode move expander): De not call
25498 (FP push expanders): Preserve memory attributes.
25499 * config/i386/sse.md (push<mode>1): Remove.
25500 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25501 (ix86_expand_push): Remove.
25502 * config/i386/mmx.md (push<mode>1): Remove.
25504 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25506 PR rtl-optimization/60030
25507 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25508 lopart with paradoxical subreg before shifting it up by hprec.
25510 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25512 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25513 Remove extra newline at end of file.
25514 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25515 (arm_issue_rate): Handle cortexa57.
25516 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25517 (cortex-a57.cortex-a53): Likewise.
25519 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25522 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
25523 don't record in REG_FRAME_RELATED_EXPR registers not set in that
25525 (arm_expand_prologue): Adjust all callers.
25526 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
25527 info, registers also at the lowest numbered registers side. Use
25528 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
25532 * var-tracking.c (adjust_mems): Before adding a SET to
25533 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
25535 2014-02-06 Alan Modra <amodra@gmail.com>
25538 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
25539 change SDmode to DDmode when lra_in_progress.
25541 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25543 PR middle-end/59150
25544 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
25545 free_data_ref on the dr first, and before goto again also set dr
25546 to the next dr. For simd_lane_access, free old datarefs[i] before
25547 overwriting it. For get_vectype_for_scalar_type failure, don't
25548 free_data_ref if simd_lane_access.
25550 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
25553 * tree.h (opts_for_fn): New inline function.
25554 (opt_for_fn): Define.
25555 * config/i386/i386.c (ix86_function_regparm): Use
25556 opt_for_fn (decl, optimize) instead of optimize.
25558 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
25560 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
25561 for SYMBOL_REF in large memory model.
25563 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25565 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
25566 and crypto support.
25567 (cortex-a57): Likewise.
25568 (cortex-a57.cortex-a53): Likewise.
25570 2014-02-06 Yury Gribov <y.gribov@samsung.com>
25571 Kugan Vivekanandarajah <kuganv@linaro.org>
25573 * config/arm/arm.c (arm_vector_alignment_reachable): Check
25575 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
25577 2014-02-06 Richard Biener <rguenther@suse.de>
25579 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
25580 set_loop_copy and initialize_original_copy_tables.
25582 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
25584 * config/aarch64/aarch64-simd.md
25585 (aarch64_ashr_simddi): Change QI to SI.
25587 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25588 Jakub Jelinek <jakub@redhat.com>
25590 PR middle-end/60013
25591 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
25594 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25596 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
25597 CODE_FOR_altivec_vpku[hw]um to
25598 CODE_FOR_altivec_vpku[hw]um_direct.
25599 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
25600 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
25601 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
25602 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
25604 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25606 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
25607 generation for -maltivec=be.
25608 (altivec_vsumsws): Simplify redundant test.
25610 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25612 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
25613 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
25614 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
25615 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
25616 gen_altivec_vpkuwum.
25617 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
25619 (altivec_vpks<VI_char>ss): Likewise.
25620 (altivec_vpks<VI_char>us): Likewise.
25621 (altivec_vpku<VI_char>us): Likewise.
25622 (altivec_vpku<VI_char>um): Likewise.
25623 (altivec_vpku<VI_char>um_direct): New (copy of
25624 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
25626 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
25627 target is little endian and -maltivec=be is not specified.
25628 (*altivec_vupkhs<VU_char>_direct): New (copy of
25629 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
25630 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
25631 target is little endian and -maltivec=be is not specified.
25632 (*altivec_vupkls<VU_char>_direct): New (copy of
25633 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
25634 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
25635 little endian and -maltivec=be is not specified.
25636 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
25637 little endian and -maltivec=be is not specified.
25639 2014-02-05 Richard Henderson <rth@redhat.com>
25642 * combine-stack-adj.c: Revert r206943.
25643 * sched-int.h (struct deps_desc): Add last_args_size.
25644 * sched-deps.c (init_deps): Initialize it.
25645 (sched_analyze_insn): Add OUTPUT dependencies between insns that
25646 contain REG_ARGS_SIZE notes.
25648 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25650 * lto-cgraph.c (asm_nodes_output): Make global.
25651 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
25652 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
25653 (driver_handle_option): Handle OPT_fwpa.
25655 2014-02-05 Jakub Jelinek <jakub@redhat.com>
25658 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
25659 a comment typo and formatting issue. If odr_hash hasn't been
25660 created, return vNULL and set *completep to false.
25662 PR middle-end/57499
25663 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
25664 bb with no successors.
25666 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
25669 * doc/invoke.texi (-march): Clarify documentation for ARM.
25670 (-mtune): Likewise.
25673 2014-02-05 Richard Biener <rguenther@suse.de>
25675 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
25676 when not vectorizing because of too many alias checks.
25677 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25678 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
25680 2014-02-05 Nick Clifton <nickc@redhat.com>
25682 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
25683 accept extended registers in any mode when compiling for the MN10300.
25685 2014-02-05 Yury Gribov <y.gribov@samsung.com>
25687 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
25688 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
25689 sanitization attributes.
25690 (can_inline_edge_p): Likewise.
25691 (sanitize_attrs_match_for_inline_p): New function.
25693 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25695 * ipa-prop.c (detect_type_change): Shor circuit testing of
25696 type changes on THIS pointer.
25698 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
25701 * config/pa/pa.c (legitimize_tls_address): Return original address
25702 if not passed a SYMBOL_REF rtx.
25703 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
25705 (pa_emit_move_sequence): Simplify TLS source operands.
25706 (pa_legitimate_constant_p): Reject all TLS constants.
25707 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
25708 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
25710 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25712 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
25713 groups when we know they are controlled by LTO.
25714 * varasm.c (default_binds_local_p_1): If object is in other partition,
25715 it will be resolved locally.
25717 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25719 * config/host-linux.c (linux_gt_pch_use_address): Don't
25720 use SSIZE_MAX because it is not always defined.
25722 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
25725 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
25726 threshold for pseudo splitting.
25727 (update_ebb_live_info): Process call argument hard registers and
25728 hard registers from insn definition too.
25729 (max_small_class_regs_num): New constant.
25730 (inherit_in_ebb): Update live hard regs through EBBs. Update
25731 reloads_num only for small register classes. Don't split for
25734 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
25737 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
25740 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25742 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
25743 visibility is safe.
25745 2014-02-04 Marek Polacek <polacek@redhat.com>
25747 * gdbinit.in (pel): Define.
25749 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25751 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
25754 2014-02-04 Richard Biener <rguenther@suse.de>
25757 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
25758 in function context local.
25759 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
25760 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
25761 similar to LTO_imported_decl_ref.
25763 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25765 PR tree-optimization/60002
25766 * cgraphclones.c (build_function_decl_skip_args): Clear
25767 DECL_LANG_SPECIFIC.
25769 PR tree-optimization/60023
25770 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
25771 false to gsi_replace.
25772 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
25773 has been in some EH region and vec_stmt could throw, add
25774 vec_stmt into the same EH region.
25775 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
25776 has no lhs, ignore it.
25777 * internal-fn.c (expand_MASK_LOAD): Likewise.
25780 * tree-inline.c (copy_forbidden): Fail for
25781 __attribute__((optimize (0))) functions.
25784 * omp-low.c (simd_clone_struct_copy): If from->inbranch
25785 is set, copy one less argument.
25786 (expand_simd_clones): Don't subtract clone_info->inbranch
25787 from simd_clone_struct_alloc argument.
25789 PR rtl-optimization/57915
25790 * recog.c (simplify_while_replacing): If all unary/binary/relational
25791 operation arguments are constant, attempt to simplify those.
25793 PR middle-end/59261
25794 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
25795 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
25797 2014-02-04 Richard Biener <rguenther@suse.de>
25799 PR tree-optimization/60012
25800 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
25801 TBAA disambiguation to all DDRs.
25803 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25806 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
25807 (LINK_SPEC): Use it for -shared, -shared-libgcc.
25809 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25812 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
25814 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25816 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
25817 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
25819 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25822 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
25823 to figure out targets of polymorphic calls with known decl.
25824 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25825 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
25826 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
25827 (get_polymorphic_call_info): ... here.
25828 (get_polymorphic_call_info_from_invariant): New function.
25830 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25832 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
25833 lookup via vtable pointer; check for type consistency
25834 and turn inconsitent facts into UNREACHABLE.
25835 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25836 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
25837 type inconsistent querries; return UNREACHABLE instead.
25839 2014-02-03 Richard Henderson <rth@twiddle.net>
25842 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
25843 already processed this node.
25844 (normalize_one_pred_1): Pass along mark_set.
25845 (normalize_one_pred): Create and destroy a pointer_set_t.
25846 (normalize_one_pred_chain): Likewise.
25848 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
25850 PR gcov-profile/58602
25851 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
25853 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25856 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
25857 -fno-devirtualize; try to devirtualize by the knowledge of
25858 virtual table pointer given by aggregate propagation.
25859 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25860 (ipa_print_node_jump_functions): Dump also offset that
25861 is relevant for polymorphic calls.
25862 (determine_known_aggregate_parts): Add arg_type parameter; use it
25863 instead of determining the type from pointer type.
25864 (ipa_compute_jump_functions_for_edge): Update call of
25865 determine_known_aggregate_parts.
25866 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
25867 (gimple_get_virt_method_for_binfo): ... here; simplify using
25868 vtable_pointer_value_to_vtable.
25869 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
25870 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
25871 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
25872 (vtable_pointer_value_to_vtable): Break out from ...; handle also
25874 (vtable_pointer_value_to_binfo): ... here.
25875 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
25877 2014-02-03 Teresa Johnson <tejohnson@google.com>
25879 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
25880 redef of outer loop index variable.
25882 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
25886 * doc/extend.texi (Function Attributes): Typo.
25888 2014-02-03 Cong Hou <congh@google.com>
25890 PR tree-optimization/60000
25891 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
25892 if the vectorized statement is a store. A store statement can only
25893 appear at the end of pattern statements.
25895 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
25897 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
25898 (ix86_option_override_internal): Default long double to 64-bit for
25899 32-bit Bionic and to 128-bit for 64-bit Bionic.
25901 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
25902 TARGET_LONG_DOUBLE_128 is true.
25903 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25905 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
25906 (mlong-double-64): Negate -mlong-double-128.
25907 (mlong-double-128): New option.
25909 * config/i386/i386-c.c (ix86_target_macros): Define
25910 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
25912 * doc/invoke.texi: Document -mlong-double-128.
25914 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
25916 PR rtl-optimization/60024
25917 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
25919 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
25921 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
25923 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
25925 PR rtl-optimization/57662
25926 * sel-sched.c (code_motion_path_driver): Do not mark already not
25927 existing blocks in the visiting bitmap.
25929 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
25931 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
25932 on the insn being emitted.
25934 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
25935 Will Deacon <will.deacon@arm.com>
25937 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
25939 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25941 * config/arm/arm-tables.opt: Regenerate.
25943 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25945 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
25946 for vector types other than V16QImode.
25947 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
25948 define_expand, and call altivec_expand_vec_perm_le when producing
25949 code with little endian element order.
25950 (*altivec_vperm_<mode>_internal): New insn having previous
25951 behavior of altivec_vperm_<mode>.
25952 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
25953 altivec_expand_vec_perm_le when producing code with little endian
25955 (*altivec_vperm_<mode>_uns_internal): New insn having previous
25956 behavior of altivec_vperm_<mode>_uns.
25958 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25960 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
25961 (altivec_vsumsws): Add handling for -maltivec=be with a little
25963 (altivec_vsumsws_direct): New.
25964 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
25965 gen_altivec_vsumsws.
25967 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25969 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
25970 vtable_pointer_value_to_binfo): New functions.
25971 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
25972 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
25974 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
25976 * config/nios2/nios2.md (load_got_register): Initialize GOT
25977 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
25978 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
25980 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25982 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
25983 preserverd by passthrough, do not propagate the type.
25985 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25987 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
25988 (mips_atomic_assign_expand_fenv): New function.
25989 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25991 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25993 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
25994 (__builtin_mips_set_fcsr): Likewise.
25995 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
25996 MIPS_USI_FTYPE_VOID.
25997 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
25998 (mips16_expand_set_fcsr): Likewise.
25999 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26000 (mips16_set_fcsr_stub): Likewise.
26001 (mips16_get_fcsr_one_only_stub): New class.
26002 (mips16_set_fcsr_one_only_stub): Likewise.
26003 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26004 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26005 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26006 (hard_float): New availability predicate.
26007 (mips_builtins): Add get_fcsr and set_fcsr.
26008 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26009 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26010 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26011 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26012 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26015 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
26017 * config/mips/mips.c (mips_one_only_stub): New class.
26018 (mips_need_mips16_rdhwr_p): Replace with...
26019 (mips16_rdhwr_stub): ...this new variable.
26020 (mips16_stub_call_address): New function.
26021 (mips16_rdhwr_one_only_stub): New class.
26022 (mips_expand_thread_pointer): Use mips16_stub_call_address.
26023 (mips_output_mips16_rdhwr): Delete.
26024 (mips_finish_stub): New function.
26025 (mips_code_end): Use it to handle rdhwr stubs.
26027 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
26030 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26031 when calculating size of integer atomic types.
26033 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
26035 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26037 2014-02-01 Jakub Jelinek <jakub@redhat.com>
26039 PR tree-optimization/60003
26040 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26041 * profile.c (branch_prob): Use gimple_call_builtin_p
26042 to check for BUILT_IN_SETJMP_RECEIVER.
26043 * tree-inline.c (copy_bb): Call notice_special_calls.
26045 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
26048 * lra-constraints.c (process_alt_operands): Update reload_sum only
26051 2014-01-31 Richard Henderson <rth@redhat.com>
26053 PR middle-end/60004
26054 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26055 until after else_eh is processed.
26057 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26059 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26060 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26061 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26062 in smmintrin.h, remove them.
26063 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26064 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26065 * config/i386/i386.md (ROUND_SAE): Fix value.
26066 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26067 (const48_operand): New.
26068 * config/i386/subst.md (round), (round_expand): Use
26069 const_4_or_8_to_11_operand.
26070 (round_saeonly), (round_saeonly_expand): Use const48_operand.
26072 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
26074 * config/i386/constraints.md (Yk): Swap meaning with k.
26075 * config/i386/i386.md (movhi_internal): Change Yk to k.
26076 (movqi_internal): Ditto.
26077 (*k<logic><mode>): Ditto.
26080 (kandn<mode>): Ditto.
26081 (*<code>hi_1): Ditto.
26082 (*<code>qi_1): Ditto.
26083 (kxnor<mode>): Ditto.
26084 (kortestzhi): Ditto.
26085 (kortestchi): Ditto.
26087 (*one_cmplhi2_1): Ditto.
26088 (*one_cmplqi2_1): Ditto.
26089 * config/i386/sse.md (): Change k to Yk.
26090 (avx512f_load<mode>_mask): Ditto.
26091 (avx512f_blendm<mode>): Ditto.
26092 (avx512f_store<mode>_mask): Ditto.
26093 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26094 (avx512f_storedqu<mode>_mask): Ditto.
26095 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26097 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26098 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26099 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26100 (avx512f_maskcmp<mode>3): Ditto.
26101 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26102 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26103 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26104 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26105 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26106 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26107 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26108 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26109 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26110 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26111 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26112 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26113 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26114 (vec_extract_lo_<mode>_maskm): Ditto.
26115 (vec_extract_hi_<mode>_maskm): Ditto.
26116 (avx512f_vternlog<mode>_mask): Ditto.
26117 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26118 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26119 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26120 (avx512f_<code>v8div16qi2_mask): Ditto.
26121 (avx512f_<code>v8div16qi2_mask_store): Ditto.
26122 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26123 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26124 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26125 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26126 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26127 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26128 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26129 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26130 (avx512cd_maskb_vec_dupv8di): Ditto.
26131 (avx512cd_maskw_vec_dupv16si): Ditto.
26132 (avx512f_vpermi2var<mode>3_maskz): Ditto.
26133 (avx512f_vpermi2var<mode>3_mask): Ditto.
26134 (avx512f_vpermi2var<mode>3_mask): Ditto.
26135 (avx512f_vpermt2var<mode>3_maskz): Ditto.
26136 (*avx512f_gathersi<mode>): Ditto.
26137 (*avx512f_gathersi<mode>_2): Ditto.
26138 (*avx512f_gatherdi<mode>): Ditto.
26139 (*avx512f_gatherdi<mode>_2): Ditto.
26140 (*avx512f_scattersi<mode>): Ditto.
26141 (*avx512f_scatterdi<mode>): Ditto.
26142 (avx512f_compress<mode>_mask): Ditto.
26143 (avx512f_compressstore<mode>_mask): Ditto.
26144 (avx512f_expand<mode>_mask): Ditto.
26145 * config/i386/subst.md (mask): Change k to Yk.
26146 (mask_scalar_merge): Ditto.
26149 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
26151 * doc/extend.texi (Vector Extensions): Document ?: in C++.
26153 2014-01-31 Richard Biener <rguenther@suse.de>
26155 PR middle-end/59990
26156 * builtins.c (fold_builtin_memory_op): Make sure to not
26157 use a floating-point mode or a boolean or enumeral type for
26158 the copy operation.
26160 2014-01-30 DJ Delorie <dj@redhat.com>
26162 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26163 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26164 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26165 whenever main() has an epilogue.
26167 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26169 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26170 unused variable "field".
26171 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26172 (vsx_mergeh_<mode>): Likewise.
26173 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26174 (altivec_vmrghh): Likewise.
26175 (altivec_vmrghw): Likewise.
26176 (altivec_vmrglb): Likewise.
26177 (altivec_vmrglh): Likewise.
26178 (altivec_vmrglw): Likewise.
26179 (altivec_vspltb): Add missing uses.
26180 (altivec_vsplth): Likewise.
26181 (altivec_vspltw): Likewise.
26182 (altivec_vspltsf): Likewise.
26184 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26187 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26188 frame related instructions.
26190 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
26192 PR rtl-optimization/59959
26193 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26194 any reload of register whose subreg is invalid.
26196 2014-01-30 Jakub Jelinek <jakub@redhat.com>
26198 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26199 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26200 Add missing return type - void.
26202 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26204 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26205 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26206 remove element index adjustment for endian (now handled in vsx.md
26208 (altivec_expand_vec_perm_const): Use
26209 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26210 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26211 (vsx_xxspltw_<mode>): Adjust element index for little endian.
26212 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26213 define_expand and a new define_insn *altivec_vspltb_internal;
26214 adjust for -maltivec=be on a little endian target.
26215 (altivec_vspltb_direct): New.
26216 (altivec_vsplth): Divide into a define_expand and a new
26217 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26218 little endian target.
26219 (altivec_vsplth_direct): New.
26220 (altivec_vspltw): Divide into a define_expand and a new
26221 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26222 little endian target.
26223 (altivec_vspltw_direct): New.
26224 (altivec_vspltsf): Divide into a define_expand and a new
26225 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26226 a little endian target.
26228 2014-01-30 Richard Biener <rguenther@suse.de>
26230 PR tree-optimization/59993
26231 * tree-ssa-forwprop.c (associate_pointerplus): Check we
26232 can propagate form the earlier stmt and avoid the transform
26233 when the intermediate result is needed.
26235 2014-01-30 Alangi Derick <alangiderick@gmail.com>
26237 * README.Portability: Fix typo.
26239 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
26241 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26242 comparison_operator with ordered_comparison_operator.
26244 2014-01-30 Nick Clifton <nickc@redhat.com>
26246 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26247 Rename to mn10300_store_multiple_regs.
26248 * config/mn10300/mn10300.c: Likewise.
26249 * config/mn10300/mn10300.md (store_movm): Fix typo: call
26250 store_multiple_regs.
26251 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26252 Call mn10300_store_multiple_regs.
26254 2014-01-30 Nick Clifton <nickc@redhat.com>
26255 DJ Delorie <dj@redhat.com>
26257 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26258 %fp 2 to keep registers after it properly word-aligned.
26259 (rl78_alloc_physical_registers_umul): Handle the case where both
26260 input operands are the same.
26262 2014-01-30 Richard Biener <rguenther@suse.de>
26264 PR tree-optimization/59903
26265 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26268 2014-01-30 Jason Merrill <jason@redhat.com>
26271 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26274 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26276 2014-01-30 Richard Biener <rguenther@suse.de>
26278 PR tree-optimization/59951
26279 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26281 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
26284 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26285 SFmode to DFmode case.
26287 2014-01-29 DJ Delorie <dj@redhat.com>
26289 * config/msp430/msp430.opt (-minrt): New.
26290 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26292 (ENDFILE_SPEC): Likewise.
26294 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
26296 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26297 (estimate_function_body_sizes): Use it.
26299 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
26302 * dwarf2out.c (is_cxx_auto): New.
26303 (is_base_type): Use it.
26304 (gen_type_die_with_usage): Likewise.
26306 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26308 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
26309 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26310 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26311 -maltivec=be with LE targets.
26312 (vsx_mergeh_<mode>): Likewise.
26313 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26314 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26315 (altivec_vmrghb): Replace with define_expand and new
26316 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26317 (altivec_vmrghb_direct): New define_insn.
26318 (altivec_vmrghh): Replace with define_expand and new
26319 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26320 (altivec_vmrghh_direct): New define_insn.
26321 (altivec_vmrghw): Replace with define_expand and new
26322 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26323 (altivec_vmrghw_direct): New define_insn.
26324 (*altivec_vmrghsf): Adjust for endianness.
26325 (altivec_vmrglb): Replace with define_expand and new
26326 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26327 (altivec_vmrglb_direct): New define_insn.
26328 (altivec_vmrglh): Replace with define_expand and new
26329 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26330 (altivec_vmrglh_direct): New define_insn.
26331 (altivec_vmrglw): Replace with define_expand and new
26332 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26333 (altivec_vmrglw_direct): New define_insn.
26334 (*altivec_vmrglsf): Adjust for endianness.
26335 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26336 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26337 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26338 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26339 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26340 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26341 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26342 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26344 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
26346 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26347 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26350 2014-01-29 Richard Biener <rguenther@suse.de>
26352 PR tree-optimization/58742
26353 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26354 associate_pointerplus_align.
26355 (associate_pointerplus_diff): New function.
26356 (associate_pointerplus): Likewise. Call associate_pointerplus_align
26357 and associate_pointerplus_diff.
26359 2014-01-29 Richard Biener <rguenther@suse.de>
26361 * lto-streamer.h (LTO_major_version): Bump to 3.
26362 (LTO_minor_version): Reset to 0.
26364 2014-01-29 Renlin Li <Renlin.Li@arm.com>
26366 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26367 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26368 (arm_file_start): Generate correct asm header for armv7ve.
26369 * config/arm/bpabi.h: Add multilib support for armv7ve.
26370 * config/arm/driver-arm.c: Change the architectures of cortex-a7
26371 and cortex-a15 to armv7ve.
26372 * config/arm/t-aprofile: Add multilib support for armv7ve.
26373 * doc/invoke.texi: Document -march=armv7ve.
26375 2014-01-29 Richard Biener <rguenther@suse.de>
26377 PR tree-optimization/58742
26378 * tree-ssa-forwprop.c (associate_plusminus): Return true
26379 if we changed sth, defer EH cleanup to ...
26380 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
26381 (simplify_mult): New function.
26383 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26385 PR middle-end/59917
26386 PR tree-optimization/59920
26387 * tree.c (build_common_builtin_nodes): Remove
26388 __builtin_setjmp_dispatcher initialization.
26389 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26390 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26391 instead of gsi_after_labels + manually skipping debug stmts.
26392 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26393 ignore bbs with IFN_ABNORMAL_DISPATCHER.
26394 * tree-inline.c (copy_edges_for_bb): Remove
26395 can_make_abnormal_goto argument, instead add abnormal_goto_dest
26396 argument. Ignore computed_goto_p stmts. Don't call
26397 make_abnormal_goto_edges. If a call might need abnormal edges
26398 for non-local gotos, see if it already has an edge to
26399 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26400 with true argument, don't do anything then, otherwise add
26401 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26402 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26404 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26405 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26406 (lower_stmt): Don't set data->calls_builtin_setjmp.
26407 (lower_builtin_setjmp): Adjust comment.
26408 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26409 * tree-cfg.c (found_computed_goto): Remove.
26410 (factor_computed_gotos): Remove.
26411 (make_goto_expr_edges): Return bool, true for computed gotos.
26412 Don't call make_abnormal_goto_edges.
26413 (build_gimple_cfg): Don't set found_computed_goto, don't call
26414 factor_computed_gotos.
26415 (computed_goto_p): No longer static.
26416 (make_blocks): Don't set found_computed_goto.
26417 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26418 (make_edges): If make_goto_expr_edges returns true, push bb
26419 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26420 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26421 vector. Record mapping between bbs and OpenMP regions if there
26422 are any, adjust make_gimple_omp_edges caller. Call
26423 handle_abnormal_edges.
26424 (make_abnormal_goto_edges): Remove.
26425 * tree-cfg.h (make_abnormal_goto_edges): Remove.
26426 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26427 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26428 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26429 * internal-fn.def (ABNORMAL_DISPATCHER): New.
26430 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26431 filling *region also set *region_idx to (*region)->entry->index.
26434 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26435 For REGs set ORIGINAL_REGNO.
26437 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
26439 * doc/md.texi: Mention that a target shouldn't implement
26440 vec_widen_(s|u)mul_even/odd pair if it is less efficient
26443 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26445 PR tree-optimization/59594
26446 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26447 a copy of the datarefs vector rather than the vector itself.
26449 2014-01-28 Jason Merrill <jason@redhat.com>
26452 * dwarf2out.c (auto_die): New static.
26453 (gen_type_die_with_usage): Handle C++1y 'auto'.
26454 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26457 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
26460 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26461 (SPEC_X32): Likewise.
26462 (SPEC_64): Likewise.
26463 * config/i386/i386.c (ix86_option_override_internal): Turn off
26464 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26466 (x86_file_start): Output .code16gcc for TARGET_16BIT.
26467 * config/i386/i386.h (TARGET_16BIT): New macro.
26468 (TARGET_16BIT_P): Likewise.
26469 * config/i386/i386.opt: Add m16.
26470 * doc/invoke.texi: Document -m16.
26472 2014-01-28 Jakub Jelinek <jakub@redhat.com>
26474 PR preprocessor/59935
26475 * input.c (location_get_source_line): Bail out on when line number
26476 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26478 2014-01-28 Richard Biener <rguenther@suse.de>
26480 PR tree-optimization/58742
26481 * tree-ssa-forwprop.c (associate_plusminus): Handle
26482 pointer subtraction of the form (T)(P + A) - (T)P.
26484 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26486 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26489 2014-01-28 Richard Biener <rguenther@suse.de>
26492 2014-01-28 Richard Biener <rguenther@suse.de>
26494 PR rtl-optimization/45364
26495 PR rtl-optimization/59890
26496 * var-tracking.c (local_get_addr_clear_given_value): Handle
26497 already cleared slot.
26498 (val_reset): Handle not allocated local_get_addr_cache.
26499 (vt_find_locations): Use post-order on the inverted CFG.
26501 2014-01-28 Richard Biener <rguenther@suse.de>
26503 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26505 2014-01-28 Richard Biener <rguenther@suse.de>
26507 PR rtl-optimization/45364
26508 PR rtl-optimization/59890
26509 * var-tracking.c (local_get_addr_clear_given_value): Handle
26510 already cleared slot.
26511 (val_reset): Handle not allocated local_get_addr_cache.
26512 (vt_find_locations): Use post-order on the inverted CFG.
26514 2014-01-28 Alan Modra <amodra@gmail.com>
26516 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26517 * configure.ac <recursive call for build != host>: Define
26518 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
26519 and LD_FOR_BUILD too.
26520 * configure: Regenerate.
26522 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
26524 * config/i386/i386.c (get_builtin_code_for_version): Separate
26525 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
26526 Broadwell from Haswell.
26528 2014-01-27 Steve Ellcey <sellcey@mips.com>
26530 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26531 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
26532 * config/mips/mips.c (mips_option_override): Change setting
26534 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
26535 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
26536 Change from Mask to Var.
26538 2014-01-27 Jeff Law <law@redhat.com>
26540 * ipa-inline.c (inline_small_functions): Fix typo.
26542 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
26544 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
26545 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
26546 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
26547 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
26548 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
26549 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
26550 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
26551 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
26552 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
26553 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
26554 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
26555 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
26556 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
26557 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
26558 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
26559 (_mm512_storeu_epi64): Ditto.
26560 (_mm512_cmpge_epi32_mask): Ditto.
26561 (_mm512_cmpge_epu32_mask): Ditto.
26562 (_mm512_cmpge_epi64_mask): Ditto.
26563 (_mm512_cmpge_epu64_mask): Ditto.
26564 (_mm512_cmple_epi32_mask): Ditto.
26565 (_mm512_cmple_epu32_mask): Ditto.
26566 (_mm512_cmple_epi64_mask): Ditto.
26567 (_mm512_cmple_epu64_mask): Ditto.
26568 (_mm512_cmplt_epi32_mask): Ditto.
26569 (_mm512_cmplt_epu32_mask): Ditto.
26570 (_mm512_cmplt_epi64_mask): Ditto.
26571 (_mm512_cmplt_epu64_mask): Ditto.
26572 (_mm512_cmpneq_epi32_mask): Ditto.
26573 (_mm512_cmpneq_epu32_mask): Ditto.
26574 (_mm512_cmpneq_epi64_mask): Ditto.
26575 (_mm512_cmpneq_epu64_mask): Ditto.
26576 (_mm512_expand_pd): Ditto.
26577 (_mm512_expand_ps): Ditto.
26578 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
26579 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
26580 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
26581 * config/i386/i386.c (ix86_builtins): Add
26582 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
26583 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
26584 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
26585 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
26586 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
26587 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
26588 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
26589 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
26590 IX86_BUILTIN_PMOVUSQW512_MEM.
26591 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
26592 __builtin_ia32_pmovsqd512mem_mask,
26593 __builtin_ia32_pmovqd512mem_mask,
26594 __builtin_ia32_pmovusqw512mem_mask,
26595 __builtin_ia32_pmovsqw512mem_mask,
26596 __builtin_ia32_pmovqw512mem_mask,
26597 __builtin_ia32_pmovusdw512mem_mask,
26598 __builtin_ia32_pmovsdw512mem_mask,
26599 __builtin_ia32_pmovdw512mem_mask,
26600 __builtin_ia32_pmovqb512mem_mask,
26601 __builtin_ia32_pmovusqb512mem_mask,
26602 __builtin_ia32_pmovsqb512mem_mask,
26603 __builtin_ia32_pmovusdb512mem_mask,
26604 __builtin_ia32_pmovsdb512mem_mask,
26605 __builtin_ia32_pmovdb512mem_mask.
26606 (bdesc_args): Add __builtin_ia32_expanddf512,
26607 __builtin_ia32_expandsf512.
26608 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
26609 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
26610 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
26611 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
26612 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
26613 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
26614 (avx512f_<code>v8div16qi2_mask_store): This.
26615 (avx512f_expand<mode>): New.
26617 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
26619 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
26621 (_mm512_mask_prefetch_i64gather_pd): Ditto.
26622 (_mm512_prefetch_i32scatter_pd): Ditto.
26623 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
26624 (_mm512_prefetch_i64scatter_pd): Ditto.
26625 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
26626 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
26627 (_mm512_mask_prefetch_i64gather_ps): Ditto.
26628 (_mm512_prefetch_i32scatter_ps): Ditto.
26629 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
26630 (_mm512_prefetch_i64scatter_ps): Ditto.
26631 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
26632 * config/i386/i386-builtin-types.def: Define
26633 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
26634 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
26635 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
26636 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
26637 IX86_BUILTIN_SCATTERPFQPD.
26638 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
26639 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
26640 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
26641 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
26642 __builtin_ia32_scatterpfqps.
26643 (ix86_expand_builtin): Expand new built-ins.
26644 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
26645 fix memory access data type.
26646 (*avx512pf_gatherpf<mode>_mask): Ditto.
26647 (*avx512pf_gatherpf<mode>): Ditto.
26648 (avx512pf_scatterpf<mode>): Ditto.
26649 (*avx512pf_scatterpf<mode>_mask): Ditto.
26650 (*avx512pf_scatterpf<mode>): Ditto.
26651 (GATHER_SCATTER_SF_MEM_MODE): New.
26652 (avx512pf_gatherpf<mode>df): Ditto.
26653 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26654 (*avx512pf_scatterpf<mode>df): Ditto.
26656 2014-01-27 Jakub Jelinek <jakub@redhat.com>
26659 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
26660 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
26663 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26665 * common/config/arm/arm-common.c
26666 (arm_rewrite_mcpu): Handle multiple names.
26668 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26670 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26672 * gimple-builder.h (create_gimple_tmp): Delete.
26674 2014-01-27 Christian Bruel <christian.bruel@st.com>
26676 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
26679 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
26681 * config/pa/pa.md (call): Generate indirect long calls to non-local
26682 functions when outputing 32-bit code.
26683 (call_value): Likewise except for special call to buggy powf function.
26685 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
26686 portable runtime and PIC indirect calls.
26687 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
26688 and PIC call sequences. Use ldo instead of blr to set return register
26689 in PIC call sequence.
26691 2014-01-25 Walter Lee <walt@tilera.com>
26693 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26694 avoid clobbering a live register.
26696 2014-01-25 Walter Lee <walt@tilera.com>
26698 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
26699 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
26700 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
26701 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
26703 2014-01-25 Walter Lee <walt@tilera.com>
26705 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
26706 arguments on even registers.
26707 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
26709 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
26710 (BIGGEST_ALIGNMENT): Ditto.
26711 (BIGGEST_FIELD_ALIGNMENT): Ditto.
26713 2014-01-25 Walter Lee <walt@tilera.com>
26715 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
26716 insns before bundling.
26717 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
26719 2014-01-25 Walter Lee <walt@tilera.com>
26721 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
26722 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
26723 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
26725 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26727 * config/mips/constraints.md (kl): Delete.
26728 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
26729 define expands, using...
26730 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
26731 instructions for MIPS16.
26732 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
26733 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
26735 2014-01-25 Walter Lee <walt@tilera.com>
26737 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
26741 2014-01-25 Walter Lee <walt@tilera.com>
26743 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
26744 (TARGET_EXPAND_TO_RTL_HOOK): Define.
26746 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26748 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
26751 2014-01-25 Jakub Jelinek <jakub@redhat.com>
26753 * print-rtl.c (in_call_function_usage): New var.
26754 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
26755 EXPR_LIST mode as mode and not as reg note name.
26757 PR middle-end/59561
26758 * cfgloopmanip.c (copy_loop_info): If
26759 loop->warned_aggressive_loop_optimizations, make sure
26760 the flag is set in target loop too.
26762 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
26764 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
26766 * builtins.def: Likewise.
26767 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
26768 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
26769 * ira.c (ira_setup_eliminable_regset): Likewise.
26770 * omp-low.c (gate_expand_omp): Likewise.
26771 (execute_lower_omp): Likewise.
26772 (diagnose_sb_0): Likewise.
26773 (gate_diagnose_omp_blocks): Likewise.
26774 (simd_clone_clauses_extract): Likewise.
26777 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26779 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
26780 correction for little endian...
26781 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
26784 2014-01-24 Jeff Law <law@redhat.com>
26786 PR tree-optimization/59919
26787 * tree-vrp.c (find_assert_locations_1): Do not register asserts
26788 for non-returning calls.
26790 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
26792 * common/config/aarch64/aarch64-common.c
26793 (aarch64_rewrite_mcpu): Handle multiple names.
26794 * config/aarch64/aarch64.h
26795 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26797 2014-01-24 Dodji Seketeli <dodji@redhat.com>
26799 * input.c (add_file_to_cache_tab): Handle the case where fopen
26802 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
26805 * config/i386/i386.md (pushsf splitter): Get stack adjustment
26806 from push operand if code of push isn't PRE_DEC.
26808 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
26811 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
26812 -mquad-memory-atomic. Update -mquad-memory documentation to say
26813 it is only used for non-atomic loads/stores.
26815 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
26816 -mquad-memory or -mquad-memory-atomic switches.
26818 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
26819 -mquad-memory-atomic to ISA 2.07 support.
26821 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
26822 to separate support of normal quad word memory operations (ldq, stq)
26823 from the atomic quad word memory operations.
26825 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
26826 support to separate non-atomic quad word operations from atomic
26827 quad word operations. Disable non-atomic quad word operations in
26828 little endian mode so that we don't have to swap words after the
26829 load and before the store.
26830 (quad_load_store_p): Add comment about atomic quad word support.
26831 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
26832 options printed with -mdebug=reg.
26834 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
26835 -mquad-memory-atomic as the test for whether we have quad word
26836 atomic instructions.
26837 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
26838 or -mp8-vector are used, allow byte/half-word atomic operations.
26840 * config/rs6000/sync.md (load_lockedti): Insure that the address
26841 is a proper indexed or indirect address for the lqarx instruction.
26842 On little endian systems, swap the hi/lo registers after the lqarx
26844 (load_lockedpti): Use indexed_or_indirect_operand predicate to
26845 insure the address is valid for the lqarx instruction.
26846 (store_conditionalti): Insure that the address is a proper indexed
26847 or indirect address for the stqcrx. instruction. On little endian
26848 systems, swap the hi/lo registers before doing the stqcrx.
26850 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
26851 insure the address is valid for the stqcrx. instruction.
26853 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26854 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
26855 type of quad memory support is available.
26857 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
26859 PR regression/59915
26860 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
26861 there is a danger of looping.
26863 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
26865 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26866 force flag_ira_loop_pressure if set via command line.
26868 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
26870 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
26871 (ashr_simd): New builtin handling DI mode.
26872 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
26873 (aarch64_sshr_simddi): New match pattern.
26874 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
26875 (vshrd_n_s64): Likewise.
26876 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
26878 2014-01-23 Nick Clifton <nickc@redhat.com>
26880 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
26881 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
26882 favour of mcu specific scripts.
26883 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
26886 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
26887 Alex Velenko <Alex.Velenko@arm.com>
26889 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
26890 (vaddv_s16): Likewise.
26891 (vaddv_s32): Likewise.
26892 (vaddv_u8): Likewise.
26893 (vaddv_u16): Likewise.
26894 (vaddv_u32): Likewise.
26895 (vaddvq_s8): Likewise.
26896 (vaddvq_s16): Likewise.
26897 (vaddvq_s32): Likewise.
26898 (vaddvq_s64): Likewise.
26899 (vaddvq_u8): Likewise.
26900 (vaddvq_u16): Likewise.
26901 (vaddvq_u32): Likewise.
26902 (vaddvq_u64): Likewise.
26903 (vaddv_f32): Likewise.
26904 (vaddvq_f32): Likewise.
26905 (vaddvq_f64): Likewise.
26906 (vmaxv_f32): Likewise.
26907 (vmaxv_s8): Likewise.
26908 (vmaxv_s16): Likewise.
26909 (vmaxv_s32): Likewise.
26910 (vmaxv_u8): Likewise.
26911 (vmaxv_u16): Likewise.
26912 (vmaxv_u32): Likewise.
26913 (vmaxvq_f32): Likewise.
26914 (vmaxvq_f64): Likewise.
26915 (vmaxvq_s8): Likewise.
26916 (vmaxvq_s16): Likewise.
26917 (vmaxvq_s32): Likewise.
26918 (vmaxvq_u8): Likewise.
26919 (vmaxvq_u16): Likewise.
26920 (vmaxvq_u32): Likewise.
26921 (vmaxnmv_f32): Likewise.
26922 (vmaxnmvq_f32): Likewise.
26923 (vmaxnmvq_f64): Likewise.
26924 (vminv_f32): Likewise.
26925 (vminv_s8): Likewise.
26926 (vminv_s16): Likewise.
26927 (vminv_s32): Likewise.
26928 (vminv_u8): Likewise.
26929 (vminv_u16): Likewise.
26930 (vminv_u32): Likewise.
26931 (vminvq_f32): Likewise.
26932 (vminvq_f64): Likewise.
26933 (vminvq_s8): Likewise.
26934 (vminvq_s16): Likewise.
26935 (vminvq_s32): Likewise.
26936 (vminvq_u8): Likewise.
26937 (vminvq_u16): Likewise.
26938 (vminvq_u32): Likewise.
26939 (vminnmv_f32): Likewise.
26940 (vminnmvq_f32): Likewise.
26941 (vminnmvq_f64): Likewise.
26943 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
26945 * config/aarch64/aarch64-simd.md
26946 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
26947 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
26948 (*aarch64_mul3_elt<mode>): Likewise.
26949 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
26950 (*aarch64_mul3_elt_to_64v2df): Likewise.
26951 (*aarch64_mla_elt<mode>): Likewise.
26952 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
26953 (*aarch64_mls_elt<mode>): Likewise.
26954 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
26955 (*aarch64_fma4_elt<mode>): Likewise.
26956 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
26957 (*aarch64_fma4_elt_to_64v2df): Likewise.
26958 (*aarch64_fnma4_elt<mode>): Likewise.
26959 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
26960 (*aarch64_fnma4_elt_to_64v2df): Likewise.
26961 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
26962 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
26963 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26964 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26965 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
26966 (aarch64_sqdmull_lane<mode>_internal): Likewise.
26967 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
26969 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
26971 * config/aarch64/aarch64-simd.md
26972 (aarch64_be_checked_get_lane<mode>): New define_expand.
26973 * config/aarch64/aarch64-simd-builtins.def
26974 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
26975 New builtin definition.
26976 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
26977 Use new safe be builtin.
26979 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
26981 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
26983 (aarch64_be_st1<mode>): Likewise.
26984 (aarch_ld1<VALL:mode>): Define_expand modified.
26985 (aarch_st1<VALL:mode>): Likewise.
26986 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
26987 (UNSPEC_ST1): Likewise.
26989 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
26991 * config/microblaze/microblaze.md: Add trap insn and attribute
26993 2014-01-23 Dodji Seketeli <dodji@redhat.com>
26995 PR preprocessor/58580
26996 * input.h (location_get_source_line): Take an additional line_size
26998 (void diagnostics_file_cache_fini): Declare new function.
26999 * input.c (struct fcache): New type.
27000 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27001 New static constants.
27002 (diagnostic_file_cache_init, total_lines_num)
27003 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27004 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27005 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27006 (get_next_line, read_next_line, goto_next_line, read_line_num):
27007 New static function definitions.
27008 (diagnostic_file_cache_fini): New function.
27009 (location_get_source_line): Take an additional output line_len
27010 parameter. Re-write using lookup_or_add_file_to_cache_tab and
27012 * diagnostic.c (diagnostic_finish): Call
27013 diagnostic_file_cache_fini.
27014 (adjust_line): Take an additional input parameter for the length
27015 of the line, rather than calculating it with strlen.
27016 (diagnostic_show_locus): Adjust the use of
27017 location_get_source_line and adjust_line with respect to their new
27018 signature. While displaying a line now, do not stop at the first
27019 null byte. Rather, display the zero byte as a space and keep
27020 going until we reach the size of the line.
27021 * Makefile.in: Add vec.o to OBJS-libcommon
27023 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27024 Ilya Tocar <ilya.tocar@intel.com>
27026 * config/i386/avx512fintrin.h (_mm512_kmov): New.
27027 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27028 (__builtin_ia32_kmov16): Ditto.
27029 * config/i386/i386.md (UNSPEC_KMOV): New.
27032 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
27034 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27035 (_mm512_storeu_si512): Ditto.
27037 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
27040 * rtl.h (get_referenced_operands): Declare.
27041 * recog.c (get_referenced_operands): New function.
27042 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27043 operands have been referenced when recording LO_SUM references.
27045 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
27047 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27049 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27051 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27052 Enable for generic and recent AMD targets.
27054 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
27056 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27057 ARG_SIZE note when adjustment was eliminated.
27059 2014-01-22 Jeff Law <law@redhat.com>
27061 PR tree-optimization/59597
27062 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27063 in file. Accept new argument REGISTERING and use it to modify
27064 dump output appropriately.
27065 (register_jump_thread): Corresponding changes.
27066 (mark_threaded_blocks): Reinstate code to cancel unprofitable
27067 thread paths involving joiner blocks. Add code to dump cancelled
27068 jump threading paths.
27070 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
27072 PR rtl-optimization/59477
27073 * lra-constraints.c (inherit_in_ebb): Process call for living hard
27074 regs. Update reloads_num and potential_reload_hard_regs for all insns.
27076 2014-01-22 Tom Tromey <tromey@redhat.com>
27078 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27080 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27082 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27084 PR rtl-optimization/59896
27085 * lra-constraints.c (process_alt_operands): Check unused note for
27086 matched operands of insn with no output reloads.
27088 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
27090 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27091 (mips_move_from_gpr_cost): Likewise.
27093 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
27095 PR rtl-optimization/59858
27096 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27097 ira_class_hard_regs_num.
27098 (process_alt_operands): Increase reject for dying matched operand.
27100 2014-01-21 Jakub Jelinek <jakub@redhat.com>
27103 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27104 smaller than size, perform several stores or loads and stores
27105 at dst + count - size to store or copy all of size bytes, rather
27106 than just last modesize bytes.
27108 2014-01-20 DJ Delorie <dj@redhat.com>
27110 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27111 that CLOBBERs are REGs before propogating their values.
27113 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
27115 PR middle-end/59789
27116 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27117 (cgraph_inline_failed_type): New function.
27118 * cgraph.h (DEFCIFCODE): Add type.
27119 (cgraph_inline_failed_type_t): New enum.
27120 (cgraph_inline_failed_type): New prototype.
27121 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27122 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27123 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27124 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27125 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27126 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27127 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27128 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27129 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27130 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27131 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27132 OPTIMIZATION_MISMATCH.
27133 * tree-inline.c (expand_call_inline): Emit errors during
27134 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27136 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27139 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27140 mode attribute in insn output.
27142 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
27144 * output.h (output_constant): Delete.
27145 * varasm.c (output_constant): Make private.
27147 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
27149 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27151 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27153 PR middle-end/59860
27154 * tree.h (fold_builtin_strcat): New prototype.
27155 * builtins.c (fold_builtin_strcat): No longer static. Add len
27156 argument, if non-NULL, don't call c_strlen. Optimize
27157 directly into __builtin_memcpy instead of __builtin_strcpy.
27158 (fold_builtin_2): Adjust fold_builtin_strcat caller.
27159 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27161 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27163 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27164 for SImode_address_operand operands, having only a REG argument.
27166 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
27168 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27169 loader name using mbig-endian.
27170 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27172 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27174 * doc/invoke.texi (-march): Clarify documentation for AArch64.
27175 (-mtune): Likewise.
27178 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
27180 * config/aarch64/aarch64-protos.h
27181 (aarch64_cannot_change_mode_class_ptr): Declare.
27182 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27183 aarch64_cannot_change_mode_class_ptr): New.
27184 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27185 backend hook aarch64_cannot_change_mode_class.
27187 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
27189 * common/config/aarch64/aarch64-common.c
27190 (aarch64_handle_option): Don't handle any option order logic here.
27191 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27192 selected_cpu, warn on architecture version mismatch.
27193 (aarch64_override_options): Fix parsing order for option strings.
27195 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27196 Iain Sandoe <iain@codesourcery.com>
27199 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27200 warning. Amend comment to reflect current functionality.
27202 2014-01-20 Richard Biener <rguenther@suse.de>
27204 PR middle-end/59860
27205 * builtins.c (fold_builtin_strcat): Remove case better handled
27206 by tree-ssa-strlen.c.
27208 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
27210 * config/aarch64/aarch64.opt
27211 (mcpu, march, mtune): Make case-insensitive.
27213 2014-01-20 Jakub Jelinek <jakub@redhat.com>
27216 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27217 if operands[1] is a REG or ZERO_EXTEND of a REG.
27219 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
27221 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27223 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
27225 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27226 long non-pic millicode calls.
27228 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27230 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27232 2014-01-19 Kito Cheng <kito@0xlab.org>
27234 * builtins.c (expand_movstr): Check movstr expand done or fail.
27236 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27237 H.J. Lu <hongjiu.lu@intel.com>
27240 * config/i386/i386.md (*lea<mode>): Zero-extend return register
27241 to DImode for zero-extended addresses.
27243 2014-01-19 Jakub Jelinek <jakub@redhat.com>
27245 PR rtl-optimization/57763
27246 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27247 on the new indirect jump_insn and increment LABEL_NUSES (label).
27249 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
27253 * config.gcc (x86_archs): New variable.
27254 (x86_64_archs): Likewise.
27255 (x86_cpus): Likewise.
27256 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27257 --with-arch/--with-cpu= options.
27258 Support --with-arch=/--with-cpu={nehalem,westmere,
27259 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27261 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27263 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27264 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
27266 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27268 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27270 2014-01-18 Jakub Jelinek <jakub@redhat.com>
27273 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27274 clear cpp_get_options (parse_in)->warn_unused_macros for
27275 ix86_target_macros_internal with cpp_define.
27277 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
27279 * jump.c (delete_related_insns): Keep (use (insn))s.
27280 * reorg.c (redundant_insn): Check for barriers too.
27282 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27284 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27286 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
27288 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27289 call to $$dyncall when TARGET_LONG_CALLS is true.
27291 2014-01-17 Jeff Law <law@redhat.com>
27293 * ree.c (combine_set_extension): Temporarily disable test for
27294 changing number of hard registers.
27296 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27298 PR middle-end/58125
27299 * ipa-inline-analysis.c (inline_free_summary):
27300 Do not free summary of aliases.
27302 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27304 PR middle-end/59706
27305 * gimplify.c (gimplify_expr): Use create_tmp_var
27306 instead of create_tmp_var_raw. If cond doesn't have
27307 integral type, don't add the IFN_ANNOTATE builtin at all.
27309 2014-01-17 Martin Jambor <mjambor@suse.cz>
27312 * ipa-cp.c (prev_edge_clone): New variable.
27313 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27314 Also resize prev_edge_clone vector.
27315 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27316 (ipcp_edge_removal_hook): New function.
27317 (ipcp_driver): Register ipcp_edge_removal_hook.
27319 2014-01-17 Andrew Pinski <apinski@cavium.com>
27320 Steve Ellcey <sellcey@mips.com>
27323 * config/mips/mips.c (mips_print_operand): Check operand mode instead
27326 2014-01-17 Jeff Law <law@redhat.com>
27328 PR middle-end/57904
27329 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27330 so that pass_ccp runs first.
27332 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27334 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27335 (ix86_adjust_cost): Use !TARGET_XXX.
27336 (do_reorder_for_imul): Likewise.
27337 (swap_top_of_ready_list): Likewise.
27338 (ix86_sched_reorder): Likewise.
27340 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27342 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27343 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
27344 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
27345 (intel_memset): New. Duplicate slm_memset.
27346 (intel_cost): New. Duplicate slm_cost.
27347 (m_INTEL): New macro.
27348 (processor_target_table): Add "intel".
27349 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27350 with PROCESSOR_INTEL for "intel".
27351 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
27352 PROCESSOR_SILVERMONT.
27353 (ix86_issue_rate): Likewise.
27354 (ix86_adjust_cost): Likewise.
27355 (ia32_multipass_dfa_lookahead): Likewise.
27356 (swap_top_of_ready_list): Likewise.
27357 (ix86_sched_reorder): Likewise.
27358 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27359 instead of TARGET_OPT_AGU.
27360 * config/i386/i386.h (TARGET_INTEL): New.
27361 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27362 (processor_type): Add PROCESSOR_INTEL.
27363 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27364 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27366 2014-01-17 Marek Polacek <polacek@redhat.com>
27369 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27372 2014-01-17 Richard Biener <rguenther@suse.de>
27374 PR tree-optimization/46590
27375 * opts.c (default_options_table): Add entries for
27376 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27377 all enabled at -O1 but not for -Og.
27378 * common.opt (fbranch-count-reg): Remove Init(1).
27379 (fmove-loop-invariants): Likewise.
27380 (ftree-pta): Likewise.
27382 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27384 * config/i386/i386.c (ix86_data_alignment): For compatibility with
27385 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27386 decls to at least the GCC 4.8 used alignments.
27389 * tree-nested.c (convert_nonlocal_reference_stmt,
27390 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27391 of GIMPLE_BIND stmts, adjust associated decls.
27393 2014-01-17 Richard Biener <rguenther@suse.de>
27395 PR tree-optimization/46590
27396 * vec.h (vec<>::bseach): New member function implementing
27397 binary search according to C89 bsearch.
27398 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27399 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27400 bitmap pointer again. Make accesses_in_loop a flat array.
27401 (mem_ref_obstack): New global.
27402 (outermost_indep_loop): Adjust for mem_ref->stored changes.
27403 (mark_ref_stored): Likewise.
27404 (ref_indep_loop_p_2): Likewise.
27405 (set_ref_stored_in_loop): New helper function.
27406 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27407 (memref_free): Adjust.
27408 (record_mem_ref_loc): Simplify.
27409 (gather_mem_refs_stmt): Adjust.
27410 (sort_locs_in_loop_postorder_cmp): New function.
27411 (analyze_memory_references): Sort accesses_in_loop after
27412 loop postorder number.
27413 (find_ref_loc_in_loop_cmp): New function.
27414 (for_all_locs_in_loop): Find relevant cluster of locs in
27415 accesses_in_loop and iterate without recursion.
27416 (execute_sm): Avoid uninit warning.
27417 (struct ref_always_accessed): Simplify.
27418 (ref_always_accessed::operator ()): Likewise.
27419 (ref_always_accessed_p): Likewise.
27420 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27421 loop postorder numbers here.
27422 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27425 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27428 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27429 on decls for which assemble_alias has been called.
27431 2014-01-17 Nick Clifton <nickc@redhat.com>
27433 * config/msp430/msp430.opt: (mcpu): New option.
27434 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27435 (msp430_option_override): Parse target_cpu. If the MCU name
27436 matches a generic string, clear target_mcu.
27437 (msp430_attr): Allow numeric interrupt values up to 63.
27438 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27439 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27441 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27443 * config/msp430/msp430.md (popm): Use %J rather than %I.
27444 (addsi3): Use msp430_nonimmediate_operand for operand 2.
27445 (addhi_cy_i): Use immediate_operand for operand 2.
27446 * doc/invoke.texi: Document -mcpu option.
27448 2014-01-17 Richard Biener <rguenther@suse.de>
27450 PR rtl-optimization/38518
27451 * df.h (df_analyze_loop): Declare.
27452 * df-core.c: Include cfgloop.h.
27453 (df_analyze_1): Split out main part of df_analyze.
27454 (df_analyze): Adjust.
27455 (loop_inverted_post_order_compute): New function.
27456 (loop_post_order_compute): Likewise.
27457 (df_analyze_loop): New function avoiding whole-function
27458 postorder computes.
27459 * loop-invariant.c (find_defs): Use df_analyze_loop.
27460 (find_invariants): Adjust.
27461 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27463 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
27465 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27466 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27468 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27470 * ipa-ref.c (ipa_remove_stmt_references): Fix references
27471 traversal when removing references.
27473 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
27476 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27478 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
27480 PR middle-end/56791
27481 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27482 pushing a reload for an autoinc when we had previously reloaded an
27483 inner part of the address.
27485 2014-01-16 Jakub Jelinek <jakub@redhat.com>
27487 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27489 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27490 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27491 when not giving up or versioning for alias only because of
27493 (vect_analyze_data_ref_dependences): Set to true.
27494 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27496 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27497 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27500 PR middle-end/58344
27501 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27504 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27505 operand 0 predicate for gathers, use a new pseudo as subtarget.
27507 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27509 PR middle-end/59609
27510 * lra-constraints.c (process_alt_operands): Add printing debug info.
27511 Check absence of input/output reloads for matched operands too.
27513 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27515 PR rtl-optimization/59835
27516 * ira.c (ira_init_register_move_cost): Increase cost for
27519 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
27521 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
27523 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
27526 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
27527 non-register objects. Use gen_(high/low)part more consistently.
27530 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
27533 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
27534 endian support, remove tests for WORDS_BIG_ENDIAN.
27535 (p8_mfvsrd_3_<mode>): Likewise.
27536 (reload_gpr_from_vsx<mode>): Likewise.
27537 (reload_gpr_from_vsxsf): Likewise.
27538 (p8_mfvsrd_4_disf): Likewise.
27540 2014-01-16 Richard Biener <rguenther@suse.de>
27542 PR rtl-optimization/46590
27543 * lcm.c (compute_antinout_edge): Use postorder iteration.
27544 (compute_laterin): Use inverted postorder iteration.
27546 2014-01-16 Nick Clifton <nickc@redhat.com>
27548 PR middle-end/28865
27549 * varasm.c (output_constant): Return the number of bytes actually
27551 (output_constructor_array_range): Update the field size with the
27552 number of bytes emitted by output_constant.
27553 (output_constructor_regular_field): Likewise. Also do not
27554 complain if the total number of bytes emitted is now greater
27555 than the expected fieldpos.
27556 * output.h (output_constant): Update prototype and descriptive comment.
27558 2014-01-16 Marek Polacek <polacek@redhat.com>
27560 PR middle-end/59827
27561 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
27562 it is error_mark_node.
27564 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
27566 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
27567 VALID_AVX256_REG_OR_OI_MODE.
27569 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
27571 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
27572 current procedure should be profiled.
27574 2014-01-15 Andrew Pinski <apinski@cavium.com>
27576 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
27577 of moving from/to the STACK_REG register class.
27579 2014-01-15 Richard Henderson <rth@redhat.com>
27582 * reginfo.c (global_regs_decl): Globalize.
27583 * rtl.h (global_regs_decl): Declare.
27584 * ira.c (do_reload): Diagnose frame_pointer_needed and it
27585 reserved via global_regs.
27587 2014-01-15 Teresa Johnson <tejohnson@google.com>
27589 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
27591 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
27593 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
27594 and vmulosh rather than call gen_vec_widen_smult_*.
27595 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
27596 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
27597 (vec_widen_smult_even_v16qi): Likewise.
27598 (vec_widen_umult_even_v8hi): Likewise.
27599 (vec_widen_smult_even_v8hi): Likewise.
27600 (vec_widen_umult_odd_v16qi): Likewise.
27601 (vec_widen_smult_odd_v16qi): Likewise.
27602 (vec_widen_umult_odd_v8hi): Likewise.
27603 (vec_widen_smult_odd_v8hi): Likewise.
27604 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
27605 vmuloub rather than call gen_vec_widen_umult_*.
27606 (vec_widen_umult_lo_v16qi): Likewise.
27607 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
27608 vmulosb rather than call gen_vec_widen_smult_*.
27609 (vec_widen_smult_lo_v16qi): Likewise.
27610 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
27611 rather than call gen_vec_widen_umult_*.
27612 (vec_widen_umult_lo_v8hi): Likewise.
27613 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
27614 rather than call gen_vec_widen_smult_*.
27615 (vec_widen_smult_lo_v8hi): Likewise.
27617 2014-01-15 Jeff Law <law@redhat.com>
27619 PR tree-optimization/59747
27620 * ree.c (find_and_remove_re): Properly handle case where a second
27621 eliminated extension requires widening a copy created for elimination
27622 of a prior extension.
27623 (combine_set_extension): Ensure that the number of hard regs needed
27624 for a destination register does not change when we widen it.
27626 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
27628 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
27629 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
27630 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
27631 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
27632 (avr-*-rtems*): Likewise.
27633 (bfin*-rtems*): Likewise.
27634 (moxie-*-rtems*): Likewise.
27635 (h8300-*-rtems*): Likewise.
27636 (i[34567]86-*-rtems*): Likewise.
27637 (lm32-*-rtems*): Likewise.
27638 (m32r-*-rtems*): Likewise.
27639 (m68k-*-rtems*): Likewise.
27640 (microblaze*-*-rtems*): Likewise.
27641 (mips*-*-rtems*): Likewise.
27642 (powerpc-*-rtems*): Likewise.
27643 (sh-*-rtems*): Likewise.
27644 (sparc-*-rtems*): Likewise.
27645 (sparc64-*-rtems*): Likewise.
27646 (v850-*-rtems*): Likewise.
27647 (m32c-*-rtems*): Likewise.
27649 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
27651 PR rtl-optimization/59511
27652 * ira.c (ira_init_register_move_cost): Use memory costs for some
27653 cases of register move cost calculations.
27654 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
27655 instead of BB frequency.
27656 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
27657 * lra-assigns.c (find_hard_regno_for): Ditto.
27659 2014-01-15 Richard Biener <rguenther@suse.de>
27661 PR tree-optimization/59822
27662 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
27663 (vectorizable_load): Use it to hoist defs of uses of invariant
27664 loads out of the loop.
27666 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
27667 Kugan Vivekanandarajah <kuganv@linaro.org>
27670 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
27673 2014-01-15 Richard Biener <rguenther@suse.de>
27675 PR rtl-optimization/59802
27676 * lcm.c (compute_available): Use inverted postorder to seed
27677 the initial worklist.
27679 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27682 * config/s390/s390.c (s390_preferred_reload_class): Don't return
27683 ADDR_REGS for invalid symrefs in non-PIC code.
27685 2014-01-15 Jakub Jelinek <jakub@redhat.com>
27688 * builtins.c (determine_block_size): Initialize *probable_max_size
27689 even if len_rtx is CONST_INT.
27691 2014-01-14 Andrew Pinski <apinski@cavium.com>
27693 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
27694 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
27695 (cortexa53_tunings): Likewise.
27696 (aarch64_sched_issue_rate): New function.
27697 (TARGET_SCHED_ISSUE_RATE): Define.
27699 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27701 * ira-costs.c (find_costs_and_classes): Add missed
27702 ira_init_register_move_cost_if_necessary.
27704 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27707 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
27709 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
27712 * config/i386/i386.c (type_natural_mode): Add a bool parameter
27713 to indicate if type is used for function return value. Warn ABI
27714 change if the vector mode isn't available for function return value.
27715 (ix86_function_arg_advance): Pass false to type_natural_mode.
27716 (ix86_function_arg): Likewise.
27717 (ix86_gimplify_va_arg): Likewise.
27718 (function_arg_32): Don't warn ABI change.
27719 (ix86_function_value): Pass true to type_natural_mode.
27720 (ix86_return_in_memory): Likewise.
27721 (ix86_struct_value_rtx): Removed.
27722 (TARGET_STRUCT_VALUE_RTX): Likewise.
27724 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27726 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
27727 converting a conditional jump into a conditional return.
27729 2014-01-14 Richard Biener <rguenther@suse.de>
27731 PR tree-optimization/58921
27732 PR tree-optimization/59006
27733 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
27734 hoisting invariant stmts.
27735 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
27736 invariant loads on the preheader edge if possible.
27738 2014-01-14 Joey Ye <joey.ye@arm.com>
27740 * doc/plugin.texi (Building GCC plugins): Update to C++.
27742 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
27744 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
27745 (_mm_rcp28_round_ss): Ditto.
27746 (_mm_rsqrt28_round_sd): Ditto.
27747 (_mm_rsqrt28_round_ss): Ditto.
27748 (_mm_rcp28_sd): Ditto.
27749 (_mm_rcp28_ss): Ditto.
27750 (_mm_rsqrt28_sd): Ditto.
27751 (_mm_rsqrt28_ss): Ditto.
27752 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
27753 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
27754 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
27755 (IX86_BUILTIN_RCP28SD): Ditto.
27756 (IX86_BUILTIN_RCP28SS): Ditto.
27757 (IX86_BUILTIN_RSQRT28SD): Ditto.
27758 (IX86_BUILTIN_RSQRT28SS): Ditto.
27759 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
27760 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
27761 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
27762 (ix86_expand_special_args_builtin): Expand new FTYPE.
27763 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
27764 (srcp14<mode>): Make insn unary.
27765 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
27766 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
27767 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
27768 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
27769 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
27770 Fix rounding: make it SAE only.
27771 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27773 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27775 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
27776 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
27777 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
27778 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
27779 (round_saeonly_mask_scalar_operand4): Ditto.
27780 (round_saeonly_mask_scalar_op3): Ditto.
27781 (round_saeonly_mask_scalar_op4): Ditto.
27783 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27785 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27786 Implement -maltivec=be for vec_insert and vec_extract.
27788 2014-01-10 DJ Delorie <dj@redhat.com>
27790 * config/msp430/msp430.md (call_internal): Don't allow memory
27791 references with SP as the base register.
27792 (call_value_internal): Likewise.
27793 * config/msp430/constraints.md (Yc): New. For memory references
27794 that don't use SP as a base register.
27796 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
27797 "an integer without a # prefix"
27798 * config/msp430/msp430.md (epilogue_helper): Use it.
27800 2014-01-13 Jakub Jelinek <jakub@redhat.com>
27803 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
27804 AVX512F gather builtins.
27805 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
27806 on gather decls with INTEGER_TYPE masktype.
27807 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
27808 directly into the builtin rather than hoisting it before loop.
27810 PR tree-optimization/59387
27811 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
27812 (scev_const_prop): If folded_casts and type has undefined overflow,
27813 use force_gimple_operand instead of force_gimple_operand_gsi and
27814 for each added stmt if it is assign with
27815 arith_code_with_undefined_signed_overflow, call
27816 rewrite_to_defined_overflow.
27817 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
27818 gimple-fold.h instead.
27819 (arith_code_with_undefined_signed_overflow,
27820 rewrite_to_defined_overflow): Moved to ...
27821 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
27822 rewrite_to_defined_overflow): ... here. No longer static.
27823 Include gimplify-me.h.
27824 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
27825 rewrite_to_defined_overflow): New prototypes.
27827 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27829 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
27831 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
27833 * builtins.c (get_object_alignment_2): Minor tweak.
27834 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
27836 2014-01-13 Christian Bruel <christian.bruel@st.com>
27838 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
27839 optimized non constant lengths.
27841 2014-01-13 Jakub Jelinek <jakub@redhat.com>
27844 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
27845 load as __atomic_load_N if possible.
27847 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
27849 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
27851 (rs6000_expand_builtin): Adjust call.
27853 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
27856 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
27857 * config/rs6000/rs6000.c: Include target-globals.h.
27858 (rs6000_set_current_function): Instead of doing target_reinit
27859 unconditionally, use save_target_globals_default_opts and
27860 restore_target_globals.
27862 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
27864 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
27865 (rs6000_expand_builtin): Handle mffs and mtfsf.
27866 (rs6000_init_builtins): Define mffs and mtfsf.
27867 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
27868 (rs6000_mffs): New pattern.
27869 (rs6000_mtfsf): New pattern.
27871 2014-01-11 Bin Cheng <bin.cheng@arm.com>
27873 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
27874 Start narrowing with START. Apply candidate-use pair
27875 and check overall cost in narrowing.
27876 (iv_ca_prune): Pass new argument.
27878 2014-01-10 Jeff Law <law@redhat.com>
27880 PR middle-end/59743
27881 * ree.c (combine_reaching_defs): Ensure the defining statement
27882 occurs before the extension when optimizing extensions with
27883 different source and destination hard registers.
27885 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
27888 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
27889 vtables into the type inheritance graph.
27891 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27893 PR rtl-optimization/59754
27894 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
27895 modes in the REGNO != REGNO case.
27897 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27899 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
27901 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27903 PR tree-optimization/59745
27904 * tree-predcom.c (tree_predictive_commoning_loop): Call
27905 free_affine_expand_cache if giving up because components is NULL.
27907 * target-globals.c (save_target_globals): Allocate < 4KB structs using
27908 GC in payload of target_globals struct instead of allocating them on
27909 the heap and the larger structs separately using GC.
27910 * target-globals.h (struct target_globals): Make regs, hard_regs,
27911 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
27912 of GTY((skip)) and change type to void *.
27913 (reset_target_globals): Cast loads from those fields to corresponding
27916 2014-01-10 Steve Ellcey <sellcey@mips.com>
27919 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
27920 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
27921 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
27923 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
27926 * aarch64-modes.def (CC_Zmode): New flags mode.
27927 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
27928 represents an equality.
27929 (aarch64_get_condition_code): Handle CC_Zmode.
27930 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
27932 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27934 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
27935 extraction in good case.
27937 2014-01-10 Richard Biener <rguenther@suse.de>
27939 PR tree-optimization/59374
27940 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
27941 checking after SLP discovery. Mark stmts not participating
27942 in any SLP instance properly.
27944 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27946 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
27947 when handling a SET rtx.
27949 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27951 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
27952 (cortex-a57): Likewise.
27953 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
27955 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27957 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
27958 non-iwmmxt builtins.
27960 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
27964 * ipa-devirt.c record_target_from_binfo): Take as argument
27965 stack of binfos and lookup matching one for virtual inheritance.
27966 (possible_polymorphic_call_targets_1): Update.
27968 2014-01-10 Huacai Chen <chenhc@lemote.com>
27970 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
27971 kernel strings for Loongson-2E/2F/3A.
27973 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27975 PR middle-end/59670
27976 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
27977 is_gimple_call before calling gimple_call_internal_p.
27979 2014-01-09 Steve Ellcey <sellcey@mips.com>
27981 * Makefile.in (TREE_FLOW_H): Remove.
27982 (TREE_SSA_H): Add file names from tree-flow.h.
27983 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
27984 * tree.h: Remove tree-flow.h reference.
27985 * hash-table.h: Remove tree-flow.h reference.
27986 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
27987 reference with tree-ssa-loop.h.
27989 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27991 * doc/invoke.texi: Add -maltivec={be,le} options, and document
27992 default element-order behavior for -maltivec.
27993 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
27994 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
27995 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
27996 when targeting big endian, at least for now.
27997 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
27999 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28001 PR middle-end/47735
28002 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28003 var satisfies use_register_for_decl, just take into account type
28004 alignment, rather than decl alignment.
28006 PR tree-optimization/59622
28007 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
28008 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28009 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28010 Don't devirtualize for inplace at all. For targets.length () == 1,
28011 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28013 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28015 * config/i386/i386.md (cpu): Remove the unused btver1.
28017 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
28019 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28021 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28024 * tree-core.h (struct target_globals): New forward declaration.
28025 (struct tree_target_option): Add globals field.
28026 * tree.h (TREE_TARGET_GLOBALS): Define.
28027 (prepare_target_option_nodes_for_pch): New prototype.
28028 * target-globals.h (struct target_globals): Define even if
28029 !SWITCHABLE_TARGET.
28030 * tree.c (prepare_target_option_node_for_pch,
28031 prepare_target_option_nodes_for_pch): New functions.
28032 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28033 * config/i386/i386.c: Include target-globals.h.
28034 (ix86_set_current_function): Instead of doing target_reinit
28035 unconditionally, use save_target_globals_default_opts and
28036 restore_target_globals.
28038 2014-01-09 Richard Biener <rguenther@suse.de>
28040 PR tree-optimization/59715
28041 * tree-cfg.h (split_critical_edges): Declare.
28042 * tree-cfg.c (split_critical_edges): Export.
28043 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28045 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
28047 * cfgexpand.c (expand_stack_vars): Optionally disable
28048 asan stack protection.
28049 (expand_used_vars): Likewise.
28050 (partition_stack_vars): Likewise.
28051 * asan.c (asan_emit_stack_protection): Optionally disable
28052 after return stack usage.
28053 (instrument_derefs): Optionally disable memory access instrumentation.
28054 (instrument_builtin_call): Likewise.
28055 (instrument_strlen_call): Likewise.
28056 (asan_protect_global): Optionally disable global variables protection.
28057 * doc/invoke.texi: Added doc for new options.
28058 * params.def: Added new options.
28059 * params.h: Likewise.
28061 2014-01-09 Jakub Jelinek <jakub@redhat.com>
28063 PR rtl-optimization/59724
28064 * ifcvt.c (cond_exec_process_if_block): Don't call
28065 flow_find_head_matching_sequence with 0 longest_match.
28066 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28067 non-active insns if !stop_after.
28068 (try_head_merge_bb): Revert 2014-01-07 changes.
28070 2014-01-08 Jeff Law <law@redhat.com>
28072 * ree.c (get_sub_rtx): New function, extracted from...
28073 (merge_def_and_ext): Here.
28074 (combine_reaching_defs): Use get_sub_rtx.
28076 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
28078 * cgraph.h (varpool_variable_node): Do not choke on null node.
28080 2014-01-08 Catherine Moore <clm@codesourcery.com>
28082 * config/mips/mips.md (simple_return): Attempt to use JRC
28084 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28086 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28088 PR rtl-optimization/59137
28089 * reorg.c (steal_delay_list_from_target): Call update_block for
28091 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28093 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28095 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28096 two duplicate entries.
28098 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
28101 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
28103 * config/mips/mips.c (mips_truncated_op_cost): New function.
28104 (mips_rtx_costs): Adjust test for BADDU.
28105 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28107 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
28109 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28110 (*baddu_si): ...this new pattern.
28112 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28115 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28117 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
28119 PR middle-end/57748
28120 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28122 (expand_expr, expand_normal): Adjust.
28123 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28124 inner_reference_p. Use inner_reference_p to expand inner references.
28125 (store_expr): Adjust.
28126 * cfgexpand.c (expand_call_stmt): Adjust.
28128 2014-01-08 Rong Xu <xur@google.com>
28130 * gcov-io.c (gcov_var): Move from gcov-io.h.
28131 (gcov_position): Ditto.
28132 (gcov_is_error): Ditto.
28133 (gcov_rewrite): Ditto.
28134 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28135 only part to libgcc/libgcov.h.
28137 2014-01-08 Marek Polacek <polacek@redhat.com>
28139 PR middle-end/59669
28140 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28142 2014-01-08 Marek Polacek <polacek@redhat.com>
28145 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28147 2014-01-08 Jakub Jelinek <jakub@redhat.com>
28149 PR rtl-optimization/59649
28150 * stor-layout.c (get_mode_bounds): For BImode return
28151 0 and STORE_FLAG_VALUE.
28153 2014-01-08 Richard Biener <rguenther@suse.de>
28155 PR middle-end/59630
28156 * gimple.h (is_gimple_builtin_call): Remove.
28157 (gimple_builtin_call_types_compatible_p): New.
28158 (gimple_call_builtin_p): New overload.
28159 * gimple.c (is_gimple_builtin_call): Remove.
28160 (validate_call): Rename to ...
28161 (gimple_builtin_call_types_compatible_p): ... this and export. Also
28162 check return types.
28163 (validate_type): New static function.
28164 (gimple_call_builtin_p): New overload and adjust.
28165 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28166 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
28167 (gimple_fold_stmt_to_constant_1): Likewise.
28168 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28170 2014-01-08 Richard Biener <rguenther@suse.de>
28172 PR middle-end/59471
28173 * gimplify.c (gimplify_expr): Gimplify register-register type
28174 VIEW_CONVERT_EXPRs to separate stmts.
28176 2014-01-07 Jeff Law <law@redhat.com>
28178 PR middle-end/53623
28179 * ree.c (combine_set_extension): Handle case where source
28180 and destination registers in an extension insn are different.
28181 (combine_reaching_defs): Allow source and destination registers
28182 in extension to be different under limited circumstances.
28183 (add_removable_extension): Remove restriction that the
28184 source and destination registers in the extension are the same.
28185 (find_and_remove_re): Emit a copy from the extension's
28186 destination to its source after the defining insn if
28187 the source and destination registers are different.
28189 PR middle-end/59285
28190 * ifcvt.c (merge_if_block): If we are merging a block with more than
28191 one successor with a block with no successors, remove any BARRIER
28192 after the second block.
28194 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
28196 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28198 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
28201 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28202 for 14-bit register offsets when INT14_OK_STRICT is false.
28204 2014-01-07 Roland Stigge <stigge@antcom.de>
28205 Michael Meissner <meissner@linux.vnet.ibm.com>
28208 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28209 Only check TFmode for SPE constants. Don't check TImode or TDmode.
28211 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
28213 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28216 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
28218 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28219 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28220 rtx is const0_rtx or not.
28222 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
28225 * target-globals.c (save_target_globals): Remove this_fn_optab
28227 * toplev.c: Include optabs.h.
28228 (target_reinit): Temporarily restore the global options if another
28229 set of options are in force.
28231 2014-01-07 Jakub Jelinek <jakub@redhat.com>
28233 PR rtl-optimization/58668
28234 * cfgcleanup.c (flow_find_cross_jump): Don't count
28235 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
28236 to determine what is counted.
28237 (flow_find_head_matching_sequence): Use active_insn_p to determine
28239 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28241 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28242 determine what is counted.
28244 PR tree-optimization/59643
28245 * tree-predcom.c (split_data_refs_to_components): If one dr is
28246 read and one write, determine_offset fails and the write isn't
28247 in the bad component, just put the read into the bad component.
28249 2014-01-07 Mike Stump <mikestump@comcast.net>
28250 Jakub Jelinek <jakub@redhat.com>
28253 * tree-core.h (struct tree_optimization_option): Change optabs
28254 type from unsigned char * to void *.
28255 * optabs.c (init_tree_optimization_optabs): Adjust
28256 TREE_OPTIMIZATION_OPTABS initialization.
28258 2014-01-06 Jakub Jelinek <jakub@redhat.com>
28261 * config/i386/i386.h (struct machine_function): Add
28262 no_drap_save_restore field.
28263 * config/i386/i386.c (ix86_save_reg): Use
28264 !cfun->machine->no_drap_save_restore instead of
28265 crtl->stack_realign_needed.
28266 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28267 this function clears frame_pointer_needed. Set
28268 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28269 and DRAP reg is needed.
28271 2014-01-06 Marek Polacek <polacek@redhat.com>
28274 * doc/implement-c.texi: Mention that other integer types are
28275 permitted as bit-field types in strictly conforming mode.
28277 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
28279 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28280 is newly allocated.
28282 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
28284 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28286 2014-01-06 Martin Jambor <mjambor@suse.cz>
28289 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28291 * ipa-prop.c (ipa_print_node_params): Fix indentation.
28293 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
28297 * var-tracking.c (add_stores): Preserve the value of the source even if
28298 we don't record the store.
28300 2014-01-06 Terry Guo <terry.guo@arm.com>
28302 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28304 2014-01-05 Iain Sandoe <iain@codesourcery.com>
28307 * config/darwin.c (darwin_function_section): Adjust return values to
28308 correspond to optimisation changes made in r206070.
28310 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
28312 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28313 from prefetch_block tune setting.
28314 (nocona_cost): Correct size of prefetch block to 64.
28316 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
28318 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28319 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28320 used to save the static chain register in the computation of the offset
28321 from which the FP registers need to be restored.
28323 2014-01-04 Jakub Jelinek <jakub@redhat.com>
28325 PR tree-optimization/59519
28326 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28327 ICE if get_current_def (current_new_name) is already non-NULL, as long
28328 as it is a phi result of some other phi in *new_exit_bb that has
28331 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28332 or vmovdqu* for misaligned_operand.
28333 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28334 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28335 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28336 aligned_mem for AVX512F masked aligned load and store builtins and for
28337 non-temporal moves.
28339 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
28341 PR tree-optimization/59651
28342 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28343 Address range for negative step should be added by TYPE_SIZE_UNIT.
28345 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
28347 * config/m68k/m68k.c (handle_move_double): Handle pushes with
28348 overlapping registers also for registers other than the stack pointer.
28350 2014-01-03 Marek Polacek <polacek@redhat.com>
28353 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28356 2014-01-03 Jakub Jelinek <jakub@redhat.com>
28359 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28362 * config/i386/i386.md (MODE_SIZE): New mode attribute.
28363 (push splitter): Use <P:MODE_SIZE> instead of
28364 GET_MODE_SIZE (<P:MODE>mode).
28365 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28366 (mov -1, reg peephole2): Likewise.
28367 * config/i386/sse.md (*mov<mode>_internal,
28368 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28369 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28370 *<code><mode>3, *andnot<mode>3<mask_name>,
28371 <mask_codefor><code><mode>3<mask_name>): Likewise.
28372 * config/i386/subst.md (mask_mode512bit_condition,
28373 sd_mask_mode512bit_condition): Likewise.
28375 2014-01-02 Xinliang David Li <davidxl@google.com>
28377 PR tree-optimization/59303
28378 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28379 (dump_predicates): Better output format.
28380 (pred_equal_p): New function.
28381 (is_neq_relop_p): Ditto.
28382 (is_neq_zero_form_p): Ditto.
28383 (pred_expr_equal_p): Ditto.
28384 (pred_neg_p): Ditto.
28385 (simplify_pred): Ditto.
28386 (simplify_preds_2): Ditto.
28387 (simplify_preds_3): Ditto.
28388 (simplify_preds_4): Ditto.
28389 (simplify_preds): Ditto.
28390 (push_pred): Ditto.
28391 (push_to_worklist): Ditto.
28392 (get_pred_info_from_cmp): Ditto.
28393 (is_degenerated_phi): Ditto.
28394 (normalize_one_pred_1): Ditto.
28395 (normalize_one_pred): Ditto.
28396 (normalize_one_pred_chain): Ditto.
28397 (normalize_preds): Ditto.
28398 (normalize_cond_1): Remove function.
28399 (normalize_cond): Ditto.
28400 (is_gcond_subset_of): Ditto.
28401 (is_subset_of_any): Ditto.
28402 (is_or_set_subset_of): Ditto.
28403 (is_and_set_subset_of): Ditto.
28404 (is_norm_cond_subset_of): Ditto.
28405 (pred_chain_length_cmp): Ditto.
28406 (convert_control_dep_chain_into_preds): Type change.
28407 (find_predicates): Ditto.
28408 (find_def_preds): Ditto.
28409 (destroy_predicates_vecs): Ditto.
28410 (find_matching_predicates_in_rest_chains): Ditto.
28411 (use_pred_not_overlap_with_undef_path_pred): Ditto.
28412 (is_pred_expr_subset): Ditto.
28413 (is_pred_chain_subset_of): Ditto.
28414 (is_included_in): Ditto.
28415 (is_superset_of): Ditto.
28417 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28419 Update copyright years.
28421 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28423 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28424 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28425 config/arc/arc.md, config/arc/arc.opt,
28426 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28427 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28428 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28429 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28430 config/linux-protos.h, config/linux.c, config/winnt-c.c,
28431 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28432 vtable-verify.c, vtable-verify.h: Use the standard form for the
28435 2014-01-02 Tobias Burnus <burnus@net-b.de>
28437 * gcc.c (process_command): Update copyright notice dates.
28438 * gcov-dump.c: Ditto.
28440 * doc/cpp.texi: Bump @copying's copyright year.
28441 * doc/cppinternals.texi: Ditto.
28442 * doc/gcc.texi: Ditto.
28443 * doc/gccint.texi: Ditto.
28444 * doc/gcov.texi: Ditto.
28445 * doc/install.texi: Ditto.
28446 * doc/invoke.texi: Ditto.
28448 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28450 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28452 2014-01-01 Jakub Jelinek <jakub@redhat.com>
28454 * config/i386/sse.md (*mov<mode>_internal): Guard
28455 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28457 PR rtl-optimization/59647
28458 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28459 new_rtx into UNSIGNED_FLOAT rtxes.
28461 Copyright (C) 2014 Free Software Foundation, Inc.
28463 Copying and distribution of this file, with or without modification,
28464 are permitted in any medium without royalty provided the copyright
28465 notice and this notice are preserved.