1 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Anna Tikhonova <anna.tikhonova@intel.com>
4 Ilya Tocar <ilya.tocar@intel.com>
5 Andrey Turetskiy <andrey.turetskiy@intel.com>
6 Ilya Verbin <ilya.verbin@intel.com>
7 Kirill Yukhin <kirill.yukhin@intel.com>
8 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
12 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
13 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
15 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17 Anna Tikhonova <anna.tikhonova@intel.com>
18 Ilya Tocar <ilya.tocar@intel.com>
19 Andrey Turetskiy <andrey.turetskiy@intel.com>
20 Ilya Verbin <ilya.verbin@intel.com>
21 Kirill Yukhin <kirill.yukhin@intel.com>
22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25 (define_mode_iterator VI128_256): New.
26 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
28 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
29 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
30 Anna Tikhonova <anna.tikhonova@intel.com>
31 Ilya Tocar <ilya.tocar@intel.com>
32 Andrey Turetskiy <andrey.turetskiy@intel.com>
33 Ilya Verbin <ilya.verbin@intel.com>
34 Kirill Yukhin <kirill.yukhin@intel.com>
35 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
38 (define_mode_iterator VI8_256_512): New.
39 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
41 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
42 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
44 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
46 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
48 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
49 pointer to the cumulative reloc value and return the value for
51 (compute_reloc_for_rtx): Take a const_rtx. Call
52 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
53 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
54 for_each_rtx for the CONST case.
56 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
58 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
59 (mark_constants_in_pattern): ...this new function to iterate over
61 (mark_constants): Update accordingly.
63 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
65 * varasm.c: Include rtl-iter.h.
66 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
67 Remove the pointer to the cumulative hashval_t and just return
68 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
69 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
70 Accumulate the hashval_ts here instead of const_rtx_hash_1.
72 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
74 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
75 Give real type of data parameter. Remove return value.
76 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
77 to iterate over subrtxes.
79 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
81 * var-tracking.c (use_narrower_mode_test): Turn from being a
82 for_each_rtx callback to being a function that examines each
84 (adjust_mems): Update accordingly.
86 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
88 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
89 callback to being a function that examines each subrtx itself.
90 Remove handling of null rtxes.
91 (add_uses): Update accordingly.
93 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
95 * var-tracking.c: Include rtl-iter.h.
96 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
97 to being a function that examines each subrtx itself.
98 (use_type): Update accordingly.
100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
102 * store-motion.c: Include rtl-iter.h.
103 (extract_mentioned_regs_1): Delete.
104 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
105 for_each_rtx to iterate over subrtxes.
107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
109 * sel-sched.c: Include rtl-iter.h
110 (count_occurrences_1): Delete.
111 (count_occurrences_equiv): Turn rtxes into const_rtxes.
112 Use FOR_EACH_SUBRTX rather than for_each_rtx.
114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
116 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
117 * rtlanal.c (tls_referenced_p_1): Delete.
118 (tls_referenced_p): Take a const_rtx rather than an rtx.
119 Use FOR_EACH_SUBRTX rather than for_each_rtx.
121 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
123 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
124 (for_each_inc_dec): Take an rtx rather than an rtx *.
125 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
126 (cselib_record_sets): Likewise.
127 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
128 (check_for_inc_dec): Likewise.
129 * rtlanal.c (for_each_inc_dec_ops): Delete.
130 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
131 rather than a pointer to the memory address. Replace
132 for_each_inc_dec_ops argument with separate function and data
133 arguments. Abort on non-autoinc addresses.
134 (for_each_inc_dec_find_mem): Delete.
135 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
136 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
138 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
140 * rtl.h (find_all_hard_regs): Declare.
141 * rtlanal.c (find_all_hard_regs): New function.
142 (record_hard_reg_uses_1): Delete.
143 (record_hard_reg_uses): Use find_all_hard_regs.
145 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
147 * rtl.h (replace_label_data): Delete.
148 (replace_label): Take the old label, new label and update-nuses flag
149 as direct arguments. Return void.
150 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
151 * rtlanal.c (replace_label): Update interface as above. Handle
152 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
153 iterator. Use FOR_EACH_SUBRTX_PTR.
155 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
157 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
158 with const_rtx parameters.
159 * varasm.c (get_pool_constant): Likewise.
160 * rtlanal.c (rtx_referenced_p_1): Delete.
161 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
162 Assert that the rtx we're looking for is nonnull. Allow searches
163 for constant pool SYMBOL_REFs.
165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
167 * reload1.c: Include rtl-iter.h.
168 (note_reg_elim_costly): Turn from being a for_each_rtx callback
169 to being a function that examines each subrtx itself.
170 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
172 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
174 * regcprop.c (cprop_find_used_regs_1): Delete.
175 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
177 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
179 * regcprop.c: Include rtl-iter.h.
180 (kill_value): Take a const_rtx.
181 (kill_autoinc_value): Turn from being a for_each_rtx callback
182 to being a function that examines each subrtx itself.
183 (copyprop_hardreg_forward_1): Update accordingly.
185 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
187 * reg-stack.c: Include rtl-iter.h.
188 (subst_stack_regs_in_debug_insn): Delete.
189 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
190 instead of for_each_rtx.
192 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
194 * lower-subreg.c (find_decomposable_subregs): Turn from being
195 a for_each_rtx callback to being a function that examines each
196 subrtx itself. Remove handling of null rtxes.
197 (decompose_multiword_subregs): Update accordingly.
199 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
201 * lower-subreg.c (adjust_decomposed_uses): Delete.
202 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
203 Remove handling of null rtxes.
205 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
207 * lower-subreg.c: Include rtl-iter.h.
208 (resolve_subreg_use): Turn from being a for_each_rtx callback
209 to being a function that examines each subrtx itself. Remove
210 handling of null rtxes.
211 (resolve_reg_notes, resolve_simple_move): Update accordingly.
212 (decompose_multiword_subregs): Likewise.
214 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
216 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
217 to being a function that examines each subrtx itself.
218 (simplify_using_condition, simplify_using_initial_values): Update
221 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
223 * loop-iv.c: Include rtl-iter.h.
224 (find_single_def_src): New function.
225 (replace_single_def_regs): Turn from being a for_each_rtx callback
226 to being a function that examines each subrtx itself.
227 (replace_in_expr, simplify_using_initial_values): Update accordingly.
229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
231 * jump.c (eh_returnjump_p_1): Delete.
232 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
233 Remove handling of null rtxes.
235 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
237 * jump.c: Include rtl-iter.h.
238 (returnjump_p_1): Delete.
239 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
240 Remove handling of null rtxes.
242 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
244 * ira.c: Include rtl-iter.h.
245 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
246 to being a function that examines each subrtx itself. Remove
247 handling of null rtxes.
248 (update_equiv_regs): Update call accordingly.
250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
252 * fwprop.c: Include rtl-iter.h.
253 (varying_mem_p): Turn from being a for_each_rtx callback to being
254 a function that examines each subrtx itself.
255 (propagate_rtx): Update accordingly.
257 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
259 * function.c: Include rtl-iter.h
260 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
261 callback to being a function that examines each subrtx itself.
262 Return the changed flag.
263 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
264 (instantiate_virtual_regs): Update calls accordingly.
266 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
268 * final.c: Include rtl-iter.h.
269 (mark_symbol_ref_as_used): Delete.
270 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
273 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
275 * emit-rtl.c: Include rtl-iter.h.
276 (find_auto_inc): Turn from being a for_each_rtx callback to being
277 a function that examines each subrtx itself. Assume the first operand
278 to an RTX_AUTOINC is the automodified register.
279 (try_split): Update call accordingly.
281 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
283 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
284 Return a bool, inverting the result so that 0/false means "not ok".
285 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
287 (mem_loc_descriptor, add_const_value_attribute)
288 (resolve_addr_in_expr): Update calls accordingly.
290 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
292 * dwarf2out.c: Include rtl-iter.h.
293 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
294 Remove unused data parameter. Return a bool, inverting the result
295 so that 0/false means "not ok".
296 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
297 instead of for_each_rtx.
299 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
301 * dse.c: Include rtl-iter.h.
302 (check_mem_read_rtx): Change void * parameter to real type.
304 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
305 for_each_rtx. Don't handle null rtxes.
307 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
309 * df-problems.c: Include rtl-iter.h.
310 (find_memory): Turn from being a for_each_rtx callback to being
311 a function that examines each subrtx itself. Continue to look for
312 volatile references even after a nonvolatile one has been found.
313 (can_move_insns_across): Update calls accordingly.
315 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
317 * ddg.c (walk_mems_2, walk_mems_1): Delete.
318 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
319 to iterate over subrtxes. Return a bool rather than an int.
321 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
323 * ddg.c: Include rtl-iter.h.
324 (mark_mem_use_1): Rename to...
325 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
326 instead of for_each_rtx.
327 (mem_read_insn_p): Update accordingly.
329 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
331 * cse.c (change_cc_mode_args): Delete.
332 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
333 a function that examines each subrtx itself. Take the fields of
334 change_cc_mode_args as argument and return void.
335 (cse_change_cc_mode_insn): Update calls accordingly.
337 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
339 * cse.c (is_dead_reg): Change argument to const_rtx.
340 (dead_debug_insn_data): Delete.
341 (is_dead_debug_insn): Expand commentary. Turn from being a
342 for_each_rtx callback to being a function that examines
343 each subrtx itself. Take the fields of dead_debug_insn_data
345 (delete_trivially_dead_insns): Update call accordingly.
347 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
349 * cse.c (check_for_label_ref): Move earlier in file. Turn from
350 being a for_each_rtx callback to being a function that examines
352 (cse_extended_basic_block): Update call accordingly.
354 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
356 * cse.c (check_dependence_data): Delete.
357 (check_dependence): Change from being a for_each_rtx callback to being
358 a function that examines all subrtxes itself. Don't handle null rtxes.
359 (invalidate): Update call accordingly.
361 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
363 * cse.c: Include rtl-iter.h.
364 (approx_reg_cost_1): Delete.
365 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
366 Don't handle null rtxes.
368 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
370 * cfgcleanup.c: Include rtl-iter.h.
371 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
372 to being a function that examines each subrtx itself.
373 (thread_jump): Update accordingly.
375 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
377 * combine-stack-adj.c: Include rtl-iter.h.
378 (record_stack_refs_data): Delete.
379 (record_stack_refs): Turn from being a for_each_rtx callback
380 to being a function that examines each subrtx itself.
381 Take a pointer to the reflist. Invert sense of return value
382 so that true means success and false means failure. Don't
384 (combine_stack_adjustments_for_block): Update accordingly.
386 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
388 * combine.c (record_truncated_value): Turn from being a for_each_rtx
389 callback to a function that takes an rtx and returns a bool
390 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
393 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
395 * combine.c: Include rtl-iter.h.
396 (unmentioned_reg_p_1): Delete.
397 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
398 Don't handle null rtxes.
400 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
402 * calls.c: Include rtl-iter.h.
403 (internal_arg_pointer_based_exp_1): Delete.
404 (internal_arg_pointer_based_exp): Take a const_rtx.
405 Use FOR_EACH_SUBRTX to iterate over subrtxes.
407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
409 * caller-save.c: Include rtl-iter.h.
410 (add_used_regs_1): Delete.
411 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
412 to iterate over subrtxes. Assert that any remaining pseudos
415 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
417 * bt-load.c: Include rtl-iter.h.
418 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
419 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
420 to iterate over subrtxes.
421 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
422 find_btr_use rather than btr_referenced_p.
424 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
426 * alias.c: Include rtl-iter.h.
427 (refs_newer_value_cb): Delete.
428 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
430 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
432 * rtl-iter.h: New file.
433 * rtlanal.c: Include it.
434 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
435 (generic_subrtx_iterator <T>::add_single_to_queue)
436 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
437 (generic_subrtx_iterator <T>::free_array): New functions.
438 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
439 (generic_subrtx_iterator <const_rtx_accessor>)
440 (generic_subrtx_iterator <rtx_var_accessor>
441 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
442 (setup_reg_subrtx_bounds): New function.
443 (init_rtlanal): Call it.
445 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
448 * config/sh/sh.md (ashlsi3): Handle negative shift count for
450 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
452 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
454 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
456 2014-08-27 David Malcolm <dmalcolm@redhat.com>
458 * rtl.h (JUMP_LABEL_AS_INSN): New.
460 2014-08-27 David Malcolm <dmalcolm@redhat.com>
462 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
464 (alloc_EXPR_LIST): Strengthen return type from rtx to
466 (remove_free_EXPR_LIST_node): Likewise for param.
467 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
468 from rtx to rtx_expr_list *.
469 * sched-int.h (struct deps_desc): Strengthen fields
470 "pending_read_mems" and "pending_write_mems" from rtx to
473 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
474 rtx to rtx_expr_list *.
475 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
476 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
478 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
479 from rtx to rtx_expr_list *.
480 * loop-iv.c (simplify_using_initial_values): Strengthen local
481 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
482 "pnote_next" from rtx * to rtx_expr_list **.
483 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
484 param "exprp" from rtx * to rtx_expr_list **.
485 (add_insn_mem_dependence): Strengthen local "mem_list" from
486 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
488 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
489 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
490 param "old_mems_p" from rtx * to rtx_expr_list **.
491 * var-tracking.c (struct adjust_mem_data): Strengthen field
492 "side_effects" from rtx to rtx_expr_list *.
493 (adjust_insn): Replace NULL_RTX with NULL when assigning to
495 (prepare_call_arguments): Likewise.
497 2014-08-27 David Malcolm <dmalcolm@redhat.com>
499 * function.h (struct rtl_data): Strengthen field
500 "x_stack_slot_list" from rtx to rtx_expr_list *.
502 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
503 when assigning to stack_slot_list.
505 2014-08-27 David Malcolm <dmalcolm@redhat.com>
507 * function.h (struct rtl_data): Strengthen field
508 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
509 * rtl.h (remove_node_from_expr_list): Strengthen second param from
510 rtx * to rtx_expr_list **.
512 * cfgbuild.c (make_edges): In loop over
513 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
514 rtx_expr_list *, and use methods of the latter class to clarify
516 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
517 rtx_expr_list *, and use methods of the latter class to clarify
519 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
520 * reload1.c (set_initial_label_offsets): Likewise for local "x".
521 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
522 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
523 to rtx_expr_list *. Use methods of the latter class to clarify
526 2014-08-27 David Malcolm <dmalcolm@redhat.com>
528 * function.h (struct expr_status): Strengthen field
529 "x_forced_labels" from rtx to rtx_expr_list *.
531 * cfgbuild.c (make_edges): Split local "x" into two locals,
532 strengthening one from rtx to rtx_expr_list *, and using methods
534 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
535 loop over forced_labels, introduce strengthen it from rtx to
536 rtx_expr_list *, using methods to clarify the code.
537 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
538 to rtx_expr_list *, using methods of said class to clarify the
540 * reload1.c (set_initial_label_offsets): Split local "x" into two
541 per-loop variables, strengthening the first from rtx to
542 rtx_expr_list * and using methods.
544 2014-08-27 David Malcolm <dmalcolm@redhat.com>
546 * coretypes.h (class rtx_expr_list): Add forward declaration.
547 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
548 * gengenrtl.c (special_rtx): Add EXPR_LIST.
549 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
550 invariant: GET_CODE (X) == EXPR_LIST.
551 (is_a_helper <rtx_expr_list *>::test): New.
552 (rtx_expr_list::next): New.
553 (rtx_expr_list::element): New.
554 (gen_rtx_EXPR_LIST): New.
556 2014-08-27 David Malcolm <dmalcolm@redhat.com>
558 * varasm.c (mark_constants): Convert a GET_CODE check into a
559 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
560 Use methods of rtx_sequence to clarify the code.
562 2014-08-27 David Malcolm <dmalcolm@redhat.com>
564 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
565 local "seq" via a checked cast, and use methods of rtx_sequence
566 to simplify the code.
568 2014-08-27 David Malcolm <dmalcolm@redhat.com>
570 * resource.c (mark_referenced_resources): Strengthen local
571 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
572 using methods of rtx_sequence to clarify the code.
573 (find_dead_or_set_registers): Within the switch statement, convert
574 a GET_CODE check to a dyn_cast, introducing local "seq". Within
575 the JUMP_P handling, introduce another local "seq", adding a
576 checked cast to rtx_sequence *. In both cases, use methods of
577 rtx_sequence to clarify the code.
578 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
579 via a checked cast, and use methods of rtx_sequence to simplify
582 2014-08-27 David Malcolm <dmalcolm@redhat.com>
584 * reorg.c (redundant_insn): In two places in the function, replace
585 a check of GET_CODE with a dyn_cast, introducing local "seq", and
586 usings methods of rtx_sequence to clarify the code.
588 2014-08-27 David Malcolm <dmalcolm@redhat.com>
590 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
591 local "seq" with a checked cast, and use methods of rtx_sequence
594 2014-08-27 David Malcolm <dmalcolm@redhat.com>
596 * function.c (contains): Introduce local "seq" for PATTERN (insn),
597 with a checked cast, in the region for where we know it's a
598 SEQUENCE. Use methods of rtx_sequence.
600 2014-08-27 David Malcolm <dmalcolm@redhat.com>
602 * final.c (get_attr_length_1): Replace GET_CODE check with a
603 dyn_cast, introducing local "seq" and the use of methods of
605 (shorten_branches): Likewise, introducing local "body_seq".
606 Strengthen local "inner_insn" from rtx to rtx_insn *.
607 (reemit_insn_block_notes): Replace GET_CODE check with a
608 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
609 Use methods of rtx_sequence.
610 (final_scan_insn): Likewise, introducing local "seq" for when
611 "body" is known to be a SEQUENCE, using its methods.
613 2014-08-27 David Malcolm <dmalcolm@redhat.com>
615 * except.c (can_throw_external): Strengthen local "seq" from rtx
616 to rtx_sequence *. Use methods of rtx_sequence.
617 (insn_nothrow_p): Likewise.
619 2014-08-27 David Malcolm <dmalcolm@redhat.com>
621 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
622 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
623 Use methods of rtx_sequence.
624 (scan_trace): Likewise for local "pat".
626 2014-08-27 David Malcolm <dmalcolm@redhat.com>
628 * coretypes.h (class rtx_sequence): Add forward declaration.
629 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
630 invariant: GET_CODE (X) == SEQUENCE.
631 (is_a_helper <rtx_sequence *>::test): New.
632 (is_a_helper <const rtx_sequence *>::test): New.
633 (rtx_sequence::len): New.
634 (rtx_sequence::element): New.
635 (rtx_sequence::insn): New.
637 2014-08-27 David Malcolm <dmalcolm@redhat.com>
639 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
641 (alloc_INSN_LIST): Strengthen return type from rtx to
643 (copy_INSN_LIST): Likewise for return type and param.
644 (concat_INSN_LIST): Likewise for both params and return type.
645 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
646 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
647 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
648 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
650 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
651 "implicit_sets", "control_uses", "clobbers" from rtx to
653 (struct deps_desc): Likewise for fields "pending_read_insns",
654 "pending_write_insns", "pending_jump_insns",
655 "last_pending_memory_flush", "last_function_call",
656 "last_function_call_may_noreturn", "sched_before_next_call",
657 "sched_before_next_jump".
658 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
659 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
661 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
662 from rtx to rtx_insn_list *.
663 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
666 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
668 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
670 (queue_insn): Likewise for local "link".
671 (struct haifa_saved_data): Strengthen field "insn_queue" from
672 rtx * to rtx_insn_list **.
673 (save_backtrack_point): Update allocation of save->insn_queue to
674 reflect the strengthening of elements from rtx to rtx_insn_list *.
675 (queue_to_ready): Strengthen local "link" from rtx to
676 rtx_insn_list *; use methods "next" and "insn" when traversing the
678 (early_queue_to_ready): Likewise for locals "link", "next_link",
680 (schedule_block): Update allocation of insn_queue to reflect the
681 strengthening of elements from rtx to rtx_insn_list *. Strengthen
682 local "link" from rtx to rtx_insn_list *, and use methods when
684 (add_to_speculative_block): Strengthen locals "twins" and
685 "next_node" from rtx to rtx_insn_list *, and use methods when
686 working with them. Strengthen local "twin" from rtx to
687 rtx_insn *, eliminating a checked cast.
688 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
689 from rtx to rtx_insn_list *, and use methods when working with
692 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
693 from rtx to rtx_insn_list *, adding a checked cast.
694 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
696 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
697 "newlink" from rtx to rtx_insn_list *. Strengthen local
698 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
699 from rtx to rtx_insn *.
700 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
701 from rtx to rtx_insn_list *. Use methods of the latter class.
702 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
703 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
704 (remove_free_INSN_LIST_node): Strengthen return type and local
705 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
706 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
707 rtx_insn_list *, using "insn" method.
709 * sched-deps.c (add_dependence_list): Strengthen param "list"
710 from rtx to rtx_insn_list *, and use methods when working with it.
711 (add_dependence_list_and_free): Strengthen param "listp" from
712 rtx * to rtx_insn_list **.
713 (remove_from_dependence_list): Strenghten param "listp" from rtx *
714 to rtx_insn_list **, and use methods when working with *listp.
715 (remove_from_both_dependence_lists): Strengthen param "listp" from
716 rtx * to rtx_insn_list **
717 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
718 to rtx_insn_list **. Eliminate local "link", in favor of two new
719 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
721 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
722 by introducing local "cond_deps".
723 (remove_from_deps): Strengthen param "insn" from rtx to
726 * sched-rgn.c (concat_insn_mem_list): Strengthen param
727 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
728 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
729 Use methods of rtx_insn_list.
731 * store-motion.c (struct st_expr): Strengthen fields
732 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
733 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
735 (find_moveable_store): Split out "tmp" into multiple more-tightly
736 scoped locals. Use methods of rtx_insn_list *.
737 (compute_store_table): Strengthen local "tmp" from rtx to
738 rtx_insn *. Use methods of rtx_insn_list *.
740 2014-08-27 David Malcolm <dmalcolm@redhat.com>
742 * coretypes.h (class rtx_insn_list): Add forward declaration.
743 * rtl.h (class rtx_insn_list): New subclass of rtx_def
744 (is_a_helper <rtx_insn_list *>::test): New.
745 (rtx_insn_list::next): New.
746 (rtx_insn_list::insn): New.
747 (gen_rtx_INSN_LIST): Add prototype.
748 * emit-rtl.c (gen_rtx_INSN_LIST): New.
749 * gengenrtl.c (special_rtx): Add INSN_LIST.
751 2014-08-27 David Malcolm <dmalcolm@redhat.com>
753 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
754 "prev" from rtx to rtx_insn *.
756 2014-08-27 David Malcolm <dmalcolm@redhat.com>
758 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
759 functions. Require merely an rtx for now, not an rtx_insn *.
760 (BLOCK_FOR_INSN): Likewise.
761 (INSN_LOCATION): Likewise.
762 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
764 2014-08-27 David Malcolm <dmalcolm@redhat.com>
766 * rtl.h (PATTERN): Convert this macro into a pair of inline
767 functions, for now, requiring const_rtx and rtx.
769 2014-08-27 David Malcolm <dmalcolm@redhat.com>
771 * target.def (unwind_emit): Strengthen param "insn" from rtx to
773 (final_postscan_insn): Likewise.
774 (adjust_cost): Likewise.
775 (adjust_priority): Likewise.
776 (variable_issue): Likewise.
777 (macro_fusion_pair_p): Likewise.
778 (dfa_post_cycle_insn): Likewise.
779 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
780 (first_cycle_multipass_issue): Likewise.
781 (dfa_new_cycle): Likewise.
782 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
783 (speculate_insn): Likewise for param "insn".
784 (gen_spec_check): Likewise for params "insn" and "label".
785 (get_insn_spec_ds): Likewise for param "insn".
786 (get_insn_checked_ds): Likewise.
787 (dispatch_do): Likewise.
788 (dispatch): Likewise.
789 (cannot_copy_insn_p): Likewise.
790 (invalid_within_doloop): Likewise.
791 (legitimate_combined_insn): Likewise.
795 * doc/tm.texi: Automatically updated to reflect changes to
798 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
800 (schedule_block): Likewise.
801 (sched_init): Likewise.
802 (sched_speculate_insn): Strengthen param "insn" from rtx to
804 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
806 * hooks.c (hook_bool_rtx_true): Rename to...
807 hook_bool_rtx_insn_true): ...this, and strengthen first param from
809 (hook_constcharptr_const_rtx_null): Rename to...
810 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
811 first param from const_rtx to const rtx_insn *.
812 (hook_bool_rtx_int_false): Rename to...
813 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
814 param from rtx to rtx_insn *.
815 (hook_void_rtx_int): Rename to...
816 (hook_void_rtx_insn_int): ...this, and strengthen first param from
819 * hooks.h (hook_bool_rtx_true): Rename to...
820 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
822 (hook_bool_rtx_int_false): Rename to...
823 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
824 param from rtx to rtx_insn *.
825 (hook_void_rtx_int): Rename to...
826 (hook_void_rtx_insn_int): ...this, and strengthen first param from
828 (hook_constcharptr_const_rtx_null): Rename to...
829 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
830 first param from const_rtx to const rtx_insn *.
832 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
833 and local "prev" from rtx to rtx_insn *.
835 * sched-int.h (sched_speculate_insn): Strengthen first param from
838 * sel-sched.c (create_speculation_check): Likewise for local "label".
839 * targhooks.c (default_invalid_within_doloop): Strengthen param
840 "insn" from const_rtx to const rtx_insn *.
841 * targhooks.h (default_invalid_within_doloop): Strengthen param
842 from const_rtx to const rtx_insn *.
844 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
845 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
847 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
849 (arc_invalid_within_doloop): Likewise, with const.
851 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
852 (arm_cannot_copy_insn_p): Likewise for param "insn".
853 (arm_unwind_emit): Likewise.
855 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
858 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
859 (c6x_variable_issue): Likewise. Removed now-redundant checked
861 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
863 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
864 Likewise for param "insn".
865 (epiphany_mode_after): Likewise.
866 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
867 params "insn", "dep_insn".
868 (epiphany_mode_needed): Likewise for param "insn".
869 (epiphany_mode_after): Likewise.
871 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
872 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
873 (ix86_avx_u128_mode_needed): Likewise.
874 (ix86_i387_mode_needed): Likewise.
875 (ix86_mode_needed): Likewise.
876 (ix86_avx_u128_mode_after): Likewise.
877 (ix86_mode_after): Likewise.
878 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
879 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
880 (ix86_adjust_priority): Likewise for param "insn".
881 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
882 (do_dispatch): Likewise.
883 (has_dispatch): Likewise.
884 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
886 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
887 reflect renaming of default hook implementation from
888 hook_constcharptr_const_rtx_null to
889 hook_constcharptr_const_rtx_insn_null.
890 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
892 (ia64_variable_issue): Likewise for param "insn".
893 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
894 (ia64_dfa_new_cycle): Likewise.
895 (ia64_get_insn_spec_ds): Likewise.
896 (ia64_get_insn_checked_ds): Likewise.
897 (ia64_speculate_insn): Likewise.
898 (ia64_gen_spec_check): Likewise for params "insn", "label".
899 (ia64_asm_unwind_emit): Likewise for param "insn".
901 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
903 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
905 (m68k_sched_variable_issue): Likewise for param "insn".
907 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
910 * config/microblaze/microblaze.c (microblaze_adjust_cost):
911 Likewise for params "insn", "dep".
913 * config/mips/mips.c (mips_adjust_cost): Likewise.
914 (mips_variable_issue): Likewise for param "insn".
915 (mips_final_postscan_insn): Likewise.
917 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
918 for params "insn", "dep".
920 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
922 (pa_adjust_priority): Likewise for param "insn".
924 * config/picochip/picochip.c (picochip_sched_adjust_cost):
925 Likewise for params "insn", "dep_insn".
927 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
929 (rs6000_variable_issue): Likewise.
930 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
931 (rs6000_debug_adjust_cost): Likewise.
932 (rs6000_adjust_priority): Likewise for param "insn".
933 (rs6000_use_sched_lookahead_guard): Likewise.
934 (get_next_active_insn): Likewise for return type and both params.
935 (redefine_groups): Likewise for params "prev_head_insn", "tail"
936 and locals "insn", "next_insn".
937 (pad_groups): Likewise.
939 * config/s390/s390.c (s390_adjust_priority): Likewise for param
941 (s390_cannot_copy_insn_p): Likewise.
942 (s390_sched_variable_issue): Likewise for third param, eliminating
944 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
945 default hook implementation from hook_constcharptr_const_rtx_null
946 to hook_constcharptr_const_rtx_insn_null.
948 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
949 from rtx to rtx_insn *.
950 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
951 (sh_variable_issue): Likewise for param "insn".
952 (sh_dfa_new_cycle): Likewise.
953 (sh_mode_needed): Likewise.
954 (sh_mode_after): Likewise.
956 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
957 params "insn", "dep_insn".
958 (hypersparc_adjust_cost): Likewise.
959 (sparc_adjust_cost): Likewise.
961 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
962 param, eliminated checked cast.
963 (spu_sched_adjust_cost): Likewise for first and third params.
965 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
966 params "insn" and "dep_insn" from rtx to rtx_insn *.
968 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
970 2014-08-27 David Malcolm <dmalcolm@redhat.com>
972 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
973 (set_is_load_p): ...this, updating to work on a SET pattern rather
975 (is_store_insn): Rename to...
976 (set_is_store_p): ...this, updating to work on a SET pattern
978 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
979 top of function to where it is needed. Rewrite the bogus
980 condition that checks for "insn" and "dep" being PARALLEL to
981 instead use single_set, introducing locals "insn_set" and
982 "dep_set". Given that we only ever returned "cost" for a non-pair
983 of SETs, bail out early if we don't have a pair of SET.
984 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
985 use the new locals "insn_set" and "dep_set", and update calls to
986 is_load_insn and is_store_insn to be calls to set_is_load_p and
989 2014-08-27 Guozhi Wei <carrot@google.com>
992 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
993 amount before using it.
995 2014-08-27 Richard Biener <rguenther@suse.de>
997 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
998 get_maxval_strlen inside a more useful API.
999 (gimple_fold_builtin_with_strlen): Remove and fold into ...
1000 (gimple_fold_builtin): ... caller.
1001 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1002 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1003 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1004 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1005 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1006 gimple_fold_builtin_sprintf): Adjust to compute maxval
1009 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
1012 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1014 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1015 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1016 Anna Tikhonova <anna.tikhonova@intel.com>
1017 Ilya Tocar <ilya.tocar@intel.com>
1018 Andrey Turetskiy <andrey.turetskiy@intel.com>
1019 Ilya Verbin <ilya.verbin@intel.com>
1020 Kirill Yukhin <kirill.yukhin@intel.com>
1021 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1023 * config/i386/sse.md
1024 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1025 Use `concat_tg_mode' attribute to determine asm register size.
1027 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1028 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1029 Anna Tikhonova <anna.tikhonova@intel.com>
1030 Ilya Tocar <ilya.tocar@intel.com>
1031 Andrey Turetskiy <andrey.turetskiy@intel.com>
1032 Ilya Verbin <ilya.verbin@intel.com>
1033 Kirill Yukhin <kirill.yukhin@intel.com>
1034 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1036 * config/i386/sse.md
1037 (define_mode_iterator VI48_AVX512VL): New.
1038 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1039 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1040 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1041 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1042 with VI1): Change mode iterator.
1043 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1044 with VI_ULOADSTORE_BW_AVX512VL): New.
1045 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1046 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1047 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1048 with VI1): Change mode iterator.
1049 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1050 with VI_ULOADSTORE_BW_AVX512VL): New.
1051 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1052 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1053 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1054 with VI1): Change mode iterator.
1055 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1056 with VI_ULOADSTORE_BW_AVX512VL): New.
1057 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1058 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
1059 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
1060 (define_insn "<avx512>_storedqu<mode>_mask" with
1061 VI48_AVX512VL): New.
1062 (define_insn "<avx512>_storedqu<mode>_mask" with
1063 VI12_AVX512VL): Ditto.
1065 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1067 Anna Tikhonova <anna.tikhonova@intel.com>
1068 Ilya Tocar <ilya.tocar@intel.com>
1069 Andrey Turetskiy <andrey.turetskiy@intel.com>
1070 Ilya Verbin <ilya.verbin@intel.com>
1071 Kirill Yukhin <kirill.yukhin@intel.com>
1072 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1074 * config/i386/sse.md
1075 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1076 (define_mode_iterator VI48_AVX512BW): New.
1077 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
1078 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1079 with VI48_AVX2_48_AVX512F): New.
1080 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1081 with VI2_AVX512VL): Ditto.
1083 2014-08-27 Richard Biener <rguenther@suse.de>
1086 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
1087 (fold_builtin_3): Do not fold strcat_chk here.
1088 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
1090 (gimple_fold_builtin): Fold strcat_chk here.
1092 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
1094 * dwarf2out.h (dwarf2out_decl): Remove prototype.
1095 * dwarf2out.c (dwarf2out_decl): Make static.
1097 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1099 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1101 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1103 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1104 from rtx to rtx_insn *.
1105 (cselib_lookup_from_insn): Likewise for final param.
1106 (cselib_subst_to_values_from_insn): Likewise.
1107 (cselib_add_permanent_equiv): Likewise.
1109 * cselib.c (cselib_current_insn): Likewise for this variable.
1110 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1111 (cselib_lookup_from_insn): Likewise.
1112 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1113 "save_cselib_current_insn".
1114 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1116 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1117 from rtx to rtx_insn *.
1119 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1121 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1124 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1126 * df.h (df_dump_insn_problem_function): Strengthen first param of
1127 this callback from const_rtx to const rtx_insn *.
1128 (struct df_insn_info): Strengthen field "insn" from rtx to
1130 (DF_REF_INSN): Eliminate this function, reinstating the older
1132 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1133 (df_reg_defined): Likewise.
1134 (df_find_use): Likewise.
1135 (df_reg_used): Likewise.
1136 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1138 (df_dump_insn_bottom): Likewise.
1139 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1140 (df_insn_debug_regno): Likewise.
1141 (debug_df_insn): Likewise.
1142 (df_rd_simulate_one_insn): Likewise for param 2.
1143 (df_word_lr_simulate_defs): Likewise for param 1.
1144 (df_word_lr_simulate_uses): Likewise.
1145 (df_md_simulate_one_insn): Likewise for param 2.
1146 (df_simulate_find_noclobber_defs): Likewise for param 1.
1147 (df_simulate_find_defs): Likewise.
1148 (df_simulate_defs): Likewise.
1149 (df_simulate_uses): Likewise.
1150 (df_simulate_one_insn_backwards): Likewise for param 2.
1151 (df_simulate_one_insn_forwards): Likewise.
1152 (df_uses_create): Likewise for param 2.
1153 (df_insn_create_insn_record): Likewise for param 1.
1154 (df_insn_delete): Likewise.
1155 (df_insn_rescan): Likewise.
1156 (df_insn_rescan_debug_internal): Likewise.
1157 (df_insn_change_bb): Likewise.
1158 (df_notes_rescan): Likewise.
1159 * rtl.h (remove_death): Likewise for param 2.
1160 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1162 * sched-int.h (reemit_notes): Strengthen param from rtx to
1164 * valtrack.h (propagate_for_debug): Likewise for param 1.
1166 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1167 local "tmp_rtx" from const_rtx to const rtx_insn *.
1168 * combine.c (remove_death): Strengthen param "insn" from rtx to
1170 (move_deaths): Likewise for local "where_dead".
1171 * cse.c (delete_trivially_dead_insns): Introduce local
1172 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1173 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1175 (df_reg_defined): Likewise.
1176 (df_find_use): Likewise.
1177 (df_reg_used): Likewise.
1178 (df_dump_insn_problem_data): Strengthen param "insn" from
1179 const_rtx to const rtx_insn *.
1180 (df_dump_insn_top): Likewise.
1181 (df_dump_insn_bottom): Likewise.
1182 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1183 (df_insn_debug_regno): Likewise.
1184 (debug_df_insn): Likewise.
1185 (DF_REF_INSN): Delete.
1186 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1187 from rtx to rtx_insn *.
1188 (df_chain_insn_top_dump): Strengthen param "insn" from
1189 const_rtx to const rtx_insn *.
1190 (df_chain_insn_bottom_dump): Likewise.
1191 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1193 (df_word_lr_simulate_uses): Likewise.
1194 (df_print_note): Likewise.
1195 (df_remove_dead_and_unused_notes): Likewise.
1196 (df_set_unused_notes_for_mw): Likewise.
1197 (df_set_dead_notes_for_mw): Likewise.
1198 (df_create_unused_note): Likewise.
1199 (df_simulate_find_defs): Likewise.
1200 (df_simulate_find_uses): Likewise.
1201 (df_simulate_find_noclobber_defs): Likewise.
1202 (df_simulate_defs): Likewise.
1203 (df_simulate_uses): Likewise.
1204 (df_simulate_one_insn_backwards): Likewise.
1205 (df_simulate_one_insn_forwards): Likewise.
1206 (df_md_simulate_one_insn): Likewise.
1207 * df-scan.c (df_uses_create): Likewise.
1208 (df_insn_create_insn_record): Likewise.
1209 (df_insn_delete): Likewise.
1210 (df_insn_rescan): Likewise.
1211 (df_insn_rescan_debug_internal): Likewise.
1212 (df_insn_change_bb): Likewise.
1213 (df_notes_rescan): Likewise.
1214 (df_refs_add_to_chains): Likewise.
1215 (df_insn_refs_verify): Likewise.
1216 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1217 when invoking df_insn_delete.
1218 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1219 (set_unique_reg_note): Add checked cast.
1220 * final.c (cleanup_subreg_operands): Likewise.
1221 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1222 "insn" from rtx to rtx_insn *.
1223 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1224 "last" from rtx to rtx_insn *.
1225 * ira-emit.c (change_regs_in_insn): New function.
1226 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1227 Invoke change_regs_in_insn rather than change_regs.
1228 * ira.c (update_equiv_regs): Strengthen locals "insn",
1229 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1230 for_each_rtx_in_insn rather than for_each_rtx.
1231 * recog.c (confirm_change_group): Add checked casts.
1232 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1234 (peep2_fill_buffer): Add checked cast.
1235 * rtlanal.c (remove_note): Likewise.
1236 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1237 locals "next" "end" from rtx to rtx_insn *.
1239 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1241 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1243 (struct reg_use_data): Likewise for field "insn".
1244 (insn_cost): Likewise for param.
1245 (real_insn_for_shadow): Likewise for return type and param.
1246 (increase_insn_priority): Likewise for param 1.
1247 (debug_dependencies): Likewise for both params.
1249 * haifa-sched.c (insn_delay): Likewise for param "insn".
1250 (real_insn_for_shadow): Likewise for return type and param "insn".
1251 (update_insn_after_change): Likewise for param "insn".
1252 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1254 (insn_cost): Likewise for param "insn".
1255 (increase_insn_priority): Likewise.
1256 (calculate_reg_deaths): Likewise.
1257 (setup_insn_reg_pressure_info): Likewise.
1258 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1259 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1260 (model_recompute): Likewise.
1261 (must_restore_pattern_p): Likewise for param "next".
1262 (model_excess_cost): Likewise for param "insn".
1263 (queue_remove): Likewise.
1264 (adjust_priority): Likewise for param "prev".
1265 (update_register_pressure): Likewise for param "insn".
1266 (setup_insn_max_reg_pressure): Likewise for local "insn".
1267 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1268 (model_add_to_schedule): Likewise.
1269 (model_reset_queue_indices): Likewise for local "insn".
1270 (unschedule_insns_until): Strengthen local "recompute_vec" from
1271 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1272 "con" from rtx to rtx_insn *.
1273 (restore_last_backtrack_point): Likewise for both locals "x". Add
1275 (estimate_insn_tick): Likewise for param "insn".
1276 (commit_schedule): Likewise for params "prev_head", "tail" and
1278 (verify_shadows): Likewise for locals "i1", "i2".
1279 (dump_insn_stream): Likewise for params "head", "tail" and locals
1280 "next_tail", "insn".
1281 (schedule_block): Likewise for locals "insn", "x". Add a checked
1283 (fix_inter_tick): Likewise for params "head", "tail".
1284 (create_check_block_twin): Likewise for local "jump".
1285 (haifa_change_pattern): Likewise for param "insn".
1286 (haifa_speculate_insn): Likewise.
1287 (dump_new_block_header): Likewise for params "head", "tail".
1288 (fix_jump_move): Likewise for param "jump".
1289 (move_block_after_check): Likewise.
1290 (sched_init_insn_luid): Likewise for param "insn".
1291 (sched_init_luids): Likewise for local "insn".
1292 (insn_luid): Likewise for param "insn".
1293 (init_h_i_d): Likewise.
1294 (haifa_init_h_i_d): Likewise for local "insn".
1295 (haifa_init_insn): Likewise for param "insn".
1296 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1298 (create_insn_reg_use): Likewise for param "insn".
1299 (setup_insn_reg_uses): Likewise. Add a checked cast.
1300 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1301 "tail" from rtx to rtx_insn *.
1302 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1303 "insn", "next_tail".
1305 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1307 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1308 from rtx to rtx_insn *.
1309 (model_add_to_schedule): Likewise for locals "start", "end",
1312 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1314 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1316 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1317 "to" and locals "insn", "next", "copy". Remove now-redundant
1320 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1322 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1323 rtx_insn * and param 4 from rtx * to rtx_insn **.
1324 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1325 param 2 from rtx * to rtx_insn **.
1327 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1328 rtx_insn * and final param from rtx * to rtx_insn **.
1330 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1331 from rtx to rtx_insn *.
1332 (try_head_merge_bb): Likewise for both locals named "move_upto".
1333 * df-problems.c (can_move_insns_across): Likewise for params
1334 "from", "to", "across_from", "across_to" and locals "insn",
1335 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1337 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1338 from rtx to rtx_insn *.
1339 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1340 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1341 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1343 (noce_try_abs): Likewise.
1344 (noce_get_condition): Likewise for param "jump". Strengthen param
1345 "earliest" from rtx * to rtx_insn **.
1346 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1348 (find_cond_trap): Likewise.
1349 (dead_or_predicable): Likewise for local "earliest".
1350 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1352 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1353 and local "prev". Strengthen param "earliest" from rtx * to
1355 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1356 Strengthen param "earliest" from rtx * to rtx_insn **.
1358 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1360 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1361 "to" and local "insn" from rtx to rtx_insn *.
1363 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1365 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1366 from rtx to rtx_insn *.
1367 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1368 (code_motion_path_driver): Likewise for local "last_insn".
1369 (simplify_changed_insns): Likewise for local "insn".
1371 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1373 * rtl.h (push_to_sequence): Strengthen param from rtx to
1375 (push_to_sequence2): Likewise for both params.
1376 (delete_insns_since): Likewise for param.
1377 (reorder_insns_nobb): Likewise for all three params.
1378 (set_new_first_and_last_insn): Likewise for both params.
1380 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1381 rtx_insn *. Remove now-redundant cast.
1382 (set_last_insn): Likewise.
1384 * builtins.c (expand_builtin_return): Strengthen local
1385 "call_fusage" from rtx to rtx_insn *.
1386 * cfgrtl.c (create_basic_block_structure): Likewise for local
1388 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1389 "first", "last" and local "insn".
1390 (delete_insns_since): Likewise for param "from".
1391 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1393 (push_to_sequence): Likewise for param "first" and local "last".
1394 (push_to_sequence2): Likewise for params "first" and "last".
1395 * lra.c (emit_add3_insn): Likewise for local "last".
1396 (lra_emit_add): Likewise.
1397 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1399 (process_address_1): Likewise for locals "insn", last".
1400 * modulo-sched.c (ps_first_note): Likewise for return type.
1401 * optabs.c (expand_binop_directly): Likewise for param "last".
1403 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1405 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1407 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1409 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1411 * function.h (struct sequence_stack): Strengthen fields "first"
1412 and "last" from rtx to rtx_insn *.
1413 (struct emit_status): Likewise for fields "x_first_insn" and
1416 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1417 (set_first_insn): Add checked cast.
1418 (get_last_insn): Remove now-redundant checked cast.
1419 (set_last_insn): Add checked cast.
1421 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1422 "saved_first" and "saved_last" from rtx to rtx_insn *.
1424 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1426 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1427 (unlink_insn_chain): Strengthen both params from rtx to
1430 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1432 (unlink_insn_chain): Likewise for params "first" and "last".
1433 Remove now-redundant checked cast.
1434 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1435 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1437 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1439 (add_insn): Likewise for param "insn" and local "prev".
1440 (add_insn_after_nobb): Likewise for both params and local "next".
1441 (add_insn_before_nobb): Likewise for both params and local "prev".
1442 (add_insn_after): Rename param "after" to "uncast_after",
1443 introducing local "after" with another checked cast.
1444 (add_insn_before): Rename params "insn" and "before", giving them
1445 "uncast_" prefixes, adding the old names back using checked casts.
1446 (emit_note_after): Likewise for param "after".
1447 (emit_note_before): Likewise for param "before".
1448 (emit_label): Add a checked cast.
1450 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1452 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1453 "insn" from rtx to rtx_insn *.
1455 * cselib.c (cselib_record_sets_hook): Likewise.
1457 * var-tracking.c (add_with_sets): Likewise, renaming back from
1458 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1461 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1463 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1464 and "header_" from rtx to rtx_insn *.
1465 (struct basic_block_d): Likewise for field "head_" within "x"
1466 field of union basic_block_il_dependent.
1467 (BB_HEAD): Drop function...
1468 (SET_BB_HEAD): ...and this function in favor of...
1469 (BB_HEAD): ...reinstate macro.
1470 (BB_END): Drop function...
1471 (SET_BB_END): ...and this function in favor of...
1472 (BB_END): ...reinstate macro.
1473 (BB_HEADER): Drop function...
1474 (SET_BB_HEADER): ...and this function in favor of...
1475 (BB_HEADER): ...reinstate macro.
1477 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1478 (fix_crossing_unconditional_branches): Likewise.
1479 * caller-save.c (save_call_clobbered_regs): Likewise.
1480 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1481 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1482 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1483 (merge_blocks_move_successor_nojumps): Likewise.
1484 (outgoing_edges_match): Update use of for_each_rtx to
1485 for_each_rtx_in_insn.
1486 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1487 (expand_gimple_cond): Likewise.
1488 (expand_gimple_tailcall): Likewise.
1489 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1491 (construct_exit_block): Drop use of SET_BB_END.
1492 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1494 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1495 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1496 SET_BB_HEAD and SET_BB_END.
1497 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1499 (rtl_delete_block): Drop use of SET_BB_HEAD.
1500 (rtl_split_block): Drop use of SET_BB_END.
1501 (emit_nop_for_unique_locus_between): Likewise.
1502 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1503 (block_label): Drop use of SET_BB_HEAD.
1504 (fixup_abnormal_edges): Drop use of SET_BB_END.
1505 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1506 (relink_block_chain): Likewise.
1507 (fixup_reorder_chain): Drop use of SET_BB_END.
1508 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1509 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1510 rtx_insn **. Drop use of SET_BB_HEADER.
1511 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1513 (BB_HEAD): Delete this function.
1514 (SET_BB_HEAD): Likewise.
1516 (SET_BB_END): Likewise.
1517 (BB_HEADER): Likewise.
1518 (SET_BB_HEADER): Likewise.
1519 * emit-rtl.c (add_insn_after): Rename param "insn" to
1520 "uncast_insn", adding a new local "insn" and a checked cast to
1521 rtx_insn *. Drop use of SET_BB_END.
1522 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1523 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1524 (reorder_insns): Drop use of SET_BB_END.
1525 (emit_insn_after_1): Strengthen param "first" and locals "last",
1526 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1527 (emit_pattern_after_noloc): Add checked cast.
1528 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1529 (restore_other_notes): Likewise.
1530 (move_insn): Likewise.
1531 (sched_extend_bb): Likewise.
1532 (fix_jump_move): Likewise.
1533 * ifcvt.c (noce_process_if_block): Likewise.
1534 (dead_or_predicable): Likewise.
1535 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1536 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1537 * sel-sched-ir.c (sel_move_insn): Likewise.
1538 * sel-sched.c (move_nop_to_previous_block): Likewise.
1540 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1542 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1544 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1546 * basic-block.h (create_basic_block_structure): Strengthen params
1547 1 "head" and 2 "end" from rtx to rtx_insn *.
1548 * cfgrtl.c (create_basic_block_structure): Likewise.
1549 (rtl_create_basic_block): Update casts from void * to rtx to
1550 rtx_insn *, so that we can pass them as rtx_insn * to
1551 create_basic_block_structure.
1552 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1554 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1556 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1558 (check_for_inc_dec): Strengthen param "insn" from rtx to
1561 * cselib.h (cselib_process_insn): Likewise.
1563 * cselib.c (cselib_record_sets): Likewise.
1564 (cselib_process_insn): Likewise.
1566 * dse.c (struct insn_info): Likewise for field "insn".
1567 (check_for_inc_dec_1): Likewise for local "insn".
1568 (check_for_inc_dec): Likewise for param "insn".
1569 (scan_insn): Likewise.
1570 (dse_step1): Likewise for local "insn".
1572 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1573 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1575 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1577 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1578 from rtx to rtx_insn *.
1579 (DEP_PRO): Delete this function and...
1580 (SET_DEP_PRO): ...this function in favor of...
1581 (DEP_PRO): ...reinstate this macro.
1582 (DEP_CON): Delete this function and...
1583 (SET_DEP_CON): ...this function in favor of...
1584 (DEP_CON): ...reinstate this old macro.
1585 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1586 (init_dep): Likewise.
1587 (set_priorities): Likewise for both params.
1588 (sd_copy_back_deps): Likewise for params 1 and 2.
1590 * haifa-sched.c (priority): Likewise for param "insn" and local
1592 (set_priorities): Likewise for params "head" and "tail" and local
1594 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1596 (add_to_speculative_block): Add a checked cast.
1597 (create_check_block_twin): Drop use of SET_DEP_CON.
1598 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1601 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1602 Drop use of SET_DEP_PRO
1603 (init_dep): Strengthen params "pro" and "con" from rtx to
1605 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1609 (SET_DEP_PRO): Delete.
1610 (SET_DEP_CON): Delete.
1612 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1614 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1615 from rtx to rtx_insn *.
1616 (VINSN_INSN_RTX): Eliminate rvalue function and...
1617 (SET_VINSN_INSN): ...lvalue function in favor of...
1618 (VINSN_INSN_RTX): reinstate this old macro.
1620 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1621 in favor of VINSN_INSN_RTX.
1622 (VINSN_INSN_RTX): Delete this function.
1623 (SET_VINSN_INSN_RTX): Likewise.
1625 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1627 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1628 (BND_TO): Delete this function and...
1629 (SET_BND_TO): ...this functions in favor of...
1630 (BND_TO): ...reinstating this macro.
1631 (struct _fence): Strengthen field "executing_insns" from
1632 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1633 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1634 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1635 and param "insn" from rtx to insn_t.
1636 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1639 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1641 (rtx_vec_t): Likewise.
1642 (struct sched_deps_info_def): Strengthen param of "start_insn"
1643 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1644 "note_mem_dep" callback and first param of "note_dep" callback.
1646 * haifa-sched.c (add_to_speculative_block): Strengthen param
1647 "insn" from rtx to rtx_insn *.
1648 (clear_priorities): Likewise.
1649 (calc_priorities): Likewise for local "insn".
1651 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1652 Remove redundant checked cast.
1653 (haifa_note_mem_dep): Likewise for param "pending_insn".
1654 (haifa_note_dep): Likewise for param "elem".
1655 (note_mem_dep): Likewise for param "e".
1656 (sched_analyze_1): Add checked casts.
1657 (sched_analyze_2): Likewise.
1659 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1660 from rtx to rtx_insn *.
1661 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1662 from vec<rtx> * to vec<rtx_insn *> *.
1664 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1666 (flist_add): Strengthen param "executing_insns" from
1667 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1668 (advance_deps_context): Remove now-redundant checked cast.
1669 (init_fences): Replace uses of NULL_RTX with NULL.
1670 (merge_fences): Strengthen params "last_scheduled_insn" and
1671 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1672 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1673 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1674 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1675 an instruction, rather than doing double-duty as a pattern.
1676 (return_nop_to_pool): Update for change of insn_t.
1677 (deps_init_id): Remove now-redundant checked cast.
1678 (struct sched_scan_info_def): Strengthen param of "init_insn"
1679 callback from rtx to insn_t.
1680 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1681 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1683 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1684 "end" from rtx to rtx_insn *.
1685 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1686 (rtx insn_rtx, bool force_unique_p)
1687 (BND_TO): Delete function.
1688 (SET_BND_TO): Delete function.
1690 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1692 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1693 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1695 (undo_transformations): Likewise for param "insn".
1696 (update_liveness_on_insn): Likewise.
1697 (compute_live_below_insn): Likewise for param "insn" and local
1699 (update_data_sets): Likewise for param "insn".
1700 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1701 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1702 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1704 (move_cond_jump): Likewise for param "insn".
1705 (move_cond_jump): Drop use of SET_BND_TO.
1706 (compute_av_set_on_boundaries): Likewise.
1707 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1708 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1709 from rtx to rtx_insn *.
1710 (maybe_emit_renaming_copy): Likewise for param "insn".
1711 (maybe_emit_speculative_check): Likewise.
1712 (handle_emitting_transformations): Likewise.
1713 (remove_insn_from_stream): Likewise.
1714 (code_motion_process_successors): Strengthen local "succ" from rtx
1717 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1719 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1720 ilist_t, not _xlist_t;
1721 (ILIST_INSN): Define in terms of new union field "insn".
1722 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1724 (struct _list_node): Add new field "insn" to the union, of type
1726 (ilist_add): Replace macro with an inline function, requiring an
1728 (ilist_remove): Define this macro directly in terms of
1729 _list_remove, rather than indirectly via _xlist_remove.
1730 (ilist_clear): Likewise, in terms of _list_clear rather than
1732 (ilist_is_in_p): Replace macro with an inline function, requiring
1734 (_list_iter_cond_insn): New function.
1735 (ilist_iter_remove): Define this macro directly in terms of
1736 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1737 (ilist_iterator): Define directly in terms of _list_iterator
1738 rather than indirectly through _xlist_iterator.
1739 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1740 than in terms of _FOR_EACH_X.
1741 (FOR_EACH_INSN_1): Likewise.
1743 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1747 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1748 DECL_HARD_REGISTER and return for invalid register specifications.
1749 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1750 DECL_HARD_REGISTER, call expand_one_error_var.
1751 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1752 CC_REGNUM with non-MODE_CC modes.
1753 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1755 2014-08-26 Marek Polacek <polacek@redhat.com>
1758 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1760 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1762 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1763 qi cost; add di cost.
1764 (cortexa57_addrcost_table): Likewise.
1766 2014-08-26 Marek Polacek <polacek@redhat.com>
1769 * expr.c (is_aligning_offset): Remove logical not.
1771 2014-08-26 Marek Polacek <polacek@redhat.com>
1774 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1775 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1777 2014-08-26 Richard Biener <rguenther@suse.de>
1779 PR tree-optimization/62175
1780 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1781 expand possibly trapping operations.
1783 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1785 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1786 "insn" from rtx to rtx_insn *.
1787 (permute_load): Likewise for param "insn".
1788 (permute_store): Likewise.
1789 (handle_special_swappables): Likewise for local "insn".
1790 (replace_swap_with_copy): Likewise for locals "insn" and
1792 (rs6000_analyze_swaps): Likewise for local "insn".
1794 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1796 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1799 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1801 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1802 "note_list" from rtx to rtx_insn *.
1803 (BB_NOTE_LIST): Replace this function and...
1804 (SET_BB_NOTE_LIST): ...this function with...
1805 (BB_NOTE_LIST): ...the former macro implementation.
1807 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1808 local "from_start" from rtx to rtx_insn *. Strengthen param
1809 "to_endp" from rtx * to rtx_insn **.
1811 * haifa-sched.c (concat_note_lists): Likewise.
1812 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1814 (sel_restore_notes): Likewise.
1815 (move_bb_info): Likewise.
1816 (BB_NOTE_LIST): Delete this function.
1817 (SET_BB_NOTE_LIST): Delete this function.
1818 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1819 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1823 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1824 from rtx * to rtx_insn **.
1825 (reorder2): Likewise.
1826 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1827 from rtx to rtx_insn *.
1829 * doc/tm.texi: Update mechanically for above change to target.def.
1831 * sched-int.h (note_list): Strengthen this variable from rtx to
1833 (remove_notes): Likewise for both params.
1834 (restore_other_notes): Likewise for return type and first param.
1835 (struct ready_list): Strengthen field "vec" from rtx * to
1837 (struct dep_replacement): Strenghten field "insn" from rtx to
1839 (struct deps_desc): Likewise for fields "last_debug_insn",
1841 (struct haifa_sched_info): Likewise for callback field
1842 "can_schedule_ready_p"'s param, for first param of "new_ready"
1843 callback field, for both params of "rank" callback field, for
1844 first field of "print_insn" callback field (with a const), for
1845 both params of "contributes_to_priority" callback, for param
1846 of "insn_finishes_block_p" callback, for fields "prev_head",
1847 "next_tail", "head", "tail", for first param of "add_remove_insn"
1848 callback, for first param of "begin_schedule_ready" callback, for
1849 both params of "begin_move_insn" callback, and for second param
1850 of "advance_target_bb" callback.
1851 (add_dependence): Likewise for params 1 and 2.
1852 (sched_analyze): Likewise for params 2 and 3.
1853 (deps_analyze_insn): Likewise for param 2.
1854 (ready_element): Likewise for return type.
1855 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1856 (try_ready): Strenghten param from rtx to rtx_insn *.
1857 (sched_emit_insn): Likewise for return type.
1858 (record_delay_slot_pair): Likewise for params 1 and 2.
1859 (add_delay_dependencies): Likewise for param.
1860 (contributes_to_priority): Likewise for both params.
1861 (find_modifiable_mems): Likewise.
1863 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1864 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1865 "first_older_only_insn" from rtx to rtx_insn *.
1866 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1869 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1870 "last_scheduled_iter0" from rtx to rtx_insn *.
1871 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1872 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1873 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1874 "insn" from rtx to rtx_insn *.
1875 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1877 (c6x_sched_reorder2): Strengthen param "ready" and locals
1878 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1879 "insn" from rtx to rtx_insn *.
1880 (c6x_variable_issue): Add a checked cast when assigning from insn
1881 to ss.last_scheduled_iter0.
1882 (split_delayed_branch): Strengthen param "insn" and local "i1"
1883 from rtx to rtx_insn *.
1884 (split_delayed_nonbranch): Likewise.
1885 (undo_split_delayed_nonbranch): Likewise for local "insn".
1886 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1887 "entry_after", "end_packet", "head_insn", "tail_insn",
1888 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1889 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1890 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1891 but add a checked cast on loop->start_label. Consolidate calls to
1892 avoid assigning result of gen_spkernel to "insn", now an
1895 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1896 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1898 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1899 rtx_insn **. Strengthen locals "top", "next" from rtx to
1901 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1902 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1903 (add_parameter_dependencies): Strengthen params "call", "head" and
1904 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1905 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1906 (add_dependee_for_func_arg): Likewise for param "arg" and local
1908 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1909 "tail" and locals "insn", "first_arg".
1911 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1912 for params "head", "tail" and locals "insn", "next", "next_tail".
1913 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1914 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1915 "insn", "lowest", "highest" from rtx to rtx_insn *.
1916 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1918 (ia64_sched_reorder2): Likewise.
1920 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1921 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1922 from rtx * to rtx_insn **.
1923 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1925 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1927 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1928 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1931 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1932 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1934 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1935 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1936 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1938 (vr4130_reorder): Likewise.
1939 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1941 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1943 (mips_sched_reorder): Likewise.
1944 (mips_sched_reorder2): Likewise.
1946 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1948 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1949 Strengthen local "tmp" from rtx to rtx_insn *.
1950 (rs6000_sched_reorder2): Likewise.
1952 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1953 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1954 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1955 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1957 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1958 "tmp2" from rtx to rtx_insn *.
1959 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1960 Strengthen local "insn" from rtx to rtx_insn *.
1961 (ready_reorder): Strengthen param "ready" from rtx * to
1962 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1963 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1964 (sh_reorder2): Likewise.
1966 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1967 local "insn" from rtx to rtx_insn *.
1969 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1971 (scheduled_insns): Strengthen this variable from vec<rtx> to
1973 (set_modulo_params): Likewise for locals "i1", "i2".
1974 (record_delay_slot_pair): Likewise for params "i1", "i2".
1975 (add_delay_dependencies): Likewise for param "insn".
1976 (cond_clobbered_p): Likewise.
1977 (recompute_todo_spec): Likewise for local "prev".
1978 (last_scheduled_insn): Likewise for this variable.
1979 (nonscheduled_insns_begin): Likewise.
1980 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1982 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1984 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1985 Strengthen local "insn" from rtx to rtx_insn *.
1986 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1987 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1988 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1989 (ready_remove_first): Likewise for return type and local "t".
1990 (ready_element): Likewise for return type.
1991 (ready_remove): Likewise for return type and local "t".
1992 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1993 (check_clobbered_conditions): Strengthen local "x" from rtx to
1994 rtx_insn *, adding a checked cast.
1995 (schedule_insn): Likewise for param "insn".
1996 (remove_notes): Likewise for params "head", "tail" and locals
1997 "next_tail", "insn", "next".
1998 (struct haifa_saved_data): Likewise for fields
1999 "last_scheduled_insn", "nonscheduled_insns_begin".
2000 (save_backtrack_point): Update for change to field "vec" of
2002 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2004 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
2005 from rtx to rtx_insn *
2006 (resolve_dependencies): Strengthen param "insn" from rtx to
2008 (restore_other_notes): Likewise for return type, for param "head"
2009 and local "note_head".
2010 (undo_all_replacements): Likewise for local "insn".
2011 (first_nonscheduled_insn): Likewise for return type and local "insn".
2012 (queue_to_ready): Likewise for local "insn", adding checked casts.
2013 (early_queue_to_ready): Likewise for local "insn".
2014 (debug_ready_list_1): Strengthen local "p" from rtx * to
2016 (move_insn): Strengthen param "insn" and local "note" from rtx to
2018 (insn_finishes_cycle_p): Likewise for param "insn".
2019 (max_issue): Likewise for local "insn".
2020 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
2022 (commit_schedule): Strengthen param "prev_head" and local "insn"
2023 from rtx to rtx_insn *
2024 (prune_ready_list): Likewise for local "insn".
2025 (schedule_block): Likewise for locals "prev_head", "head", "tail",
2026 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2027 (set_priorities): Likewise for local "prev_head".
2028 (try_ready): Likewise for param "next".
2029 (fix_tick_ready): Likewise.
2030 (change_queue_index): Likewise.
2031 (sched_extend_ready_list): Update for change to field "vec" of
2033 (generate_recovery_code): Strengthen param "insn" from rtx to
2035 (begin_speculative_block): Likewise.
2036 (create_check_block_twin): Likewise for param "insn" and locals
2037 "label", "check", "twin". Introduce local "check_pat" to avoid
2038 "check" being used as a plain rtx before being used as an insn.
2039 (fix_recovery_deps): Add a checked cast to rtx_insn * when
2040 extracting elements from ready_list.
2041 (sched_remove_insn): Strengthen param "insn" from rtx to
2043 (sched_emit_insn): Likewise for return type.
2044 (ready_remove_first_dispatch): Likewise for return type and local
2047 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
2049 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
2052 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
2053 from rtx to rtx_insn *.
2054 (add_dependence_list): Likewise for param "insn". Add a checked
2056 (add_dependence_list_and_free): Strengthen param "insn" from rtx
2057 to rtx_insn *. Strengthen param "list_p" from rtx * to
2059 (chain_to_prev_insn): Strengthen param "insn" and locals
2060 "prec_nonnote", "i" from rtx to rtx_insn *.
2061 (flush_pending_lists): Likewise for param "insn".
2062 (cur_insn): Likewise for this variable.
2063 (haifa_start_insn): Add a checked cast.
2064 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2065 (sched_analyze_reg): Likewise for param "insn".
2066 (sched_analyze_1): Likewise.
2067 (sched_analyze_2): Likewise. Add checked casts.
2068 (sched_analyze_insn): Likewise. Also for local "prev".
2069 (deps_analyze_insn): Likewise for param "insn".
2070 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2071 (add_dependence_1): Likewise for params "insn", "elem".
2072 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2073 (parse_add_or_inc): Likewise for param "insn".
2074 (find_inc): Likewise for local "inc_cand".
2075 (find_modifiable_mems): Likewise for params "head", "tail" and
2076 locals "insn", "next_tail".
2078 * sched-ebb.c (init_ready_list): Likewise for local "insn".
2079 (begin_schedule_ready): Likewise for param "insn".
2080 (begin_move_insn): Likewise for params "insn" and "last".
2081 (ebb_print_insn): Strengthen param "insn" from const_rtx to
2083 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
2084 (ebb_contributes_to_priority): Likewise for params "next", "insn".
2085 (ebb_add_remove_insn): Likewise for param "insn".
2086 (advance_target_bb): Likewise.
2088 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
2090 (check_live): Likewise for param "insn".
2091 (init_ready_list): Likewise for local "insn".
2092 (can_schedule_ready_p): Likewise for param "insn".
2093 (begin_schedule_ready): Likewise.
2094 (new_ready): Likewise for param "next".
2095 (rgn_print_insn): Likewise for param "insn".
2096 (rgn_rank): Likewise for params "insn1", "insn2".
2097 (contributes_to_priority): Likewise for params "next", "insn".
2098 (rgn_insn_finishes_block_p): Likewise for param "insn".
2099 (add_branch_dependences): Likewise for params "head", "tail" and
2100 locals "insn", "last".
2101 (rgn_add_remove_insn): Likewise for param "insn".
2102 (advance_target_bb): Likewise.
2104 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2105 const_rtx to const rtx_insn *.
2107 * sel-sched-dump.h (sel_print_insn): Likewise.
2109 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2110 (deps_init_id): Likewise.
2112 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2113 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2118 * output.h (final_start_function): Strengthen param 1 from rtx to
2121 * final.c (final_start_function): Likewise, renaming back from
2122 "uncast_first" to "first", and dropping the checked cast from rtx
2125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2127 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2128 * final.c (final): Likewise. Rename param back from
2129 "uncast_first" to "first" and eliminate the checked cast from rtx
2132 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2134 * output.h (shorten_branches): Strengthen param from rtx to
2137 * final.c (shorten_branches): Likewise, renaming param back from
2138 "uncast_first" to "first", and dropping the checked cast from rtx
2141 * genattr.c (gen_attr): Likewise when writing out the prototype of
2144 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2146 * sched-int.h (struct haifa_sched_info): Strengthen fields
2147 "prev_head" and "next_tail" from rtx to rtx_insn *.
2149 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2151 * rtl.h (rtx_jump_table_data::get_labels): New method.
2152 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2153 with use of the new rtx_jump_table_data::get_labels method.
2154 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2155 to rtx_jump_table_data *. Simplify by using get_labels method.
2156 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2157 a dyn_cast, introducing local "table", using it to replace
2158 label-lookup logic with a get_labels method call.
2159 (patch_jump_insn): Simplify using get_labels method.
2160 * dwarf2cfi.c (create_trace_edges): Likewise.
2161 * rtlanal.c (label_is_jump_target_p): Likewise.
2163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2165 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2168 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2169 (unshare_all_rtl_again): Likewise, also for local "p".
2171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2173 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2175 * cfgrtl.c (delete_insn_and_edges): Likewise.
2177 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2179 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2180 from rtx to rtx_insn *.
2182 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2184 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2186 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2187 locals "returnjump", "epilogue_end", "insn", "next".
2189 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2190 "returnjump" from rtx * to rtx_insn **.
2191 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2193 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2195 * basic-block.h (struct edge_def). Strengthen "r" within
2196 union edge_def_insns from rtx to rtx_insn *.
2198 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2199 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2201 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2202 from rtx to rtx_insn *.
2203 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2205 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2206 (reg_used_on_edge): Likewise.
2207 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2208 (gt_pch_nx): New overload for rtx_insn *&.
2209 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2210 from rtx to rtx_insn *.
2212 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2214 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2215 from rtx to rtx_insn *.
2216 (BB_FOOTER): Replace function with access macro.
2217 (SET_BB_FOOTER): Delete.
2219 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2221 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2222 (emit_barrier_after_bb): Likewise.
2223 (record_effective_endpoints): Likewise.
2224 (relink_block_chain): Likewise.
2225 (fixup_fallthru_exit_predecessor): Likewise.
2226 (cfg_layout_duplicate_bb): Likewise.
2227 (cfg_layout_split_block): Likewise.
2228 (cfg_layout_delete_block): Likewise.
2229 (cfg_layout_merge_blocks): Likewise.
2230 (BB_FOOTER): Delete function.
2231 (SET_BB_FOOTER): Delete function.
2232 * combine.c (update_cfg_for_uncondjump): Replace uses of
2233 SET_BB_FOOTER with BB_FOOTER.
2235 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2237 * except.h (struct eh_landing_pad_d): Strengthen field
2238 "landing_pad" from rtx to rtx_code_label *.
2240 * except.c (sjlj_emit_dispatch_table): Likewise for param
2242 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2244 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2246 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2247 first param from rtx to rtx_insn *.
2248 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2249 field "set_frame_ptr_insn".
2250 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2251 "csend" from rtx to rtx_code_label *.
2252 (xtensa_expand_atomic): Likewise for local "csloop".
2253 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2255 (xtensa_call_tls_desc): Likewise for return type and locals
2256 "call_insn", "insns".
2257 (xtensa_legitimize_tls_address): Likewise for local "insns".
2258 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2260 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2262 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2263 first param from rtx to rtx_insn *.
2264 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2267 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2269 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2270 Strengthen param 1 from rtx to rtx_insn *.
2271 (tilepro_output_cbranch): Likewise.
2272 (tilepro_adjust_insn_length): Likewise.
2273 (tilepro_final_prescan_insn): Likewise for sole param.
2275 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2276 Likewise for local "last".
2277 (cbranch_predicted_p): Likewise for param "insn".
2278 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2279 (tilepro_output_cbranch_with_opcode): Likewise.
2280 (tilepro_output_cbranch): Likewise.
2281 (frame_emit_load): Likewise for return type and locals "seq",
2283 (emit_sp_adjust): Likewise for return type and local "insn".
2284 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2286 (tilepro_adjust_insn_length): Likewise for param "insn".
2287 (next_insn_to_bundle): Likewise for return type and params
2289 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2290 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2292 (match_addli_pcrel): Likewise for param "insn".
2293 (replace_addli_pcrel): Likewise.
2294 (match_auli_pcrel): Likewise.
2295 (replace_auli_pcrel): Likewise.
2296 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2298 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2299 "queue", "next_queue", "prev".
2300 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2301 (tilepro_final_prescan_insn): Likewise for param "insn".
2303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2305 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2306 Strengthen param 1 from rtx to rtx_insn *.
2307 (tilegx_output_cbranch): Likewise.
2308 (tilegx_adjust_insn_length): Likewise.
2309 (tilegx_final_prescan_insn): Likewise for sole param.
2311 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2313 (cbranch_predicted_p): Likewise for param "insn".
2314 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2315 (tilegx_output_cbranch_with_opcode): Likewise.
2316 (tilegx_output_cbranch): Likewise.
2317 (frame_emit_load): Likewise for return type.
2318 (set_frame_related_p): Likewise for locals "seq", "insn".
2319 (emit_sp_adjust): Likewise for return type, and for local "insn".
2320 Introduce local "pat" for use in place of "insn" where the latter
2321 isn't an instruction.
2322 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2323 from rtx to rtx_insn *.
2324 (tilegx_adjust_insn_length): Likewise for param "insn".
2325 (next_insn_to_bundle): Likewise for return type and params "r" and
2327 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2329 (replace_insns): Likewise for params "old_insn", "new_insns".
2330 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2332 (replace_mov_pcrel_step2): Likewise.
2333 (replace_mov_pcrel_step3): Likewise.
2334 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2336 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2337 "queue", "next_queue", "prev".
2338 (tilegx_output_mi_thunk): Likewise for local "insn".
2339 (tilegx_final_prescan_insn): Likewise for param "insn".
2341 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2343 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2345 (frame_emit_load): Likewise.
2346 (frame_emit_add_imm): Likewise, also for local "insn".
2347 (spu_expand_prologue): Likewise for local "insn".
2348 (struct spu_bb_info): Likewise for field "prop_jump".
2349 (emit_nop_for_insn): Likewise for param "insn" and local
2351 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2353 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2354 locals "hint", "insn".
2355 (get_branch_target): Likewise for param "branch".
2356 (insn_clobbers_hbr): Likewise for param "insn".
2357 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2358 locals "insn", "before_4", "before_16".
2359 (insert_hbrp): Likewise for local "insn".
2360 (spu_machine_dependent_reorg): Likewise for locals "branch",
2361 "insn", "next", "bbend".
2362 (uses_ls_unit): Likewise for param "insn".
2363 (get_pipe): Likewise.
2364 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2365 introducing a checked cast.
2366 (spu_sched_adjust_cost): Likewise for params "insn" and
2368 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2369 (spu_sms_res_mii): Likewise.
2371 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2373 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2374 from rtx to rtx_insn *.
2375 (output_cbranch): Likewise for param 6.
2376 (output_return): Likewise for param 1.
2377 (output_sibcall): Likewise.
2378 (output_v8plus_shift): Likewise.
2379 (output_v8plus_mult): Likewise.
2380 (output_v9branch): Likewise for param 7.
2381 (output_cbcond): Likewise for param 3.
2383 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2385 (sparc_legitimize_pic_address): Likewise.
2386 (sparc_emit_call_insn): Likewise.
2387 (emit_save_or_restore_regs): Likewise.
2388 (emit_window_save): Likewise for return type and local "insn".
2389 (sparc_expand_prologue): Likewise for local "insn".
2390 (sparc_flat_expand_prologue): Likewise.
2391 (output_return): Likewise for param "insn".
2392 (output_sibcall): Likewise for param "insn" and local "delay".
2393 (output_ubranch): Likewise for param "insn".
2394 (output_cbranch): Likewise.
2395 (output_cbcond): Likewise.
2396 (output_v9branch): Likewise.
2397 (output_v8plus_shift): Likewise.
2398 (sparc_output_mi_thunk): Likewise for local "insn".
2399 (get_some_local_dynamic_name): Likewise.
2400 (output_v8plus_mult): Likewise for param "insn".
2402 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2404 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2405 from rtx to rtx_insn *.
2406 (output_branchy_insn): Likewise for param 3.
2407 (output_far_jump): Likewise for param 1.
2408 (final_prescan_insn): Likewise.
2409 (sh_insn_length_adjustment): Likewise for sole param.
2411 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2412 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2414 (sh_emit_compare_and_set): Likewise for local "lab".
2415 (output_far_jump): Strengthen param "insn" and local "prev" from
2417 (output_branchy_insn): Likewise for param "insn" and local
2419 (output_ieee_ccmpeq): Likewise for param "insn".
2420 (struct label_ref_list_d): Strengthen field "label" from rtx to
2422 (pool_node): Likewise.
2423 (pool_window_label): Likewise for this global.
2424 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2425 (dump_table): Strengthen params "start", "barrier" and local
2426 "scan" from rtx to rtx_insn *.
2427 (broken_move): Likewise for param "insn".
2428 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2429 Strengthen param "first_mova" from rtx * to rtx_insn **.
2430 (mova_p): Likewise for param "insn".
2431 (fixup_mova): Likewise for param "mova".
2432 (find_barrier): Likewise for return type, params "mova" and
2433 "from", and locals "barrier_before_mova", "found_barrier",
2434 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2435 "label" from rtx to rtx_code_label *.
2436 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2438 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2439 (split_branches): Likewise for param "first" and local "insn".
2440 (final_prescan_insn): Likewise for param "insn".
2441 (sequence_insn_p): Likewise for locals "prev", "next".
2442 (sh_insn_length_adjustment): Likewise for param "insn".
2443 (sh_can_redirect_branch): Likewise for local "insn".
2444 (find_r0_life_regions): Likewise for locals "end", "insn".
2445 (sh_output_mi_thunk): Likewise for local "insns".
2447 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2449 * config/score/score.c (score_output_mi_thunk): Strengthen local
2450 "insn" from rtx to rtx_insn *.
2451 (score_prologue): Likewise.
2453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2455 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2456 1 from rtx to rtx_insn *.
2457 (s390_emit_jump): Likewise for return type.
2458 (s390_emit_call): Likewise.
2459 (s390_load_got): Likewise.
2461 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2463 (s390_match_ccmode): Likewise for param "insn".
2464 (s390_emit_jump): Likewise for return type.
2465 (s390_split_branches): Likewise for local "label".
2466 (struct constant): Strengthen field "label" from rtx to
2468 (struct constant_pool): Likewise for field "label". Strengthen
2469 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2471 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2473 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2474 (s390_end_pool): Likewise.
2475 (s390_dump_pool): Likewise for local "insn".
2476 (s390_mainpool_start): Likewise.
2477 (s390_chunkify_start): Likewise.
2478 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2479 with insns. Strengthen locals "label", "jump", "barrier", "next",
2480 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2481 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2483 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2484 "jump", "label", "next_insn".
2485 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2486 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2488 (s390_load_got): Likewise for return type and local "insns".
2489 (s390_save_gprs_to_fprs): Likewise for local "insn".
2490 (s390_restore_gprs_from_fprs): Likewise.
2491 (pass_s390_early_mach::execute): Likewise.
2492 (s390_emit_prologue): Likewise for local "insns".
2493 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2495 (s390_emit_call): Strengthen return type and local "insn" from
2497 (s390_emit_tpf_eh_return): Likewise for local "insn".
2498 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2499 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2500 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2502 (s390_non_addr_reg_read_p): Likewise for param "insn".
2503 (find_cond_jump): Likewise for return type and param "insn".
2504 (s390_swap_cmp): Likewise for param "insn".
2505 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2506 "prev_insn", "next_insn".
2507 (s390_reorg): Likewise for locals "insn", "target".
2508 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2509 (s390_sched_variable_issue): For now, rename param "insn" to
2510 "uncast_insn", introducing a checked cast.
2511 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2513 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2514 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2516 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2518 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2519 param from rtx to rtx_insn *.
2520 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2522 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2524 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2525 4 from rtx to rtx_insn *.
2526 (rs6000_final_prescan_insn): Likewise for first param.
2527 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2529 (rs6000_get_some_local_dynamic_name): Likewise.
2530 (output_cbranch): Likewise for param "insn".
2531 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2532 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2533 (rs6000_emit_allocate_stack): Likewise for local "insn".
2534 (load_cr_save): Likewise.
2535 (restore_saved_cr): Likewise.
2536 (restore_saved_lr): Likewise.
2537 (emit_cfa_restores): Likewise.
2538 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2539 "deleted_debug_label".
2540 (rs6000_output_mi_thunk): Likewise for local "insn".
2541 (rs6000_final_prescan_insn): Likewise for param "insn".
2543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2545 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2546 Strengthen param "insn" from rtx to rtx_insn *.
2547 * config/picochip/picochip.c (picochip_current_prescan_insn):
2548 Likewise for this variable.
2549 (picochip_final_prescan_insn): Likewise for param "insn".
2551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2553 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2554 from rtx to rtx_insn *.
2555 (pa_output_indirect_call): Likewise.
2556 (pa_adjust_insn_length): Likewise.
2557 (pa_attr_length_millicode_call): Likewise.
2558 (pa_attr_length_call): Likewise.
2559 (pa_attr_length_indirect_call): Likewise.
2561 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2563 (pa_attr_length_millicode_call): Likewise.
2564 (pa_attr_length_call): Likewise.
2565 (pa_output_call): Likewise.
2566 (pa_attr_length_indirect_call): Likewise.
2567 (pa_output_indirect_call): Likewise.
2569 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2571 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2572 Strengthen first param from rtx to rtx_insn *.
2573 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2578 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2579 type from rtx to rtx_insn *.
2580 (mips_expand_call): Likewise.
2581 (mips_adjust_insn_length): Likewise for first param.
2582 (mips_output_conditional_branch): Likewise.
2583 (mips_output_order_conditional_branch): Likewise.
2584 (mips_final_prescan_insn): Likewise.
2586 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2587 rtx_insn * for the SEQUENCE case.
2588 (SEQ_END): Likewise.
2589 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2590 (mips_emit_call_insn): Likewise, also for local "insn".
2591 (mips16_gp_pseudo_reg): Likewise for local "scan".
2592 (mips16_build_call_stub): Likewise for return type and for local
2593 "insn". Introduce a new local "pattern" so that "insn" can indeed
2595 (mips_expand_call): Strengthen return type and local "insn" from
2597 (mips_block_move_loop): Strengthen local "label" from rtx to
2599 (mips_expand_synci_loop): Likewise for locals "label",
2601 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2603 (mips16e_collect_argument_saves): Likewise for locals "insn",
2605 (mips_find_gp_ref): Likewise for param of callback for "pred"
2606 param, and for local "insn".
2607 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2608 (mips_insn_has_flexible_gp_ref_p): Likewise.
2609 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2611 (mips_epilogue_set_cfa): Likewise for local "insn".
2612 (mips_expand_epilogue): Likewise.
2613 (mips_adjust_insn_length): Likewise for param "insn".
2614 (mips_output_conditional_branch): Likewise.
2615 (mips_output_order_conditional_branch): Likewise.
2616 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2617 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2618 "falu2_turn_enabled_insn".
2619 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2620 "done_label" from rtx to rtx_code_label *.
2621 (struct mips16_constant): Likewise for field "label".
2622 (mips16_add_constant): Likewise for return type.
2623 (mips16_emit_constants_1): Strengthen return type and param "insn"
2624 from rtx to rtx_insn *.
2625 (mips16_emit_constants): Likewise for param "insn".
2626 (mips16_insn_length): Likewise.
2627 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2628 to rtx_code_label *.
2629 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2630 from rtx to rtx_insn *.
2631 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2632 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2633 (r10k_simplify_address): Strengthen param "insn" and local
2634 "def_insn" from rtx to rtx_insn *.
2635 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2637 (r10k_needs_protection_p_1): Update target type of cast of data
2638 from to rtx to rtx_insn *.
2639 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2640 rtx * to rtx_insn **.
2641 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2643 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2644 (mips_call_expr_from_insn): Likewise for param "insn".
2645 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2646 (mips_find_pic_call_symbol): Likewise for param "insn".
2647 (mips_annotate_pic_calls): Likewise for local "insn".
2648 (mips_sim_insn): Likewise for this variable.
2649 (struct mips_sim): Likewise for field "insn" within elements of
2651 (mips_sim_wait_reg): Likewise for param "insn".
2652 (mips_sim_wait_regs): Likewise.
2653 (mips_sim_wait_units): Likewise.
2654 (mips_sim_wait_insn): Likewise.
2655 (mips_sim_issue_insn): Likewise.
2656 (mips_sim_finish_insn): Likewise.
2657 (mips_seq_time): Likewise for param "seq" and local "insn".
2658 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2659 locals "first", "second".
2660 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2661 "last", "last2", "next".
2662 (mips_avoid_hazard): Likewise for params "after", "insn".
2663 (mips_reorg_process_insns): Likewise for locals "insn",
2664 "last_insn", "subinsn", "next_insn".
2665 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2666 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2668 (mips_output_mi_thunk): Likewise for local "insn".
2669 (mips_final_prescan_insn): Likewise for param "insn".
2671 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2673 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2674 Strengthen return type and local "insns" from rtx to rtx_insn *.
2675 (microblaze_legitimize_tls_address): Likewise for local "insns".
2676 (microblaze_block_move_loop): Strengthen local "label" from rtx
2677 to rtx_code_label *.
2678 (microblaze_expand_prologue): Strengthen two locals named "insn"
2679 from rtx to rtx_insn *.
2680 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2681 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2682 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2683 to rtx_code_label *.
2685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2687 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2688 param from rtx to rtx_insn *.
2689 (mep_reuse_lo): Likewise for third param.
2690 (mep_use_post_modify_p): Likewise for first param.
2691 (mep_core_address_length): Likewise.
2692 (mep_cop_address_length): Likewise.
2693 (mep_final_prescan_insn): Likewise.
2694 (mep_store_data_bypass_p): Likewise for both params.
2695 (mep_mul_hilo_bypass_p): Likewise.
2696 (mep_ipipe_ldc_p): Likewise for param.
2698 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2699 (mep_rewrite_mult): Likewise.
2700 (mep_rewrite_mulsi3): Likewise.
2701 (mep_rewrite_maddsi3): Likewise.
2702 (mep_reuse_lo_p_1): Likewise.
2703 (mep_reuse_lo_p): Likewise.
2704 (mep_frame_expr): Likewise.
2705 (mep_make_parallel): Likewise for both params.
2706 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2708 (mep_use_post_modify_p): Likewise for param "insn".
2709 (mep_core_address_length): Likewise.
2710 (mep_cop_address_length): Likewise.
2711 (mep_reg_set_in_function): Likewise for local "insn".
2712 (mep_asm_without_operands_p): Likewise.
2713 (F): Likewise for return type and param "x".
2714 (add_constant): Likewise for local "insn".
2715 (maybe_dead_move): Likewise for return type and local "insn".
2716 (mep_expand_prologue): Likewise for local "insn".
2717 (mep_final_prescan_insn): Likewise for param "insn".
2718 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2719 "next", "follow", "x".
2720 (mep_insert_repeat_label_last): Likewise for return type, param
2721 "last_insn", and locals "next", "prev". Strengthen param "label"
2722 from rtx to rtx_code_label *.
2723 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2725 (struct mep_doloop_end): Likewise for fields "insn" and
2727 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2728 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2729 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2731 (mep_invert_branch): Likewise for params "insn" and "after".
2732 (mep_reorg_erepeat): Likewise for param "insns" and locals
2733 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2734 "l" from rtx to rtx_code_label *.
2735 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2736 from rtx to rtx_insn *.
2737 (mep_reorg_addcombine): Likewise for param "insns" and locals
2739 (add_sp_insn_p): Likewise for param "insn".
2740 (mep_reorg_noframe): Likewise for param "insns" and locals
2741 "start_frame_insn", "end_frame_insn", "next".
2742 (mep_reorg): Likewise for local "insns".
2743 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2745 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2746 (mep_mul_hilo_bypass_p): Likewise.
2747 (mep_ipipe_ldc_p): Likewise for param "insn".
2748 (mep_make_bundle): Likewise for return type, param "cop" and local
2749 "insn", splitting out the latter into a new local "seq" for when it
2750 is a SEQUENCE rather than an insn.
2751 (core_insn_p): Likewise for param "insn".
2752 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2753 "last", "first", "note", "prev", "core_insn".
2755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2757 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2759 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2760 (m68k_final_prescan_insn): Likewise for first param.
2762 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2763 (m68k_set_frame_related): Likewise for param "insn".
2764 (output_btst): Likewise for param "insn".
2765 (m68k_final_prescan_insn): Likewise.
2766 (m68k_move_to_reg): Likewise for local "insn".
2767 (m68k_call_tls_get_addr): Likewise for local "insns".
2768 (m68k_call_m68k_read_tp): Likewise.
2769 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2770 (m68k_output_mi_thunk): Likewise for local "insn".
2772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2774 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2775 first param from rtx to rtx_insn *.
2776 (iq2000_adjust_insn_length): Likewise.
2777 (iq2000_output_conditional_branch): Likewise.
2778 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2779 "insn" and local "nop_insn".
2780 (iq2000_annotate_frame_insn): Likewise for param "insn".
2781 (iq2000_expand_prologue): Likewise for both locals "insn".
2782 (iq2000_adjust_insn_length): Likewise for param "insn".
2783 (iq2000_output_conditional_branch): Likewise.
2785 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2787 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2788 "insns" from rtx to rtx_insn *.
2789 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2790 (struct spill_fill_data): Likewise for field "init_after" and for
2791 elements of array field "prev_insn".
2792 (spill_restore_mem): Likewise for locals "insn", "first".
2793 (do_spill): Likewise for local "insn".
2794 (do_restore): Likewise.
2795 (ia64_expand_prologue): Likewise.
2796 (ia64_expand_epilogue): Likewise.
2797 (emit_insn_group_barriers): Likewise for locals "insn",
2799 (emit_all_insn_group_barriers): Likewise for locals "insn",
2801 (dfa_stop_insn): Likewise for this global.
2802 (dfa_pre_cycle_insn): Likewise.
2803 (ia64_nop): Likewise.
2804 (final_emit_insn_group_barriers): Likewise for locals "insn",
2806 (emit_predicate_relation_info): Likewise for locals "head", "n",
2808 (ia64_reorg): Likewise for local "insn".
2809 (ia64_output_mi_thunk): Likewise.
2810 (expand_vec_perm_interleave_2): Likewise for local "seq".
2812 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2814 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2815 param 1 "insn" from rtx to rtx_insn *.
2816 (ix86_use_lea_for_mov): Likewise.
2817 (ix86_avoid_lea_for_addr): Likewise.
2818 (ix86_split_lea_for_addr): Likewise.
2819 (ix86_lea_for_add_ok): Likewise.
2820 (ix86_output_call_insn): Likewise.
2822 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2823 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2824 (ix86_output_function_epilogue): Likewise for locals "insn",
2825 "deleted_debug_label".
2826 (legitimize_tls_address): Likewise for local "insn".
2827 (get_some_local_dynamic_name): Likewise.
2828 (increase_distance): Likewise for params "prev", "next".
2829 (distance_non_agu_define_in_bb): Likewise for params "insn",
2830 "start" and locals "prev", "next".
2831 (distance_non_agu_define): Likewise for param "insn".
2832 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2833 locals "next", "prev".
2834 (distance_agu_use): Likewise for param "insn".
2835 (ix86_lea_outperforms): Likewise.
2836 (ix86_ok_to_clobber_flags): Likewise.
2837 (ix86_avoid_lea_for_add): Likewise.
2838 (ix86_use_lea_for_mov): Likewise.
2839 (ix86_avoid_lea_for_addr): Likewise.
2840 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2841 (ix86_split_lea_for_addr): Likewise for param "insn".
2842 (ix86_lea_for_add_ok): Likewise for param "insn".
2843 (ix86_expand_carry_flag_compare): Likewise for local
2845 (ix86_expand_int_movcc): Likewise.
2846 (ix86_output_call_insn): Likewise for param "insn".
2847 (ix86_output_call_insn): Likewise for local "i".
2848 (x86_output_mi_thunk): Introduce local "insn", using it in place
2849 of "tmp" when dealing with insns.
2850 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2852 (ix86_pad_returns): Likewise for locals "ret", "prev".
2853 (ix86_count_insn_bb): Likewise for local "insn".
2854 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2855 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2856 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2857 (expand_vec_perm_interleave2): Likewise for local "seq".
2858 (expand_vec_perm_vperm2f128_vblend): Likewise.
2859 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2860 call to for_each_rtx with for_each_rtx_in_insn.
2862 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2864 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2865 "label" from rtx to rtx_code_label *.
2866 (ix86_expand_prologue): Likewise.
2867 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2869 (ix86_split_idivmod): Likewise for locals "end_label" and
2871 (ix86_expand_branch): Likewise for local "label2".
2872 (ix86_expand_aligntest): Likewise for return type and local "label".
2873 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2875 (expand_movmem_epilogue): Likewise for the various locals named
2877 (expand_setmem_epilogue): Likewise.
2878 (expand_small_movmem_or_setmem): Likewise for local "label".
2879 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2880 Strengthen param "done_label" from rtx * to rtx_code_label **.
2881 Strengthen locals "loop_label" and "label" from rtx to
2883 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2884 Likewise for locals "loop_label", "label".
2885 (ix86_expand_set_or_movmem): Likewise for locals "label",
2886 "jump_around_label", "hot_label".
2887 (ix86_expand_strlensi_unroll_1): Likewise for locals
2888 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2890 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2891 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2892 "label2", "jump_label".
2893 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2895 (ix86_expand_lfloorceil): Likewise for local "label".
2896 (ix86_expand_rint): Likewise.
2897 (ix86_expand_floorceildf_32): Likewise.
2898 (ix86_expand_floorceil): Likewise.
2899 (ix86_expand_rounddf_32): Likewise.
2900 (ix86_expand_trunc): Likewise.
2901 (ix86_expand_truncdf_32): Likewise.
2902 (ix86_expand_round): Likewise.
2904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2906 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2907 first param from rtx to rtx_insn *.
2908 (h8300_insn_length_from_table): Likewise.
2909 * config/h8300/h8300.c (F): Likewise for return type and param
2911 (Fpa): Add a checked cast to rtx_insn *.
2912 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2914 (final_prescan_insn): Likewise for param "insn".
2915 (h8300_binary_length): Likewise.
2916 (h8300_insn_length_from_table): Likewise.
2918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2920 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2921 Strengthen first param "insn" from rtx to rtx_insn *.
2923 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2925 (frame_insn): Likewise for return type. Introduce local "insn"
2926 for use in place of local "x" for use as an rtx_insn *.
2927 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2928 (epiphany_expand_prologue): Likewise for local "insn".
2929 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2930 * config/epiphany/resolve-sw-modes.c
2931 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2934 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2936 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2937 param from rtx to rtx_insn *.
2938 (c6x_final_prescan_insn): Likewise for first param.
2940 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2941 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2942 (c6x_expand_compare): Strengthen local "insns" from rtx to
2944 (c6x_get_unit_specifier): Likewise for param "insn".
2945 (c6x_print_unit_specifier_field): Likewise.
2946 (c6x_final_prescan_insn): Likewise.
2947 (emit_add_sp_const): Likewise for local "insn".
2948 (c6x_expand_prologue): Likewise.
2950 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2952 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2953 param 1 from rtx to rtx_insn *.
2954 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2955 the various locals named "insn".
2956 (expand_epilogue_reg_restore): Likewise.
2957 (frame_related_constant_load): Likewise.
2958 (add_to_reg): Likewise.
2959 (emit_link_insn): Likewise.
2960 (do_link): Likewise.
2961 (expand_interrupt_handler_prologue): Likewise.
2962 (branch_dest): Likewise for param "branch".
2963 (asm_conditional_branch): Likewise for param "insn".
2964 (gen_one_bundle): Likewise for elements of param "slot" and local
2966 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2967 elements of local "slot".
2968 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2969 "queue", "next_queue", "prev".
2970 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2971 (add_sched_insns_for_speculation): Likewise for local "insn".
2973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2975 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2976 from rtx to rtx_insn *.
2977 (output_movhi): Likewise.
2978 (output_movsisf): Likewise.
2979 (avr_out_tstsi): Likewise.
2980 (avr_out_tsthi): Likewise.
2981 (avr_out_tstpsi): Likewise.
2982 (avr_out_compare): Likewise.
2983 (avr_out_compare64): Likewise.
2984 (avr_out_movpsi): Likewise.
2985 (ashlqi3_out): Likewise.
2986 (ashlhi3_out): Likewise.
2987 (ashlsi3_out): Likewise.
2988 (ashrqi3_out): Likewise.
2989 (ashrhi3_out): Likewise.
2990 (ashrsi3_out): Likewise.
2991 (lshrqi3_out): Likewise.
2992 (lshrhi3_out): Likewise.
2993 (lshrsi3_out): Likewise.
2994 (avr_out_ashlpsi3): Likewise.
2995 (avr_out_ashrpsi3): Likewise.
2996 (avr_out_lshrpsi3): Likewise.
2997 (avr_out_fract): Likewise.
2998 (avr_out_sbxx_branch): Likewise.
2999 (avr_out_round): Likewise.
3000 (avr_out_xload): Likewise.
3001 (avr_out_movmem): Likewise.
3002 (adjust_insn_length): Likewise.
3003 (avr_out_lpm): Likewise.
3004 (reg_unused_after): Likewise.
3005 (_reg_unused_after): Likewise.
3006 (avr_jump_mode): Likewise for second param.
3007 (jump_over_one_insn): Likewise for first param.
3008 (avr_final_prescan_insn): Likewise.
3009 (out_shift_with_cnt): Likewise for second param.
3011 * config/avr/avr.c (get_sequence_length): Likewise for param
3012 "insns" and local "insn".
3013 (emit_push_byte): Likewise for local "insn".
3014 (emit_push_sfr): Likewise.
3015 (avr_prologue_setup_frame): Likewise for locals "insn",
3016 "fp_plus_insns", "sp_plus_insns".
3017 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3019 (avr_jump_mode): Likewise for param "insn".
3020 (avr_final_prescan_insn): Likewise.
3021 (avr_find_unused_d_reg): Likewise.
3022 (avr_out_lpm_no_lpmx): Likewise.
3023 (avr_out_lpm): Likewise.
3024 (avr_out_xload): Likewise.
3025 (output_movqi): Likewise.
3026 (output_movhi): Likewise.
3027 (out_movqi_r_mr): Likewise.
3028 (out_movhi_r_mr): Likewise.
3029 (out_movsi_r_mr): Likewise.
3030 (out_movsi_mr_r): Likewise.
3031 (output_movsisf): Likewise.
3032 (avr_out_load_psi): Likewise.
3033 (avr_out_store_psi): Likewise.
3034 (avr_out_movpsi): Likewise.
3035 (out_movqi_mr_r): Likewise.
3036 (avr_out_movhi_mr_r_xmega): Likewise.
3037 (out_movhi_mr_r): Likewise.
3038 (compare_condition): Likewise for param "insn" and local "next".
3039 (compare_sign_p): Likewise for param "insn".
3040 (compare_diff_p): Likewise.
3041 (compare_eq_p): Likewise.
3042 (avr_out_compare): Likewise.
3043 (avr_out_compare64): Likewise.
3044 (avr_out_tsthi): Likewise.
3045 (avr_out_tstpsi): Likewise.
3046 (avr_out_tstsi): Likewise.
3047 (out_shift_with_cnt): Likewise.
3048 (ashlqi3_out): Likewise.
3049 (ashlhi3_out): Likewise.
3050 (avr_out_ashlpsi3): Likewise.
3051 (ashlsi3_out): Likewise.
3052 (ashrqi3_out): Likewise.
3053 (ashrhi3_out): Likewise.
3054 (avr_out_ashrpsi3): Likewise.
3055 (ashrsi3_out): Likewise.
3056 (lshrqi3_out): Likewise.
3057 (lshrhi3_out): Likewise.
3058 (avr_out_lshrpsi3): Likewise.
3059 (lshrsi3_out): Likewise.
3060 (avr_out_fract): Likewise.
3061 (avr_out_round): Likewise.
3062 (avr_adjust_insn_length): Likewise.
3063 (reg_unused_after): Likewise.
3064 (_reg_unused_after): Likewise.
3065 (avr_compare_pattern): Likewise.
3066 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3067 and locals "branch1", "branch2", "insn2", "jump".
3068 (avr_reorg): Likewise for local "insn".
3069 (avr_2word_insn_p): Likewise for param "insn".
3070 (jump_over_one_insn_p): Likewise.
3071 (avr_out_sbxx_branch): Likewise.
3072 (avr_out_movmem): Likewise.
3074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3076 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
3077 param from rtx to rtx_insn *.
3078 (thumb1_final_prescan_insn): Likewise.
3079 (thumb2_final_prescan_insn): Likewise.
3081 * config/arm/arm.c (emit_set_insn): Strengthen return type from
3083 (struct minipool_node): Likewise for field "insn".
3084 (dump_minipool): Likewise for param "scan".
3085 (create_fix_barrier): Likewise for local "from". Strengthen local
3086 "label" from rtx to rtx_code_label *.
3087 (push_minipool_barrier): Strengthen param "insn" from rtx to
3089 (push_minipool_fix): Likewise.
3090 (note_invalid_constants): Likewise.
3091 (thumb2_reorg): Likewise for local "insn".
3092 (arm_reorg): Likewise.
3093 (thumb2_final_prescan_insn): Likewise for param
3094 "insn" and local "first_insn".
3095 (arm_final_prescan_insn): Likewise for param "insn" and locals
3096 "start_insn", "this_insn".
3097 (arm_debugger_arg_offset): Likewise for param "insn".
3098 (thumb1_emit_multi_reg_push): Likewise for return type and local
3100 (thumb1_final_prescan_insn): Likewise for param "insn".
3101 (thumb_far_jump_used_p): Likewise for local "insn".
3102 (thumb1_expand_prologue): Likewise.
3103 (arm_expand_epilogue_apcs_frame): Likewise.
3104 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3105 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3106 from rtx to rtx_code_label *.
3107 (arm_split_atomic_op): Likewise for local "label".
3108 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3110 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3112 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3113 first param from rtx to rtx_insn *.
3114 (arc_verify_short): Likewise.
3115 (arc_short_long): Likewise.
3116 (arc_need_delay): Likewise.
3118 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3120 (arc_ccfsm_advance): Likewise for param "insn" and locals
3121 "start_insn", "this_insn".
3122 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3123 (arc_ccfsm_post_advance): Likewise for param "insn".
3124 (arc_next_active_insn): Likewise for return type and param "insn".
3125 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3126 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3127 (output_short_suffix): Likewise for local "insn".
3128 (arc_final_prescan_insn): Likewise for param "insn". Remove
3129 now-redundant checked cast.
3130 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3131 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3132 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3133 for use where lc_set became an insn.
3134 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3136 (arc_get_insn_variants): Likewise for local "prev".
3137 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3139 (arc_predicate_delay_insns): Likewise for local "insn".
3140 (arc_pad_return): Likewise for local "prev". For now, add a
3141 checked cast when extracting the insn from "final_sequence".
3142 (arc_short_long): Likewise for param "insn".
3143 (arc_need_delay): Likewise for param "insn" and local "next".
3144 (arc_label_align): Likewise for locals "prev", "next".
3146 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3148 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3149 "insn" from rtx to rtx_insn *.
3150 (alpha_gp_save_rtx): Likewise for local "seq".
3151 (alpha_instantiate_decls): Likewise for local "top".
3152 (get_some_local_dynamic_name): Likewise for local "insn".
3153 (alpha_does_function_need_gp): Likewise.
3154 (set_frame_related_p): Likewise for return type and for locals
3156 (emit_frame_store_1): Likewise for local "insn".
3157 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3158 (alpha_end_function): Likewise for local "insn".
3159 (alpha_output_mi_thunk_osf): Likewise.
3160 (alphaev4_insn_pipe): Likewise for param "insn".
3161 (alphaev5_insn_pipe): Likewise.
3162 (alphaev4_next_group): Likewise for return type and param 1
3164 (alphaev5_next_group): Likewise.
3165 (alpha_align_insns_1): Likewise for return type and param 1 of
3166 callback param "next_group", and for locals "i", "next", "prev",
3167 "where", "where2", "insn".
3169 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3171 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3172 rather than modifying the stmt.
3174 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3176 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3177 cgraph_state conversion.
3179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3181 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3182 Strengthen local "insns" from rtx to rtx_insn *.
3183 (aarch64_set_frame_expr): Likewise for local "insn".
3184 (aarch64_save_or_restore_fprs): Likewise.
3185 (aarch64_save_or_restore_callee_save_registers): Likewise.
3186 (aarch64_expand_prologue): Likewise.
3187 (aarch64_expand_epilogue): Likewise.
3188 (aarch64_output_mi_thunk): Likewise.
3189 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3190 "label2" from rtx to rtx_code_label *.
3191 (aarch64_split_atomic_op): Likewise for local "label".
3193 2014-08-25 Martin Liska <mliska@suse.cz>
3195 * cgraph.h (symtab_node):
3196 (bool needed_p (void)): created from decide_is_symbol_needed
3197 (bool referred_to_p (void)): created from referred_to_p
3198 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3199 * cgraph.h (cgraph_node):
3200 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3201 (void expand (void)): created from expand_function
3202 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3203 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3204 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3205 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3206 * cgraph.h (varpool_node):
3207 (static void add (tree decl): created from varpool_add_new_variable
3208 * cgraph.h (cgraph_edge):
3210 (void remove_caller (void)): created from cgraph_edge_remove_caller
3211 (void remove_callee (void)): created from cgraph_edge_remove_callee
3212 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3213 created from cgraph_set_call_stmt
3214 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3215 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3216 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3217 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3218 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3219 created from cgraph_speculative_call_info
3220 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3221 int freq_scale, bool update_original)): created from cgraph_clone_edge
3222 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3223 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3224 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3225 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3226 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3227 (static void rebuild_references (void)): created from cgraph_rebuild_references
3228 * cgraph.h (symbol_table):
3229 (create_reference): renamed from add_reference
3230 (maybe_create_reference): renamed from maybe_add_reference
3231 (void register_symbol (symtab_node *node)): new function
3232 (void clear_asm_symbols (void)): new function
3233 (void unregister (symtab_node *node)): new function
3234 (void release_symbol (cgraph_node *node, int uid)): new function
3235 (cgraph_node * allocate_cgraph_symbol (void)): new function
3236 (void initialize (void)): created from cgraph_init
3237 (symtab_node *first_symbol (void)):new function
3238 (asm_node *first_asm_symbol (void)):new function
3239 (symtab_node *first_defined_symbol (void)):new function
3240 (varpool_node *first_variable (void)):new function
3241 (varpool_node *next_variable (varpool_node *node)):new function
3242 (varpool_node *first_static_initializer (void)):new function
3243 (varpool_node *next_static_initializer (varpool_node *node)):new function
3244 (varpool_node *first_defined_variable (void)):new function
3245 (varpool_node *next_defined_variable (varpool_node *node)):new function
3246 (cgraph_node *first_defined_function (void)):new function
3247 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3248 (cgraph_node *first_function (void)):new function
3249 (cgraph_node *next_function (cgraph_node *node)):new function
3250 (cgraph_node *first_function_with_gimple_body (void)):new function
3251 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3252 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3253 created from symtab_remove_unreachable_nodes
3254 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3255 (void process_new_functions (void)): created from cgraph_process_new_functions
3256 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3257 (bool output_variables (void)): created from varpool_node::output_variables
3258 (void output_asm_statements (void)): created from output_asm_statements
3259 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3260 (void compile (void)): created from compile
3261 (void output_weakrefs (void)): created from output_weakrefs
3262 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3263 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3264 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3265 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3266 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3267 created from cgraph_next_function_with_gimple_body
3268 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3269 created from cgraph_remove_edge_removal_hook
3270 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3271 created from cgraph_add_node_removal_hook
3272 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3273 created from cgraph_remove_node_removal_hook
3274 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3275 created from varpool_add_node_removal_hook
3276 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3277 created from varpool_remove_node_removal_hook
3278 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3279 created from cgraph_add_function_insertion_hook
3280 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3281 created from cgraph_remove_function_insertion_hook
3282 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3283 created from varpool_add_variable_insertion_hook
3284 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3285 created from varpool_remove_variable_insertion_hook
3286 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3287 created from cgraph_add_edge_duplication_hook
3288 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3289 created from cgraph_remove_edge_duplication_hook
3290 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3291 created from cgraph_add_node_duplication_hook
3292 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3293 created from cgraph_remove_node_duplication_hook
3294 (void call_edge_removal_hooks (cgraph_edge *e)):
3295 created from cgraph_call_edge_removal_hooks
3296 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3297 created from call_function_insertion_hooks
3298 (void call_cgraph_removal_hooks (cgraph_node *node)):
3299 created from cgraph_call_node_removal_hooks
3300 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3301 created from cgraph_node::call_duplication_hooks
3302 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3303 created from cgraph_call_edge_duplication_hooks
3304 (void call_varpool_removal_hooks (varpool_node *node)):
3305 created from varpool_call_node_removal_hooks
3306 (void call_varpool_insertion_hooks (varpool_node *node)):
3307 created from varpool_call_variable_insertion_hooks
3308 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3309 created from insert_to_assembler_name_hash
3310 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3311 created from unlink_from_assembler_name_hash
3312 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3313 created from symtab_prevail_in_asm_name_hash
3314 (void symtab_initialize_asm_name_hash (void)):
3315 created from symtab_initialize_asm_name_hash
3316 (void change_decl_assembler_name (tree decl, tree name)):
3317 created from change_decl_assembler_name
3318 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3319 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3320 created from decl_assembler_name_hash
3321 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3322 created from decl_assembler_name_equal
3323 (static hashval_t hash_node_by_assembler_name (const void *p)):
3324 created from hash_node_by_assembler_name
3325 (static int eq_assembler_name (const void *p1, const void *p2)):
3326 created from eq_assembler_name
3328 2014-08-25 Marek Polacek <polacek@redhat.com>
3330 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3332 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3334 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3335 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3336 SWI1248_AVX512BW mode iterator.
3338 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3341 * config/sh/predicates.md (general_extend_operand): Disable
3342 TRUNCATE before reload completes.
3344 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3346 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3348 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3351 * config/sh/sh.opt (musermode): Allow negative form.
3352 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3353 targets that don't support it.
3354 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3355 Document -mno-usermode option.
3357 2014-08-24 Kito Cheng <kito@0xlab.org>
3359 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3360 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3361 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3362 * doc/tm.texi: Regenerate.
3364 2014-08-24 Kito Cheng <kito@0xlab.org>
3366 * ira.c: Fix typo in comment.
3368 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3370 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3371 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3373 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3376 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3377 last_address when the current function is a thunk.
3378 (pa_asm_output_mi_thunk): When we don't have named sections or they
3379 are not being used, check that thunk can reach the stub table with a
3382 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3384 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3386 (pass_web::execute): Likewise for local "insn".
3388 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3390 * var-tracking.c (struct micro_operation_def): Strengthen field
3391 "insn" from rtx to rtx_insn *.
3392 (struct emit_note_data_def): Likewise.
3393 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3394 (vt_stack_adjustments): Likewise for local "insn".
3395 (adjust_insn): Likewise for param "insn".
3396 (val_store): Likewise.
3397 (val_resolve): Likewise.
3398 (struct count_use_info): Likewise for field "insn".
3399 (log_op_type): Likewise for param "insn".
3400 (reverse_op): Likewise.
3401 (prepare_call_arguments): Likewise.
3402 (add_with_sets): The initial param takes an insn, but we can't
3403 yet strengthen it from rtx to rtx_insn * since it's used as a
3404 cselib_record_sets_hook callback. For now rename initial param
3405 from "insn" to "uncast_insn", and introduce a local "insn" of
3406 the stronger rtx_insn * type, with a checked cast.
3407 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3409 (emit_note_insn_var_location): Likewise.
3410 (emit_notes_for_changes): Likewise.
3411 (emit_notes_for_differences): Likewise.
3412 (next_non_note_insn_var_location): Likewise for return type and
3414 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3415 (vt_initialize): Likewise for local "insn".
3416 (delete_debug_insns): Likewise for locals "insn" and "next".
3418 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3420 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3422 (mark_constant_pool): Likewise for local "insn".
3424 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3426 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3428 (dead_debug_promote_uses): Likewise.
3429 (dead_debug_insert_temp): Likewise.
3431 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3433 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3434 from const_rtx to const rtx_insn *.
3435 (store_killed_after): Likewise. Strengthen locals "last", "act"
3436 from rtx to rtx_insn *.
3437 (store_killed_before): Strengthen param "insn" from const_rtx to
3438 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3439 (find_moveable_store): Strengthen param "insn" from rtx to
3441 (compute_store_table): Likewise for local "insn".
3442 (insert_insn_start_basic_block): Likewise for param "insn" and
3443 locals "prev", "before", "insn".
3444 (insert_store): For now, add a checked cast to rtx_insn * on the
3445 result of gen_move_insn.
3446 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3448 (replace_store_insn): Likewise. For now, add a checked cast to
3449 rtx_insn * on the result of gen_move_insn.
3451 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3453 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3455 (expand_sjlj_dispatch_table): Likewise.
3457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3459 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3460 "insn" from rtx to rtx_insn *.
3462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3464 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3465 "insn" from rtx to rtx_insn *.
3466 (dup_block_and_redirect): Likewise for param 3 "before".
3468 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3469 from rtx to rtx_insn *.
3470 (move_insn_for_shrink_wrap): Likewise.
3471 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3472 (dup_block_and_redirect): Likewise for param "before" and local
3474 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3476 (convert_to_simple_return): Likewise for local "start".
3478 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3479 Strengthen local "insn" from rtx to rtx_insn *, for use when
3480 invoking requires_stack_frame_p.
3482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3484 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3486 (speculate_expr): Likewise for locals "orig_insn_rtx",
3488 (eq_transformed_insns): Likewise for locals "i1", "i2".
3489 (check_for_new_jump): Likewise for return type and local "end".
3490 (find_new_jump): Likewise for return type and local "jump".
3491 (sel_split_edge): Likewise for local "jump".
3492 (sel_create_recovery_block): Likewise.
3493 (sel_redirect_edge_and_branch_force): Likewise.
3494 (sel_redirect_edge_and_branch): Likewise.
3496 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3498 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3499 "new_insn" from rtx to rtx_insn *.
3500 (create_insn_rtx_with_rhs): Likewise for return type and for local
3502 (create_insn_rtx_with_lhs): Likewise.
3503 (create_speculation_check): Likewise for local "insn_rtx".
3504 (implicit_clobber_conflict_p): Likewise for local "insn".
3505 (get_expr_cost): Likewise.
3506 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3507 (move_cond_jump): Likewise for locals "next", "prev", "link",
3508 "head", "from", "to".
3510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3512 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3513 "next" from rtx to rtx_insn *.
3514 (find_conditional_protection): Likewise for local "next".
3515 (is_conditionally_protected): Likewise for local "insn1".
3516 (is_pfree): Likewise for locals "insn1", "insn2".
3518 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3520 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3521 from rtx to rtx_insn *.
3523 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3524 locals "insn1", "insn2" from rtx to rtx_insn *.
3525 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3526 locals "insn", "prev", "last_jump", "next_tail".
3527 (schedule_ebb): Likewise for params "head", "tail".
3528 (schedule_ebbs): Likewise for locals "tail", "head".
3530 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3531 to rtx_insn on "last_insn" in one of the invocations of
3534 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3536 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3537 "elem", "insn" from rtx to rtx_insn *.
3538 (change_spec_dep_to_hard): Likewise.
3539 (get_back_and_forw_lists): Likewise for local "con".
3540 (sd_add_dep): Likewise for locals "elem", "insn".
3541 (sd_resolve_dep): Likewise for locals "pro", "con".
3542 (sd_unresolve_dep): Likewise.
3543 (sd_delete_dep): Likewise.
3544 (chain_to_prev_insn): Likewise for local "pro".
3545 (find_inc): Likewise for locals "pro", "con".
3547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3549 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3551 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3553 (modified_between_p): Strengthen local "insn" from rtx to
3555 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3556 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3561 * resource.c (next_insn_no_annul): Strengthen local "next" from
3563 (mark_referenced_resources): Likewise for local "insn".
3565 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3567 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3569 (find_reloads): Likewise for param 1.
3570 (subst_reloads): Likewise for sole param.
3571 (find_equiv_reg): Likwise for param 2.
3572 (regno_clobbered_p): Likwise for param 2.
3573 (reload): Likewise for param 1.
3575 * caller-save.c (save_call_clobbered_regs): Strengthen local
3576 "insn" from rtx to rtx_insn *.
3577 (insert_one_insn): Likewise for local "insn".
3579 * reload.c (this_insn): Likewise for this global.
3580 (find_reloads): Likewise for param "insn".
3581 (find_reloads_toplev): Likewise.
3582 (find_reloads_address): Likewise.
3583 (subst_reg_equivs): Likewise.
3584 (update_auto_inc_notes): Likewise.
3585 (find_reloads_address_1): Likewise.
3586 (find_reloads_subreg_address): Likewise.
3587 (subst_reloads): Likewise.
3588 (find_equiv_reg): Likewise, also for local "p".
3589 (regno_clobbered_p): Likewise for param "insn".
3591 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3593 (spill_reg_store): Likewise for the elements of this array.
3594 (remove_init_insns): Likewise for local "equiv_insn".
3595 (will_delete_init_insn_p): Likewise for param "insn".
3596 (reload): Likewise for param ""first" and local "insn".
3597 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3599 (calculate_elim_costs_all_insns): Likewise.
3600 (delete_caller_save_insns): Likewise.
3601 (spill_failure): Likewise for param "insn".
3602 (delete_dead_insn): Likewise.
3603 (set_label_offsets): Likewise.
3604 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3606 (elimination_costs_in_insn): Likewise for param "insn".
3607 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3608 when referring to an insn.
3609 (set_initial_label_offsets): Likewise.
3610 (set_offsets_for_label): Strengthen param "insn" from rtx to
3612 (init_eliminable_invariants): Likewise for param "first" and local
3614 (fixup_eh_region_note): Likewise for param "insn".
3615 (reload_as_needed): Likewise for locals "prev", "insn",
3616 "old_next", "old_prev", "next".
3617 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3619 (reload_inheritance_insn): Strengthen elements of this array from
3621 (failed_reload): Likewise for param "insn".
3622 (choose_reload_regs): Likewise for local "insn". Replace use of
3623 NULL_RTX with NULL when referring to an insn.
3624 (input_reload_insns): Strengthen elements of this array from rtx
3626 (other_input_address_reload_insns): Likewise for this global.
3627 (other_input_reload_insns): Likewise for this global.
3628 (input_address_reload_insns): Likwise for the elements of this
3630 (inpaddr_address_reload_insns): Likwise for the elements of this
3632 (output_reload_insns): Likewise for the elements of this array.
3633 (output_address_reload_insns): Likewise for the elements of this
3635 (outaddr_address_reload_insns): Likewise for the elements of this
3637 (operand_reload_insns): Likewise for this global.
3638 (other_operand_reload_insns): Likewise for this global.
3639 (other_output_reload_insns): Likewise for the elements of this
3641 (new_spill_reg_store): Likewise for the elements of this
3643 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3644 Strengthen local "where" from rtx * to rtx_insn **.
3645 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3646 from rtx to rtx_insn *.
3647 (do_input_reload): Likewise for local "insn".
3648 (do_output_reload): Likewise for local "insn".
3649 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3650 (emit_insn_if_valid_for_reload): Likewise for return type and local
3651 "last". Add checked cast to rtx_insn when returning "insn" since
3652 this has been through emit_insn.
3653 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3654 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3655 returning "insn" since it's been through
3656 emit_insn_if_valid_for_reload at this point.
3657 (delete_output_reload): Strengthen param "insn" and locals
3658 "output_reload_insn", "i2" from rtx to rtx_insn *.
3659 (delete_address_reloads): Likewise for params "dead_insn",
3660 "current_insn" and locals "prev", "next".
3661 (delete_address_reloads_1): Likewise for params "dead_insn",
3662 "current_insn" and locals "prev", "i2".
3663 (inc_for_reload): Likewise for locals "last", "add_insn".
3664 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3667 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3668 param of this duplicate of the prototype from reload.h
3670 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3672 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3674 (regstat_bb_compute_calls_crossed): Likewise.
3676 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3678 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3680 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3682 (regrename_analyze): Strengthen local "insn" from rtx to
3684 (scan_rtx_reg): Likewise for param "insn".
3685 (scan_rtx_address): Likewise.
3686 (scan_rtx): Likewise.
3687 (restore_operands): Likewise.
3688 (record_out_operands): Likewise.
3689 (build_def_use): Likewise for local "insn". Replace use of
3690 NULL_RTX with NULL when dealing with an insn.
3692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3694 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3695 * reginfo.c (reg_scan): Likewise, also for local "insn".
3696 (reg_scan_mark_refs): Likewise for param "insn".
3697 (init_subregs_of_mode): Likewise for local "insn".
3699 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3701 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3702 "insn" from rtx to rtx_insn *.
3703 (replace_oldest_value_reg): Likewise for param "insn".
3704 (replace_oldest_value_addr): Likewise.
3705 (replace_oldest_value_mem): Likewise.
3706 (apply_debug_insn_changes): Likewise for local "last_insn".
3707 (copyprop_hardreg_forward_1): Likewise for local "insn".
3709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3711 * reg-stack.c (next_flags_user): Strengthen return type and param
3712 "insn" from rtx to rtx_insn *.
3713 (straighten_stack): Likewise for param "insn".
3714 (check_asm_stack_operands): Likewise.
3715 (remove_regno_note): Likewise.
3716 (emit_pop_insn): Likewise for return type, param "insn", local
3718 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3719 "limit" from rtx to rtx_insn *.
3720 (swap_to_top): Likewise for param "insn".
3721 (move_for_stack_reg): Likewise.
3722 (move_nan_for_stack_reg): Likewise.
3723 (swap_rtx_condition): Likewise.
3724 (compare_for_stack_reg): Likewise.
3725 (subst_all_stack_regs_in_debug_insn): Likewise.
3726 (subst_stack_regs_pat): Likewise, and local "insn2".
3727 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3729 (subst_stack_regs): Likewise.
3730 (change_stack): Likewise.
3731 (convert_regs_1): Likewise for locals "insn", "next".
3733 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3735 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3737 (combine_set_extension): Likewise for param "curr_insn".
3738 (transform_ifelse): Likewise for param "def_insn".
3739 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3740 from vec<rtx> * to vec<rtx_insn *> *.
3741 (is_cond_copy_insn): Likewise for param "insn".
3742 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3744 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3745 local "def_insn" from rtx to rtx_insn *.
3746 (get_sub_rtx): Likewise for param "def_insn".
3747 (merge_def_and_ext): Likewise.
3748 (combine_reaching_defs): Likewise.
3749 (add_removable_extension): Likewise for param "insn".
3750 (find_removable_extensions): Likewise for local "insn".
3751 (find_and_remove_re): Likewise for locals "curr_insn" and
3752 "def_insn". Strengthen locals "reinsn_del_list" and
3753 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3757 * recog.c (split_insn): Strengthen param "insn" and locals
3758 "first", "last" from rtx to rtx_insn *.
3759 (split_all_insns): Likewise for locals "insn", "next".
3760 (split_all_insns_noflow): Likewise.
3762 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3764 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3766 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3767 (debug_rtx_find): Likewise for param 1 "x".
3769 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3770 const_rtx to const rtx_insn *. Likewise for local "insn".
3771 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3772 (debug_rtx_find): Likewise for param 1 "x".
3773 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3774 from const_rtx to const rtx_insn * within the appropriate cases of
3775 the switch statement.
3777 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3778 Strengthen local "insns" from rtx to rtx_insn * since this is
3779 passed to a call to debug_rtx_list.
3781 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3783 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3786 * function.c (stack_protect_epilogue): Add checked cast to
3787 rtx_insn for now when invoking predict_insn_def.
3789 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3791 (predict_insn_def): Likewise.
3792 (rtl_predict_edge): Likewise for local "last_insn".
3793 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3795 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3797 (bb_estimate_probability_locally): Likewise for local "last_insn".
3798 (expensive_function_p): Likewise for local "insn".
3800 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3801 local "jmp", since this is used when invoking predict_insn_def.
3803 2014-08-22 Marek Polacek <polacek@redhat.com>
3806 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3808 2014-08-22 Marek Polacek <polacek@redhat.com>
3811 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3812 a comparison in parens.
3813 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3818 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3821 * cprop.c (fis_get_condition): Likewise.
3823 * postreload.c (reload_cse_regs): Likewise for param "first".
3824 (reload_cse_simplify): Likewise for param "insn".
3825 (reload_cse_regs_1): Likewise for local "insn".
3826 (reload_cse_simplify_set): Likewise for param "insn".
3827 (reload_cse_simplify_operands): Likewise.
3828 (struct reg_use): Likewise for field "insn".
3829 (reload_combine_purge_insn_uses): Likewise for param "insn".
3830 (fixup_debug_insns): Likewise for params "from", "to" and local
3832 (try_replace_in_use): Likewise for local "use_insn".
3833 (reload_combine_recognize_const_pattern): Likewise for param
3834 "insn" and locals "add_moved_after_insn", "use_insn".
3835 (reload_combine_recognize_pattern): Likewise for param "insn" and
3837 (reload_combine): Likewise for locals "insn", "prev".
3838 (reload_combine_note_use): Likewise for param "insn".
3839 (move2add_use_add2_insn): Likewise.
3840 (move2add_use_add3_insn): Likewise.
3841 (reload_cse_move2add): Likewise, also for local "next".
3842 (move2add_note_store): Likewise for local "insn".
3844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3846 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3848 (struct unoccr): Likewise.
3849 (struct modifies_mem): Likewise.
3850 (alloc_mem): Likewise for local "insn".
3851 (insert_expr_in_table): Likewise for param "insn".
3852 (dump_expr_hash_table_entry): Likewise for local "insn".
3853 (oprs_unchanged_p): Likewise for param "insn".
3854 (load_killed_in_block_p): Likewise for local "setter".
3855 (record_last_reg_set_info): Likewise for param "insn".
3856 (record_last_reg_set_info_regno): Likewise.
3857 (record_last_mem_set_info): Likewise.
3858 (record_last_set_info): Likewise for local "last_set_insn".
3859 (record_opr_changes): Likewise for param "insn".
3860 (hash_scan_set): Likewise.
3861 (compute_hash_table): Likewise for local "insn".
3862 (get_avail_load_store_reg): Likewise for param "insn".
3863 (eliminate_partially_redundant_load): Likewise, also for locals
3864 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3866 (eliminate_partially_redundant_loads): Likewise for local "insn".
3868 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3870 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3872 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3873 (expand_twoval_unop): Likewise for locals entry_last", "last".
3874 (expand_twoval_binop): Likewise.
3875 (expand_twoval_binop_libfunc): Likewise for local "insns".
3876 (widen_leading): Likewise for local "last".
3877 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3878 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3879 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3880 (expand_parity): Likewise for locals "last" and "seq".
3881 (expand_ffs): Likewise for local "seq". Strengthen local
3882 "nonzero_label" from rtx to rtx_code_label *.
3883 (expand_absneg_bit): Strengthen local "insns" from rtx to
3885 (expand_unop_direct): Likewise for local "last".
3886 (expand_unop): Likewise for locals "last", "insns".
3887 (expand_abs_nojump): Likewise for local "last".
3888 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3889 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3891 (expand_copysign_absneg): Strengthen local "label" from rtx to
3893 (expand_copysign_bit): Strengthen local "insns" from rtx to
3895 (struct no_conflict_data): Likewise for fields "first", "insn".
3896 (emit_libcall_block_1): Likewise for param "insns" and locals
3897 "next", "last", "insn".
3898 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3899 on "insns" when invoking emit_libcall_block_1. Ultimately we
3900 want to strengthen insns itself.
3901 (prepare_cmp_insn): Strengthen local "last" from rtx to
3903 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3904 (prepare_float_lib_cmp): Likewise for local "insns".
3905 (emit_conditional_move): Likewise for local "last".
3906 (emit_conditional_add): Likewise.
3907 (have_sub2_insn): Likewise for local "seq".
3908 (expand_float): Likewise for local "insns". Strengthen locals
3909 "label", "neglabel" from rtx to rtx_code_label *.
3910 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3911 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3912 (expand_fixed_convert): Likewise for local "insns" (to
3914 (expand_sfix_optab): Likewise for local "last".
3915 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3916 to rtx_code_label *.
3917 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3918 from rtx to rtx_insn *.
3919 (expand_atomic_fetch_op): Likewise for local "insn".
3920 (maybe_legitimize_operand_same_code): Likewise for local "last".
3921 (maybe_legitimize_operands): Likewise.
3923 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3925 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3926 "insn" from rtx to rtx_insn *.
3927 (ps_rtl_insn): Likewise for return type.
3928 (doloop_register_get): Likewise for params "head", "tail" and
3929 locals "insn", "first_insn_not_to_check".
3930 (schedule_reg_move): Likewise for local "this_insn".
3931 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3932 of gen_move_insn for now.
3933 (reset_sched_times): Strengthen local "insn" from rtx to
3935 (permute_partial_schedule): Likewise.
3936 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3937 (dump_insn_location): Likewise for param "insn".
3938 (loop_canon_p): Likewise for local "insn".
3939 (sms_schedule): Likewise.
3940 (print_partial_schedule): Likewise.
3941 (ps_has_conflicts): Likewise.
3943 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3945 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3946 "tailp" from rtx * to rtx_insn **.
3948 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3949 from rtx to rtx_insn *.
3950 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3951 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3952 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3954 * modulo-sched.c (const_iteration_count): Strengthen return type
3955 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3956 use of NULL_RTX with NULL when working with insns.
3957 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3959 (sms_schedule): Likewise.
3960 * sched-rgn.c (init_ready_list): Likewise, also for locals
3961 "src_head" and "src_next_tail".
3962 (compute_block_dependences): Likewise.
3963 (free_block_dependencies): Likewise.
3964 (debug_rgn_dependencies): Likewise.
3965 (free_rgn_deps): Likewise.
3966 (compute_priorities): Likewise.
3967 (schedule_region): Likewise.
3968 * sel-sched.c (find_ebb_boundaries): Likewise.
3970 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3971 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3975 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3976 from rtx to rtx_insn *.
3977 (new_seginfo): Likewise for param "insn".
3978 (create_pre_exit): Likewise for locals "last_insn",
3979 "before_return_copy", "return_copy".
3980 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3985 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3986 from rtx to rtx_insn *.
3987 (lra_push_insn): Likewise for 1st param.
3988 (lra_push_insn_and_update_insn_regno_info): Likewise.
3989 (lra_pop_insn): Likewise for return type.
3990 (lra_invalidate_insn_data): Likewise for 1st param.
3991 (lra_set_insn_deleted): Likewise.
3992 (lra_delete_dead_insn): Likewise.
3993 (lra_process_new_insns): Likewise for first 3 params.
3994 (lra_set_insn_recog_data): Likewise for 1st param.
3995 (lra_update_insn_recog_data): Likewise.
3996 (lra_set_used_insn_alternative): Likewise.
3997 (lra_invalidate_insn_regno_info): Likewise.
3998 (lra_update_insn_regno_info): Likewise.
3999 (lra_former_scratch_operand_p): Likewise.
4000 (lra_eliminate_regs_1): Likewise.
4001 (lra_get_insn_recog_data): Likewise.
4003 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4006 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4008 (substitute_within_insn): New.
4009 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4010 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
4011 Replace call to "substitute" with call to substitute_within_insn.
4013 * lra-constraints.c (curr_insn): Strengthen from rtx to
4015 (get_equiv_with_elimination): Likewise for param "insn".
4016 (match_reload): Strengthen params "before" and "after" from rtx *
4018 (emit_spill_move): Likewise for return type. Add a checked cast
4019 to rtx_insn * on result of gen_move_insn for now.
4020 (check_and_process_move): Likewise for local "before". Replace
4021 NULL_RTX with NULL when referring to insns.
4022 (process_addr_reg): Strengthen params "before" and "after" from
4023 rtx * to rtx_insn **.
4024 (insert_move_for_subreg): Likewise.
4025 (simplify_operand_subreg): Strengthen locals "before" and "after"
4026 from rtx to rtx_insn *.
4027 (process_address_1): Strengthen params "before" and "after" from
4028 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
4030 (process_address): Strengthen params "before" and "after" from
4031 rtx * to rtx_insn **.
4032 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4033 (curr_insn_transform): Strengthen locals "before" and "after"
4034 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
4036 (loc_equivalence_callback): Update cast of "data", changing
4037 resulting type from rtx to rtx_insn *.
4038 (substitute_pseudo_within_insn): New.
4039 (inherit_reload_reg): Strengthen param "insn" from rtx to
4040 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
4041 NULL when referring to insns. Add a checked cast to rtx_insn *
4042 when using usage_insn to invoke lra_update_insn_regno_info.
4043 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4044 likewise for locals "restore", "save". Add checked casts to
4045 rtx_insn * when using usage_insn to invoke
4046 lra_update_insn_regno_info and lra_process_new_insns. Replace
4047 NULL_RTX with NULL when referring to insns.
4048 (split_if_necessary): Strengthen param "insn" from rtx to
4050 (update_ebb_live_info): Likewise for params "head", "tail" and local
4052 (get_last_insertion_point): Likewise for return type and local "insn".
4053 (get_live_on_other_edges): Likewise for local "last".
4054 (inherit_in_ebb): Likewise for params "head", "tail" and locals
4055 "prev_insn", "next_insn", "restore".
4056 (remove_inheritance_pseudos): Likewise for local "prev_insn".
4057 (undo_optional_reloads): Likewise for local "insn".
4059 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
4061 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4063 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4065 (spill_pseudos): Likewise for local "insn".
4066 (init_elimination): Likewise.
4067 (process_insn_for_elimination): Likewise for param "insn".
4069 * lra-lives.c (curr_insn): Likewise.;
4071 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4072 (remove_pseudos): Likewise for param "insn".
4073 (spill_pseudos): Likewise for local "insn".
4074 (lra_final_code_change): Likewise for locals "insn", "curr".
4076 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
4077 (lra_set_insn_deleted): Likewise.
4078 (lra_delete_dead_insn): Likewise, and for local "prev".
4079 (new_insn_reg): Likewise for param "insn".
4080 (lra_set_insn_recog_data): Likewise.
4081 (lra_update_insn_recog_data): Likewise.
4082 (lra_set_used_insn_alternative): Likewise.
4083 (get_insn_freq): Likewise.
4084 (invalidate_insn_data_regno_info): Likewise.
4085 (lra_invalidate_insn_regno_info): Likewise.
4086 (lra_update_insn_regno_info): Likewise.
4087 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
4089 (lra_push_insn_1): Strengthen param "insn" from rtx to
4091 (lra_push_insn): Likewise.
4092 (lra_push_insn_and_update_insn_regno_info): Likewise.
4093 (lra_pop_insn): Likewise for return type and local "insn".
4094 (push_insns): Likewise for params "from", "to", and local "insn".
4095 (setup_sp_offset): Likewise for params "from", "last" and locals
4097 (lra_process_new_insns): Likewise for params "insn", "before",
4098 "after" and local "last".
4099 (struct sloc): Likewise for field "insn".
4100 (lra_former_scratch_operand_p): Likewise for param "insn".
4101 (remove_scratches): Likewise for locals "insn", "last".
4102 (check_rtl): Likewise for local "insn".
4103 (add_auto_inc_notes): Likewise for param "insn".
4104 (update_inc_notes): Likewise for local "insn".
4105 (lra): Replace NULL_RTX with NULL when referring to insn.
4107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4109 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4111 (resolve_reg_notes): Likewise.
4112 (resolve_simple_move): Likewise for return type, param "insn", and
4113 locals "insns", "minsn".
4114 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4115 (resolve_use): Likewise.
4116 (resolve_debug): Likewise.
4117 (find_decomposable_shift_zext): Likewise.
4118 (resolve_shift_zext): Likewise for return type, param "insn", and
4119 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4120 (decompose_multiword_subregs): Likewise for local "insn",
4121 "orig_insn", "decomposed_shift", "end".
4123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4125 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4126 param "insns" from rtx to rtx_insn *.
4128 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4130 (struct iv_to_split): Likewise.
4131 (loop_exit_at_end_p): Likewise for local "insn".
4132 (split_edge_and_insert): Likewise for param "insns".
4133 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4134 and locals "seq", "jump".
4135 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4136 "branch_code"; update invocations of compare_and_jump_seq to
4137 eliminate NULL_RTX in favor of NULL.
4138 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4140 (reset_debug_uses_in_loop): Likewise.
4141 (analyze_insn_to_expand_var): Likewise for param "insn".
4142 (analyze_iv_to_split_insn): Likewise.
4143 (analyze_insns_in_loop): Likewise for local "insn".
4144 (insert_base_initialization): Likewise for param
4145 "insn" and local "seq".
4146 (split_iv): Likewise for param "insn" and local "seq".
4147 (expand_var_during_unrolling): Likewise for param "insn".
4148 (insert_var_expansion_initialization): Likewise for local "seq".
4149 (combine_var_copies_in_loop_exit): Likewise.
4150 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4152 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4153 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4158 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4160 (iv_analyze_result): Likewise.
4161 (iv_analyze_expr): Likewise.
4164 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4165 local "def_insn" from rtx to rtx_insn *.
4166 (get_biv_step_1): Likewise for local "insn".
4167 (iv_analyze_expr): Likewise for param "insn".
4168 (iv_analyze_def): Likewise for local "insn".
4169 (iv_analyze_op): Likewise for param "insn".
4170 (iv_analyze): Likewise.
4171 (iv_analyze_result): Likewise.
4173 (suitable_set_for_replacement): Likewise.
4174 (simplify_using_initial_values): Likewise for local "insn".
4175 (iv_number_of_iterations): Likewise for param "insn".
4176 (check_simple_exit): Add checked cast to rtx_insn when invoking
4177 iv_number_of_iterations for now (until get_condition is
4180 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4181 "insn" from rtx to rtx_insn *.
4182 (analyze_insns_in_loop): Likewise for local "insn".
4184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4186 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4188 (struct invariant): Likewise.
4189 (hash_invariant_expr_1): Likewise for param "insn".
4190 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4191 (find_exits): Likewise for local "insn".
4192 (create_new_invariant): Likewise for param "insn".
4193 (check_dependencies): Likewise.
4194 (find_invariant_insn): Likewise.
4195 (record_uses): Likewise.
4196 (find_invariants_insn): Likewise.
4197 (find_invariants_bb): Likewise for local "insn".
4198 (get_pressure_class_and_nregs): Likewise for param "insn".
4199 (calculate_loop_reg_pressure): Likewise for local "insn".
4201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4203 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4205 (add_test): Likewise for locals "seq", "jump".
4206 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4208 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4210 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4212 (rebuild_jump_labels_chain): Likewise for param "chain".
4214 * cfgexpand.c (pass_expand::execute): Add checked cast to
4215 rtx_insn * when calling rebuild_jump_labels_chain in region where
4216 we know e->insns.r is non-NULL.
4218 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4220 (rebuild_jump_labels): Likewise.
4221 (rebuild_jump_labels_chain): Likewise for param "chain".
4222 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4223 (init_label_info): Likewise for param "f".
4224 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4225 "prev_nonjump_insn".
4226 (mark_all_labels): Likewise for param "f" and locals "insn",
4227 "prev_nonjump_insn".
4229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4231 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4232 from rtx to rtx_insn *insn.
4233 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4234 (ira_add_allocno_copy): Likewise.
4235 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4237 (ira_create_copy): Likewise.
4238 (ira_add_allocno_copy): Likewise.
4239 (create_bb_allocnos): Likewise for local "insn".
4240 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4241 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4242 process_regs_for_copy for rtx_insn * param.
4243 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4244 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4245 process_regs_for_copy for rtx_insn * param.
4246 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4247 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4248 (record_operand_costs): Likewise.
4249 (scan_one_insn): Likewise for return type, and for param "insn".
4250 (process_bb_for_costs): Likewise for local "insn".
4251 (process_bb_node_for_hard_reg_moves): Likewise.
4252 * ira-emit.c (struct move): Likewise for field "insn".
4253 (create_move): Eliminate use of NULL_RTX when dealing with an
4255 (emit_move_list): Strengthen return type and locals "result",
4256 "insn" from rtx to rtx_insn *insn.
4257 (emit_moves): Likewise for locals "insns", "tmp".
4258 (ira_emit): Likewise for local "insn".
4259 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4261 (find_call_crossed_cheap_reg): Likewise.
4262 (process_bb_node_lives): Likewise for local "insn".
4263 * ira.c (decrease_live_ranges_number): Likewise.
4264 (compute_regs_asm_clobbered): Likewise.
4265 (build_insn_chain): Likewise.
4266 (find_moveable_pseudos): Likewise, also locals "def_insn",
4267 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4268 to rtx_insn **. Add a checked cast when assigning from
4269 "closest_use" into closest_uses array in a region where we know
4270 it's a non-NULL insn.
4271 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4273 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4274 "last_interesting_insn", "uin".
4275 (move_unallocated_pseudos): Likewise for locals "def_insn",
4276 "move_insn", "newinsn".
4278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4280 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4281 Strengthen locals "done_label", "do_error" from rtx to
4283 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4284 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4286 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4287 "done_label", "do_error" to rtx_code_label * and local "last" to
4289 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4290 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4291 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4292 "after_lopart_neg", "do_overflow", "hipart_different" to
4293 rtx_code_label * and local "last" to rtx_insn *.
4295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4297 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4298 "insn" and "move_insn" from rtx to rtx_insn *.
4300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4302 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4304 (cheap_bb_rtx_cost_p): Likewise.
4305 (first_active_insn): Likewise for return type and local "insn".
4306 (last_active_insn): Likewise for return type and locals "insn",
4308 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4310 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4312 (noce_try_move): Likewise for local "seq".
4313 (noce_try_store_flag): Likewise.
4314 (noce_try_store_flag_constants): Likewise.
4315 (noce_try_addcc): Likewise.
4316 (noce_try_store_flag_mask): Likewise.
4317 (noce_try_cmove): Likewise.
4318 (noce_try_minmax): Likewise.
4319 (noce_try_abs): Likewise.
4320 (noce_try_sign_mask): Likewise.
4321 (noce_try_bitop): Likewise.
4322 (noce_can_store_speculate_p): Likewise for local "insn".
4323 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4325 (check_cond_move_block): Likewise for local "insn".
4326 (cond_move_convert_if_block): Likewise.
4327 (cond_move_process_if_block): Likewise for locals "seq",
4329 (noce_find_if_block): Likewise for local "jump".
4330 (merge_if_block): Likewise for local "last".
4331 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4332 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4333 (block_has_only_trap): Likewise for return type and local "trap".
4334 (find_if_case_1): Likewise for local "jump".
4335 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4340 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4341 "last_insn", "loop_end" from rtx to rtx_insn *.
4343 * hw-doloop.c (scan_loop): Likewise for local "insn".
4344 (discover_loop): Likewise for param "tail_insn".
4345 (discover_loops): Likewise for local "tail".
4347 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4348 cast to rtx_insn * when assigning from an rtx local to a
4349 hwloop_info's "last_insn" field.
4351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4353 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4354 (add_delay_dependencies): Strengthen local "pro" from rtx to
4356 (recompute_todo_spec): Likewise.
4357 (dep_cost_1): Likewise for locals "insn", "used".
4358 (schedule_insn): Likewise for local "dbg".
4359 (schedule_insn): Likewise for locals "pro", "next".
4360 (unschedule_insns_until): Likewise for local "con".
4361 (restore_pattern): Likewise for local "next".
4362 (estimate_insn_tick): Likewise for local "pro".
4363 (resolve_dependencies): Likewise for local "next".
4364 (fix_inter_tick): Likewise.
4365 (fix_tick_ready): Likewise for local "pro".
4366 (add_to_speculative_block): Likewise for locals "check", "twin",
4368 (sched_extend_bb): Likewise for locals "end", "insn".
4369 (init_before_recovery): Likewise for local "x".
4370 (sched_create_recovery_block): Likewise for local "barrier".
4371 (create_check_block_twin): Likewise for local "pro".
4372 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4374 (unlink_bb_notes): Update for change to type of bb_header.
4375 Strengthen locals "prev", "label", "note", "next" from rtx to
4377 (clear_priorities): Likewise for local "pro".
4379 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4381 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4383 (test_insn): Likewise for this global.
4384 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4386 (oprs_anticipatable_p): Likewise.
4387 (oprs_available_p): Likewise.
4388 (insert_expr_in_table): Strengthen param "insn" from rtx to
4390 (hash_scan_set): Likewise.
4391 (hash_scan_clobber): Likewise.
4392 (hash_scan_call): Likewise.
4393 (hash_scan_insn): Likewise.
4394 (compute_hash_table_work): Likewise for local "insn".
4395 (process_insert_insn): Likewise for return type and local "pat".
4396 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4397 "pat", "pat_end", "maybe_cc0_setter".
4398 (pre_edge_insert): Likewise for local "insn".
4399 (pre_insert_copy_insn): Likewise for param "insn".
4400 (pre_insert_copies): Likewise for local "insn".
4401 (struct set_data): Likewise for field "insn".
4402 (single_set_gcse): Likewise for param "insn".
4403 (gcse_emit_move_after): Likewise.
4404 (pre_delete): Likewise for local "insn".
4405 (update_bb_reg_pressure): Likewise for param "from" and local
4407 (should_hoist_expr_to_dom): Likewise for param "from".
4408 (hoist_code): Likewise for local "insn".
4409 (get_pressure_class_and_nregs): Likewise for param "insn".
4410 (calculate_bb_reg_pressure): Likewise for local "insn".
4411 (compute_ld_motion_mems): Likewise.
4413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4415 * genpeep.c (main): Rename param back from "uncast_ins1" to
4416 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4419 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4421 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4424 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4425 documentation to state it is only for VSX operations.
4427 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4428 constraint only active if VSX.
4430 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4431 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4436 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4437 Strengthen local "insn" from rtx to rtx_insn *.
4438 (use_killed_between): Likewise for param "target_insn".
4439 (all_uses_available_at): Likewise for param "target_insn" and
4441 (update_df_init): Likewise for params "def_insn", "insn".
4442 (update_df): Likewise for param "insn".
4443 (try_fwprop_subst): Likewise for param "def_insn" and local
4445 (free_load_extend): Likewise for param "insn".
4446 (forward_propagate_subreg): Likewise for param "def_insn" and
4448 (forward_propagate_asm): Likewise for param "def_insn" and local
4450 (forward_propagate_and_simplify): Likewise for param "def_insn"
4451 and local "use_insn".
4452 (forward_propagate_into): Likewise for locals "def_insn" and
4455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4457 * function.c (emit_initial_value_sets): Strengthen local "seq"
4458 from rtx to rtx_insn *.
4459 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4461 (instantiate_virtual_regs): Likewise for local "insn".
4462 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4463 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4464 (expand_function_end): Likewise for locals "insn" and "seq".
4465 (epilogue_done): Likewise for local "insn".
4466 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4468 (reposition_prologue_and_epilogue_notes): Likewise for locals
4469 "insn", "last", "note", "first".
4470 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4471 (pass_match_asm_constraints::execute): Likewise for local "insn".
4473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4475 * output.h (final_scan_insn): Strengthen return type from rtx to
4477 (final_forward_branch_p): Likewise for param.
4478 (current_output_insn): Likewise for this global.
4480 * final.c (rtx debug_insn): Likewise for this variable.
4481 (current_output_insn): Likewise.
4482 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4483 adding "insn" back in as an rtx_insn * with a checked cast, so
4484 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4486 (compute_alignments): Strengthen local "label" from rtx to
4488 (shorten_branches): Rename param from "first" to "uncast_first",
4489 introducing a new local rtx_insn * "first" using a checked cast to
4490 effectively strengthen "first" from rtx to rtx_insn * without
4491 affecting the type signature. Strengthen locals "insn", "seq",
4492 "next", "label" from rtx to rtx_insn *.
4493 (change_scope): Strengthen param "orig_insn" and local "insn" from
4495 (final_start_function): Rename param from "first" to "uncast_first",
4496 introducing a new local rtx_insn * "first" using a checked cast to
4497 effectively strengthen "first" from rtx to rtx_insn * without
4498 affecting the type signature. Strengthen local "insn" from rtx to
4500 (dump_basic_block_info): Strengthen param "insn" from rtx to
4502 (final): Rename param from "first" to "uncast_first",
4503 introducing a new local rtx_insn * "first" using a checked cast to
4504 effectively strengthen "first" from rtx to rtx_insn * without
4505 affecting the type signature. Strengthen locals "insn", "next"
4506 from rtx to rtx_insn *.
4507 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4509 (call_from_call_insn): Strengthen param "insn" from rtx to
4511 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4512 introducing a new local rtx_insn * "insn" using a checked cast to
4513 effectively strengthen "insn" from rtx to rtx_insn * without
4514 affecting the type signature. Strengthen return type and locals
4515 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4516 now-redundant checked cast to rtx_insn * from both invocations of
4517 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4518 introducing a local "call_insn" for use when invoking
4519 call_from_call_insn.
4520 (notice_source_line): Strengthen param "insn" from rtx to
4522 (leaf_function_p): Likewise for local "insn".
4523 (final_forward_branch_p): Likewise.
4524 (leaf_renumber_regs): Likewise for param "first".
4525 (rest_of_clean_state): Likewise for locals "insn" and "next".
4526 (self_recursive_call_p): Likewise for param "insn".
4527 (collect_fn_hard_reg_usage): Likewise for local "insn".
4528 (get_call_fndecl): Likewise for param "insn".
4529 (get_call_cgraph_rtl_info): Likewise.
4530 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4531 introducing a new local rtx_insn * "insn" using a checked cast to
4532 effectively strengthen "insn" from rtx to rtx_insn * without
4533 affecting the type signature.
4535 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4536 cast when assigning from param "insn" to current_output_insn.
4537 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4538 so that we can assign it back to current_output_insn.
4540 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4542 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4543 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4544 atmxt540s and atmxt540sreva devices.
4545 * config/avr/avr-tables.opt: Regenerate.
4546 * config/avr/t-multilib: Regenerate.
4547 * doc/avr-mmcu.texi: Regenerate.
4549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4551 * expr.c (convert_move): Strengthen local "insns" from rtx to
4553 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4554 "top_label" from rtx to rtx_code_label *.
4555 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4557 (emit_single_push_insn): Likewise for locals "prev", "last".
4558 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4559 to rtx_code_label *.
4560 (store_constructor): Likewise for locals "loop_start", "loop_end".
4561 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4563 (expand_expr_real_2): Likewise.
4564 (expand_expr_real_1): Strengthen local "label" from rtx to
4567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4569 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4570 from rtx to rtx_insn *.
4571 (store_bit_field_1): Likewise.
4572 (extract_bit_field_1): Likewise.
4573 (expand_mult_const): Likewise for local "insns".
4574 (expmed_mult_highpart): Strengthen local "label" from rtx to
4576 (expand_smod_pow2): Likewise.
4577 (expand_sdiv_pow2): Likewise.
4578 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4579 rtx_insn *. Strengthen locals "label", "label1", "label2",
4580 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4581 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4582 (emit_store_flag): Likewise.
4583 (emit_store_flag_force): Strengthen local "label" from rtx to
4585 (do_cmp_and_jump): Likewise for param "label".
4587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4589 * explow.c (force_reg): Strengthen local "insn" from rtx to
4591 (adjust_stack_1): Likewise.
4592 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4593 "final_label", "available_label", "space_available" from rtx to
4595 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4596 (anti_adjust_stack_and_probe): Likewise.
4598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4600 * except.h (sjlj_emit_function_exit_after): Strengthen param
4601 "after" from rtx to rtx_insn *. This is only called with
4602 result of get_last_insn (in function.c) so type-change should be
4605 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4606 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4607 to rtx_insn *. These fields are only used from except.c so this
4608 type-change should be self-contained to this patch.
4610 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4611 local "last" from rtx to rtx_insn *.
4612 (dw2_build_landing_pads): Likewise for local "seq".
4613 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4614 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4615 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4617 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4619 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4620 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4621 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4622 referring to an insn. Strengthen local "dispatch_label" from
4623 rtx to rtx_code_label *.
4624 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4626 (expand_eh_return): Strengthen local "around_label" from
4627 rtx to rtx_code_label *.
4628 (convert_to_eh_region_ranges): Strengthen locals "iter",
4629 "last_action_insn", "first_no_action_insn",
4630 "first_no_action_insn_before_switch",
4631 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4633 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4635 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4636 from rtx to rtx_insn *.
4637 (cached_next_real_insn): Likewise.
4638 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4640 (dwarf2out_var_location): Strengthen locals "next_real",
4641 "next_note", "expected_next_loc_note", "last_start", "insn" from
4644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4646 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4647 from rtx to rtx_insn *.
4648 (create_pseudo_cfg): Likewise for local "insn".
4650 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4652 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4653 from rtx to rtx_insn *.
4654 (df_bb_regno_last_def_find): Likewise.
4656 * df-problems.c (df_rd_bb_local_compute): Likewise.
4657 (df_lr_bb_local_compute): Likewise.
4658 (df_live_bb_local_compute): Likewise.
4659 (df_chain_remove_problem): Likewise.
4660 (df_chain_create_bb): Likewise.
4661 (df_word_lr_bb_local_compute): Likewise.
4662 (df_remove_dead_eq_notes): Likewise for param "insn".
4663 (df_note_bb_compute): Likewise for local "insn".
4664 (simulate_backwards_to_point): Likewise.
4665 (df_md_bb_local_compute): Likewise.
4667 * df-scan.c (df_scan_free_bb_info): Likewise.
4668 (df_scan_start_dump): Likewise.
4669 (df_scan_start_block): Likewise.
4670 (df_install_ref_incremental): Likewise for local "insn".
4671 (df_insn_rescan_all): Likewise.
4672 (df_reorganize_refs_by_reg_by_insn): Likewise.
4673 (df_reorganize_refs_by_insn_bb): Likewise.
4674 (df_recompute_luids): Likewise.
4675 (df_bb_refs_record): Likewise.
4676 (df_update_entry_exit_and_calls): Likewise.
4677 (df_bb_verify): Likewise.
4679 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4681 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4682 "first_note" from rtx to rtx_insn *.
4683 (get_node_of_insn): Likewise for param 2 "insn".
4684 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4686 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4688 (mem_write_insn_p): Likewise.
4689 (mem_access_insn_p): Likewise.
4690 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4691 (def_has_ccmode_p): Likewise for param "insn".
4692 (add_cross_iteration_register_deps): Likewise for locals
4693 "def_insn" and "use_insn".
4694 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4695 (build_intra_loop_deps): Likewise for local "src_insn".
4696 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4698 (get_node_of_insn): Likewise for param "insn".
4700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4702 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4703 (deletable_insn_p): Strengthen param "insn" from rtx to
4704 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4705 find_call_stack_args, since this is guarded by CALL_P (insn).
4706 (marked_insn_p): Strengthen param "insn" from rtx to
4708 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4709 invoking find_call_stack_args, since this is guarded by
4711 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4712 rtx_insn *; we know this is an insn since this was called by
4714 (mark_nonreg_stores_2): Likewise.
4715 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4717 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4718 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4720 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4721 from rtx to rtx_insn *.
4722 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4724 (delete_unmarked_insns): Likewise for locals "insn", "next".
4725 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4726 (mark_reg_dependencies): Likewise for param "insn".
4727 (rest_of_handle_ud_dce): Likewise for local "insn".
4728 (word_dce_process_block): Likewise.
4729 (dce_process_block): Likewise.
4731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4733 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4734 from rtx to rtx_insn *.
4735 (struct change_cc_mode_args): Likewise for field "insn".
4736 (this_insn): Strengthen from rtx to rtx_insn *.
4737 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4739 (validate_canon_reg): Strengthen param "insn" from rtx to
4741 (canon_reg): Likewise.
4742 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4744 (record_jump_equiv): Strengthen param "insn" from rtx to
4746 (try_back_substitute_reg): Likewise, also for locals "prev",
4748 (find_sets_in_insn): Likewise for param "insn".
4749 (canonicalize_insn): Likewise.
4750 (cse_insn): Likewise. Add a checked cast.
4751 (invalidate_from_clobbers): Likewise for param "insn".
4752 (invalidate_from_sets_and_clobbers): Likewise.
4753 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4755 (cse_prescan_path): Strengthen local "insn" from rtx to
4757 (cse_extended_basic_block): Likewise for locals "insn" and
4759 (cse_main): Likewise for param "f".
4760 (check_for_label_ref): Likewise for local "insn".
4761 (set_live_p): Likewise for second param ("insn").
4762 (insn_live_p): Likewise for first param ("insn") and for local
4764 (cse_change_cc_mode_insn): Likewise for first param "insn".
4765 (cse_change_cc_mode_insns): Likewise for first and second params
4767 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4769 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4772 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4774 Anna Tikhonova <anna.tikhonova@intel.com>
4775 Ilya Tocar <ilya.tocar@intel.com>
4776 Andrey Turetskiy <andrey.turetskiy@intel.com>
4777 Ilya Verbin <ilya.verbin@intel.com>
4778 Kirill Yukhin <kirill.yukhin@intel.com>
4779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4781 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4783 * config/i386/sse.md
4784 (define_mode_iterator VI248_AVX2): Delete.
4785 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4786 (define_mode_iterator VI48_AVX2): Ditto.
4787 (define_insn <shift_insn><mode>3): Delete.
4788 (define_insn "<shift_insn><mode>3<mask_name>" with
4789 VI2_AVX2_AVX512BW): New.
4790 (define_insn "<shift_insn><mode>3<mask_name>" with
4793 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4794 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4795 Anna Tikhonova <anna.tikhonova@intel.com>
4796 Ilya Tocar <ilya.tocar@intel.com>
4797 Andrey Turetskiy <andrey.turetskiy@intel.com>
4798 Ilya Verbin <ilya.verbin@intel.com>
4799 Kirill Yukhin <kirill.yukhin@intel.com>
4800 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4802 * config/i386/sse.md
4803 (define_mode_iterator VI4F_BRCST32x2): New.
4804 (define_mode_attr 64x2_mode): Ditto.
4805 (define_mode_attr 32x2mode): Ditto.
4806 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4807 with VI4F_BRCST32x2): Ditto.
4808 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4809 with V16FI mode iterator): Ditto.
4810 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4812 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4813 with VI8F_BRCST64x2): Ditto.
4815 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4816 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4817 Anna Tikhonova <anna.tikhonova@intel.com>
4818 Ilya Tocar <ilya.tocar@intel.com>
4819 Andrey Turetskiy <andrey.turetskiy@intel.com>
4820 Ilya Verbin <ilya.verbin@intel.com>
4821 Kirill Yukhin <kirill.yukhin@intel.com>
4822 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4824 * config/i386/sse.md
4825 (define_mode_iterator VI8_AVX512VL): New.
4826 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4828 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4830 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4831 (define_mode_iterator V48_AVX512VL): New.
4832 (define_mode_iterator V12_AVX512VL): Ditto.
4833 (define_insn <avx512>_load<mode>_mask): Split into two similar
4834 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4835 Refactor output template.
4836 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4840 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4842 (reg_available_p): Likewise for param "insn".
4843 (insert_set_in_table): Likewise.
4844 (hash_scan_set): Likewise.
4845 (hash_scan_insn): Likewise.
4846 (make_set_regs_unavailable): Likewise.
4847 (compute_hash_table_work): Likewise for local "insn".
4848 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4850 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4851 (try_replace_reg): Likewise.
4852 (find_avail_set): Likewise.
4853 (cprop_jump): Likewise for params "setcc", "jump".
4854 (constprop_register): Likewise for param "insn".
4855 (cprop_insn): Likewise.
4856 (do_local_cprop): Likewise.
4857 (local_cprop_pass): Likewise for local "insn".
4858 (bypass_block): Likewise for params "setcc" and "jump".
4859 (bypass_conditional_jumps): Likewise for locals "setcc" and
4861 (one_cprop_pass): Likewise for local "insn".
4863 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4865 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4866 from rtx to rtx_insn *.
4867 (struct comparison): Likewise, also for field "prev_clobber".
4868 (conforming_compare): Likewise for param "insn".
4869 (arithmetic_flags_clobber_p): Likewise.
4870 (find_flags_uses_in_insn): Likewise.
4871 (find_comparison_dom_walker::before_dom_children): Likewise for
4872 locals "insn", "next", "last_clobber".
4873 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4875 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4877 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4878 "insn" from rtx to rtx_insn *.
4879 (single_set_for_csa): Likewise for param "insn".
4880 (record_one_stack_ref): Likewise.
4881 (try_apply_stack_adjustment): Likewise.
4882 (struct record_stack_refs_data): Likewise for field "insn".
4883 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4884 (prev_active_insn_bb): Likewise for return type and param "insn".
4885 (next_active_insn_bb): Likewise.
4886 (force_move_args_size_note): Likewise for params "prev" and "last"
4887 and locals "test", "next_candidate", "prev_candidate".
4888 (combine_stack_adjustments_for_block): Strengthen locals
4889 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4892 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4894 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4895 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4896 (subst_insn): Likewise for this variable.
4897 (added_links_insn): Likewise.
4898 (struct insn_link): Likewise for field "insn".
4899 (alloc_insn_link): Likewise for param "insn".
4900 (struct undobuf): Likewise for field "other_insn".
4901 (find_single_use): Likewise for param "insn" and local "next".
4902 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4903 (delete_noop_moves): Likewise for locals "insn", "next".
4904 (create_log_links): Likewise for locals "insn", "use_insn".
4905 Strengthen local "next_use" from rtx * to rtx_insn **.
4906 (insn_a_feeds_b): Likewise for params "a", "b".
4907 (combine_instructions): Likewise for param "f" and locals "insn",
4908 "next", "prev", "first", "last_combined_insn", "link", "link1",
4909 "temp". Replace use of NULL_RTX with NULL when referring to
4911 (setup_incoming_promotions): Likewise for param "first"
4912 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4913 (can_combine_p): Likewise for params "insn", "i3", "pred",
4914 "pred2", "succ", "succ2" and for local "p".
4915 (combinable_i3pat): Likewise for param "i3".
4916 (cant_combine_insn_p): Likewise for param "insn".
4917 (likely_spilled_retval_p): Likewise.
4918 (adjust_for_new_dest): Likewise.
4919 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4920 (try_combine): Likewise for return type and for params "i3", "i2",
4921 "i1", "i0", "last_combined_insn", and for locals "insn",
4922 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4923 "i0_insn". Eliminate local "tem" in favor of new locals
4924 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4925 checked cast for now to rtx_insn * on the return type of
4926 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4928 (find_split_point): Strengthen param "insn" from rtx to
4930 (simplify_set): Likewise for local "other_insn".
4931 (recog_for_combine): Likewise for param "insn".
4932 (record_value_for_reg): Likewise.
4933 (record_dead_and_set_regs_1): Likewise for local
4935 (record_dead_and_set_regs): Likewise for param "insn".
4936 (record_promoted_value): Likewise.
4937 (check_promoted_subreg): Likewise.
4938 (get_last_value_validate): Likewise.
4939 (reg_dead_at_p): Likewise.
4940 (move_deaths): Likewise for param "to_insn".
4941 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4942 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4943 in favor of new locals "tem_note" and "tem_insn", the latter being
4945 (distribute_links): Strengthen locals "place", "insn" from rtx to
4948 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4950 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4952 (can_delete_label_p): Require a const rtx_code_label * rather than
4954 (delete_insn): Add checked cast to rtx_code_label * when we know
4955 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4957 (delete_insn_chain): Strengthen locals "prev" and "current" from
4958 rtx to rtx_insn *. Add a checked cast when assigning from
4959 "finish" (strengthening the params will come later). Add a
4960 checked cast to rtx_note * in region where we know
4962 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4964 (compute_bb_for_insn): Likewise.
4965 (free_bb_for_insn): Likewise for local "insn".
4966 (compute_bb_for_insn): Likewise.
4967 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4968 local "insn" from rtx to rtx_insn *
4969 (flow_active_insn_p): Require a const rtx_insn * rather than a
4971 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4973 (can_fallthru): Likewise for locals "insn" and "insn2".
4974 (bb_note): Likewise for local "note".
4975 (first_insn_after_basic_block_note): Likewise for local "note" and
4977 (rtl_split_block): Likewise for locals "insn" and "next".
4978 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4980 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4981 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4983 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4984 them), "kill_from", "barrier", "new_insn".
4985 (patch_jump_insn): Likewise for params "insn", "old_label".
4986 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4987 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4988 "old_label", "new_label".
4989 (rtl_tidy_fallthru_edge): Likewise for local "q".
4990 (rtl_split_edge): Likewise for locals "before", "last".
4991 (commit_one_edge_insertion): Likewise for locals "before",
4992 "after", "insns", "tmp", "last", adding a checked cast where
4993 currently necessary.
4994 (commit_edge_insertions): Likewise.
4995 (rtl_dump_bb): Likewise for locals "insn", "last".
4996 (print_rtl_with_bb): Likewise for local "x".
4997 (rtl_verify_bb_insns): Likewise for local "x".
4998 (rtl_verify_bb_pointers): Likewise for local "insn".
4999 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5001 (rtl_verify_fallthru): Likewise for local "insn".
5002 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5003 (purge_dead_edges): Likewise for local "insn".
5004 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5005 (skip_insns_after_block): Likewise for return type and for locals
5006 "insn", "last_insn", "next_head", "prev".
5007 (record_effective_endpoints): Likewise for locals "next_insn",
5009 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5010 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5011 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5012 (duplicate_insn_chain): For now, add checked cast from rtx to
5013 rtx_insn * when returning insn.
5014 (cfg_layout_duplicate_bb): Likewise for local "insn".
5015 (cfg_layout_delete_block): Likewise for locals "insn", "next",
5017 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5018 (rtl_block_empty_p): Likewise.
5019 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5020 "split_point", "last".
5021 (rtl_block_ends_with_call_p): Likewise for local "insn".
5022 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5024 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5025 "split_at_insn" from rtx to rtx_insn *.
5026 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5027 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5028 to const rtx_insn *.
5029 (rtl_account_profile_record): Likewise.
5031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5033 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5035 (average_num_loop_insns): Likewise.
5036 (init_set_costs): Likewise for local "seq".
5037 (seq_cost): Likewise for param "seq", from const_rtx to const
5040 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5042 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5045 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5047 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
5048 "f1" and "f2" from rtx * to rtx_insn **.
5049 (flow_find_head_matching_sequence): Likewise.
5051 * cfgcleanup.c (try_simplify_condjump): Strengthen local
5052 "cbranch_insn" from rtx to rtx_insn *.
5053 (thread_jump): Likewise for local "insn".
5054 (try_forward_edges): Likewise for local "last".
5055 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
5056 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
5058 (can_replace_by): Likewise for params "i1", "i2".
5059 (old_insns_match_p): Likewise.
5060 (merge_notes): Likewise.
5061 (walk_to_nondebug_insn): Likewise for param "i1".
5062 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5063 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5064 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5065 (flow_find_head_matching_sequence): Strengthen params "f1" and
5066 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5067 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5069 (outgoing_edges_match): Likewise for locals "last1", "last2".
5070 (try_crossjump_to_edge): Likewise for local "insn".
5071 Replace call to for_each_rtx with for_each_rtx_in_insn.
5073 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5074 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5075 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5076 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
5077 (try_optimize_cfg): Strengthen local "last" from rtx to
5079 (delete_dead_jumptables): Likewise for locals "insn", "next",
5082 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
5083 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
5084 "rtx else_first_tail", to reflect the basic-block.h changes above.
5086 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5088 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
5090 (purge_dead_tablejump_edges): Likewise.
5091 (find_bb_boundaries): Likewise for locals "insn", "end",
5092 "flow_transfer_insn".
5094 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5096 * caller-save.c (save_call_clobbered_regs): Strengthen locals
5097 "ins" and "prev" from rtx to rtx_insn *.
5099 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5101 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5103 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5104 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5106 (load_register_parameters): Likewise for local "before_arg".
5107 (check_sibcall_argument_overlap): Likewise for param "insn".
5108 (expand_call): Likewise for locals "normal_call_insns",
5109 "tail_call_insns", "insns", "before_call", "after_args",
5110 "before_arg", "last", "prev". Strengthen one of the "last" from
5111 rtx to rtx_call_insn *.
5112 (fixup_tail_calls): Strengthen local "insn" from rtx to
5114 (emit_library_call_value_1): Likewise for locals "before_call" and
5117 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5119 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5120 and "last" from rtx to rtx_insn *.
5121 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5122 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5124 (expand_errno_check): Strengthen local "lab" from rtx to
5126 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5128 (expand_builtin_mathfn_2): Likewise.
5129 (expand_builtin_mathfn_ternary): Likewise.
5130 (expand_builtin_mathfn_3): Likewise.
5131 (expand_builtin_interclass_mathfn): Likewise for local "last".
5132 (expand_builtin_int_roundingfn): Likewise for local "insns".
5133 (expand_builtin_int_roundingfn_2): Likewise.
5134 (expand_builtin_strlen): Likewise for local "before_strlen".
5135 (expand_builtin_strncmp): Likewise for local "seq".
5136 (expand_builtin_signbit): Likewise for local "last".
5137 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5138 from rtx to rtx_code_label *.
5139 (expand_stack_restore): Strengthen local "prev" from rtx to
5142 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5144 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5146 (struct btr_def_s): Likewise.
5147 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5149 (add_btr_def): Likewise.
5150 (new_btr_user): Likewise.
5151 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5153 (link_btr_uses): Likewise.
5154 (move_btr_def): Likewise for locals "insp", "old_insn",
5155 "new_insn". Add checked cast to rtx_insn * for now on result of
5157 (can_move_up): Strengthen param "insn" from const_rtx to
5160 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5162 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5164 (get_uncond_jump_length): Likewise for locals "label", "jump".
5165 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5167 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5168 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5169 (find_jump_block): Likewise for local "insn".
5170 (fix_crossing_conditional_branches): Likewise for locals
5171 "old_jump", "new_jump".
5172 (fix_crossing_unconditional_branches): Likewise for locals
5173 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5174 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5176 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5178 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5180 (struct mem_insn): Likewise for field "insn".
5181 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5182 (reg_next_inc_use): Likewise.
5183 (reg_next_def): Likewise.
5184 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5185 from rtx to rtx_insn *.
5186 (move_insn_before): Likewise for param "next_insn" and local "insns".
5187 (attempt_change): Likewise for local "mov_insn".
5188 (try_merge): Likewise for param "last_insn".
5189 (get_next_ref): Likewise for return type and local "insn".
5190 Strengthen param "next_array" from rtx * to rtx_insn **.
5191 (parse_add_or_inc): Strengthen param "insn" from rtx to
5193 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5195 (merge_in_block): Likewise for locals "insn", "curr",
5197 (pass_inc_dec::execute): Update allocations of the arrays to
5198 reflect the stronger types.
5200 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5202 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5203 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5204 from rtx to rtx_code_label *.
5206 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5208 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5211 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5213 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5214 generated a warning and prevented bootstrapping the compiler.
5216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5218 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5221 * jump.c (delete_related_insns): Likewise, also for locals "next"
5224 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5226 * genautomata.c (output_internal_insn_latency_func): When writing
5227 the function "internal_insn_latency" to insn-automata.c,
5228 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5229 allowing the optional guard function of (define_bypass) clauses to
5230 expect a pair of rtx_insn *, rather than a pair of rtx.
5231 (output_insn_latency_func): When writing the function
5232 "insn_latency", add an "uncast_" prefix to params "insn" and
5233 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5234 using checked casts from the params, thus enabling the above
5235 change to the generated "internal_insn_latency" function.
5237 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5239 PR tree-optimization/62091
5240 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5241 handle correctly arrays.
5242 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5244 (record_known_type): Walk into inner type.
5245 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5246 condition on no type changes.
5248 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5250 * genattrtab.c (write_attr_get): Within the generated get_attr_
5251 functions, rename param "insn" to "uncast_insn" and reintroduce
5252 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5253 is an rtx_insn * within insn-attrtab.c
5255 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5257 * output.h (peephole): Strengthen return type from rtx to
5259 * rtl.h (delete_for_peephole): Likewise for both params.
5260 * genpeep.c (main): In generated "peephole" function, strengthen
5261 return type and local "insn" from rtx to rtx_insn *. For now,
5262 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5263 rtx_insn *, with a checked cast.
5264 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5265 locals "insn", "next", "prev" from rtx to rtx_insn *.
5267 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5269 PR tree-optimization/62112
5270 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5271 * gimple-iterator.h (gsi_replace): Return bool.
5272 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5273 moved from ref_may_alias_global_p.
5274 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5276 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5277 (stmt_kills_ref_p_1): Rename...
5278 (stmt_kills_ref_p): ... to this.
5279 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5280 stmt_kills_ref_p): Declare.
5281 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5282 Move the self-assignment case...
5283 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5285 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5287 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5289 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5290 "after". For now, don't strengthen param "trial", which requires
5291 adding checked casts when returning it.
5293 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5295 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5296 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5297 "var_location" hook from rtx to rtx_insn *.
5298 (debug_nothing_rtx): Delete in favor of...
5299 (debug_nothing_rtx_code_label): New prototype.
5300 (debug_nothing_rtx_rtx): Delete unused prototype.
5301 (debug_nothing_rtx_insn): New prototype.
5303 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5304 invoking debug_hooks->var_location (in two places, one in a NOTE
5305 case of a switch statement, the other guarded by a CALL_P
5306 conditional. Add checked cast to rtx_code_label * when invoking
5307 debug_hooks->label (within CODE_LABEL case of switch statement).
5309 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5310 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5311 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5312 (xcoff_debug_hooks): Likewise.
5313 * debug.c (do_nothing_debug_hooks): Likewise.
5314 (debug_nothing_rtx): Delete in favor of...
5315 (debug_nothing_rtx_insn): New function.
5316 (debug_nothing_rtx_rtx): Delete unused function.
5317 (debug_nothing_rtx_code_label): New function.
5318 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5319 debug_nothing_rtx to debug_nothing_rtx_code_label.
5320 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5322 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5323 debug_nothing_rtx to debug_nothing_rtx_insn.
5324 (sdbout_label): Strengthen param "insn" from rtx to
5326 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5327 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5328 "var_location" hook from debug_nothing_rtx to
5329 debug_nothing_rtx_insn.
5331 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5333 * recog.h (insn_output_fn): Update this function typedef to match
5334 the changes below to the generated output functions, strengthening
5335 the 2nd param from rtx to rtx_insn *.
5337 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5338 insn when invoking an output function, to match the new signature
5339 of insn_output_fn with a stronger second param.
5341 * genconditions.c (write_header): In the generated code for
5342 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5343 to match the other changes in this patch.
5345 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5346 the generated "gen_" functions from rtx to rtx_insn * within their
5349 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5350 the subfunctions within the generated "recog_", "split", "peephole2"
5351 function trees from rtx to rtx_insn *. For now, the top-level
5352 generated functions ("recog", "split", "peephole2") continue to
5353 take a plain rtx for "insn", to avoid introducing dependencies on
5354 other patches. Rename this 2nd param from "insn" to
5355 "uncast_insn", and reintroduce "insn" as a local variable of type
5356 rtx_insn *, initialized at the top of the generated function with
5357 a checked cast on "uncast_insn".
5358 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5359 the generated "gen_" functions from rtx to rtx_insn * within their
5362 * genoutput.c (process_template): Strengthen the 2nd param within
5363 the generated "output_" functions "insn" from rtx to rtx_insn *.
5365 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5367 * tree-profile.c (tree_profiling): Skip external functions
5368 when doing coverage instrumentation.
5369 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5371 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5373 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5374 (vec_mergee): Likewise.
5375 (vec_mergeo): Likewise.
5376 (vec_cntlz): Likewise.
5377 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5378 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5379 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5381 * doc/extend.texi: Document various forms of vec_cpsgn,
5382 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5383 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5384 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5385 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5386 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5388 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5390 * config/rs6000/rs6000.c (context.h): New include.
5391 (tree-pass.h): Likewise.
5392 (make_pass_analyze_swaps): New decl.
5393 (rs6000_option_override): Register pass_analyze_swaps.
5394 (swap_web_entry): New subsclass of web_entry_base (df.h).
5395 (special_handling_values): New enum.
5396 (union_defs): New function.
5397 (union_uses): Likewise.
5398 (insn_is_load_p): Likewise.
5399 (insn_is_store_p): Likewise.
5400 (insn_is_swap_p): Likewise.
5401 (rtx_is_swappable_p): Likewise.
5402 (insn_is_swappable_p): Likewise.
5403 (chain_purpose): New enum.
5404 (chain_contains_only_swaps): New function.
5405 (mark_swaps_for_removal): Likewise.
5406 (swap_const_vector_halves): Likewise.
5407 (adjust_subreg_index): Likewise.
5408 (permute_load): Likewise.
5409 (permute_store): Likewise.
5410 (handle_special_swappables): Likewise.
5411 (replace_swap_with_copy): Likewise.
5412 (dump_swap_insn_table): Likewise.
5413 (rs6000_analyze_swaps): Likewise.
5414 (pass_data_analyze_swaps): New pass_data.
5415 (pass_analyze_swaps): New rtl_opt_pass.
5416 (make_pass_analyze_swaps): New function.
5417 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5419 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5421 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5422 type from rtx to rtx_insn *.
5423 (create_copy_of_insn_rtx): Likewise.
5424 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5425 (create_copy_of_insn_rtx): Likewise, also for local "res".
5427 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5429 * rtl.h (find_first_parameter_load): Strengthen return type from
5431 * rtlanal.c (find_first_parameter_load): Strengthen return type
5432 from rtx to rtx_insn *. Add checked cast for now, to postpone
5433 strengthening the params.
5435 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5438 * diagnostic.c: Set default caret.
5439 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5441 * diagnostic.h (struct diagnostic_context):
5443 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5445 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5446 (sel_bb_head): Strengthen return type insn_t (currently just an
5448 (sel_bb_end): Likewise.
5450 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5451 (sel_bb_head): Strengthen return type and local "head" from
5452 insn_t (currently just an rtx) to rtx_insn *.
5453 (sel_bb_end): Likewise for return type.
5454 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5457 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5459 * basic-block.h (get_last_bb_insn): Strengthen return type from
5461 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5464 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5467 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5469 (diagnostic_report_diagnostic): ... from here.
5470 * toplev.c (general_init): Move code to c-family.
5472 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5474 * df.h (web_entry_base): Replace existing struct web_entry with a
5475 new class web_entry_base with only the predecessor member.
5476 (unionfind_root): Remove declaration and move to class member.
5477 (unionfind_union): Remove declaration and move to friend
5479 (union_defs): Remove declaration.
5480 * web.c (web_entry_base::unionfind_root): Modify to be member
5481 function and adjust accessors.
5482 (unionfind_union): Modify to be friend function and adjust
5484 (web_entry): New subclass of web_entry_base containing the reg
5486 (union_match_dups): Modify for struct -> class changes.
5487 (union_defs): Likewise.
5488 (entry_register): Likewise.
5489 (pass_web::execute): Likewise.
5491 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5493 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5494 builtin define __VEC_ELEMENT_REG_ORDER__.
5496 2014-08-20 Martin Jambor <mjambor@suse.cz>
5497 Wei Mi <wmi@google.com>
5501 * tree-ssa-operands.c (update_stmt_operands): Remove
5502 MODIFIED_NORETURN_CALLS.
5503 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5504 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5505 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5506 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5507 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5508 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5509 (gimple_call_set_ctrl_altering): New func.
5510 (gimple_call_ctrl_altering_p): Ditto.
5511 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5512 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5513 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5514 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5515 remove MODIFIED_NORETURN_CALLS.
5517 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5519 * coverage.c (coverage_compute_profile_id): Return non-0;
5520 also handle symbols with unique name.
5521 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5523 2014-08-20 Steve Ellcey <sellcey@mips.com>
5526 * doc/sourcebuild.texi (non_strict_align): New.
5528 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5530 * cgraphunit.c (ipa_passes, compile): Reshedule
5531 symtab_remove_unreachable_nodes passes; update comments.
5532 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5533 TODO_remove_functions before the pass; the functions ought to be
5535 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5536 TODO_remove_functions.
5537 * passes.c (pass_data_early_local_passes): Do not schedule function
5539 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5541 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5544 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5545 before setting the option.
5546 * diagnostic.c (diagnostic_classify_diagnostic): Record
5547 command-line status.
5549 2014-08-20 Richard Biener <rguenther@suse.de>
5552 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5553 to build uint{16,32,64}_type_node.
5555 2014-08-20 Terry Guo <terry.guo@arm.com>
5557 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5558 with immediate_operand.
5560 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5562 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5563 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5566 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5568 PR preprocessor/51303
5569 * incpath.c (remove_duplicates): Use cpp_warning.
5571 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5575 * doc/options.texi (CPP): Document it.
5576 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5577 * optc-gen.awk: Handle CPP.
5578 * opth-gen.awk: Likewise.
5580 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5582 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5584 (duplicate_insn_chain): Likewise.
5585 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5586 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5587 checked cast for now (until we can strengthen the params in the
5589 (duplicate_insn_chain): Likewise.
5591 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5593 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5595 (prev_cc0_setter): Likewise.
5597 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5598 rtx_insn *, adding checked casts for now as necessary.
5599 (prev_cc0_setter): Likewise.
5601 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5603 * expr.h (emit_move_insn): Strengthen return type from rtx to
5605 (emit_move_insn_1): Likewise.
5606 (emit_move_complex_push): Likewise.
5607 (emit_move_complex_parts): Likewise.
5609 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5610 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5612 (emit_move_complex_push): Strengthen return type from rtx to
5614 (emit_move_complex): Likewise, also for local "ret".
5615 (emit_move_ccmode): Likewise.
5616 (emit_move_multi_word): Likewise for return type and locals
5618 (emit_move_insn_1): Likewise for return type and locals "result",
5620 (emit_move_insn): Likewise for return type and local "last_insn".
5621 (compress_float_constant): Likewise.
5623 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5625 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5626 from rtx to rtx_insn *.
5628 * rtl.h (emit_insn_before): Likewise.
5629 (emit_insn_before_noloc): Likewise.
5630 (emit_insn_before_setloc): Likewise.
5631 (emit_jump_insn_before): Likewise.
5632 (emit_jump_insn_before_noloc): Likewise.
5633 (emit_jump_insn_before_setloc): Likewise.
5634 (emit_call_insn_before): Likewise.
5635 (emit_call_insn_before_noloc): Likewise.
5636 (emit_call_insn_before_setloc): Likewise.
5637 (emit_debug_insn_before): Likewise.
5638 (emit_debug_insn_before_noloc): Likewise.
5639 (emit_debug_insn_before_setloc): Likewise.
5640 (emit_label_before): Likewise.
5641 (emit_insn_after): Likewise.
5642 (emit_insn_after_noloc): Likewise.
5643 (emit_insn_after_setloc): Likewise.
5644 (emit_jump_insn_after): Likewise.
5645 (emit_jump_insn_after_noloc): Likewise.
5646 (emit_jump_insn_after_setloc): Likewise.
5647 (emit_call_insn_after): Likewise.
5648 (emit_call_insn_after_noloc): Likewise.
5649 (emit_call_insn_after_setloc): Likewise.
5650 (emit_debug_insn_after): Likewise.
5651 (emit_debug_insn_after_noloc): Likewise.
5652 (emit_debug_insn_after_setloc): Likewise.
5653 (emit_label_after): Likewise.
5654 (emit_insn): Likewise.
5655 (emit_debug_insn): Likewise.
5656 (emit_jump_insn): Likewise.
5657 (emit_call_insn): Likewise.
5658 (emit_label): Likewise.
5659 (gen_clobber): Likewise.
5660 (emit_clobber): Likewise.
5661 (gen_use): Likewise.
5662 (emit_use): Likewise.
5665 (emit_barrier_before): Strengthen return type from rtx to
5667 (emit_barrier_after): Likewise.
5668 (emit_barrier): Likewise.
5670 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5671 from rtx to rtx_insn *. Add checked casts for now when converting
5672 "last" from rtx to rtx_insn *.
5673 (emit_insn_before_noloc): Likewise for return type.
5674 (emit_jump_insn_before_noloc): Likewise.
5675 (emit_call_insn_before_noloc): Likewise.
5676 (emit_debug_insn_before_noloc): Likewise.
5677 (emit_barrier_before): Strengthen return type and local "insn"
5678 from rtx to rtx_barrier *.
5679 (emit_label_before): Strengthen return type from rtx to
5680 rtx_insn *. Add checked cast for now when returning param
5681 (emit_pattern_after_noloc): Strengthen return type from rtx to
5682 rtx_insn *. Add checked casts for now when converting "last" from
5684 (emit_insn_after_noloc): Strengthen return type from rtx to
5686 (emit_jump_insn_after_noloc): Likewise.
5687 (emit_call_insn_after_noloc): Likewise.
5688 (emit_debug_insn_after_noloc): Likewise.
5689 (emit_barrier_after): Strengthen return type from rtx to
5691 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5692 Add checked cast for now when converting "label" from rtx to
5694 (emit_pattern_after_setloc): Strengthen return type from rtx to
5695 rtx_insn *. Add checked casts for now when converting "last" from
5697 (emit_pattern_after): Strengthen return type from rtx to
5699 (emit_insn_after_setloc): Likewise.
5700 (emit_insn_after): Likewise.
5701 (emit_jump_insn_after_setloc): Likewise.
5702 (emit_jump_insn_after): Likewise.
5703 (emit_call_insn_after_setloc): Likewise.
5704 (emit_call_insn_after): Likewise.
5705 (emit_debug_insn_after_setloc): Likewise.
5706 (emit_debug_insn_after): Likewise.
5707 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5708 when converting "last" from rtx to rtx_insn *.
5709 (emit_pattern_before): Strengthen return type from rtx to
5711 (emit_insn_before_setloc): Likewise.
5712 (emit_insn_before): Likewise.
5713 (emit_jump_insn_before_setloc): Likewise.
5714 (emit_jump_insn_before): Likewise.
5715 (emit_call_insn_before_setloc): Likewise.
5716 (emit_call_insn_before): Likewise.
5717 (emit_debug_insn_before_setloc): Likewise.
5718 (emit_debug_insn_before): Likewise.
5719 (emit_insn): Strengthen return type and locals "last", "insn",
5720 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5721 within cases where we know we have an insn.
5722 (emit_debug_insn): Likewise.
5723 (emit_jump_insn): Likewise.
5724 (emit_call_insn): Strengthen return type and local "insn" from rtx
5726 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5727 a checked cast to rtx_insn * for now on "label".
5728 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5729 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5730 (emit_use): Likewise.
5731 (gen_use): Likewise, also for local "seq".
5732 (emit): Likewise for return type and local "insn".
5733 (rtx_insn): Likewise for return type and local "new_rtx".
5735 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5736 from rtx to rtx_barrier *.
5738 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5739 changed return type from rtx to rtx_insn *, we must update
5740 "emit_fn" type, and this in turn means updating...
5741 (frame_insn): ...this. Strengthen return type from rtx to
5742 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5744 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5746 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5747 rtx to rtx_jump_table_data *. Also for local.
5748 * rtl.h (emit_jump_table_data): Likewise.
5750 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5752 * basic-block.h (create_basic_block_structure): Strengthen third
5753 param "bb_note" from rtx to rtx_note *.
5754 * rtl.h (emit_note_before): Strengthen return type from rtx to
5756 (emit_note_after): Likewise.
5757 (emit_note): Likewise.
5758 (emit_note_copy): Likewise. Also, strengthen param similarly.
5759 * function.h (struct rtl_data): Strengthen field
5760 "x_stack_check_probe_note" from rtx to rtx_note *.
5762 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5763 from rtx to rtx_note *.
5764 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5765 "bb_note" from rtx to rtx_note *.
5766 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5767 when calling emit_note_copy.
5768 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5770 (emit_note_after): Likewise.
5771 (emit_note_before): Likewise.
5772 (emit_note_copy): Likewise. Also, strengthen param similarly.
5773 (emit_note): Likewise.
5774 * except.c (emit_note_eh_region_end): Likewise for return type.
5775 Strengthen local "next" from rtx to rtx_insn *.
5776 (convert_to_eh_region_ranges): Strengthen local "note"
5777 from rtx to rtx_note *.
5778 * final.c (change_scope): Likewise.
5779 (reemit_insn_block_notes): Likewise, for both locals named "note".
5780 Also, strengthen local "insn" from rtx to rtx_insn *.
5781 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5783 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5784 strengthen local "seq" from rtx to rtx_insn *.
5785 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5787 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5789 (get_bb_note_from_pool): Strengthen return type from rtx to
5791 (sel_create_basic_block): Strengthen local "new_bb_note" from
5792 insn_t to rtx_note *.
5793 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5794 "note" from rtx to rtx_note *.
5795 (emit_notes_in_bb): Likewise.
5797 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5799 * function.h (struct rtl_data): Strengthen field
5800 "x_parm_birth_insn" from rtx to rtx_insn *.
5801 * function.c (struct assign_parm_data_all): Strengthen fields
5802 "first_conversion_insn" and "last_conversion_insn" from rtx to
5805 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5807 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5808 to rtx_insn *; also for local "var_end_seq".
5809 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5810 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5812 (expand_gimple_cond): Likewise for locals "last2" and "last".
5813 (mark_transaction_restart_calls): Likewise for local "insn".
5814 (expand_gimple_stmt): Likewise for return type and locals "last"
5816 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5817 (avoid_complex_debug_insns): Likewise for param "insn".
5818 (expand_debug_locations): Likewise for locals "insn", "last",
5819 "prev_insn" and "insn2".
5820 (expand_gimple_basic_block): Likewise for local "last".
5821 (construct_exit_block): Likewise for locals "head", "end",
5823 (pass_expand::execute): Likewise for locals "var_seq",
5824 "var_ret_seq", "next".
5826 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5828 * asan.h (asan_emit_stack_protection): Strengthen return type from
5830 * asan.c (asan_emit_stack_protection): Likewise. Add local
5831 "insns" to hold the return value.
5833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5835 * basic-block.h (bb_note): Strengthen return type from rtx to
5837 * sched-int.h (bb_note): Likewise.
5838 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5840 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5842 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5845 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5846 "insn" from rtx to rtx_insn *.
5847 (make_debug_insn_raw): Strengthen return type from rtx to
5848 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5849 (make_jump_insn_raw): Strengthen return type from rtx to
5850 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5851 (make_call_insn_raw): Strengthen return type from rtx to
5852 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5853 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5854 callback from rtx to rtx_insn *; likewise for local "insn" and
5855 "next", adding a checked cast to rtx_insn in the relevant cases of
5856 the switch statement.
5857 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5858 callback from rtx to rtx_insn *.
5859 (emit_pattern_after_setloc): Likewise.
5860 (emit_pattern_after): Likewise.
5861 (emit_pattern_before_setloc): Likewise.
5862 (emit_pattern_before): Likewise.
5864 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5866 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5868 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5869 accepting an rtx_insn *.
5870 (last_call_insn): Strengthen return type from rtx to
5873 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5875 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5876 "insns" from rtx to rtx_insn *.
5877 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5878 locals "insn" and "prev".
5880 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5882 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5883 rtx_jump_table_data **.
5885 * cfgbuild.c (make_edges): Introduce local "table", using it in
5886 place of "tmp" for jump table data.
5887 (find_bb_boundaries): Strengthen local "table" from rtx to
5888 rtx_jump_table_data *.
5889 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5890 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5891 (try_crossjump_to_edge): Likewise.
5892 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5894 (patch_jump_insn): Introduce local "table", using it in place of
5895 "tmp" for jump table data.
5896 (force_nonfallthru_and_redirect): Introduce local "table", so that
5897 call to tablejump_p can receive an rtx_jump_table_data **. Update
5898 logic around the call to overwrite "note" appropriately if
5899 tablejump_p returns non-zero.
5900 (get_last_bb_insn): Introduce local "table", using it in place of
5901 "tmp" for jump table data.
5902 * dwarf2cfi.c (create_trace_edges): Likewise.
5904 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5905 from rtx to rtx_jump_table_data *.
5906 (create_fix_barrier): Strengthen local "tmp" from rtx to
5907 rtx_jump_table_data *.
5908 (arm_reorg): Likewise for local "table".
5910 * config/s390/s390.c (s390_chunkify_start): Likewise.
5912 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5914 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5915 rtx to rtx_jump_table_data *.
5917 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5918 rtx_jump_table_data **. Add a checked cast when writing through
5919 the pointer: we know there that local "table" is non-NULL and that
5920 JUMP_TABLE_DATA_P (table) holds.
5921 (label_is_jump_target_p): Introduce local "table", using it in
5922 place of "tmp" for jump table data.
5924 2014-08-19 Marek Polacek <polacek@redhat.com>
5927 * doc/invoke.texi: Document -Wbool-compare.
5929 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5931 * rtl.h (entry_of_function): Strengthen return type from rtx to
5933 * cfgrtl.c (entry_of_function): Likewise.
5935 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5937 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5938 rtx_insn *, adding a checked cast for now.
5939 (get_last_insn): Likewise.
5941 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5943 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5946 * emit-rtl.c (gen_label_rtx): Likewise.
5948 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5950 * rtl.h (previous_insn): Strengthen return type from rtx to
5952 (next_insn): Likewise.
5953 (prev_nonnote_insn): Likewise.
5954 (prev_nonnote_insn_bb): Likewise.
5955 (next_nonnote_insn): Likewise.
5956 (next_nonnote_insn_bb): Likewise.
5957 (prev_nondebug_insn): Likewise.
5958 (next_nondebug_insn): Likewise.
5959 (prev_nonnote_nondebug_insn): Likewise.
5960 (next_nonnote_nondebug_insn): Likewise.
5961 (prev_real_insn): Likewise.
5962 (next_real_insn): Likewise.
5963 (prev_active_insn): Likewise.
5964 (next_active_insn): Likewise.
5966 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5967 rtx_insn *, adding a checked cast.
5968 (previous_insn): Likewise.
5969 (next_nonnote_insn): Likewise.
5970 (next_nonnote_insn_bb): Likewise.
5971 (prev_nonnote_insn): Likewise.
5972 (prev_nonnote_insn_bb): Likewise.
5973 (next_nondebug_insn): Likewise.
5974 (prev_nondebug_insn): Likewise.
5975 (next_nonnote_nondebug_insn): Likewise.
5976 (prev_nonnote_nondebug_insn): Likewise.
5977 (next_real_insn): Likewise.
5978 (prev_real_insn): Likewise.
5979 (next_active_insn): Likewise.
5980 (prev_active_insn): Likewise.
5982 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5983 param "stepfunc" so that it returns an rtx_insn * rather than an
5984 rtx, to track the change to prev_nonnote_insn_bb, which is the
5985 only function this is called with.
5986 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5988 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5990 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5993 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5995 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5996 (class rtx_nonjump_insn): Likewise.
5997 (class rtx_jump_insn): Likewise.
5998 (class rtx_call_insn): Likewise.
5999 (class rtx_jump_table_data): Likewise.
6000 (class rtx_barrier): Likewise.
6001 (class rtx_code_label): Likewise.
6002 (class rtx_note): Likewise.
6004 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6005 adding the invariant DEBUG_INSN_P (X).
6006 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6007 the invariant NONJUMP_INSN_P (X).
6008 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6009 the invariant JUMP_P (X).
6010 (class rtx_call_insn): New, a subclass of rtx_insn, adding
6011 the invariant CALL_P (X).
6012 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6013 invariant JUMP_TABLE_DATA_P (X).
6014 (class rtx_barrier): New, a subclass of rtx_insn, adding the
6015 invariant BARRIER_P (X).
6016 (class rtx_code_label): New, a subclass of rtx_insn, adding
6017 the invariant LABEL_P (X).
6018 (class rtx_note): New, a subclass of rtx_insn, adding
6019 the invariant NOTE_P(X).
6020 (is_a_helper <rtx_debug_insn *>::test): New.
6021 (is_a_helper <rtx_nonjump_insn *>::test): New.
6022 (is_a_helper <rtx_jump_insn *>::test): New.
6023 (is_a_helper <rtx_call_insn *>::test): New.
6024 (is_a_helper <rtx_jump_table_data *>::test): New functions,
6025 overloaded for both rtx and rtx_insn *.
6026 (is_a_helper <rtx_barrier *>::test): New.
6027 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6028 for both rtx and rtx_insn *.
6029 (is_a_helper <rtx_note *>::test): New.
6031 2014-08-19 Marek Polacek <polacek@redhat.com>
6033 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6034 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6035 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6036 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6038 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6040 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6041 rtx_insn *. To help with transition, for now, convert from an
6042 access macro into a pair of functions: BND_TO, returning an
6044 (SET_BND_TO): New function, for use where BND_TO is used as an
6047 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
6049 (BND_TO): New function, adding a checked cast.
6050 (SET_BND_TO): New function.
6052 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
6054 (compute_av_set_on_boundaries): Likewise.
6056 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6058 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
6059 destination if it is used in source.
6060 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
6061 (*popcount<mode>2_falsedep_1): Likewise.
6063 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6066 * configure.ac: Set install_gold_as_default to no first.
6067 * configure: Regenerated.
6069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6071 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6072 "note_list" field will eventually be an rtx_insn *. To help with
6073 transition, for now, convert from an access macro into a pair of
6074 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6075 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
6078 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
6079 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
6081 * sel-sched-ir.c (init_bb): Likewise.
6082 (sel_restore_notes): Likewise.
6083 (move_bb_info): Likewise.
6084 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
6085 (SET_BB_NOTE_LIST): New function.
6087 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6089 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
6090 field will eventually be an rtx_insn *. To help with transition,
6091 for now, convert from an access macro into a pair of functions:
6092 VINSN_INSN_RTX, returning an rtx_insn *, and...
6093 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
6094 is used as an lvalue.
6096 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
6097 SET_VINSN_INSN_RTX where it's used as an lvalue.
6098 (VINSN_INSN_RTX): New function.
6099 (SET_VINSN_INSN_RTX): New function.
6101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6103 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6104 eventually be rtx_insn *, but to help with transition, for now,
6105 convert from an access macro into a pair of functions: DEP_PRO
6106 returning an rtx_insn * and...
6107 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6108 lvalue, returning an rtx&.
6109 (DEP_CON): Analogous changes to DEP_PRO above.
6110 (SET_DEP_CON): Likewise.
6112 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6113 an lvalue to SET_DEP_CON.
6114 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6115 (sd_copy_back_deps): Likewise for DEP_CON.
6116 (DEP_PRO): New function, adding a checked cast for now.
6117 (DEP_CON): Likewise.
6118 (SET_DEP_PRO): New function.
6119 (SET_DEP_CON): Likewise.
6121 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6123 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6124 (extra_options): Add i386/cygwin.opt.
6125 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6126 (CPP_SPEC): Accept -pthread.
6128 (GOMP_SELF_SPECS): Update comment.
6129 * config/i386/cygwin.opt: New file for -pthread flag.
6131 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6133 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6134 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6135 that we can return an rtx_insn *.
6137 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6139 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6140 when building executables, not DLLs. Add --large-address-aware
6141 under the same conditions.
6142 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6143 when building executables, not DLLs. Add --large-address-aware
6144 under the same conditions when using -m32.
6146 * config/i386/cygwin-stdint.h: Throughout, make type
6147 definitions dependent on target architecture, not host.
6149 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6151 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6152 the return type from rtx to rtx_insn *, which will enable various
6153 conversions in followup patches. For now this is is done by a
6155 (NEXT_INSN): Likewise.
6156 (SET_PREV_INSN): Convert to an inline function. This is intended
6157 for use as an lvalue, and so returns an rtx& to allow in-place
6159 (SET_NEXT_INSN): Likewise.
6161 2014-07-08 Mark Wielaard <mjw@redhat.com>
6164 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6166 2014-08-19 Marek Polacek <polacek@redhat.com>
6169 * cgraphunit.c (handle_alias_pairs): Fix condition.
6171 2014-08-19 Richard Biener <rguenther@suse.de>
6173 * gimple-fold.c (fold_gimple_assign): Properly build a
6174 null-pointer constant when devirtualizing addresses.
6176 2014-07-07 Mark Wielaard <mjw@redhat.com>
6178 * dwarf2out.c (decl_quals): New function.
6179 (modified_type_die): Take one cv_quals argument instead of two,
6180 one for const and one for volatile.
6181 (add_type_attribute): Likewise.
6182 (generic_parameter_die): Call add_type_attribute with one modifier
6184 (base_type_for_mode): Likewise.
6185 (add_bounds_info): Likewise.
6186 (add_subscript_info): Likewise.
6187 (gen_array_type_die): Likewise.
6188 (gen_descr_array_type_die): Likewise.
6189 (gen_entry_point_die): Likewise.
6190 (gen_enumeration_type_die): Likewise.
6191 (gen_formal_parameter_die): Likewise.
6192 (gen_subprogram_die): Likewise.
6193 (gen_variable_die): Likewise.
6194 (gen_const_die): Likewise.
6195 (gen_field_die): Likewise.
6196 (gen_pointer_type_die): Likewise.
6197 (gen_reference_type_die): Likewise.
6198 (gen_ptr_to_mbr_type_die): Likewise.
6199 (gen_inheritance_die): Likewise.
6200 (gen_subroutine_type_die): Likewise.
6201 (gen_typedef_die): Likewise.
6202 (force_type_die): Likewise.
6204 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6206 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6208 * configure: Regenerate.
6210 2014-08-19 Richard Biener <rguenther@suse.de>
6212 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6213 DECL_EXTERNALs in BLOCKs as non-references.
6214 * tree-streamer-out.c (streamer_write_chain): Likewise.
6216 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6217 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6218 Anna Tikhonova <anna.tikhonova@intel.com>
6219 Ilya Tocar <ilya.tocar@intel.com>
6220 Andrey Turetskiy <andrey.turetskiy@intel.com>
6221 Ilya Verbin <ilya.verbin@intel.com>
6222 Kirill Yukhin <kirill.yukhin@intel.com>
6223 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6225 * config/i386/sse.md
6226 (define_mode_iterator VI48_AVX512F): Delete.
6227 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6228 (define_mode_iterator VI2_AVX512VL): Ditto.
6229 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6232 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6234 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6235 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6236 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6237 with VI48_AVX512F_AVX512VL): New.
6238 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6239 with VI2_AVX512VL): Ditto.
6241 2014-08-19 Marek Polacek <polacek@redhat.com>
6243 * doc/invoke.texi: Document -Wc99-c11-compat.
6245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6247 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6249 (SET_PREV_INSN): New macro, for use as an lvalue.
6250 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6252 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6253 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6254 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6255 (fixup_abnormal_edges): Likewise.
6256 (unlink_insn_chain): Likewise.
6257 (fixup_reorder_chain): Likewise.
6258 (cfg_layout_delete_block): Likewise.
6259 (cfg_layout_merge_blocks): Likewise.
6260 * combine.c (update_cfg_for_uncondjump): Likewise.
6261 * emit-rtl.c (link_insn_into_chain): Likewise.
6262 (remove_insn): Likewise.
6263 (delete_insns_since): Likewise.
6264 (reorder_insns_nobb): Likewise.
6265 (emit_insn_after_1): Likewise.
6266 * final.c (rest_of_clean_state): Likewise.
6267 (final_scan_insn): Likewise.
6268 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6269 * haifa-sched.c (concat_note_lists): Likewise.
6270 (remove_notes): Likewise.
6271 (restore_other_notes): Likewise.
6272 (move_insn): Likewise.
6273 (unlink_bb_notes): Likewise.
6274 (restore_bb_notes): Likewise.
6275 * jump.c (delete_for_peephole): Likewise.
6276 * optabs.c (emit_libcall_block_1): Likewise.
6277 * reorg.c (emit_delay_sequence): Likewise.
6278 (fill_simple_delay_slots): Likewise.
6279 * sel-sched-ir.c (sel_move_insn): Likewise.
6280 (sel_remove_insn): Likewise.
6281 (get_bb_note_from_pool): Likewise.
6282 * sel-sched.c (move_nop_to_previous_block): Likewise.
6284 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6285 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6286 (c6x_gen_bundles): Likewise.
6287 (hwloop_optimize): Likewise.
6288 * config/frv/frv.c (frv_function_prologue): Likewise.
6289 (frv_register_nop): Likewise.
6290 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6291 (ia64_reorg): Likewise.
6292 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6293 (mep_make_bundle): Likewise.
6294 (mep_bundle_insns): Likewise.
6295 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6296 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6297 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6299 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6301 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6302 return type from rtx to rtx_insn *.
6304 (BB_HEADER): Likewise.
6305 (BB_FOOTER): Likewise.
6306 (SET_BB_HEAD): Convert to a function.
6307 (SET_BB_END): Likewise.
6308 (SET_BB_HEADER): Likewise.
6309 (SET_BB_FOOTER): Likewise.
6311 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6312 Strengthen the return type from rtx to rtx_insn *. For now, this
6313 is done by adding a checked cast, but this will eventually
6314 become a field lookup.
6316 (BB_HEADER): Likewise.
6317 (BB_FOOTER): Likewise.
6318 (SET_BB_HEAD): New function, from macro of same name. This is
6319 intended for use as an lvalue, and so returns an rtx& to allow
6320 in-place modification.
6321 (SET_BB_END): Likewise.
6322 (SET_BB_HEADER): Likewise.
6323 (SET_BB_FOOTER): Likewise.
6325 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6327 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6329 (SET_BB_HEAD): New macro, for use as a lvalue.
6330 (BB_END, SET_BB_END): Likewise.
6331 (BB_HEADER, SET_BB_HEADER): Likewise.
6332 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6334 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6335 of BB_* macros into SET_BB_* macros.
6336 (fix_crossing_unconditional_branches): Likewise.
6337 * caller-save.c (save_call_clobbered_regs): Likewise.
6338 (insert_one_insn): Likewise.
6339 * cfgbuild.c (find_bb_boundaries): Likewise.
6340 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6341 (outgoing_edges_match): Likewise.
6342 (try_optimize_cfg): Likewise.
6343 * cfgexpand.c (expand_gimple_cond): Likewise.
6344 (expand_gimple_tailcall): Likewise.
6345 (expand_gimple_basic_block): Likewise.
6346 (construct_exit_block): Likewise.
6347 * cfgrtl.c (delete_insn): Likewise.
6348 (create_basic_block_structure): Likewise.
6349 (rtl_delete_block): Likewise.
6350 (rtl_split_block): Likewise.
6351 (emit_nop_for_unique_locus_between): Likewise.
6352 (rtl_merge_blocks): Likewise.
6353 (block_label): Likewise.
6354 (try_redirect_by_replacing_jump): Likewise.
6355 (emit_barrier_after_bb): Likewise.
6356 (fixup_abnormal_edges): Likewise.
6357 (record_effective_endpoints): Likewise.
6358 (relink_block_chain): Likewise.
6359 (fixup_reorder_chain): Likewise.
6360 (fixup_fallthru_exit_predecessor): Likewise.
6361 (cfg_layout_duplicate_bb): Likewise.
6362 (cfg_layout_split_block): Likewise.
6363 (cfg_layout_delete_block): Likewise.
6364 (cfg_layout_merge_blocks): Likewise.
6365 * combine.c (update_cfg_for_uncondjump): Likewise.
6366 * emit-rtl.c (add_insn_after): Likewise.
6367 (remove_insn): Likewise.
6368 (reorder_insns): Likewise.
6369 (emit_insn_after_1): Likewise.
6370 * haifa-sched.c (get_ebb_head_tail): Likewise.
6371 (restore_other_notes): Likewise.
6372 (move_insn): Likewise.
6373 (sched_extend_bb): Likewise.
6374 (fix_jump_move): Likewise.
6375 * ifcvt.c (noce_process_if_block): Likewise.
6376 (dead_or_predicable): Likewise.
6377 * ira.c (update_equiv_regs): Likewise.
6378 * reg-stack.c (change_stack): Likewise.
6379 * sel-sched-ir.c (sel_move_insn): Likewise.
6380 * sel-sched.c (move_nop_to_previous_block): Likewise.
6382 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6383 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6385 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6387 * rtl.h (for_each_rtx_in_insn): New function.
6388 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6390 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6392 * coretypes.h (class rtx_insn): Add forward declaration.
6394 * rtl.h: Include is-a.h.
6395 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6396 workaround to ensure gengtype knows inheritance is occurring,
6397 whilst continuing to use the pre-existing special-casing for
6399 (class rtx_insn): New subclass of rtx_def, adding the
6400 invariant that we're dealing with something we can sanely use
6401 INSN_UID, NEXT_INSN, PREV_INSN on.
6402 (is_a_helper <rtx_insn *>::test): New.
6403 (is_a_helper <const rtx_insn *>::test): New.
6405 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6407 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6409 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6411 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6414 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6416 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6417 to BUILT_IN_UNREACHABLE.
6419 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6422 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6424 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6425 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6426 (ffs<mode>2): Do not expand with tzcnt for
6427 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6428 (ffssi2_no_cmove): Ditto.
6429 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6430 (ctz<mode>2): New expander.
6431 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6432 (*ctz<mode>2_falsedep): New insn.
6433 (*ctz<mode>2): Rename from ctz<mode>2.
6434 (clz<mode>2_lzcnt): New expander.
6435 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6436 (*clz<mode>2_lzcnt_falsedep): New insn.
6437 (*clz<mode>2): Rename from ctz<mode>2.
6438 (popcount<mode>2): New expander.
6439 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6440 (*popcount<mode>2_falsedep): New insn.
6441 (*popcount<mode>2): Rename from ctz<mode>2.
6442 (*popcount<mode>2_cmp): Remove.
6443 (*popcountsi2_cmp_zext): Ditto.
6445 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6447 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6448 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6449 * config/microblaze/microblaze.h
6450 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6452 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6455 * configure.ac: Set install_gold_as_default to no for
6457 * configure: Regenerated.
6459 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6461 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6462 * config.in: Add undef of HAVE_isl.
6463 * configure: Regenerate.
6464 * configure.ac: Add definition of HAVE_isl.
6465 * graphite-blocking.c: Add checking of HAVE_isl.
6466 * graphite-dependences.c: Likewise.
6467 * graphite-interchange.c: Likewise.
6468 * graphite-isl-ast-to-gimple.c: Likewise.
6469 * graphite-optimize-isl.c: Likewise.
6470 * graphite-poly.c: Likewise.
6471 * graphite-scop-detection.c: Likewise.
6472 * graphite-sese-to-poly.c: Likewise.
6473 * graphite.c: Likewise.
6474 * toplev.c: Replace the checking of HAVE_cloog with the checking
6477 2014-08-18 Richard Biener <rguenther@suse.de>
6479 PR tree-optimization/62090
6480 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6481 (fold_builtin_3): Do not fold snprintf.
6482 (fold_builtin_4): Likewise.
6483 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6484 moved from builtins.c.
6485 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6486 (gimple_fold_builtin): Do not fold sprintf here.
6488 2014-08-18 Richard Biener <rguenther@suse.de>
6490 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6492 (maybe_canonicalize_mem_ref_addr): ... this function.
6493 (fold_stmt_1): Apply it here before all simplification.
6495 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6498 * cgraph.h (cgraph_node::create_indirect_edge): Add
6499 compute_indirect_info param.
6500 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6501 indirect_info only when it is required.
6502 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6503 indirect_info fore cloned indirect edge.
6505 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6506 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6507 Anna Tikhonova <anna.tikhonova@intel.com>
6508 Ilya Tocar <ilya.tocar@intel.com>
6509 Andrey Turetskiy <andrey.turetskiy@intel.com>
6510 Ilya Verbin <ilya.verbin@intel.com>
6511 Kirill Yukhin <kirill.yukhin@intel.com>
6512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6514 * config/i386/sse.md
6515 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6516 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6518 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6520 Anna Tikhonova <anna.tikhonova@intel.com>
6521 Ilya Tocar <ilya.tocar@intel.com>
6522 Andrey Turetskiy <andrey.turetskiy@intel.com>
6523 Ilya Verbin <ilya.verbin@intel.com>
6524 Kirill Yukhin <kirill.yukhin@intel.com>
6525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6527 * config/i386/sse.md
6528 (define_mode_iterator VF1_AVX512VL): New.
6529 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6530 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6533 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6535 Anna Tikhonova <anna.tikhonova@intel.com>
6536 Ilya Tocar <ilya.tocar@intel.com>
6537 Andrey Turetskiy <andrey.turetskiy@intel.com>
6538 Ilya Verbin <ilya.verbin@intel.com>
6539 Kirill Yukhin <kirill.yukhin@intel.com>
6540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6542 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6543 * config/i386/i386.md
6544 (define_code_iterator any_float): New.
6545 (define_code_attr floatsuffix): New.
6546 * config/i386/sse.md
6547 (define_mode_iterator VF1_128_256VL): New.
6548 (define_mode_iterator VF2_512_256VL): New.
6549 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6551 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6552 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6554 (define_mode_attr qq2pssuff): New.
6555 (define_mode_attr sselongvecmode): New.
6556 (define_mode_attr sselongvecmodelower): New.
6557 (define_mode_attr sseintvecmode3): New.
6558 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6560 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6561 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6562 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6563 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6565 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6567 Anna Tikhonova <anna.tikhonova@intel.com>
6568 Ilya Tocar <ilya.tocar@intel.com>
6569 Andrey Turetskiy <andrey.turetskiy@intel.com>
6570 Ilya Verbin <ilya.verbin@intel.com>
6571 Kirill Yukhin <kirill.yukhin@intel.com>
6572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6574 * config/i386/sse.md
6575 (define_mode_iterator VF2_AVX512VL): New.
6576 (define_mode_attr sseintvecmode2): New.
6577 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6578 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6579 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6581 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6583 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6585 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6588 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6590 Anna Tikhonova <anna.tikhonova@intel.com>
6591 Ilya Tocar <ilya.tocar@intel.com>
6592 Andrey Turetskiy <andrey.turetskiy@intel.com>
6593 Ilya Verbin <ilya.verbin@intel.com>
6594 Kirill Yukhin <kirill.yukhin@intel.com>
6595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6597 * config/i386/i386.md
6598 (define_insn "*movoi_internal_avx"): Add evex version.
6599 (define_insn "*movti_internal"): Ditto.
6601 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6602 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6603 Anna Tikhonova <anna.tikhonova@intel.com>
6604 Ilya Tocar <ilya.tocar@intel.com>
6605 Andrey Turetskiy <andrey.turetskiy@intel.com>
6606 Ilya Verbin <ilya.verbin@intel.com>
6607 Kirill Yukhin <kirill.yukhin@intel.com>
6608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6610 * config/i386/i386.md
6611 (define_attr "isa"): Add avx512dq, noavx512dq.
6612 (define_attr "enabled"): Ditto.
6613 * config/i386/sse.md
6614 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6616 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6618 Anna Tikhonova <anna.tikhonova@intel.com>
6619 Ilya Tocar <ilya.tocar@intel.com>
6620 Andrey Turetskiy <andrey.turetskiy@intel.com>
6621 Ilya Verbin <ilya.verbin@intel.com>
6622 Kirill Yukhin <kirill.yukhin@intel.com>
6623 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6625 * config/i386/i386.c
6626 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6627 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6628 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6629 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6630 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6631 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6632 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6633 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6634 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6635 * config/i386/sse.md
6636 (define_mode_iterator VMOVE): Allow V4TI mode.
6637 (define_mode_iterator V_AVX512VL): New.
6638 (define_mode_iterator V): New handling for AVX512VL.
6639 (define_insn "avx512f_load<mode>_mask"): Delete.
6640 (define_insn "<avx512>_load<mode>_mask"): New.
6641 (define_insn "avx512f_store<mode>_mask"): Delete.
6642 (define_insn "<avx512>_store<mode>_mask"): New.
6645 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6648 * asan.c (instrument_derefs): Fix bitfield check.
6650 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6652 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6653 * config/rs6000/htm.md (ttest): Remove clobber.
6654 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6655 (and_operand): Reformat.
6656 (and_2rld_operand): New predicate.
6657 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6659 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6660 parameter. Handle AND directly.
6661 (rs6000_split_logical_di): Remove last parameter.
6662 (rs6000_split_logical): Remove last parameter. Remove obsolete
6664 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6665 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6666 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6667 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6668 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6669 and 5 anonymous splitters): Delete.
6670 (and<mode>3): New expander.
6671 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6672 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6673 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6674 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6675 (floatdisf2_internal1): Remove clobbers.
6676 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6677 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6678 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6679 (and<mode>3 for BOOL_128): Remove clobber.
6680 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6681 rs6000_split_logical.
6682 (*bool<mode>3_internal for BOOL_128): Adjust call of
6683 rs6000_split_logical.
6684 (*boolc<mode>3_internal1 for BOOL_128,
6685 *boolc<mode>3_internal2 for BOOL_128,
6686 *boolcc<mode>3_internal1 for BOOL_128,
6687 *boolcc<mode>3_internal2 for BOOL_128,
6688 *eqv<mode>3_internal1 for BOOL_128,
6689 *eqv<mode>3_internal2 for BOOL_128,
6690 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6691 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6693 (*vec_reload_and_reg_<mptrsize>): Delete.
6695 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6697 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6698 and split, *boolccsi3_internal3 and split): Delete.
6699 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6700 *boolccdi3_internal3 and split): Delete.
6701 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6702 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6704 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6706 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6707 and split, *boolcsi3_internal3 and split): Delete.
6708 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6709 *boolcdi3_internal3 and split): Delete.
6710 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6712 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6714 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6715 <'u'>: Also support printing the low-order 16 bits.
6716 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6717 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6718 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6719 *booldi3_internal3 and split): Delete.
6720 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6721 *bool<mode>3_dot2): New.
6722 (two anonymous define_splits for non_logical_cint_operand): Merge.
6724 2014-08-17 Marek Polacek <polacek@redhat.com>
6725 Manuel López-Ibáñez <manu@gcc.gnu.org>
6728 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6729 (diagnostic_show_locus): Don't print caret diagnostic
6730 if a column is larger than the line_width.
6732 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6734 * common.opt: Make the ISL AST generator to be the main code generator
6737 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6739 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6741 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6744 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6746 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6747 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6748 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6750 * config/pa/pa.md (begin_brtab): Delete insn.
6751 (end_brtab): Likewise.
6753 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6755 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6757 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6759 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6760 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6761 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6762 (get_dynamic_type): Remove.
6763 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6764 (clear_speculation): Bring to ipa-deivrt.h
6765 (get_class_context): Rename to ...
6766 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6767 (contains_type_p): Update.
6768 (get_dynamic_type): Rename to ...
6769 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6770 (possible_polymorphic_call_targets): UPdate.
6771 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6772 * ipa-prop.c (ipa_analyze_call_uses): Update.
6774 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6776 * doc/invoke.texi (SH options): Document missing processor variant
6777 options. Remove references to Hitachi. Undocument deprecated mspace
6780 2014-08-15 Jason Merrill <jason@redhat.com>
6782 * tree.c (type_hash_canon): Uncomment assert.
6784 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6786 * input.h (in_system_header_at): Add comment.
6788 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6791 * diagnostic.c (build_message_string): Make it extern.
6792 * diagnostic.h (build_message_string): Make it extern.
6794 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6796 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6797 load/store from/to non-floating class pseudo.
6799 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6801 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6803 2014-08-15 Richard Biener <rguenther@suse.de>
6805 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6806 (get_constraint_for_ssa_var): Remove dead code.
6807 (get_constraint_for_1): Adjust.
6808 (find_what_var_points_to): Likewise.
6809 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6811 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6814 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6815 (_mm512_mask_cmpge_epu32_mask): Ditto.
6816 (_mm512_cmpge_epu32_mask): Ditto.
6817 (_mm512_mask_cmpge_epi64_mask): Ditto.
6818 (_mm512_cmpge_epi64_mask): Ditto.
6819 (_mm512_mask_cmpge_epu64_mask): Ditto.
6820 (_mm512_cmpge_epu64_mask): Ditto.
6821 (_mm512_mask_cmple_epi32_mask): Ditto.
6822 (_mm512_cmple_epi32_mask): Ditto.
6823 (_mm512_mask_cmple_epu32_mask): Ditto.
6824 (_mm512_cmple_epu32_mask): Ditto.
6825 (_mm512_mask_cmple_epi64_mask): Ditto.
6826 (_mm512_cmple_epi64_mask): Ditto.
6827 (_mm512_mask_cmple_epu64_mask): Ditto.
6828 (_mm512_cmple_epu64_mask): Ditto.
6829 (_mm512_mask_cmplt_epi32_mask): Ditto.
6830 (_mm512_cmplt_epi32_mask): Ditto.
6831 (_mm512_mask_cmplt_epu32_mask): Ditto.
6832 (_mm512_cmplt_epu32_mask): Ditto.
6833 (_mm512_mask_cmplt_epi64_mask): Ditto.
6834 (_mm512_cmplt_epi64_mask): Ditto.
6835 (_mm512_mask_cmplt_epu64_mask): Ditto.
6836 (_mm512_cmplt_epu64_mask): Ditto.
6837 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6838 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6839 (_mm512_cmpneq_epu32_mask): Ditto.
6840 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6841 (_mm512_cmpneq_epi64_mask): Ditto.
6842 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6843 (_mm512_cmpneq_epu64_mask): Ditto.
6844 (_mm512_castpd_ps): Ditto.
6845 (_mm512_castpd_si512): Ditto.
6846 (_mm512_castps_pd): Ditto.
6847 (_mm512_castps_si512): Ditto.
6848 (_mm512_castsi512_ps): Ditto.
6849 (_mm512_castsi512_pd): Ditto.
6850 (_mm512_castpd512_pd128): Ditto.
6851 (_mm512_castps512_ps128): Ditto.
6852 (_mm512_castsi512_si128): Ditto.
6853 (_mm512_castpd512_pd256): Ditto.
6854 (_mm512_castps512_ps256): Ditto.
6855 (_mm512_castsi512_si256): Ditto.
6856 (_mm512_castpd128_pd512): Ditto.
6857 (_mm512_castps128_ps512): Ditto.
6858 (_mm512_castsi128_si512): Ditto.
6859 (_mm512_castpd256_pd512): Ditto.
6860 (_mm512_castps256_ps512): Ditto.
6861 (_mm512_castsi256_si512): Ditto.
6862 (_mm512_cmpeq_epu32_mask): Ditto.
6863 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6864 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6865 (_mm512_cmpeq_epu64_mask): Ditto.
6866 (_mm512_cmpgt_epu32_mask): Ditto.
6867 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6868 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6869 (_mm512_cmpgt_epu64_mask): Ditto.
6870 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6871 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6872 * config/i386/i386.c (enum ix86_builtins): Add
6873 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6874 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6875 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6876 (bdesc_args): Add __builtin_ia32_si512_256si,
6877 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6878 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6879 __builtin_ia32_pd512_pd.
6880 (ix86_expand_args_builtin): Handle new FTYPEs.
6881 * config/i386/sse.md (castmode): Add 512-bit modes.
6882 (AVX512MODE2P): New.
6883 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6884 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6886 2014-08-15 Richard Biener <rguenther@suse.de>
6888 * fold-const.c (tree_swap_operands_p): Put all constants
6889 last, also strip sign-changing NOPs when considering further
6890 canonicalization. Canonicalize also when optimizing for size.
6892 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6894 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6895 one_match > zero_match case to just before simple_sequence.
6897 2014-08-15 Richard Biener <rguenther@suse.de>
6899 * data-streamer.h (streamer_string_index, string_for_index):
6901 * data-streamer-out.c (streamer_string_index): Make static.
6902 * data-streamer-in.c (string_for_index): Likewise.
6903 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6904 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6906 2014-08-15 Richard Biener <rguenther@suse.de>
6908 PR tree-optimization/62031
6909 * tree-data-ref.c (dr_analyze_indices): Do not set
6910 DR_UNCONSTRAINED_BASE.
6911 (dr_may_alias_p): All indirect accesses have to go the
6912 formerly DR_UNCONSTRAINED_BASE path.
6913 * tree-data-ref.h (struct indices): Remove
6914 unconstrained_base member.
6915 (DR_UNCONSTRAINED_BASE): Remove.
6917 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6920 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6921 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6922 in OMP_CLAUSE_MAP in some outer target region.
6924 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6926 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6927 name_expansion_cache.
6928 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6929 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6930 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6931 (difference_cannot_overflow_p): New parameter. Use affine
6932 expansion for equality check.
6933 (iv_elimination_compare_lt): Pass new argument.
6935 2014-08-14 DJ Delorie <dj@redhat.com>
6937 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6938 variables to the accumulator.
6940 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6941 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6942 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6945 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6946 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6947 (umulqihi3_virt): Likewise.
6948 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6949 (umulqihi3_real): Likewise.
6951 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6953 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6955 PR tree-optimization/62091
6956 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6957 function_entry_reached.
6958 (walk_aliased_vdefs): Clear it here.
6959 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6961 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6963 * ipa-utils.h (compare_virtual_tables): Declare.
6964 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6966 2014-08-14 Marek Polacek <polacek@redhat.com>
6969 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6970 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6972 2014-08-14 Tom de Vries <tom@codesourcery.com>
6974 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6976 2014-08-14 Tom de Vries <tom@codesourcery.com>
6978 PR rtl-optimization/62004
6979 PR rtl-optimization/62030
6980 * ifcvt.c (rtx_interchangeable_p): New function.
6981 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6982 * emit-rtl.h (mem_attrs_eq_p): Declare.
6984 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6986 * graphite-scop-detection.c:
6987 Add inclusion of cp-tree.h.
6988 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6989 in case they are pointers to object types
6991 2014-08-14 Richard Biener <rguenther@suse.de>
6993 * BASE-VER: Change to 5.0.0
6995 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6997 Anna Tikhonova <anna.tikhonova@intel.com>
6998 Ilya Tocar <ilya.tocar@intel.com>
6999 Andrey Turetskiy <andrey.turetskiy@intel.com>
7000 Ilya Verbin <ilya.verbin@intel.com>
7001 Kirill Yukhin <kirill.yukhin@intel.com>
7002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7004 * config/i386/sse.md (define_mode_attr avx512): New.
7005 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7007 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7008 (define_mode_attr ssse3_avx2): Ditto.
7009 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7010 (define_mode_attr avx2_avx512bw): New.
7011 (define_mode_attr ssedoublemodelower): New.
7012 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7014 (define_mode_attr ssebytemode): Allow V8DI modes.
7015 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7016 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7017 (define_mode_attr ssePSmode2): New.
7018 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7020 (define_mode_attr dbpsadbwmode): New.
7021 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7022 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7023 (vi8_sse4_1_avx2_avx512): New.
7024 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7026 (define_mode_attr blendbits): Move before its immediate use.
7028 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7030 Anna Tikhonova <anna.tikhonova@intel.com>
7031 Ilya Tocar <ilya.tocar@intel.com>
7032 Andrey Turetskiy <andrey.turetskiy@intel.com>
7033 Ilya Verbin <ilya.verbin@intel.com>
7034 Kirill Yukhin <kirill.yukhin@intel.com>
7035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7037 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7038 * config/i386/subst.md
7039 (define_mode_iterator SUBST_V): Update.
7040 (define_mode_iterator SUBST_A): Ditto.
7041 (define_subst_attr "mask_operand7"): New.
7042 (define_subst_attr "mask_operand10"): New.
7043 (define_subst_attr "mask_operand_arg34") : New.
7044 (define_subst_attr "mask_expand_op3"): New.
7045 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
7046 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
7047 (define_subst_attr "mask_avx512vl_condition"): New.
7048 (define_subst_attr "round_mask_operand4"): Ditto.
7049 (define_subst_attr "round_mask_scalar_op3"): Delete.
7050 (define_subst_attr "round_mask_op4"): New.
7051 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
7053 (define_subst_attr "round_modev8sf_condition"): New.
7054 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
7056 (define_subst_attr "round_saeonly_mask_operand4"): New.
7057 (define_subst_attr "round_saeonly_mask_op4"): New.
7058 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
7059 V8DImode, V16SImode.
7060 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
7061 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7062 (define_subst_attr "mask_expand4_args"): New.
7063 (define_subst "mask_expand4"): New.
7065 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7067 Anna Tikhonova <anna.tikhonova@intel.com>
7068 Ilya Tocar <ilya.tocar@intel.com>
7069 Andrey Turetskiy <andrey.turetskiy@intel.com>
7070 Ilya Verbin <ilya.verbin@intel.com>
7071 Kirill Yukhin <kirill.yukhin@intel.com>
7072 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7074 * config/i386/i386.md
7075 (define_attr "isa"): Add avx512bw,noavx512bw.
7076 (define_attr "enabled"): Ditto.
7077 (define_split): Add 32/64-bit mask logic.
7078 (define_insn "*k<logic>qi"): New.
7079 (define_insn "*k<logic>hi"): New.
7080 (define_insn "*anddi_1"): Add mask version.
7081 (define_insn "*andsi_1"): Ditto.
7082 (define_insn "*<code><mode>_1"): Ditto.
7083 (define_insn "*<code>hi_1"): Ditto.
7084 (define_insn "kxnor<mode>"): New.
7085 (define_insn "kunpcksi"): New.
7086 (define_insn "kunpckdi"): New.
7087 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
7088 (define_insn "*one_cmplhi2_1"): Ditto.
7090 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7092 Anna Tikhonova <anna.tikhonova@intel.com>
7093 Ilya Tocar <ilya.tocar@intel.com>
7094 Andrey Turetskiy <andrey.turetskiy@intel.com>
7095 Ilya Verbin <ilya.verbin@intel.com>
7096 Kirill Yukhin <kirill.yukhin@intel.com>
7097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7099 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7102 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7103 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7104 Anna Tikhonova <anna.tikhonova@intel.com>
7105 Ilya Tocar <ilya.tocar@intel.com>
7106 Andrey Turetskiy <andrey.turetskiy@intel.com>
7107 Ilya Verbin <ilya.verbin@intel.com>
7108 Kirill Yukhin <kirill.yukhin@intel.com>
7109 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7111 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7113 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7114 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7115 xmm/ymm16+ when availble.
7116 * config/i386/i386.h
7117 (HARD_REGNO_NREGS): Add mask regs.
7118 (VALID_AVX512F_REG_MODE): Ditto.
7119 (VALID_AVX512F_REG_MODE) : Define.
7120 (VALID_MASK_AVX512BW_MODE): Ditto.
7121 (reg_class) (MASK_REG_P(X)): Define.
7122 * config/i386/i386.md: Do not split long moves with mask register,
7123 use kmovb if avx512bw is availible.
7124 (movdi_internal): Handle mask registers.
7126 2014-08-14 Richard Biener <rguenther@suse.de>
7128 PR tree-optimization/62081
7129 * tree-ssa-loop.c (pass_fix_loops): New pass.
7130 (pass_tree_loop::gate): Do not fixup loops here.
7131 * tree-pass.h (make_pass_fix_loops): Declare.
7132 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7134 2014-08-14 Richard Biener <rguenther@suse.de>
7136 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7137 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7139 2014-08-14 Richard Biener <rguenther@suse.de>
7141 PR tree-optimization/62090
7142 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7143 (fold_builtin_2): Do not fold sprintf.
7144 (fold_builtin_3): Likewise.
7145 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7146 moved from builtins.c.
7147 (gimple_fold_builtin): Fold sprintf.
7149 2014-08-14 Richard Biener <rguenther@suse.de>
7151 PR rtl-optimization/62079
7152 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7155 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7157 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7158 current_function_decl.
7160 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7162 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7163 cgraph_function_node to cgraph_node::function_symbol
7166 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7168 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7169 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7171 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7173 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7176 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7178 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7181 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7184 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7185 any registers that are used in mem_insn.
7187 2014-08-12 Steve Ellcey <sellcey@mips.com>
7189 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7191 2014-08-12 Steve Ellcey <sellcey@mips.com>
7193 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7194 (MULTILIB_DIRNAMES): Ditto.
7195 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7196 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7197 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7198 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7199 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7200 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7202 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7205 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7206 of __ARM_SIZEOF_WCHAR_T.
7208 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7211 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7212 Remove unnecessary attributes.
7214 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7216 * internal-fn.c (init_internal_fns): Fix off-by-one.
7218 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7220 Anna Tikhonova <anna.tikhonova@intel.com>
7221 Ilya Tocar <ilya.tocar@intel.com>
7222 Andrey Turetskiy <andrey.turetskiy@intel.com>
7223 Ilya Verbin <ilya.verbin@intel.com>
7224 Kirill Yukhin <kirill.yukhin@intel.com>
7225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7227 * config/i386/i386.c (standard_sse_constant_opcode): Use
7228 vpxord/vpternlog if avx512 is availible.
7230 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7233 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7234 bitfields, that is when size doesn't match the size of type or the
7235 size of the constructor.
7237 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7239 * config/rs6000/constraints.md (wh constraint): New constraint,
7240 for FP registers if direct move is available.
7241 (wi constraint): New constraint, for VSX/FP registers that can
7242 handle 64-bit integers.
7243 (wj constraint): New constraint for VSX/FP registers that can
7244 handle 64-bit integers for direct moves.
7245 (wk constraint): New constraint for VSX/FP registers that can
7246 handle 64-bit doubles for direct moves.
7247 (wy constraint): Make documentation match implementation.
7249 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7250 scalar_in_vmx_p field to simplify tests of whether SFmode or
7251 DFmode can go in the Altivec registers.
7252 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7253 (rs6000_setup_reg_addr_masks): Likewise.
7254 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7255 field, and wh/wi/wj/wk constraints.
7256 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7257 the wh/wi/wj/wk constraints.
7258 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7259 upper registers, prefer VSX registers unless the operation is a
7260 memory operation with REG+OFFSET addressing.
7262 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7263 DImode. Change SFmode to use ww constraint instead of d to allow
7264 SF registers in the upper registers.
7267 (VSr5): Fix thinko in comment.
7268 (VSa): New mode attribute that is an alternative to wa, that
7269 returns the VSX register class that a mode can go in, but may not
7270 be the preferred register class.
7271 (VS_64dm): New mode attribute for appropriate register classes for
7272 referencing 64-bit elements of vectors for direct moves and normal
7274 (VS_64reg): Likewise.
7275 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7276 register allocator to only registers the data type can handle.
7277 (vsx_le_perm_load_<mode>): Likewise.
7278 (vsx_le_perm_store_<mode>): Likewise.
7279 (vsx_xxpermdi2_le_<mode>): Likewise.
7280 (vsx_xxpermdi4_le_<mode>): Likewise.
7281 (vsx_lxvd2x2_le_<mode>): Likewise.
7282 (vsx_lxvd2x4_le_<mode>): Likewise.
7283 (vsx_stxvd2x2_le_<mode>): Likewise.
7284 (vsx_add<mode>3): Likewise.
7285 (vsx_sub<mode>3): Likewise.
7286 (vsx_mul<mode>3): Likewise.
7287 (vsx_div<mode>3): Likewise.
7288 (vsx_tdiv<mode>3_internal): Likewise.
7289 (vsx_fre<mode>2): Likewise.
7290 (vsx_neg<mode>2): Likewise.
7291 (vsx_abs<mode>2): Likewise.
7292 (vsx_nabs<mode>2): Likewise.
7293 (vsx_smax<mode>3): Likewise.
7294 (vsx_smin<mode>3): Likewise.
7295 (vsx_sqrt<mode>2): Likewise.
7296 (vsx_rsqrte<mode>2): Likewise.
7297 (vsx_tsqrt<mode>2_internal): Likewise.
7298 (vsx_fms<mode>4): Likewise.
7299 (vsx_nfma<mode>4): Likewise.
7300 (vsx_eq<mode>): Likewise.
7301 (vsx_gt<mode>): Likewise.
7302 (vsx_ge<mode>): Likewise.
7303 (vsx_eq<mode>_p): Likewise.
7304 (vsx_gt<mode>_p): Likewise.
7305 (vsx_ge<mode>_p): Likewise.
7306 (vsx_xxsel<mode>): Likewise.
7307 (vsx_xxsel<mode>_uns): Likewise.
7308 (vsx_copysign<mode>3): Likewise.
7309 (vsx_float<VSi><mode>2): Likewise.
7310 (vsx_floatuns<VSi><mode>2): Likewise.
7311 (vsx_fix_trunc<mode><VSi>2): Likewise.
7312 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7313 (vsx_x<VSv>r<VSs>i): Likewise.
7314 (vsx_x<VSv>r<VSs>ic): Likewise.
7315 (vsx_btrunc<mode>2): Likewise.
7316 (vsx_b2trunc<mode>2): Likewise.
7317 (vsx_floor<mode>2): Likewise.
7318 (vsx_ceil<mode>2): Likewise.
7319 (vsx_<VS_spdp_insn>): Likewise.
7320 (vsx_xscvspdp): Likewise.
7321 (vsx_xvcvspuxds): Likewise.
7322 (vsx_float_fix_<mode>2): Likewise.
7323 (vsx_set_<mode>): Likewise.
7324 (vsx_extract_<mode>_internal1): Likewise.
7325 (vsx_extract_<mode>_internal2): Likewise.
7326 (vsx_extract_<mode>_load): Likewise.
7327 (vsx_extract_<mode>_store): Likewise.
7328 (vsx_splat_<mode>): Likewise.
7329 (vsx_xxspltw_<mode>): Likewise.
7330 (vsx_xxspltw_<mode>_direct): Likewise.
7331 (vsx_xxmrghw_<mode>): Likewise.
7332 (vsx_xxmrglw_<mode>): Likewise.
7333 (vsx_xxsldwi_<mode>): Likewise.
7334 (vsx_xscvdpspn): Tighten constraints to only use register classes
7336 (vsx_xscvspdpn): Likewise.
7337 (vsx_xscvdpspn_scalar): Likewise.
7339 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7340 wj, and wk constraints.
7341 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7342 general purpose registers.
7344 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7346 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7347 DImode instead of wm. Use wk constraint for direct move of DFmode
7349 (extendsidi2_lfiwax): Likewise.
7352 (movdi_internal64): Likewise.
7354 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7355 wk constraints. Make the wy constraint documentation match them
7358 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7360 Replacement of isl_int by isl_val
7361 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7362 (compute_bounds_for_param): use isl_val instead of isl_int
7363 (compute_bounds_for_loop): likewise
7364 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7365 (build_linearized_memory_access): use isl_val instead of isl_int
7366 (pdr_stride_in_loop): likewise
7367 * graphite-optimize-isl.c:
7368 (getPrevectorMap): use isl_val instead of isl_int
7370 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7371 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7372 (extern the_isl_ctx): declare
7373 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7374 (extract_affine_gmp): likewise
7376 (build_loop_iteration_domains): likewise
7377 (add_param_constraints): likewise
7379 2014-08-11 Richard Biener <rguenther@suse.de>
7381 PR tree-optimization/62075
7382 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7383 handle uses in patterns.
7385 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7386 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7387 Anna Tikhonova <anna.tikhonova@intel.com>
7388 Ilya Tocar <ilya.tocar@intel.com>
7389 Andrey Turetskiy <andrey.turetskiy@intel.com>
7390 Ilya Verbin <ilya.verbin@intel.com>
7391 Kirill Yukhin <kirill.yukhin@intel.com>
7392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7394 * common/config/i386/i386-common.c
7395 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7396 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7397 (ix86_handle_option): Handle OPT_mavx512vl.
7398 * config/i386/cpuid.h (bit_AVX512VL): Define.
7399 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7400 set -mavx512vl accordingly.
7401 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7402 OPTION_MASK_ISA_AVX512VL.
7403 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7404 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7405 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7406 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7407 * config/i386/i386.h (TARGET_AVX512VL): Define.
7408 (TARGET_AVX512VL_P(x)): Ditto.
7409 * config/i386/i386.opt: Add mavx512vl.
7411 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7413 PR tree-optimization/62073
7414 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7417 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7419 Anna Tikhonova <anna.tikhonova@intel.com>
7420 Ilya Tocar <ilya.tocar@intel.com>
7421 Andrey Turetskiy <andrey.turetskiy@intel.com>
7422 Ilya Verbin <ilya.verbin@intel.com>
7423 Kirill Yukhin <kirill.yukhin@intel.com>
7424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7426 * common/config/i386/i386-common.c
7427 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7428 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7429 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7430 (ix86_handle_option): Handle OPT_mavx512bw.
7431 * config/i386/cpuid.h (bit_AVX512BW): Define.
7432 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7433 set -mavx512bw accordingly.
7434 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7435 OPTION_MASK_ISA_AVX512BW.
7436 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7437 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7438 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7439 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7440 * config/i386/i386.h (TARGET_AVX512BW): Define.
7441 (TARGET_AVX512BW_P(x)): Ditto.
7442 * config/i386/i386.opt: Add mavx512bw.
7444 2014-08-11 Richard Biener <rguenther@suse.de>
7446 PR tree-optimization/62070
7447 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7448 Remove SSA checking.
7450 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7452 * asan.c (asan_check_flags): New enum.
7453 (build_check_stmt_with_calls): Removed function.
7454 (build_check_stmt): Split inlining logic to
7455 asan_expand_check_ifn.
7456 (instrument_derefs): Rename parameter.
7457 (instrument_mem_region_access): Rename parameter.
7458 (instrument_strlen_call): Likewise.
7459 (asan_expand_check_ifn): New function.
7460 (asan_instrument): Remove old code.
7461 (pass_sanopt::execute): Change handling of
7462 asan-instrumentation-with-call-threshold.
7463 (asan_clear_shadow): Fix formatting.
7464 (asan_function_start): Likewise.
7465 (asan_emit_stack_protection): Likewise.
7466 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7468 * internal-fn.c (expand_ASAN_CHECK): New function.
7469 * internal-fn.def (ASAN_CHECK): New internal function.
7470 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7472 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7473 * tree.c: Small comment fix.
7475 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7477 * gimple.c (gimple_call_fnspec): Support internal functions.
7478 (gimple_call_return_flags): Use const.
7479 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7480 * internal-fn.def: Add fnspec information.
7481 * internal-fn.h (internal_fn_fnspec): New function.
7482 (init_internal_fns): Declare new function.
7483 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7484 (init_internal_fns): New function.
7485 * tree-core.h: Update macro call.
7486 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7488 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7490 * lto-streamer.h (struct output_block::symbol): Change from
7491 struct symtab_node to plain symtab_node.
7492 (referenced_from_this_partition_p): Change first parameter
7493 from struct symtab_node to plain symtab_node.
7495 2014-08-10 Marek Polacek <polacek@redhat.com>
7498 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7500 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7502 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7503 DECL correctly; do not give up on types in static storage.
7505 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7507 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7509 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7511 * graphite-isl-ast-to-gimple.c:
7512 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7514 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7516 2014-08-08 Guozhi Wei <carrot@google.com>
7518 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7520 2014-08-08 Cary Coutant <ccoutant@google.com>
7522 * dwarf2out.c (get_skeleton_type_unit): Remove.
7523 (output_skeleton_debug_sections): Remove skeleton type units.
7524 (output_comdat_type_unit): Likewise.
7525 (dwarf2out_finish): Likewise.
7527 2014-08-07 Yi Yang <ahyangyi@google.com>
7529 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7531 2014-08-08 Richard Biener <rguenther@suse.de>
7533 * lto-streamer.h (struct lto_input_block): Make it a class
7535 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7536 (struct lto_function_header, struct lto_simple_header,
7537 struct lto_simple_header_with_strings,
7538 struct lto_decl_header, struct lto_function_header): Make
7539 a simple inheritance hieararchy. Remove unused fields.
7540 (struct lto_asm_header): Remove.
7541 * lto-streamer-out.c (produce_asm): Adjust.
7542 (lto_output_toplevel_asms): Likewise.
7543 (produce_asm_for_decls): Likewise.
7544 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7545 * data-streamer-in.c (string_for_index): Likewise.
7546 * ipa-inline-analysis.c (inline_read_section): Likewise.
7547 * ipa-prop.c (ipa_prop_read_section): Likewise.
7548 (read_replacements_section): Likewise.
7549 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7550 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7551 (lto_destroy_simple_input_block): Likewise.
7552 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7553 (lto_input_toplevel_asms): Likewise.
7555 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7557 Anna Tikhonova <anna.tikhonova@intel.com>
7558 Ilya Tocar <ilya.tocar@intel.com>
7559 Andrey Turetskiy <andrey.turetskiy@intel.com>
7560 Ilya Verbin <ilya.verbin@intel.com>
7561 Kirill Yukhin <kirill.yukhin@intel.com>
7562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7564 * common/config/i386/i386-common.c
7565 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7566 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7567 (ix86_handle_option): Handle OPT_mavx512dq.
7568 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7569 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7570 set -mavx512dq accordingly.
7571 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7572 OPTION_MASK_ISA_AVX512DQ.
7573 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7574 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7575 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7576 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7577 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7578 (TARGET_AVX512DQ_P(x)): Ditto.
7579 * config/i386/i386.opt: Add mavx512dq.
7581 2014-08-08 Richard Biener <rguenther@suse.de>
7583 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7584 target_percent, target_percent_s): Export.
7585 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7586 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7587 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7588 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7589 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7590 Move to gimple-fold.c.
7591 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7593 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7594 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7595 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7596 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7597 (rewrite_call_expr_array): Remove.
7598 (fold_builtin_sprintf_chk): Likewise.
7599 (fold_builtin_snprintf_chk): Likewise.
7600 (fold_builtin_varargs): Remove handling of sprintf_chk,
7601 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7602 (gimple_fold_builtin_sprintf_chk): Remove.
7603 (gimple_fold_builtin_snprintf_chk): Likewise.
7604 (gimple_fold_builtin_varargs): Likewise.
7605 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7606 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7607 * gimple.c (gimple_seq_add_seq_without_update): New function.
7608 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7609 * gimple-fold.c: Include output.h.
7610 (gsi_replace_with_seq_vops): New function, split out from ...
7611 (gimplify_and_update_call_from_tree): ... here.
7612 (replace_call_with_value): New function.
7613 (replace_call_with_call_and_fold): Likewise.
7614 (var_decl_component_p): Moved from builtins.c.
7615 (gimple_fold_builtin_memory_op): Moved from builtins.c
7616 fold_builtin_memory_op and rewritten to GIMPLE.
7617 (gimple_fold_builtin_memset): Likewise.
7618 (gimple_fold_builtin_strcpy): Likewise.
7619 (gimple_fold_builtin_strncpy): Likewise.
7620 (gimple_fold_builtin_strcat): Likewise.
7621 (gimple_fold_builtin_fputs): Likewise.
7622 (gimple_fold_builtin_memory_chk): Likewise.
7623 (gimple_fold_builtin_stxcpy_chk): Likewise.
7624 (gimple_fold_builtin_stxncpy_chk): Likewise.
7625 (gimple_fold_builtin_snprintf_chk): Likewise.
7626 (gimple_fold_builtin_sprintf_chk): Likewise.
7627 (gimple_fold_builtin_strlen): New function.
7628 (gimple_fold_builtin_with_strlen): New function split out from
7629 gimple_fold_builtin.
7630 (gimple_fold_builtin): Change signature and handle
7631 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7632 here. Call gimple_fold_builtin_with_strlen.
7633 (gimple_fold_call): Adjust.
7635 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7637 * calls.c (precompute_arguments): Check
7638 promoted_for_signed_and_unsigned_p and set the promoted mode.
7639 (promoted_for_signed_and_unsigned_p): New function.
7640 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7641 and set the promoted mode.
7642 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7643 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7644 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7647 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7649 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7650 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7651 (expand_call): Likewise.
7652 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7653 to get promoted mode.
7654 * combine.c (record_promoted_value): Skip > 0 comparison with
7655 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7656 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7657 of SUBREG_PROMOTED_UNSIGNED_P.
7658 (convert_modes): Likewise.
7659 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7660 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7661 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7662 SUBREG_PROMOTED_UNSIGNED_SET.
7663 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7664 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7665 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7666 SUBREG_PROMOTED_SET.
7667 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7668 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7669 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7670 of SUBREG_PROMOTED_UNSIGNED_P.
7671 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7672 (SUBREG_PROMOTED_SET): New define.
7673 (SUBREG_PROMOTED_GET): Likewise.
7674 (SUBREG_PROMOTED_SIGN): Likewise.
7675 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7676 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7677 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7678 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7679 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7680 (nonzero_bits1): Skip > 0 comparison with the results as
7681 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7682 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7683 of !SUBREG_PROMOTED_UNSIGNED_P.
7684 * simplify-rtx.c (simplify_unary_operation_1): Use new
7685 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7686 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7687 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7688 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7690 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7692 * ipa-devirt.c: Include gimple-pretty-print.h
7693 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7695 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7696 (get_polymorphic_call_info): Fix return value
7697 (type_change_info): New sturcture based on ipa-prop
7699 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7700 based on ipa-prop variant.
7701 (extr_type_from_vtbl_ptr_store): New function
7702 based on ipa-prop variant.
7703 (record_known_type): New function.
7704 (check_stmt_for_type_change): New function.
7705 (get_dynamic_type): New function.
7706 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7707 * tree-ssa-pre.c: ipa-utils.h
7708 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7709 machinery; sanity check with ipa-prop devirtualization.
7710 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7713 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7715 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7716 * alias.c, cfgexpand.c, cgraphbuild.c,
7717 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7718 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7719 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7720 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7721 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7722 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7723 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7724 dse.c, except.c, gengtype.c, gimple-expr.c,
7725 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7726 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7727 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7728 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7729 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7730 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7732 * pointer-set.c: Remove file.
7733 * pointer-set.h: Remove file.
7735 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7737 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7738 * config/arm/types.md (f_sels, f_seld): Delete.
7740 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7742 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7743 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7744 (aarch64_movdi_<mode>high): Likewise.
7745 (aarch64_mov<mode>high_di): Likewise.
7746 (aarch64_movdi_<mode>low): Likewise.
7747 (aarch64_mov<mode>low_di): Likewise.
7748 (aarch64_movtilow_tilow): Likewise.
7749 Add comment explaining usage of fp,simd attributes and of
7750 TARGET_FLOAT and TARGET_SIMD.
7752 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7753 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7755 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7756 Use MOVN when one of the half-words is 0xffff.
7758 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7760 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7762 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7764 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7765 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7766 (rfs_str): String corresponding to RFS_* constants.
7767 (rank_for_schedule_stats_t): New typedef.
7768 (rank_for_schedule_stats): New static variable.
7769 (rfs_result): New static function.
7770 (rank_for_schedule): Track statistics for deciding heuristics.
7771 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7773 (ready_sort): Use them for debug printouts.
7774 (schedule_block): Init statistics state. Print statistics on
7775 rank_for_schedule decisions.
7777 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7779 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7781 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7783 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7786 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7788 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7789 function to not conflict.
7790 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7791 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7792 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7793 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7794 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7797 2014-08-07 Marek Polacek <polacek@redhat.com>
7799 * fold-const.c (fold_binary_loc): Add folding of
7800 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7802 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7804 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7805 instead of type size.
7806 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7808 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7810 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7811 (*thumb1_movqi_insn): Likewise.
7812 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7814 2014-08-07 Tom de Vries <tom@codesourcery.com>
7816 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7817 (glibc_2_11_or_earlier): Remove effective-target keywords.
7819 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7821 * config/arm/arm.c (bdesc_2arg): Fix typo.
7822 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7824 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7826 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7828 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7831 * haifa-sched.c (advance_one_cycle): Fix dump.
7832 (schedule_block): Don't advance cycle if we are already at the
7833 beginning of the cycle.
7835 2014-08-06 Martin Jambor <mjambor@suse.cz>
7838 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7840 2014-08-06 Richard Biener <rguenther@suse.de>
7843 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7845 (lto_input_tree): Pop SCCs here.
7847 2014-08-06 Richard Biener <rguenther@suse.de>
7849 PR tree-optimization/61320
7850 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7851 handle misaligned loads.
7853 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7855 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7856 (aarch64_expand_vec_perm_const): Check for dup before zip.
7858 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7860 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7861 CONST_INT_P instead of GET_CODE and compare.
7862 (aarch64_select_cc_mode): Likewise.
7863 (aarch64_print_operand): Likewise.
7864 (aarch64_rtx_costs): Likewise.
7865 (aarch64_simd_valid_immediate): Likewise.
7866 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7867 (aarch64_simd_emit_pair_result_insn): Likewise.
7869 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7871 * gdbhooks.py (find_gcc_source_dir): New helper function.
7872 (class PassNames): New class, locating and parsing passes.def.
7873 (class BreakOnPass): New command "break-on-pass".
7875 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7877 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7880 2014-08-05 Richard Biener <rguenther@suse.de>
7882 PR rtl-optimization/61672
7883 * emit-rtl.h (mem_attrs_eq_p): Declare.
7884 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7885 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7886 * cfgcleanup.c (merge_memattrs): Likewise.
7889 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7891 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7892 rather than singleton vectors.
7893 (vqdmlsls_lane_s32): Likewise.
7895 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7897 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7898 Use VSDQ_HSI mode iterator.
7899 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7900 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7901 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7902 Use BUILTIN_VDQHS macro.
7903 (sqrdmulh_laneq): Likewise.
7904 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7905 (vqdmlals_laneq_s32): Likewise.
7906 (vqdmlslh_laneq_s16): Likewise.
7907 (vqdmlsls_laneq_s32): Likewise.
7908 (vqdmulhh_laneq_s16): Likewise.
7909 (vqdmulhs_laneq_s32): Likewise.
7910 (vqrdmulhh_laneq_s16): Likewise.
7911 (vqrdmulhs_laneq_s32): Likewise.
7913 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7915 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7916 (vmuld_laneq_f64): Likewise.
7917 (vmuls_laneq_f32): Likewise.
7918 (vmul_n_f64): Likewise.
7919 (vmuld_lane_f64): Reimplement in C.
7920 (vmuls_lane_f32): Likewise.
7922 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7924 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7926 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7928 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7930 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7931 (rbitsi2): Likewise.
7932 (*arm_rev): Set predicable and predicable_short_it attributes.
7934 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7936 * convert.c (convert_to_integer): Guard transformation to lrint by
7939 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7941 * config/aarch64/aarch64-builtins.c
7942 (aarch64_simd_builtin_type_mode): Delete.
7943 (v8qi_UP): Remap to V8QImode.
7944 (v4hi_UP): Remap to V4HImode.
7945 (v2si_UP): Remap to V2SImode.
7946 (v2sf_UP): Remap to V2SFmode.
7947 (v1df_UP): Remap to V1DFmode.
7948 (di_UP): Remap to DImode.
7949 (df_UP): Remap to DFmode.
7950 (v16qi_UP):V16QImode.
7951 (v8hi_UP): Remap to V8HImode.
7952 (v4si_UP): Remap to V4SImode.
7953 (v4sf_UP): Remap to V4SFmode.
7954 (v2di_UP): Remap to V2DImode.
7955 (v2df_UP): Remap to V2DFmode.
7956 (ti_UP): Remap to TImode.
7957 (ei_UP): Remap to EImode.
7958 (oi_UP): Remap to OImode.
7959 (ci_UP): Map to CImode.
7960 (xi_UP): Remap to XImode.
7961 (si_UP): Remap to SImode.
7962 (sf_UP): Remap to SFmode.
7963 (hi_UP): Remap to HImode.
7964 (qi_UP): Remap to QImode.
7965 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7966 (VAR1): Build builtin name.
7967 (aarch64_init_simd_builtins): Remove dead code.
7969 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7971 * graphite-isl-ast-to-gimple.c:
7972 (set_options): New function.
7973 (scop_to_isl_ast): Add calling of set_options.
7975 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7977 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7978 (analyze_iv_to_split_insn): Don't initialize them.
7979 (get_ivts_expr): Removed.
7980 (allocate_basic_variable, insert_base_initialization): Use
7981 SET_SRC instead of *get_ivts_expr.
7982 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7984 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7986 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7987 (translate_isl_ast_for_loop): Add checking of the
7988 flag_loop_parallelize_all.
7989 (ast_build_before_for): New function.
7990 (scop_to_isl_ast): Add checking of the
7991 flag_loop_parallelize_all.
7992 * graphite-dependences.c: Move the defenition of the
7993 scop_get_dependences from graphite-optimize-isl.c to this file.
7994 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7995 (carries_deps): Add checking of the x's value.
7996 * graphite-optimize-isl.c: Move the defenition of the
7997 scop_get_dependences to graphite-dependences.c.
7998 * graphite-poly.h: Add declarations of scop_get_dependences
8001 2014-08-04 Rohit <rohitarulraj@freescale.com>
8004 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8006 (alt_reg_names): Likewise.
8007 (rs6000_dwarf_register_span): For SPE high registers, replace
8008 dwarf register numbers with GCC hard register numbers.
8009 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8010 (rs6000_dbx_register_number): For SPE high registers, return dwarf
8011 register number for the corresponding GCC hard register number.
8012 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8013 newly added GCC hard register numbers for SPE high registers.
8014 (DWARF_FRAME_REGISTERS): Likewise.
8015 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8016 (DWARF_FRAME_REGNUM): Likewise.
8017 (FIXED_REGISTERS): Likewise.
8018 (CALL_USED_REGISTERS): Likewise.
8019 (CALL_REALLY_USED_REGISTERS): Likewise.
8020 (REG_ALLOC_ORDER): Likewise.
8021 (enum reg_class): Likewise.
8022 (REG_CLASS_NAMES): Likewise.
8023 (REG_CLASS_CONTENTS): Likewise.
8024 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8026 2014-08-04 Richard Biener <rguenther@suse.de>
8028 * gimple-fold.h (gimple_fold_builtin): Remove.
8029 * gimple-fold.c (gimple_fold_builtin): Make static.
8030 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8031 fold_stmt, not gimple_fold_builtin.
8033 2014-08-04 Martin Liska <mliska@suse.cz>
8035 * cgraph.h (csi_end_p): Removed.
8036 (csi_next): Likewise.
8037 (csi_node): Likewise.
8038 (csi_start): Likewise.
8039 (cgraph_node_in_set_p): Likewise.
8040 (cgraph_node_set_size): Likewise.
8041 (vsi_end_p): Likewise.
8042 (vsi_next): Likewise.
8043 (vsi_node): Likewise.
8044 (vsi_start): Likewise.
8045 (varpool_node_set_size): Likewise.
8046 (cgraph_node_set_nonempty_p): Likewise.
8047 (varpool_node_set_nonempty_p): Likewise.
8048 * cgraphunit.c (cgraph_process_new_functions): vec replaces
8050 * ipa-inline-transform.c: Likewise.
8051 * ipa-utils.c (cgraph_node_set_new): Removed.
8052 (cgraph_node_set_add): Likewise.
8053 (cgraph_node_set_remove): Likewise.
8054 (cgraph_node_set_find): Likewise.
8055 (dump_cgraph_node_set): Likewise.
8056 (debug_cgraph_node_set): Likewise.
8057 (free_cgraph_node_set): Likewise.
8058 (varpool_node_set_new): Likewise.
8059 (varpool_node_set_add): Likewise.
8060 (varpool_node_set_remove): Likewise.
8061 (varpool_node_set_find): Likewise.
8062 (dump_varpool_node_set): Likewise.
8063 (free_varpool_node_set): Likewise.
8064 (debug_varpool_node_set): Likewise.
8065 * tree-emutls.c (struct tls_var_data):
8066 (emutls_index): Removed.
8067 (emutls_decl): Likewise.
8068 (gen_emutls_addr): Function implementation uses newly added
8069 hash_map<varpool_node *, tls_var_data>.
8070 (clear_access_vars): Likewise.
8071 (create_emultls_var): Likewise.
8072 (ipa_lower_emutls): Likewise.
8073 (reset_access): New function.
8075 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8077 * config/i386/i386.c (ix86_option_override_internal): Add
8078 PTA_RDRND and PTA_MOVBE for bdver4.
8080 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8081 James Greenhalgh <james.greenhalgh@arm.com>
8083 * doc/md.texi (clrsb): Document.
8084 (clz): Change reference to x into operand 1.
8086 (popcount): Likewise.
8088 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8091 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
8092 move to subtarget in serial version if result is ignored.
8094 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8095 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8097 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
8098 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8099 (sched_analyze_insn): Update use of try_group_insn to
8100 sched_macro_fuse_insns.
8101 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8102 arguments that are not conditional jumps.
8104 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8106 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8107 family information. Handle BTVER2 cpu with cpuid family value.
8109 2014-08-04 Tom de Vries <tom@codesourcery.com>
8111 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8112 (glibc_2_11_or_earlier): Document effective-target keywords.
8114 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8116 * ipa-devirt.c (odr_type_warn_count): Add type.
8117 (possible_polymorphic_call_targets): Set it.
8118 (ipa_devirt): Use it.
8120 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8122 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8124 * ipa-devirt.c: Include hash-map.h
8125 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8126 (clear_speculation): Break out of ...
8127 (get_class_context): ... here; speed up handling obviously useless
8129 (odr_type_warn_count, decl_warn_count): New structures.
8130 (final_warning_record): New structure.
8131 (final_warning_records): New static variable.
8132 (possible_polymorphic_call_targets): Cleanup handling of
8133 speculative info; do not build speculation when user do not care;
8134 record info about warnings when asked for.
8135 (add_decl_warning): New function.
8136 (type_warning_cmp): New function.
8137 (decl_warning_cmp): New function.
8138 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8139 (gate): Enable pass when warnings are requested.
8140 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8143 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8145 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8147 (hash_map::remove): New method.
8148 (hash_map::traverse): New method.
8149 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8150 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8151 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8152 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8153 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8154 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8157 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8159 * hash-set.h: new File.
8160 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8161 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8162 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8163 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8164 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8165 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8166 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8167 varpool.c: Use hash_set instead of pointer_set.
8169 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8171 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8173 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8175 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8176 for frame access when strict_p is false.
8178 2014-08-01 Renlin Li <renlin.li@arm.com>
8179 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8181 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8182 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8183 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8185 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8187 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8188 aarch64_mem_pair_offset.
8190 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8192 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8194 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8195 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8197 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8199 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8201 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8204 * cgraphunit.c (analyze_functions): Use get_create rather than get
8205 for decls which are clones of abstract functions.
8207 2014-08-01 Martin Liska <mliska@suse.cz>
8209 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8210 * ipa-prop.h (count_formal_params): Global function created from static.
8211 * ipa-prop.c (count_formal_params): Likewise.
8212 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8213 profiles for semantically equivalent functions.
8214 * passes.c (do_per_function): If we load body of a function
8215 during WPA, this condition should behave same.
8216 * varpool.c (ctor_for_folding): More tolerant assert for variable
8217 aliases created during WPA.
8219 2014-08-01 Martin Liska <mliska@suse.cz>
8221 * doc/invoke.texi (Options That Control Optimization): Documentation
8222 for -foptimize-strlen introduced. Optimization levels default options
8225 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8227 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8228 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8229 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8231 * stor-layout.h (min_align_of_type): New prototype.
8232 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8233 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8235 * ubsan.c: Include builtins.h.
8236 (ubsan_expand_bounds_ifn): Change return type to bool,
8238 (ubsan_expand_null_ifn): Change return type to bool, change
8239 argument to gimple_stmt_iterator *. Handle both null and alignment
8240 sanitization, take type from ckind argument's type rather than
8242 (instrument_member_call): Removed.
8243 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8244 Handle both null and alignment sanitization, don't say whole
8245 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8246 call instead of 2 argument.
8247 (instrument_null): Adjust instrument_mem_ref caller. Don't
8248 instrument calls here.
8249 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8251 * stor-layout.c (min_align_of_type): New function.
8252 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8253 Or it into SANITIZE_UNDEFINED.
8254 * doc/invoke.texi (-fsanitize=alignment): Document.
8256 2014-07-31 Andi Kleen <ak@linux.intel.com>
8258 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8260 2014-07-31 Andi Kleen <ak@linux.intel.com>
8262 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8264 (vn_reference_compute_hash): Dito.
8265 (vn_nary_op_compute_hash): Dito.
8266 (vn_phi_compute_hash): Dito.
8267 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8269 2014-07-31 Andi Kleen <ak@linux.intel.com>
8271 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8272 Rename to inchash:add_expr_commutative. Convert to inchash.
8273 (iterative_hash_hashable_expr): Rename to
8274 inchash:add_hashable_expr. Convert to inchash.
8275 (avail_expr_hash): Dito.
8277 2014-07-31 Andi Kleen <ak@linux.intel.com>
8279 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8282 2014-07-31 Andi Kleen <ak@linux.intel.com>
8284 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8286 2014-07-31 Andi Kleen <ak@linux.intel.com>
8288 * Makefile.in (OBJS): Add rtlhash.o
8289 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8290 (loc_checksum): Dito.
8291 (loc_checksum_ordered): Dito.
8292 (hash_loc_operands): Dito.
8294 (hash_loc_list): Dito.
8295 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8296 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8297 * rtlhash.c: New file.
8298 * rtlhash.h: New file.
8300 2014-07-31 Andi Kleen <ak@linux.intel.com>
8302 * inchash.h (inchash): Change inchash class to namespace.
8303 (class hash): ... Rename from inchash.
8304 (add_object): Move from macro to class template.
8305 * lto-streamer-out.c (hash_tree): Change inchash
8307 * tree.c (build_type_attribute_qual_variant): Dito.
8308 (type_hash_list): Dito.
8309 (attribute_hash_list): Dito.
8310 (iterative_hstate_expr): Rename to inchash::add_expr
8311 (build_range_type_1): Change inchash to inchash::hash
8312 and use hash::add_expr.
8313 (build_array_type_1): Dito.
8314 (build_function_type): Dito
8315 (build_method_type_directly): Dito.
8316 (build_offset_type): Dito.
8317 (build_complex_type): Dito.
8318 (make_vector_type): Dito.
8319 * tree.h (iterative_hash_expr): Dito.
8321 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8323 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8325 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8327 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8328 correct alphabetical position.
8329 (vpaddd_f64): Rewrite using builtins.
8330 (vpaddd_s64): Move to correct alphabetical position.
8333 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8336 * config/sh/sh.c (sh_legitimate_address_p,
8337 sh_legitimize_reload_address): Handle reg+reg address modes when
8338 ALLOW_INDEXED_ADDRESS is false.
8339 * config/sh/predicates.md (general_movsrc_operand,
8340 general_movdst_operand): Likewise.
8342 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8344 * config/aarch64/aarch64-builtins.c
8345 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8348 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8350 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8351 the generated mask based on BYTES_BIG_ENDIAN.
8352 (aarch64_simd_check_vect_par_cnst_half): New.
8353 * config/aarch64/aarch64-protos.h
8354 (aarch64_simd_check_vect_par_cnst_half): New.
8355 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8356 the check out to aarch64_simd_check_vect_par_cnst_half.
8357 (vect_par_cnst_lo_half): Likewise.
8358 * config/aarch64/aarch64-simd.md
8359 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8360 (move_hi_quad_<mode>): Always generate a low mask.
8362 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8364 * doc/invoke.texi (AVR Options): Add documentation about
8365 __AVR_DEVICE_NAME__ built-in macro.
8367 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8370 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8371 constraints are satisfied.
8372 (<shift>di3_neon): Likewise.
8374 2014-07-31 Richard Biener <rguenther@suse.de>
8376 PR tree-optimization/61964
8377 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8378 by structural equality.
8380 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8382 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8383 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8384 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8386 * gcc.c (sanitize_spec_function): Support new option.
8387 (SANITIZER_SPEC): Remove now redundant check.
8388 * opts.c (common_handle_option): Support new option.
8389 (finish_options): Check for incompatibilities.
8390 * toplev.c (process_options): Split userspace-specific checks.
8392 2014-07-31 Richard Biener <rguenther@suse.de>
8394 * lto-streamer.h (struct output_block): Remove global.
8395 (struct data_in): Remove labels, num_named_labels and
8397 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8398 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8400 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8403 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8404 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8405 (isolate_path): New argument to avoid inserting a trap.
8406 (find_implicit_erroneous_behaviour): Handle returning the address
8407 of a local variable.
8408 (find_explicit_erroneous_behaviour): Likewise.
8410 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8413 * toplev.c (init_random_seed): Move piece of code never called to
8415 (set_random_seed): see above.
8417 2014-07-31 Tom de Vries <tom@codesourcery.com>
8419 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8421 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8423 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8424 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8426 2014-07-31 Richard Biener <rguenther@suse.de>
8428 * data-streamer.h (streamer_write_data_stream): Declare here,
8430 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8431 * lto-cgraph.c (lto_output_node): Adjust.
8432 (lto_output_varpool_node): Likewise.
8433 * data-streamer-out.c (streamer_string_index): Likewise.
8434 (streamer_write_data_stream, lto_append_block): Move from ...
8435 * lto-section-out.c (lto_output_data_stream,
8436 lto_append_block): ... here.
8438 2014-07-30 Mike Stump <mikestump@comcast.net>
8440 * configure.ac: Also check for popen.
8441 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8442 * configure: Regenerate.
8443 * config.in: Regenerate.
8445 2014-07-30 Martin Jambor <mjambor@suse.cz>
8447 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8448 parameter to gimple.
8450 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8452 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8453 address as second parameter to __tpf_eh_return routine.
8455 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8457 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8460 2014-07-30 Tom Tromey <tromey@redhat.com>
8463 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8464 * doc/extend.texi (Type Attributes): Document designated_init
8467 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8469 * graphite-isl-ast-to-gimple.c:
8470 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8471 (gcc_expression_from_isl_expression): Pass type to
8472 gcc_expression_from_isl_ast_expr_id.
8474 2014-07-30 Richard Biener <rguenther@suse.de>
8476 * lto-streamer.h (lto_write_data): New function.
8477 * langhooks.c (lhd_append_data): Do not free block.
8478 * lto-section-out.c (lto_write_data): New function writing
8479 raw data to the current section.
8480 (lto_write_stream): Adjust for langhook semantic change.
8481 (lto_destroy_simple_output_block): Write header directly.
8482 * lto-opts.c (lto_write_options): Write options directly.
8483 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8484 (lto_output_toplevel_asms): Likewise.
8485 (copy_function_or_variable): Copy data directly.
8486 (write_global_references): Output index table directly.
8487 (lto_output_decl_state_refs): Likewise.
8488 (write_symbol): Write data directly.
8489 (produce_symtab): Adjust.
8490 (produce_asm_for_decls): Output header and refs directly.
8492 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8494 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8495 to speculative_targets
8496 (get_class_context): Fix handling of contextes without outer type;
8497 avoid matching non-polymorphic types in LTO.
8498 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8499 parameter to speculative_targetsp; handle speculation.
8500 (dump_possible_polymorphic_call_targets): Update dumping.
8502 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8504 * common.opt (Wodr): Enable by default.
8506 2014-07-29 Olivier Hainque <hainque@adacore.com>
8508 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8510 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8513 * gengtype.c (strtoken): New function.
8514 (create_user_defined_type): Replace strtok with strtoken.
8516 2014-07-29 Nathan Sidwell <nathan@acm.org>
8518 * gcov-io.c (gcov_var): Make hidden.
8519 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8520 (gcov_do_dump): Declare.
8521 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8523 2014-07-29 Martin Jambor <mjambor@suse.cz>
8525 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8526 parameter to gimple.
8527 (sra_modify_assign): Likewise.
8529 2014-07-29 Richard Biener <rguenther@suse.de>
8532 * expr.c (expand_expr_real_2): Revert last change.
8534 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8536 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8537 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8538 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8540 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8541 (contains_type_p): Forward declare.
8542 (polymorphic_call_target_hasher::hash): Hash speculative info.
8543 (polymorphic_call_target_hasher::equal): Compare speculative info.
8544 (get_class_context): Handle speuclation.
8545 (contains_type_p): Update.
8546 (get_polymorphic_call_info_for_decl): Update.
8547 (walk_ssa_copies): Break out from ...
8548 (get_polymorphic_call_info): ... here; set speculative context
8550 * ipa-prop.c (ipa_write_indirect_edge_info,
8551 ipa_read_indirect_edge_info): Stream speculative context.
8552 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8553 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8554 SPECULATIVE_MAYBE_DERIVED_TYPE).
8555 (possible_polymorphic_call_targets overriders): Update.
8556 (dump_possible_polymorphic_call_targets overriders): Update.
8557 (dump_possible_polymorphic_call_target_p overriders): Update.
8559 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8561 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8562 ipa-devirt path; fix thinko there.
8564 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8566 * config/i386/i386.c (ix86_return_in_memory): Replace one
8567 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8569 2014-07-28 Marek Polacek <polacek@redhat.com>
8571 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8573 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8575 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8576 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8577 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8578 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8579 (USE_LD_AS_NEEDED): Likewise.
8580 (ASM_APP_ON): Likewise.
8581 (ASM_APP_OFF): Likewise.
8582 (TARGET_POSIX_IO): Likewise.
8583 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8584 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8585 (USE_LD_AS_NEEDED): Likewise.
8586 (ASM_APP_ON): Likewise.
8587 (ASM_APP_OFF): Likewise.
8588 (TARGET_POSIX_IO): Likewise.
8590 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8593 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8594 operators other than the equality operators.
8596 2014-07-28 Richard Biener <rguenther@suse.de>
8599 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8600 sure to register SImode ones, not only >= word_mode ones.
8601 * expr.c (expand_expr_real_2): When expanding -ftrapv
8602 binops do not use OPTAB_LIB_WIDEN.
8604 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8607 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8608 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8609 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8610 inserting them in the insn stream.
8612 2014-07-28 Marek Polacek <polacek@redhat.com>
8615 * common.opt (Wodr): Add Var.
8617 2014-07-28 Richard Biener <rguenther@suse.de>
8619 PR tree-optimization/61921
8620 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8621 if there is a varpool node before dereferencing it.
8623 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8625 * graphite-sese-to-poly.c:
8626 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8627 id of the pbb), which contains pointer to the pbb1.
8629 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8631 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8633 * graphite-isl-ast-to-gimple.c:
8634 (graphite_create_new_guard): New function.
8635 (translate_isl_ast_node_if): New function.
8636 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8638 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8640 2014-07-27 Anthony Green <green@moxielogic.com>
8642 * config.gcc: Add moxie-*-moxiebox* configuration.
8643 * config/moxie/moxiebox.h: New file.
8645 2014-07-26 Andrew Pinski <apinski@cavium.com>
8647 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8648 from the read only register.
8650 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8652 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8653 as the allocation class if it isn't likely to be spilled.
8655 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8657 * rtl.h (tls_referenced_p): Declare.
8658 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8659 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8660 (mips_cannot_force_const_mem): Use tls_referenced_p.
8661 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8662 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8663 instead of pa_tls_referenced_p.
8664 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8665 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8666 (pa_legitimate_constant_p): Likewise.
8667 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8668 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8669 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8670 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8671 rs6000_tls_referenced_p.
8672 (rs6000_tls_symbol_ref_1): Delete.
8674 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8677 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8678 Optimize inverse of a VEC_CONCAT.
8680 2014-07-25 Xinliang David Li <davidxl@google.com>
8682 * params.def: New parameter.
8683 * coverage.c (get_coverage_counts): Check new flag.
8684 (coverage_compute_profile_id): Check new flag.
8685 (coverage_begin_function): Check new flag.
8686 (coverage_end_function): Check new flag.
8687 * value-prof.c (coverage_node_map_initialized_p): New function.
8688 (init_node_map): Populate map with all functions.
8689 * doc/invoke.texi: Document new parameter.
8691 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8692 Richard Biener <rguenther@suse.de>
8694 * lto-streamer-out.c (struct sccs): Turn to ...
8695 (class DFS): ... this one; refactor the DFS walk so it can
8696 be re-done on per-SCC basis.
8697 (DFS::DFS): New constructor.
8698 (DFS::~DFS): New destructor.
8699 (hash_tree): Add new MAP argument holding in-SCC hash values;
8700 remove POINTER_TYPE hashing hack.
8701 (scc_entry_compare): Rename to ...
8702 (DFS::scc_entry_compare): ... this one.
8703 (hash_scc): Rename to ...
8704 (DFS::hash_scc): ... this one; pass output_block instead
8705 of streamer_cache; work harder to get unique and stable SCC
8707 (DFS_write_tree): Rename to ...
8708 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8709 (lto_output_tree): Update.
8711 2014-07-25 Andi Kleen <ak@linux.intel.com>
8713 * lto-streamer-out.c (hash_tree): Convert to inchash.
8715 2014-07-25 Andi Kleen <ak@linux.intel.com>
8717 * tree.c (build_type_attribute_qual_variant): Use inchash.
8718 (type_hash_list): Dito.
8719 (attribute_hash_list): Dito
8720 (iterative_hstate_expr): Dito.
8721 (iterative_hash_expr): Dito.
8722 (build_range_type_1): Dito.
8723 (build_array_type_1): Dito.
8724 (build_function_type): Dito.
8725 (build_method_type_directly): Dito.
8726 (build_offset_type): Dito.
8727 (build_complex_type): Dito.
8728 (make_vector_type): Dito.
8729 * tree.h (iterative_hash_expr): Add compat wrapper.
8730 (iterative_hstate_expr): Add.
8732 2014-07-25 Andi Kleen <ak@linux.intel.com>
8734 * Makefile.in (OBJS): Add inchash.o.
8735 (PLUGIN_HEADERS): Add inchash.h.
8736 * ipa-devirt.c: Include inchash.h.
8737 * lto-streamer-out.c: Dito.
8738 * tree-ssa-dom.c: Dito.
8739 * tree-ssa-pre.c: Dito.
8740 * tree-ssa-sccvn.c: Dito.
8741 * tree-ssa-tail-merge.c: Dito.
8743 * tree.c (iterative_hash_hashval_t): Move to ...
8744 (iterative_hash_host_wide_int): Move to ...
8745 * inchash.c: Here. New file.
8746 * tree.h (iterative_hash_hashval_t): Move to ...
8747 (iterative_hash_host_wide_int): Move to ...
8748 * inchash.h: Here. New file.
8750 2014-07-25 Richard Biener <rguenther@suse.de>
8754 * fold-const.c (native_encode_int): Add and handle offset
8755 parameter to do partial encodings of expr.
8756 (native_encode_fixed): Likewise.
8757 (native_encode_real): Likewise.
8758 (native_encode_complex): Likewise.
8759 (native_encode_vector): Likewise.
8760 (native_encode_string): Likewise.
8761 (native_encode_expr): Likewise.
8762 * fold-const.c (native_encode_expr): Add offset parameter
8764 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8765 (fold_ctor_reference): Handle all reads from tcc_constant
8768 2014-07-25 Richard Biener <rguenther@suse.de>
8770 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8773 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8775 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8777 2014-07-24 Kyle McMartin <kyle@redhat.com>
8779 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8781 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8783 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8785 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8787 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8788 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8789 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8791 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8793 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8794 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8795 aggregate types. Instead, *all* aggregate types, except for single-
8796 element or homogeneous float/vector aggregates, are quadword-aligned
8797 if required by their type alignment. Issue -Wpsabi note when a type
8798 is now treated differently than before.
8800 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8802 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8803 does not fit fully into floating-point registers, and there is still
8804 space in the register parameter area, use GPRs to pass those parts
8805 of the argument. Issue -Wpsabi note if any parameter is now treated
8806 differently than before.
8807 (rs6000_arg_partial_bytes): Update.
8809 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8811 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8813 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8815 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8816 * toplev.c (initialize_rtl): Don't use it. Move previously
8817 "language-dependent" calls to...
8818 (backend_init): ...here.
8819 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8820 Assert that RTL initialization hasn't happend yet.
8822 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8824 PR rtl-optimization/61629
8825 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8826 they have already been initialized.
8828 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8831 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8832 DECL_INCOMING_RTL and entry_parm.
8833 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8834 * calls.c (load_register_parameters): Likewise argument values.
8835 (emit_library_call_value_1, store_one_arg): Likewise argument
8837 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8839 * explow.c (validize_mem): Modify the argument in-place.
8841 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8843 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8844 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8846 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8848 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8849 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8851 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8853 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8854 (aarch64_save_callee_saves): New parameter "skip_wb".
8855 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8857 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8859 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8861 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8863 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8865 * graphite-isl-ast-to-gimple.c:
8866 (graphite_create_new_loop): Add calling of isl_id_free to properly
8867 decrement reference counts.
8869 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8871 2014-07-24 Martin Liska <mliska@suse.cz>
8872 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8874 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8875 (rs6000_code_end): Likewise.
8877 2014-07-24 Martin Liska <mliska@suse.cz>
8879 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8880 symtab_node funtion used.
8881 (rs6000_xcoff_declare_object_name): Likewise.
8883 2014-07-24 Martin Liska <mliska@suse.cz>
8885 * cgraphunit.c (compile): Correct function used.
8887 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8889 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8892 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8895 * varasm.c (bss_initializer_p): Handle offlined ctors.
8896 (align_variable, get_variable_align): Likewise.
8897 (make_decl_one_only): Likewise.
8898 (default_binds_local_p_1): Likewise.
8899 (decl_binds_to_current_def_p): Likewise.
8900 (get_variable_section): Get constructor if it is offlined.
8901 (assemble_variable_contents): Sanity check that the caller
8902 streamed in the ctor in LTO.
8904 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8906 * graphite-isl-ast-to-gimple.c:
8907 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8908 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8909 isl_ast_op_pdiv_r to the different case.
8911 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8913 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8916 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8917 when flag_errno_math is on.
8919 2014-07-24 Martin Liska <mliska@suse.cz>
8921 * cgraph.h (varpool_node):
8922 (availability get_availability (void)):
8923 created from cgraph_variable_initializer_availability
8924 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8925 created from: cgraph_variable_initializer_availability
8926 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8927 (void finalize_named_section_flags (void)):
8928 created from varpool_finalize_named_section_flags
8929 (bool assemble_decl (void)): created from varpool_assemble_decl
8930 (void analyze (void)): created from varpool_analyze_node
8931 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8932 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8933 (void remove_initializer (void)): created from varpool_remove_initializer
8934 (tree get_constructor (void)): created from varpool_get_constructor
8935 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8936 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8937 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8938 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8939 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8940 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8941 (static bool output_variables (void)): created from varpool_output_variables
8942 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8943 created from varpool_extra_name_alias
8944 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8945 (static void dump_varpool (FILE *f)): created from dump_varpool
8946 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8947 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8948 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8949 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8950 (void assemble_aliases (void)): created from assemble_aliases
8952 2014-07-24 Martin Liska <mliska@suse.cz>
8954 * cgraph.h (symtab_node):
8955 (void register_symbol (void)): created from symtab_register_node
8956 (void remove (void)): created from symtab_remove_node
8957 (void dump (FILE *f)): created from dump_symtab_node
8958 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8959 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8960 (struct ipa_ref *add_reference (symtab_node *referred_node,
8961 enum ipa_ref_use use_type)): created from add_reference
8962 (struct ipa_ref *add_reference (symtab_node *referred_node,
8963 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8964 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8965 gimple stmt)): created from maybe_add_reference
8966 (bool semantically_equivalent_p (symtab_node *target)): created from
8967 symtab_semantically_equivalent_p
8968 (void remove_from_same_comdat_group (void)): created from
8969 remove_from_same_comdat_group
8970 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8971 symtab_add_to_same_comdat_group
8972 (void dissolve_same_comdat_group_list (void)): created from
8973 symtab_dissolve_same_comdat_group_list
8974 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8975 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8976 created from symtab_alias_ultimate_target
8977 (inline symtab_node *next_defined_symbol (void)): created from
8978 symtab_next_defined_symbol
8979 (bool resolve_alias (symtab_node *target)): created from
8980 symtab_resolve_alias
8981 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8982 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8983 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8984 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8985 (void set_section (const char *section)): created from set_section_1
8986 (enum availability get_availability (void)): created from symtab_node_availability
8987 (void make_decl_local (void)): created from symtab_make_decl_local
8988 (bool real_symbol_p (void)): created from symtab_read_node
8989 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8990 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8991 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8992 symtab_in_same_comdat_p;
8993 (bool address_taken_from_non_vtable_p (void)): created from
8994 address_taken_from_non_vtable_p
8995 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8996 (static void dump_table (FILE *)): created from dump_symtab
8997 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8998 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8999 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9000 symtab_used_from_object_file_p
9001 (void dump_base (FILE *)): created from dump_symtab_base
9002 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9003 (void unregister (void)): created from symtab_unregister_node
9004 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9005 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9006 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9007 symtab_nonoverwritable_alias_1
9008 * cgraph.h (cgraph_node):
9009 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9010 created from cgraph_remove_node_and_inline_clones
9011 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9012 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9013 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9014 (cgraph_node *function_symbol (enum availability *avail = NULL)):
9015 created from cgraph_function_node
9016 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9017 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9018 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9019 created from cgraph_create_clone
9020 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9021 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9022 created from cgraph_create_virtual_clone
9023 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9024 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9025 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9026 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9027 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9028 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9029 created from cgraph_function_version_info
9030 (struct cgraph_function_version_info *insert_new_function_version (void)):
9031 created from insert_new_cgraph_node_version
9032 (struct cgraph_function_version_info *function_version (void)): created from
9033 get_cgraph_node_version
9034 (void analyze (void)): created from analyze_function
9035 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9036 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9037 tree real_alias) cgraph_add_thunk
9038 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9039 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9040 created from cgraph_function_or_thunk_node
9041 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9042 created from expand_thunk
9043 (void reset (void)): created from cgraph_reset_node
9044 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
9045 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
9046 (void remove (void)): created from cgraph_remove_node
9047 (void dump (FILE *f)): created from dump_cgraph_node
9048 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
9049 (bool get_body (void)): created from cgraph_get_body
9050 (void release_body (void)): created from cgraph_release_function_body
9051 (void unnest (void)): created from cgraph_unnest_node
9052 (void make_local (void)): created from cgraph_make_node_local
9053 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
9054 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
9055 gcov_type count, int freq)): created from cgraph_create_edge
9056 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
9057 gcov_type count, int freq)): created from cgraph_create_indirect_edge
9058 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
9059 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
9060 created from cgraph_create_edge_including_clones
9061 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9062 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9063 (void remove_callers (void)): created from cgraph_node_remove_callers
9064 (void remove_callees (void)): created from cgraph_node_remove_callees
9065 (enum availability get_availability (void)): created from cgraph_function_body_availability
9066 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9067 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9068 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9069 (void call_duplication_hooks (cgraph_node *node2)): created from
9070 cgraph_call_node_duplication_hooks
9071 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9072 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9073 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9074 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9075 (void call_function_insertion_hooks (void)):
9076 created from cgraph_call_function_insertion_hooks
9077 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
9078 (bool local_p (void)): created from cgraph_local_node
9079 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
9080 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
9081 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
9082 (inline bool only_called_directly_or_aliased_p (void)):
9083 created from cgraph_only_called_directly_or_aliased_p
9084 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
9085 created from cgraph_will_be_removed_from_program_if_no_direct_calls
9086 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
9087 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
9088 (bool can_remove_if_no_direct_calls_p (void)):
9089 created from cgraph_can_remove_if_no_direct_calls_p
9090 (inline bool has_gimple_body_p (void)):
9091 created from cgraph_function_with_gimple_body_p
9092 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
9093 (static void dump_cgraph (FILE *f)): created from dump_cgraph
9094 (static inline void debug_cgraph (void)): created from debug_cgraph
9095 (static void record_function_versions (tree decl1, tree decl2)):
9096 created from record_function_versions
9097 (static void delete_function_version (tree decl)):
9098 created from delete_function_version
9099 (static void add_new_function (tree fndecl, bool lowered)):
9100 created from cgraph_add_new_function
9101 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9102 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9103 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9104 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9105 (static cgraph_node *get_for_asmname (tree asmname)):
9106 created from cgraph_node_for_asm
9107 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9108 created from cgraph_same_body_alias
9109 (static bool used_from_object_file_p_worker (cgraph_node *node,
9110 void *): new function
9111 (static bool non_local_p (cgraph_node *node, void *)):
9112 created from cgraph_non_local_node_p_1
9113 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9114 created from verify_cgraph
9115 (static bool make_local (cgraph_node *node, void *)):
9116 created from cgraph_make_node_local
9117 (static cgraph_node *create_alias (tree alias, tree target)):
9118 created from cgraph_create_function_alias
9119 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9120 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9121 created from cgraph_create_edge_1
9122 * cgraph.h (varpool_node):
9123 (void remove (void)): created from varpool_remove_node
9124 (void dump (FILE *f)): created from dump_varpool_node
9126 2014-07-24 Richard Biener <rguenther@suse.de>
9129 * tree-ssa-structalias.c (create_variable_info_for_1):
9130 Use varpool_get_constructor.
9131 (create_variable_info_for): Likewise.
9133 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9135 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9136 subtract outgoing area size when restoring stack_pointer_rtx.
9138 2014-07-24 Nick Clifton <nickc@redhat.com>
9140 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9141 that operations are taking place in parallel.
9142 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9144 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9146 * omp-low.c (extract_omp_for_data): Add missing break statement.
9148 2014-07-24 Richard Biener <rguenther@suse.de>
9150 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9151 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9152 and adjust MOVE_RATIO query accordingly.
9153 (estimate_num_insns): Adjust callers.
9154 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9155 * ipa-cp.c (gather_context_independent_values,
9156 estimate_local_effects): Likewise.
9157 * ipa-split.c (consider_split): Likewise.
9159 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9161 * config/i386/driver-i386.c: Remove names of unused arguments and
9162 unnecessary unused attributes.
9163 * config/i386/host-mingw32.c: Likewise.
9164 * config/i386/i386.c: Likewise.
9165 * config/i386/winnt-stubs.c: Likewise.
9166 * config/i386/winnt.c: Likewise.
9168 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9170 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9171 (aarch64_gen_loadwb_pair): New helper function.
9172 (aarch64_expand_epilogue): Simplify code using new helper functions.
9173 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9175 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9177 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9178 (aarch64_gen_storewb_pair): New helper function.
9179 (aarch64_expand_prologue): Simplify code using new helper functions.
9180 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9182 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9184 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9185 Rename to aarch64_save_callee_saves, remove restore code.
9186 (aarch64_restore_callee_saves): New function.
9188 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9190 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9191 (aarch64_save_callee_saves): New function to handle reg save
9192 for both core and vectore regs.
9194 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9196 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9197 (aarch64_gen_store_pair): New helper function.
9198 (aarch64_save_or_restore_callee_save_registers)
9199 (aarch64_save_or_restore_fprs): Use new helper functions.
9201 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9203 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9204 (aarch64_save_or_restore_callee_save_registers)
9205 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9207 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9209 * config/aarch64/aarch64.c
9210 (aarch64_save_or_restore_callee_save_registers)
9211 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9213 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9215 * config/aarch64/aarch64.c
9216 (aarch64_save_or_restore_callee_save_registers)
9217 (aarch64_save_or_restore_fprs): Remove 'increment'.
9219 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9221 * config/aarch64/aarch64.c
9222 (aarch64_save_or_restore_callee_save_registers)
9223 (aarch64_save_or_restore_fprs): Use register offset in
9224 cfun->machine->frame.reg_offset.
9226 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9228 * config/aarch64/aarch64.c
9229 (aarch64_save_or_restore_callee_save_registers)
9230 (aarch64_save_or_restore_fprs): Remove base_rtx.
9232 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9234 * config/aarch64/aarch64.c
9235 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9236 to 'start_offset'. Remove local variable 'start_offset'.
9238 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9240 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9241 type to HOST_WIDE_INT.
9243 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9245 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9246 (aarch64_save_or_restore_fprs)
9247 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9249 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9251 * config/arm/t-rtems-eabi: Add
9252 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9253 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9254 mbig-endian/mthumb/march=armv7-r, and
9255 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9258 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9259 Chris Johns <chrisj@rtems.org>
9260 Joel Sherrill <joel.sherrill@oarcorp.com>
9262 * config.gcc: Add nios2-*-rtems*.
9263 * config/nios2/rtems.h: New file.
9264 * gcc/config/nios2/t-rtems: New file.
9266 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9269 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9270 constant numbers, not general constants.
9271 (rs6000_expand_vector_init): Ditto.
9273 2014-07-23 Nathan Sidwell <nathan@acm.org>
9275 * gcov-tool.c (gcov_list): Declare here.
9276 (set_gcov_list): Remove.
9277 (gcov_output_files): Set gcov_list directly.
9279 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9281 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9283 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9285 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9286 callee-saved registers are available for padding purpose
9287 and r3 is not mandatory, then prefer use those callee-saved
9290 2014-07-23 Richard Biener <rguenther@suse.de>
9292 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9293 * combine.c: Include statistics.h and params.h.
9294 (combine_instructions): Guard three and four insn combines
9295 with max-combine-insns value. Record statistics for combines
9297 * doc/invoke.texi (max-combine-insns): Document new param.
9299 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9301 * graphite-isl-ast-to-gimple.c:
9302 (translate_isl_ast_node_block): New function.
9303 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9305 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9306 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9308 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9310 * graphite-isl-ast-to-gimple.c:
9311 (get_max_schedule_dimensions): New function.
9312 (extend_schedule): Likewise.
9313 (generate_isl_schedule): Add calling of extend_schedule and
9314 get_max_schedule_dimensions.
9316 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9318 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9319 (case UNSPEC): Handle UNSPEC_RBIT.
9321 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9323 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9324 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9326 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9328 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9330 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9332 * graphite-isl-ast-to-gimple.c:
9333 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9335 (build_iv_mapping): New function.
9336 (translate_isl_ast_node_user): Likewise.
9337 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9339 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9340 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9341 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9343 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9346 * config/arm/arm.md (setmem): New pattern.
9347 * config/arm/arm-protos.h (struct tune_params): New fields.
9348 (arm_gen_setmem): New prototype.
9349 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9350 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9351 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9352 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9353 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9354 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9355 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9356 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9357 (arm_const_inline_cost): New function.
9358 (arm_block_set_max_insns): New function.
9359 (arm_block_set_non_vect_profit_p): New function.
9360 (arm_block_set_vect_profit_p): New function.
9361 (arm_block_set_unaligned_vect): New function.
9362 (arm_block_set_aligned_vect): New function.
9363 (arm_block_set_unaligned_non_vect): New function.
9364 (arm_block_set_aligned_non_vect): New function.
9365 (arm_block_set_vect, arm_gen_setmem): New functions.
9367 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9369 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9371 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9374 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9375 out of #ifdef __OPTIMIZE__.
9377 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9379 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9380 different trapping status if -fnon-call-exceptions is enabled.
9382 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9384 * expr.c (store_field): Handle VOIDmode for calls that return values
9385 in multiple locations.
9387 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9389 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9390 (altivec_vsldoi_<mode>): Likewise.
9392 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9394 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9395 to the number of characters in the line.
9397 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9399 * graphite-isl-ast-to-gimple.c: Add using of
9400 build_nonstandard_integer_type instead of int128_integer_type_node.
9402 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9404 * toplev.c (output_stack_usage): Adjust the location of the warning.
9406 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9408 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9409 (*membar_storeload): Disable for LEON3.
9411 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9413 PR rtl-optimization/61461
9414 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9416 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9419 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9420 Fix instruction constraint.
9421 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9423 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9425 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9427 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9429 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9430 GNU coding standards.
9431 (nds32_register_move_cost): Likewise.
9432 (nds32_memory_move_cost): Likewise.
9433 (nds32_address_cost): Likewise.
9435 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9437 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9439 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9441 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9442 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9443 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9444 (HAVE_sync_compare_and_swapqi): Define.
9445 (HAVE_sync_compare_and_swaphi): Likewise.
9446 (HAVE_sync_compare_and_swapsi): Likewise.
9448 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9450 * config/mips/p5600.md: Add missing cpu tests.
9452 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9454 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9455 (vmla_f64): Likewise.
9456 (vfms_f64): Likewise.
9457 (vmls_f64): Likewise.
9459 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9461 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9462 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9464 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9466 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9467 (vmlal_high_lane_s32): Likewise.
9468 (vmlal_high_lane_u16): Likewise.
9469 (vmlal_high_lane_u32): Likewise.
9470 (vmlsl_high_lane_s16): Likewise.
9471 (vmlsl_high_lane_s32): Likewise.
9472 (vmlsl_high_lane_u16): Likewise.
9473 (vmlsl_high_lane_u32): Likewise.
9475 2014-07-17 Terry Guo <terry.guo@arm.com>
9477 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9478 (alus_reg): Renamed to alus_sreg.
9479 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9480 from alu_reg to alu_sreg. Change type of dsp instructions from
9481 alu_reg to alu_dsp_reg.
9482 * config/arm/thumb1.md: Likewise.
9483 * config/arm/thumb2.md: Likewise.
9484 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9485 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9486 with alu_sreg and alus_sreg.
9487 * config/arm/arm1026ejs.md (alu_op): Likewise.
9488 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9489 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9490 * config/arm/fa526.md (526_alu_op): Likewise.
9491 * config/arm/fa606te.md (606te_alu_op): Likewise.
9492 * config/arm/fa626te.md (626te_alu_op): Likewise.
9493 * config/arm/fa726te.md (726te_alu_op): Likewise.
9494 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9495 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9496 alu_sreg, alu_dsp_reg and alus_sreg.
9497 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9498 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9499 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9500 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9501 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9502 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9503 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9504 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9505 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9506 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9507 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9508 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9509 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9510 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9511 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9512 alus_reg to alus_sreg.
9514 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9516 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9519 2014-07-17 Richard Biener <rguenther@suse.de>
9521 PR rtl-optimization/61801
9522 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9523 don't set reg_pending_barrier if it appears in a debug-insn.
9525 2014-07-16 DJ Delorie <dj@redhat.com>
9527 * config/rx/rx.c (rx_option_override): Fix alignment values.
9528 (rx_align_for_label): Likewise.
9530 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9533 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9534 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9535 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9537 (cris_print_index, cris_print_operand, cris_constant_index_p)
9538 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9539 (cris_address_cost): Ditto last CONSTANT_P.
9540 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9541 callers changed. Yield cris_offsettable_symbol for non-PIC
9542 constant symbolic expressions including labels. Yield cris_unspec
9544 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9545 target to pic_offset_table_rtx for calls that will likely go
9546 through PLT, const0_rtx when they can't. All callers changed.
9547 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9548 symbolic expressions to be PICified. Remove second, redundant,
9549 assert on can_create_pseudo_p returning non-zero. Use
9550 replace_equiv_address_nv, not replace_equiv_address, for final
9552 * config/cris/cris.md ("movsi"): Move variable t to pattern
9553 toplevel. Adjust assert for new cris_symbol_type member. Use
9554 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9555 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9557 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9558 ("call", "call_value"): Use second incoming operand as a marker
9559 for pic-offset-table-register being used.
9560 ("*expanded_call_non_v32", "*expanded_call_v32")
9561 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9562 second incoming operand to CALL, match cris_call_type_marker.
9563 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9564 ("*expanded_call_side"): Ditto. Fix typo in comment.
9565 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9567 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9568 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9569 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9570 users changed. Add members cris_offsettable_symbol and cris_unspec.
9571 (cris_symbol_type): Rename from cris_pic_symbol_type.
9572 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9574 * config/cris/cris-protos.h (cris_symbol_type_of,
9575 cris_expand_pic_call_address): Adjust prototypes.
9576 (cris_legitimate_constant_p): New prototype.
9578 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9579 an existing tmake_file. Don't add t-slibgcc and t-linux.
9581 2014-07-17 Jason Merrill <jason@redhat.com>
9584 * symtab.c (symtab_remove_from_same_comdat_group): Also
9585 set_comdat_group to NULL_TREE.
9586 (verify_symtab): Fix diagnostic.
9588 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9591 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9593 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9595 Support location tracking for built-in macro tokens
9596 * input.h (is_location_from_builtin_token): New function declaration.
9597 * input.c (is_location_from_builtin_token): New function definition.
9598 * toplev.c (general_init): Tell libcpp what the pre-defined
9599 spelling location for built-in tokens is.
9601 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9603 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9604 on the FUNCTION_DECL.
9606 2014-07-16 Richard Biener <rguenther@suse.de>
9609 * doc/extend.texi (always_inline): Clarify.
9611 2014-07-15 Eric Christopher <echristo@gmail.com>
9613 * doc/invoke.texi (Link Options): Document -z option.
9615 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9617 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9618 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9620 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9622 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9624 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9626 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9627 varpool_assemble_decl.
9628 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9631 2014-07-15 Michael Matz <matz@suse.de>
9633 PR rtl-optimization/61772
9634 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9636 2014-07-15 Richard Biener <rguenther@suse.de>
9638 * opts.c (default_options_table): Disable bit-ccp at -Og.
9640 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9642 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9644 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9646 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9647 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9648 call langhook for unknown declaration.
9649 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9650 * tree.h (DECL_ARGUMENTS): Update.
9651 * print-tree.c (print_node): Update.
9652 * tree-core.h (tree_decl_non_common): Remove arguments.
9653 (tree_function_decl): Add arguments.
9655 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9657 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9659 2014-07-14 Richard Biener <rguenther@suse.de>
9661 PR tree-optimization/61779
9662 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9663 simplifying a condition.
9665 2014-07-14 Richard Biener <rguenther@suse.de>
9667 * builtins.c (c_strlen): Make only_value == 2 really only
9668 affect warning generation.
9670 2014-07-14 Richard Biener <rguenther@suse.de>
9672 PR tree-optimization/61757
9673 PR tree-optimization/61783
9674 PR tree-optimization/61787
9675 * tree-ssa-dom.c (record_equality): Revert canonicalization
9676 change and add comment.
9677 (propagate_rhs_into_lhs): Revert previous fix, removing
9678 loop depth restriction again.
9680 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9682 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9683 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9684 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9685 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9686 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9687 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9688 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9690 2014-07-14 Richard Biener <rguenther@suse.de>
9692 * cgraph.h (decl_in_symtab_p): Make inline.
9694 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9697 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9700 * config/i386/i386.c (classify_argument): Don't merge classes above
9703 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9705 * cgraph.h (symtab_node): Add nonzero_address.
9706 (decl_in_symtab_p): Break out from ...
9707 (symtab_get_node): ... here.
9708 * fold-const.c: Include cgraph.h
9709 (tree_single_nonzero_warnv_p): Use symtab to determine
9710 if symbol is non-zero.
9711 * symtab.c (symtab_node::nonzero_address): New method.
9713 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9715 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9716 forgotten in previous commit.
9718 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9720 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9722 * ipa-devirt.c: Include stor-layout.h and intl.h
9723 (odr_subtypes_equivalent_p): New function.
9724 (warn_odr): New function.
9725 (warn_type_mismatch): New function.
9726 (odr_types_equivalent_p): New function.
9727 (add_type_duplicate): Use it.
9728 * common.opt (Wodr): New flag.
9729 * doc/invoke.texi (Wodr): Document new warning.
9731 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9733 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9734 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9735 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9736 (varpool_get_constructor): Push CTORS_IN timevar.
9737 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9739 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9741 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9742 Remove VOID_FTYPE_PUSHORT.
9743 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9744 Change code to USHORT_FTYPE_VOID.
9745 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9746 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9747 (ix86_atomic_assign_expand_fenv): Update for
9748 __builtin_ia32_fnstsw changes.
9749 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9750 (fnstsw): Change operand 0 to nonimmediate operand.
9752 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9754 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9755 (varpool_get_constructor): New function.
9756 (varpool_ctor_useable_for_folding_p): Break out from ...
9757 (ctor_for_folding): ... here; use varpool_get_constructor.
9758 (varpool_assemble_decl): Likewise.
9759 * lto-streamer.h (struct output_block): Turn cgraph_node
9761 (lto_input_variable_constructor): Declare.
9762 * ipa-visibility.c (function_and_variable_visibility): Use
9763 varpool_get_constructor.
9764 * cgraph.h (varpool_get_constructor): Declare.
9765 (varpool_ctor_useable_for_folding_p): New function.
9766 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9767 parameter; return error_mark_node for non-trivial constructors.
9768 (lto_write_tree_1, DFS_write_tree): Update use of
9769 get_symbol_initial_value.
9770 (output_function): Update initialization of symbol.
9771 (output_constructor): New function.
9772 (copy_function): Rename to ..
9773 (copy_function_or_variable): ... this one; handle vars too.
9774 (lto_output): Output variable sections.
9775 * lto-streamer-in.c (input_constructor): New function.
9776 (lto_read_body): Rename from ...
9777 (lto_read_body_or_constructor): ... this one; handle vars too.
9778 (lto_input_variable_constructor): New function.
9779 * ipa-prop.c (ipa_prop_write_jump_functions,
9780 ipa_prop_write_all_agg_replacement): Update.
9781 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9782 (output_cgraph_opt_summary): Set symbol to NULL.
9784 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9786 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9787 non-polymorphic types.
9788 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9789 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9790 of types is not polymorphic.
9792 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9794 * lra-constraints.c (remove_inheritance_pseudos): Process
9795 destination pseudo too.
9797 2014-07-11 Rong Xu <xur@google.com>
9799 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9802 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9804 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9805 * config/avr/avr-devices.c (AVR_MCU): Same.
9806 (avr_mcu_types): add text start value to end of device list.
9807 * config/avr/avr-mcus.def: Add text section start for all devices.
9808 (ata5782): Add new avr5 device.
9810 * config/avr/avr-tables.opt: Regenerate.
9811 * config/avr/avr.h: Add declaration for text section start handler.
9812 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9814 (LINK_SPEC): Include text section start handler to linker spec.
9815 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9816 pass -Ttext option to linker if the text section start for the device
9818 * config/avr/t-multilib: Regenerate.
9819 * doc/avr-mmcu.texi: Regenerate.
9821 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9823 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9824 * config/rs6000/aix52.h (LINK_SPEC): Same.
9825 * config/rs6000/aix53.h (LINK_SPEC): Same.
9826 * config/rs6000/aix61.h (LINK_SPEC): Same.
9827 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9829 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9831 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9832 (graphite_verify): New function.
9833 (ivs_params_clear): New function.
9834 (gcc_expression_from_isl_ast_expr_id): New function.
9835 (gcc_expression_from_isl_expr_int): New function.
9836 (binary_op_to_tree): New function.
9837 (ternary_op_to_tree): New function.
9838 (unary_op_to_tree): New function.
9839 (nary_op_to_tree): New function.
9840 (gcc_expression_from_isl_expr_op): New function.
9841 (gcc_expression_from_isl_expression): New function.
9842 (graphite_create_new_loop): New function.
9843 (translate_isl_ast_for_loop): New function.
9844 (get_upper_bound): New function.
9845 (graphite_create_new_loop_guard): New function.
9846 (translate_isl_ast_node_for): New function.
9847 (translate_isl_ast): New function.
9848 (add_parameters_to_ivs_params): New function.
9849 (scop_to_isl_ast): New parameter ip.
9850 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9852 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9854 * config/xtensa/predicates.md (call expander): Update for
9855 DECL_SECTION_NAME being string.
9857 2014-07-11 Richard Biener <rguenther@suse.de>
9860 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9861 can be implemented with a single load followed by a single store.
9862 (c_strlen): Only warn when only_value is not 2.
9864 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9866 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9868 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9871 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9872 (*movhi_bytes): Likewise.
9873 (*arm_movqi_insn): Likewise.
9875 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9878 * config/alpha/alpha.c: Include tree-pass.h, context.h
9880 (pass_data_handle_trap_shadows): New pass.
9881 (pass_handle_trap_shadows::gate): New pass gate function.
9882 (make_pass_handle_trap_shadows): New function.
9883 (rest_of_handle_trap_shadows): Ditto.
9885 (alpha_align_insns_1): Rename from alpha_align_insns.
9886 (pass_data_align_insns): New pass.
9887 (pass_align_insns::gate): New pass gate function.
9888 (make_pass_aling_insns): New function.
9889 (rest_of_align_insns): Ditto.
9890 (alpha_align_insns): Ditto.
9892 (alpha_option_override): Declare handle_trap_shadows info
9893 and align_insns_info. Register handle_trap_shadows and align_insns
9895 (alpha_reorg): Do not call alpha_trap_shadows and
9896 alpha_align_insn from here.
9898 (alpha_pad_function_end): Do not skip BARRIERs.
9900 2014-07-10 Rong Xu <xur@google.com>
9902 Add gcov-tool: an offline gcda profile processing tool support.
9903 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9904 (gcov_is_error): Ditto.
9905 (gcov_read_string): Ditto.
9906 (gcov_read_sync): Ditto.
9907 * gcov-io.h: Move counter defines to gcov-counter.def.
9908 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9909 * coverage.c: Ditto.
9910 * gcov-tool.c: Offline gcda profile processing tool.
9911 (unlink_gcda_file): Remove one gcda file.
9912 (unlink_profile_dir): Remove gcda files from the profile path.
9913 (gcov_output_files): Output gcda files to an output dir.
9914 (profile_merge): Merge two profiles in directory.
9915 (print_merge_usage_message): Print merge usage.
9916 (merge_usage): Print merge usage and exit.
9917 (do_merge): Driver for profile merge sub-command.
9918 (profile_rewrite): Rewrite profile.
9919 (print_rewrite_usage_message): Print rewrite usage.
9920 (rewrite_usage): Print rewrite usage and exit.
9921 (do_rewrite): Driver for profile rewrite sub-command.
9922 (print_usage): Print gcov-info usage and exit.
9923 (print_version): Print gcov-info version.
9924 (process_args): Process arguments.
9925 (main): Main routine for gcov-tool.
9926 * Makefile.in: Build and install gcov-tool.
9927 * gcov-counter.def: New file split from gcov-io.h.
9928 * doc/gcc.texi: Include gcov-tool.texi.
9929 * doc/gcov-tool.texi: Document for gcov-tool.
9931 2014-07-10 Richard Biener <rguenther@suse.de>
9933 PR tree-optimization/61757
9934 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9935 (propagate_rhs_into_lhs): Revert part of last change.
9937 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9939 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9942 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9945 * function.c (allocate_struct_function): Revert r188667 change.
9947 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9949 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9951 * doc/install.texi: Remove links to defunct package providers for
9954 2014-07-09 Tom de Vries <tom@codesourcery.com>
9956 * final.c (get_call_fndecl): Declare.
9957 (self_recursive_call_p): New function.
9958 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9960 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9962 * ipa-devirt.c (record_node): Walk through aliases.
9964 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9966 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9968 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9971 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9973 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9975 * ipa-visibility.c (function_and_variable_visibility): Remove
9976 temporary hack disabling local aliases on AIX.
9978 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9980 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9981 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9983 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9985 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9986 * rs6000/rs6000.c: Inline output of .set instruction.
9987 (declare_alias_data): New struct.
9988 (rs6000_declare_alias): New function.
9989 (rs6000_xcoff_declare_function_name): Use it.
9990 (rs6000_xcoff_declare_object_name): New function.
9991 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9992 (ASM_OUTPUT_DEF): Turn to empty definition.
9994 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9997 * hash-table.h: use hash_table::value_type instead of
9998 Descriptor::value_type in the return types of several methods.
10000 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10002 * tree-pass.h (pass_data): Remove has_execute member.
10003 * passes.c (execute_one_pass): Don't check pass->has_execute.
10004 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10005 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10006 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10007 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10008 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10009 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10010 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10011 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10012 gimple-low.c, gimple-ssa-isolate-paths.c,
10013 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10014 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10015 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10016 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10017 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10018 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10019 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10020 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10021 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10022 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10023 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10024 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10025 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10026 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10027 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10028 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10029 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10030 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10031 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10032 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10033 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10034 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10035 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10036 web.c: Remove initializer for pass_data::has_execute.
10038 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10040 * graphite-htab.h: Use hash_map instead of hash_table.
10041 * graphite-clast-to-gimple.c: Adjust.
10042 * passes.c: Use hash_map instead of hash_table.
10043 * sese.c: Likewise.
10044 * sese.h: Remove now unused code.
10046 2014-07-08 Sriraman Tallam <tmsriram@google.com>
10049 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
10052 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10054 PR rtl-optimization/61673
10055 * combine.c (simplify_comparison): Test just mode's sign bit
10056 in tmode rather than the sign bit and any bits above it.
10058 2014-07-08 Roman Gareev <gareevroman@gmail.com>
10060 * graphite-isl-ast-to-gimple.c (generate_isl_context):
10061 Add __isl_give to the declaration.
10062 (generate_isl_schedule): Likewise.
10063 (scop_to_isl_ast): Likewise.
10065 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10067 * config/arm/arm.c (cortexa5_extra_costs): New table.
10068 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10070 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10072 PR tree-optimization/61725
10073 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10074 range, use range_includes_zerop_p instead of integer_zerop on
10075 vr0->min, only use log2 of max if min is not negative.
10077 2014-07-08 Richard Biener <rguenther@suse.de>
10079 * tree-ssa-dom.h (loop_depth_of_name): Remove.
10080 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
10081 restriction on loop depth difference.
10082 (record_equality): Likewise.
10083 (propagate_rhs_into_lhs): Likewise. Simplify condition.
10084 (loop_depth_of_name): Remove.
10085 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
10086 restriction on loop depth difference.
10087 (init_copy_prop): Likewise.
10089 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10091 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
10093 (walk_aliased_vdefs): Likewise.
10094 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
10095 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
10096 (detect_type_change_from_memory_writes): Check if entry was reached.
10098 2014-07-08 Richard Biener <rguenther@suse.de>
10100 PR tree-optimization/61681
10101 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10102 NONLOCAL inside ESCAPED.
10104 2014-07-08 Richard Biener <rguenther@suse.de>
10106 PR tree-optimization/61680
10107 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10108 Handle properly all read-write dependences with group accesses.
10110 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10112 PR tree-optimization/61576
10113 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10114 block containing reduction statement is predecessor of phi basi block.
10116 2014-07-08 Marek Polacek <polacek@redhat.com>
10119 * fold-const.c (round_up_loc): Change the parameter type.
10121 * fold-const.h (round_up_loc): Adjust declaration.
10122 * stor-layout.c (finalize_record_size): Check for too large types.
10124 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10126 * symtab.c: Include calls.h.
10127 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10129 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10131 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10132 little-endian code generation.
10133 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10134 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10135 (spe_evmergehilo): Rename to...
10136 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10137 (spe_evmergelo): Rename to...
10138 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10139 (spe_evmergelohi): Rename to...
10140 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10141 (spe_evmergehi, spe_evmergehilo): New expanders.
10142 (spe_evmergelo, spe_evmergelohi): Likewise.
10143 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10144 (*frob_tf_ti): Likewise.
10145 (*frob_<mode>_di_2): Likewise.
10146 (*frob_tf_di_8_2): Likewise.
10147 (*frob_di_<mode>): Likewise.
10148 (*frob_ti_tf): Likewise.
10149 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10150 (*frob_ti_<mode>_8_2): Likewise.
10151 (*frob_ti_tf_2): Likewise.
10152 (mov_si<mode>_e500_subreg0): Rename to...
10153 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10155 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10156 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10157 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10158 the big endianness only.
10159 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10160 (*mov_si<mode>_e500_subreg0_2): Rename to...
10161 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10162 big big endianness only.
10163 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10164 (*mov_si<mode>_e500_subreg4): Rename to...
10165 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10167 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10168 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10169 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10170 the big endianness only.
10171 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10173 (*mov_si<mode>_e500_subreg4_2): Rename to...
10174 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10176 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10177 (*mov_sitf_e500_subreg8): Rename to...
10178 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10180 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10181 (*mov_sitf_e500_subreg8_2): Rename to...
10182 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10184 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10185 (*mov_sitf_e500_subreg12): Rename to...
10186 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10188 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10189 (*mov_sitf_e500_subreg12_2): Rename to...
10190 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10192 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10194 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10196 * asan.c (instrument_strlen_call): Do not instrument first byte
10197 in strlen if already instrumented.
10199 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10201 * config/arm/arm.opt (mwords-little-endian): Delete.
10202 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10203 of TARGET_LITTLE_WORDS.
10204 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10205 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10207 * doc/invoke.texi: Remove references to -mwords-little-endian.
10209 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10211 * expmed.c (struct init_expmed_rtl): Change all fields but
10212 pow2 and cint from struct rtx_def to rtx.
10213 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10214 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10217 2014-07-06 Marek Polacek <polacek@redhat.com>
10220 * doc/invoke.texi: Document -Wsizeof-array-argument.
10222 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10224 * wide-int.h (wide_int_storage): Change declaration from struct
10227 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10229 * cgraph.c (cgraph_create_indirect_edge): Update call of
10230 get_polymorphic_call_info.
10231 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10232 (possible_polymorphic_call_targets): Add parameter call.
10233 (decl_maybe_in_construction_p): New predicate.
10234 (get_polymorphic_call_info): Add parameter call;
10235 use decl_maybe_in_construction_p.
10236 * gimple-fold.c (fold_gimple_assign): Update use of
10237 possible_polymorphic_call_targets.
10238 (gimple_fold_call): Likewise.
10239 * ipa-prop.c: Inlcude calls.h
10240 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10241 (param_type_may_change_p): New predicate.
10242 (detect_type_change_from_memory_writes): Break out from ...
10243 (detect_type_change): ... this one; use param_type_may_change_p.
10244 (detect_type_change_ssa): Use param_type_may_change_p.
10245 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10247 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10250 * config/arm/arm-protos.h (arm_legitimate_address_p,
10251 arm_is_constant_pool_ref): Add prototypes.
10252 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10253 (arm_is_constant_pool_ref) New function.
10254 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10255 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10256 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10257 operand. Remove pool_range and neg_pool_range attributes.
10258 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10259 pool_range and neg_pool_range attributes.
10260 * config/arm/constraints.md (Uh): New constraint.
10261 (Uq): Don't allow constant pool references.
10263 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10265 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10266 (move_lo_quad_internal_be_<mode>): Likewise.
10267 (move_lo_quad_<mode>): Convert to define_expand.
10268 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10269 (aarch64_simd_move_hi_quad_be_<mode>): New.
10270 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10271 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10272 (aarch64_combinez_be<mode>): New.
10273 (aarch64_combine<mode>): Convert to define_expand.
10274 (aarch64_combine_internal<mode>): New.
10275 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10277 2014-07-04 Tom de Vries <tom@codesourcery.com>
10279 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10280 combination of earlyclobber and read/write modifiers.
10282 2014-07-04 Tom de Vries <tom@codesourcery.com>
10284 * config/aarch64/aarch64-simd.md
10285 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10287 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10290 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10292 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10294 PR middle-end/61654
10295 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10297 PR tree-optimization/61684
10298 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10299 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10301 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10302 Kito Cheng <kito@0xlab.org>
10303 Monk Chiang <sh.chiang04@gmail.com>
10305 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10306 (nds32_symbol_load_store_p): Move to ...
10307 (nds32_fp_as_gp_check_available): Move to ...
10308 * config/nds32/nds32-fp-as-gp.c: ... here.
10309 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10310 extern declaration.
10312 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10313 Kito Cheng <kito@0xlab.org>
10314 Monk Chiang <sh.chiang04@gmail.com>
10316 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10317 (nds32_expand_store_multiple): Move to ...
10318 (nds32_expand_movmemqi): Move to ...
10319 * config/nds32/nds32-memory-manipulation.c: ... here.
10321 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10322 Kito Cheng <kito@0xlab.org>
10323 Monk Chiang <sh.chiang04@gmail.com>
10325 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10326 (nds32_output_casesi_pc_relative): Move to ...
10327 (nds32_output_casesi): Move to ...
10328 (nds32_mem_format): Move to ...
10329 (nds32_output_16bit_store): Move to ...
10330 (nds32_output_16bit_load): Move to ...
10331 (nds32_output_32bit_store): Move to ...
10332 (nds32_output_32bit_load): Move to ...
10333 (nds32_output_32bit_load_s): Move to ...
10334 (nds32_output_stack_push): Move to ...
10335 (nds32_output_stack_pop): Move to ...
10336 * config/nds32/nds32-md-auxiliary.c: ... here.
10338 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10339 Ling-Hua Tseng <uranus@tinlans.org>
10341 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10342 the purpose of this file.
10344 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10345 Kito Cheng <kito@0xlab.org>
10346 Monk Chiang <sh.chiang04@gmail.com>
10348 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10349 (nds32_address_cost): Move implementation to ...
10350 * config/nds32/nds32-cost.c: ... here.
10351 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10352 (nds32_address_cost_impl): Declare.
10354 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10355 Kito Cheng <kito@0xlab.org>
10356 Monk Chiang <sh.chiang04@gmail.com>
10358 * config/nds32/nds32.c
10359 (nds32_consecutive_registers_load_store_p): Move to ...
10360 (nds32_valid_multiple_load_store): Move to ...
10361 (nds32_valid_stack_push_pop): Move to ...
10362 (nds32_can_use_bclr_p): Move to ...
10363 (nds32_can_use_bset_p): Move to ...
10364 (nds32_can_use_btgl_p): Move to ...
10365 (nds32_can_use_bitci_p): Move to ...
10366 * config/nds32/nds32-predicates.c: ... here.
10368 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10369 Kito Cheng <kito@0xlab.org>
10370 Monk Chiang <sh.chiang04@gmail.com>
10372 * config/nds32/nds32.c
10373 (nds32_expand_builtin_null_ftype_reg): Move to ...
10374 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10375 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10376 (nds32_init_builtins): Move implementation to ...
10377 (nds32_expand_builtin): Move implementation to ...
10378 * config/nds32/nds32-intrinsic.c: ... here.
10379 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10380 (nds32_expand_builtin_impl): Declare.
10382 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10383 Kito Cheng <kito@0xlab.org>
10384 Monk Chiang <sh.chiang04@gmail.com>
10386 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10387 (nds32_emit_section_tail_template): Move to ...
10388 (nds32_emit_isr_jmptbl_section): Move to ...
10389 (nds32_emit_isr_vector_section): Move to ...
10390 (nds32_emit_isr_reset_conten): Move to ...
10391 (nds32_check_isr_attrs_conflict): Move to ...
10392 (nds32_construct_isr_vectors_information): Move to ...
10393 (nds32_asm_file_start): Move implementation to ...
10394 (nds32_asm_file_end): Move implementation to ...
10395 * config/nds32/nds32-isr.c: ... here.
10396 * config/nds32/nds32-protos.h
10397 (nds32_check_isr_attrs_conflict): Declare.
10398 (nds32_construct_isr_vectors_information): Declare.
10399 (nds32_asm_file_start_for_isr): Declare.
10400 (nds32_asm_file_end_for_isr): Declare.
10402 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10403 Kito Cheng <kito@0xlab.org>
10404 Monk Chiang <sh.chiang04@gmail.com>
10406 * config.gcc (nds32*): Add new modules to extra_objs.
10407 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10408 (nds32be-*-*): Likewise.
10409 * config/nds32/nds32-cost.c: New file.
10410 * config/nds32/nds32-fp-as-gp.c: New file.
10411 * config/nds32/nds32-intrinsic.c: New file.
10412 * config/nds32/nds32-isr.c: New file.
10413 * config/nds32/nds32-md-auxiliary.c: New file.
10414 * config/nds32/nds32-memory-manipulation.c: New file.
10415 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10416 * config/nds32/nds32-predicates.c: New file.
10417 * config/nds32/t-nds32: New file.
10419 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10421 PR tree-optimization/61682
10422 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10423 using cases and when one of the operands is equal to 1.
10425 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10427 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10428 ashr<mode>3): Correct mode of operands[2].
10429 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10430 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10431 Correct mode of operands[2]. Fix split condition.
10433 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10435 * arm.md (arch): Add armv6_or_vfpv3.
10436 (arch_enabled): Add test for the above.
10437 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10439 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10441 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10443 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10444 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10445 HWI 1 and negate the unsigned value.
10446 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10447 use AND instead of shift.
10448 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10450 2014-07-03 Marek Polacek <polacek@redhat.com>
10452 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10453 (-fsanitize=float-divide-by-zero): Move to the table with
10454 -fsanitize=undefined suboptions.
10455 (-fsanitize=float-cast-overflow): Likewise.
10457 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10459 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10460 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10463 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10465 * loop-invariant.c (struct invariant): Add a new member: eqno;
10466 (find_identical_invariants): Update eqno;
10467 (create_new_invariant): Init eqno;
10468 (get_inv_cost): Compute comp_cost with eqno;
10470 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10472 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10473 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10474 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10475 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10476 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10478 2014-07-02 Christian Bruel <christian.bruel@st.com>
10482 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10483 (make_preds_opaque): Delete.
10484 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10485 (commit_mode_sets): New function.
10486 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10487 Process all modes at once.
10488 * basic-block.h (pre_edge_lcm_avs): Declare.
10489 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10490 Call clear_aux_for_edges. Fix comments.
10491 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10492 (pre_edge_rev_lcm): Idem.
10493 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10495 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10496 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10498 * config/i386/i386.c (x96_emit_mode_set): Idem.
10499 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10500 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10501 (fpscr_toggle) Disallow from delay slot.
10502 * target.def (emit_mode_set): Add prev_mode parameter.
10503 * doc/tm.texi: Regenerate.
10505 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10507 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10510 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10512 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10513 vtable_pointer_value_to_vtable): Constify.
10514 (contains_polymorphic_type_p): Declare.
10515 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10516 vtable_pointer_value_to_vtable): Constify.
10517 (contains_polymorphic_type_p): New predicate.
10518 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10520 (ipa_set_ancestor_jf): Likewise.
10521 (detect_type_change): Return false in easy cases.
10522 (compute_complex_assign_jump_func): Require type to contain
10524 (compute_known_type_jump_func): Likewise.
10526 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10528 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10530 (type_in_anonymous_namespace_p): Constify argument.
10531 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10532 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10533 (main_odr_variant): New function.
10534 (hash_type_name): Make static; update assert; do not ICE on
10536 (types_same_for_odr): Bring here from tree.c; simplify and remove
10537 old structural comparing code that doesn't work for templates.
10538 (odr_hasher::equal): Update assert.
10539 (add_type_duplicate): Return true when bases should be computed;
10540 replace incomplete loader by complete; do not output duplicated
10541 warnings; do not ICE on non-records; set odr_violated flag.
10542 (get_odr_type): Be ready to replace incomplete type by complete
10543 one; work on ODR variants instead of main variants; reorder item
10544 in array so bases have still smaller indexes.
10545 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10546 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10548 2014-07-01 Cary Coutant <ccoutant@google.com>
10550 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10552 (resolve_addr_in_expr): When replacing the rtx in a location list
10553 entry, get a new address table entry.
10554 (dwarf2out_finish): Call index_location_lists even if there are no
10555 addr_index_table entries yet.
10557 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10559 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10560 change for not being obvious.
10562 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10564 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10567 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10569 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10570 (vcagt_f64): Likewise.
10571 (vcale_f64): Likewise.
10572 (vcaled_f64): Likewise.
10573 (vcales_f32): Likewise.
10574 (vcalt_f64): Likewise.
10575 (vcaltd_f64): Likewise.
10576 (vcalts_f32): Likewise.
10578 2014-07-01 Marek Polacek <polacek@redhat.com>
10580 * doc/invoke.texi: Document -Wint-conversion.
10582 2014-07-01 Marek Polacek <polacek@redhat.com>
10585 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10587 2014-07-01 Martin Liska <mliska@suse.cz>
10589 IPA REF alias refactoring
10590 * cgraph.h (iterate_direct_aliases): New function.
10591 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10592 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10593 FOR_EACH_ALIAS added.
10594 (cgraph_for_node_and_aliases): Likewise.
10595 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10596 * ipa-inline.c (reset_edge_caches): Likewise.
10597 (update_caller_keys): Likewise.
10598 * trans-mem.c (ipa_tm_execute): Likewise.
10599 *varpool.c (varpool_analyze_node): Likewise.
10600 (varpool_for_node_and_aliases): Likewise.
10601 * ipa-ref.h (first_alias): New function.
10602 (last_alias): Likewise.
10603 (has_aliases_p): Likewise.
10604 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10605 is sensitive to IPA_REF_ALIASes.
10606 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10607 are put at the beginning of the list.
10608 (symtab_node::iterate_direct_aliases): New function.
10610 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10613 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10615 (write_ts_type_common_tree_pointers): Do not stream fields not set
10616 for incomplete types; do not stream duplicated fields for variants;
10617 sanity check that variant and type match.
10618 (write_ts_type_non_common_tree_pointers): Likewise.
10619 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10620 TYPE_SIZE whether type is complete.
10621 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10622 write_ts_type_common_tree_pointers
10623 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10625 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10627 * var-tracking.c (add_stores): Return instead of asserting if old
10628 and new values for conditional store are the same.
10630 2014-06-30 Richard Henderson <rth@redhat.com>
10634 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10635 the cfg if there were any changes.
10636 * passes.def: Revert move of peephole2 after reorder_blocks;
10637 move duplicate_computed_gotos before peephole2.
10639 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10641 * except.c (emit_note_eh_region_end): New helper function.
10642 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10643 emit EH_REGION_END note.
10644 * jump.c (cleanup_barriers): Do not split a call and its
10645 corresponding CALL_ARG_LOCATION note.
10647 2014-06-30 Jeff Law <law@redhat.com>
10649 PR tree-optimization/61607
10650 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10651 deeper into the SSA_NAME_VALUE chain.
10653 2014-06-30 Marek Polacek <polacek@redhat.com>
10655 * convert.c (convert_to_integer): Don't instrument conversions if the
10656 function has no_sanitize_undefined attribute.
10657 * ubsan.c: Don't run the ubsan pass if the function has
10658 no_sanitize_undefined attribute.
10660 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10662 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10663 -fsanitize=undefined suboptions.
10665 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10667 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10668 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10669 against bigendian and adjust indices.
10671 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10673 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10675 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10678 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10679 Add alternative; make early clobber. Adjust both split patterns
10680 to use operand 0 as the working register.
10682 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10684 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10685 as ira_object_id_map might be NULL, or 1.
10687 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10689 * loop-invariant.c (get_inv_cost): Handle register class.
10690 (gain_for_invariant): Check the register pressure of the inv
10691 and its overlapped register class, other than all.
10693 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10695 * doc/invoke.texi (Optimize Options): Fix descriptions of
10696 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10698 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10700 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10703 2014-06-29 Tobias Grosser <tobias@grosser.es>
10706 * graphite-isl-ast-to-gimple.c: Add missing guards.
10708 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10710 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10711 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10712 * flag-types.h: Add new enum fgraphite_generator.
10713 * graphite-isl-ast-to-gimple.c: New.
10714 * graphite-isl-ast-to-gimple.h: New.
10715 * graphite.c (graphite_transform_loops): Add choice of Graphite
10716 code generator, which depends on flag_graphite_code_gen.
10718 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10720 * graphite-dependences.c (subtract_commutative_associative_deps):
10721 Add NULL checking of the following variables: must_raw_no_source,
10722 may_raw_no_source, must_war_no_source, may_war_no_source,
10723 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10724 must_war, may_war, must_waw, may_waw.
10726 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10728 * graphite-clast-to-gimple.c: gloog is renamed to
10729 graphite_regenerate_ast_cloog. gloog_error is renamed to
10730 graphite_regenerate_error.
10731 * graphite-clast-to-gimple.h: The definition of the struct
10732 bb_pbb_def is moved to graphite-htab.h.
10733 Add inclusion of the hash-table.h.
10734 * graphite-htab.h: The declaration of the function gloog is moved
10735 to graphite-clast-to-gimple.h and renamed to
10736 graphite_regenerate_ast_cloog.
10737 * graphite.c (graphite_transform_loops): gloog is renamed
10738 to graphite_regenerate_ast_cloog.
10740 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10742 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10744 (write_ts_type_common_tree_pointers): Do not stream fields not set
10745 for incomplete types; do not stream duplicated fields for variants;
10746 sanity check that variant and type match.
10747 (write_ts_type_non_common_tree_pointers): Likewise.
10748 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10749 TYPE_SIZE whether type is complete.
10750 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10751 write_ts_type_common_tree_pointers
10752 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10754 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10756 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10758 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10760 * tree-inline.c (remap_type_1): Do not duplicate fields
10761 that are shared in between type and its main variant.
10763 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10765 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10767 (ipa_set_ancestor_jf) Likewise.
10768 (check_stmt_for_type_change): Check that we work on main variant.
10769 (detect_type_change): Look into main variant.
10770 (compute_known_type_jump_func): Check that main variant has BINFO.
10772 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10774 * ipa-devirt.c (set_type_binfo): New function.
10775 (add_type_duplicate): Use it.
10776 (get_odr_type): Sanity check that binfos points to main variants.
10777 (get_class_context): Be sure the context's outer_type is main variant.
10778 (contains_type_p): Walk main variant.
10779 (get_polymorphic_call_info_for_decl): Set outer_type to be
10781 (get_polymorphic_call_info): Likewise.
10782 (possible_polymorphic_call_targets): Sanity check that we operate
10785 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10787 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10789 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10791 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10792 accidental change due to wide-int branch merge.
10794 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10796 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10797 compressed debug support.
10798 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10799 * configure: Regenerate.
10800 * config.in: Regenerate.
10801 * common.opt (compressed_debug_sections): New enum.
10802 (gz, gz=): New options.
10803 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10804 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10805 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10806 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10807 LINK_COMPRESS_DEBUG_SPEC.
10808 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10809 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10810 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10811 (Debugging Options): Document -gz[=type].
10813 2014-06-27 Martin Jambor <mjambor@suse.cz>
10816 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10817 args_to_skip, use those from node instead. Copy args_to_skip and
10818 combined_args_to_skip from node to the new thunk.
10819 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10820 (cgraph_create_virtual_clone): Moved computation of
10821 combined_args_to_skip...
10822 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10824 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10826 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10827 redundant diagnostic machinary.
10829 2014-06-27 Richard Biener <rguenther@suse.de>
10831 * tree-ssa-math-opts.c (bswap_replace): Fix
10832 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10834 2014-06-27 Martin Liska <mliska@suse.cz>
10836 * gimple.h (gimple_location_safe): New function introduced.
10837 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10838 of gimple_location_safe replaces gimple_location.
10839 (gimple_fold_call): Likewise.
10840 * ipa-devirt.c (ipa_devirt): Likewise.
10841 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10842 * ipa.c (walk_polymorphic_call_targets): Likewise.
10843 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10845 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10847 PR tree-optimization/57233
10848 PR tree-optimization/61299
10849 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10851 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10852 would be lowered to scalar shifts, check if corresponding
10853 shifts and vector BIT_IOR_EXPR are supported and don't lower
10854 or lower just to narrower vector type in that case.
10855 * expmed.c (expand_shift_1): Fix up handling of vector
10856 shifts and rotates.
10858 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10861 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10863 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10865 * doc/invoke.texi (-fsemantic-interposition): Document.
10866 * common.opt (fsemantic-interposition): New flag.
10867 * varasm.c (decl_replaceable_p): Use it.
10869 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10872 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10873 extraction other than index 3.
10875 2014-06-26 Teresa Johnson <tejohnson@google.com>
10877 * doc/invoke.texi: Fix typo.
10878 * dumpfile.c: Add support for documented -fdump-* options
10879 optimized/missed/note/optall.
10881 2014-06-26 Martin Jambor <mjambor@suse.cz>
10883 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10884 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10885 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10886 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10887 * opts.c (default_options_optimization): Set
10888 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10889 * doc/invoke.texi (allow-load-data-races)
10890 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10891 (allow-store-data-races): Document the new default.
10893 2014-06-26 Martin Jambor <mjambor@suse.cz>
10895 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10896 renamed to ipa_impossible_devirt_target. Fix typo.
10897 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10898 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10899 ipa_impossible_devirt_target.
10901 2014-06-26 Richard Biener <rguenther@suse.de>
10903 PR tree-optimization/61607
10904 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10905 explaining why we restrict copies on loop depth.
10906 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10908 (record_equivalences_from_phis): Instead add it here.
10910 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10912 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10913 (LTO_WRAPPER_OBJS): New variable.
10914 (lto-wrapper$(exeext)): Use it.
10915 * collect2.c: Include "collect-utils.h".
10916 (verbose, debug): Remove variables.
10917 (at_file_supplied): No longer static.
10918 (tool_name): New variable.
10919 (do_wait, fork_execute, maybe_unlink): Don't declare.
10920 (tool_cleanup): No longer static.
10921 (notice): Remove function.
10922 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10923 fork_execute calls.
10924 (collect_wait, do_wait, collect_execute): Remove functions.
10925 (maybe_unlink): No longer static.
10926 * collect2.h (verbose, debug): Don't declare.
10927 (at_file_supplied): Declare.
10928 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10930 (collect_execute): Replace with implementation from collect2, plus a
10931 new arg use_atfile. All callers changed.
10932 (collect_wait): Replace with implementation from collect2.
10933 (maybe_unlink_file): Remove function.
10934 (fork_execute): Replace with implementation from collect2, plus a
10935 new arg use_atfile. All callers changed.
10936 (do_wait): Add call to utils_cleanup to the error path.
10937 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10938 (tool_cleanup): Adjust declarations.
10939 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10940 * tlink.c: Include "collect-utils.h".
10941 (tlink_execute): New arg use_atfile. All callers changed.
10942 (tlink_init, tlink_execute): Remove declarations.
10944 * collect-utils.c (save_temps): New variable.
10945 (do_wait): Use it instead of debug. Use fatal_error.
10946 * collect-utils.h (save_temps): Declare.
10947 * collect2.c (verbose): Rename from vflag. All uses changed.
10948 (tool_cleanup): New function, copied from collect_atexit.
10949 (collect_atexit, handler): Just call it.
10950 * collect2.h (verbose): Declaration renamed from vflag.
10951 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10954 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10955 (lto-wrapper$(exeext)): Link with collect-utils.o.
10956 * collect-utils.c: New file.
10957 * collect-utils.h: New file.
10958 * lto-wrapper.c: Include "collect-utils.h".
10959 (args_name): Delete variable.
10960 (tool_name): New variable.
10961 (tool_cleanup): New function.
10962 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10963 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10964 (fork_execute): Remove functions.
10966 2014-06-26 Nick Clifton <nickc@redhat.com>
10968 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10970 * doc/extend.texi (Function Attributes): Fix typo in description
10971 of RX vector attribute.
10973 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10975 * config.gcc (supported_defaults): Error when passing either
10976 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10978 2014-06-26 Richard Biener <rguenther@suse.de>
10980 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10981 propagating volatile pointers.
10983 2014-06-26 Richard Biener <rguenther@suse.de>
10985 PR tree-optimization/61607
10986 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10987 loop if we redirected its latch edge.
10988 (thread_block_1): Do not cancel loops prematurely.
10990 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10992 * toplev.c (backend_init_target): Move init_emit_regs and
10994 (backend_init) ... here; skip ira_init_once and backend_init_target.
10995 (target_reinit) ... and here; clear
10996 this_target_rtl->lang_dependent_initialized.
10997 (lang_dependent_init_target): Clear
10998 this_target_rtl->lang_dependent_initialized;
10999 break out rtl initialization to ...
11000 (initialize_rtl): ... here; call also backend_init_target
11002 * toplev.h (initialize_rtl): New function.
11003 * function.c: Include toplev.h
11004 (init_function_start): Call initialize_rtl.
11005 * rtl.h (target_rtl): Add target_specific_initialized,
11006 lang_dependent_initialized.
11008 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
11009 Jakub Jelinek <jakub@redhat.com>
11011 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11013 2014-06-25 Tom de Vries <tom@codesourcery.com>
11015 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11017 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11019 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11020 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11021 Issue a strict overflow warning if appropriate.
11023 2014-06-25 Martin Liska <mliska@suse.cz>
11025 IPA REF refactoring
11026 * Makefile.in: Removed header file (ipa-ref-inline.h).
11027 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11029 (cgraph_speculative_call_info): Likewise.
11030 (cgraph_for_node_thunks_and_aliases): Likewise.
11031 (cgraph_for_node_and_aliases): Likewise.
11032 (verify_cgraph_node): Likewise.
11033 * cgraph.h: Batch of IPA REF functions become member functions of
11034 symtab_node: add_reference, maybe_add_reference, clone_references,
11035 clone_referring, clone_reference, find_reference,
11036 remove_stmt_references, remove_all_references,
11037 remove_all_referring, dump_references, dump_referring,
11038 has_alias_p, iterate_reference, iterate_referring.
11039 * cgraphbuild.c (record_reference): New IPA REF function used.
11040 (record_type_list): Likewise.
11041 (record_eh_tables): Likewise.
11042 (mark_address): Likewise.
11043 (mark_load): Likewise.
11044 (mark_store): Likewise.
11045 (pass_build_cgraph_edges): Likewise.
11046 (rebuild_cgraph_edge): Likewise.
11047 (cgraph_rebuild_references): Likewise.
11048 (pass_remove_cgraph_callee_edges): Likewise.
11049 * cgraphclones.c (cgraph_clone_node): Likewise.
11050 (cgraph_create_virtual_clone): Likewise.
11051 (cgraph_materialize_clone): Likewise.
11052 (cgraph_materialize_all_clones): Likewise.
11053 * cgraphunit.c (cgraph_reset_node): Likewise.
11054 (cgraph_reset_node): Likewise.
11055 (analyze_function): Likewise.
11056 (assemble_thunks_and_aliases): Likewise.
11057 (expand_function): Likewise.
11058 * ipa-comdats.c (propagate_comdat_group): Likewise.
11059 (enqueue_references): Likewise.
11060 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
11061 (create_specialized_node): Likewise.
11062 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11063 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11064 * ipa-inline.c (reset_edge_caches): Likewise.
11065 (update_caller_keys): Likewise.
11066 (execute): Likewise.
11067 * ipa-prop.c (remove_described_reference): Likewise.
11068 (propagate_controlled_uses): Likewise.
11069 (ipa_edge_duplication_hook): Likewise.
11070 (ipa_modify_call_arguments): Likewise.
11071 * ipa-pure-const.c (propagate_pure_const): Likewise.
11072 * ipa-ref-inline.h: Header file removed, functions moved
11073 to symtab_node class.
11074 * ipa-ref.c (remove_reference): New class member function.
11075 (cannot_lead_to_return): New class member function.
11076 (referring_ref_list): Likewise.
11077 (referred_ref_list): Likewise.
11078 Rest of functions moved to symtab_node class.
11079 * ipa-ref.h: New member functions remove_reference,
11080 cannot_lead_to_return, referring_ref_list, referred_ref_list added
11082 ipa_ref_list class has new member functions: first_reference,
11083 first_referring, clear, nreferences.
11084 * ipa-reference.c (analyze_function): New IPA REF function used.
11085 (write_node_summary_p): Likewise.
11086 (ipa_reference_write_optimization_summary): Likewise.
11087 * ipa-split.c (split_function): Likewise.
11088 * ipa-utils.c (ipa_reverse_postorder): Likewise.
11089 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
11090 (function_and_variable_visibility): Likewise.
11091 * ipa.c (has_addr_references_p): Likewise.
11092 (process_references): Argument type changed.
11093 (symtab_remove_unreachable_nodes): New IPA REF function used.
11094 (process_references): Likewise.
11095 (set_writeonly_bit): Likewise.
11096 * lto-cgraph.c: Implementation of new symtab_node member functions
11097 that uses new IPA REF functions.
11098 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11100 * lto-streamer-out.c (output_symbol_p): Likewise.
11101 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11103 * symtab.c: Implementation of new IPA REF API.
11104 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11105 (ipa_tm_create_version): Likewise.
11106 (ipa_tm_execute): Likewise.
11107 * tree-emutls.c (gen_emutls_addr): Likewise.
11108 * tree-inline.c (copy_bb): Likewise.
11109 (delete_unreachable_blocks_update_callgraph): Likewise.
11110 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11111 (varpool_for_node_and_aliases): Likewise.
11113 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11115 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11117 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11120 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11121 tree_node * instead of tree_node *.
11123 (print_fold_checksum): Likewise.
11124 (fold_check_failed): Likewise.
11125 (debug_fold_checksum): Likewise.
11126 (fold_build1_stat_loc): Likewise.
11127 (fold_build2_stat_loc): Likewise.
11128 (fold_build3_stat_loc): Likewise.
11129 (fold_build_call_array_loc): Likewise.
11131 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11133 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11134 implementation with call to...
11135 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11137 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11140 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11142 PR tree-optimization/57742
11143 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11144 after replacing the statement.
11146 2014-06-25 Nick Clifton <nickc@redhat.com>
11148 * config/v850/v850.c (GHS_default_section_names): Change to const
11150 (GHS_current_section_names): Likewise.
11151 (v850_insert_attributes): Do not build strings, just assign the
11152 names directly. Change the type of 'chosen_section' to const
11154 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11155 directly to the array entry.
11156 * config/v850/v850.h (GHS_default_section_names): Change to const
11158 (GHS_current_section_names): Likewise.
11160 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11162 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11163 (LANG_HOOKS_DECLS): Add it.
11164 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11166 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11167 * langhooks.h (struct lang_hooks_for_decls): Add
11168 omp_clause_linear_ctor hook.
11169 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11170 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11171 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11172 combined simd loop use omp_clause_linear_ctor hook.
11174 2014-06-24 Cong Hou <congh@google.com>
11176 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11177 pattern recognition.
11178 (type_conversion_p): PROMOTION is true if it's a type promotion
11179 conversion, and false otherwise. Return true if the given expression
11180 is a type conversion one.
11181 * tree-vectorizer.h: Adjust the number of patterns.
11182 * tree.def: Add SAD_EXPR.
11183 * optabs.def: Add sad_optab.
11184 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11185 * expr.c (expand_expr_real_2): Likewise.
11186 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11187 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11188 * optabs.c (optab_for_tree_code): Likewise.
11189 * tree-cfg.c (estimate_operator_cost): Likewise.
11190 * tree-ssa-operands.c (get_expr_operands): Likewise.
11191 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11192 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11193 * doc/generic.texi: Add document for SAD_EXPR.
11194 * doc/md.texi: Add document for ssad and usad.
11196 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11198 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11199 qualification in cast.
11201 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11203 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11204 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11205 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11206 (tree_function_decl): ... here.
11207 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11208 streaming of vindex to ...
11209 (write_ts_function_decl_tree_pointers): ... here.
11210 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11211 Do not stream DECL_VINDEX.
11212 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11214 2014-06-24 Catherine Moore <clm@codesourcery.com>
11215 Sandra Loosemore <sandra@codesourcery.com>
11217 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11218 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11219 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11221 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11223 * doc/invoke.texi (Warning Options): Remove duplicated
11224 -Wmaybe-uninitialized.
11226 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11228 PR tree-optimization/57742
11229 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11230 (handle_builtin_malloc, handle_builtin_memset): New functions.
11231 (strlen_optimize_stmt): Call them.
11232 * passes.def: Move strlen after loop+dom but before vrp.
11234 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11237 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11238 model family 6 CPU with has_longmode never use a CPU without
11241 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11244 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11247 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11249 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11250 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11252 * hash-map.h: New file.
11253 * ipa-comdats.c: Use hash_map instead of pointer_map.
11255 * lto-section-out.c: Adjust.
11256 * lto-streamer.h: Replace pointer_map with hash_map.
11257 * symtab.c (verify_symtab): Likewise.
11258 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11259 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11260 * tree-streamer.h: Likewise.
11261 * tree-streamer.c: Adjust.
11262 * pointer-set.h: Remove pointer_map.
11264 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11266 * hash-table.h: Add a template arg to choose between storing values
11267 and storing pointers to values, and then provide partial
11268 specializations for both.
11269 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11270 should store, not the type values should point to.
11271 * tree-into-ssa.c (var_info_hasher): Likewise.
11272 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11273 * tree-complex.c: Adjust.
11274 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11275 table instead of int_tree_map *.
11276 * tree-parloops.c: Adjust.
11277 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11278 type is being stored.
11279 * tree-vectorizer.c: Adjust.
11281 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11283 * hash-table.h: Remove a layer of indirection from hash_table so that
11284 it contains the hash table's data instead of a pointer to the data.
11285 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11286 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11287 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11288 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11289 fold-const.c, gcse.c, ggc-common.c,
11290 gimple-ssa-strength-reduction.c, gimplify.c,
11291 graphite-clast-to-gimple.c, graphite-dependences.c,
11292 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11293 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11294 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11295 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11296 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11297 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11298 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11299 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11300 tree-ssa-live.c, tree-ssa-loop-im.c,
11301 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11302 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11303 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11304 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11305 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11306 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11307 vtable-verify.c, vtable-verify.h: Adjust.
11309 2014-06-24 Richard Biener <rguenther@suse.de>
11311 PR tree-optimization/61572
11312 * tree-ssa-sink.c (statement_sink_location): Do not sink
11313 loads from hard registers.
11315 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11317 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11318 not mentioned in clauses use private clause if the iterator is
11319 declared in #pragma omp for simd, and when adding lastprivate
11320 instead, add it to the outer #pragma omp for too. Diagnose
11321 if the variable is private in outer context. For simd collapse > 1
11322 loops, replace all iterators with temporaries.
11323 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11324 same even in collapse > 1 loops.
11326 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11327 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11329 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11330 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11332 (gimplify_adjust_omp_clauses): Likewise.
11333 * omp-low.c (lower_rec_simd_input_clauses,
11334 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11335 safelen the same as safelen(1).
11336 * tree-nested.c (convert_nonlocal_omp_clauses,
11337 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11338 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11339 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11340 Fixup handling of GIMPLE_OMP_TARGET.
11341 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11344 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11346 PR tree-optimization/61554
11347 * tree-ssa-propagate.c: Include "bitmap.h".
11348 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11349 properly update constructor/destructor.
11350 (substitute_and_fold_dom_walker::before_dom_children):
11351 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11352 need_eh_cleaup instead.
11353 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11356 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11358 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11359 * tree-pass.h (make_pass_ipa_single_use): New pass.
11360 * cgraph.h (used_by_single_function): New flag.
11361 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11363 * passes.def (pass_ipa_single_use): Scedule.
11364 * ipa.c (BOTTOM): New macro.
11365 (meet): New function
11366 (propagate_single_user): New function.
11367 (ipa_single_use): New function.
11368 (pass_data_ipa_single_use): New pass.
11369 (pass_ipa_single_use): New pass.
11370 (pass_ipa_single_use::gate): New gate.
11371 (make_pass_ipa_single_use): New function.
11373 2014-06-23 Kai Tietz <ktietz@redhat.com>
11376 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11377 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11379 2014-06-23 Richard Biener <rguenther@suse.de>
11381 * tree-ssa-loop.c (gate_loop): New function.
11382 (pass_tree_loop::gate): Call it.
11383 (pass_data_tree_no_loop, pass_tree_no_loop,
11384 make_pass_tree_no_loop): New.
11385 * tree-vectorizer.c: Include tree-scalar-evolution.c
11386 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11388 (pass_slp_vectorize::clone): New method.
11389 * timevar.def (TV_TREE_NOLOOP): New.
11390 * tree-pass.h (make_pass_tree_no_loop): Declare.
11391 * passes.def (pass_tree_no_loop): New pass group with
11394 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11397 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11398 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11400 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11402 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11403 "yes" where needed.
11405 2014-06-23 Alan Modra <amodra@gmail.com>
11408 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11409 to zero on debug statements.
11411 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11414 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11415 Ignore third operand if present by marking qualifier_internal.
11417 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11419 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11421 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11422 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11423 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11424 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11425 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11426 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11427 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11428 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11429 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11430 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11431 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11432 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11433 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11434 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11435 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11436 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11437 logic in GCC vector extensions
11439 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11440 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11441 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11442 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11443 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11444 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11445 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11446 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11447 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11448 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11450 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11452 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11455 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11456 (vget_low_s64): Use __GET_LOW macro.
11457 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11458 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11459 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11460 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11461 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11463 (vcombine_s64): Use GCC vector extensions; remove cast.
11464 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11465 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11466 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11467 Fix type signature; remove cast.
11469 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11472 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11474 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11476 (BUILTIN_VD1): New.
11477 (BUILTIN_VD_RE): Remove.
11478 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11479 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11480 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11481 variant but not df.
11482 (vreinterpretv1df*, vreinterpret*v1df): New.
11483 (vreinterpretdf*, vreinterpret*df): Remove.
11484 * config/aarch64/aarch64-simd.md (aarch64_create,
11485 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11486 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11488 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11489 (vcreate_f64): Remove cast, use v1df builtin.
11490 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11491 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11492 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11493 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11494 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11495 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11496 add range check using __builtin_aarch64_im_lane_boundsi.
11497 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11498 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11499 type signature, use gcc vector extensions.
11500 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11501 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11502 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11503 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11504 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11505 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11506 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11507 vreinterpret_u64_f64): Use v1df builtin not df.
11509 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11511 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11514 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11516 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11519 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11521 * loop-invariant.c (pre_check_invariant_p): New function.
11522 (find_invariant_insn): Call pre_check_invariant_p.
11524 2014-06-22 Richard Henderson <rth@redhat.com>
11527 * compare-elim.c (struct comparison): Add eh_note.
11528 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11529 a redundant comparison in a different EH region. Purge EH edges if
11532 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11534 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11535 (var_shift): Use it.
11536 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11537 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11538 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11539 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11540 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11541 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11542 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11543 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11544 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11545 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11546 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11547 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11548 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11549 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11550 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11551 *rotldi3_internal15be): Use the new attribute. Merge register and
11552 integer alternatives.
11554 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11556 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11557 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11558 split, *ashrdi3_internal3 and split): Delete, merge into...
11559 (ashr<mode>3): New expander.
11560 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11561 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11563 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11565 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11566 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11567 *rotldi3_internal3 and split): Delete, merge into...
11568 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11569 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11570 Use "rotlw" extended mnemonic.
11572 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11574 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11575 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11576 and split, *ashldi3_internal3 and split): Delete, merge into...
11577 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11578 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11580 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11582 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11583 (lshrsi3, two anonymous define_insns and define_splits,
11584 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11585 *lshrdi3_internal3 and split): Delete, merge into...
11586 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11587 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11589 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11591 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11592 Remove "O" alternative.
11594 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11596 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11597 (mips_move_from_gpr_cost): Likewise.
11598 (mips_register_move_cost): Update accordingly.
11599 (mips_secondary_reload_class): Remove name of in_p.
11601 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11604 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11605 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11607 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11609 * config/nios2/nios2.c: Include "builtins.h".
11611 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11613 * cgraph.h (tls_model_names): New variable.
11614 * print-tree.c (print_node): Simplify.
11615 * varpool.c (tls_model_names): New variable.
11616 (dump_varpool_node): Output tls model.
11618 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11620 * ipa-visibility.c (function_and_variable_visibility): Disable
11621 temporarily local aliases for some targets.
11623 2014-06-20 Marek Polacek <polacek@redhat.com>
11625 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11626 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11627 into SANITIZE_UNDEFINED.
11628 * doc/invoke.texi: Describe -fsanitize=bounds.
11629 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11630 functions created in the FEs.
11631 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11632 (expand_UBSAN_BOUNDS): New function.
11633 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11634 * internal-fn.h: Don't define internal functions here.
11635 * opts.c (common_handle_option): Add -fsanitize=bounds.
11636 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11637 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11638 * tree-core.h: Define internal functions here.
11639 (struct tree_base): Add ifn field.
11640 * tree-pretty-print.c: Include "internal-fn.h".
11641 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11642 * tree.c (get_callee_fndecl): Likewise.
11643 (build_call_expr_internal_loc): New function.
11644 * tree.def (CALL_EXPR): Update description.
11645 * tree.h (CALL_EXPR_IFN): Define.
11646 (build_call_expr_internal_loc): Declare.
11647 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11649 (ubsan_type_descriptor): Change bool parameter to enum
11650 ubsan_print_style. Adjust the code. Add handling of
11652 (ubsan_expand_bounds_ifn): New function.
11653 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11654 (ubsan_build_overflow_builtin): Likewise.
11655 (instrument_bool_enum_load): Likewise.
11656 (ubsan_instrument_float_cast): Likewise.
11657 * ubsan.h (enum ubsan_print_style): New enum.
11658 (ubsan_expand_bounds_ifn): Declare.
11659 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11661 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11663 * config/rs6000/rs6000.md: Append `DONE' to preparation
11664 statements of `bswap' pattern splitters.
11666 2014-06-20 Tom de Vries <tom@codesourcery.com>
11668 * target.def (call_fusage_contains_non_callee_clobbers): Update
11670 * doc/tm.texi: Regenerate.
11672 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11673 Max Ostapenko <m.ostapenko@partner.samsung.com>
11676 * asan.c (instrument_strlen_call): Fixed instrumentation of
11679 2014-06-20 Martin Jambor <mjambor@suse.cz>
11682 * ipa-prop.c (impossible_devirt_target): New function.
11683 (try_make_edge_direct_virtual_call): Use it, also instead of
11686 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11687 Max Ostapenko <m.ostapenko@partner.samsung.com>
11690 * asan.c (build_check_stmt): Add condition.
11692 2014-06-20 Martin Jambor <mjambor@suse.cz>
11695 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11698 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11700 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11702 (VCONQ): Make comment more helpful.
11704 * config/aarch64/aarch64-simd.md
11705 (aarch64_sqdmulh_lane<mode>):
11706 Use VCOND for operands 2. Update lane checking and flipping logic.
11707 (aarch64_sqrdmulh_lane<mode>): Likewise.
11708 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11709 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11710 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11711 attribute of operand 3 to VCOND.
11712 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11713 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11714 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11715 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11716 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11717 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11719 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11720 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11721 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11722 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11723 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11724 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11725 operand to VCOND. Update lane flipping and bounds checking logic.
11726 (aarch64_sqdmlal2_lane<mode>): Likewise.
11727 (aarch64_sqdmlsl_lane<mode>): Likewise.
11728 (aarch64_sqdmull_lane<mode>): Likewise.
11729 (aarch64_sqdmull2_lane<mode>): Likewise.
11730 (aarch64_sqdmlal_laneq<mode>):
11731 Replace VCON usage with VCONQ.
11732 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11733 (aarch64_sqdmlal2_laneq<mode>): Emit
11734 aarch64_sqdmlal2_laneq<mode>_internal insn.
11735 Replace VCON with VCONQ.
11736 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11737 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11738 (aarch64_sqdmull_laneq<mode>): Emit
11739 aarch64_sqdmull_laneq<mode>_internal insn.
11740 Replace VCON with VCONQ.
11741 (aarch64_sqdmull2_laneq<mode>): Emit
11742 aarch64_sqdmull2_laneq<mode>_internal insn.
11743 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11744 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11745 of 3rd argument to int16x4_t.
11746 (vqdmlalh_lane_s16): Likewise.
11747 (vqdmlslh_lane_s16): Likewise.
11748 (vqdmull_high_lane_s16): Likewise.
11749 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11750 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11751 (vqdmlsl_lane_s16): Likewise.
11752 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11753 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11754 (vqdmlals_lane_s32): Likewise.
11755 (vqdmlsls_lane_s32): Likewise.
11756 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11757 (vqdmulls_lane_s32): Likewise.
11758 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11759 (vqdmlsl_lane_s32): Likewise.
11760 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11761 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11762 (vqrdmulhh_lane_s16): Likewise.
11763 (vqdmlsl_high_lane_s16): Likewise.
11764 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11765 (vqdmlsl_high_lane_s32): Likewise.
11766 (vqrdmulhs_lane_s32): Likewise.
11768 2014-06-20 Tom de Vries <tom@codesourcery.com>
11770 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11771 get_call_reg_set_usage.
11773 2014-06-20 Tom de Vries <tom@codesourcery.com>
11775 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11776 it contains all call_used_regs.
11778 2014-06-20 Tom de Vries <tom@codesourcery.com>
11780 * final.c (collect_fn_hard_reg_usage): Add and use variable
11781 function_used_regs.
11783 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11785 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11786 (set_init_priority, get_init_priority, set_fini_priority,
11787 get_fini_priority): New methods.
11788 * tree.c (init_priority_for_decl): Remove.
11789 (init_ttree): Do not initialize init priority.
11790 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11791 (decl_priority_info): Remove.
11792 (decl_init_priority_insert): Rewrite.
11793 (decl_fini_priority_insert): Rewrite.
11794 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11795 tree_priority_map_marked_p): Remove.
11796 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11797 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11798 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11799 not output priorities.
11800 (pack_ts_function_decl_value_fields): Likewise.
11801 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11802 not input priorities.
11803 (unpack_ts_function_decl_value_fields): Likewise.
11804 * symtab.c (symbol_priority_map): Declare.
11805 (init_priority_hash): Declare.
11806 (symtab_unregister_node): Unregister from priority hash, too.
11807 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11809 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11810 (symbol_priority_info): New function.
11811 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11813 * tree-core.h (tree_priority_map): Remove.
11815 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11817 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11818 0xff to uint64_t before shifting it up.
11820 2014-06-20 Julian Brown <julian@codesourcery.com>
11821 Chung-Lin Tang <cltang@codesourcery.com>
11823 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11824 TARGET_THUMB1_ONLY. Add comments.
11826 2014-06-19 Tom de Vries <tom@codesourcery.com>
11828 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11829 return type to void.
11830 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11832 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11834 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11835 as "move", from depends_on.
11837 2014-06-19 Terry Guo <terry.guo@arm.com>
11839 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11842 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11844 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11846 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11848 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11851 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11852 addresses here if reload in progress or completed.
11854 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11856 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11857 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11858 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11859 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11860 (mips_register_priority): New function that implements the target
11861 hook TARGET_REGISTER_PRIORITY.
11862 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11863 (mips_lra_p): Likewise for TARGET_LRA_P.
11864 (TARGET_REGISTER_PRIORITY): Define macro.
11865 (TARGET_SPILL_CLASS): Likewise.
11866 (TARGET_LRA_P): Likewise.
11867 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11869 (REG_CLASS_NAMES): Likewise.
11870 (REG_CLASS_CONTENTS): Likewise.
11871 (BASE_REG_CLASS): Use M16_SP_REGS.
11872 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11873 New set attribute to enable alternatives depending on the register
11875 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11876 (*lea64): Disable pattern for MIPS16.
11877 * config/mips/mips.opt (mlra): New option.
11879 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11881 * lra-constraints.c (base_to_reg): New function.
11882 (process_address): Use new function.
11884 2014-06-18 Tom de Vries <tom@codesourcery.com>
11886 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11887 * config/aarch64/aarch64.c
11888 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11889 (aarch64_emit_call_insn): New function.
11890 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11892 * config/aarch64/aarch64.md (define_expand "call_internal")
11893 (define_expand "call_value_internal", define_expand "sibcall_internal")
11894 (define_expand "sibcall_value_internal"): New.
11895 (define_expand "call", define_expand "call_value")
11896 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11897 expand variant and aarch64_emit_call_insn.
11899 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11900 Tom de Vries <tom@codesourcery.com>
11902 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11903 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11905 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11906 clobbers to CALL_INSN_FUNCTION_USAGE.
11907 (define_expand "sibcall_internal")
11908 (define_expand "sibcall_value_internal"): New.
11909 (define_expand "call", define_expand "call_value"): Add argument to
11910 arm_emit_call_insn.
11911 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11912 (define_expand "sibcall_value"): Use sibcall_value_internal and
11913 arm_emit_call_insn.
11915 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11917 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11919 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11921 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11924 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11926 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11927 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11928 annotations. Fix DWARF information.
11930 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11932 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11933 __udivmoddi4, and fixups for negative operands.
11935 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11937 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11939 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11941 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11944 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11946 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11949 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11951 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11952 describing register usage on function entry and exit.
11954 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11956 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11957 (__aeabi_ldivmod): Fix whitespace.
11959 2014-06-18 Andreas Schwab <schwab@suse.de>
11961 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11962 Remove blank line after @item.
11964 2014-06-18 Richard Henderson <rth@redhat.com>
11967 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11969 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11971 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11972 POST_MODIFY for neon loads and stores.
11973 (arm_print_operand): Output post-index register for neon loads and
11976 2014-06-18 Richard Biener <rguenther@suse.de>
11978 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11980 2014-06-18 Richard Biener <rguenther@suse.de>
11982 * tree-pass.h (make_pass_dce_loop): Remove.
11983 * passes.def: Replace pass_dce_loop with pass_dce.
11984 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11985 changed free niter estimates and reset the scev cache.
11986 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11987 make_pass_dce_loop): Remove.
11988 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11989 (fini_copy_prop): Return whether something changed. Always
11990 let substitute_and_fold perform DCE and free niter estimates
11991 and reset the scev cache if so.
11992 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11993 (pass_data_copy_prop): Do not unconditionally schedule
11994 cleanup-cfg or update-ssa.
11996 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11998 PR tree-optimization/61518
11999 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12000 reduction var is used in reduction stmt or phi-function only.
12002 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12004 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12006 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12008 PR tree-optimization/61517
12009 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12010 whose rhs's first tree is the source expression instead of the
12012 (find_bswap_or_nop): Likewise.
12013 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12014 gimple stmt whose rhs's first tree is the source. In the memory source
12015 case, move the stmt to be replaced close to one of the original load to
12016 avoid the problem of a store between the load and the stmt's original
12018 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12021 2014-06-18 Andreas Schwab <schwab@suse.de>
12023 PR rtl-optimization/54555
12024 * postreload.c (move2add_use_add2_insn): Substitute
12025 STRICT_LOW_PART only if it is cheaper.
12027 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
12029 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12030 Do not use unspec as call operand. Use memory_operand instead of
12031 memory_nox32_operand and add "m" operand constraint. Disable
12032 pattern for TARGET_X32.
12033 (*sibcall_pop_memory): Ditto.
12034 (*sibcall_value_memory): Ditto.
12035 (*sibcall_value_pop_memory): Ditto.
12036 (sibcall peepholes): Merge SImode and DImode patterns using
12037 W mode iterator. Use memory_operand instead of memory_nox32_operand.
12038 Disable pattern for TARGET_X32. Check if eliminated register is
12039 really dead after call insn. Generate call RTX without unspec operand.
12040 (sibcall_value peepholes): Ditto.
12041 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
12042 instead of memory_nox32_operand. Check if eliminated register is
12043 really dead after call insn. Generate call RTX without unspec operand.
12044 (sibcall_value_pop peepholes): Ditto.
12045 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
12047 2014-06-18 Terry Guo <terry.guo@arm.com>
12050 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
12053 2014-06-18 Olivier Hainque <hainque@adacore.com>
12055 * tree-core.h (tree_block): Add an "end_locus" field, allowing
12056 memorization of the end of block source location.
12057 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
12058 * gimplify.c (gimplify_bind_expr): Propagate the block start and
12059 end source location info we have on the block entry/exit code we
12062 2014-06-18 Richard Biener <rguenther@suse.de>
12064 * common.opt (fssa-phiopt): New option.
12065 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12067 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12068 * doc/invoke.texi (-fssa-phiopt): Document.
12070 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12072 * genattrtab.c (n_bypassed): New variable.
12073 (process_bypasses): Initialise n_bypassed.
12074 Count number of bypassed reservations.
12075 (make_automaton_attrs): Allocate space for bypassed reservations
12076 rather than number of bypasses.
12078 2014-06-18 Richard Biener <rguenther@suse.de>
12080 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
12081 we propagated anything.
12082 (substitute_and_fold_dom_walker::before_dom_children): Something
12083 changed if we propagated into PHI arguments.
12084 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
12087 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
12089 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
12091 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
12092 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
12093 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
12094 Introduces alternative way of loads group permutaions.
12095 (vect_transform_grouped_load): Try alternative way of permutations.
12097 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12099 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12100 changed in ORT_TARGET region, don't jump to do_outer.
12101 (struct gimplify_adjust_omp_clauses_data): New type.
12102 (gimplify_adjust_omp_clauses_1): Adjust for data being
12103 a struct gimplify_adjust_omp_clauses_data pointer instead
12104 of tree *. Pass pre_p as a new argument to
12105 lang_hooks.decls.omp_finish_clause hook.
12106 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12107 splay_tree_foreach to pass both list_p and pre_p.
12108 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12109 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12110 gimplify_adjust_omp_clauses callers.
12111 * langhooks.c (lhd_omp_finish_clause): New function.
12112 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12113 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12114 * langhooks.h (struct lang_hooks_for_decls): Add a new
12115 gimple_seq * argument to omp_finish_clause hook.
12116 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12117 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12118 (scan_omp_parallel, lower_omp_for): When adding
12119 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12120 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12121 * tree-nested.c (convert_nonlocal_omp_clauses,
12122 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12123 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12125 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12127 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12128 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12130 2014-06-17 Xinliang David Li <davidxl@google.com>
12132 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12133 * passes.c (pass_init_dump_file): Do not set initialize
12134 flag to false unconditionally.
12136 2014-06-17 Richard Biener <rguenther@suse.de>
12138 * genopinit.c (main): Use vec<>::qsort method.
12139 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12141 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12143 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12145 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12146 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12147 (mips_move_to_gpr_cost): Remove ST_REGS case.
12148 (mips_move_from_gpr_cost): Likewise.
12149 (mips_register_move_cost): Likewise.
12150 (mips_secondary_reload_class): Likewise.
12152 2014-06-17 Richard Biener <rguenther@suse.de>
12154 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12155 (pass_all_optimizations): Move 3rd copy-prop pass from after
12156 fre to before ifcombine/phiopt.
12158 2014-06-17 Richard Biener <rguenther@suse.de>
12160 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12161 and allow all blocks to be forwarders.
12163 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12166 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12167 variable 'size'; calculate 'size' right in the front; use
12168 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12169 pcum->aapcs_stack_words.
12171 2014-06-17 Nick Clifton <nickc@redhat.com>
12173 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12174 (umulhi3, mulsidi3, umulsidi3): Likewise.
12176 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12178 PR middle-end/61508
12179 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12180 check for section name.
12182 2014-06-17 Richard Biener <rguenther@suse.de>
12184 * tree-ssa-propagate.c: Include domwalk.h.
12185 (substitute_and_fold): Outline main worker into a domwalker ...
12186 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12187 Schedule stmts we can fully propagate for removal. Remove
12189 (substitute_and_fold): Apply a dominator walk to perform
12190 substitution. Process stmts scheduled for removal here.
12192 2014-06-17 Richard Biener <rguenther@suse.de>
12194 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12195 of PHI node moving.
12197 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12199 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12200 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12201 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12202 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12203 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12205 (get_fpscr) : Likewise.
12207 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12209 PR rtl-optimization/61325
12210 * lra-constraints.c (valid_address_p): Add forward declaration.
12211 (simplify_operand_subreg): Check address validity before and after
12212 alter_reg of memory subreg.
12214 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12216 * config/i386/i386.c (decide_alg): Correctly handle
12217 maximum size of stringop algorithm.
12219 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12221 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12223 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12225 PR rtl-optimization/61522
12226 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12228 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12231 * symtab.c (symtab_node::reset_section): New method.
12232 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12234 * cgraph.h (reset_section): Declare.
12235 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12236 do not consider comdat locals.
12237 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12239 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12240 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12241 reset sections of symbols dragged out of the comdats.
12242 (function_and_variable_visibility): Reset sections of
12245 2014-06-16 Richard Biener <rguenther@suse.de>
12247 PR tree-optimization/61482
12248 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12249 [-INF(OVF), +INF(OVF)] range.
12251 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12253 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12254 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12255 handling 32-bit multiplication.
12257 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12259 PR middle-end/61430
12260 * lra-lives.c (process_bb_lives): Skip creating copy during
12261 insn scan when src/dest has constrained to same regno.
12263 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12265 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12266 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12268 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12270 * asan.c (check_func): New function.
12271 (maybe_create_ssa_name): Likewise.
12272 (build_check_stmt_with_calls): Likewise.
12273 (use_calls_p): Likewise.
12274 (report_error_func): Change interface.
12275 (build_check_stmt): Allow non-integer lengths; add support
12277 (asan_instrument): Likewise.
12278 (instrument_mem_region_access): Moved code to build_check_stmt.
12279 (instrument_derefs): Likewise.
12280 (instrument_strlen_call): Likewise.
12281 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12282 * doc/invoke.texi: Describe new parameter.
12283 * params.def: Define new parameter.
12284 * params.h: Likewise.
12285 * sanitizer.def: Describe new builtins.
12287 2014-06-16 Richard Biener <rguenther@suse.de>
12289 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12290 Make all defs available at the end.
12291 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12293 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12296 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12298 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12301 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12302 initialization. Replace remaining use of uid.
12304 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12306 * c-family/c-common.c (handle_tls_model_attribute): Use
12307 set_decl_tls_model.
12308 * c-family/c-common.c (handle_tls_model_attribute): Use
12309 set_decl_tls_model.
12310 * cgraph.h (struct varpool_node): Add tls_model.
12311 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12312 * tree.h (DECL_TLS_MODEL): Update.
12313 (DECL_THREAD_LOCAL_P): Check that variable is static.
12314 (decl_tls_model): Declare.
12315 (set_decl_tls_model): Declare.
12316 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12317 set symbol prorperties.
12318 (get_emutls_init_templ_addr): Cleanup.
12319 (new_emutls_decl): Update.
12320 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12321 (lto_input_varpool_node): Likewise.
12322 * lto-streamer-out.c (hash_tree): Likewise.
12323 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12324 not stream DECL_TLS_MODEL.
12325 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12326 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12328 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12330 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12332 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12334 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12335 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12337 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12338 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12339 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12340 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12341 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12342 (df_get_artificial_defs, df_get_artificial_uses)
12343 (df_single_def, df_single_use): Update accordingly.
12344 (df_refs_chain_dump): Take the first element in a linked list as
12345 parameter, rather than a pointer to an array of pointers.
12346 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12347 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12348 (df_chain_create_bb_process_use): Likewise.
12349 (df_md_bb_local_compute_process_def): Likewise.
12350 * fwprop.c (process_defs, process_uses): Likewise.
12351 (register_active_defs, update_uses): Likewise.
12352 (forward_propagate_asm): Update for new df_ref linking.
12353 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12354 (df_null_ref_rec, df_null_mw_rec): Likewise.
12355 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12357 (df_scan_free_bb_info): Remove check for null artificial_defs.
12358 (df_install_ref_incremental): Adjust for new df_ref linking.
12359 Use a single-element insertion rather than a full sort.
12360 (df_ref_chain_delete_du_chain): Take the first element
12361 in a linked list as parameter, rather than a pointer to an array of
12363 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12364 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12365 (df_insn_info_delete): Remove check for null defs and call to
12366 df_scan_free_mws_vec.
12367 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12368 null rather than df_null_*_rec.
12369 (df_insn_rescan_debug_internal): Likewise, and update null
12370 checks in the same way. Remove check for null defs.
12371 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12372 Move a single element rather doing a full sort.
12373 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12375 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12376 Initialize df_ref and df_mw_hardreg lists to null rather than
12378 (df_ref_compare): Take df_refs as parameter, transferring the
12379 old interface to...
12380 (df_ref_ptr_compare): ...this new function.
12381 (df_sort_and_compress_refs): Update accordingly.
12382 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12383 old interface to...
12384 (df_mw_ptr_compare): ...this new function.
12385 (df_sort_and_compress_mws): Update accordingly.
12386 (df_install_refs, df_install_mws): Return a linked list rather than
12387 an array of pointers.
12388 (df_refs_add_to_chains): Assert that old lists are empty rather
12390 (df_insn_refs_verify): Don't handle null defs speciailly.
12391 * web.c (union_match_dups): Update for new df_ref linking.
12393 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12395 * df.h (df_ref_create, df_ref_remove): Delete.
12396 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12397 (df_ref_remove): Likewise.
12399 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12401 * df.h (df_single_def, df_single_use): New functions.
12402 * ira.c (find_moveable_pseudos): Use them.
12404 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12406 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12407 * df-problems.c (df_note_bb_compute): Use it.
12408 * regstat.c (regstat_bb_compute_ri): Likewise.
12410 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12412 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12413 * cse.c (cse_extended_basic_block): Use them.
12414 * dce.c (mark_artificial_use): Likewise.
12415 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12416 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12417 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12418 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12419 (df_simulate_initialize_backwards): Likewise.
12420 (df_simulate_finalize_backwards): Likewise.
12421 (df_simulate_initialize_forwards): Likewise.
12422 (df_md_simulate_artificial_defs_at_top): Likewise.
12423 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12424 * regrename.c (init_rename_info): Likewise.
12425 * regstat.c (regstat_bb_compute_ri): Likewise.
12426 (regstat_bb_compute_calls_crossed): Likewise.
12428 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12430 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12431 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12432 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12433 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12434 * combine.c (create_log_links): Likewise.
12435 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12436 (try_eliminate_compare): Likewise.
12437 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12438 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12439 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12440 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12441 (word_dce_process_block, dce_process_block): Likewise.
12442 * ddg.c (def_has_ccmode_p): Likewise.
12443 * df-core.c (df_bb_regno_first_def_find): Likewise.
12444 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12445 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12446 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12447 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12448 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12449 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12450 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12451 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12452 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12453 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12454 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12455 * fwprop.c (local_ref_killed_between_p): Likewise.
12456 (all_uses_available_at, free_load_extend): Likewise.
12457 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12458 * hw-doloop.c (scan_loop): Likewise.
12459 * ifcvt.c (dead_or_predicable): Likewise.
12460 * init-regs.c (initialize_uninitialized_regs): Likewise.
12461 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12462 (process_bb_node_lives): Likewise.
12463 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12464 (find_moveable_pseudos): Likewise.
12465 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12466 * recog.c (peep2_find_free_register): Likewise.
12467 * ree.c (get_defs): Likewise.
12468 * regstat.c (regstat_bb_compute_ri): Likewise.
12469 (regstat_bb_compute_calls_crossed): Likewise.
12470 * sched-deps.c (find_inc, find_mem): Likewise.
12471 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12472 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12473 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12474 (prepare_shrink_wrap): Likewise.
12475 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12476 * web.c (union_defs, pass_web::execute): Likewise.
12477 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12478 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12480 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12482 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12483 to inheritance pseudos.
12484 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12486 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12489 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12490 (BU_MISC_2): Rename to ...
12491 (BU_LDBL128_2): ... this.
12492 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12493 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12494 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12495 RS6000_BTM_LDBL128.
12496 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12497 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12498 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12499 (unpacktf_1): Likewise.
12500 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12501 (__builtin_longdouble_dw1): Likewise.
12502 * doc/sourcebuild.texi (longdouble128): Document.
12504 2014-06-13 Jeff Law <law@redhat.com>
12506 PR rtl-optimization/61094
12507 PR rtl-optimization/61446
12508 * ree.c (combine_reaching_defs): Get the mode for the copy from
12509 the extension insn rather than the defining insn.
12511 2014-06-13 Dehao Chen <dehao@google.com>
12513 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12515 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12517 * doc/install.texi (--enable-linker-plugin-configure-flags)
12518 (--enable-linker-plugin-flags): Document new flags.
12520 2014-06-13 Martin Jambor <mjambor@suse.cz>
12523 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12524 cache_token if returning early.
12526 2014-06-13 Nick Clifton <nickc@redhat.com>
12528 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12529 requested alignment is active.
12530 (LABEL_ALIGN): Likewise.
12531 (LOOP_ALIGN): Likewise.
12533 2014-06-13 Richard Biener <rguenther@suse.de>
12535 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12536 Rewrite to propagate the VN result into all uses where
12537 possible and to remove stmts becoming dead because of that.
12538 (eliminate): Generalize stmt removal handling, remove in
12539 reverse dominator order to support proper debug stmt
12540 generation. Update stmts before removing stmts.
12541 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12543 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12545 PR tree-optimization/61375
12546 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12547 symbolic number cannot be represented in an uint64_t.
12548 (find_bswap_or_nop_1): Likewise.
12550 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12552 * symtab.c (symtab_node::reset_section): New method.
12553 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12555 * cgraph.h (reset_section): Declare.
12556 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12557 do not consider comdat locals.
12558 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12560 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12561 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12562 reset sections of symbols dragged out of the comdats.
12563 (function_and_variable_visibility): Reset sections of
12566 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12568 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12569 to use symtab and decl_binds_to_current_def_p
12570 * tree-vectorizer.c (increase_alignment): Increase alignment
12571 of alias target, too.
12573 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12575 PR middle-end/61486
12576 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12577 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12578 if outer combined construct is distribute.
12579 (gimplify_omp_for): For OMP_DISTRIBUTE set
12580 gimplify_omp_ctxp->distribute.
12581 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12582 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12583 mapping into decl map.
12585 2014-06-12 Jason Merrill <jason@redhat.com>
12587 * common.opt (fabi-version): Change default to 0.
12589 2014-06-12 Jason Merrill <jason@redhat.com>
12591 * toplev.c (process_options): Reject -fabi-version=1.
12593 2014-06-12 Jeff Law <law@redhat.com>
12595 PR tree-optimization/61009
12596 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12597 value when we stop processing a block due to problematic PHIs.
12599 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12601 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12602 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12603 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12604 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12605 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12606 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12607 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12608 are not in the spec.
12610 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12613 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12614 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12617 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12619 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12621 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12624 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12625 loading from address spaces.
12627 2014-06-12 Martin Liska <mliska@suse.cz>
12630 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12631 statement is reachable.
12633 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12635 * symtab.c (section_hash): New hash.
12636 (symtab_unregister_node): Clear section before freeing.
12637 (hash_section_hash_entry): New haser.
12638 (eq_sections): New function.
12639 (symtab_node::set_section_for_node): New method.
12640 (set_section_1): Update.
12641 (symtab_node::set_section): Take string instead of tree as parameter.
12642 (symtab_resolve_alias): Update.
12643 * cgraph.h (section_hash_entry_d): New structure.
12644 (section_hash_entry): New typedef.
12645 (cgraph_node): Change comdat_group_ to x_comdat_group,
12646 change section_ to x_section and turn into section_hash_entry;
12647 update accestors; put set_section_for_node offline.
12648 * tree.c (decl_section_name): Turn into string.
12649 (set_decl_section_name): Change parameter to be string.
12650 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12651 * sdbout.c (sdbout_one_type): Update.
12652 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12653 * varasm.c (IN_NAMED_SECTION, get_named_section,
12654 resolve_unique_section, hot_function_section, get_named_text_section,
12655 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12656 make_decl_rtl, default_unique_section): Update.
12657 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12658 (c6x_elf_unique_section): Update.
12659 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12660 * config/pa/pa.c (pa_function_section): Update.
12661 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12662 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12663 * config/arc/arc.c (arc_in_small_data_p): Update.
12664 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12665 * config/mcore/mcore.c (mcore_unique_section): Update.
12666 * config/mips/mips.c (mips16_build_function_stub): Update.
12667 (mips16_build_call_stub): Update.
12668 (mips_function_rodata_section): Update.
12669 (mips_in_small_data_p): Update.
12670 * config/score/score.c (score_in_small_data_p): Update.
12671 * config/rx/rx.c (rx_in_small_data): Update.
12672 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12673 (rs6000_xcoff_asm_named_section): Update.
12674 (rs6000_xcoff_unique_section): Update.
12675 * config/frv/frv.c (frv_string_begins_with): Update.
12676 (frv_in_small_data_p): Update.
12677 * config/v850/v850.c (v850_encode_data_area): Update.
12678 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12679 (bfin_handle_l1_data_attribute): Update.
12680 (bfin_handle_l2_attribute): Update.
12681 * config/mep/mep.c (mep_unique_section): Update.
12682 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12684 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12685 (h8300_handle_tiny_data_attribute): Update.
12686 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12687 (m32r_in_small_data_p): Update.
12688 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12689 * config/i386/i386.c (ix86_in_large_data_p): Update.
12690 * config/i386/winnt.c (i386_pe_unique_section): Update.
12691 * config/darwin.c (darwin_function_section): Update.
12692 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12693 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12694 (new_emutls_decl): Update.
12695 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12696 input_varpool_node): Update.
12697 (ead_string_cst): Turn to ...
12698 (read_string): ... this one.
12699 * dwarf2out.c (secname_for_decl): Update.
12700 * asan.c (asan_protect_global): Update.
12702 2014-06-11 DJ Delorie <dj@redhat.com>
12704 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12706 * config/rx/rx.c (rx_option_override): Likewise.
12707 (rx_align_for_label): Likewise.
12709 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12711 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12713 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12716 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12718 * common.md: New file.
12719 * doc/md.texi: Update description of generic, machine-independent
12721 * config/s390/constraints.md (e): Delete.
12722 * Makefile.in (md_file): Include common.md.
12723 * config/m32c/t-m32c (md_file): Likewise.
12724 * genpreds.c (general_mem): New array.
12725 (generic_constraint_letters): Remove constraints now defined by
12727 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12728 Allow the first character to be '<' or '>' as well.
12729 * genoutput.c (general_mem): New array.
12730 (indep_constraints): Remove constraints now defined by common.md.
12731 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12732 Remove special handling of 'm'.
12733 * ira-costs.c (record_reg_classes): Remove special handling of
12734 constraints now defined by common.md.
12735 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12736 * ira-lives.c (single_reg_class): Likewise.
12737 (ira_implicitly_set_insn_hard_regs): Likewise.
12738 * lra-constraints.c (reg_class_from_constraints): Likewise.
12739 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12740 * postreload.c (reload_cse_simplify_operands): Likewise.
12741 * reload.c (push_secondary_reload, scratch_reload_class)
12742 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12743 * reload1.c (maybe_fix_stack_asms): Likewise.
12744 * targhooks.c (default_secondary_reload): Likewise.
12745 * stmt.c (parse_output_constraint): Likewise.
12746 * recog.c (preprocess_constraints): Likewise.
12747 (constrain_operands, peep2_find_free_register): Likewise.
12748 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12749 must be handled specially.
12751 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12753 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12754 * genpreds.c (have_const_dbl_constraints): Delete.
12755 (add_constraint): Don't set it.
12756 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12757 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12758 constraints using the lookup_constraint logic.
12759 * ira-lives.c (single_reg_class): Likewise.
12760 * ira.c (ira_setup_alts): Likewise.
12761 * lra-constraints.c (process_alt_operands): Likewise.
12762 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12763 * reload.c (find_reloads): Likewise.
12765 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12767 * genpreds.c (const_int_start, const_int_end): New variables.
12768 (choose_enum_order): Output CONST_INT constraints before memory
12770 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12772 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12773 * ira.c (ira_setup_alts): Likewise.
12774 * lra-constraints.c (process_alt_operands): Likewise.
12775 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12776 * reload.c (find_reloads): Likewise.
12778 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12780 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12781 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12782 * recog.c (preprocess_constraints): Update accordingly.
12784 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12786 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12787 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12788 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12789 * genpreds.c (print_type_tree): New function.
12790 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12791 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12792 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12793 Write out enum constraint_type and get_constraint_type.
12794 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12795 constraint_num rather than a constraint string.
12796 (satisfies_address_constraint_p): Likewise.
12797 (reg_class_from_constraints): Avoid old constraint macros.
12798 (process_alt_operands, process_address_1): Likewise.
12799 (curr_insn_transform): Likewise.
12800 * ira-costs.c (record_reg_classes): Likewise.
12801 (record_operand_costs): Likewise.
12802 * ira-lives.c (single_reg_class): Likewise.
12803 (ira_implicitly_set_insn_hard_regs): Likewise.
12804 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12805 * postreload.c (reload_cse_simplify_operands): Likewise.
12806 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12807 (constrain_operands, peep2_find_free_register): Likewise.
12808 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12809 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12810 * reload1.c (maybe_fix_stack_asms): Likewise.
12811 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12812 * targhooks.c (default_secondary_reload): Likewise.
12813 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12814 to EXTRA_CONSTRAINT_STR.
12815 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12817 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12819 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12820 (write_constraint_satisfied_p_array): ...this new function.
12821 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12823 (write_insn_preds_c): Update accordingly.
12825 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12827 * genpreds.c (write_lookup_constraint): Rename to...
12828 (write_lookup_constraint_1): ...this.
12829 (write_lookup_constraint_array): New function.
12830 (write_tm_preds_h): Define lookup_constraint as an inline function
12831 that uses write_lookup_constraint_array where possible.
12832 (write_insn_preds_c): Update for the changes above.
12834 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12836 * doc/md.texi (regclass_for_constraint): Rename to...
12837 (reg_class_for_constraint): ...this.
12838 * genpreds.c (num_constraints, enum_order, register_start)
12839 (register_end, satisfied_start, memory_start, memory_end)
12840 (address_start, address_end): New variables.
12841 (add_constraint): Count the number of constraints.
12842 (choose_enum_order): New function.
12843 (write_enum_constraint_num): Iterate over enum_order.
12844 (write_regclass_for_constraint): Rename to...
12845 (write_reg_class_for_constraint_1): ...this and update output
12847 (write_constraint_satisfied_p): Rename to...
12848 (write_constraint_satisfied_p_1): ...this and update output
12849 accordingly. Do nothing if all extra constraints are register
12851 (write_insn_extra_memory_constraint): Delete.
12852 (write_insn_extra_address_constraint): Delete.
12853 (write_range_function): New function.
12854 (write_tm_preds_h): Define constraint_satisfied_p and
12855 reg_class_for_constraint as inline functions that do a range check
12856 before calling the out-of-line function. Use write_range_function
12857 to implement insn_extra_{register,memory,address}_constraint,
12858 the first of which is new.
12859 (write_insn_preds_c): Update after above changes to write_* functions.
12860 (main): Call choose_enum_order.
12862 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12864 PR tree-optimization/61306
12865 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12866 expression instead of its size.
12867 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12868 false to prevent optimization when the result is unpredictable due to
12869 arithmetic right shift of signed type with highest byte is set.
12870 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12871 (init_symbolic_number): Likewise.
12872 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12873 when the result is unpredictable due to sign extension.
12875 2014-06-11 Terry Guo <terry.guo@arm.com>
12877 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12878 (*thumb1_addsi3): Ditto.
12879 (*thumb_subdi3): Ditto.
12880 (thumb1_subsi3_insn): Ditto.
12881 (*thumb_mulsi3): Ditto.
12882 (*thumb_mulsi3_v6): Ditto.
12883 (*thumb1_andsi3_insn): Ditto.
12884 (thumb1_bicsi3): Ditto.
12885 (*thumb1_iorsi3_insn): Ditto.
12886 (*thumb1_xorsi3_insn): Ditto.
12887 (*thumb1_ashlsi3): Ditto.
12888 (*thumb1_ashrsi3): Ditto.
12889 (*thumb1_lshrsi3): Ditto.
12890 (*thumb1_rotrsi3): Ditto.
12891 (*thumb1_negdi2): Ditto.
12892 (*thumb1_negsi2): Ditto.
12893 (*thumb1_abssi2): Ditto.
12894 (*thumb1_neg_abssi2): Ditto.
12895 (*thumb1_one_cmplsi2): Ditto.
12896 (*thumb1_zero_extendhisi2): Ditto.
12897 (*thumb1_zero_extendqisi2): Ditto.
12898 (*thumb1_zero_extendqisi2_v6): Ditto.
12899 (thumb1_extendhisi2): Ditto.
12900 (thumb1_extendqisi2): Ditto.
12901 (*thumb1_movdi_insn): Ditto.
12902 (*thumb1_movsi_insn): Ditto.
12903 (*thumb1_movhi_insn): Ditto.
12904 (thumb_movhi_clobber): Ditto.
12905 (*thumb1_movqi_insn): Ditto.
12906 (*thumb1_movhf): Ditto.
12907 (*thumb1_movsf_insn): Ditto.
12908 (*thumb_movdf_insn): Ditto.
12909 (movmem12b): Ditto.
12911 (cbranchqi4): Ditto.
12912 (cbranchsi4_insn): Ditto.
12913 (cbranchsi4_scratch): Ditto.
12914 (*negated_cbranchsi4): Ditto.
12915 (*tbit_cbranch): Ditto.
12916 (*tlobits_cbranch): Ditto.
12917 (*tstsi3_cbranch): Ditto.
12918 (*cbranchne_decr1): Ditto.
12919 (*addsi3_cbranch): Ditto.
12920 (*addsi3_cbranch_scratch): Ditto.
12921 (*thumb_cmpdi_zero): Ditto.
12922 (cstoresi_eq0_thumb1): Ditto.
12923 (cstoresi_ne0_thumb1): Ditto.
12924 (*cstoresi_eq0_thumb1_insn): Ditto.
12925 (*cstoresi_ne0_thumb1_insn): Ditto.
12926 (cstoresi_nltu_thumb1): Ditto.
12927 (cstoresi_ltu_thumb1): Ditto.
12928 (thumb1_addsi3_addgeu): Ditto.
12929 (*thumb_jump): Ditto.
12930 (*call_reg_thumb1_v5): Ditto.
12931 (*call_reg_thumb1): Ditto.
12932 (*call_value_reg_thumb1_v5): Ditto.
12933 (*call_value_reg_thumb1): Ditto.
12934 (*call_insn): Ditto.
12935 (*call_value_insn): Ditto.
12936 (thumb1_casesi_internal_pic): Ditto.
12937 (thumb1_casesi_dispatch): Ditto.
12938 (*thumb1_indirect_jump): Ditto.
12939 (prologue_thumb1_interwork): Ditto.
12940 (*epilogue_insns): Ditto.
12941 (consttable_1): Ditto.
12942 (consttable_2): Ditto.
12943 (tablejump): Ditto.
12944 (*thumb1_tablejump): Ditto.
12945 (thumb_eh_return): Ditto.
12946 (define_peephole2): Two of them are thumb1 only and got moved into
12947 new file thumb1.md.
12948 (define_split): Six of them are thumb1 only and got moved into new
12950 * config/arm/thumb1.md: New file comprised of above thumb1 only
12953 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12955 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12956 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12958 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12959 (aarch64_crc_builtin_datum): New struct.
12960 (aarch64_crc_builtin_data): New.
12961 (aarch64_init_crc32_builtins): New function.
12962 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12963 (aarch64_crc32_expand_builtin): New.
12964 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12965 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12966 __ARM_FEATURE_CRC32 when appropriate.
12967 (TARGET_CRC32): Define.
12968 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12969 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12970 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12971 (aarch64_<crc_variant>): New pattern.
12972 * config/aarch64/arm_acle.h: New file.
12973 * config/aarch64/iterators.md (CRC): New int iterator.
12974 (crc_variant, crc_mode): New int attributes.
12975 * doc/aarch64-acle-intrinsics.texi: New file.
12976 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12977 Include aarch64-acle-intrinsics.texi.
12979 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12981 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12982 check for stores group of length 3.
12983 (vect_permute_store_chain): New permutations for stores group of
12985 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12986 of vec_perm_shuffle for the new permutations.
12988 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12990 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12991 table rewriting temporarily on targets not supporting ONE_ONLY.
12993 2014-06-11 Richard Biener <rguenther@suse.de>
12995 PR middle-end/61437
12997 2014-06-04 Richard Biener <rguenther@suse.de>
12999 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13000 TREE_PUBLIC and DECL_EXTERNAL decls.
13002 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13004 * varasm.c (set_implicit_section): New function.
13005 (resolve_unique_section): Use it to set implicit section
13007 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13008 (default_function_section): Likewise.
13009 (decl_binds_to_current_def_p): Constify argument.
13010 * varasm.h (decl_binds_to_current_def_p): Update prototype.
13011 * asan.c (asan_protect_global): Use
13012 symtab_get_node (decl)->implicit_section.
13013 * symtab.c (dump_symtab_base): Dump implicit sections.
13014 (verify_symtab_base): Verify sanity of sectoins and comdats.
13015 (symtab_resolve_alias): Alias share the section of its target.
13016 (set_section_1): New function.
13017 (symtab_node::set_section): Move here, recurse to aliases.
13018 (verify_symtab): Check for duplicated symtab lists.
13019 * tree-core.h (implicit_section_name_p): Remove.
13020 * tree-vect-data-refs.c: Include varasm.h.
13021 (vect_can_force_dr_alignment_p): Fix conditional on when
13022 decl bints to current definition; use
13023 symtab_get_node (decl)->implicit_section.
13024 * cgraph.c (cgraph_make_node_local_1): Fix section set.
13025 * cgraph.h (struct symtab_node): Add implicit_section.
13026 (set_section): Rename to ...
13027 (set_section_for_node): ... this one.
13028 (set_section): Declare.
13029 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13030 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13031 input_overwrite_node, input_varpool_node): Stream implicit_section.
13032 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13033 removal; it will fail in LTO.
13035 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13037 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13038 Change second alternative type to f_mcr.
13039 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13040 and 12th alternatives' types to f_mcr and f_mrc.
13041 (*movdi_aarch64): Same for 12th and 13th alternatives.
13042 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13043 (aarch64_movtilow_tilow): Change type to fmov.
13045 2014-06-10 Jiong Wang <jiong.wang@arm.com>
13047 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
13048 (aarch64_save_or_restore_callee_save_registers): Fix layout.
13050 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13052 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
13054 (aarch64_sqrdmulh_lane<mode>): Likewise.
13055 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13056 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13057 (aarch64_sqdmulh_laneq<mode>): New expander.
13058 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13059 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
13060 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
13061 (aarch64_sqdmulh_lane<mode>): New expander.
13062 (aarch64_sqrdmulh_lane<mode>): Likewise.
13063 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13064 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13065 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13066 (aarch64_sqdmlal_laneq<mode>): Likewise.
13067 (aarch64_sqdmlsl_lane<mode>): Likewise.
13068 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13069 (aarch64_sqdmlal2_lane<mode>): Likewise.
13070 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13071 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13072 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13073 (aarch64_sqdmull_lane<mode>): Likewise.
13074 (aarch64_sqdmull_laneq<mode>): Likewise.
13075 (aarch64_sqdmull2_lane<mode>): Likewise.
13076 (aarch64_sqdmull2_laneq<mode>): Likewise.
13078 2014-06-10 Richard Biener <rguenther@suse.de>
13080 PR tree-optimization/61438
13081 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
13082 (eliminate_dom_walker::before_dom_children): Only try to inhibit
13083 insertion of IVs if running PRE.
13084 (eliminate): Adjust.
13085 (pass_pre::execute): Likewise.
13086 (pass_fre::execute): Likewise.
13088 2014-06-10 Richard Biener <rguenther@suse.de>
13090 PR middle-end/61456
13091 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13092 Do not use the main variant for the type comparison.
13093 (ncr_compar): Likewise.
13094 (nonoverlapping_component_refs_p): Likewise.
13096 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
13098 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13099 REG_CFA_RESTORE mode.
13101 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13103 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13104 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13105 expand_vec_perm_pblendv.
13107 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13109 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13111 Simplify description of __crc32d and __crc32cd intrinsics.
13112 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13115 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13118 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13119 * config.in: Regenerate.
13120 * configure: Likewise.
13122 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13124 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13126 (intersect_static_var_sets): Remove.
13127 (propagate): Do not prune local statics.
13129 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13132 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13133 Set lastprivate_firstprivate even if omp_private_outer_ref
13134 langhook returns true.
13135 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13136 langhook, call unshare_expr on new_var and call
13137 build_outer_var_ref to get the last argument.
13139 2014-06-10 Marek Polacek <polacek@redhat.com>
13142 * doc/extend.texi: Add cindex for transparent_union.
13144 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13146 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13147 init_symbolic_number ().
13149 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13151 PR middle-end/61141
13152 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13153 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13154 (verify_rtl_sharing): Likewise.
13156 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13159 * tree.c (build_qualified_type): Use a canonical type for
13162 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13164 * config/arm/arm-modes.def: Remove XFmode.
13166 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13169 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13170 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13171 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13172 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13173 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13174 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13175 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13176 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13177 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13179 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13181 * tree-core.h (tree_decl_with_vis): Remove section_name.
13183 2014-06-09 Kito Cheng <kito@0xlab.org>
13185 * ira.c (ira): Don't call init_caller_save if LRA enabled
13186 since LRA use its own infrastructure to handle that.
13188 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13190 * symtab.c (dump_symtab_base): Update dumping.
13191 (symtab_make_decl_local): Clear only DECL_COMDAT.
13192 * tree-vect-data-refs.c (Check that variable is static before
13193 tampering with sections.
13194 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13195 (cgraph_create_virtual_clone): Likewise.
13196 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13197 (decl_section_name, set_decl_section_name): New accessors.
13198 (find_decls_types_r): Do not walk section name
13199 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13200 (decl_comdat_group, decl_comdat_group_id): Constify.
13201 (decl_section_name, set_decl_section_name): Update.
13202 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13203 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13204 (cgraph_make_node_local_1): Clear section and comdat group.
13205 * cgraph.h (set_comdat_group): Sanity check.
13206 (get_section, set_section): New.
13207 * ipa-comdats.c (ipa_comdats): Use get_section.
13208 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13209 * lto-streamer-out.c: Do not follow section names.
13210 * c-family/c-common.c (handle_section_attribute): Update.
13211 * lto-cgraph.c (lto_output_node): Output section.
13212 (lto_output_varpool_node): Likewise.
13213 (read_comdat_group): Rename to ...
13214 (read_identifier): ... this one.
13215 (read_string_cst): New function.
13216 (input_node, input_varpool_node): Input section names.
13217 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13218 (new_emutls_decl): Update.
13219 (secname_for_decl): Check section names only of static vars.
13220 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13221 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13222 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13223 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13224 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13225 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13226 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13227 * config/v850/v850.c (v850_insert_attributes): Likewise.
13228 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13230 (h8300_handle_tiny_data_attribute): Likewise.
13231 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13232 (bfin_handle_l2_attribute): Likewise.
13234 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13236 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13237 remove static initializer.
13239 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13241 * varasm.c (use_blocks_for_decl_p): Check symbol table
13242 instead of alias attribute.
13243 (place_block_symbol): Recurse on aliases.
13245 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13247 * ipa-visibility.c: Include varasm.h
13248 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13250 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13252 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13253 outputting aliases.
13255 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13257 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13258 from test_insn into GGC space escape via SET_SRC.
13260 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13262 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13263 call statement, if any.
13264 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13265 statements, if any. Tidy up.
13267 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13270 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13271 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13272 handles swapping the two 64-bit double words on little endian
13273 systems. Include V1TImode and optionally TImode in VSX_LE so that
13274 these types are properly swapped. Change all of the insns and
13275 splits that do the 64-bit swaps to use VSX_LE.
13276 (vsx_le_perm_load_<mode>): Likewise.
13277 (vsx_le_perm_store_<mode>): Likewise.
13278 (splitters for little endian memory operations): Likewise.
13279 (vsx_xxpermdi2_le_<mode>): Likewise.
13280 (vsx_lxvd2x2_le_<mode>): Likewise.
13281 (vsx_stxvd2x2_le_<mode>): Likewise.
13283 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13286 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13287 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13288 and corresponding splitters. Zero extend general register
13289 or memory input operand to XMM temporary. Enable for
13290 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13291 (floatunssi<mode>2): Update expander predicate.
13293 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13295 PR rtl-optimization/61325
13296 * lra-constraints.c (process_address_1): Check scale equal to one
13297 to prevent transformation: base + scale * index => base + new_reg.
13299 2014-06-06 Richard Biener <rguenther@suse.de>
13301 PR tree-optimization/59299
13302 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13304 (nearest_common_dominator_of_uses): Likewise.
13305 (statement_sink_location): Adjust. Support sinking loads.
13307 2014-06-06 Martin Jambor <mjambor@suse.cz>
13309 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13310 (build_agg_jump_func_from_list): Likewise.
13311 (determine_known_aggregate_parts): Renamed to
13312 determine_locally_known_aggregate_parts. Moved some functionality
13313 to the two functions above, removed bound checks.
13315 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13317 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13318 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13319 (aarch64_progress_pointer): Likewise.
13320 (aarch64_copy_one_part_and_move_pointers): Likewise.
13321 (aarch64_expand_movmen): Likewise.
13322 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13323 * config/aarch64/aarch64.md (movmem<mode>): New.
13325 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13327 * targhooks.c (default_add_stmt_cost): Call target specific
13328 hook instead of default one.
13330 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13332 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13333 endianness instead of host endianness.
13334 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13337 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13340 * function.c (instantiate_decls): Process the saved static chain.
13341 (expand_function_start): If not optimizing, save the static chain
13343 * tree-nested.c (convert_all_function_calls): Always create the static
13344 chain for nested functions if not optimizing.
13346 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13348 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13350 2014-06-06 Richard Biener <rguenther@suse.de>
13352 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13353 (construct_init_block): Likewise.
13354 (construct_exit_block): Likewise.
13355 (pass_expand::execute): Likewise.
13356 * graphite.c (graphite_transforms): Replace check for current_loops
13357 with a check for > 1 loops.
13358 (pass_graphite_transforms::execute): Adjust.
13359 * ipa-split.c (split_function): Remove check for current_loops.
13360 * omp-low.c (expand_parallel_call): Likewise.
13361 (expand_omp_for_init_counts): Likewise.
13362 (extract_omp_for_update_vars): Likewise.
13363 (expand_omp_for_generic): Likewise.
13364 (expand_omp_sections): Likewise.
13365 (expand_omp_target): Likewise.
13366 * tracer.c (tail_duplicate): Likewise.
13367 (pass_tracer::execute): Likewise.
13368 * trans-mem.c (expand_transaction): Likewise.
13369 * tree-complex.c (expand_complex_div_wide): Likewise.
13370 * tree-eh.c (lower_resx): Likewise.
13371 (cleanup_empty_eh_merge_phis): Likewise.
13372 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13373 current_loops with a check for > 1 loops.
13374 (pass_predcom::execute): Adjust.
13375 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13376 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13377 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13378 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13379 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13380 * tree-switch-conversion.c (process_switch): Likewise.
13381 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13382 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13383 (execute_vrp): Likewise.
13384 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13386 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13388 * rtl.h (insn_location): Declare.
13389 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13390 with UNKNOWN_LOCATION.
13391 * emit-rtl.c (insn_location): New function.
13392 * final.c (notice_source_line): Check that the instruction has a
13393 location before retrieving it and use insn_location.
13394 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13395 * print-rtl.c (print_rtx): Likewise.
13397 2014-06-06 Richard Biener <rguenther@suse.de>
13399 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13401 2014-06-06 Christian Bruel <christian.bruel@st.com>
13403 PR tree-optimization/43934
13404 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13407 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13409 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13410 return NO_REGS for extra address and memory constraints. Handle
13411 operands that match (or are equivalent to something that matches)
13412 extra constant constraints. Ignore other non-register operands.
13414 2014-06-06 Alan Modra <amodra@gmail.com>
13417 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13418 * doc/tm.texi: Regenerate.
13419 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13420 Use throughout in place of REG_PARM_STACK_SPACE.
13421 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13422 "incoming" param. Pass to rs6000_function_parms_need_stack.
13423 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13424 prototype_p when incoming. Use function decl when incoming
13425 to handle K&R style functions.
13426 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13427 (INCOMING_REG_PARM_STACK_SPACE): Define.
13429 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13432 * cfgexpand.c (expand_debug_expr): Use address space of nested
13433 TREE_TYPE for ADDR_EXPR and MEM_REF.
13435 2014-06-05 Jeff Law <law@redhat.com>
13437 PR tree-optimization/61289
13438 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13439 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13440 looking for those which match LHS. All callers changed.
13441 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13442 parameters and code which manipulated them. All callers changed.
13443 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13444 and DST_MAP parameters. Simplify invalidation code by just calling
13445 invalidate_equivalences. All callers changed.
13446 (thread_across_edge): Simplify now that we don't need to maintain
13447 the map of equivalences to invalidate.
13449 2014-06-05 Kai Tietz <ktietz@redhat.com>
13450 Richard Henderson <rth@redhat.com>
13453 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13454 checking for !TARGET_X32.
13455 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13456 (sibcall_intern): New define_insn, plus required peepholes.
13457 (sibcall_pop_intern): Likewise.
13458 (sibcall_value_intern): Likewise.
13459 (sibcall_value_pop_intern): Likewise.
13461 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13463 * tree-inline.c (tree_function_versioning): Check DF info existence
13464 before accessing it.
13466 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13468 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13470 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13471 aarch64_frame hard_fp_offset and frame_size.
13472 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13473 frame_size; remove original_frame_size.
13474 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13475 (aarch64_initial_elimination_offset): Remove frame_size and
13476 offset. Use aarch64_frame frame_size.
13478 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13479 Jiong Wang <jiong.wang@arm.com>
13480 Renlin <renlin.li@arm.com>
13482 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13483 initialization of R30 offset. Update offset. Iterate core
13484 regisers upto X30. Remove X29, X30 specific code.
13486 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13487 Jiong Wang <jiong.wang@arm.com>
13489 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13490 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13491 (aarch64_register_saved_on_entry): Adjust test.
13493 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13495 * config/aarch64/aarch64.h (machine_function): Move
13496 saved_varargs_size from here...
13497 (aarch64_frame): ... to here.
13499 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13500 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13501 (aarch64_initial_elimination_offset)
13502 (aarch64_setup_incoming_varargs): Adjust location of
13503 saved_varargs_size.
13505 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13507 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13510 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13511 Prachi Godbole <Prachi.Godbole@imgtec.com>
13513 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13514 mips32r5 entry to use PROCESSOR_P5600.
13515 * config/mips/mips-tables.opt: Regenerate.
13516 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13517 * config/mips/mips.c (mips_fmadd_bypass): New function.
13518 (mips_rtx_cost_data): Add costs for p5600.
13519 (mips_issue_rate): Add support for p5600.
13520 (mips_multipass_dfa_lookahead): Likewise.
13521 * config/mips/mips.h (TUNE_P5600): New define.
13522 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13523 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13524 * config/mips/mips.md: Include p5600.md.
13525 (processor): Add p5600.
13526 * config/mips/p5600.md: New file.
13528 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13530 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13531 * config/i386/predicates.md (palignr_operand): New.
13532 Indicates if permutation is suitable for palignr instruction.
13534 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13536 PR tree-optimization/61319
13537 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13538 stmt belongs to loop.
13540 2014-06-05 Richard Biener <rguenther@suse.de>
13542 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13543 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13544 (lookup_tmp_var): Adjust.
13545 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13547 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13549 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13551 2014-06-05 Marek Polacek <polacek@redhat.com>
13554 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13556 2014-06-04 Tom de Vries <tom@codesourcery.com>
13558 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13561 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13563 PR tree-optimization/61385
13564 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13566 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13568 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13569 changed to use fatal_error.
13570 (main): Ensure lto_wrapper_cleanup is run atexit.
13572 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13574 * lra-constraints.c (valid_address_p): Move earlier in file.
13575 (address_eliminator): New structure.
13576 (satisfies_memory_constraint_p): New function.
13577 (satisfies_address_constraint_p): Likewise.
13578 (process_alt_operands, process_address, curr_insn_transform): Use them.
13580 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13582 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13584 (target_lra_int, default_target_lra_int, this_target_lra_int)
13585 (op_alt_data): Delete.
13586 * lra.h (lra_init): Delete.
13587 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13588 (init_insn_code_data_once): Remove op_alt_data handling.
13589 (finish_insn_code_data_once): Likewise.
13590 (init_op_alt_data): Delete.
13591 (get_static_insn_data): Initialize operand_alternative to null.
13592 (free_insn_recog_data): Cast operand_alternative before freeing it.
13593 (setup_operand_alternative): Take the operand_alternative as
13594 parameter and assume it isn't already cached in the static
13596 (lra_set_insn_recog_data): Update accordingly.
13597 (lra_init): Delete.
13598 * ira.c (ira_init): Don't call lra_init.
13599 * target-globals.h (this_target_lra_int): Declare.
13600 (target_globals): Remove lra_int.
13601 (restore_target_globals): Update accordingly.
13602 * target-globals.c: Don't include lra-int.h.
13603 (default_target_globals, save_target_globals): Remove lra_int.
13605 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13607 * recog.h (operand_alternative): Convert reg_class, reject,
13608 matched and matches into bitfields.
13609 (preprocess_constraints): New overload.
13610 (preprocess_insn_constraints): New function.
13611 (preprocess_constraints): Take the insn as parameter.
13612 (recog_op_alt): Change into a pointer.
13613 (target_recog): Add x_op_alt.
13614 * recog.c (asm_op_alt): New variable.
13615 (recog_op_alt): Change into a pointer.
13616 (preprocess_constraints): New overload, replacing the old function
13617 definition with one that doesn't use global state.
13618 (preprocess_insn_constraints): New function.
13619 (preprocess_constraints): Use them. Take the insn as parameter.
13620 Use asm_op_alt for asms.
13621 (recog_init): Free existing x_op_alt entries.
13622 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13624 (make_early_clobber_and_input_conflicts): Likewise.
13625 (process_bb_node_lives): Pass the insn to process_constraints.
13626 * reg-stack.c (check_asm_stack_operands): Likewise.
13627 (subst_asm_stack_regs): Likewise.
13628 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13629 * regrename.c (build_def_use): Likewise.
13630 * sched-deps.c (sched_analyze_insn): Likewise.
13631 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13632 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13633 (note_invalid_constants): Likewise.
13634 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13635 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13638 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13640 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13641 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13643 (make_early_clobber_and_input_conflicts): Likewise.
13644 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13646 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13648 * recog.h (alternative_class): New function.
13649 (which_op_alt): Return a const recog_op_alt.
13650 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13651 (subst_asm_stack_regs): Likewise.
13652 * config/arm/arm.c (note_invalid_constants): Likewise.
13653 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13654 the operand_alternative; use alternative class instead.
13655 * sel-sched.c (get_reg_class): Likewise.
13656 * regrename.c (build_def_use): Likewise.
13657 (hide_operands, restore_operands, record_out_operands): Update type
13660 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13662 * recog.h (recog_op_alt): Convert to a flat array.
13663 (which_op_alt): New function.
13664 * recog.c (recog_op_alt): Convert to a flat array.
13665 (preprocess_constraints): Update accordingly, grouping all
13666 operands of the same alternative together, rather than the
13668 * ira-lives.c (check_and_make_def_conflict): Likewise.
13669 (make_early_clobber_and_input_conflicts): Likewise.
13670 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13671 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13672 (subst_asm_stack_regs): Likewise.
13673 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13674 * regrename.c (hide_operands, record_out_operands): Likewise.
13675 (build_def_use): Likewise.
13676 * sel-sched.c (get_reg_class): Likewise.
13677 * config/arm/arm.c (note_invalid_constants): Likewise.
13679 2014-06-04 Jason Merrill <jason@redhat.com>
13683 * gimplify.c (gimplify_arg): Non-static.
13684 * gimplify.h: Declare it.
13686 2014-06-04 Richard Biener <rguenther@suse.de>
13688 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13689 TREE_PUBLIC and DECL_EXTERNAL decls.
13691 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13693 * regcprop.c (copyprop_hardreg_forward_1): Account for
13694 HARD_REGNO_CALL_PART_CLOBBERED.
13696 2014-06-04 Richard Biener <rguenther@suse.de>
13698 * configure.ac: Check whether the underlying type of int64_t
13699 is long or long long.
13700 * configure: Regenerate.
13701 * config.in: Likewise.
13702 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13703 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13705 2014-06-04 Richard Biener <rguenther@suse.de>
13707 PR tree-optimization/60098
13708 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13710 (dse_optimize_stmt): Simplify, now that we found a kill
13713 2014-06-04 Richard Biener <rguenther@suse.de>
13715 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13716 of accesses with non-invariant address.
13718 2014-06-04 Martin Liska <mliska@suse.cz>
13720 * cgraph.h (cgraph_make_wrapper): New function introduced.
13721 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13722 * ipa-inline.h (inline_analyze_function): The function is global.
13723 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13725 2014-06-04 Martin Liska <mliska@suse.cz>
13727 * tree.h (private_lookup_attribute_starting): New function.
13728 (lookup_attribute_starting): Likewise.
13729 * tree.c (private_lookup_attribute_starting): Likewise.
13731 2014-06-04 Martin Liska <mliska@suse.cz>
13733 * cgraph.h (expand_thunk): New argument added.
13734 (address_taken_from_non_vtable_p): New global function.
13735 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13736 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13737 * cgraphunit.c (analyze_function): Likewise.
13738 (assemble_thunks_and_aliases): Argument added to call.
13739 (expand_thunk): New argument forces to produce GIMPLE thunk.
13741 2014-06-04 Martin Liska <mliska@suse.cz>
13743 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13744 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13745 * profile.c (branch_prob): Likewise.
13747 2014-06-04 Martin Jambor <mjambor@suse.cz>
13750 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13751 handler for switch on an ipa_ref_use enum.
13752 * ipa-reference.c (analyze_function): Likewise.
13754 2014-06-04 Kai Tietz <ktietz@redhat.com>
13756 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13757 from old call-instruction.
13759 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13761 * config/aarch64/aarch64.c (aarch64_classify_address)
13762 (aarch64_legitimize_reload_address): Support full addressing modes
13764 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13765 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13767 2014-06-03 Andrew Pinski <apinski@cavium.com>
13769 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13772 2014-06-03 Andrew Pinski <apinski@cavium.com>
13774 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13775 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13777 2014-06-03 Kai Tietz <ktietz@redhat.com>
13779 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13782 2014-06-03 Dehao Chen <dehao@google.com>
13784 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13787 2014-06-03 Marek Polacek <polacek@redhat.com>
13790 * doc/invoke.texi: Document -Wswitch-bool.
13791 * function.c (stack_protect_epilogue): Cast controlling expression of
13793 * gengtype.c (walk_type): Generate switch expression with its
13794 controlling expression cast to int.
13796 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13798 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13800 * config/avr/avr-tables.opt: Regenerate.
13801 * config/avr/t-multilib: Regenerate.
13802 * doc/avr-mmcu.texi: Regenerate.
13804 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13805 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13807 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13808 (ata6617c, ata664251): Add new avr35 devices.
13809 (ata6612c): Add new avr4 device.
13810 (ata6613c, ata6614q): Add new avr5 devices.
13811 * config/avr/avr-tables.opt: Regenerate.
13812 * config/avr/t-multilib: Regenerate.
13813 * doc/avr-mmcu.texi: Regenerate.
13815 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13817 * gcc/config/aarch64/aarch64-builtins.c
13818 (aarch64_types_binop_ssu_qualifiers): New static data.
13819 (TYPES_BINOP_SSU): Define.
13820 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13821 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13822 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13823 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13824 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13825 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13826 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13827 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13828 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13829 suffix to builtin function name, remove cast.
13830 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13831 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13832 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13834 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13836 * gcc/config/aarch64/aarch64-builtins.c
13837 (aarch64_types_binop_uus_qualifiers,
13838 aarch64_types_shift_to_unsigned_qualifiers,
13839 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13840 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13841 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13842 sqshlu_n, uqshl_n): Update qualifiers.
13843 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13844 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13845 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13846 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13847 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13848 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13849 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13850 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13851 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13852 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13853 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13854 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13855 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13856 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13857 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13858 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13859 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13860 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13861 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13862 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13863 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13864 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13865 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13866 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13867 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13868 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13869 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13871 2014-06-03 Teresa Johnson <tejohnson@google.com>
13873 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13875 2014-06-02 Jason Merrill <jason@redhat.com>
13878 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13880 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13882 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13885 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13887 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13889 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13890 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13891 * config/aarch64/iterators.md (REVERSE): New iterator.
13892 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13893 (rev_op): New int_attribute.
13894 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13895 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13896 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13897 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13898 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13899 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13900 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13901 Replace temporary __asm__ with __builtin_shuffle.
13903 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13905 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13907 * config/mips/mips-tables.opt: Regenerate.
13908 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13909 to use mips_isa_rev rather than ISA_MIPS32R2.
13910 * config/mips/mips.h (ISA_MIPS32R3): New define.
13911 (ISA_MIPS32R5): New define.
13912 (ISA_MIPS64R3): New define.
13913 (ISA_MIPS64R5): New define.
13914 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13915 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13916 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13918 (MIPS_ISA_SYNCI_SPEC): Likewise.
13919 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13920 (LINK_SPEC): Added mips32r3 and mips32r5.
13921 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13922 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13923 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13924 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13925 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13926 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13927 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13929 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13931 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13933 * config/mips/mips.opt (mxpa): New option.
13934 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13937 2014-06-03 Martin Jambor <mjambor@suse.cz>
13940 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13943 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13945 PR tree-optimization/61328
13946 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13947 initialization from find_bswap_or_nop_1.
13948 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13949 in source_expr2 before using the size value the function sets. Also
13950 make use of init_symbolic_number () in both the old place and
13951 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13952 doing recursion in the GIMPLE_BINARY_RHS case.
13954 2014-06-03 Richard Biener <rguenther@suse.de>
13956 PR tree-optimization/61383
13957 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13960 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13962 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13963 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13964 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13965 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13967 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13968 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13969 * system.h: ...here and make it unconditional.
13970 * target.def (conditional_register_usage): Mention
13971 define_register_constraint instead of old-style constraint macros.
13972 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13973 * doc/tm.texi: Regenerate.
13974 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13975 protected by !USE_MD_CONSTRAINTS.
13976 * config/frv/frv.md: Remove quote from old version of documentation.
13977 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13978 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13979 CONST_DOUBLE_OK_FOR_LETTER.
13980 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13982 2014-06-02 Andrew Pinski <apinski@cavium.com>
13984 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13985 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13986 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13987 file whose name depends on -mabi= and -mbig-endian.
13988 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13989 Handle LP64 better and handle ilp32 too.
13990 (MULTILIB_OPTIONS): Delete.
13991 (MULTILIB_DIRNAMES): Delete.
13993 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13995 * expr.h: Remove prototypes of functions defined in builtins.c.
13996 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13997 Remove prototypes of functions defined in builtins.c.
13998 * builtins.h: Update prototype list to include all exported functions.
13999 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14000 no_c99_libc_has_function): Move to targhooks.c
14001 (build_string_literal, build_call_expr_loc_array,
14002 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14004 (expand_builtin_object_size, fold_builtin_object_size): Make static.
14005 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14006 no_c99_libc_has_function): Relocate from builtins.c.
14007 * tree.c: Include builtins.h.
14008 (build_call_expr_loc_array, build_call_expr_loc_vec,
14009 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14011 * fold-const.h (fold_fma): Move prototype to builtins.h.
14012 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14013 * asan.c: Include builtins.h.
14014 * cfgexpand.c: Likewise.
14015 * convert.c: Likewise.
14016 * emit-rtl.c: Likewise.
14017 * except.c: Likewise.
14018 * expr.c: Likewise.
14019 * fold-const.c: Likewise.
14020 * gimple-fold.c: Likewise.
14021 * gimple-ssa-strength-reduction.c: Likewise.
14022 * gimplify.c: Likewise.
14023 * ipa-inline.c: Likewise.
14024 * ipa-prop.c: Likewise.
14025 * lto-streamer-out.c: Likewise.
14026 * stmt.c: Likewise.
14027 * tree-inline.c: Likewise.
14028 * tree-object-size.c: Likewise.
14029 * tree-sra.c: Likewise.
14030 * tree-ssa-ccp.c: Likewise.
14031 * tree-ssa-forwprop.c: Likewise.
14032 * tree-ssa-loop-ivcanon.c: Likewise.
14033 * tree-ssa-loop-ivopts.c: Likewise.
14034 * tree-ssa-math-opts.c: Likewise.
14035 * tree-ssa-reassoc.c: Likewise.
14036 * tree-ssa-threadedge.c: Likewise.
14037 * tree-streamer-in.c: Likewise.
14038 * tree-vect-data-refs.c: Likewise.
14039 * tree-vect-patterns.c: Likewise.
14040 * tree-vect-stmts.c: Likewise.
14041 * config/aarch64/aarch64.c: Likewise.
14042 * config/alpha/alpha.c: Likewise.
14043 * config/arc/arc.c: Likewise.
14044 * config/arm/arm.c: Likewise.
14045 * config/avr/avr.c: Likewise.
14046 * config/bfin/bfin.c: Likewise.
14047 * config/c6x/c6x.c: Likewise.
14048 * config/cr16/cr16.c: Likewise.
14049 * config/cris/cris.c: Likewise.
14050 * config/epiphany/epiphany.c: Likewise.
14051 * config/fr30/fr30.c: Likewise.
14052 * config/frv/frv.c: Likewise.
14053 * config/h8300/h8300.c: Likewise.
14054 * config/i386/i386.c: Likewise.
14055 * config/i386/winnt.c: Likewise.
14056 * config/ia64/ia64.c: Likewise.
14057 * config/iq2000/iq2000.c: Likewise.
14058 * config/lm32/lm32.c: Likewise.
14059 * config/m32c/m32c.c: Likewise.
14060 * config/m32r/m32r.c: Likewise.
14061 * config/m68k/m68k.c: Likewise.
14062 * config/mcore/mcore.c: Likewise.
14063 * config/mep/mep.c: Likewise.
14064 * config/microblaze/microblaze.c: Likewise.
14065 * config/mips/mips.c: Likewise.
14066 * config/mmix/mmix.c: Likewise.
14067 * config/mn10300/mn10300.c: Likewise.
14068 * config/moxie/moxie.c: Likewise.
14069 * config/msp430/msp430.c: Likewise.
14070 * config/nds32/nds32.c: Likewise.
14071 * config/pa/pa.c: Likewise.
14072 * config/pdp11/pdp11.c: Likewise.
14073 * config/picochip/picochip.c: Likewise.
14074 * config/rl78/rl78.c: Likewise.
14075 * config/rs6000/rs6000.c: Likewise.
14076 * config/rx/rx.c: Likewise.
14077 * config/s390/s390.c: Likewise.
14078 * config/score/score.c: Likewise.
14079 * config/sh/sh.c: Likewise.
14080 * config/sparc/sparc.c: Likewise.
14081 * config/spu/spu.c: Likewise.
14082 * config/stormy16/stormy16.c: Likewise.
14083 * config/tilegx/tilegx.c: Likewise.
14084 * config/tilepro/tilepro.c: Likewise.
14085 * config/v850/v850.c: Likewise.
14086 * config/vax/vax.c: Likewise.
14087 * config/xtensa/xtensa.c: Likewise.
14089 2014-06-02 Jeff Law <law@redhat.com>
14091 PR rtl-optimization/61094
14092 * ree.c (combine_reaching_defs): Do not reextend an insn if it
14093 was marked as do_no_reextend. If a copy is needed to eliminate
14094 an extension, then mark it as do_not_reextend.
14096 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
14098 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14100 2014-06-02 Richard Henderson <rth@redhat.com>
14103 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14104 addresses inside asms. Use output_operand_lossage instead of
14107 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14110 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14111 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14113 2014-06-02 Tom de Vries <tom@codesourcery.com>
14115 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14116 case that x has VOIDmode.
14118 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14120 * varasm.c (copy_constant): Delete function.
14121 (build_constant_desc): Don't call it.
14123 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14126 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14127 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14128 with immediate_operand.
14130 2014-06-02 Andreas Schwab <schwab@suse.de>
14132 * config/ia64/ia64.c
14133 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14134 pending_data_specs first.
14136 2014-06-02 Richard Biener <rguenther@suse.de>
14138 PR tree-optimization/61378
14139 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14140 valueized_anything.
14142 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14144 * config/i386/constraints.md (Bw): Rename from 'w'.
14145 (Bz): Rename from 'z'.
14146 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14148 2014-06-01 Kai Tietz <ktietz@redhat.com>
14151 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14152 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14153 instead of m constraint.
14155 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14157 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14158 a separate alternative where the scratch operand 2 is marked as
14161 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14163 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14164 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14165 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14166 and __builtins_arm_get_fpscr.
14167 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14168 __builtins_arm_get_fpscr.
14169 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14170 __builtins_arm_ldfpscr.
14171 (arm_atomic_assign_expand_fenv): New function.
14172 * config/arm/vfp.md (set_fpscr): New pattern.
14173 (get_fpscr) : Likewise.
14174 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14176 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14177 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14179 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14181 * asan.c (report_error_func): Add SLOW_P argument, use
14182 BUILT_IN_ASAN_*_N if set.
14183 (build_check_stmt): Likewise.
14184 (instrument_derefs): If T has insufficient alignment,
14185 force same handling as for odd sizes.
14187 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14188 BUILT_IN_ASAN_REPORT_STORE_N): New.
14189 * asan.c (struct asan_mem_ref): Change access_size type to
14191 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14192 update_mem_ref_hash_table): Likewise.
14193 (asan_mem_ref_hasher::hash): Hash in a HWI.
14194 (report_error_func): Change size_in_bytes argument to HWI.
14195 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14197 (build_shadow_mem_access): New function.
14198 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14199 Handle size_in_bytes not power of two or larger than 16.
14200 (instrument_derefs): Don't give up if size_in_bytes is not
14201 power of two or is larger than 16.
14203 2014-05-30 Kai Tietz <ktietz@redhat.com>
14206 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14207 for sibling-tail-calls.
14208 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14210 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14211 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14213 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14215 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14216 * config/avr/avr-tables.opt: Regenerate.
14217 * config/avr/t-multilib: Regenerate.
14218 * doc/avr-mmcu.texi: Regenerate.
14220 2014-05-30 Ian Lance Taylor <iant@google.com>
14222 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14225 2014-05-30 Tom de Vries <tom@codesourcery.com>
14227 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14230 2014-05-30 Tom de Vries <tom@codesourcery.com>
14232 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14233 * lra.c (initialize_lra_reg_info_element): Add init of
14234 actual_call_used_reg_set field.
14235 (lra): Call lra_create_live_ranges before lra_inheritance for
14237 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14239 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14240 instead of call_used_reg_set for -fuse-caller-save.
14241 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14243 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14245 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14247 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14249 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14251 * ira.c (ira_get_dup_out_num): Check for output operands at
14252 the start of the loop. Handle cases where an included alternative
14253 follows an excluded one.
14255 2014-05-29 Mike Stump <mikestump@comcast.net>
14258 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14259 post ld passes when lto is used.
14261 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14263 PR rtl-optimization/61325
14264 * lra-constraints.c (process_address): Rename to process_address_1.
14265 (process_address): New function.
14267 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14269 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14270 TYPES_BINOPV): New static data.
14271 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14273 * config/aarch64/aarch64-simd.md (aarch64_ext,
14274 aarch64_im_lane_boundsi): New patterns.
14275 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14277 (aarch64_evpc_ext): New function.
14279 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14281 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14282 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14283 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14284 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14285 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14287 2014-05-29 Tom de Vries <tom@codesourcery.com>
14289 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14291 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14292 Richard Sandiford <rdsandiford@googlemail.com>
14294 * arm/iterators.md (shiftable_ops): New code iterator.
14295 (t2_binop0, arith_shift_insn): New code attributes.
14296 * arm/predicates.md (shift_nomul_operator): New predicate.
14297 * arm/arm.md (insn_enabled): Delete.
14298 (enabled): Remove insn_enabled test.
14299 (*arith_shiftsi): Delete. Replace with ...
14300 (*<arith_shift_insn>_multsi): ... new pattern.
14301 (*<arith_shift_insn>_shiftsi): ... new pattern.
14302 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14304 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14305 Tom de Vries <tom@codesourcery.com>
14307 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14308 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14310 (mips_split_call): Use POST_CALL_TMP_REG.
14311 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14313 2014-05-29 Tom de Vries <tom@codesourcery.com>
14315 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14316 with #ifdef STACK_REGS.
14318 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14320 * varasm.c (get_variable_section): Walk aliases.
14321 (place_block_symbol): Walk aliases.
14323 2014-05-28 Tom de Vries <tom@codesourcery.com>
14326 2014-05-28 Tom de Vries <tom@codesourcery.com>
14328 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14329 * lra.c (initialize_lra_reg_info_element): Add init of
14330 actual_call_used_reg_set field.
14331 (lra): Call lra_create_live_ranges before lra_inheritance for
14333 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14335 * lra-constraints.c (need_for_call_save_p): Use
14336 actual_call_used_reg_set instead of call_used_reg_set for
14338 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14340 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14342 * doc/md.texi: Document that the % constraint character must
14343 be at the beginning of the string.
14344 * genoutput.c (validate_insn_alternatives): Check that '=',
14345 '+' and '%' only appear at the beginning of a constraint.
14346 * ira.c (commutative_constraint_p): Delete.
14347 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14348 at the start of the string.
14349 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14351 * config/arm/neon.md (bicdi3_neon): Likewise.
14352 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14353 (slt_si, sltu_si): Likewise.
14354 * config/vax/vax.md (sbcdi3): Likewise.
14355 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14356 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14357 (mul64): Move '%' to beginning of constraint.
14358 * config/arm/arm.md (*xordi3_insn): Likewise.
14359 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14360 (xorsi3): Likewise.
14362 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14364 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14366 2014-05-28 Jason Merrill <jason@redhat.com>
14369 * cgraph.h (symtab_node::get_comdat_group_id): New.
14370 * cgraphunit.c (analyze_functions): Call it.
14371 * symtab.c (dump_symtab_node): Likewise.
14372 * tree.c (decl_comdat_group_id): New.
14373 * tree.h: Declare it.
14374 * lto-streamer-out.c (write_symbol): Use it.
14375 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14377 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14379 PR bootstrap/PR61146
14380 * wide-int.cc: Do not include longlong.h when compiling with clang.
14382 2014-05-28 Richard Biener <rguenther@suse.de>
14384 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14385 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14386 (vrp_visit_assignment_or_call): Print less vertical space.
14387 (vrp_visit_stmt): Likewise.
14388 (vrp_visit_phi_node): Likewise. For a PHI argument with
14389 VR_VARYING range consider recording it as copy.
14391 2014-05-28 Richard Biener <rguenther@suse.de>
14394 2014-05-28 Richard Biener <rguenther@suse.de>
14396 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14398 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14400 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14401 sufficiently aligned and an offset is used at the same time.
14402 (expand_expr_real_1): Likewise.
14404 2014-05-28 Richard Biener <rguenther@suse.de>
14406 PR middle-end/61045
14407 * fold-const.c (fold_comparison): When folding
14408 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14409 the sign of the remaining constant operand stays the same.
14411 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14413 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14414 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14415 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14417 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14418 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14419 (m32bit-doubles) Likewise.
14420 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14421 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14424 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14426 * configure.ac ($gcc_cv_ld_clearcap): New test.
14427 * configure: Regenerate.
14428 * config.in: Regenerate.
14429 * config/sol2.opt (mclear-hwcap): New option.
14430 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14431 * config/sol2-clearcap.map: Moved here from
14432 testsuite/gcc.target/i386/clearcap.map.
14433 * config/sol2-clearcapv2.map: Move here from
14434 gcc.target/i386/clearcapv2.map.
14435 * config/t-sol2 (install): Depend on install-clearcap-map.
14436 (install-clearcap-map): New target.
14437 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14440 2014-05-28 Richard Biener <rguenther@suse.de>
14442 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14443 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14444 ... here and remove the rest.
14445 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14447 2014-05-28 Richard Biener <rguenther@suse.de>
14449 PR tree-optimization/61335
14450 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14451 new range fails, drop to varying.
14453 2014-05-28 Olivier Hainque <hainque@adacore.com>
14455 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14456 (CPP_SPEC): Add entry for -mcpu=8548.
14457 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14458 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14460 2014-05-28 Tom de Vries <tom@codesourcery.com>
14462 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14463 * lra.c (initialize_lra_reg_info_element): Add init of
14464 actual_call_used_reg_set field.
14465 (lra): Call lra_create_live_ranges before lra_inheritance for
14467 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14469 * lra-constraints.c (need_for_call_save_p): Use
14470 actual_call_used_reg_set instead of call_used_reg_set for
14472 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14474 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14475 Tom de Vries <tom@codesourcery.com>
14477 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14479 (@item -fuse-caller-save): New item.
14481 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14482 Tom de Vries <tom@codesourcery.com>
14484 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14485 OPT_fuse_caller_save.
14487 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14488 Tom de Vries <tom@codesourcery.com>
14490 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14491 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14492 get_call_reg_set_usage.
14493 * resource.c (mark_set_resources, mark_target_live_regs): Use
14494 get_call_reg_set_usage.
14495 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14497 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14498 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14499 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14500 * ira-build.c (ira_create_allocno): Init
14501 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14502 (create_cap_allocno, propagate_allocno_info)
14503 (propagate_some_info_from_allocno)
14504 (copy_info_to_removed_store_destinations): Handle
14505 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14506 * ira-costs.c (ira_tune_allocno_costs): Use
14507 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14509 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14510 Tom de Vries <tom@codesourcery.com>
14512 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14513 and function_used_regs_valid fields.
14514 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14515 find_all_hard_reg_sets.
14516 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14517 (get_call_reg_set_usage): New function.
14518 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14519 * regs.h (get_call_reg_set_usage): Declare.
14521 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14524 * config/dbx.h (License): Add Runtime Library Exception.
14525 * config/newlib-stdint.h (License): Same.
14526 * config/rtems.h (License): Same
14527 * config/initfini-array.h (License): Same
14528 * config/v850/v850.h (License): Same.
14529 * config/v850/v850-opts.h (License): Same
14530 * config/v850/rtems.h (License): Same.
14532 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14535 * doc/extend.texi (Local Labels): Note that label differences are
14536 not supported for AVR.
14538 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14539 Olivier Hainque <hainque@adacore.com>
14541 * rtl.h (set_for_reg_notes): Declare.
14542 * emit-rtl.c (set_for_reg_notes): New function.
14543 (set_unique_reg_note): Use it.
14544 * optabs.c (add_equal_note): Likewise
14546 2014-05-27 Andrew Pinski <apinski@cavium.com>
14548 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14549 Use <w> for the register in assembly template.
14550 (stack_protect_test): Use the mode of operands[0] for the result.
14551 (stack_protect_test_<mode>): Use <w> for the register
14552 in assembly template.
14554 2014-05-27 DJ Delorie <dj@redhat.com>
14556 * config/rx/rx.c (add_vector_labels): New.
14557 (rx_output_function_prologue): Call it.
14558 (rx_handle_func_attribute): Don't require empty arguments.
14559 (rx_handle_vector_attribute): New.
14560 (rx_attribute_table): Add "vector" attribute.
14561 * doc/extend.texi (interrupt, vector): Document new/changed
14562 RX-specific attributes.
14564 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14566 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14568 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14569 predicate to detect a negative quotient.
14571 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14573 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14574 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14575 Add X - Y CMP 0 to X CMP Y transformation.
14576 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14578 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14580 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14583 2014-05-27 Steve Ellcey <sellcey@mips.com>
14585 * config/mips/mips.c: Add include of cgraph.h.
14587 2014-05-27 Richard Biener <rguenther@suse.de>
14589 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14591 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14594 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14595 * config/arm/arm-cores.def (License): Same.
14596 * config/arm/arm-opts.h (License): Same.
14597 * config/arm/aout.h (License): Same.
14598 * config/arm/bpabi.h (License): Same.
14599 * config/arm/elf.h (License): Same.
14600 * config/arm/linux-elf.h (License): Same.
14601 * config/arm/linux-gas.h (License): Same.
14602 * config/arm/netbsd-elf.h (License): Same.
14603 * config/arm/uclinux-eabi.h (License): Same.
14604 * config/arm/uclinux-elf.h (License): Same.
14605 * config/arm/vxworks.h (License): Same.
14607 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14609 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14610 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14611 (arm_init_neon_builtins): Handle NEON_BSWAP.
14612 Define required type nodes.
14613 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14614 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14615 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14616 * config/arm/iterators.md (VDQHSD): New mode iterator.
14618 2014-05-27 Richard Biener <rguenther@suse.de>
14620 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14621 Try using literal operands when comparing value-ranges failed.
14623 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14625 * ira.c (commutative_operand): Adjust for change to recog_data.
14626 [Missing from previous commit.]
14628 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14630 * system.h (TEST_BIT): New macro.
14631 * recog.h (alternative_mask): New type.
14632 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14633 (recog_data_d): Replace alternative_enabled_p array with
14634 enabled_alternatives.
14635 (target_recog): New structure.
14636 (default_target_recog, this_target_recog): Declare.
14637 (get_enabled_alternatives, recog_init): Likewise.
14638 * recog.c (default_target_recog, this_target_recog): New variables.
14639 (get_enabled_alternatives): New function.
14640 (extract_insn): Use it.
14641 (recog_init): New function.
14642 (preprocess_constraints, constrain_operands): Adjust for change to
14644 * postreload.c (reload_cse_simplify_operands): Likewise.
14645 * reload.c (find_reloads): Likewise.
14646 * ira-costs.c (record_reg_classes): Likewise.
14647 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14648 all alternatives after a disabled one would be skipped.
14649 (ira_implicitly_set_insn_hard_regs): Likewise.
14650 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14651 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14652 with enabled_alternatives.
14653 * lra.c (free_insn_recog_data): Update accordingly.
14654 (lra_update_insn_recog_data): Likewise.
14655 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14656 * lra-constraints.c (process_alt_operands): Likewise. Handle
14657 only_alternative as part of the enabled mask.
14658 * target-globals.h (this_target_recog): Declare.
14659 (target_globals): Add a recog field.
14660 (restore_target_globals): Restore this_target_recog.
14661 * target-globals.c: Include recog.h.
14662 (default_target_globals): Initialize recog field.
14663 (save_target_globals): Likewise.
14664 * reginfo.c (reinit_regs): Call recog_init.
14665 * toplev.c (backend_init_target): Likewise.
14667 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14669 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14670 rather than any named insn's code.
14672 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14675 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14676 * config/arm/arm-cores.def (License): Same.
14678 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14680 * tree.h (decl_comdat_group): Declare.
14681 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14682 * tree.c (decl_comdat_group): Here.
14684 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14686 PR rtl-optimization/61222
14687 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14688 the shift, truncate the PLUS operand to the result mode.
14690 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14693 * config/i386/i386.c (ix86_rtx_costs)
14694 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14697 2014-05-26 Martin Jambor <mjambor@suse.cz>
14699 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14702 2014-05-26 Richard Biener <rguenther@suse.de>
14704 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14705 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14706 Provide specializations.
14707 (wi::int_traits <HOST_WIDE_INT>,
14708 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14710 2014-05-26 Alan Modra <amodra@gmail.com>
14713 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14714 params and return a bool. Remove dead code. Update comment.
14715 Assert we have a const_int source. Remove bogus code from
14716 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14717 handling of constants > 2G and reg_equal note, from..
14718 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14719 return value. Update comment. If we can, use a new pseudo
14720 for intermediate calculations.
14721 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14723 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14724 call to rs6000_emit_set_const in splitter.
14725 (movdi_internal64+2, +3): Likewise.
14727 2014-05-26 Richard Biener <rguenther@suse.de>
14729 * system.h: Define __STDC_FORMAT_MACROS before
14730 including inttypes.h.
14731 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14732 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14733 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14734 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14735 HOST_WIDEST_INT_C): Remove.
14736 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14737 if C99 inttypes.h is not available.
14738 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14739 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14740 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14741 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14742 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14743 (struct output_info): Likewise.
14744 (print_statistics): Adjust.
14745 (dump_bitmap_statistics): Likewise.
14746 * bt-load.c (migrate_btr_defs): Print with PRId64.
14747 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14748 (MAX_SAFE_MULTIPLIER): Adjust.
14749 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14750 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14751 dump_cgraph_node): Likewise.
14752 * final.c (dump_basic_block_info): Likewise.
14753 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14754 * gcov.c (format_gcov): Likewise.
14755 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14757 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14758 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14759 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14760 Use PRId64 for dumping.
14761 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14762 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14763 (add_allocno_hard_regs): Adjust.
14764 * loop-doloop.c (doloop_modify): Print using PRId64.
14765 * loop-iv.c (inverse): Compute in uint64_t.
14766 (determine_max_iter, iv_number_of_iterations): Likewise.
14767 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14768 Print using PRId64.
14769 * lto-streamer-out.c (write_symbol): Use uint64_t.
14770 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14771 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14772 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14773 * modulo-sched.c (const_iteration_count): Use int64_t.
14774 (sms_schedule): Dump using PRId64.
14775 * predict.c (dump_prediction): Likewise.
14776 * pretty-print.h (pp_widest_integer): Remove.
14777 * profile.c (get_working_sets, is_edge_inconsistent,
14778 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14779 * tree-pretty-print.c (pp_double_int): Remove case handling
14780 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14781 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14783 (pass_optimize_bswap::execute): Remove restriction on hosts.
14784 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14785 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14786 * tree.c (widest_int_cst_value): Remove.
14787 * tree.h (widest_int_cst_value): Likewise.
14788 * value-prof.c (dump_histogram_value): Print using PRId64.
14789 * gengtype.c (main): Also inject int64_t.
14790 * ggc-page.c (struct max_alignment): Use int64_t.
14791 * alloc-pool.c (struct allocation_object_def): Likewise.
14792 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14794 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14795 * doc/tm.texi: Regenerated.
14796 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14797 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14798 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14799 mmix_output_register_setting): Use [u]int64_t in prototypes.
14800 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14801 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14802 mmix_output_octa, mmix_output_shifted_value): Adjust.
14803 (mmix_intval): Adjust. Remove unreachable case.
14804 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14806 2014-05-26 Richard Biener <rguenther@suse.de>
14808 * configure.ac: Drop __int64 type check. Insist that we
14809 found uint64_t and int64_t.
14810 * hwint.h (HOST_BITS_PER___INT64): Remove.
14811 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14812 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14813 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14814 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14815 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14816 for dst_q_src_df_rms_cdt.
14817 * configure: Regenerate.
14818 * config.in: Likewise.
14820 2014-05-26 Michael Tautschnig <mt@debian.org>
14823 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14824 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14826 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14828 PR rtl-optimization/61278
14829 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14831 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14833 PR rtl-optimization/61220
14834 Part of PR rtl-optimization/61225
14835 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14836 insn; skip split_edge for a block with only one successor.
14838 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14840 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14843 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14845 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14846 (update_vtable_references): New function.
14847 (function_and_variable_visibility): Rewrite also vtable initializers.
14848 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14850 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14852 * ggc.h (ggc_grow): New function.
14853 * ggc-none.c (ggc_grow): New function.
14854 * ggc-page.c (ggc_grow): Likewise.
14856 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14858 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14859 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14860 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14861 varpool_externally_visible_p, can_replace_by_local_alias,
14862 update_visibility_by_resolution_info, function_and_variable_visibility,
14863 pass_data_ipa_function_and_variable_visibility,
14864 make_pass_ipa_function_and_variable_visibility,
14865 whole_program_function_and_variable_visibility,
14866 pass_data_ipa_whole_program_visibility,
14867 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14868 * cgraph.h (cgraph_local_node_p): Declare.
14869 * ipa-visibility.c: New file.
14870 * Makefile.in (OBJS): Add ipa-visiblity.o
14872 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14874 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14875 that var decl is available.
14877 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14879 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14880 symtab_node pointer.
14881 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14882 (find_decls_types_r): Do not walk COMDAT_GROUP.
14883 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14884 * varasm.c (make_decl_one_only): Use set_comdat_group;
14885 create node if needed.
14886 * ipa-inline-transform.c (save_inline_function_body): Update
14887 way we decl->symtab mapping.
14888 * symtab.c (symtab_hash, hash_node, eq_node
14889 symtab_insert_node_to_hashtable): Remove.
14890 (symtab_register_node): Update.
14891 (symtab_unregister_node): Update.
14892 (symtab_get_node): Reimplement as inline function.
14893 (symtab_add_to_same_comdat_group): Update.
14894 (symtab_dissolve_same_comdat_group_list): Update.
14895 (dump_symtab_base): Update.
14896 (verify_symtab_base): Update.
14897 (symtab_make_decl_local): Update.
14898 (fixup_same_cpp_alias_visibility): Update.
14899 (symtab_nonoverwritable_alias): Update.
14900 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14901 * ipa.c (update_visibility_by_resolution_info): UPdate.
14902 * bb-reorder.c: Include cgraph.h
14903 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14904 with comdat groups.
14905 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14906 * cgraph.c (cgraph_get_create_node): Update.
14907 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14909 (symtab_get_node): Make inline.
14910 (symtab_insert_node_to_hashtable): Remove.
14911 (symtab_can_be_discarded): Update.
14912 (decl_comdat_group): New function.
14913 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14915 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14917 (read_comdat_group): New function.
14918 (input_node, input_varpool_node): Use it.
14919 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14921 * mips.c (mips_start_unique_function): Likewise.
14922 (ix86_code_end): Likewise.
14923 (rs6000_code_end): Likweise.
14924 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14926 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14928 * gengtype-state.c (fatal_reading_state): Bring offline.
14929 * optabs.c (widening_optab_handler): Bring offline.
14930 * optabs.h (widening_optab_handler): Likewise.
14931 * final.c (get_attr_length_1): Likewise.
14933 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14935 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14937 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14939 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14940 (ppc440-compare): Include shift with dot.
14941 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14942 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14944 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14946 (e6500_sfx2): Include it.
14947 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14948 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14949 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14950 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14951 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14952 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14953 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14954 *lshiftrt_internal1le, *lshiftrt_internal1be,
14955 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14956 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14957 *rotldi3_internal10le, *rotldi3_internal10be,
14958 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14959 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14960 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14961 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14962 define_insns): Use type "shift" in the appropriate alternatives.
14964 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14966 * config/rs6000/rs6000.md (type): Add "logical". Delete
14968 (dot): Adjust comment.
14969 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14970 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14971 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14972 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14973 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14974 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14975 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14976 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14978 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14979 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14980 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14981 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14982 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14983 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14984 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14985 * config/rs6000/8540.md (ppc8540_su): Adjust.
14986 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14987 cell-cmp-microcoded): Adjust.
14988 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14989 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14990 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14991 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14992 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14993 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14994 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14995 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14996 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14998 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14999 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15000 Adjust. Adjust comment.
15001 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15002 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15004 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15006 * config/rs6000/rs6000.md (type): Add "add".
15007 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15008 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15009 define_insns): Use it.
15010 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15012 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15013 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15014 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15015 * config/rs6000/601.md (ppc601-integer): Adjust.
15016 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15017 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15018 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15019 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15020 * config/rs6000/8540.md (ppc8540_su): Adjust.
15021 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15022 cell-cmp-microcoded): Adjust.
15023 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15024 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15025 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15026 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15027 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15028 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15029 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15030 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15031 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15033 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15034 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15035 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15036 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15038 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15040 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15041 "delayed_compare", "var_delayed_compare".
15042 (var_shift): New attribute.
15043 (cell_micro): Adjust.
15044 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
15045 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
15046 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
15047 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15048 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15049 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15050 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15051 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
15052 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
15053 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15054 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
15055 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
15056 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
15057 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
15058 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
15059 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
15060 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
15061 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15062 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15063 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15064 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15065 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15066 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15067 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15068 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15070 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15071 * config/rs6000/440.md (ppc440-integer): Adjust.
15072 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15073 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15074 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15075 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15076 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15077 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15078 * config/rs6000/8540.md (ppc8540_su): Adjust.
15079 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15080 cell-cmp-microcoded): Adjust.
15081 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
15082 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15083 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
15084 e500mc64_delayed): Adjust.
15085 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
15086 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
15087 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15088 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
15089 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
15090 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
15091 power6-delayed-compare, power6-var-delayed-compare): Adjust.
15092 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
15093 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
15095 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15096 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15098 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15100 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15101 (bits): New mode_attr.
15102 (idiv_ldiv): Delete mode_attr.
15103 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15104 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15105 rs6000_adjust_priority, is_nonpipeline_insn,
15106 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15108 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15109 * config/rs6000/440.md (ppc440-idiv): Adjust.
15110 * config/rs6000/476.md (ppc476-idiv): Adjust.
15111 * config/rs6000/601.md (ppc601-idiv): Adjust.
15112 * config/rs6000/603.md (ppc603-idiv): Adjust.
15113 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15114 ppc620-ldiv): Adjust.
15115 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15116 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15117 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15118 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15119 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15120 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15121 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15122 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15123 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15124 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15125 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15126 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15127 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15128 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15129 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15130 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15131 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15132 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15134 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15136 * config/rs6000/rs6000.md (type): Delete "insert_word",
15137 "insert_dword". Add "insert".
15138 (size): Update comment.
15139 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15140 insn_must_be_first_in_group): Adjust.
15141 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15142 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15143 *insvsi_internal6, insvdi_internal): Adjust.
15145 * config/rs6000/40x.md (ppc403-integer): Adjust.
15146 * config/rs6000/440.md (ppc440-integer): Adjust.
15147 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15148 * config/rs6000/601.md (ppc601-integer): Adjust.
15149 * config/rs6000/603.md (ppc603-integer): Adjust.
15150 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15151 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15152 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15153 * config/rs6000/8540.md (ppc8540_su): Adjust.
15154 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15155 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15156 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15157 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15158 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15159 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15160 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15161 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15162 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15163 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15164 * config/rs6000/power7.md (power7-integer): Adjust.
15165 * config/rs6000/power8.md (power8-1cyc): Adjust.
15166 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15167 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15169 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15171 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15172 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15173 (size): New attribute.
15174 (dot): New attribute.
15175 (cell_micro): Adjust.
15176 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15177 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15178 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15179 umuldi3_highpart): Adjust.
15180 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15181 rs6000_adjust_priority, is_nonpipeline_insn,
15182 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15184 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15185 ppc405-imul3): Adjust.
15186 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15187 * config/rs6000/476.md (ppc476-imul): Adjust.
15188 * config/rs6000/601.md (ppc601-imul): Adjust.
15189 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15190 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15191 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15192 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15193 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15195 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15196 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15197 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15198 cell-imul): Adjust.
15199 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15200 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15201 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15202 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15203 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15204 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15205 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15206 power4-lmul, power4-imul, power4-imul3): Adjust.
15207 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15208 power5-lmul, power5-imul, power5-imul3): Adjust.
15209 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15210 power6-lmul, power6-imul, power6-imul3): Adjust.
15211 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15212 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15214 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15215 rs64a-lmul): Adjust.
15216 * config/rs6000/titan.md (titan_imul): Adjust.
15218 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15220 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15221 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15222 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15223 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15224 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15225 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15226 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15227 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15228 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15229 * config/rs6000/titan.md: Delete nonsensical comment.
15230 (titan_imul): Add type imul3.
15231 (titan_mulhw): Remove type imul3; add type halfmul.
15233 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15235 * config/rs6000/rs6000.md (type): Reorder, reformat.
15237 2014-05-23 Martin Jambor <mjambor@suse.cz>
15239 PR tree-optimization/53787
15240 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15241 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15242 analysis_done, update all uses.
15243 * ipa-prop.c: Include domwalk.h
15244 (param_analysis_info): Removed.
15245 (param_aa_status): New type.
15246 (ipa_bb_info): Likewise.
15247 (func_body_info): Likewise.
15248 (ipa_get_bb_info): New function.
15249 (aa_overwalked): Likewise.
15250 (find_dominating_aa_status): Likewise.
15251 (parm_bb_aa_status_for_bb): Likewise.
15252 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15253 (load_from_unmodified_param): Accept func_body_info as a parameter
15254 instead of parms_ainfo.
15255 (parm_ref_data_preserved_p): Changed to use new param AA info.
15256 (parm_ref_data_pass_through_p): Likewise.
15257 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15258 (compute_complex_assign_jump_func): Changed to use new param AA info.
15259 (compute_complex_ancestor_jump_func): Likewise.
15260 (ipa_compute_jump_functions_for_edge): Likewise.
15261 (ipa_compute_jump_functions): Removed.
15262 (ipa_compute_jump_functions_for_bb): New function.
15263 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15265 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15266 and info, moved variable declarations down.
15267 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15269 (ipa_analyze_stmt_uses): Likewise.
15270 (ipa_analyze_params_uses): Removed.
15271 (ipa_analyze_params_uses_in_bb): New function.
15272 (ipa_analyze_controlled_uses): Likewise.
15273 (free_ipa_bb_info): Likewise.
15274 (analysis_dom_walker): New class.
15275 (ipa_analyze_node): Handle node-specific forbidden analysis,
15276 initialize and free func_body_info, use dominator walker.
15277 (ipcp_modif_dom_walker): New class.
15278 (ipcp_transform_function): Create and free func_body_info, use
15279 ipcp_modif_dom_walker, moved a lot of functionality there.
15281 2014-05-23 Marek Polacek <polacek@redhat.com>
15282 Jakub Jelinek <jakub@redhat.com>
15284 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15285 * gcc.c (sanitize_spec_function): Likewise.
15286 * convert.c (convert_to_integer): Include "ubsan.h". Add
15287 floating-point to integer instrumentation.
15288 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15289 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15290 SANITIZE_NONDEFAULT.
15291 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15292 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15293 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15294 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15295 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15296 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15297 float/double/long double.
15298 (ubsan_instrument_float_cast): New function.
15299 * ubsan.h (ubsan_instrument_float_cast): Declare.
15301 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15303 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15305 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15306 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15307 Adjust for tailcalling through registers.
15308 * config/aarch64/aarch64.h (enum reg_class): New caller save
15310 (REG_CLASS_NAMES): Likewise.
15311 (REG_CLASS_CONTENTS): Likewise.
15312 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15313 Allow tailcalling without decls.
15315 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15317 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15318 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15320 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15321 gsi, and variables v_* to v*.
15323 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15325 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15327 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15329 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15330 * omp-low.c: Update accordingly.
15332 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15333 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15334 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15335 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15336 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15337 GF_OMP_TARGET_KIND_UPDATE.
15339 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15340 Explicitly enumerate the expected region types.
15342 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15345 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15346 documentation; the old documentation didn't clearly state the
15347 constraints on the contents of the pointed-to storage.
15349 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15351 Fix bootstrap error on ia64
15352 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15353 Return default value.
15355 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15357 PR tree-optimization/54733
15358 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15360 (find_bswap_or_nop_load): New.
15361 (find_bswap_1): Renamed to ...
15362 (find_bswap_or_nop_1): This. Also add support for memory source.
15363 (find_bswap): Renamed to ...
15364 (find_bswap_or_nop): This. Also add support for memory source and
15365 detection of bitwise operations equivalent to load in target
15367 (execute_optimize_bswap): Likewise. Also move its leading comment back
15368 in place and split statement transformation into ...
15369 (bswap_replace): This.
15371 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15373 PR rtl-optimization/61215
15374 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15375 simplify_gen_subreg until final substitution.
15377 2014-05-23 Alan Modra <amodra@gmail.com>
15380 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15381 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15382 Use "Y" constraint rather than "m".
15384 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15386 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15388 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15389 New function declaration.
15390 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15391 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15392 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15393 (aarch64_init_builtins) : Initialize builtins
15394 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15395 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15396 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15397 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15398 and __builtins_aarch64_set_fpsr.
15399 (aarch64_atomic_assign_expand_fenv): New function.
15400 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15401 (get_fpcr) : Likewise.
15402 (set_fpsr) : Likewise.
15403 (get_fpsr) : Likewise.
15404 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15405 and UNSPECV_SET_FPSR.
15406 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15407 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15408 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15410 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15412 PR rtl-optimization/60969
15413 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15414 constraints. Set up mem cost for NO_REGS case.
15416 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15418 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15420 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15422 * config/darwin.c: Include "lto-section-names.h".
15423 (LTO_SEGMENT_NAME): Don't define.
15424 * config/i386/winnt.c: Include "lto-section-names.h".
15425 * lto-streamer.c: Include "lto-section-names.h".
15426 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15427 * lto-wrapper.c: Include "lto-section-names.h".
15428 (LTO_SECTION_NAME_PREFIX): Don't define.
15429 * lto-section-names.h: New file.
15430 * cgraphunit.c: Include "lto-section-names.h".
15432 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15434 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15436 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15439 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15441 2014-05-22 Nick Clifton <nickc@redhat.com>
15443 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15445 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15447 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15448 -> (T)A transformation to integer types.
15450 2014-05-22 Teresa Johnson <tejohnson@google.com>
15452 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15453 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15454 (gcov_rewrite): Use gcov_nonruntime_assert.
15455 (gcov_open): Ditto.
15456 (gcov_write_words): Ditto.
15457 (gcov_write_length): Ditto.
15458 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15459 gcc_assert from IN_LIBGCOV code.
15460 (gcov_read_summary): Use gcov_error to flag profile corruption.
15461 (gcov_sync): Use gcov_nonruntime_assert.
15462 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15463 (gcov_histo_index): Use gcov_nonruntime_assert.
15464 (static void gcov_histogram_merge): Ditto.
15465 (compute_working_sets): Ditto.
15466 * gcov-io.h (gcov_nonruntime_assert): Define.
15467 (gcov_error): Define for !IN_LIBGCOV
15469 2014-05-22 Richard Biener <rguenther@suse.de>
15471 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15472 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15473 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15474 and deallocation site.
15475 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15476 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15477 passing through the incoming points-to set.
15478 (handle_lhs_call): Use flags argument instead of recomputing it.
15479 (find_func_aliases_for_call): Call handle_lhs_call with proper
15482 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15484 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15485 all padding bits in REAL_VALUE_TYPE are cleared.
15487 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15489 Cleanup and improve multipass_dfa_lookahead_guard
15490 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15491 (core2i7_first_cycle_multipass_begin,)
15492 (core2i7_first_cycle_multipass_issue,)
15493 (core2i7_first_cycle_multipass_backtrack): Update signature.
15494 * config/ia64/ia64.c
15495 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15496 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15497 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15499 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15500 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15502 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15504 * doc/tm.texi: Regenerate.
15506 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15507 * haifa-sched.c (ready_try): Make signed to allow negative values.
15508 (rebug_ready_list_1): Update.
15509 (choose_ready): Simplify.
15510 (sched_extend_ready_list): Update.
15512 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15514 Remove IA64 speculation tweaking flags
15515 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15516 speculation tuning flags.
15517 (msched-prefer-non-data-spec-insns,)
15518 (msched-prefer-non-control-spec-insns): Obsolete options.
15519 * haifa-sched.c (choose_ready): Remove handling of
15520 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15521 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15522 and PREFER_NON_DATA_SPEC.
15523 * sel-sched.c (process_spec_exprs): Remove handling of
15524 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15526 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15528 Improve scheduling debug output
15529 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15530 (advance_one_cycle): Update.
15531 (schedule_insn, queue_to_ready): Add debug printouts.
15532 (debug_ready_list_1): New static function.
15533 (debug_ready_list): Update.
15534 (max_issue): Add debug printouts.
15535 (dump_insn_stream): New static function.
15536 (schedule_block): Use it. Also better indent printouts.
15538 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15540 Fix sched_insn debug counter
15541 * haifa-sched.c (schedule_insn): Update.
15542 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15543 (save_backtrack_point, restore_backtrack_point): Update.
15544 (first_nonscheduled_insn): New static function.
15545 (queue_to_ready, choose_ready): Use it.
15546 (schedule_block): Init nonscheduled_insns_begin.
15547 (sched_emit_insn): Update.
15550 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15552 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15554 (aarch64_secondary_reload) : LikeWise.
15555 (aarch64_class_max_nregs) : Remove CORE_REGS.
15556 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15557 (REG_CLASS_NAMES) : Likewise.
15558 (REG_CLASS_CONTENTS) : LikeWise.
15559 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15561 2014-05-21 Guozhi Wei <carrot@google.com>
15564 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15566 (vqdmulhq_n_s16): Likewise.
15568 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15570 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15572 2014-05-21 Marek Polacek <polacek@redhat.com>
15575 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15577 2014-05-21 Martin Jambor <mjambor@suse.cz>
15579 * doc/invoke.texi (Optimize Options): Document parameters
15580 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15581 ipa-cp-array-index-hint-bonus.
15583 2014-05-21 Mark Wielaard <mjw@redhat.com>
15586 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15587 version >= 3 or not strict DWARF.
15588 * langhooks.h (struct lang_hooks_for_types): Add
15589 enum_underlying_base_type.
15590 * langhooks.c (lhd_enum_underlying_base_type): New function.
15591 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15592 enum_underlying_base_type.
15593 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15594 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15595 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15597 2014-05-21 Richard Biener <rguenther@suse.de>
15599 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15601 2014-05-21 John Marino <gnugcc@marino.st>
15603 * config.gcc (*-*-dragonfly*): New target.
15604 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15605 * configure: Regenerate.
15606 * config/dragonfly-stdint.h: New.
15607 * config/dragonfly.h: New.
15608 * config/dragonfly.opt: New.
15609 * config/i386/dragonfly.h: New.
15610 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15612 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15614 * tree.def (VOID_CST): New.
15615 * tree-core.h (TI_VOID): New.
15616 * tree.h (void_node): New.
15617 * tree.c (tree_node_structure_for_code, tree_code_size)
15618 (iterative_hash_expr): Handle VOID_CST.
15619 (build_common_tree_nodes): Initialize void_node.
15621 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15623 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15625 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15627 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15630 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15631 flag_reorder_blocks_and_partition.
15632 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15634 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15637 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15639 (*addc_r_t): Add new insn_and_split.
15641 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15643 PR middle-end/61252
15644 * omp-low.c (handle_simd_reference): New function.
15645 (lower_rec_input_clauses): Use it. Defer adding reference
15646 initialization even for reduction without placeholder if in simd,
15647 handle it properly later on.
15649 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15651 PR tree-optimization/60899
15652 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15653 assume all static symbols will have definition wile parsing and
15654 check the do have definition later in compilation; check that
15655 variable referring symbol will be output before concluding that
15656 reference is safe; be conservative for referring local statics;
15657 be more precise about when comdat is output in other partition.
15659 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15662 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15664 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15665 (ipa_inline): Loop inline_to_all_callers until no more aliases
15668 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15670 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15671 set writeonly flag only for vars actually written to.
15673 2014-05-20 Dehao Chen <dehao@google.com>
15675 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15676 and callee count to get clone count.
15677 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15678 count in copy_body.
15680 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15682 PR rtl-optimization/61243
15683 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15685 2014-05-20 Xinliang David Li <davidxl@google.com>
15687 * cgraphunit.c (walk_polymorphic_call_targets): Add
15688 dbgcnt and fopt-info support.
15689 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15690 * ipa-devirt.c (ipa_devirt): Ditto.
15691 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15692 * ipa.c (walk_polymorphic_call_targets): Ditto.
15693 * gimple-fold.c (fold_gimple_assign): Ditto.
15694 (gimple_fold_call): Ditto.
15695 * dbgcnt.def: New counter.
15697 2014-05-20 DJ Delorie <dj@redhat.com>
15699 * config/msp430/msp430.md (split): Don't allow subregs when
15700 splitting SImode adds.
15701 (andneghi): Fix subtraction logic.
15702 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15704 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15706 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15708 * except.c (switch_to_exception_section, resolve_unique_section,
15709 get_named_text_section, default_function_rodata_section,
15710 align_variable, get_block_for_decl, default_section_type_flags):
15711 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15712 * symtab.c (symtab_add_to_same_comdat_group,
15713 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15714 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15716 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15717 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15718 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15719 (c6x_function_in_section_p): Likewise.
15720 * config/darwin.c (machopic_select_section): Likewise.
15721 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15722 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15723 * config/mep/mep.c (mep_select_section): LIkewise.
15724 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15726 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15728 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15729 EH region of calls to pure functions that can throw an exception.
15730 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15731 (copy_reference_ops_from_call): Also copy the EH region of the call if
15732 it can throw an exception.
15734 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15736 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15737 nested VEC_SELECTs that are inverses of each other.
15739 2014-05-20 Richard Biener <rguenther@suse.de>
15741 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15742 (extract_and_process_scc_for_name): not here.
15743 (cond_dom_walker::before_dom_children): Only process
15744 stmts that end the BB in interesting ways.
15745 (run_scc_vn): Mark param uses as visited.
15747 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15749 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15752 2014-05-20 Nick Clifton <nickc@redhat.com>
15754 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15755 (msp430_gimplify_va_arg_expr): New function.
15756 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15758 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15759 operand 0 in order to prevent confusion about the number of
15760 registers involved.
15762 2014-05-20 Richard Biener <rguenther@suse.de>
15764 PR tree-optimization/61221
15765 * tree-ssa-pre.c (el_to_update): Remove.
15766 (eliminate_dom_walker::before_dom_children): Handle released
15767 VDEFs by value-numbering them to the associated VUSE. Update
15768 stmt immediately for substituted call address.
15769 (eliminate): Remove delayed stmt updating code.
15770 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15771 possibly late re-numbered vuses.
15772 (vn_reference_lookup_2): Adjust.
15773 (vn_reference_lookup_pieces): Likewise.
15774 (vn_reference_lookup): Likewise.
15776 2014-05-20 Richard Biener <rguenther@suse.de>
15778 * config.gcc: Remove need_64bit_hwint.
15779 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15780 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15782 * config.in: Regenerate.
15783 * configure: Likewise.
15785 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15787 * doc/extend.texi: Create Label Attributes section,
15788 move all label attributes into it and reference it.
15790 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15792 * arm.c (thumb1_reorg): When scanning backwards skip anything
15793 that's not a proper insn.
15795 2014-05-19 Richard Biener <rguenther@suse.de>
15797 PR tree-optimization/61221
15798 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15799 Do nothing for unreachable blocks.
15800 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15801 Improve unreachability detection.
15803 2014-05-19 Richard Biener <rguenther@suse.de>
15805 PR tree-optimization/61209
15806 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15808 2014-05-19 Nick Clifton <nickc@redhat.com>
15810 * except.c (init_eh): Fix computation of builtin setjmp buffer
15811 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15813 2014-05-19 Richard Biener <rguenther@suse.de>
15815 PR tree-optimization/61184
15816 * tree-vrp.c (is_negative_overflow_infinity): Use
15817 TREE_OVERFLOW_P and do that check first.
15818 (is_positive_overflow_infinity): Likewise.
15819 (is_overflow_infinity): Likewise.
15820 (vrp_operand_equal_p): Properly treat operands with
15821 differing overflow as not equal.
15823 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15825 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15826 shift simplification where it was intended.
15828 2014-05-19 Christian Bruel <christian.bruel@st.com>
15831 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15833 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15836 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15839 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15841 * reg-notes.def (CROSSING_JUMP): Likewise.
15842 * rtl.h (rtx_def): Update comment for jump flag.
15843 (CROSSING_JUMP_P): Define.
15844 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15845 of a REG_CROSSING_JUMP note.
15846 * cfghooks.c (tidy_fallthru_edges): Likewise.
15847 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15848 * emit-rtl.c (try_split): Likewise.
15849 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15850 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15851 * jump.c (redirect_jump_2): Likewise.
15852 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15853 (relax_delay_slots): Likewise.
15854 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15855 (bbit_di): Likewise.
15856 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15857 * config/sh/sh.md (jump_compact): Likewise.
15858 * bb-reorder.c (rotate_loop): Likewise.
15859 (pass_duplicate_computed_gotos::execute): Likewise.
15860 (add_reg_crossing_jump_notes): Rename to...
15861 (update_crossing_jump_flags): ...this.
15862 (pass_partition_blocks::execute): Update accordingly.
15864 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15866 * tree.h: Remove extraneous template <>.
15868 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15870 * ipa.c (symtab_remove_unreachable_nodes): Remove
15871 symbol from comdat group if its body was eliminated.
15872 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15873 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15874 (symtab_unregister_node): ... this one.
15875 (verify_symtab_base): More strict checking of comdats.
15876 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15878 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15880 * tree-pass.h (make_pass_ipa_comdats): New pass.
15881 * timevar.def (TV_IPA_COMDATS): New timevar.
15882 * passes.def (pass_ipa_comdats): Add.
15883 * Makefile.in (OBJS): Add ipa-comdats.o
15884 * ipa-comdats.c: New file.
15886 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15888 * ipa.c (update_visibility_by_resolution_info): New function.
15889 (function_and_variable_visibility): Use it.
15891 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15893 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15895 (FOR_EACH_DEFINED_SYMBOL): New macro.
15896 (varpool_first_static_initializer, varpool_next_static_initializer,
15897 varpool_first_defined_variable, varpool_next_defined_variable):
15899 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15901 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15903 * ggc-page.c (ggc_handle_finalizers): Add comment.
15905 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15907 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15908 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15909 (ggc_internal_cleared_alloc): Likewise.
15910 * ggc-page.c (finalizer): New class.
15911 (vec_finalizer): Likewise.
15912 (globals::finalizers): New member.
15913 (globals::vec_finalizers): Likewise.
15914 (ggc_internal_alloc): Record the finalizer if any for the block being
15916 (ggc_handle_finalizers): New function.
15917 (ggc_collect): Call ggc_handle_finalizers.
15918 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15920 (ggc_internal_cleared_alloc): Likewise.
15921 (finalize): New function.
15922 (need_finalization_p): Likewise.
15923 (ggc_alloc): Install the type's destructor as the finalizer if it
15924 might do something.
15925 (ggc_cleared_alloc): Likewise.
15926 (ggc_vec_alloc): Likewise.
15927 (ggc_cleared_vec_alloc): Likewise.
15929 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15931 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15933 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15935 * alias.c (record_alias_subset): Adjust.
15936 * bitmap.c (bitmap_element_allocate): Likewise.
15937 (bitmap_gc_alloc_stat): Likewise.
15938 * cfg.c (init_flow): Likewise.
15939 (alloc_block): Likewise.
15940 (unchecked_make_edge): Likewise.
15941 * cfgloop.c (alloc_loop): Likewise.
15942 (flow_loops_find): Likewise.
15943 (rescan_loop_exit): Likewise.
15944 * cfgrtl.c (init_rtl_bb_info): Likewise.
15945 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15946 (cgraph_allocate_node): Likewise.
15947 (cgraph_create_edge_1): Likewise.
15948 (cgraph_allocate_init_indirect_info): Likewise.
15949 * cgraphclones.c (cgraph_clone_edge): Likewise.
15950 * cgraphunit.c (add_asm_node): Likewise.
15951 (init_lowered_empty_function): Likewise.
15952 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15953 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15954 (alpha_use_linkage): Likewise.
15955 * config/arc/arc.c (arc_init_machine_status): Likewise.
15956 * config/arm/arm.c (arm_init_machine_status): Likewise.
15957 * config/avr/avr.c (avr_init_machine_status): Likewise.
15958 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15959 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15960 * config/cris/cris.c (cris_init_machine_status): Likewise.
15961 * config/darwin.c (machopic_indirection_name): Likewise.
15962 (darwin_build_constant_cfstring): Likewise.
15963 (darwin_enter_string_into_cfstring_table): Likewise.
15964 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15965 * config/frv/frv.c (frv_init_machine_status): Likewise.
15966 * config/i386/i386.c (get_dllimport_decl): Likewise.
15967 (ix86_init_machine_status): Likewise.
15968 (assign_386_stack_local): Likewise.
15969 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15970 (i386_pe_maybe_record_exported_symbol): Likewise.
15971 (i386_pe_record_stub): Likewise.
15972 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15973 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15974 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15975 (m32c_note_pragma_address): Likewise.
15976 * config/mep/mep.c (mep_init_machine_status): Likewise.
15977 (mep_note_pragma_flag): Likewise.
15978 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15979 (mips16_local_alias): Likewise.
15980 (mips_init_machine_status): Likewise.
15981 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15982 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15983 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15984 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15985 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15986 * config/pa/pa.c (pa_init_machine_status): Likewise.
15987 (pa_get_deferred_plabel): Likewise.
15988 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15989 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15990 (rs6000_init_machine_status): Likewise.
15991 (output_toc): Likewise.
15992 * config/s390/s390.c (s390_init_machine_status): Likewise.
15993 * config/score/score.c (score_output_external): Likewise.
15994 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15995 * config/spu/spu.c (spu_init_machine_status): Likewise.
15996 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15997 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15998 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15999 * coverage.c (coverage_end_function): Likewise.
16000 * dbxout.c (dbxout_init): Likewise.
16001 * doc/gty.texi: Don't mention variable_size attribute.
16002 * dwarf2cfi.c (new_cfi): Adjust.
16003 (new_cfi_row): Likewise.
16004 (copy_cfi_row): Likewise.
16005 (create_cie_data): Likewise.
16006 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16007 (new_loc_descr): Likewise.
16008 (find_AT_string_in_table): Likewise.
16009 (add_addr_table_entry): Likewise.
16010 (new_die): Likewise.
16011 (add_var_loc_to_decl): Likewise.
16012 (clone_die): Likewise.
16013 (clone_as_declaration): Likewise.
16014 (break_out_comdat_types): Likewise.
16015 (new_loc_list): Likewise.
16016 (add_loc_descr_to_each): Likewise.
16017 (add_location_or_const_value_attribute): Likewise.
16018 (add_linkage_name): Likewise.
16019 (lookup_filename): Likewise.
16020 (dwarf2out_var_location): Likewise.
16021 (new_line_info_table): Likewise.
16022 (dwarf2out_init): Likewise.
16023 (mem_loc_descriptor): Likewise.
16024 (loc_descriptor): Likewise.
16025 (add_const_value_attribute): Likewise.
16026 (tree_add_const_value_attribute): Likewise.
16027 (comp_dir_string): Likewise.
16028 (dwarf2out_vms_debug_main_pointer): Likewise.
16029 (string_cst_pool_decl): Likewise.
16030 * emit-rtl.c (set_mem_attrs): Likewise.
16031 (get_reg_attrs): Likewise.
16032 (start_sequence): Likewise.
16033 (init_emit): Likewise.
16034 (init_emit_regs): Likewise.
16035 * except.c (init_eh_for_function): Likewise.
16036 (gen_eh_region): Likewise.
16037 (gen_eh_region_catch): Likewise.
16038 (gen_eh_landing_pad): Likewise.
16039 (add_call_site): Likewise.
16040 * function.c (add_frame_space): Likewise.
16041 (insert_temp_slot_address): Likewise.
16042 (assign_stack_temp_for_type): Likewise.
16043 (get_hard_reg_initial_val): Likewise.
16044 (allocate_struct_function): Likewise.
16045 (prepare_function_start): Likewise.
16046 (types_used_by_var_decl_insert): Likewise.
16047 * gengtype.c (variable_size_p): Remove function.
16048 (enum alloc_quantity): Remove enum.
16049 (write_typed_alloc_def): Remove function.
16050 (write_typed_struct_alloc_def): Likewise.
16051 (write_typed_typedef_alloc_def): Likewise.
16052 (write_typed_alloc_defns): Likewise.
16054 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
16055 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
16056 * ggc.h (ggc_alloc): new function.
16057 (ggc_cleared_alloc): Likewise.
16058 (ggc_vec_alloc): Template on type of vector element, and remove
16059 element size argument.
16060 (ggc_cleared_vec_alloc): Likewise.
16061 * gimple.c (gimple_build_omp_for): Adjust.
16062 (gimple_copy): Likewise.
16063 * ipa-cp.c (get_replacement_map): Likewise.
16064 (find_aggregate_values_for_callers_subset): Likewise.
16065 (known_aggs_to_agg_replacement_list): Likewise.
16066 * ipa-devirt.c (get_odr_type): Likewise.
16067 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16068 (read_agg_replacement_chain): Likewise.
16069 * loop-iv.c (get_simple_loop_desc): Likewise.
16070 * lto-cgraph.c (input_node_opt_summary): Likewise.
16071 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16072 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16073 (input_eh_region): Likewise.
16074 (input_eh_lp): Likewise.
16075 (input_cfg): Likewise.
16076 * optabs.c (set_optab_libfunc): Likewise.
16077 (init_tree_optimization_optabs): Likewise.
16078 (set_conv_libfunc): Likewise.
16079 * passes.c (do_per_function_toporder): Likewise.
16080 * rtl.h: Don't use variable_size gty attribute.
16081 * sese.c (if_region_set_false_region): Adjust.
16082 * stringpool.c (gt_pch_save_stringpool): Likewise.
16083 * target-globals.c (save_target_globals): Likewise.
16084 * toplev.c (general_init): Likewise.
16085 * trans-mem.c (record_tm_replacement): Likewise.
16086 (split_bb_make_tm_edge): Likewise.
16087 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16088 * tree-data-ref.h (lambda_vector_new): Likewise.
16089 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16090 * tree-iterator.c (tsi_link_before): Likewise.
16091 (tsi_link_after): Likewise.
16092 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16093 * tree-ssa-loop-niter.c (record_estimate): Likewise.
16094 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16095 * tree-ssa-operands.h: Don't use variable_size gty attribute.
16096 * tree-ssa.c (init_tree_ssa): Adjust.
16097 * tree-ssanames.c (set_range_info): Likewise.
16098 (get_ptr_info): Likewise.
16099 (duplicate_ssa_name_ptr_info): Likewise.
16100 (duplicate_ssa_name_range_info): Likewise.
16101 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16102 (unpack_ts_fixed_cst_value_fields): Likewise.
16103 * tree.c (build_fixed): Likewise.
16104 (build_real): Likewise.
16105 (build_string): Likewise.
16106 (decl_priority_info): Likewise.
16107 (decl_debug_expr_insert): Likewise.
16108 (decl_value_expr_insert): Likewise.
16109 (decl_debug_args_insert): Likewise.
16110 (type_hash_add): Likewise.
16111 (build_omp_clause): Likewise.
16112 * ubsan.c (decl_for_type_insert): Likewise.
16113 * varasm.c (get_unnamed_section): Likewise.
16114 (get_noswitch_section): Likewise.
16115 (get_section): Likewise.
16116 (get_block_for_section): Likewise.
16117 (create_block_symbol): Likewise.
16118 (build_constant_desc): Likewise.
16119 (create_constant_pool): Likewise.
16120 (force_const_mem): Likewise.
16121 (record_tm_clone_pair): Likewise.
16122 * varpool.c (varpool_create_empty_node): Likewise.
16124 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16126 * dwarf2out.c (tree_add_const_value_attribute): Call
16127 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16128 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16129 instead of ggc_internal_<x>alloc_stat.
16130 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16131 (ggc_realloc): Likewise.
16132 * ggc-none.c (ggc_internal_alloc): Likewise.
16133 (ggc_internal_cleared_alloc): Likewise.
16134 * ggc-page.c: Likewise.
16135 * ggc.h (ggc_internal_alloc_stat): Likewise.
16136 (ggc_internal_alloc): Remove macro.
16137 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16138 (ggc_internal_cleared_alloc): Remove macro.
16139 (GGC_RESIZEVEC): Adjust.
16140 (ggc_resizevar): Remove macro.
16141 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16142 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16143 (ggc_internal_vec_cleared_alloc): Remove macro.
16144 (ggc_alloc_atomic_stat): Drop _stat suffix.
16145 (ggc_alloc_atomic): Remove macro.
16146 (ggc_alloc_cleared_atomic): Remove macro.
16147 (ggc_alloc_string_stat): Drop _stat suffix.
16148 (ggc_alloc_string): Remove macro.
16149 (ggc_alloc_rtx_def_stat): Adjust.
16150 (ggc_alloc_tree_node_stat): Likewise.
16151 (ggc_alloc_cleared_tree_node_stat): Likewise.
16152 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16153 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16154 * gimple.c (gimple_build_omp_for): Likewise.
16155 (gimple_copy): Likewise.
16156 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16157 * toplev.c (realloc_for_line_map): Adjust.
16158 * tree-data-ref.h (lambda_vector_new): Likewise.
16159 * tree-phinodes.c (allocate_phi_node): Likewise.
16160 * tree.c (grow_tree_vec_stat): Likewise.
16161 * vec.h (va_gc::reserve): Adjust.
16163 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16165 * config/microblaze/microblaze.c (break_handler): New Declaration.
16166 (microblaze_break_function_p,microblaze_is_break_handler): New.
16167 (compute_frame_size): Use microblaze_break_function_p.
16168 Add the test of break_handler.
16169 (microblaze_function_prologue) : Add the test of variable
16170 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16171 (microblaze_function_epilogue) : Add the test of break_handler.
16172 (microblaze_globalize_label) : Add the test of break_handler.
16173 Check the name by BREAK_HANDLER_NAME.
16175 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16177 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16178 microblaze_is_break_handler test.
16179 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16180 Use SYMBOL_REF_DECL.
16182 * config/microblaze/microblaze-protos.h
16183 (microblaze_break_function_p,microblaze_is_break_handler):
16186 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16187 new MicroBlaze break_handler functions.
16189 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16191 * doc/extend.texi (Size of an asm): Move node text according
16192 to its @menu entry position.
16194 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16196 PR tree-optimization/61140
16197 PR tree-optimization/61150
16198 PR tree-optimization/61197
16199 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16201 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16203 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16205 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16207 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16208 __SIZEOF_INT128__ is defined.
16210 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16212 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16213 (rs6000_delegitimize_address): Use it.
16215 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16217 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16218 inplace argument. Store the new address in the original MEM when true.
16219 * emit-rtl.c (change_address_1): Likewise.
16220 (adjust_address_1, adjust_automodify_address_1, offset_address):
16221 Update accordingly.
16222 * rtl.h (plus_constant): Add an inplace argument.
16223 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16224 when true. Avoid generating (plus X (const_int 0)).
16225 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16226 in-place. Pass true to plus_constant.
16227 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16229 2014-05-16 Dehao Chen <dehao@google.com>
16231 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16233 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16236 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16238 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16240 2014-05-16 Dehao Chen <dehao@google.com>
16242 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16243 optimize_function_for_size_p.
16244 * regs.h (REG_FREQ_FROM_BB): Likewise.
16246 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16249 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16250 negt_reg_operand cases.
16251 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16253 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16255 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16257 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16260 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16263 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16265 * tree-cfg.c (dump_function_to_file): Dump the return type of
16266 functions, in a line to itself before the function body, mimicking
16267 the layout of a C function.
16269 2014-05-16 Dehao Chen <dehao@google.com>
16271 * cfghooks.c (make_forwarder_block): Use direct computation to
16272 get fall-through edge's count and frequency.
16274 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16276 * config/arc/arc.c (arc_init): Fix typo in error message.
16277 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16278 (split_stack_prologue_scratch_regno): Likewise.
16279 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16280 word from error message.
16282 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16284 * ira-costs.c: Fix typo in comment.
16286 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16288 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16290 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16292 * varpool.c (dump_varpool_node): Dump write-only flag.
16293 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16295 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16296 write-only variables.
16297 * ipa.c (process_references): New function.
16298 (set_readonly_bit): New function.
16299 (set_writeonly_bit): New function.
16300 (clear_addressable_bit): New function.
16301 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16302 fix handling of aliases.
16303 * cgraph.h (struct varpool_node): Add writeonly flag.
16305 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16307 PR rtl-optimization/60969
16308 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16309 Calculate costs for this case.
16311 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16313 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16314 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16316 2014-05-16 Richard Biener <rguenther@suse.de>
16318 PR tree-optimization/61194
16319 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16320 bool patterns ending in a COND_EXPR.
16322 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16324 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16326 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16328 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16329 where we were unable to cost an RTX.
16331 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16333 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16336 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16337 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16339 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16341 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16342 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16344 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16345 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16347 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16348 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16350 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16353 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16354 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16356 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16359 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16360 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16362 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16363 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16365 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16366 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16368 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16369 rotates and shifts.
16371 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16372 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16374 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16375 ZERO_EXTEND and SIGN_EXTEND better.
16377 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16378 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16380 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16381 logical operations.
16383 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16384 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16386 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16387 costs when costing loads and stores to memory.
16389 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16390 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16392 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16395 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16397 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16399 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16400 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16402 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16404 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16406 (aarch64_rtx_mult_cost): New.
16407 (aarch64_rtx_costs): Use it, refactor as appropriate.
16409 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16410 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16412 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16413 emit instructions, return number of instructions which would
16415 (aarch64_add_constant): Update call to aarch64_build_constant.
16416 (aarch64_output_mi_thunk): Likewise.
16417 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16420 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16422 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16423 (TARGET_RTX_COSTS): Call it.
16425 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16427 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16428 (cortexa57_vector_cost): Likewise.
16429 (cortexa57_tunings): Use them.
16431 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16433 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16434 (cpu_addrcost_table): Use it.
16435 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16436 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16439 2014-05-16 Richard Biener <rguenther@suse.de>
16441 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16442 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16443 (visit_phi): Ignore edges marked as not executable.
16444 (class cond_dom_walker): New.
16445 (cond_dom_walker::before_dom_children): Value-number
16446 control statements and mark successor edges as not
16447 executable if possible.
16448 (run_scc_vn): First walk all control statements in
16449 dominator order, marking edges as not executable.
16450 * tree-inline.c (copy_edges_for_bb): Be not confused
16451 about random edge flags.
16453 2014-05-16 Richard Biener <rguenther@suse.de>
16455 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16457 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16460 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16461 (__TM_simple_begin): Use it.
16462 (__TM_begin): Likewise.
16464 2014-05-15 Martin Jambor <mjambor@suse.cz>
16467 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16468 type_preserved flag when the indirect edge is polymorphic.
16470 2014-05-15 Martin Jambor <mjambor@suse.cz>
16472 PR tree-optimization/61090
16473 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16474 build_ref_for_model.
16476 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16478 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16479 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16481 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16483 PR tree-optimization/61158
16484 * fold-const.c (fold_binary_loc): If X is zero-extended and
16485 shiftc >= prec, make sure zerobits is all ones instead of
16486 invoking undefined behavior.
16488 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16490 * regcprop.h: New file.
16491 * regcprop.c (skip_debug_insn_p): New decl.
16492 (replace_oldest_value_reg): Check skip_debug_insn_p.
16493 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16494 * shrink-wrap.c: Include regcprop.h.
16495 (prepare_shrink_wrap): Call
16496 copyprop_hardreg_forward_bb_without_debug_insn.
16498 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16500 * shrink-wrap.h: Update comment.
16501 * shrink-wrap.c: Update comment.
16502 (next_block_for_reg): Rename to live_edge_for_reg.
16503 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16504 (move_insn_for_shrink_wrap): Split live_edge.
16505 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16507 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16509 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16511 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16512 * config/sparc/sparc.md (fptype_ut699): New attribute.
16513 (in_branch_delay): Return false if -mfix-ut699 is specified and
16514 fptype_ut699 is set to single.
16515 (truncdfsf2): Add fptype_ut699 attribute.
16516 (fix_truncdfsi2): Likewise.
16517 (floatsisf2): Change fptype attribute.
16518 (fix_truncsfsi2): Likewise.
16519 (negtf2_notv9): Delete.
16520 (negtf2_v9): Likewise.
16521 (negtf2_hq): New instruction.
16522 (negtf2): New instruction and splitter.
16523 (negdf2_notv9): Rewrite.
16524 (abstf2_notv9): Delete.
16525 (abstf2_hq_v9): Likewise.
16526 (abstf2_v9): Likewise.
16527 (abstf2_hq): New instruction.
16528 (abstf2): New instruction and splitter.
16529 (absdf2_notv9): Rewrite.
16531 2014-05-14 Cary Coutant <ccoutant@google.com>
16534 * opts.c (common_handle_option): Don't special-case "-g".
16535 (set_debug_level): Default to at least level 2 with "-g".
16537 2014-05-14 DJ Delorie <dj@redhat.com>
16539 * config/msp430/msp430.c (msp430_builtin): Add
16540 MSP430_BUILTIN_DELAY_CYCLES.
16541 (msp430_init_builtins): Register void __delay_cycles(long long).
16542 (msp430_builtin_decl): Add it.
16543 (cg_magic_constant): New.
16544 (msp430_expand_delay_cycles): New.
16545 (msp430_expand_builtin): Call it.
16546 (msp430_print_operand_raw): Change integer printing from "int" to
16548 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16549 (delay_cycles_start): New.
16550 (delay_cycles_end): New.
16551 (delay_cycles_32): New.
16552 (delay_cycles_32x): New.
16553 (delay_cycles_16): New.
16554 (delay_cycles_16x): New.
16555 (delay_cycles_2): New.
16556 (delay_cycles_1): New.
16557 * doc/extend.texi: Document __delay_cycles().
16559 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16561 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16562 length attribute computation.
16564 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16567 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16569 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16572 * config/sparc/sparc.md: Fix types of low and high in DI constant
16573 splitter. Use gen_int_mode in some other splitters.
16575 2014-05-14 Martin Jambor <mjambor@suse.cz>
16578 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16580 2014-05-14 James Norris <jnorris@codesourcery.com>
16582 * omp-low.c (expand_parallel_call): Remove shadow variable.
16583 (expand_omp_taskreg): Likewise.
16585 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16587 * common/config/i386/i386-common.c
16588 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16589 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16590 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16591 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16592 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16593 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16594 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16595 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16596 xsavecintrin.h, xsavesintrin.h.
16597 (x86_64-*-*): Ditto.
16598 * config/i386/clflushoptintrin.h: New.
16599 * config/i386/xsavecintrin.h: Ditto.
16600 * config/i386/xsavesintrin.h: Ditto.
16601 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16602 (bit_XSAVES): Ditto.
16603 (bit_XSAVES): Ditto.
16604 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16605 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16607 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16608 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16609 OPTION_MASK_ISA_XSAVES.
16610 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16611 -mxsavec, -mxsaves.
16612 (PTA_CLFLUSHOPT) Define.
16613 (PTA_XSAVEC): Ditto.
16614 (PTA_XSAVES): Ditto.
16615 (ix86_option_override_internal): Handle new options.
16616 (ix86_valid_target_attribute_inner_p): Ditto.
16617 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16618 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16619 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16620 (bdesc_special_args): Add __builtin_ia32_xsaves,
16621 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16622 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16623 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16624 (ix86_expand_builtin): Handle new builtins.
16625 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16626 (TARGET_CLFLUSHOPT_P): Ditto.
16627 (TARGET_XSAVEC): Ditto.
16628 (TARGET_XSAVEC_P): Ditto.
16629 (TARGET_XSAVES): Ditto.
16630 (TARGET_XSAVES_P): Ditto.
16631 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16632 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16633 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16635 (ANY_XRSTOR64): Ditto.
16637 (xrstor): Change into <xrstor>.
16638 (xrstor_rex64): Change into <xrstor>_rex64.
16639 (xrstor64): Change into <xrstor>64
16641 * config/i386/i386.opt (mclflushopt): New.
16644 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16646 * doc/invoke.texi: Document new options.
16648 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16650 PR rtl-optimization/60866
16651 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16652 Default it to -1. Pass it down to init_simplejump_data.
16653 (init_simplejump_data): New parameter old_seqno. Pass it down
16654 to get_seqno_for_a_jump.
16655 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16656 initializing new jump seqno as a last resort. Add comment.
16657 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16658 jump and pass it down to sel_init_new_insn.
16659 (sel_redirect_edge_and_branch_force): Likewise.
16661 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16663 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16664 shifted values to avoid build warning.
16666 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16668 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16669 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16670 (cfg_layout_merge_blocks): Likewise.
16671 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16673 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16675 PR rtl-optimization/60901
16676 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16677 bb predecessor belongs to the same scheduling region. Adjust comment.
16679 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16681 * doc/sourcebuild.texi: (dfp_hw): Document.
16682 (p8vector_hw): Likewise.
16683 (powerpc_eabi_ok): Likewise.
16684 (powerpc_elfv2): Likewise.
16685 (powerpc_htm_ok): Likewise.
16686 (ppc_recip_hw): Likewise.
16687 (vsx_hw): Likewise.
16689 2014-05-13 Cary Coutant <ccoutant@google.com>
16691 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16693 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16695 * gengtype-parse.c (require3): Eliminate in favor of...
16697 (require_template_declaration): Update to support optional single *
16700 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16701 (create_user_defined_type): Handle a single level of explicit
16702 pointerness within template arguments.
16703 (struct write_types_data): Add field "kind".
16704 (filter_type_name): Handle "*" character.
16705 (write_user_func_for_structure_ptr): Require a write_types_data
16706 rather than just a prefix string, so that we can look up the kind
16707 of the wtd and use it as an index into wrote_user_func_for_ptr,
16708 ensuring that such functions are written at most once. Support
16709 subclasses by invoking the marking function of the ultimate base class.
16710 (write_user_func_for_structure_body): Require a write_types_data
16711 rather than just a prefix string, so that we can pass this to
16712 write_user_func_for_structure_ptr.
16713 (write_func_for_structure): Likewise.
16714 (ggc_wtd): Add initializer of new "kind" field.
16715 (pch_wtd): Likewise.
16717 * gengtype.h (enum write_types_kinds): New.
16718 (struct type): Add field wrote_user_func_for_ptr to the "s"
16721 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16723 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16724 instead of const_binop.
16725 (fold_binary_loc): Likewise.
16727 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16729 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16730 calculation to match get_ref_base_and_extent.
16732 2014-05-13 Catherine Moore <clm@codesourcery.com>
16733 Sandra Loosemore <sandra@codesourcery.com>
16735 * configure.ac: Fix assembly for explicit JALR relocation check.
16736 * configure: Regenerate.
16738 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16740 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16741 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16742 Remove associated type declarations and initialisations.
16743 (arm_expand_neon_builtin): Likewise.
16744 (neon_emit_pair_result_insn): Delete.
16745 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16746 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16747 (neon_vzip<mode>): Likewise.
16748 (neon_vuzp<mode>): Likewise.
16750 2014-05-13 Richard Biener <rguenther@suse.de>
16753 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16754 it needs revisiting whether the call still may be tail-called.
16756 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16758 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16759 * rtl.h (block_symbol): Reduce number of fields to 2.
16760 (rtx_def): Add u2.symbol_ref_flags.
16761 (SYMBOL_REF_FLAGS): Use it.
16762 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16763 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16764 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16765 Lower index of SYMBOL_REF_DATA.
16766 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16767 Print SYMBOL_REF_FLAGS at the same time.
16768 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16770 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16772 * rtl.def (VAR_LOCATION): Remove "i" field.
16773 * rtl.h (rtx_def): Add u2.var_location_status.
16774 (PAT_VAR_LOCATION_STATUS): Use it.
16775 (gen_rtx_VAR_LOCATION): Declare.
16776 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16777 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16778 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16780 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16782 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16783 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16785 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16787 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16788 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16789 * rtl.h (rtx_def): Add insn_uid to u2 field.
16790 (RTX_FLAG_CHECK8): Delete in favor of...
16791 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16792 (INSN_DELETED_P): Update accordingly.
16793 (INSN_UID): Use u2.insn_uid.
16794 (INSN_CHAIN_CODE_P): Define.
16795 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16796 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16797 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16798 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16799 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16800 indices accordingly.
16801 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16802 Update indices for insn-chain rtxes.
16803 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16804 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16805 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16806 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16807 * combine.c (try_combine): Likewise.
16808 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16810 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16812 * rtl.def (REG): Remove middle field.
16813 * rtl.h (rtx_def): Add orignal_regno to u2.
16814 (ORIGINAL_REGNO): Use it instead of field 1.
16815 (REG_ATTRS): Lower field index accordingly.
16816 * gengtype.c (adjust_field_rtx_def): Remove handling of
16817 ORIGINAL_REGNO. Move REG_ATTRS index down.
16818 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16819 code that prints the REGNO.
16821 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16823 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16826 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16828 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16830 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16832 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16833 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16835 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16837 * config/aarch64/aarch64-protos.h
16838 (aarch64_hard_regno_caller_save_mode): New prototype.
16839 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16841 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16843 2014-05-13 Christian Bruel <christian.bruel@st.com>
16845 * target.def (mode_switching): New hook vector.
16846 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16847 (mode_exit, modepriority_to_mode): Likewise.
16848 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16849 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16850 * target.h: Include tm.h and hard-reg-set.h.
16851 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16852 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16853 * doc/tm.texi Regenerate.
16854 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16855 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16856 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16857 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16858 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16859 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16860 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16861 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16862 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16863 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16864 (ix86_emit_mode_set): Hookify.
16865 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16867 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16868 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16869 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16870 (epiphany_mode_priority_to_mode): Remove declaration.
16871 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16872 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16873 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16875 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16876 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16877 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16879 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16882 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16883 is const0_rtx, return immediately. Don't test count == 0 when
16886 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16888 * Makefile.in: add shrink-wrap.o.
16889 * config/i386/i386.c: include "shrink-wrap.h"
16890 * function.c: Likewise.
16891 (requires_stack_frame_p, next_block_for_reg,
16892 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16893 dup_block_and_redirect): Move to shrink-wrap.c
16894 (thread_prologue_and_epilogue_insns): Extract three code segments
16895 as functions in shrink-wrap.c
16896 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16898 * shrink-wrap.c: New file.
16899 * shrink-wrap.h: New file.
16901 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16903 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16904 reference to Solaris.
16906 2014-05-12 Mike Stump <mikestump@comcast.net>
16909 * genattrtab.c (filename): Add.
16910 (convert_set_attr_alternative): Improve error message.
16911 (check_defs): Restore read_md_filename for error messages.
16912 (gen_insn): Save filename.
16914 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16916 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16917 -fno-local-ivars and -fivar-visibility.
16918 * c-family/c.opt: Make -Wshadow also implicitly enable
16921 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16923 * doc/tm.texi: Remove reference to deleted macro.
16924 * doc/tm.texi.in: Likewise.
16926 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16929 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16932 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16935 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16936 * config/arm/aout.h (License): Same.
16937 * config/arm/bpabi.h (License): Same.
16938 * config/arm/elf.h (License): Same.
16939 * config/arm/linux-elf.h (License): Same.
16940 * config/arm/linux-gas.h (License): Same.
16941 * config/arm/netbsd-elf.h (License): Same.
16942 * config/arm/uclinux-eabi.h (License): Same.
16943 * config/arm/uclinux-elf.h (License): Same.
16944 * config/arm/vxworks.h (License): Same.
16946 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16948 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16949 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16950 number of operands to 3.
16951 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16952 * tree-nested.c (convert_nonlocal_omp_clauses,
16953 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16954 * gimplify.c (gimplify_scan_omp_clauses): Handle
16955 OMP_CLAUSE_LINEAR_STMT.
16956 * omp-low.c (lower_rec_input_clauses): Fix typo.
16957 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16958 cast between Fortran boolean_type_node and C _Bool if
16961 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16963 PR tree-optimization/61136
16964 * wide-int.h (multiple_of_p): Define a version that doesn't return
16966 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16967 integer_zerop/const_binop pair.
16968 (multiple_of_p): Likewise, converting both operands to widest_int
16971 2014-05-09 Teresa Johnson <tejohnson@google.com>
16973 * cgraphunit.c (analyze_functions): Use correct dump file.
16975 2014-05-09 Florian Weimer <fweimer@redhat.com>
16977 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16979 (stack_protect_return_slot_p): New function.
16980 (expand_used_vars): Call stack_protect_decl_p and
16981 stack_protect_return_slot_p for -fstack-protector-strong.
16983 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16984 Andrew Haley <aph@redhat.com>
16985 Richard Sandiford <rdsandiford@googlemail.com>
16987 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16990 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16992 PR middle-end/61111
16993 * fold-const.c (fold_binary_loc): Changed width of mask.
16995 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16997 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16998 unsigned int initializers for regno_in, regno_out.
17000 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17003 * config/avr/avr.md (cc): Add new attribute set_vzn.
17004 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17005 Set cc insn attribute to set_vzn instead of set_zn for alternatives
17006 with INC, DEC or NEG.
17007 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17008 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17009 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17011 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17014 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17016 * wide-int.cc (UTItype): Define.
17017 (UDWtype): Define for appropriate W_TYPE_SIZE.
17019 2014-05-09 Richard Biener <rguenther@suse.de>
17021 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17022 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17023 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17024 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17025 ssa_propagate): Adjust.
17027 2014-05-08 Jeff Law <law@redhat.com>
17029 PR tree-optimization/61009
17030 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17031 tri-state rather than a boolean. When a block is too big to
17032 thread through, inform caller via negative return value.
17033 (thread_across_edge): If a block was too big for normal threading,
17034 then it's too big for a joiner too, so remove temporary equivalences
17035 and return immediately.
17037 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17038 Matthias Klose <doko@ubuntu.com>
17041 * optc-gen.awk: Fix option handling for -Wunused-parameter.
17043 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17046 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
17048 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17051 * config/alpha/alpha.c: Include gimple-iterator.h.
17052 (alpha_gimple_fold_builtin): New function. Move
17053 ALPHA_BUILTIN_UMULH folding from ...
17054 (alpha_fold_builtin): ... here.
17055 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
17057 2014-05-08 Wei Mi <wmi@google.com>
17060 * config/i386/i386.c (ix86_compute_frame_layout): Update
17061 preferred_stack_boundary for call, expanded from tls descriptor.
17062 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17063 to depend on SP register.
17064 (*tls_local_dynamic_base_32_gnu): Ditto.
17065 (*tls_local_dynamic_32_once): Ditto.
17066 (tls_global_dynamic_64_<mode>): Set
17067 ix86_tls_descriptor_calls_expanded_in_cfun.
17068 (tls_local_dynamic_base_64_<mode>): Ditto.
17069 (tls_global_dynamic_32): Set
17070 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17071 to depend on SP register.
17072 (tls_local_dynamic_base_32): Ditto.
17074 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17076 * config/arm/arm_neon.h: Update comment.
17077 * config/arm/neon-docgen.ml: Delete.
17078 * config/arm/neon-gen.ml: Delete.
17079 * doc/arm-neon-intrinsics.texi: Update comment.
17081 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17083 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
17085 (vand, vorr, veor, vorn, vbic): Remove.
17086 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
17088 (neon_vsub_unspec): Likewise.
17089 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
17091 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17093 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
17094 (vadd_s16): Likewise.
17095 (vadd_s32): Likewise.
17096 (vadd_f32): Likewise.
17097 (vadd_u8): Likewise.
17098 (vadd_u16): Likewise.
17099 (vadd_u32): Likewise.
17100 (vadd_s64): Likewise.
17101 (vadd_u64): Likewise.
17102 (vaddq_s8): Likewise.
17103 (vaddq_s16): Likewise.
17104 (vaddq_s32): Likewise.
17105 (vaddq_s64): Likewise.
17106 (vaddq_f32): Likewise.
17107 (vaddq_u8): Likewise.
17108 (vaddq_u16): Likewise.
17109 (vaddq_u32): Likewise.
17110 (vaddq_u64): Likewise.
17111 (vmul_s8): Likewise.
17112 (vmul_s16): Likewise.
17113 (vmul_s32): Likewise.
17114 (vmul_f32): Likewise.
17115 (vmul_u8): Likewise.
17116 (vmul_u16): Likewise.
17117 (vmul_u32): Likewise.
17118 (vmul_p8): Likewise.
17119 (vmulq_s8): Likewise.
17120 (vmulq_s16): Likewise.
17121 (vmulq_s32): Likewise.
17122 (vmulq_f32): Likewise.
17123 (vmulq_u8): Likewise.
17124 (vmulq_u16): Likewise.
17125 (vmulq_u32): Likewise.
17126 (vsub_s8): Likewise.
17127 (vsub_s16): Likewise.
17128 (vsub_s32): Likewise.
17129 (vsub_f32): Likewise.
17130 (vsub_u8): Likewise.
17131 (vsub_u16): Likewise.
17132 (vsub_u32): Likewise.
17133 (vsub_s64): Likewise.
17134 (vsub_u64): Likewise.
17135 (vsubq_s8): Likewise.
17136 (vsubq_s16): Likewise.
17137 (vsubq_s32): Likewise.
17138 (vsubq_s64): Likewise.
17139 (vsubq_f32): Likewise.
17140 (vsubq_u8): Likewise.
17141 (vsubq_u16): Likewise.
17142 (vsubq_u32): Likewise.
17143 (vsubq_u64): Likewise.
17144 (vand_s8): Likewise.
17145 (vand_s16): Likewise.
17146 (vand_s32): Likewise.
17147 (vand_u8): Likewise.
17148 (vand_u16): Likewise.
17149 (vand_u32): Likewise.
17150 (vand_s64): Likewise.
17151 (vand_u64): Likewise.
17152 (vandq_s8): Likewise.
17153 (vandq_s16): Likewise.
17154 (vandq_s32): Likewise.
17155 (vandq_s64): Likewise.
17156 (vandq_u8): Likewise.
17157 (vandq_u16): Likewise.
17158 (vandq_u32): Likewise.
17159 (vandq_u64): Likewise.
17160 (vorr_s8): Likewise.
17161 (vorr_s16): Likewise.
17162 (vorr_s32): Likewise.
17163 (vorr_u8): Likewise.
17164 (vorr_u16): Likewise.
17165 (vorr_u32): Likewise.
17166 (vorr_s64): Likewise.
17167 (vorr_u64): Likewise.
17168 (vorrq_s8): Likewise.
17169 (vorrq_s16): Likewise.
17170 (vorrq_s32): Likewise.
17171 (vorrq_s64): Likewise.
17172 (vorrq_u8): Likewise.
17173 (vorrq_u16): Likewise.
17174 (vorrq_u32): Likewise.
17175 (vorrq_u64): Likewise.
17176 (veor_s8): Likewise.
17177 (veor_s16): Likewise.
17178 (veor_s32): Likewise.
17179 (veor_u8): Likewise.
17180 (veor_u16): Likewise.
17181 (veor_u32): Likewise.
17182 (veor_s64): Likewise.
17183 (veor_u64): Likewise.
17184 (veorq_s8): Likewise.
17185 (veorq_s16): Likewise.
17186 (veorq_s32): Likewise.
17187 (veorq_s64): Likewise.
17188 (veorq_u8): Likewise.
17189 (veorq_u16): Likewise.
17190 (veorq_u32): Likewise.
17191 (veorq_u64): Likewise.
17192 (vbic_s8): Likewise.
17193 (vbic_s16): Likewise.
17194 (vbic_s32): Likewise.
17195 (vbic_u8): Likewise.
17196 (vbic_u16): Likewise.
17197 (vbic_u32): Likewise.
17198 (vbic_s64): Likewise.
17199 (vbic_u64): Likewise.
17200 (vbicq_s8): Likewise.
17201 (vbicq_s16): Likewise.
17202 (vbicq_s32): Likewise.
17203 (vbicq_s64): Likewise.
17204 (vbicq_u8): Likewise.
17205 (vbicq_u16): Likewise.
17206 (vbicq_u32): Likewise.
17207 (vbicq_u64): Likewise.
17208 (vorn_s8): Likewise.
17209 (vorn_s16): Likewise.
17210 (vorn_s32): Likewise.
17211 (vorn_u8): Likewise.
17212 (vorn_u16): Likewise.
17213 (vorn_u32): Likewise.
17214 (vorn_s64): Likewise.
17215 (vorn_u64): Likewise.
17216 (vornq_s8): Likewise.
17217 (vornq_s16): Likewise.
17218 (vornq_s32): Likewise.
17219 (vornq_s64): Likewise.
17220 (vornq_u8): Likewise.
17221 (vornq_u16): Likewise.
17222 (vornq_u32): Likewise.
17223 (vornq_u64): Likewise.
17225 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17227 * wide-int.cc (UTItype): Define.
17228 (UDWtype): Define for appropriate W_TYPE_SIZE.
17230 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17232 PR tree-optimization/59100
17233 * tree-ssa-phiopt.c: Include tree-inline.h.
17234 (neutral_element_p, absorbing_element_p): New functions.
17235 (value_replacement): Handle conditional binary operations with a
17236 neutral or absorbing element.
17238 2014-05-08 Richard Biener <rguenther@suse.de>
17240 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17241 folding the expression.
17242 (valueize_expr): Remove.
17243 (visit_reference_op_load): Do not valueize the result of
17245 (simplify_binary_expression): Likewise.
17246 (simplify_unary_expression): Likewise.
17248 2014-05-08 Richard Biener <rguenther@suse.de>
17250 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17251 looking at TYPE_ARG_TYPES.
17253 2014-05-08 Richard Biener <rguenther@suse.de>
17255 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17256 pointer propagation special-case.
17258 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17260 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17261 core part of address expressions.
17263 2014-05-08 Alan Modra <amodra@gmail.com>
17266 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17267 loads and stores when -mno-strict-align at any alignment.
17268 (expand_block_clear): Similarly. Also correct calculation of
17271 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17273 PR middle-end/39246
17274 * tree-complex.c (expand_complex_move): Keep line info when expanding
17276 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17277 of complex expression. Use new argument to display correct location
17278 for values coming from phi statement.
17279 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17280 (warn_uninitialized_phi): Pass location of phi argument to
17282 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17283 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17285 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17287 * config/rs6000/predicates.md (indexed_address_mem): New.
17288 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17289 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17290 fpstore_ux, fpstore_u.
17291 (sign_extend, indexed, update): New.
17292 (cell_micro): Adjust.
17293 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17294 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17295 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17296 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17297 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17298 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17299 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17300 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17301 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17302 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17303 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17304 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17305 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17306 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17307 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17309 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17310 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17311 *vsx_extract_<mode>_store): Adjust.
17312 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17313 is_cracked_insn, insn_must_be_first_in_group,
17314 insn_must_be_last_in_group): Adjust.
17316 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17318 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17319 ppc440-fpstore): Adjust.
17320 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17321 ppc476-fpstore): Adjust.
17322 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17323 ppc601-fpstore): Adjust.
17324 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17326 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17328 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17329 ppc7450-fpstore): Adjust.
17330 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17331 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17332 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17334 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17335 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17336 cell-fpstore, cell-fpstore-update): Adjust.
17337 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17338 ppce300c3_store, ppce300c3_fpstore): Adjust.
17339 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17340 e500mc_fpstore): Adjust.
17341 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17342 e500mc64_store, e500mc64_fpstore): Adjust.
17343 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17344 e5500_fpstore): Adjust.
17345 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17346 e6500_fpstore): Adjust.
17347 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17349 * config/rs6000/power4.md (power4-load, power4-load-ext,
17350 power4-load-ext-update, power4-load-ext-update-indexed,
17351 power4-load-update-indexed, power4-load-update, power4-fpload,
17352 power4-fpload-update, power4-store, power4-store-update,
17353 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17355 * config/rs6000/power5.md (power5-load, power5-load-ext,
17356 power5-load-ext-update, power5-load-ext-update-indexed,
17357 power5-load-update-indexed, power5-load-update, power5-fpload,
17358 power5-fpload-update, power5-store, power5-store-update,
17359 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17361 * config/rs6000/power6.md (power6-load, power6-load-ext,
17362 power6-load-update, power6-load-update-indexed,
17363 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17364 power6-fpload-update, power6-store, power6-store-update,
17365 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17367 * config/rs6000/power7.md (power7-load, power7-load-ext,
17368 power7-load-update, power7-load-update-indexed,
17369 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17370 power7-fpload-update, power7-store, power7-store-update,
17371 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17373 * config/rs6000/power8.md (power8-load, power8-load-update,
17374 power8-load-ext, power8-load-ext-update, power8-fpload,
17375 power8-fpload-update, power8-store, power8-store-update-indexed,
17376 power8-fpstore, power8-fpstore-update): Adjust.
17377 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17379 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17380 titan_lsu_store, titan_lsu_fpstore): Adjust.
17381 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17383 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17386 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17387 unrolled byte insns. Emit address increments after move insns.
17389 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17391 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17392 const_gimple, rather than a gimple.
17393 (gimple_call_builtin_p): Likewise, for the three variants.
17395 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17396 (gimple_call_builtin_p): Likewise, for the three variants.
17398 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17400 PR tree-optimization/61095
17401 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17403 2014-05-07 Richard Biener <rguenther@suse.de>
17405 PR tree-optimization/61034
17406 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17407 (maybe_skip_until): Use translate to take into account
17408 lattices when trying to do disambiguations.
17409 (get_continuation_for_phi_1): Likewise.
17410 (get_continuation_for_phi): Adjust for added translate arguments.
17411 (walk_non_aliased_vuses): Likewise.
17412 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17413 (walk_non_aliased_vuses): Likewise.
17414 (call_may_clobber_ref_p_1): Declare.
17415 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17416 calls. Stop early if we are only supposed to disambiguate.
17417 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17419 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17421 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17422 Emit an error when the function has arguments.
17424 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17426 * cfgloop.h (unswitch_loops): Remove.
17427 * doc/passes.texi: Remove references to loop-unswitch.c
17428 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17430 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17432 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17433 check for loads group of length 3.
17434 (vect_permute_load_chain): New permutations for loads group of
17436 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17437 of vec_perm_shuffle for the new permutations.
17439 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17441 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17442 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17443 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17444 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17445 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17446 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17447 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17448 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17450 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17452 * loop-unswitch.c: Delete.
17454 2014-05-07 Richard Biener <rguenther@suse.de>
17456 * config.gcc: Always set need_64bit_hwint to yes.
17458 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17460 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17461 of using optimize_size.
17463 2014-05-06 Mike Stump <mikestump@comcast.net>
17465 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17467 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17469 * config/i386/sse.md (*mov<mode>_internal)
17470 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17471 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17472 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17473 (*<code><mode>3, *andnot<mode>3<mask_name>)
17474 (<mask_codefor><code><mode>3<mask_name>): Only consider
17475 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17477 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17480 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17482 * lra-constraints.c (valid_address_p): Move earlier in file.
17483 Add a constraint argument to the address_info version.
17484 (satisfies_memory_constraint_p): New function.
17485 (satisfies_address_constraint_p): Likewise.
17486 (process_alt_operands, curr_insn_transform): Use them.
17487 (process_address): Pass the constraint to valid_address_p when
17488 checking address operands.
17490 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17492 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17493 to their respective blocks. Fix inadvertent use of "node".
17495 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17497 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17499 (init_emit_once): ...here.
17500 * rtl.h (init_derived_machine_modes): Declare.
17501 * toplev.c (do_compile): Call it even if no_backend.
17503 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17504 Mike Stump <mikestump@comcast.net>
17505 Richard Sandiford <rdsandiford@googlemail.com>
17506 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17508 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17509 (rtx_equal_for_memref_p): Update comment.
17510 (adjust_offset_for_component_ref): Use wide-int interfaces.
17511 * builtins.c (get_object_alignment_2): Likewise.
17512 (c_readstr): Likewise.
17513 (target_char_cast): Add comment.
17514 (determine_block_size): Use wide-int interfaces.
17515 (expand_builtin_signbit): Likewise.
17516 (fold_builtin_int_roundingfn): Likewise.
17517 (fold_builtin_bitop): Likewise.
17518 (fold_builtin_bswap): Likewise.
17519 (fold_builtin_logarithm): Use signop.
17520 (fold_builtin_pow): Likewise.
17521 (fold_builtin_memory_op): Use wide-int interfaces.
17522 (fold_builtin_object_size): Likewise.
17523 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17524 nb_iterations_estimate.
17525 (record_niter_bound): Use wide-int interfaces.
17526 (get_estimated_loop_iterations_int): Likewise.
17527 (get_estimated_loop_iterations): Likewise.
17528 (get_max_loop_iterations): Likewise.
17529 * cfgloop.h: Include wide-int.h.
17530 (struct nb_iter_bound): Change bound to widest_int.
17531 (struct loop): Change nb_iterations_upper_bound and
17532 nb_iterations_estimate to widest_int.
17533 (record_niter_bound): Switch to use widest_int.
17534 (get_estimated_loop_iterations): Likewise.
17535 (get_max_loop_iterations): Likewise.
17536 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17537 update for wide-int.
17538 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17539 * combine.c (try_combine): Likewise.
17540 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17541 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17543 (aarch64_float_const_representable_p): Likewise.
17544 * config/arc/arc.c: Include wide-int.h.
17545 (arc_can_use_doloop_p): Use wide-int interfaces.
17546 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17547 (vfp3_const_double_index): Likewise.
17548 * config/avr/avr.c (avr_out_round): Likewise.
17549 (avr_fold_builtin): Likewise.
17550 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17551 (bfin_can_use_doloop_p): Likewise.
17552 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17553 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17554 * config/i386/i386.c: Include wide-int.h.
17555 (ix86_data_alignment): Use wide-int interfaces.
17556 (ix86_local_alignment): Likewise.
17557 (ix86_emit_swsqrtsf): Update real_from_integer.
17558 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17559 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17560 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17561 (zero_constant): Likewise.
17562 (input_operand): Likewise.
17563 (splat_input_operand): Likewise.
17564 (non_logical_cint_operand): Change const_double to const_wide_int.
17565 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17566 (easy_altivec_constant): Remove comment.
17567 (paired_expand_vector_init): Use CONSTANT_P.
17568 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17569 (rs6000_emit_move): Update checks.
17570 (rs6000_aggregate_candidate): Use wide-int interfaces.
17571 (rs6000_expand_ternop_builtin): Likewise.
17572 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17573 (rs6000_assemble_integer): Likewise.
17574 (rs6000_hash_constant): Likewise.
17575 (output_toc): Likewise.
17576 (rs6000_rtx_costs): Likewise.
17577 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17578 * config/rs6000/rs6000-c.c: Include wide-int.h.
17579 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17580 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17581 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17582 Handle CONST_WIDE_INT.
17583 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17584 Use tree_fits_uhwi_p.
17585 * config/sparc/sparc.c: Include wide-int.h.
17586 (sparc_fold_builtin): Use wide-int interfaces.
17587 * config/vax/vax.c: Include wide-int.h.
17588 (vax_float_literal): Use real_from_integer.
17589 * coretypes.h (struct hwivec_def): New.
17591 (const_hwivec): New.
17592 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17593 (equiv_constant): Handle CONST_WIDE_INT.
17594 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17595 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17596 * dbxout.c (stabstr_U): Use wide-int interfaces.
17597 (dbxout_type): Update to use cst_fits_shwi_p.
17598 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17599 (TARGET_SUPPORTS_WIDE_INT): Add default.
17600 * dfp.c: Include wide-int.h.
17601 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17602 decimal_real_to_integer.
17603 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17604 decimal_real_to_integer.
17605 * doc/generic.texi (Constant expressions): Update for wide_int.
17606 * doc/rtl.texi (const_double): Likewise.
17607 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17608 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17609 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17610 (REAL_VALUE_FROM_INT): Remove.
17611 (TARGET_SUPPORTS_WIDE_INT): New.
17612 * doc/tm.texi: Regenerate.
17613 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17614 * double-int.h: Include wide-int.h.
17615 (struct wi::int_traits): New.
17616 * dwarf2out.c (get_full_len): New.
17617 (dw_val_equal_p): Add case dw_val_class_wide_int.
17618 (size_of_loc_descr): Likewise.
17619 (output_loc_operands): Likewise.
17620 (insert_double): Remove.
17621 (insert_wide_int): New.
17622 (add_AT_wide): New.
17623 (print_die): Add case dw_val_class_wide_int.
17624 (attr_checksum): Likewise.
17625 (attr_checksum_ordered): Likewise.
17626 (same_dw_val_p): Likewise.
17627 (size_of_die): Likewise.
17628 (value_format): Likewise.
17629 (output_die): Likewise.
17630 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17632 (clz_loc_descriptor): Use wide-int interfaces.
17633 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17634 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17635 (round_up_to_align): Use wide-int interfaces.
17636 (field_byte_offset): Likewise.
17637 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17638 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17639 CONST_DOUBLE handling. Use wide-int interfaces.
17640 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17641 (gen_enumeration_type_die): Use add_AT_wide.
17642 (hash_loc_operands): Add case dw_val_class_wide_int.
17643 (compare_loc_operands): Likewise.
17644 * dwarf2out.h: Include wide-int.h.
17645 (wide_int_ptr): New.
17646 (enum dw_val_class): Add dw_val_class_wide_int.
17647 (struct dw_val_struct): Add val_wide.
17648 * emit-rtl.c (const_wide_int_htab): New.
17649 (const_wide_int_htab_hash): New.
17650 (const_wide_int_htab_eq): New.
17651 (lookup_const_wide_int): New.
17652 (const_double_htab_hash): Use wide-int interfaces.
17653 (const_double_htab_eq): Likewise.
17654 (rtx_to_double_int): Conditionally compile for wide-int.
17655 (immed_double_int_const): Rename to immed_wide_int_const and
17656 update for wide-int.
17657 (immed_double_const): Conditionally compile for wide-int.
17658 (init_emit_once): Use wide-int interfaces.
17659 * explow.c (plus_constant): Likewise.
17660 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17661 (lshift_value): Use wide-int interfaces.
17662 (expand_mult): Likewise.
17663 (choose_multiplier): Likewise.
17664 (expand_smod_pow2): Likewise.
17665 (make_tree): Likewise.
17666 * expr.c (convert_modes): Consolidate handling of constants.
17667 Use wide-int interfaces.
17668 (emit_group_load_1): Add note.
17669 (store_expr): Update comment.
17670 (get_inner_reference): Use wide-int interfaces.
17671 (expand_constructor): Update comment.
17672 (expand_expr_real_2): Use wide-int interfaces.
17673 (expand_expr_real_1): Likewise.
17674 (reduce_to_bit_field_precision): Likewise.
17675 (const_vector_from_tree): Likewise.
17676 * final.c: Include wide-int-print.h.
17677 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17678 * fixed-value.c: Include wide-int.h.
17679 (fixed_from_string): Use wide-int interfaces.
17680 (fixed_to_decimal): Likewise.
17681 (fixed_convert_from_real): Likewise.
17682 (real_convert_from_fixed): Likewise.
17683 * fold-const.h (mem_ref_offset): Return an offset_int.
17684 (div_if_zero_remainder): Remove code parameter.
17685 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17686 Use wide-int interfaces.
17687 (may_negate_without_overflow_p): Use wide-int interfaces.
17688 (negate_expr_p): Likewise.
17689 (fold_negate_expr): Likewise.
17690 (int_const_binop_1): Likewise.
17691 (const_binop): Likewise.
17692 (fold_convert_const_int_from_int): Likewise.
17693 (fold_convert_const_int_from_real): Likewise.
17694 (fold_convert_const_int_from_fixed): Likewise.
17695 (fold_convert_const_fixed_from_int): Likewise.
17696 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17697 (sign_bit_p): Use wide-int interfaces.
17698 (make_range_step): Likewise.
17699 (build_range_check): Likewise. Pass an integer of the correct type
17700 instead of using integer_one_node.
17701 (range_predecessor): Pass an integer of the correct type instead
17702 of using integer_one_node.
17703 (range_successor): Likewise.
17704 (merge_ranges): Likewise.
17705 (unextend): Use wide-int interfaces.
17706 (extract_muldiv_1): Likewise.
17707 (fold_div_compare): Likewise.
17708 (fold_single_bit_test): Likewise.
17709 (fold_sign_changed_comparison): Likewise.
17710 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17711 (fold_plusminus_mult_expr): Use wide-int interfaces.
17712 (native_encode_int): Likewise.
17713 (native_interpret_int): Likewise.
17714 (fold_unary_loc): Likewise.
17715 (pointer_may_wrap_p): Likewise.
17716 (size_low_cst): Likewise.
17717 (mask_with_tz): Likewise.
17718 (fold_binary_loc): Likewise.
17719 (fold_ternary_loc): Likewise.
17720 (multiple_of_p): Likewise.
17721 (tree_call_nonnegative_warnv_p): Update calls to
17722 tree_int_cst_min_precision and real_from_integer.
17723 (fold_negate_const): Use wide-int interfaces.
17724 (fold_abs_const): Likewise.
17725 (fold_relational_const): Use tree_int_cst_lt.
17726 (round_up_loc): Use wide-int interfaces.
17727 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17728 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17729 * gengtype.c: Remove include of double-int.h.
17730 (do_typedef): Use wide-int interfaces.
17731 (open_base_files): Add wide-int.h.
17732 (main): Add offset_int and widest_int typedefs.
17733 * gengtype-lex.l: Handle "^".
17734 (CXX_KEYWORD): Add "static".
17735 * gengtype-parse.c (require3): New.
17736 (require_template_declaration): Handle constant template arguments
17737 and nested templates.
17738 * gengtype-state.c: Don't include "double-int.h".
17739 * genpreds.c (write_one_predicate_function): Update comment.
17740 (write_tm_constrs_h): Add check for hval and lval use in
17742 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17743 (add_to_sequence): Likewise.
17744 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17745 and const_double_operand.
17746 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17748 * gimple-fold.c (get_base_constructor): Likewise.
17749 (fold_array_ctor_reference): Likewise.
17750 (fold_nonarray_ctor_reference): Likewise.
17751 (fold_const_aggregate_ref_1): Likewise.
17752 (gimple_val_nonnegative_real_p): Likewise.
17753 (gimple_fold_indirect_ref): Likewise.
17754 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17755 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17756 (struct slsr_cand_d): Change index to be widest_int.
17757 (struct incr_info_d): Change incr to be widest_int.
17758 (alloc_cand_and_find_basis): Use wide-int interfaces.
17759 (slsr_process_phi): Likewise.
17760 (backtrace_base_for_ref): Likewise. Return a widest_int.
17761 (restructure_reference): Take a widest_int instead of a double_int.
17762 (slsr_process_ref): Use wide-int interfaces.
17763 (create_mul_ssa_cand): Likewise.
17764 (create_mul_imm_cand): Likewise.
17765 (create_add_ssa_cand): Likewise.
17766 (create_add_imm_cand): Take a widest_int instead of a double_int.
17767 (slsr_process_add): Use wide-int interfaces.
17768 (slsr_process_cast): Likewise.
17769 (slsr_process_copy): Likewise.
17770 (dump_candidate): Likewise.
17771 (dump_incr_vec): Likewise.
17772 (replace_ref): Likewise.
17773 (cand_increment): Likewise. Return a widest_int.
17774 (cand_abs_increment): Likewise.
17775 (replace_mult_candidate): Take a widest_int instead of a double_int.
17776 (replace_unconditional_candidate): Use wide-int interfaces.
17777 (incr_vec_index): Take a widest_int instead of a double_int.
17778 (create_add_on_incoming_edge): Likewise.
17779 (create_phi_basis): Use wide-int interfaces.
17780 (replace_conditional_candidate): Likewise.
17781 (record_increment): Take a widest_int instead of a double_int.
17782 (record_phi_increments): Use wide-int interfaces.
17783 (phi_incr_cost): Take a widest_int instead of a double_int.
17784 (lowest_cost_path): Likewise.
17785 (total_savings): Likewise.
17786 (analyze_increments): Use wide-int interfaces.
17787 (ncd_with_phi): Take a widest_int instead of a double_int.
17788 (ncd_of_cand_and_phis): Likewise.
17789 (nearest_common_dominator_for_cands): Likewise.
17790 (insert_initializers): Use wide-int interfaces.
17791 (all_phi_incrs_profitable): Likewise.
17792 (replace_one_candidate): Likewise.
17793 (replace_profitable_candidates): Likewise.
17794 * godump.c: Include wide-int-print.h.
17795 (go_output_typedef): Use wide-int interfaces.
17796 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17797 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17798 (build_loop_iteration_domains): Likewise.
17799 * hooks.h: Include wide-int.h rather than double-int.h.
17800 (hook_bool_dint_dint_uint_bool_true): Delete.
17801 (hook_bool_wint_wint_uint_bool_true): Declare.
17802 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17803 (hook_bool_wint_wint_uint_bool_true): New.
17804 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17806 (ubsan_expand_si_overflow_mul_check): Likewise.
17807 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17808 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17809 (get_ancestor_addr_info): Likewise.
17810 (ipa_modify_call_arguments): Likewise.
17811 * loop-doloop.c (doloop_modify): Likewise.
17812 (doloop_optimize): Likewise.
17813 * loop-iv.c (iv_number_of_iterations): Likewise.
17814 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17815 (unroll_loop_constant_iterations): Likewise.
17816 (decide_unroll_runtime_iterations): Likewise.
17817 (unroll_loop_runtime_iterations): Likewise.
17818 (decide_peel_simple): Likewise.
17819 (decide_unroll_stupid): Likewise.
17820 * lto-streamer-in.c (streamer_read_wi): Add.
17821 (input_cfg): Use wide-int interfaces.
17822 (lto_input_tree_1): Likewise.
17823 * lto-streamer-out.c (streamer_write_wi): Add.
17824 (hash_tree): Use wide-int interfaces.
17825 (output_cfg): Likewise.
17826 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17827 (GTFILES): Add wide-int.h and signop.h.
17828 (TAGS): Look for .cc files too.
17829 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17830 * optabs.c (expand_subword_shift): Likewise.
17831 (expand_doubleword_shift): Likewise.
17832 (expand_absneg_bit): Likewise.
17833 (expand_copysign_absneg): Likewise.
17834 (expand_copysign_bit): Likewise.
17835 * postreload.c (reload_cse_simplify_set): Likewise.
17836 * predict.c (predict_iv_comparison): Likewise.
17837 * pretty-print.h: Include wide-int-print.h.
17839 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17840 * print-tree.c: Include wide-int-print.h.
17841 (print_node_brief): Use wide-int interfaces.
17842 (print_node): Likewise.
17843 * read-rtl.c (validate_const_wide_int): New.
17844 (read_rtx_code): Add CONST_WIDE_INT case.
17845 * real.c: Include wide-int.h.
17846 (real_to_integer2): Delete.
17847 (real_to_integer): New function, returning a wide_int.
17848 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17849 (ten_to_ptwo): Update call to real_from_integer.
17850 (real_digit): Likewise.
17851 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17852 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17853 (REAL_VALUE_TO_INT): Delete.
17854 (real_to_integer): Declare a wide-int form.
17855 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17856 * recog.c (const_int_operand): Improve comment.
17857 (const_scalar_int_operand): New.
17858 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17859 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17860 (split_double): Likewise.
17861 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17862 (rtx_size): Likewise.
17863 (rtx_alloc_stat_v): New.
17864 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17865 (cwi_output_hex): New.
17866 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17867 (cwi_check_failed_bounds): New.
17868 * rtl.def (CONST_WIDE_INT): New.
17869 * rtl.h: Include <utility> and wide-int.h.
17870 (struct hwivec_def): New.
17871 (CWI_GET_NUM_ELEM): New.
17872 (CWI_PUT_NUM_ELEM): New.
17873 (struct rtx_def): Add num_elem and hwiv.
17874 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17875 (CASE_CONST_UNIQUE): Likewise.
17876 (CASE_CONST_ANY): Likewise.
17877 (CONST_SCALAR_INT_P): Likewise.
17878 (CONST_WIDE_INT_P): New.
17880 (HWIVEC_CHECK): New.
17881 (cwi_check_failed_bounds): New.
17883 (HWIVEC_CHECK): New.
17884 (CONST_WIDE_INT_VEC) New.
17885 (CONST_WIDE_INT_NUNITS) New.
17886 (CONST_WIDE_INT_ELT) New.
17887 (rtx_mode_t): New type.
17888 (wi::int_traits <rtx_mode_t>): New.
17890 (wi::min_value): New.
17891 (wi::max_value): New.
17893 (const_wide_int_alloc): New.
17894 (immed_wide_int_const): New.
17895 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17896 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17897 * signop.h: New file.
17898 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17899 (simplify_const_unary_operation): Use wide-int interfaces.
17900 (simplify_binary_operation_1): Likewise.
17901 (simplify_const_binary_operation): Likewise.
17902 (simplify_const_relational_operation): Likewise.
17903 (simplify_immed_subreg): Likewise.
17904 * stmt.c (expand_case): Likewise.
17905 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17906 signop rather than a bool.
17907 * stor-layout.c (layout_type): Use wide-int interfaces.
17908 (initialize_sizetypes): Update calls to
17909 set_min_and_max_values_for_integral_type.
17910 (set_min_and_max_values_for_integral_type): Take a signop rather
17911 than a bool. Use wide-int interfaces.
17912 (fixup_signed_type): Update accordingly. Remove
17913 HOST_BITS_PER_DOUBLE_INT limit.
17914 (fixup_unsigned_type): Likewise.
17915 * system.h (STATIC_CONSTANT_P): New.
17916 (STATIC_ASSERT): New.
17917 * target.def (can_use_doloop_p): Take widest_ints rather than
17919 * target.h: Include wide-int.h rather than double-int.h.
17920 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17922 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17923 rather than INT_CST_LT_UNSIGNED.
17924 (can_use_doloop_if_innermost): Take widest_ints rather than
17926 * tree-affine.c: Include wide-int-print.h.
17927 (double_int_ext_for_comb): Delete.
17928 (wide_int_ext_for_comb): New.
17929 (aff_combination_zero): Use wide-int interfaces.
17930 (aff_combination_const): Take a widest_int instead of a double_int.
17931 (aff_combination_elt): Use wide-int interfaces.
17932 (aff_combination_scale): Take a widest_int instead of a double_int.
17933 (aff_combination_add_elt): Likewise.
17934 (aff_combination_add_cst): Likewise.
17935 (aff_combination_add): Use wide-int interfaces.
17936 (aff_combination_convert): Likewise.
17937 (tree_to_aff_combination): Likewise.
17938 (add_elt_to_tree): Take a widest_int instead of a double_int.
17939 (aff_combination_to_tree): Use wide-int interfaces.
17940 (aff_combination_remove_elt): Likewise.
17941 (aff_combination_add_product): Take a widest_int instead of
17943 (aff_combination_mult): Use wide-int interfaces.
17944 (aff_combination_expand): Likewise.
17945 (double_int_constant_multiple_p): Delete.
17946 (wide_int_constant_multiple_p): New.
17947 (aff_combination_constant_multiple_p): Take a widest_int pointer
17948 instead of a double_int pointer.
17949 (print_aff): Use wide-int interfaces.
17950 (get_inner_reference_aff): Take a widest_int pointer
17951 instead of a double_int pointer.
17952 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17953 * tree-affine.h: Include wide-int.h.
17954 (struct aff_comb_elt): Change type of coef to widest_int.
17955 (struct affine_tree_combination): Change type of offset to widest_int.
17956 (double_int_ext_for_comb): Delete.
17957 (wide_int_ext_for_comb): New.
17958 (aff_combination_const): Use widest_int instead of double_int.
17959 (aff_combination_scale): Likewise.
17960 (aff_combination_add_elt): Likewise.
17961 (aff_combination_constant_multiple_p): Likewise.
17962 (get_inner_reference_aff): Likewise.
17963 (aff_comb_cannot_overlap_p): Likewise.
17964 (aff_combination_zero_p): Use wide-int interfaces.
17965 * tree.c: Include tree.h.
17966 (init_ttree): Use make_int_cst.
17967 (tree_code_size): Removed code for INTEGER_CST case.
17968 (tree_size): Add INTEGER_CST case.
17969 (make_node_stat): Update comment.
17970 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17971 (build_int_cst_type): Use wide-int interfaces.
17972 (double_int_to_tree): Likewise.
17973 (double_int_fits_to_tree_p): Delete.
17974 (force_fit_type_double): Delete.
17975 (force_fit_type): New.
17976 (int_cst_hash_hash): Use wide-int interfaces.
17977 (int_cst_hash_eq): Likewise.
17978 (build_int_cst_wide): Delete.
17979 (wide_int_to_tree): New.
17980 (cache_integer_cst): Use wide-int interfaces.
17981 (build_low_bits_mask): Likewise.
17982 (cst_and_fits_in_hwi): Likewise.
17983 (real_value_from_int_cst): Likewise.
17984 (make_int_cst_stat): New.
17985 (integer_zerop): Use wide_int interfaces.
17986 (integer_onep): Likewise.
17987 (integer_all_onesp): Likewise.
17988 (integer_pow2p): Likewise.
17989 (integer_nonzerop): Likewise.
17990 (tree_log2): Likewise.
17991 (tree_floor_log2): Likewise.
17992 (tree_ctz): Likewise.
17993 (int_size_in_bytes): Likewise.
17994 (mem_ref_offset): Return an offset_int rather than a double_int.
17995 (build_type_attribute_qual_variant): Use wide_int interfaces.
17996 (type_hash_eq): Likewise
17997 (tree_int_cst_equal): Likewise.
17998 (tree_int_cst_lt): Delete.
17999 (tree_int_cst_compare): Likewise.
18000 (tree_fits_shwi_p): Use wide_int interfaces.
18001 (tree_fits_uhwi_p): Likewise.
18002 (tree_int_cst_sign_bit): Likewise.
18003 (tree_int_cst_sgn): Likewise.
18004 (tree_int_cst_min_precision): Take a signop rather than a bool.
18005 (simple_cst_equal): Use wide_int interfaces.
18006 (compare_tree_int): Likewise.
18007 (iterative_hash_expr): Likewise.
18008 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
18010 (get_type_static_bounds): Use wide_int interfaces.
18011 (tree_int_cst_elt_check_failed): New.
18012 (build_common_tree_nodes): Reordered to set prec before filling in
18014 (int_cst_value): Check cst_and_fits_in_hwi.
18015 (widest_int_cst_value): Use wide_int interfaces.
18016 (upper_bound_in_type): Likewise.
18017 (lower_bound_in_type): Likewise.
18018 (num_ending_zeros): Likewise.
18019 (drop_tree_overflow): Likewise.
18020 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18021 (gen_conditions_for_pow_cst_base): Likewise.
18022 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18023 (group_case_labels_stmt): Use wide-int interfaces.
18024 (verify_gimple_assign_binary): Likewise.
18025 (print_loop): Likewise.
18026 * tree-chrec.c (tree_fold_binomial): Likewise.
18027 * tree-core.h (struct tree_base): Add int_length.
18028 (struct tree_int_cst): Change rep of value.
18029 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18030 (dr_may_alias_p): Likewise.
18031 (max_stmt_executions_tree): Likewise.
18032 * tree.def (INTEGER_CST): Update comment.
18033 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18034 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18035 * tree-dump.c: Include wide-int.h and wide-int-print.h.
18036 (dequeue_and_dump): Use wide-int interfaces.
18037 * tree.h: Include wide-int.h.
18038 (NULL_TREE): Moved to earlier loc in file.
18039 (TREE_INT_CST_ELT_CHECK): New.
18040 (tree_int_cst_elt_check_failed): New.
18042 (TREE_INT_CST): Delete.
18043 (TREE_INT_CST_LOW): Use wide-int interfaces.
18044 (TREE_INT_CST_HIGH): Delete.
18045 (TREE_INT_CST_NUNITS): New.
18046 (TREE_INT_CST_EXT_NUNITS): Likewise.
18047 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
18048 (TREE_INT_CST_ELT): Likewise.
18049 (INT_CST_LT): Delete.
18050 (tree_int_cst_elt_check): New (two forms).
18051 (type_code_size): Update comment.
18052 (make_int_cst_stat, make_int_cst): New.
18053 (tree_to_double_int): Delete.
18054 (double_int_fits_to_tree_p): Delete.
18055 (force_fit_type_double): Delete.
18056 (build_int_cstu): Replace with out-of-line function.
18057 (build_int_cst_wide): Delete.
18058 (tree_int_cst_lt): Define inline.
18059 (tree_int_cst_le): New.
18060 (tree_int_cst_compare): Define inline.
18061 (tree_int_cst_min_precision): Take a signop rather than a bool.
18062 (wi::int_traits <const_tree>): New.
18063 (wi::int_traits <tree>): New.
18064 (wi::extended_tree): New.
18065 (wi::int_traits <wi::extended_tree>): New.
18066 (wi::to_widest): New.
18067 (wi::to_offset): New.
18068 (wi::fits_to_tree_p): New.
18069 (wi::min_value): New.
18070 (wi::max_value): New.
18071 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18072 (copy_tree_body_r): Likewise.
18073 * tree-object-size.c (compute_object_offset): Likewise.
18074 (addr_object_size): Likewise.
18075 * tree-predcom.c: Include wide-int-print.h.
18076 (struct dref_d): Change type of offset to widest_int.
18077 (dump_dref): Call wide-int printer.
18078 (aff_combination_dr_offset): Use wide-int interfaces.
18079 (determine_offset): Take a widest_int pointer rather than a
18080 double_int pointer.
18081 (split_data_refs_to_components): Use wide-int interfaces.
18082 (suitable_component_p): Likewise.
18083 (order_drefs): Likewise.
18084 (add_ref_to_chain): Likewise.
18085 (valid_initializer_p): Likewise.
18086 (determine_roots_comp): Likewise.
18087 * tree-pretty-print.c: Include wide-int-print.h.
18088 (dump_generic_node): Use wide-int interfaces.
18089 * tree-sra.c (sra_ipa_modify_expr): Likewise.
18090 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
18091 (move_fixed_address_to_symbol): Likewise.
18092 (move_hint_to_base): Likewise.
18093 (move_pointer_to_base): Likewise.
18094 (move_variant_to_index): Likewise.
18095 (most_expensive_mult_to_index): Likewise.
18096 (addr_to_parts): Likewise.
18097 (copy_ref_info): Likewise.
18098 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18099 (indirect_refs_may_alias_p): Likewise.
18100 (stmt_kills_ref_p_1): Likewise.
18101 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18102 * tree-ssa-ccp.c: Update comment at top of file. Include
18104 (struct prop_value_d): Change type of mask to widest_int.
18105 (extend_mask): New function.
18106 (dump_lattice_value): Use wide-int interfaces.
18107 (get_default_value): Likewise.
18108 (set_constant_value): Likewise.
18109 (set_value_varying): Likewise.
18110 (valid_lattice_transition): Likewise.
18111 (set_lattice_value): Likewise.
18112 (value_to_double_int): Delete.
18113 (value_to_wide_int): New.
18114 (get_value_from_alignment): Use wide-int interfaces.
18115 (get_value_for_expr): Likewise.
18116 (do_dbg_cnt): Likewise.
18117 (ccp_finalize): Likewise.
18118 (ccp_lattice_meet): Likewise.
18119 (bit_value_unop_1): Use widest_ints rather than double_ints.
18120 (bit_value_binop_1): Likewise.
18121 (bit_value_unop): Use wide-int interfaces.
18122 (bit_value_binop): Likewise.
18123 (bit_value_assume_aligned): Likewise.
18124 (evaluate_stmt): Likewise.
18125 (ccp_fold_stmt): Likewise.
18126 (visit_cond_stmt): Likewise.
18127 (ccp_visit_stmt): Likewise.
18128 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18129 (constant_pointer_difference): Likewise.
18130 (associate_pointerplus): Likewise.
18131 (combine_conversions): Likewise.
18132 * tree-ssa-loop.h: Include wide-int.h.
18133 (struct tree_niter_desc): Change type of max to widest_int.
18134 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18135 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18136 (remove_redundant_iv_tests): Likewise.
18137 (canonicalize_loop_induction_variables): Likewise.
18138 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18139 (constant_multiple_of): Take a widest_int pointer instead of
18140 a double_int pointer.
18141 (get_computation_aff): Use wide-int interfaces.
18142 (ptr_difference_cost): Likewise.
18143 (difference_cost): Likewise.
18144 (get_loop_invariant_expr_id): Likewise.
18145 (get_computation_cost_at): Likewise.
18146 (iv_elimination_compare_lt): Likewise.
18147 (may_eliminate_iv): Likewise.
18148 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18149 instead of double_int.
18150 (max_loop_iterations): Likewise.
18151 (max_stmt_executions): Likewise.
18152 (estimated_stmt_executions): Likewise.
18153 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18154 (split_to_var_and_offset): Use wide-int interfaces.
18155 (determine_value_range): Likewise.
18156 (bound_difference_of_offsetted_base): Likewise.
18157 (bounds_add): Take a widest_int instead of a double_int.
18158 (number_of_iterations_ne_max): Use wide-int interfaces.
18159 (number_of_iterations_ne): Likewise.
18160 (number_of_iterations_lt_to_ne): Likewise.
18161 (assert_loop_rolls_lt): Likewise.
18162 (number_of_iterations_lt): Likewise.
18163 (number_of_iterations_le): Likewise.
18164 (number_of_iterations_cond): Likewise.
18165 (number_of_iterations_exit): Likewise.
18166 (finite_loop_p): Likewise.
18167 (derive_constant_upper_bound_assign): Likewise.
18168 (derive_constant_upper_bound): Return a widest_int.
18169 (derive_constant_upper_bound_ops): Likewise.
18170 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18171 (record_estimate): Take a widest_int rather than a double_int.
18172 (record_nonwrapping_iv): Use wide-int interfaces.
18173 (double_int_cmp): Delete.
18174 (wide_int_cmp): New.
18175 (bound_index): Take a widest_int rather than a double_int.
18176 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18177 (maybe_lower_iteration_bound): Likewise.
18178 (estimate_numbers_of_iterations_loop): Likewise.
18179 (estimated_loop_iterations): Take a widest_int pointer than than
18180 a double_int pointer.
18181 (estimated_loop_iterations_int): Use wide-int interfaces.
18182 (max_loop_iterations): Take a widest_int pointer than than
18183 a double_int pointer.
18184 (max_loop_iterations_int): Use wide-int interfaces.
18185 (max_stmt_executions): Take a widest_int pointer than than
18186 a double_int pointer.
18187 (estimated_stmt_executions): Likewise.
18188 (n_of_executions_at_most): Use wide-int interfaces.
18189 (scev_probably_wraps_p): Likewise.
18190 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18191 to real_to_integer.
18192 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18194 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18195 double_ints. Adjust for trailing_wide_ints <3> representation.
18196 (set_nonzero_bits): Likewise.
18197 (get_range_info): Return wide_ints rather than double_ints.
18198 Adjust for trailing_wide_ints <3> representation.
18199 (get_nonzero_bits): Likewise.
18200 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18202 * tree-ssanames.h (struct range_info_def): Replace min, max and
18203 nonzero_bits with a trailing_wide_ints <3>.
18204 (set_range_info): Use wide_int_refs rather than double_ints.
18205 (set_nonzero_bits): Likewise.
18206 (get_range_info): Return wide_ints rather than double_ints.
18207 (get_nonzero_bits): Likewise.
18208 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18209 * tree-ssa-pre.c (phi_translate_1): Likewise.
18210 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18211 (acceptable_pow_call): Likewise.
18212 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18214 (vn_reference_fold_indirect): Likewise.
18215 (vn_reference_maybe_forwprop_address): Likewise.
18216 (valueize_refs_1): Likewise.
18217 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18218 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18219 tree_int_cst_lt and tree_int_cst_le.
18220 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18222 (streamer_alloc_tree): Likewise.
18223 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18224 (streamer_write_tree_header): Likewise.
18225 (streamer_write_integer_cst): Likewise.
18226 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18227 (build_constructors): Likewise.
18228 (array_value_type): Likewise.
18229 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18230 (vect_check_gather): Likewise.
18231 * tree-vect-generic.c (build_replicated_const): Likewise.
18232 (expand_vector_divmod): Likewise.
18233 * tree-vect-loop.c (vect_transform_loop): Likewise.
18234 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18235 (vect_do_peeling_for_alignment): Likewise.
18236 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18237 * tree-vrp.c: Include wide-int.h.
18238 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18239 (extract_range_from_assert): Use wide-int interfaces.
18240 (vrp_int_const_binop): Likewise.
18241 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18242 double_int pointers.
18243 (ranges_from_anti_range): Use wide-int interfaces.
18244 (quad_int_cmp): Delete.
18245 (quad_int_pair_sort): Likewise.
18246 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18247 (extract_range_from_unary_expr_1): Likewise.
18248 (adjust_range_with_scev): Likewise.
18249 (masked_increment): Take and return wide_ints rather than double_ints.
18250 (register_edge_assert_for_2): Use wide-int interfaces.
18251 (check_array_ref): Likewise.
18252 (search_for_addr_array): Likewise.
18253 (maybe_set_nonzero_bits): Likewise.
18254 (union_ranges): Pass an integer of the correct type instead of
18255 using integer_one_node.
18256 (intersect_ranges): Likewise.
18257 (simplify_truth_ops_using_ranges): Likewise.
18258 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18259 (range_fits_type_p): Likewise.
18260 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18262 (simplify_conversion_using_ranges): Use wide-int interfaces.
18263 (simplify_float_conversion_using_ranges): Likewise.
18264 (vrp_finalize): Likewise.
18265 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18266 (gimple_stringops_transform): Likewise.
18267 * varasm.c (decode_addr_const): Likewise.
18268 (const_hash_1): Likewise.
18269 (const_rtx_hash_1): Likewise
18270 (output_constant): Likewise.
18271 (array_size_for_constructor): Likewise.
18272 (output_constructor_regular_field): Likewise.
18273 (output_constructor_bitfield): Likewise.
18274 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18275 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18277 * gencheck.c: Define BITS_PER_UNIT.
18278 * wide-int.cc: New.
18280 * wide-int-print.cc: New.
18281 * wide-int-print.h: New.
18283 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18285 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18287 2014-05-06 Richard Biener <rguenther@suse.de>
18289 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18290 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18291 (TODO_verify_all): Adjust.
18292 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18293 TODO_verify_stmts and TODO_verify_rtl_sharing.
18294 * bb-reorder.c: Likewise.
18295 * cfgexpand.c: Likewise.
18296 * cprop.c: Likewise.
18298 * function.c: Likewise.
18299 * fwprop.c: Likewise.
18300 * gcse.c: Likewise.
18301 * gimple-ssa-isolate-paths.c: Likewise.
18302 * gimple-ssa-strength-reduction.c: Likewise.
18303 * ipa-split.c: Likewise.
18304 * loop-init.c: Likewise.
18305 * loop-unroll.c: Likewise.
18306 * lower-subreg.c: Likewise.
18307 * modulo-sched.c: Likewise.
18308 * postreload-gcse.c: Likewise.
18309 * predict.c: Likewise.
18310 * recog.c: Likewise.
18311 * sched-rgn.c: Likewise.
18312 * store-motion.c: Likewise.
18313 * tracer.c: Likewise.
18314 * trans-mem.c: Likewise.
18315 * tree-call-cdce.c: Likewise.
18316 * tree-cfg.c: Likewise.
18317 * tree-cfgcleanup.c: Likewise.
18318 * tree-complex.c: Likewise.
18319 * tree-eh.c: Likewise.
18320 * tree-emutls.c: Likewise.
18321 * tree-if-conv.c: Likewise.
18322 * tree-into-ssa.c: Likewise.
18323 * tree-loop-distribution.c: Likewise.
18324 * tree-object-size.c: Likewise.
18325 * tree-parloops.c: Likewise.
18326 * tree-pass.h: Likewise.
18327 * tree-sra.c: Likewise.
18328 * tree-ssa-ccp.c: Likewise.
18329 * tree-ssa-copy.c: Likewise.
18330 * tree-ssa-copyrename.c: Likewise.
18331 * tree-ssa-dce.c: Likewise.
18332 * tree-ssa-dom.c: Likewise.
18333 * tree-ssa-dse.c: Likewise.
18334 * tree-ssa-forwprop.c: Likewise.
18335 * tree-ssa-ifcombine.c: Likewise.
18336 * tree-ssa-loop-ch.c: Likewise.
18337 * tree-ssa-loop-ivcanon.c: Likewise.
18338 * tree-ssa-loop.c: Likewise.
18339 * tree-ssa-math-opts.c: Likewise.
18340 * tree-ssa-phiopt.c: Likewise.
18341 * tree-ssa-phiprop.c: Likewise.
18342 * tree-ssa-pre.c: Likewise.
18343 * tree-ssa-reassoc.c: Likewise.
18344 * tree-ssa-sink.c: Likewise.
18345 * tree-ssa-strlen.c: Likewise.
18346 * tree-ssa-tail-merge.c: Likewise.
18347 * tree-ssa-uncprop.c: Likewise.
18348 * tree-switch-conversion.c: Likewise.
18349 * tree-tailcall.c: Likewise.
18350 * tree-vect-generic.c: Likewise.
18351 * tree-vectorizer.c: Likewise.
18352 * tree-vrp.c: Likewise.
18353 * tsan.c: Likewise.
18354 * var-tracking.c: Likewise.
18355 * bt-load.c: Likewise.
18356 * cfgcleanup.c: Likewise.
18357 * combine-stack-adj.c: Likewise.
18358 * combine.c: Likewise.
18359 * compare-elim.c: Likewise.
18360 * config/epiphany/resolve-sw-modes.c: Likewise.
18361 * config/i386/i386.c: Likewise.
18362 * config/mips/mips.c: Likewise.
18363 * config/s390/s390.c: Likewise.
18364 * config/sh/sh_treg_combine.cc: Likewise.
18365 * config/sparc/sparc.c: Likewise.
18368 * final.c: Likewise.
18369 * ifcvt.c: Likewise.
18370 * mode-switching.c: Likewise.
18371 * passes.c: Likewise.
18372 * postreload.c: Likewise.
18374 * reg-stack.c: Likewise.
18375 * regcprop.c: Likewise.
18376 * regrename.c: Likewise.
18379 2014-05-06 Richard Biener <rguenther@suse.de>
18381 PR middle-end/61070
18382 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18383 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18385 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18388 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18390 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18391 Tom de Vries <tom@codesourcery.com>
18393 * target.def (call_fusage_contains_non_callee_clobbers): New
18395 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18397 (@node Miscellaneous Register Hooks): New node.
18398 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18399 * doc/tm.texi: Regenerate.
18401 2014-05-05 Marek Polacek <polacek@redhat.com>
18404 * opts.c (common_handle_option): Call error_at instead of warning_at.
18406 2014-05-05 Richard Biener <rguenther@suse.de>
18408 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18409 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18410 under the TODO_verify_il umbrella.
18412 2014-05-05 Richard Biener <rguenther@suse.de>
18414 * passes.c (execute_function_todo): Move TODO_verify_flow under
18415 the TODO_verify_ul umbrella.
18417 2014-05-05 Richard Biener <rguenther@suse.de>
18419 PR middle-end/61010
18420 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18421 X & CST away from a CST that is the mask of a mode.
18423 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18425 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18426 int argument to enum machine_mode.
18427 (picochip_class_max_nregs): Ditto.
18428 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18429 (picochip_class_max_nregs): Ditto.
18431 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18433 * target.def: Add new target hook.
18434 * doc/tm.texi: Regenerate.
18435 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18436 * targhooks.c (default_keep_leaf_when_profiled): New function.
18438 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18439 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18441 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18443 PR tree-optimization/60363
18444 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18445 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18446 (update_destination_phis): New parameter.
18447 (create_edge_and_update_destination_phis): Ditto.
18448 (ssa_fix_duplicate_block_edges): Pass new arguments.
18449 (thread_single_edge): Ditto.
18451 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18453 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18454 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18455 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18456 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18457 Use RS6000_BTM_HARD_FLOAT.
18458 (BU_MISC_2): Likewise.
18459 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18460 RS6000_BTM_HARD_FLOAT.
18461 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18462 is explicitly used.
18463 (rs6000_invalid_builtin): Add hard floating builtin support.
18464 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18465 hard float builtins.
18466 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18468 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18470 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18471 Add missing function* argument.
18473 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18475 * lra-constraints.c (valid_address_p): Move earlier in file.
18476 Add a constraint argument to the address_info version.
18477 (satisfies_memory_constraint_p): New function.
18478 (satisfies_address_constraint_p): Likewise.
18479 (process_alt_operands, curr_insn_transform): Use them.
18480 (process_address): Pass the constraint to valid_address_p when
18481 checking address operands.
18483 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18485 * config/mips/mips.c (mips_isa_rev): New variable.
18486 (mips_set_architecture): Set it.
18487 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18489 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18490 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18491 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18492 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18493 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18494 conditions in terms of mips_isa_rev.
18495 (mips_isa_rev): Declare.
18497 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18499 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18500 (prob_unlikely, prob_likely): Make variables const.
18502 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18504 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18506 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18508 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18510 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18512 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18513 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18514 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18516 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18517 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18519 Replace usage of ROUND_REG with sh_round_reg.
18520 Use CEIL instead of ROUND_ADVANCE.
18522 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18525 * config/sh/sh.c: Include stdlib headers before everything else.
18527 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18529 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18530 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18531 (gimplify_adjust_omp_clauses): Simd region is never
18532 directly nested in combined parallel. Instead, for linear
18533 with copyin/copyout, if in combined for simd loop, make decl
18534 firstprivate/lastprivate on OMP_FOR.
18535 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18536 expand_omp_for_static_chunk): When setting endvar, also set
18537 fd->loop.v to the same value.
18539 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18541 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18543 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18545 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18548 2014-05-02 Marek Polacek <polacek@redhat.com>
18550 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18552 2014-05-02 Kito Cheng <kito@0xlab.org>
18554 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18555 to a C expression marco.
18556 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18557 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18558 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18559 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18560 HONOR_REG_ALLOC_ORDER.
18561 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18563 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18565 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18567 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18569 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18571 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18573 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18574 (convert_scalar_cond_reduction): Likewise.
18575 (predicate_scalar_phi): Add recognition and transformation
18576 of simple conditioanl reduction to be vectorizable.
18578 2014-05-01 Marek Polacek <polacek@redhat.com>
18581 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18583 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18585 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18586 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18587 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18588 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18589 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18590 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18591 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18592 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18594 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18596 * config/arc/arc.opt (mlra): Move comment above option name
18597 to avoid mis-parsing as language options.
18599 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18601 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18602 * config/sol2.h: ... here.
18603 * config/sol2-10.h: Remove.
18605 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18606 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18607 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18608 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18609 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18610 * config/sol2.h: ... here.
18611 (SECTION_NAME_FORMAT): Don't redefine.
18612 (STARTFILE_ARCH32_SPEC): Rename to ...
18613 (STARTFILE_ARCH_SPEC): ... this.
18614 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18615 * config/sparc/sol2.h: ... here.
18616 (SECTION_NAME_FORMAT): Don't undef.
18617 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18618 (SUBTARGET_EXTRA_SPECS): Remove.
18619 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18621 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18622 (MD_STARTFILE_PREFIX): Remove.
18623 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18624 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18625 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18626 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18627 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18628 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18629 * config/i386/sol2.h: ... here.
18630 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18631 * config/i386/sol2-bi.h: Remove.
18632 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18633 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18635 * config/i386/t-sol2-64: Rename to ...
18636 * config/i386/t-sol2: ... this.
18637 * config/sparc/t-sol2-64: Rename to ...
18638 * config/sparc/t-sol2: ... this.
18640 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18641 sol2_tm_file_head, sol2_tm_file_tail.
18642 Include ${cpu_type}/sol2.h before sol2.h.
18644 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18645 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18646 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18647 Reflect i386/t-sol2-64 renaming.
18648 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18649 Reflect sparc/t-sol2-64 renaming.
18651 2014-04-30 Richard Biener <rguenther@suse.de>
18653 * passes.c (execute_function_todo): Move TODO_verify_stmts
18654 and TODO_verify_ssa under the TODO_verify_il umbrella.
18655 * tree-ssa.h (verify_ssa): Adjust prototype.
18656 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18657 we should verify SSA operands.
18658 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18659 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18660 whether we should verify whether not throwing stmts have EH info.
18661 * graphite-scop-detection.c (create_sese_edges): Adjust.
18662 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18663 * tree-eh.c (lower_try_finally_switch): Do not add the
18664 default case label twice.
18666 2014-04-30 Marek Polacek <polacek@redhat.com>
18668 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18669 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18670 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18671 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18673 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18675 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18676 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18677 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18678 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18679 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18680 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18681 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18682 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18684 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18686 * tree-cfg.c (dump_function_to_file): Dump the return type of
18687 functions, in a line to itself before the function body, mimicking
18688 the layout of a C function.
18690 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18692 PR tree-optimization/60971
18693 * tree-tailcall.c (process_assignment): Reject conversions which
18696 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18698 * calls.c (initialize_argument_information): Always treat
18699 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18700 (expand_call): Likewise.
18701 (emit_library_call_calue_1): Likewise.
18702 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18703 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18706 2014-04-29 Nick Clifton <nickc@redhat.com>
18708 * config/msp430/msp430.md (umulsidi): Fix typo.
18709 (mulhisi3): Enable even inside interrupt handlers.
18710 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18711 bigger return address pushed in large mode.
18713 2014-04-29 Nick Clifton <nickc@redhat.com>
18715 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18716 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18718 * config/m32r/m32r.c (init_reg_tables): Likewise.
18719 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18720 enum to hold the modes.
18722 2014-04-29 Richard Biener <rguenther@suse.de>
18724 * dominance.c (free_dominance_info): Add overload with
18725 function parameter.
18726 (dom_info_state): Likewise.
18727 (dom_info_available_p): Likewise.
18728 * basic-block.h (free_dominance_info, dom_info_state,
18729 dom_info_available_p): Declare overloads.
18730 * passes.c (execute_function_todo): Verify that verifiers
18731 don't change dominator info state. Drop dominator info
18732 for IPA pass invocations.
18733 * cgraph.c (release_function_body): Restore asserts that
18734 dominator information is released.
18736 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18738 * doc/invoke.texi: Fix typo.
18739 * tree-vrp.c: Fix typos.
18740 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18742 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18744 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18746 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18748 * config/aarch64/aarch64-builtins.c
18749 (aarch64_types_storestruct_lane_qualifiers): New.
18750 (TYPES_STORESTRUCT_LANE): Likewise.
18751 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18752 (st3_lane): Likewise.
18753 (st4_lane): Likewise.
18754 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18755 (vec_store_lanesci_lane<mode>): Likewise.
18756 (vec_store_lanesxi_lane<mode>): Likewise.
18757 (aarch64_st2_lane<VQ:mode>): Likewise.
18758 (aarch64_st3_lane<VQ:mode>): Likewise.
18759 (aarch64_st4_lane<VQ:mode>): Likewise.
18760 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18761 * config/aarch64/arm_neon.h
18762 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18763 use new macro arguments.
18764 (__ST3_LANE_FUNC): Likewise.
18765 (__ST4_LANE_FUNC): Likewise.
18766 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18767 (V_THREE_ELEM): Likewise.
18768 (V_FOUR_ELEM): Likewise.
18770 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18772 * doc/gimple.texi: Replace the description of the now-defunct
18773 union gimple_statement_d with a diagram showing the
18774 gimple_statement_base class hierarchy and its relationships to
18775 the GSS_ and GIMPLE_ enums.
18777 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18779 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18780 * config/aarch64/aarch64.c
18781 (aarch64_cannot_change_mode_class): Weaken conditions.
18782 (aarch64_modes_tieable_p): New.
18783 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18785 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18787 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18788 (loadsync_<mode>): Change mode.
18789 (load_quadpti, store_quadpti): New.
18790 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18791 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18793 2014-04-28 Martin Jambor <mjambor@suse.cz>
18795 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18796 same alias type as the original statement.
18797 (subreplacement_assignment_data): New type.
18798 (handle_unscalarized_data_in_subtree): New type of parameter,
18799 generate new memory accesses with same alias type as the original
18801 (load_assign_lhs_subreplacements): Likewise.
18802 (sra_modify_constructor_assign): Generate new memory accesses with
18803 same alias type as the original statement.
18805 2014-04-28 Richard Biener <rguenther@suse.de>
18807 * tree-pass.h (TODO_verify_il): Define.
18808 (TODO_verify_all): Complete properly.
18809 * passes.c (execute_function_todo): Move existing loop-closed
18810 SSA verification under TODO_verify_il.
18811 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18812 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18813 Fix tree sharing issue.
18815 2014-04-28 Richard Biener <rguenther@suse.de>
18817 PR middle-end/60092
18818 * builtins.def (DEF_C11_BUILTIN): Add.
18819 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18820 * coretypes.h (enum function_class): Add function_c11_misc.
18821 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18822 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18823 (call_may_clobber_ref_p_1): Likewise.
18824 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18825 (mark_all_reaching_defs_necessary_1): Likewise.
18826 (propagate_necessity): Likewise.
18827 (eliminate_unnecessary_stmts): Likewise.
18828 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18830 2014-04-28 Richard Biener <rguenther@suse.de>
18832 * tree-vrp.c (vrp_var_may_overflow): Remove.
18833 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18834 with overflow immediately bump to one before that value and
18835 let iteration figure out overflow status.
18837 2014-04-28 Richard Biener <rguenther@suse.de>
18839 * configure.ac: Do valgrind header checks unconditionally.
18840 Add --enable-valgrind-annotations.
18841 * system.h: Guard valgrind header inclusion with
18842 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18843 * alloc-pool.c (pool_alloc, pool_free): Use
18844 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18845 to guard possibly dead code.
18846 * config.in: Regenerated.
18847 * configure: Likewise.
18849 2014-04-28 Jeff Law <law@redhat.com>
18851 PR tree-optimization/60902
18852 * tree-ssa-threadedge.c
18853 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18854 over real defs when invalidating outputs from statements that do not
18855 produce useful outputs for threading.
18857 2014-04-28 Richard Biener <rguenther@suse.de>
18859 PR tree-optimization/60979
18860 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18861 SCOPs that end in a block with a successor with abnormal
18864 2014-04-28 Richard Biener <rguenther@suse.de>
18866 * tree-pass.h (execute_pass_list): Adjust prototype.
18867 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18868 (do_per_function): Change callback signature, push all actual
18869 work to the callbals.
18870 (do_per_function_toporder): Likewise.
18871 (execute_function_dump): Adjust.
18872 (execute_function_todo): Likewise.
18873 (clear_last_verified): Likewise.
18874 (verify_curr_properties): Likewise.
18875 (update_properties_after_pass): Likewise.
18876 (execute_pass_list_1): Split out from ...
18877 (execute_pass_list): ... here. Adjust.
18878 (execute_ipa_pass_list): Likewise.
18879 * cgraphunit.c (cgraph_add_new_function): Adjust.
18880 (analyze_function): Likewise.
18881 (expand_function): Likewise.
18882 * cgraph.c (release_function_body): Free dominance info
18883 here instead of asserting it was magically freed elsewhere.
18885 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18887 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18888 * configure: Regenerate.
18889 * config/sparc/sparc.opt (muser-mode): New option.
18890 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18892 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18893 * doc/invoke.texi (SPARC options): Document -muser-mode.
18895 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18897 * cselib.c (find_slot_memmode): Delete.
18898 (cselib_hasher): Change compare_type to a struct.
18899 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18901 (preserve_constants_and_equivs): Adjust for new compare_type.
18902 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18903 (wrap_constant): Delete.
18904 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18906 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18908 * doc/install.texi (Building with profile feedback): Remove
18911 2014-04-26 Tom de Vries <tom@codesourcery.com>
18913 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18916 2014-04-25 Cary Coutant <ccoutant@google.com>
18919 * dwarf2out.c (should_move_die_to_comdat): A type definition
18920 can contain a subprogram definition, but don't move it to a
18922 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18923 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18925 (clone_tree_hash): Rename to...
18926 (clone_tree_partial): ...this; change callers. Copy
18927 DW_TAG_subprogram DIEs as declarations.
18928 (copy_decls_walk): Don't copy children of a declaration into a
18931 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18934 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18937 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18939 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18940 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18942 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18945 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18947 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18949 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18951 PR tree-optimization/60930
18952 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18953 creating a multiply candidate by folding two constant
18954 multiplicands when the result overflows.
18956 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18958 PR tree-optimization/60960
18959 * tree-vect-generic.c (expand_vector_operation): Only call
18960 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18962 2014-04-25 Tom de Vries <tom@codesourcery.com>
18964 * expr.c (clobber_reg_mode): New function.
18965 * expr.h (clobber_reg): New function.
18967 2014-04-25 Tom de Vries <tom@codesourcery.com>
18969 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18972 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18973 Tom de Vries <tom@codesourcery.com>
18975 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18977 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18978 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18979 new argument to find_all_hard_reg_sets call.
18981 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18983 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18984 Use HOST_WIDE_INT_C for mask literal.
18985 (aarch_rev16_shleft_mask_imm_p): Likewise.
18987 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18990 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18992 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18994 PR preprocessor/56540
18995 * config/i386/i386-c.c (ix86_target_macros): Define
18996 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18998 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19000 * configure.ac (tga_func): Remove.
19001 (LIB_TLS_SPEC): Remove.
19002 * configure: Regenerate.
19003 * config.in: Regenerate.
19004 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19006 2014-04-25 Richard Biener <rguenther@suse.de>
19009 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19010 call stmt use/clobber sets during stmt walk instead of
19011 walking the possibly incomplete set of caller edges.
19013 2014-04-25 Richard Biener <rguenther@suse.de>
19016 * passes.c (apply_ipa_transforms): Inline into only caller ...
19017 (execute_one_pass): ... here. Properly bring in function
19018 bodies for nodes we want to apply IPA transforms to.
19020 2014-04-24 Cong Hou <congh@google.com>
19022 PR tree-optimization/60896
19023 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19024 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19025 (vect_mark_pattern_stmts): Set the def type of all statements in
19026 PATTERN_DEF_SEQ as vect_internal_def.
19028 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19030 * doc/extend.texi (PowerPC Built-in Functions): Document new
19031 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19032 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19034 * config/rs6000/predicates.md (const_0_to_3_operand): New
19035 predicate to match 0..3 integer constants.
19037 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19038 to support adding miscellaneous builtin functions.
19039 (BU_DFP_MISC_2): Likewise.
19040 (BU_P7_MISC_1): Likewise.
19041 (BU_P7_MISC_2): Likewise.
19042 (BU_P8V_MISC_3): Likewise.
19043 (BU_MISC_1): Likewise.
19044 (BU_MISC_2): Likewise.
19045 (DIVWE): Add extended divide builtin functions.
19046 (DIVWEO): Likewise.
19047 (DIVWEU): Likewise.
19048 (DIVWEUO): Likewise.
19050 (DIVDEO): Likewise.
19051 (DIVDEU): Likewise.
19052 (DIVDEUO): Likewise.
19053 (DXEX): Add decimal floating-point builtin functions.
19055 (DDEDPD): Likewise.
19056 (DDEDPDQ): Likewise.
19057 (DENBCD): Likewise.
19058 (DENBCDQ): Likewise.
19062 (DSCLIQ): Likewise.
19064 (DSCRIQ): Likewise.
19065 (CDTBCD): Add new BCD builtin functions.
19066 (CBCDTD): Likewise.
19067 (ADDG6S): Likewise.
19068 (BCDADD): Likewise.
19069 (BCDADD_LT): Likewise.
19070 (BCDADD_EQ): Likewise.
19071 (BCDADD_GT): Likewise.
19072 (BCDADD_OV): Likewise.
19073 (BCDSUB): Likewise.
19074 (BCDSUB_LT): Likewise.
19075 (BCDSUB_EQ): Likewise.
19076 (BCDSUB_GT): Likewise.
19077 (BCDSUB_OV): Likewise.
19078 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
19079 (UNPACK_TD): Likewise.
19080 (PACK_TF): Likewise.
19081 (UNPACK_TF): Likewise.
19082 (UNPACK_TF_0): Likewise.
19083 (UNPACK_TF_1): Likewise.
19084 (PACK_V1TI): Likewise.
19085 (UNPACK_V1TI): Likewise.
19087 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19088 support for decimal floating point builtin functions.
19089 (rs6000_expand_ternop_builtin): Add checks for the new builtin
19090 functions that take constant arguments.
19091 (rs6000_invalid_builtin): Add decimal floating point builtin support.
19092 (rs6000_init_builtins): Setup long double, _Decimal64, and
19093 _Decimal128 types for new builtin functions.
19094 (builtin_function_type): Set the unsigned flags appropriately for
19095 the new builtin functions.
19096 (rs6000_opt_masks): Add support for decimal floating point builtin
19099 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19100 floating point builtin functions.
19101 (RS6000_BTM_COMMON): Likewise.
19102 (RS6000_BTI_long_double): Likewise.
19103 (RS6000_BTI_dfloat64): Likewise.
19104 (RS6000_BTI_dfloat128): Likewise.
19105 (long_double_type_internal_node): Likewise.
19106 (dfloat64_type_internal_node): Likewise.
19107 (dfloat128_type_internal_node): Likewise.
19109 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19110 2.07 bcd arithmetic instructions.
19111 (UNSPEC_BCDSUB): Likewise.
19112 (UNSPEC_BCD_OVERFLOW): Likewise.
19113 (UNSPEC_BCD_ADD_SUB): Likewise.
19114 (bcd_add_sub): Likewise.
19115 (BCD_TEST): Likewise.
19116 (bcd<bcd_add_sub>): Likewise.
19117 (bcd<bcd_add_sub>_test): Likewise.
19118 (bcd<bcd_add_sub>_test2): Likewise.
19119 (bcd<bcd_add_sub>_<code>): Likewise.
19120 (peephole2 for combined bcd ops): Likewise.
19122 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19123 decimal floating point builtin functions.
19124 (UNSPEC_DENBCD): Likewise.
19125 (UNSPEC_DXEX): Likewise.
19126 (UNSPEC_DIEX): Likewise.
19127 (UNSPEC_DSCLI): Likewise.
19128 (UNSPEC_DSCRI): Likewise.
19129 (D64_D128): Likewise.
19130 (dfp_suffix): Likewise.
19131 (dfp_ddedpd_<mode>): Likewise.
19132 (dfp_denbcd_<mode>): Likewise.
19133 (dfp_dxex_<mode>): Likewise.
19134 (dfp_diex_<mode>): Likewise.
19135 (dfp_dscli_<mode>): Likewise.
19136 (dfp_dscri_<mode>): Likewise.
19138 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19140 (UNSPEC_CDTBCD): Likewise.
19141 (UNSPEC_CBCDTD): Likewise.
19142 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19143 (UNSPEC_DIVEO): Likewise.
19144 (UNSPEC_DIVEU): Likewise.
19145 (UNSPEC_DIVEUO): Likewise.
19146 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19147 pack/unpack 128-bit types.
19148 (UNSPEC_PACK_128BIT): Likewise.
19149 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19150 (udiv<mode>3): Use idiv_ldiv mode attribute.
19151 (div<mode>3): Likewise.
19152 (addg6s): Add new BCD builtin functions.
19153 (cdtbcd): Likewise.
19154 (cbcdtd): Likewise.
19155 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19156 (div_extend): Likewise.
19157 (div<div_extend>_<mode>"): Likewise.
19158 (FP128_64): Add support for new builtin functions to pack/unpack
19160 (unpack<mode>): Likewise.
19161 (unpacktf_0): Likewise.
19162 (unpacktf_1): Likewise.
19163 (unpack<mode>_dm): Likewise.
19164 (unpack<mode>_nodm): Likewise.
19165 (pack<mode>): Likewise.
19166 (unpackv1ti): Likewise.
19167 (packv1ti): Likewise.
19169 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19171 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19174 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19176 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19177 * gimplify.c (omp_is_private): Change last argument's type to int.
19178 Only diagnose lastprivate if the simd argument is 1, only diagnose
19179 linear if the simd argument is 2.
19180 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19181 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19182 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19183 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19184 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19185 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19186 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19187 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19188 * tree-nested.c (convert_nonlocal_omp_clauses,
19189 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19191 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19194 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19197 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19199 * flag-types.h (enum ivar_visibility): Add.
19201 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19203 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19204 function * argument.
19206 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19208 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19210 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19211 Tom de Vries <tom@codesourcery.com>
19213 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19214 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19216 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19217 * emit-rtl.c (try_split): Same.
19219 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19220 Tom de Vries <tom@codesourcery.com>
19222 * common.opt (fuse-caller-save): New option.
19224 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19226 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19227 elements for big-endian.
19229 2014-04-24 Richard Biener <rguenther@suse.de>
19231 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19232 during TER and instead use the sepops interface for expanding
19233 non-GIMPLE_SINGLE_RHS.
19235 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19237 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19238 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19240 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19242 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19243 assembler 64-bit option.
19244 * configure: Regenerate.
19246 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19248 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19249 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19250 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19251 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19252 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19254 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19256 * config/aarch64/aarch64-builtins.c
19257 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19258 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19259 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19260 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19262 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19263 (Vrevsuff): New mode attribute.
19265 2014-04-24 Terry Guo <terry.guo@arm.com>
19267 * config/arm/arm.h (machine_function): Define variable
19268 after_arm_reorg here.
19269 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19270 (arm_split_constant): Update the way to access variable
19272 (arm_reorg): Ditto.
19273 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19275 2014-04-23 Tom de Vries <tom@codesourcery.com>
19277 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19279 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19281 * is-a.h: Update comments to reflect the following changes to the
19282 "pointerness" of the API, making the template parameter match the
19283 return type, allowing use of is-a.h with typedefs of pointers.
19284 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19285 that the return type matches the parameter to the is_a_helper.
19287 (dyn_cast): Likewise.
19289 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19290 pointer from the is-a.h API.
19292 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19293 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19295 (is_a_helper <varpool_node>::test): Likewise, convert to...
19296 (is_a_helper <varpool_node *>::test): ...this.
19298 (varpool_first_variable): Update for removal of implicit pointer
19299 from the is-a.h API.
19300 (varpool_next_variable): Likewise.
19301 (varpool_first_static_initializer): Likewise.
19302 (varpool_next_static_initializer): Likewise.
19303 (varpool_first_defined_variable): Likewise.
19304 (varpool_next_defined_variable): Likewise.
19305 (cgraph_first_defined_function): Likewise.
19306 (cgraph_next_defined_function): Likewise.
19307 (cgraph_first_function): Likewise.
19308 (cgraph_next_function): Likewise.
19309 (cgraph_first_function_with_gimple_body): Likewise.
19310 (cgraph_next_function_with_gimple_body): Likewise.
19311 (cgraph_alias_target): Likewise.
19312 (varpool_alias_target): Likewise.
19313 (cgraph_function_or_thunk_node): Likewise.
19314 (varpool_variable_node): Likewise.
19315 (symtab_real_symbol_p): Likewise.
19316 * cgraphunit.c (referred_to_p): Likewise.
19317 (analyze_functions): Likewise.
19318 (handle_alias_pairs): Likewise.
19319 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19320 * gimple-ssa.h (gimple_vuse_op): Likewise.
19321 (gimple_vdef_op): Likewise.
19322 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19323 * gimple.c (gimple_build_asm_1): Likewise.
19324 (gimple_build_try): Likewise.
19325 (gimple_build_resx): Likewise.
19326 (gimple_build_eh_dispatch): Likewise.
19327 (gimple_build_omp_for): Likewise.
19328 (gimple_omp_for_set_clauses): Likewise.
19330 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19331 (is_a_helper <gimple_statement_asm *>::test): ...this.
19332 (is_a_helper <gimple_statement_bind>::test): Convert to...
19333 (is_a_helper <gimple_statement_bind *>::test): ...this.
19334 (is_a_helper <gimple_statement_call>::test): Convert to...
19335 (is_a_helper <gimple_statement_call *>::test): ...this.
19336 (is_a_helper <gimple_statement_catch>::test): Convert to...
19337 (is_a_helper <gimple_statement_catch *>::test): ...this.
19338 (is_a_helper <gimple_statement_resx>::test): Convert to...
19339 (is_a_helper <gimple_statement_resx *>::test): ...this.
19340 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19341 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19342 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19343 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19344 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19345 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19346 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19347 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19348 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19349 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19350 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19351 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19352 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19353 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19354 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19355 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19356 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19357 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19358 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19359 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19360 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19361 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19362 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19363 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19364 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19365 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19366 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19367 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19368 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19369 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19370 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19371 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19372 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19373 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19374 (is_a_helper <gimple_statement_phi>::test): Convert to...
19375 (is_a_helper <gimple_statement_phi *>::test): ...this.
19376 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19377 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19378 (is_a_helper <gimple_statement_try>::test): Convert to...
19379 (is_a_helper <gimple_statement_try *>::test): ...this.
19380 (is_a_helper <gimple_statement_wce>::test): Convert to...
19381 (is_a_helper <gimple_statement_wce *>::test): ...this.
19382 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19383 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19384 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19385 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19386 (is_a_helper <const gimple_statement_call>::test): Convert to...
19387 (is_a_helper <const gimple_statement_call *>::test): ...this.
19388 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19389 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19390 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19391 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19392 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19393 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19394 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19395 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19396 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19398 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19400 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19402 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19404 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19405 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19406 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19408 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19409 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19411 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19412 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19413 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19414 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19415 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19416 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19418 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19419 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19420 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19421 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19423 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19424 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19425 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19426 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19427 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19428 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19429 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19430 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19431 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19432 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19433 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19434 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19435 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19436 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19437 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19438 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19440 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19442 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19443 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19445 (gimple_use_ops): Update for removal of implicit pointer from the
19447 (gimple_set_use_ops): Likewise.
19448 (gimple_vuse): Likewise.
19449 (gimple_vdef): Likewise.
19450 (gimple_vuse_ptr): Likewise.
19451 (gimple_vdef_ptr): Likewise.
19452 (gimple_set_vuse): Likewise.
19453 (gimple_set_vdef): Likewise.
19454 (gimple_omp_return_set_lhs): Likewise.
19455 (gimple_omp_return_lhs): Likewise.
19456 (gimple_omp_return_lhs_ptr): Likewise.
19457 (gimple_call_fntype): Likewise.
19458 (gimple_call_set_fntype): Likewise.
19459 (gimple_call_set_internal_fn): Likewise.
19460 (gimple_call_use_set): Likewise.
19461 (gimple_call_clobber_set): Likewise.
19462 (gimple_bind_vars): Likewise.
19463 (gimple_bind_set_vars): Likewise.
19464 (gimple_bind_body_ptr): Likewise.
19465 (gimple_bind_set_body): Likewise.
19466 (gimple_bind_add_stmt): Likewise.
19467 (gimple_bind_block): Likewise.
19468 (gimple_bind_set_block): Likewise.
19469 (gimple_asm_ninputs): Likewise.
19470 (gimple_asm_noutputs): Likewise.
19471 (gimple_asm_nclobbers): Likewise.
19472 (gimple_asm_nlabels): Likewise.
19473 (gimple_asm_input_op): Likewise.
19474 (gimple_asm_input_op_ptr): Likewise.
19475 (gimple_asm_output_op): Likewise.
19476 (gimple_asm_output_op_ptr): Likewise.
19477 (gimple_asm_set_output_op): Likewise.
19478 (gimple_asm_clobber_op): Likewise.
19479 (gimple_asm_set_clobber_op): Likewise.
19480 (gimple_asm_label_op): Likewise.
19481 (gimple_asm_set_label_op): Likewise.
19482 (gimple_asm_string): Likewise.
19483 (gimple_catch_types): Likewise.
19484 (gimple_catch_types_ptr): Likewise.
19485 (gimple_catch_handler_ptr): Likewise.
19486 (gimple_catch_set_types): Likewise.
19487 (gimple_catch_set_handler): Likewise.
19488 (gimple_eh_filter_types): Likewise.
19489 (gimple_eh_filter_types_ptr): Likewise.
19490 (gimple_eh_filter_failure_ptr): Likewise.
19491 (gimple_eh_filter_set_types): Likewise.
19492 (gimple_eh_filter_set_failure): Likewise.
19493 (gimple_eh_must_not_throw_fndecl): Likewise.
19494 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19495 (gimple_eh_else_n_body_ptr): Likewise.
19496 (gimple_eh_else_e_body_ptr): Likewise.
19497 (gimple_eh_else_set_n_body): Likewise.
19498 (gimple_eh_else_set_e_body): Likewise.
19499 (gimple_try_eval_ptr): Likewise.
19500 (gimple_try_cleanup_ptr): Likewise.
19501 (gimple_try_set_eval): Likewise.
19502 (gimple_try_set_cleanup): Likewise.
19503 (gimple_wce_cleanup_ptr): Likewise.
19504 (gimple_wce_set_cleanup): Likewise.
19505 (gimple_phi_capacity): Likewise.
19506 (gimple_phi_num_args): Likewise.
19507 (gimple_phi_result): Likewise.
19508 (gimple_phi_result_ptr): Likewise.
19509 (gimple_phi_set_result): Likewise.
19510 (gimple_phi_arg): Likewise.
19511 (gimple_phi_set_arg): Likewise.
19512 (gimple_resx_region): Likewise.
19513 (gimple_resx_set_region): Likewise.
19514 (gimple_eh_dispatch_region): Likewise.
19515 (gimple_eh_dispatch_set_region): Likewise.
19516 (gimple_omp_critical_name): Likewise.
19517 (gimple_omp_critical_name_ptr): Likewise.
19518 (gimple_omp_critical_set_name): Likewise.
19519 (gimple_omp_for_clauses): Likewise.
19520 (gimple_omp_for_clauses_ptr): Likewise.
19521 (gimple_omp_for_set_clauses): Likewise.
19522 (gimple_omp_for_collapse): Likewise.
19523 (gimple_omp_for_index): Likewise.
19524 (gimple_omp_for_index_ptr): Likewise.
19525 (gimple_omp_for_set_index): Likewise.
19526 (gimple_omp_for_initial): Likewise.
19527 (gimple_omp_for_initial_ptr): Likewise.
19528 (gimple_omp_for_set_initial): Likewise.
19529 (gimple_omp_for_final): Likewise.
19530 (gimple_omp_for_final_ptr): Likewise.
19531 (gimple_omp_for_set_final): Likewise.
19532 (gimple_omp_for_incr): Likewise.
19533 (gimple_omp_for_incr_ptr): Likewise.
19534 (gimple_omp_for_set_incr): Likewise.
19535 (gimple_omp_for_pre_body_ptr): Likewise.
19536 (gimple_omp_for_set_pre_body): Likewise.
19537 (gimple_omp_parallel_clauses): Likewise.
19538 (gimple_omp_parallel_clauses_ptr): Likewise.
19539 (gimple_omp_parallel_set_clauses): Likewise.
19540 (gimple_omp_parallel_child_fn): Likewise.
19541 (gimple_omp_parallel_child_fn_ptr): Likewise.
19542 (gimple_omp_parallel_set_child_fn): Likewise.
19543 (gimple_omp_parallel_data_arg): Likewise.
19544 (gimple_omp_parallel_data_arg_ptr): Likewise.
19545 (gimple_omp_parallel_set_data_arg): Likewise.
19546 (gimple_omp_task_clauses): Likewise.
19547 (gimple_omp_task_clauses_ptr): Likewise.
19548 (gimple_omp_task_set_clauses): Likewise.
19549 (gimple_omp_task_child_fn): Likewise.
19550 (gimple_omp_task_child_fn_ptr): Likewise.
19551 (gimple_omp_task_set_child_fn): Likewise.
19552 (gimple_omp_task_data_arg): Likewise.
19553 (gimple_omp_task_data_arg_ptr): Likewise.
19554 (gimple_omp_task_set_data_arg): Likewise.
19555 (gimple_omp_taskreg_clauses): Likewise.
19556 (gimple_omp_taskreg_clauses_ptr): Likewise.
19557 (gimple_omp_taskreg_set_clauses): Likewise.
19558 (gimple_omp_taskreg_child_fn): Likewise.
19559 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19560 (gimple_omp_taskreg_set_child_fn): Likewise.
19561 (gimple_omp_taskreg_data_arg): Likewise.
19562 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19563 (gimple_omp_taskreg_set_data_arg): Likewise.
19564 (gimple_omp_task_copy_fn): Likewise.
19565 (gimple_omp_task_copy_fn_ptr): Likewise.
19566 (gimple_omp_task_set_copy_fn): Likewise.
19567 (gimple_omp_task_arg_size): Likewise.
19568 (gimple_omp_task_arg_size_ptr): Likewise.
19569 (gimple_omp_task_set_arg_size): Likewise.
19570 (gimple_omp_task_arg_align): Likewise.
19571 (gimple_omp_task_arg_align_ptr): Likewise.
19572 (gimple_omp_task_set_arg_align): Likewise.
19573 (gimple_omp_single_clauses): Likewise.
19574 (gimple_omp_single_clauses_ptr): Likewise.
19575 (gimple_omp_single_set_clauses): Likewise.
19576 (gimple_omp_target_clauses): Likewise.
19577 (gimple_omp_target_clauses_ptr): Likewise.
19578 (gimple_omp_target_set_clauses): Likewise.
19579 (gimple_omp_target_child_fn): Likewise.
19580 (gimple_omp_target_child_fn_ptr): Likewise.
19581 (gimple_omp_target_set_child_fn): Likewise.
19582 (gimple_omp_target_data_arg): Likewise.
19583 (gimple_omp_target_data_arg_ptr): Likewise.
19584 (gimple_omp_target_set_data_arg): Likewise.
19585 (gimple_omp_teams_clauses): Likewise.
19586 (gimple_omp_teams_clauses_ptr): Likewise.
19587 (gimple_omp_teams_set_clauses): Likewise.
19588 (gimple_omp_sections_clauses): Likewise.
19589 (gimple_omp_sections_clauses_ptr): Likewise.
19590 (gimple_omp_sections_set_clauses): Likewise.
19591 (gimple_omp_sections_control): Likewise.
19592 (gimple_omp_sections_control_ptr): Likewise.
19593 (gimple_omp_sections_set_control): Likewise.
19594 (gimple_omp_for_set_cond): Likewise.
19595 (gimple_omp_for_cond): Likewise.
19596 (gimple_omp_atomic_store_set_val): Likewise.
19597 (gimple_omp_atomic_store_val): Likewise.
19598 (gimple_omp_atomic_store_val_ptr): Likewise.
19599 (gimple_omp_atomic_load_set_lhs): Likewise.
19600 (gimple_omp_atomic_load_lhs): Likewise.
19601 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19602 (gimple_omp_atomic_load_set_rhs): Likewise.
19603 (gimple_omp_atomic_load_rhs): Likewise.
19604 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19605 (gimple_omp_continue_control_def): Likewise.
19606 (gimple_omp_continue_control_def_ptr): Likewise.
19607 (gimple_omp_continue_set_control_def): Likewise.
19608 (gimple_omp_continue_control_use): Likewise.
19609 (gimple_omp_continue_control_use_ptr): Likewise.
19610 (gimple_omp_continue_set_control_use): Likewise.
19611 (gimple_transaction_body_ptr): Likewise.
19612 (gimple_transaction_label): Likewise.
19613 (gimple_transaction_label_ptr): Likewise.
19614 (gimple_transaction_set_body): Likewise.
19615 (gimple_transaction_set_label): Likewise.
19617 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19618 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19619 * ipa-ref.c (ipa_record_reference): Likewise.
19620 * ipa-reference.c (analyze_function): Likewise.
19621 (ipa_reference_write_optimization_summary): Likewise.
19622 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19623 (address_taken_from_non_vtable_p): Likewise.
19624 (comdat_can_be_unshared_p_1): Likewise.
19625 * lto-cgraph.c (lto_output_ref): Likewise.
19626 (add_references): Likewise.
19627 (compute_ltrans_boundary): Likewise.
19628 (output_symtab): Likewise.
19629 (input_ref): Likewise.
19630 (input_cgraph_1): Likewise.
19631 (output_cgraph_opt_summary): Likewise.
19632 * lto-streamer-out.c (lto_output): Likewise.
19633 (output_symbol_p): Likewise.
19634 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19635 (lsei_start_function_in_partition): Likewise.
19636 (lsei_next_variable_in_partition): Likewise.
19637 (lsei_start_variable_in_partition): Likewise.
19638 * symtab.c (insert_to_assembler_name_hash): Likewise.
19639 (unlink_from_assembler_name_hash): Likewise.
19640 (symtab_unregister_node): Likewise.
19641 (symtab_remove_node): Likewise.
19642 (dump_symtab_node): Likewise.
19643 (verify_symtab_base): Likewise.
19644 (verify_symtab_node): Likewise.
19645 (symtab_make_decl_local): Likewise.
19646 (symtab_alias_ultimate_target): Likewise.
19647 (symtab_resolve_alias): Likewise.
19648 (symtab_get_symbol_partitioning_class): Likewise.
19649 * tree-phinodes.c (allocate_phi_node): Likewise.
19650 (reserve_phi_args_for_new_edge): Likewise.
19651 (remove_phi_args): Likewise.
19652 * varpool.c (varpool_node_for_asm): Likewise.
19653 (varpool_remove_unreferenced_decls): Likewise.
19655 2014-04-23 Jeff Law <law@redhat.com>
19657 PR tree-optimization/60902
19658 * tree-ssa-threadedge.c
19659 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19660 invalidate outputs from statements that do not produce useful
19661 outputs for threading.
19663 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19665 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19666 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19667 machine descriptions for Stack Smashing Protector.
19669 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19671 * aarch64.md (<optab>_rol<mode>3): New pattern.
19672 (<optab>_rolsi3_uxtw): Likewise.
19673 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19675 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19677 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19678 (arm_cortex_a12_tune): Likewise.
19680 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19682 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19684 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19686 * config/arm/arm.md (arm_rev16si2): New pattern.
19687 (arm_rev16si2_alt): Likewise.
19688 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19690 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19692 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19693 (rev16<mode>2_alt): Likewise.
19694 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19695 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19696 (aarch_rev16_shleft_mask_imm_p): Likewise.
19697 (aarch_rev16_p_1): Likewise.
19698 (aarch_rev16_p): Likewise.
19699 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19700 (aarch_rev16_shright_mask_imm_p): Likewise.
19701 (aarch_rev16_shleft_mask_imm_p): Likewise.
19703 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19705 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19706 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19708 (cortex_a53_extra_costs): Likewise.
19709 (cortex_a57_extra_costs): Likewise.
19710 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19711 (cortexa7_extra_costs): Likewise.
19712 (cortexa8_extra_costs): Likewise.
19713 (cortexa12_extra_costs): Likewise.
19714 (cortexa15_extra_costs): Likewise.
19715 (v7m_extra_costs): Likewise.
19716 (arm_new_rtx_costs): Handle BSWAP.
19718 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19720 * config/arm/arm.c (cortexa8_extra_costs): New table.
19721 (arm_cortex_a8_tune): New tuning struct.
19722 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19724 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19726 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19728 2014-04-23 Richard Biener <rguenther@suse.de>
19730 * Makefile.in (OBJS): Remove loop-unswitch.o.
19731 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19732 * passes.def (pass_rtl_unswitch): Likewise.
19733 * loop-init.c (gate_rtl_unswitch): Likewise.
19734 (rtl_unswitch): Likewise.
19735 (pass_data_rtl_unswitch): Likewise.
19736 (pass_rtl_unswitch): Likewise.
19737 (make_pass_rtl_unswitch): Likewise.
19738 * rtl.h (reversed_condition): Likewise.
19739 (compare_and_jump_seq): Likewise.
19740 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19742 * loop-unroll.c (compare_and_jump_seq): Likewise.
19744 2014-04-23 Richard Biener <rguenther@suse.de>
19746 PR tree-optimization/60903
19747 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19748 commented code block.
19749 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19750 loop flags to newly created BBs and edges.
19752 2014-04-23 Nick Clifton <nickc@redhat.com>
19754 * config/msp430/msp430.c (msp430_handle_option): Move function
19756 (msp430_option_override): Simplify mcu and mcpu option handling.
19757 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19758 support for -mhwmult command line option.
19759 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19760 -mhwmult command line option.
19761 (msp430_hwmult_enabled): Delete.
19762 (msp43o_output_labelref): Add support for -mhwmult command line option.
19763 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19764 (umulsidi3): Likewise.
19765 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19766 (mcpu, mlarge, msmall): Likewise.
19767 (mhwmult): New option.
19768 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19770 (msp430_is_f5_mcu): Remove prototype.
19771 (msp430_use_f5_series_hwmult): Add prototype.
19772 * config/msp430/msp430-opts.h: New file.
19773 * common/config/msp430: New directory.
19774 * common/config/msp430/msp430-common.c: New file.
19775 * config.gcc (msp430): Remove target_has_targetm_common.
19776 * doc/invoke.texi: Document -mhwmult command line option.
19778 2014-04-23 Nick Clifton <nickc@redhat.com>
19780 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19781 default-manifest.o if it can be found in the search path.
19782 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19784 2014-04-23 Terry Guo <terry.guo@arm.com>
19786 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19788 2014-04-23 Richard Biener <rguenther@suse.de>
19790 PR middle-end/60895
19791 * tree-inline.c (declare_return_variable): Use mark_addressable.
19793 2014-04-23 Richard Biener <rguenther@suse.de>
19795 PR middle-end/60891
19796 * loop-init.c (loop_optimizer_init): Make sure to apply
19797 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19799 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19802 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19804 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19805 if flag_sanitize_undefined_trap_on_error.
19806 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19807 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19808 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19809 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19810 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19811 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19812 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19813 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19814 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19815 * ubsan.c (ubsan_instrument_unreachable): Return
19816 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19817 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19818 if flag_sanitize_undefined_trap_on_error and
19819 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19820 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19821 instrument_bool_enum_load): Emit __builtin_trap () if
19822 flag_sanitize_undefined_trap_on_error and
19823 __builtin_handle_*_abort () if !flag_sanitize_recover.
19824 * doc/invoke.texi (-fsanitize-recover,
19825 -fsanitize-undefined-trap-on-error): Document.
19827 2014-04-22 Christian Bruel <christian.bruel@st.com>
19829 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19830 Force immediates to SImode.
19832 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19834 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19835 (lroundsfsi2): New.
19836 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19837 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19838 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19839 (nios2_fpu_insn): Add entry for round.
19840 (N2FPU_NO_ERRNO_P): Define.
19841 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19843 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19845 2014-04-22 Richard Henderson <rth@redhat.com>
19847 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19848 (add<GPI>3_compare0): Remove leading * from name.
19849 (add<GPI>3_carryin): Likewise.
19850 (sub<GPI>3_compare0): Likewise.
19851 (sub<GPI>3_carryin): Likewise.
19852 (<su_optab>mulditi3): New expander.
19853 (multi3): New expander.
19854 (madd<GPI>): Remove leading * from name.
19856 2014-04-22 Martin Jambor <mjambor@suse.cz>
19858 * cgraphclones.c (cgraph_function_versioning): Copy
19859 ipa_transforms_to_apply instead of asserting it is empty.
19861 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19864 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19865 on count_exp to get mode.
19867 2014-04-22 Andrew Pinski <apinski@cavium.com>
19869 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19870 Handle TLS for ILP32.
19871 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19872 (tlsie_small_<mode>): this and handle PTR.
19873 (tlsie_small_sidi): New pattern.
19874 (tlsle_small): Change to an expand to handle ILP32.
19875 (tlsle_small_<mode>): New pattern.
19876 (tlsdesc_small): Rename to ...
19877 (tlsdesc_small_<mode>): this and handle PTR.
19879 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19881 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19883 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19885 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19886 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19887 (aarch64_types_signed_poly_qualifiers): Likewise.
19888 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19889 (aarch64_types_poly_signed_qualifiers): Likewise.
19890 (TYPES_REINTERP_SS): Type macro added.
19891 (TYPES_REINTERP_SU): Likewise.
19892 (TYPES_REINTERP_SP): Likewise.
19893 (TYPES_REINTERP_US): Likewise.
19894 (TYPES_REINTERP_PS): Likewise.
19895 (aarch64_fold_builtin): New expression folding added.
19896 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19897 Declarations removed.
19898 (REINTERP_SS): Declarations added.
19899 (REINTERP_US): Likewise.
19900 (REINTERP_PS): Likewise.
19901 (REINTERP_SU): Likewise.
19902 (REINTERP_SP): Likewise.
19903 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19904 (vreinterpretq_p8_f64): Likewise.
19905 (vreinterpret_p16_f64): Likewise.
19906 (vreinterpretq_p16_f64): Likewise.
19907 (vreinterpret_f32_f64): Likewise.
19908 (vreinterpretq_f32_f64): Likewise.
19909 (vreinterpret_f64_f32): Likewise.
19910 (vreinterpret_f64_p8): Likewise.
19911 (vreinterpret_f64_p16): Likewise.
19912 (vreinterpret_f64_s8): Likewise.
19913 (vreinterpret_f64_s16): Likewise.
19914 (vreinterpret_f64_s32): Likewise.
19915 (vreinterpret_f64_s64): Likewise.
19916 (vreinterpret_f64_u8): Likewise.
19917 (vreinterpret_f64_u16): Likewise.
19918 (vreinterpret_f64_u32): Likewise.
19919 (vreinterpret_f64_u64): Likewise.
19920 (vreinterpretq_f64_f32): Likewise.
19921 (vreinterpretq_f64_p8): Likewise.
19922 (vreinterpretq_f64_p16): Likewise.
19923 (vreinterpretq_f64_s8): Likewise.
19924 (vreinterpretq_f64_s16): Likewise.
19925 (vreinterpretq_f64_s32): Likewise.
19926 (vreinterpretq_f64_s64): Likewise.
19927 (vreinterpretq_f64_u8): Likewise.
19928 (vreinterpretq_f64_u16): Likewise.
19929 (vreinterpretq_f64_u32): Likewise.
19930 (vreinterpretq_f64_u64): Likewise.
19931 (vreinterpret_s64_f64): Likewise.
19932 (vreinterpretq_s64_f64): Likewise.
19933 (vreinterpret_u64_f64): Likewise.
19934 (vreinterpretq_u64_f64): Likewise.
19935 (vreinterpret_s8_f64): Likewise.
19936 (vreinterpretq_s8_f64): Likewise.
19937 (vreinterpret_s16_f64): Likewise.
19938 (vreinterpretq_s16_f64): Likewise.
19939 (vreinterpret_s32_f64): Likewise.
19940 (vreinterpretq_s32_f64): Likewise.
19941 (vreinterpret_u8_f64): Likewise.
19942 (vreinterpretq_u8_f64): Likewise.
19943 (vreinterpret_u16_f64): Likewise.
19944 (vreinterpretq_u16_f64): Likewise.
19945 (vreinterpret_u32_f64): Likewise.
19946 (vreinterpretq_u32_f64): Likewise.
19948 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19950 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19951 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19952 (vreinterpret_p8_s8): Likewise.
19953 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19954 (vreinterpret_p8_s16): Likewise.
19955 (vreinterpret_p8_s32): Likewise.
19956 (vreinterpret_p8_s64): Likewise.
19957 (vreinterpret_p8_f32): Likewise.
19958 (vreinterpret_p8_u8): Likewise.
19959 (vreinterpret_p8_u16): Likewise.
19960 (vreinterpret_p8_u32): Likewise.
19961 (vreinterpret_p8_u64): Likewise.
19962 (vreinterpret_p8_p16): Likewise.
19963 (vreinterpretq_p8_s8): Likewise.
19964 (vreinterpretq_p8_s16): Likewise.
19965 (vreinterpretq_p8_s32): Likewise.
19966 (vreinterpretq_p8_s64): Likewise.
19967 (vreinterpretq_p8_f32): Likewise.
19968 (vreinterpretq_p8_u8): Likewise.
19969 (vreinterpretq_p8_u16): Likewise.
19970 (vreinterpretq_p8_u32): Likewise.
19971 (vreinterpretq_p8_u64): Likewise.
19972 (vreinterpretq_p8_p16): Likewise.
19973 (vreinterpret_p16_s8): Likewise.
19974 (vreinterpret_p16_s16): Likewise.
19975 (vreinterpret_p16_s32): Likewise.
19976 (vreinterpret_p16_s64): Likewise.
19977 (vreinterpret_p16_f32): Likewise.
19978 (vreinterpret_p16_u8): Likewise.
19979 (vreinterpret_p16_u16): Likewise.
19980 (vreinterpret_p16_u32): Likewise.
19981 (vreinterpret_p16_u64): Likewise.
19982 (vreinterpret_p16_p8): Likewise.
19983 (vreinterpretq_p16_s8): Likewise.
19984 (vreinterpretq_p16_s16): Likewise.
19985 (vreinterpretq_p16_s32): Likewise.
19986 (vreinterpretq_p16_s64): Likewise.
19987 (vreinterpretq_p16_f32): Likewise.
19988 (vreinterpretq_p16_u8): Likewise.
19989 (vreinterpretq_p16_u16): Likewise.
19990 (vreinterpretq_p16_u32): Likewise.
19991 (vreinterpretq_p16_u64): Likewise.
19992 (vreinterpretq_p16_p8): Likewise.
19993 (vreinterpret_f32_s8): Likewise.
19994 (vreinterpret_f32_s16): Likewise.
19995 (vreinterpret_f32_s32): Likewise.
19996 (vreinterpret_f32_s64): Likewise.
19997 (vreinterpret_f32_u8): Likewise.
19998 (vreinterpret_f32_u16): Likewise.
19999 (vreinterpret_f32_u32): Likewise.
20000 (vreinterpret_f32_u64): Likewise.
20001 (vreinterpret_f32_p8): Likewise.
20002 (vreinterpret_f32_p16): Likewise.
20003 (vreinterpretq_f32_s8): Likewise.
20004 (vreinterpretq_f32_s16): Likewise.
20005 (vreinterpretq_f32_s32): Likewise.
20006 (vreinterpretq_f32_s64): Likewise.
20007 (vreinterpretq_f32_u8): Likewise.
20008 (vreinterpretq_f32_u16): Likewise.
20009 (vreinterpretq_f32_u32): Likewise.
20010 (vreinterpretq_f32_u64): Likewise.
20011 (vreinterpretq_f32_p8): Likewise.
20012 (vreinterpretq_f32_p16): Likewise.
20013 (vreinterpret_s64_s8): Likewise.
20014 (vreinterpret_s64_s16): Likewise.
20015 (vreinterpret_s64_s32): Likewise.
20016 (vreinterpret_s64_f32): Likewise.
20017 (vreinterpret_s64_u8): Likewise.
20018 (vreinterpret_s64_u16): Likewise.
20019 (vreinterpret_s64_u32): Likewise.
20020 (vreinterpret_s64_u64): Likewise.
20021 (vreinterpret_s64_p8): Likewise.
20022 (vreinterpret_s64_p16): Likewise.
20023 (vreinterpretq_s64_s8): Likewise.
20024 (vreinterpretq_s64_s16): Likewise.
20025 (vreinterpretq_s64_s32): Likewise.
20026 (vreinterpretq_s64_f32): Likewise.
20027 (vreinterpretq_s64_u8): Likewise.
20028 (vreinterpretq_s64_u16): Likewise.
20029 (vreinterpretq_s64_u32): Likewise.
20030 (vreinterpretq_s64_u64): Likewise.
20031 (vreinterpretq_s64_p8): Likewise.
20032 (vreinterpretq_s64_p16): Likewise.
20033 (vreinterpret_u64_s8): Likewise.
20034 (vreinterpret_u64_s16): Likewise.
20035 (vreinterpret_u64_s32): Likewise.
20036 (vreinterpret_u64_s64): Likewise.
20037 (vreinterpret_u64_f32): Likewise.
20038 (vreinterpret_u64_u8): Likewise.
20039 (vreinterpret_u64_u16): Likewise.
20040 (vreinterpret_u64_u32): Likewise.
20041 (vreinterpret_u64_p8): Likewise.
20042 (vreinterpret_u64_p16): Likewise.
20043 (vreinterpretq_u64_s8): Likewise.
20044 (vreinterpretq_u64_s16): Likewise.
20045 (vreinterpretq_u64_s32): Likewise.
20046 (vreinterpretq_u64_s64): Likewise.
20047 (vreinterpretq_u64_f32): Likewise.
20048 (vreinterpretq_u64_u8): Likewise.
20049 (vreinterpretq_u64_u16): Likewise.
20050 (vreinterpretq_u64_u32): Likewise.
20051 (vreinterpretq_u64_p8): Likewise.
20052 (vreinterpretq_u64_p16): Likewise.
20053 (vreinterpret_s8_s16): Likewise.
20054 (vreinterpret_s8_s32): Likewise.
20055 (vreinterpret_s8_s64): Likewise.
20056 (vreinterpret_s8_f32): Likewise.
20057 (vreinterpret_s8_u8): Likewise.
20058 (vreinterpret_s8_u16): Likewise.
20059 (vreinterpret_s8_u32): Likewise.
20060 (vreinterpret_s8_u64): Likewise.
20061 (vreinterpret_s8_p8): Likewise.
20062 (vreinterpret_s8_p16): Likewise.
20063 (vreinterpretq_s8_s16): Likewise.
20064 (vreinterpretq_s8_s32): Likewise.
20065 (vreinterpretq_s8_s64): Likewise.
20066 (vreinterpretq_s8_f32): Likewise.
20067 (vreinterpretq_s8_u8): Likewise.
20068 (vreinterpretq_s8_u16): Likewise.
20069 (vreinterpretq_s8_u32): Likewise.
20070 (vreinterpretq_s8_u64): Likewise.
20071 (vreinterpretq_s8_p8): Likewise.
20072 (vreinterpretq_s8_p16): Likewise.
20073 (vreinterpret_s16_s8): Likewise.
20074 (vreinterpret_s16_s32): Likewise.
20075 (vreinterpret_s16_s64): Likewise.
20076 (vreinterpret_s16_f32): Likewise.
20077 (vreinterpret_s16_u8): Likewise.
20078 (vreinterpret_s16_u16): Likewise.
20079 (vreinterpret_s16_u32): Likewise.
20080 (vreinterpret_s16_u64): Likewise.
20081 (vreinterpret_s16_p8): Likewise.
20082 (vreinterpret_s16_p16): Likewise.
20083 (vreinterpretq_s16_s8): Likewise.
20084 (vreinterpretq_s16_s32): Likewise.
20085 (vreinterpretq_s16_s64): Likewise.
20086 (vreinterpretq_s16_f32): Likewise.
20087 (vreinterpretq_s16_u8): Likewise.
20088 (vreinterpretq_s16_u16): Likewise.
20089 (vreinterpretq_s16_u32): Likewise.
20090 (vreinterpretq_s16_u64): Likewise.
20091 (vreinterpretq_s16_p8): Likewise.
20092 (vreinterpretq_s16_p16): Likewise.
20093 (vreinterpret_s32_s8): Likewise.
20094 (vreinterpret_s32_s16): Likewise.
20095 (vreinterpret_s32_s64): Likewise.
20096 (vreinterpret_s32_f32): Likewise.
20097 (vreinterpret_s32_u8): Likewise.
20098 (vreinterpret_s32_u16): Likewise.
20099 (vreinterpret_s32_u32): Likewise.
20100 (vreinterpret_s32_u64): Likewise.
20101 (vreinterpret_s32_p8): Likewise.
20102 (vreinterpret_s32_p16): Likewise.
20103 (vreinterpretq_s32_s8): Likewise.
20104 (vreinterpretq_s32_s16): Likewise.
20105 (vreinterpretq_s32_s64): Likewise.
20106 (vreinterpretq_s32_f32): Likewise.
20107 (vreinterpretq_s32_u8): Likewise.
20108 (vreinterpretq_s32_u16): Likewise.
20109 (vreinterpretq_s32_u32): Likewise.
20110 (vreinterpretq_s32_u64): Likewise.
20111 (vreinterpretq_s32_p8): Likewise.
20112 (vreinterpretq_s32_p16): Likewise.
20113 (vreinterpret_u8_s8): Likewise.
20114 (vreinterpret_u8_s16): Likewise.
20115 (vreinterpret_u8_s32): Likewise.
20116 (vreinterpret_u8_s64): Likewise.
20117 (vreinterpret_u8_f32): Likewise.
20118 (vreinterpret_u8_u16): Likewise.
20119 (vreinterpret_u8_u32): Likewise.
20120 (vreinterpret_u8_u64): Likewise.
20121 (vreinterpret_u8_p8): Likewise.
20122 (vreinterpret_u8_p16): Likewise.
20123 (vreinterpretq_u8_s8): Likewise.
20124 (vreinterpretq_u8_s16): Likewise.
20125 (vreinterpretq_u8_s32): Likewise.
20126 (vreinterpretq_u8_s64): Likewise.
20127 (vreinterpretq_u8_f32): Likewise.
20128 (vreinterpretq_u8_u16): Likewise.
20129 (vreinterpretq_u8_u32): Likewise.
20130 (vreinterpretq_u8_u64): Likewise.
20131 (vreinterpretq_u8_p8): Likewise.
20132 (vreinterpretq_u8_p16): Likewise.
20133 (vreinterpret_u16_s8): Likewise.
20134 (vreinterpret_u16_s16): Likewise.
20135 (vreinterpret_u16_s32): Likewise.
20136 (vreinterpret_u16_s64): Likewise.
20137 (vreinterpret_u16_f32): Likewise.
20138 (vreinterpret_u16_u8): Likewise.
20139 (vreinterpret_u16_u32): Likewise.
20140 (vreinterpret_u16_u64): Likewise.
20141 (vreinterpret_u16_p8): Likewise.
20142 (vreinterpret_u16_p16): Likewise.
20143 (vreinterpretq_u16_s8): Likewise.
20144 (vreinterpretq_u16_s16): Likewise.
20145 (vreinterpretq_u16_s32): Likewise.
20146 (vreinterpretq_u16_s64): Likewise.
20147 (vreinterpretq_u16_f32): Likewise.
20148 (vreinterpretq_u16_u8): Likewise.
20149 (vreinterpretq_u16_u32): Likewise.
20150 (vreinterpretq_u16_u64): Likewise.
20151 (vreinterpretq_u16_p8): Likewise.
20152 (vreinterpretq_u16_p16): Likewise.
20153 (vreinterpret_u32_s8): Likewise.
20154 (vreinterpret_u32_s16): Likewise.
20155 (vreinterpret_u32_s32): Likewise.
20156 (vreinterpret_u32_s64): Likewise.
20157 (vreinterpret_u32_f32): Likewise.
20158 (vreinterpret_u32_u8): Likewise.
20159 (vreinterpret_u32_u16): Likewise.
20160 (vreinterpret_u32_u64): Likewise.
20161 (vreinterpret_u32_p8): Likewise.
20162 (vreinterpret_u32_p16): Likewise.
20163 (vreinterpretq_u32_s8): Likewise.
20164 (vreinterpretq_u32_s16): Likewise.
20165 (vreinterpretq_u32_s32): Likewise.
20166 (vreinterpretq_u32_s64): Likewise.
20167 (vreinterpretq_u32_f32): Likewise.
20168 (vreinterpretq_u32_u8): Likewise.
20169 (vreinterpretq_u32_u16): Likewise.
20170 (vreinterpretq_u32_u64): Likewise.
20171 (vreinterpretq_u32_p8): Likewise.
20172 (vreinterpretq_u32_p16): Likewise.
20174 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20176 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20178 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20180 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20181 (vqnegd_s64): Likewise.
20182 (vqabs_s64): Likewise.
20183 (vqabsd_s64): Likewise.
20185 2014-04-22 Richard Henderson <rth@redhat.com>
20187 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20188 computation to the top of the loop.
20190 2014-04-22 Renlin <renlin.li@arm.com>
20191 Jiong Wang <jiong.wang@arm.com>
20193 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20194 * config/aarch64/aarch64.c (aarch64_layout_frame)
20195 (aarch64_initial_elimination_offset): Likewise.
20197 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20199 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20202 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20204 * machmode.h (bitwise_mode_for_mode): Declare.
20205 * stor-layout.h (bitwise_type_for_mode): Likewise.
20206 * stor-layout.c (bitwise_mode_for_mode): New function.
20207 (bitwise_type_for_mode): Likewise.
20208 * builtins.c (fold_builtin_memory_op): Use it instead of
20209 int_mode_for_mode and build_nonstandard_integer_type.
20211 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20213 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20214 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20215 (*-*-solaris2*): Simplify.
20216 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20217 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20218 *-*-solaris2.9* handling.
20220 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20222 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20223 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20224 handling, simplify.
20225 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20226 * configure: Regenerate.
20228 * config/i386/sol2-9.h: Remove.
20230 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20231 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20232 Remove Solaris 9 references.
20234 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20236 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20237 (floatuns<GPI:mode><GPF:mode>2): Remove.
20238 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20239 and floatuns conversions.
20240 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20241 and floatuns conversions.
20242 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20243 (w1,w2): New mode attributes for inequal width conversions.
20245 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20247 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20248 the output asm format.
20250 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20252 * config/aarch64/aarch64-simd.md
20253 (aarch64_cm<optab>di): Always split.
20254 (*aarch64_cm<optab>di): New.
20255 (aarch64_cmtstdi): Always split.
20256 (*aarch64_cmtstdi): New.
20258 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20260 PR tree-optimization/60823
20261 * omp-low.c (ipa_simd_modify_function_body): Go through
20262 all SSA_NAMEs and for those refering to vector arguments
20263 which are going to be replaced adjust SSA_NAME_VAR and,
20264 if it is a default definition, change it into a non-default
20265 definition assigned at the beginning of function from new_decl.
20266 (ipa_simd_modify_stmt_ops): Rewritten.
20267 * tree-dfa.c (set_ssa_default_def): When removing default def,
20268 check for NULL loc instead of NULL *loc.
20270 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20272 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20273 restrictions on core registers for DImode values in Thumb2.
20275 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20277 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20278 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20280 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20282 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20283 (*iordi_notzesidi_di): Likewise.
20284 (*iordi_notsesidi_di): Likewise.
20286 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20288 * config/arm/arm-protos.h (tune_params): New struct members.
20289 * config/arm/arm.c: Initialise tune_params per processor.
20290 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20291 for speed, based on new tune_params.
20293 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20295 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20296 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20297 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20298 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20299 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20300 (vrnda_f64): Likewise.
20301 (vrndi_f64): Likewise.
20302 (vrndm_f64): Likewise.
20303 (vrndn_f64): Likewise.
20304 (vrndp_f64): Likewise.
20305 (vrndx_f64): Likewise.
20307 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20309 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20310 GET_MODE_SIZE argument is enum machine_mode.
20312 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20315 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20316 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20318 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20320 PR middle-end/60281
20321 * asan.c (asan_emit_stack_protection): Force the base to align to
20322 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20323 appropriate bits if STRICT_ALIGNMENT.
20324 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20326 (expand_used_vars): Leave a space in the stack frame for alignment
20327 if STRICT_ALIGNMENT.
20329 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20331 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20333 (gimple_store_p): Likewise.
20334 (gimple_assign_load_p): Likewise.
20335 (gimple_assign_cast_p): Likewise.
20336 (gimple_clobber_p): Likewise.
20338 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20339 rather than a gimple.
20340 (gimple_assign_cast_p): Likewise.
20342 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20345 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20346 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20348 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20349 more debug information for E500 if -mdebug=reg.
20351 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20354 * config/i386/i386.c (ix86_expand_builtin)
20355 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20356 register for target RTX.
20357 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20359 2014-04-18 Cong Hou <congh@google.com>
20361 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20362 the widen-mult pattern by handling two operands with different sizes,
20363 and operands whose size is smaller than half of the result type.
20365 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20367 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20368 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20369 (do_estimate_edge_time): Compute it.
20370 * ipa-inline.c (want_inline_small_function_p): Bypass
20371 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20373 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20375 * ipa-inline.c (spec_rem): New static variable.
20376 (dump_overall_stats): New function.
20377 (dump_inline_stats): New function.
20379 2014-04-18 Richard Henderson <rth@redhat.com>
20381 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20382 to GET_MODE_SIZE, not a reg_class_t.
20384 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20386 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20387 (vsx_xxmrglw_<mode>): Likewise.
20389 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20392 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20393 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20394 (rs6000_init_hard_regno_mode_ok): Likewise.
20396 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20398 * ipa-inline.c (inline_small_functions): Account only non-cold
20400 * doc/invoke.texi (inline-unit-growth): Update documentation.
20402 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20404 * config/rs6000/rs6000.md (addti3, subti3): New.
20406 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20409 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20410 comment. Check optimize_insn_for_size_p instead of
20411 optimize_insn_for_speed_p.
20413 2014-04-17 Martin Jambor <mjambor@suse.cz>
20415 * gimple-iterator.c (gsi_start_edge): New function.
20416 * gimple-iterator.h (gsi_start_edge): Declare.
20417 * tree-sra.c (single_non_eh_succ): New function.
20418 (disqualify_ops_if_throwing_stmt): Renamed to
20419 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20420 having one non-EH successor BB.
20421 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20422 generate loads into replacements.
20423 (sra_modify_assign): Likewise and and also use the simple path for
20425 (sra_modify_function_body): Commit statements on edges.
20427 2014-04-17 Richard Biener <rguenther@suse.de>
20429 PR middle-end/60849
20430 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20431 comparison results and add clarifying comment.
20433 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20435 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20436 (blank_mode): Initialize it.
20437 (emit_mode_size_inline, emit_mode_nunits_inline,
20438 emit_mode_inner_inline): New functions.
20439 (emit_insn_modes_h): Call them and surround their output with
20440 #if GCC_VERSION >= 4001 ... #endif.
20441 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20442 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20443 mode_* arrays if the argument is __builtin_constant_p.
20444 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20445 is enum machine_mode.
20447 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20449 * passes.c (opt_pass::execute): Adjust.
20450 (pass_manager::execute_pass_mode_switching): Likewise.
20451 (early_local_passes::execute): Likewise.
20452 (execute_one_pass): Pass cfun to the pass's execute method.
20453 * tree-pass.h (opt_pass::execute): Add function * argument.
20454 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20455 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20456 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20457 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20458 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20459 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20460 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20461 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20462 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20463 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20464 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20465 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20466 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20467 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20468 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20469 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20470 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20471 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20472 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20473 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20474 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20475 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20476 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20477 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20478 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20479 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20480 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20481 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20482 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20485 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20487 * passes.c (opt_pass::gate): Take function * argument.
20488 (gate_all_early_local_passes): Merge into
20489 (early_local_passes::gate): this.
20490 (gate_all_early_optimizations): Merge into
20491 (all_early_optimizations::gate): this.
20492 (gate_all_optimizations): Mege into
20493 (all_optimizations::gate): this.
20494 (gate_all_optimizations_g): Merge into
20495 (all_optimizations_g::gate): this.
20496 (gate_rest_of_compilation): Mege into
20497 (rest_of_compilation::gate): this.
20498 (gate_postreload): Merge into
20499 (postreload::gate): this.
20500 (dump_one_pass): Pass cfun to the pass's gate method.
20501 (execute_ipa_summary_passes): Likewise.
20502 (execute_one_pass): Likewise.
20503 (ipa_write_summaries_2): Likewise.
20504 (ipa_write_optimization_summaries_1): Likewise.
20505 (ipa_read_summaries_1): Likewise.
20506 (ipa_read_optimization_summaries_1): Likewise.
20507 (execute_ipa_stmt_fixups): Likewise.
20508 * tree-pass.h (opt_pass::gate): Add function * argument.
20509 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20510 combine-stack-adj.c, combine.c, compare-elim.c,
20511 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20512 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20513 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20514 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20515 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20516 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20517 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20518 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20519 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20520 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20521 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20522 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20523 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20524 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20525 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20526 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20527 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20528 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20529 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20530 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20531 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20532 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20533 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20534 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20535 var-tracking.c, vtable-verify.c, web.c: Adjust.
20537 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20539 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20540 * configure: Regenerate.
20542 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20544 * passes.c (dump_one_pass): don't check pass->has_gate.
20545 (execute_ipa_summary_passes): Likewise.
20546 (execute_one_pass): Likewise.
20547 (ipa_write_summaries_2): Likewise.
20548 (ipa_write_optimization_summaries_1): Likewise.
20549 (ipa_read_optimization_summaries_1): Likewise.
20550 (execute_ipa_stmt_fixups): Likewise.
20551 * tree-pass.h (pass_data::has_gate): Remove.
20552 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20553 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20554 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20555 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20556 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20557 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20558 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20559 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20560 gimple-low.c, gimple-ssa-isolate-paths.c,
20561 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20562 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20563 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20564 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20565 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20566 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20567 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20568 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20569 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20570 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20571 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20572 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20573 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20574 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20575 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20576 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20577 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20578 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20579 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20580 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20581 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20582 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20585 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20587 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20589 * passes.c (pass_manager::register_dump_files_1): Merge into
20590 (pass_manager::register_dump_files): this, and remove its handling of
20591 properties since the pass always has the properties anyway.
20592 (pass_manager::pass_manager): Adjust.
20594 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20596 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20597 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20598 dealing with properties.
20599 (pass_manager::register_dump_files): Adjust.
20601 2014-03-20 Mark Wielaard <mjw@redhat.com>
20603 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20604 then represent the bound as normal constant value.
20606 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20609 Forward port from 4.8 branch
20610 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20612 * config/i386/bmiintrin.h (_blsi_u32): New.
20613 (_blsi_u64): Ditto.
20614 (_blsr_u32): Ditto.
20615 (_blsr_u64): Ditto.
20616 (_blsmsk_u32): Ditto.
20617 (_blsmsk_u64): Ditto.
20618 (_tzcnt_u32): Ditto.
20619 (_tzcnt_u64): Ditto.
20621 2014-04-17 Kito Cheng <kito@0xlab.org>
20623 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20625 2014-04-17 Richard Biener <rguenther@suse.de>
20627 PR middle-end/60849
20628 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20629 boolean results for comparisons.
20631 2014-04-17 Richard Biener <rguenther@suse.de>
20633 PR tree-optimization/60836
20634 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20635 initial PHI args to be gimple values.
20637 2014-04-17 Richard Biener <rguenther@suse.de>
20639 PR tree-optimization/60841
20640 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20641 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20642 of stmts to SLP build.
20643 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20644 (vect_analyze_slp): Likewise.
20645 (vect_analyze_slp_instance): Likewise.
20646 (vect_build_slp_tree): Limit overall SLP tree growth.
20647 * tree-vectorizer.h (vect_analyze_data_refs,
20648 vect_analyze_slp): Adjust prototypes.
20650 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20652 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20655 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20657 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20658 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20659 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20660 for TARGET_SLOW_PSHUFB
20662 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20664 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20665 * config/i386/i386.c (intel_cost): Ditto.
20667 2014-04-17 Joey Ye <joey.ye@arm.com>
20669 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20671 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20673 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20674 with -fuse-profile.
20676 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20678 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20679 (type_all_derivations_known_p): New predicate.
20680 (type_all_ctors_visible_p): New predicate.
20681 (type_possibly_instantiated_p): New predicate.
20682 (get_odr_type): Compute all_derivations_known.
20683 (dump_odr_type): Dump the flag.
20684 (maybe_record_type): Cleanup.
20685 (record_target_from_binfo): Add bases_to_consider array;
20686 record bases for types w/o instances and skip CXX destructor.
20687 (possible_polymorphic_call_targets_1): Add bases_to_consider
20688 and consider_construction parameters; check if type may have instance.
20689 (get_polymorphic_call_info): Set maybe_in_construction to true
20690 when we know nothing.
20691 (record_targets_from_bases): Skip CXX destructors; they are
20692 never called for types in construction.
20693 (possible_polymorphic_call_targets): Do not record target when
20694 type may not have instance.
20696 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20699 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20700 external aliases alive, too.
20702 2014-04-16 Andrew Pinski <apinski@cavium.com>
20704 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20707 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20709 * final.c (compute_alignments): Do not apply loop alignment to a block
20710 falling through to the exit.
20712 2014-04-16 Catherine Moore <clm@codesourcery.com>
20714 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20715 Adjust constraints for microMIPS store patterns.
20717 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20719 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20721 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20723 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20724 (append_use): Run at -O0.
20725 (append_vdef): Likewise.
20726 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20727 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20729 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20731 PR tree-optimization/60844
20732 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20733 (propagate_op_to_single_use, remove_visited_stmt_chain,
20734 linearize_expr, repropagate_negates, reassociate_bb): Use it
20735 instead of gsi_remove.
20737 2014-04-16 Martin Jambor <mjambor@suse.cz>
20739 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20740 ipa_transforms_to_apply.
20741 (cgraph_function_versioning): Assert that old_node has empty
20742 ipa_transforms_to_apply.
20743 * trans-mem.c (ipa_tm_create_version): Likewise.
20744 * tree-inline.c (tree_function_versioning): Do not duplicate
20745 ipa_transforms_to_apply.
20747 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20750 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20752 Pass necessary as flags on 64-bit Solaris/x86.
20753 Use lowercase relocs for x86_64-*-*.
20754 * configure: Regenerate.
20756 2014-04-15 Jan Hubicka <jh@suse.cz>
20758 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20759 (maybe_record_node, likely_target_p): Use it.
20761 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20764 Revert following patch
20766 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20769 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20770 software floating point or no floating point registers, do not
20771 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20772 in GPRs that occurs after we tested for GPRs that would never be
20775 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20776 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20777 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20778 specifically allow DDmode, since that does not use the SPE SIMD
20781 2014-03-21 Mark Wielaard <mjw@redhat.com>
20783 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20784 as unsigned or int depending on type and value used.
20786 2014-04-15 Richard Biener <rguenther@suse.de>
20788 PR rtl-optimization/56965
20789 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20790 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20792 * alias.c (true_dependence_1): Do not call
20793 nonoverlapping_component_refs_p.
20794 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20795 nonoverlapping_component_refs_p.
20796 (indirect_refs_may_alias_p): Likewise.
20798 2014-04-15 Teresa Johnson <tejohnson@google.com>
20800 * cfg.c (dump_bb_info): Fix flags check.
20801 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20803 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20805 PR rtl-optimization/60663
20806 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20809 2014-04-15 Richard Biener <rguenther@suse.de>
20811 * lto-streamer.h (LTO_major_version): Bump to 4.
20813 2014-04-15 Richard Biener <rguenther@suse.de>
20815 * common.opt (lto_partition_model): New enum.
20816 (flto-partition=): Merge separate options with a single with argument,
20817 add -flto-partition=one support.
20818 * flag-types.h (enum lto_partition_model): Declare.
20819 * opts.c (finish_options): Remove duplicate -flto-partition=
20821 * lto-wrapper.c (run_gcc): Adjust.
20823 2014-04-15 Richard Biener <rguenther@suse.de>
20825 * alias.c (ncr_compar): New function.
20826 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20828 2014-04-15 Richard Biener <rguenther@suse.de>
20830 * alias.c (record_component_aliases): Do not walk BINFOs.
20832 2014-04-15 Richard Biener <rguenther@suse.de>
20834 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20835 Add struct function argument and adjust.
20836 (find_func_aliases_for_call): Likewise.
20837 (find_func_aliases): Likewise.
20838 (find_func_clobbers): Likewise.
20839 (intra_create_variable_infos): Likewise.
20840 (compute_points_to_sets): Likewise.
20841 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20843 2014-04-15 Richard Biener <rguenther@suse.de>
20845 * tree.c (iterative_hash_expr): Use enum tree_code_class
20846 to store TREE_CODE_CLASS.
20847 (tree_block): Likewise.
20848 (tree_set_block): Likewise.
20849 * tree.h (fold_build_pointer_plus_loc): Use
20850 convert_to_ptrofftype_loc.
20852 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20855 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20858 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20860 * cfgloop.h (struct loop): Move force_vectorize down.
20861 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20862 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20863 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20864 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20865 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20866 * tree-core.h (enum annot_expr_kind): Add new kind values.
20867 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20868 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20870 * tree.def (ANNOTATE_EXPR): Tweak comment.
20872 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20874 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20877 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20879 * tree.h (TYPE_IDENTIFIER): Declare.
20880 * tree.c (subrange_type_for_debug_p): Use it.
20881 * godump.c (go_format_type): Likewise.
20882 * dwarf2out.c (is_cxx_auto, modified_type_die,
20883 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20884 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20886 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20889 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20891 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20893 * config/i386/i386.c (examine_argument): Return bool. Return true if
20894 parameter should be passed in memory.
20895 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20896 (construct_container): Update calls to examine_argument.
20897 (function_arg_advance_64): Ditto.
20898 (return_in_memory_32): Merge with ix86_return_in_memory.
20899 (return_in_memory_64): Ditto.
20900 (return_in_memory_ms_64): Ditto.
20902 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20904 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20905 * coverage.c (coverage_compute_profile_id): Handle externally visible
20908 2014-04-14 Martin Jambor <mjambor@suse.cz>
20910 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20911 DECL_DISREGARD_INLINE_LIMITS functions.
20913 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20916 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20918 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20921 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20922 optimize_insn_for_speed_p instead of
20923 optimize_function_for_speed_p.
20925 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20927 * doc/invoke.texi (free): Document AArch64.
20929 2014-04-14 Richard Biener <rguenther@suse.de>
20931 PR tree-optimization/60042
20932 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20933 (insert_into_preds_of_block): Do not prevent PHI insertion
20934 for REFERENCE exprs here ...
20935 (eliminate_dom_walker::before_dom_children): ... but prevent
20936 their use here under similar conditions when applied to the
20937 IL after PRE optimizations.
20939 2014-04-14 Richard Biener <rguenther@suse.de>
20941 * passes.def: Move early points-to after early SRA.
20943 2014-04-14 Richard Biener <rguenther@suse.de>
20945 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20946 check for which sign-changes we allow when forwarding
20947 a converted value into a switch.
20949 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20951 * stor-layout.c (place_field): Finalize non-constant offset for the
20954 2014-04-14 Richard Biener <rguenther@suse.de>
20956 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20958 (expand_switch_using_bit_tests_p): Likewise.
20959 (process_switch): Compute and pass on speed_p based on the
20961 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20962 optimize_bb_for_speed_p.
20964 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20966 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20967 * function.h (struct function): Rename has_force_vect_loops into
20968 has_force_vectorize_loops.
20969 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20970 (input_struct_function_base): Likewise.
20971 * lto-streamer-out.c (output_cfg): Likewise.
20972 (output_struct_function_base): Likewise.
20973 * omp-low.c (expand_omp_simd): Likewise.
20974 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20975 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20976 (version_loop_for_if_conversion): Likewise.
20977 (tree_if_conversion): Likewise.
20978 (main_tree_if_conversion): Likewise.
20979 (gate_tree_if_conversion): Likewise.
20980 * tree-inline.c (copy_loops): Likewise.
20981 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20982 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20983 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20984 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20985 * tree-vectorizer.c (vectorize_loops): Likewise.
20986 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20988 2014-04-14 Richard Biener <rguenther@suse.de>
20991 * lto-streamer-out.c (wrap_refs): New function.
20992 (lto_output): Wrap symbol references in global initializes in
20993 type-preserving MEM_REFs.
20995 2014-04-14 Christian Bruel <christian.bruel@st.com>
20997 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20999 2014-04-14 Christian Bruel <christian.bruel@st.com>
21001 * config/sh/sh.md (setmemqi): New expand pattern.
21002 * config/sh/sh.h (CLEAR_RATIO): Define.
21003 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21004 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21006 2014-04-14 Richard Biener <rguenther@suse.de>
21008 PR middle-end/55022
21009 * fold-const.c (negate_expr_p): Don't negate directional rounding
21011 (fold_negate_expr): Likewise.
21013 2014-04-14 Richard Biener <rguenther@suse.de>
21015 PR tree-optimization/59817
21016 PR tree-optimization/60453
21017 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21018 recursion to catch all CHRECs in the scalar evolution and restrict
21019 the predicate for the remains appropriately.
21021 2014-04-12 Catherine Moore <clm@codesourcery.com>
21023 * config/mips/constraints.md: Add new register constraint "kb".
21024 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21025 (*movhi_internal): Likewise.
21026 (*movqi_internal): Likewise.
21027 * config/mips/mips.h (M16_STORE_REGS): New register class.
21028 (REG_CLASS_NAMES): Add M16_STORE_REGS.
21029 (REG_CLASS_CONTENTS): Likewise.
21030 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21032 2014-04-11 Tobias Burnus <burnus@net-b.de>
21035 * doc/invoke.texi (-Wformat-signedness): Document it.
21036 (Wformat=2): Mention that this enables -Wformat-signedness.
21038 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21040 * common/config/epiphany/epiphany-common.c
21041 (epiphany_option_optimization_table): Enable section anchors by
21042 default at -O1 or higher.
21043 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21044 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
21045 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
21046 carries no extra cost.
21047 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
21048 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
21049 * config/epiphany/predicates.md (memclob_operand): New predicate.
21050 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
21051 Use memclob_operand predicate and X constraint for operand 3.
21053 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21055 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
21056 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
21059 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21061 PR rtl-optimization/60651
21062 * mode-switching.c (optimize_mode_switching): Make sure to emit
21063 sets of a lower numbered entity before sets of a higher numbered
21064 entity to a mode of the same or lower priority.
21065 When creating a seginfo for a basic block that starts with a code
21066 label, move the insertion point past the code label.
21067 (new_seginfo): Document and enforce requirement that
21068 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21069 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21070 * doc/tm.texi: Regenerate.
21072 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21075 * config/arc/arc.c (arc_save_restore): Fix assert typo.
21077 2013-04-11 Jakub Jelinek <jakub@redhat.com>
21079 * BASE-VER: Set to 4.10.0.
21081 2014-04-11 Tobias Burnus <burnus@net-b.de>
21084 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
21085 * doc/gcc.texi (Service): Update description in the @menu
21086 * doc/invoke.texi (Option Summary): Remove misplaced and
21089 2014-04-11 Steve Ellcey <sellcey@mips.com>
21090 Jakub Jelinek <jakub@redhat.com>
21092 PR middle-end/60556
21093 * expr.c (convert_move): Use emit_store_flag_force instead of
21094 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
21097 2014-04-11 Richard Biener <rguenther@suse.de>
21099 PR middle-end/60797
21100 * varasm.c (assemble_alias): Avoid endless error reporting
21101 recursion by setting TREE_ASM_WRITTEN.
21103 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21105 * config/s390/s390.md: Add a splitter for NOT rtx.
21107 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21109 PR rtl-optimization/60663
21110 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21112 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21113 Jakub Jelinek <jakub@redhat.com>
21116 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21117 flag from decl_node to node.
21119 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21122 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21123 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21124 ameliorating the cases where it can be.
21126 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21129 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21131 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21132 (loadsync_<mode>): Change mode.
21133 (load_quadpti, store_quadpti): New.
21134 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21135 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21136 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21138 2014-04-09 Cong Hou <congh@google.com>
21141 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21144 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21146 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21147 instead of vnor to exploit possible fusion opportunity in the
21149 (altivec_expand_vec_perm_const_le): Likewise.
21151 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21153 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21154 (loadsync_<mode>): Change mode.
21155 (load_quadpti, store_quadpti): New.
21156 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21157 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21159 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21162 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21163 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21164 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21166 2014-04-08 Richard Biener <rguenther@suse.de>
21168 PR middle-end/60706
21169 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21170 a 64bit widest int print double-int similar to on HWI64 hosts.
21172 2014-04-08 Richard Biener <rguenther@suse.de>
21174 PR tree-optimization/60785
21175 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21176 default defs properly.
21178 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21180 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21181 (Weffc++): Likewise.
21183 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21185 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21186 set completep to false rather than true.
21188 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21191 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21192 ARM_TARGET2_DWARF_FORMAT.
21194 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21197 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21198 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21201 2014-04-07 Richard Biener <rguenther@suse.de>
21203 PR tree-optimization/60766
21204 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21205 (may_eliminate_iv): Convert cand_value_at result to desired type.
21207 2014-04-07 Jason Merrill <jason@redhat.com>
21210 * common.opt (-fno-gnu-unique): Add.
21211 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21213 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21215 * haifa-sched.c: Fix outdated function reference and minor
21216 grammar errors in introductory comment.
21218 2014-04-07 Richard Biener <rguenther@suse.de>
21220 PR middle-end/60750
21221 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21222 for noreturn calls.
21223 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21225 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21228 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21229 size accounting for thunks.
21230 (pa_asm_output_mi_thunk): Use final_start_function() and
21231 final_end_function() to output function start and end directives.
21233 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21235 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21236 device specific ISA/ feature information. Remove short_sp and
21237 errata_skip ds. Add avr_device_specific_features enum to have device
21239 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21240 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21241 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21242 updated device specific info.
21243 * config/avr/avr-mcus.def: Merge device specific details to
21244 dev_attribute field.
21245 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21247 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21248 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21249 assembler if RMW isa supported by current device.
21250 * config/avr/genmultilib.awk: Update as device info structure changed.
21251 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21253 2014-04-04 Cong Hou <congh@google.com>
21255 PR tree-optimization/60656
21256 * tree-vect-stmts.c (supportable_widening_operation):
21257 Fix a bug that elements in a vector with vect_used_by_reduction
21258 property are incorrectly reordered when the operation on it is not
21259 consistant with the one in reduction operation.
21261 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21263 PR rtl-optimization/60155
21264 * gcse.c (record_set_data): New function.
21265 (single_set_gcse): New function.
21266 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21267 (hoist_code): Likewise.
21268 (get_pressure_class_and_nregs): Likewise.
21270 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21272 * explow.c (probe_stack_range): Emit a final optimization blockage.
21274 2014-04-04 Anthony Green <green@moxielogic.com>
21276 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21279 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21282 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21283 flags are set only during streaming.
21284 * ipa.c (process_references, walk_polymorphic_call_targets,
21285 symtab_remove_unreachable_nodes): Drop bodies of always inline
21286 after early inlining.
21287 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21289 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21290 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21293 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21296 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21299 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21301 (cortex_a53_fdivd): Likewise.
21303 2014-04-04 Martin Jambor <mjambor@suse.cz>
21306 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21307 Adjust all callers.
21308 * cgraph.c (clone_of_p): Also return true if thunks match.
21309 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21310 cgraph_function_or_thunk_node and an obsolete comment.
21311 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21313 (build_function_decl_skip_args): Likewise.
21314 (set_new_clone_decl_and_node_flags): New function.
21315 (duplicate_thunk_for_node): Likewise.
21316 (redirect_edge_duplicating_thunks): Likewise.
21317 (cgraph_clone_node): New parameter args_to_skip, pass it to
21318 redirect_edge_duplicating_thunks which is called instead of
21319 cgraph_redirect_edge_callee.
21320 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21321 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21323 2014-04-04 Jeff Law <law@redhat.com>
21326 * config/arm/predicates.md (const_int_I_operand): New predicate.
21327 (const_int_M_operand): Similarly.
21328 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21330 (insv_t2, extv_reg, extzv_t2): Likewise.
21331 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21332 (pop_multiple_with_writeback_and_return): Likewise.
21333 (vfp_pop_multiple_with_writeback): Likewise
21335 2014-04-04 Richard Biener <rguenther@suse.de>
21338 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21339 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21341 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21342 * gimplify.c (gimple_add_tmp_var_fn): New function.
21343 * gimple-expr.h (create_tmp_reg_fn): Declare.
21344 * gimple-expr.c (create_tmp_reg_fn): New function.
21345 * gimple-low.c (record_vars_into): Don't change cfun.
21346 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21347 code generation without cfun.
21349 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21352 * Makefile.in (install-driver): Fix shell scripting.
21354 2014-04-03 Cong Hou <congh@google.com>
21356 PR tree-optimization/60505
21357 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21358 threshold of number of iterations below which no vectorization
21360 * tree-vect-loop.c (new_loop_vec_info):
21361 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21362 * tree-vect-loop.c (vect_analyze_loop_operations):
21363 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21364 * tree-vect-loop.c (vect_transform_loop):
21365 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21366 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21367 of iterations of the loop and see if we should build the epilogue.
21369 2014-04-03 Richard Biener <rguenther@suse.de>
21371 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21372 (streamer_tree_cache_create): Adjust.
21373 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21374 to allow optional nodes array.
21375 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21376 (streamer_tree_cache_append): Likewise.
21377 (streamer_tree_cache_create): Create nodes array optionally
21378 as specified by parameter.
21379 * lto-streamer-out.c (create_output_block): Avoid maintaining
21380 the node array in the writer cache.
21381 (DFS_write_tree): Remove assertion.
21382 (produce_asm_for_decls): Free the out decl state hash table early.
21383 * lto-streamer-in.c (lto_data_in_create): Adjust for
21384 streamer_tree_cache_create prototype change.
21386 2014-04-03 Richard Biener <rguenther@suse.de>
21388 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21389 set TREE_CHAIN to NULL_TREE.
21391 2014-04-03 Richard Biener <rguenther@suse.de>
21393 PR tree-optimization/60740
21394 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21395 over all GIMPLE_COND operands.
21397 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21399 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21400 (Weffc++): Remove Scott's numbering, merge lists and reference
21403 2014-04-03 Nick Clifton <nickc@redhat.com>
21405 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21408 2014-04-03 Martin Jambor <mjambor@suse.cz>
21410 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21411 mention gcc_unreachable before failing.
21412 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21415 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21418 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21419 inconsistent code and instead mark the context inconsistent.
21420 (possible_polymorphic_call_targets): For inconsistent contexts
21421 return empty complete list.
21423 2014-04-02 Anthony Green <green@moxielogic.com>
21425 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21426 (extendqisi2, extendhisi2): Define.
21427 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21428 (WCHAR_TYPE): Change to unsigned int.
21430 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21432 PR tree-optimization/60733
21433 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21434 insertion point for PHI candidates to be the end of the feeding
21435 block for the PHI argument.
21437 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21439 PR rtl-optimization/60650
21440 * lra-constraints.c (process_alt_operands): Decrease reject for
21441 earlyclobber matching.
21443 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21445 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21447 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21449 * config/spu/spu.c (pad_bb): Do not crash when the last
21450 insn is CODE_FOR_blockage.
21452 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21454 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21455 lies outside the target mode.
21457 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21460 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21461 software floating point or no floating point registers, do not
21462 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21463 in GPRs that occurs after we tested for GPRs that would never be
21466 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21467 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21468 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21469 specifically allow DDmode, since that does not use the SPE SIMD
21472 2014-04-02 Richard Biener <rguenther@suse.de>
21474 PR middle-end/60729
21475 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21476 MODE_INTs. Properly use negv_optab.
21477 (expand_abs): Likewise.
21479 2014-04-02 Richard Biener <rguenther@suse.de>
21482 * Makefile.in (install-driver): Guard extra installs with special
21485 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21487 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21488 Document vec_vgbbd.
21490 2014-04-01 Richard Henderson <rth@redhat.com>
21493 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21494 alternative enabled before register allocation.
21496 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21498 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21499 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21501 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21502 (nios2_got_address): Update nios2_large_got_address call site.
21503 (nios2_delegitimize_address): New function.
21504 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21505 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21506 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21508 2014-04-01 Martin Husemann <martin@duskware.de>
21510 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21513 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21515 PR rtl-optimization/60604
21516 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21517 check from register_operand.
21518 (register_operand): Redefine in terms of general_operand.
21519 (nonmemory_operand): Use register_operand for the non-constant cases.
21521 2014-04-01 Richard Biener <rguenther@suse.de>
21523 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21525 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21527 * doc/invoke.texi (mapp-regs): Clarify.
21529 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21531 * config/i386/avx512fintrin.h (__v32hi): Define type.
21532 (__v64qi): Likewise.
21533 (_mm512_set1_epi8): Define.
21534 (_mm512_set1_epi16): Define.
21535 (_mm512_set4_epi32): Define.
21536 (_mm512_set4_epi64): Define.
21537 (_mm512_set4_pd): Define.
21538 (_mm512_set4_ps): Define.
21539 (_mm512_setr4_epi64): Define.
21540 (_mm512_setr4_epi32): Define.
21541 (_mm512_setr4_pd): Define.
21542 (_mm512_setr4_ps): Define.
21543 (_mm512_setzero_epi32): Define.
21545 2014-03-31 Martin Jambor <mjambor@suse.cz>
21547 PR middle-end/60647
21548 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21549 callsite_arguments_match_p. Updated all callers. Also check types of
21550 corresponding formal parameters and actual arguments.
21551 (not_all_callers_have_enough_arguments_p) Renamed to
21552 some_callers_have_mismatched_arguments_p.
21554 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21556 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21558 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21561 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21564 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21566 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21567 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21569 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21570 Use FMAMODE_NOVF512 mode iterator.
21571 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21572 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21573 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21574 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21576 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21577 Use VF_128_256 mode iterator.
21578 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21581 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21583 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21584 static chain if needed.
21586 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21589 * lra-constraints.c (index_part_to_reg): New.
21590 (process_address): Use it.
21592 2014-03-27 Jeff Law <law@redhat.com>
21593 Jakub Jelinek <jakub@redhat.com>
21596 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21597 gen_rtx_{PLUS,MULT} to build up the address expression.
21599 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21600 creating non-canonical RTL.
21602 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21605 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21606 functions; reorganize to make cheap checks first.
21607 (inline_small_functions): Do not estimate growth when dumping;
21609 * ipa-inline.h (inline_summary): Add min_size.
21610 (growth_likely_positive): New function.
21611 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21612 (set_cond_stmt_execution_predicate): Cleanup.
21613 (estimate_edge_size_and_time): Compute min_size.
21614 (estimate_calls_size_and_time): Likewise.
21615 (estimate_node_size_and_time): Likewise.
21616 (inline_update_overall_summary): Update min_size.
21617 (do_estimate_edge_time): Likewise.
21618 (do_estimate_edge_size): Update.
21619 (do_estimate_edge_hints): Update.
21620 (growth_likely_positive): New function.
21622 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21625 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21626 also if addr has VOIDmode.
21628 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21630 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21631 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21633 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21634 instructions as well as AdvancedSIMD loads.
21636 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21638 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21639 Use crypto_aese type.
21640 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21641 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21642 crypto_aese, crypto_aesmc. Move to types.md.
21643 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21645 * config/arm/iterators.md (crypto_type): Likewise.
21647 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21649 * cgraph.c: Include expr.h and tree-dfa.h.
21650 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21653 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21656 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21657 regs from checking multi-reg pseudos.
21659 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21661 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21663 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21665 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21666 if it would clobber the stack pointer, even temporarily.
21668 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21670 * mode-switching.c: Make small adjustments to the top comment.
21672 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21674 * config/rs6000/constraints.md (wD constraint): New constraint to
21675 match the constant integer to get the top DImode/DFmode out of a
21676 vector in a VSX register.
21678 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21679 match the constant integer to get the top DImode/DFmode out of a
21680 vector in a VSX register.
21682 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21685 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21688 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21689 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21691 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21692 Optimize vec_extract of 64-bit values, where the value being
21693 extracted is in the top word, where we can use scalar
21694 instructions. Add direct move and store support. Combine the big
21695 endian/little endian vector select load support into a single insn.
21696 (vsx_extract_<mode>_internal1): Likewise.
21697 (vsx_extract_<mode>_internal2): Likewise.
21698 (vsx_extract_<mode>_load): Likewise.
21699 (vsx_extract_<mode>_store): Likewise.
21700 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21701 combined into vsx_extract_<mode>_load.
21702 (vsx_extract_<mode>_one_le): Likewise.
21704 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21705 define the top 64-bit vector element.
21707 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21710 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21711 Document vec_vbpermq builtin.
21714 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21715 enable use of xxsldwi and xxpermdi builtin functions.
21716 (vec_xxpermdi): Likewise.
21718 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21719 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21721 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21723 PR rtl-optimization/60650
21724 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21726 (find_spills_for): New.
21727 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21728 Spill all pseudos on the second iteration.
21730 2014-03-27 Marek Polacek <polacek@redhat.com>
21733 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21736 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21738 * config/s390/s390.c (s390_can_use_return_insn): Check for
21739 call-saved FPRs on 31 bit.
21741 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21743 PR middle-end/60682
21744 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21745 if they need regimplification, just drop them instead of
21746 calling gimple_regimplify_operands on them.
21748 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21751 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21752 (aarch64_frame_pointer_required): Adjust logic.
21753 (aarch64_can_eliminate): Adjust logic.
21754 (aarch64_override_options_after_change): Adjust logic.
21756 2014-03-27 Dehao Chen <dehao@google.com>
21758 * ipa-inline.c (early_inliner): Update node's inline info.
21760 2014-03-26 Dehao Chen <dehao@google.com>
21762 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21763 compiler inserted conditional jumps for NAN float check.
21765 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21767 * ubsan.h (ubsan_create_data): Change second argument's type
21768 to const location_t *.
21769 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21771 (ubsan_create_data): Change second argument to const location_t *PLOC.
21772 Create Loc field whenever PLOC is non-NULL.
21773 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21774 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21778 * real.c (real_to_integer2): Change type of low to UHWI.
21780 2014-03-26 Tobias Burnus <burnus@net-b.de>
21782 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21783 (CILK_SELF_SPECS): New define.
21784 (driver_self_specs): Use it.
21786 2014-03-26 Richard Biener <rguenther@suse.de>
21788 * tree-pretty-print.c (percent_K_format): Implement special
21789 case for LTO and its stripped down BLOCK tree.
21791 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21794 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21796 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21797 one range is range_int_cst_p, but not both, at least optimize
21798 addition/subtraction of 0 and multiplication by 0 or 1.
21799 * gimple-fold.c (gimple_fold_call): Fold
21800 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21801 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21802 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21804 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21806 PR rtl-optimization/60452
21807 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21808 <case REG>: Return 1 for invalid offsets from the frame pointer.
21810 2014-03-26 Marek Polacek <polacek@redhat.com>
21813 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21816 2014-03-26 Marek Polacek <polacek@redhat.com>
21819 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21822 2014-03-26 Marek Polacek <polacek@redhat.com>
21825 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21826 multiplication in unsigned type.
21828 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21830 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21832 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21834 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21836 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21839 * cif-code.def (UNREACHABLE) New code.
21840 * ipa-inline.c (inline_small_functions): Skip edges to
21841 __builtlin_unreachable.
21842 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21843 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21844 predicate to __bulitin_unreachable.
21845 (set_cond_stmt_execution_predicate): Fix issue when
21846 invert_tree_comparison returns ERROR_MARK.
21847 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21848 propagate to inline clones.
21849 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21851 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21852 * cgraphclones.c (cgraph_clone_node): If call destination is already
21853 ureachable, do not redirect it back.
21854 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21857 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21859 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21860 Do not modify inline clones.
21862 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21864 * config/i386/i386.md (general_sext_operand): New mode attr.
21865 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21866 don't generate (sign_extend (const_int)).
21867 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21868 operands[2]. Use We constraint instead of <i> and
21869 <general_sext_operand> predicate instead of <general_operand>.
21870 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21871 * config/i386/constraints.md (We): New constraint.
21872 * config/i386/predicates.md (x86_64_sext_operand,
21873 sext_operand): New predicates.
21875 2014-03-25 Martin Jambor <mjambor@suse.cz>
21878 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21879 inconsistent devirtualizations to __builtin_unreachable.
21881 2014-03-25 Marek Polacek <polacek@redhat.com>
21884 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21886 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21888 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21889 order of elements for big-endian.
21891 2014-03-25 Richard Biener <rguenther@suse.de>
21893 PR middle-end/60635
21894 * gimplify-me.c (gimple_regimplify_operands): Update the
21897 2014-03-25 Martin Jambor <mjambor@suse.cz>
21900 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21901 (lto_output_varpool_node): Likewise.
21902 (input_overwrite_node): Likewise.
21903 (input_varpool_node): Likewise.
21905 2014-03-25 Richard Biener <rguenther@suse.de>
21907 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21908 (run_gcc): Likewise.
21910 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21912 * combine.c (simplify_compare_const): Add MODE argument.
21913 Handle mode_width 0 as very large mode_width.
21914 (try_combine, simplify_comparison): Adjust callers.
21916 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21917 type to avoid signed integer overflow.
21918 * explow.c (plus_constant): Likewise.
21920 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21922 * doc/generic.texi: Correct typos.
21924 2014-03-24 Tobias Burnus <burnus@net-b.de>
21926 * doc/invoke.texi (-flto): Expand section about
21927 using static libraries with LTO.
21929 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21931 PR rtl-optimization/60501
21932 * optabs.def (addptr3_optab): New optab.
21933 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21934 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21935 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21937 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21939 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21941 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21943 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21946 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21947 (_mm256_undefined_ps): Define.
21948 (_mm256_undefined_pd): Define.
21949 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21950 (_mm_undefined_pd): Define.
21951 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21952 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21953 (_mm512_undefined_ps): Define.
21954 (_mm512_undefined_pd): Define.
21955 Use _mm*_undefined_*.
21956 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21958 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21960 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21961 (lshr_simd): DI mode added.
21962 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21963 (aarch64_ushr_simddi): Likewise.
21964 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21965 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21966 (vshrd_n_u64): Likewise.
21968 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21970 * Makefile.in (s-macro_list): Depend on cc1.
21972 2014-03-23 Teresa Johnson <tejohnson@google.com>
21974 * ipa-utils.c (ipa_print_order): Use specified dump file.
21976 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21978 PR rtl-optimization/60601
21979 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21981 * gcc.c (eval_spec_function): Initialize save_growing_value.
21983 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21986 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21987 code == MINUS_EXPR, never swap op0 with op1.
21989 * toplev.c (init_local_tick): Avoid signed integer multiplication
21991 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21992 shift by first operand's bitsize.
21994 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21997 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21998 redefine to 1 or 0.
21999 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22000 TARGET_ISA_64BIT_P(x).
22002 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22004 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22005 pattern for vector nor instead of subtract from splat(-1).
22006 (altivec_expand_vec_perm_const_le): Likewise.
22008 2014-03-21 Richard Henderson <rth@twiddle.net>
22011 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22012 related insns after epilogue_completed.
22014 2014-03-21 Martin Jambor <mjambor@suse.cz>
22017 * cgraph.h (symtab_node): New flag body_removed.
22018 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22019 when removing bodies.
22020 * symtab.c (dump_symtab_base): Dump body_removed flag.
22021 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22022 had their bodies removed.
22024 2014-03-21 Martin Jambor <mjambor@suse.cz>
22027 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22030 2014-03-21 Richard Biener <rguenther@suse.de>
22032 PR tree-optimization/60577
22033 * tree-core.h (struct tree_base): Document nothrow_flag use
22034 in DECL_NONALIASED.
22035 * tree.h (DECL_NONALIASED): New.
22036 (may_be_aliased): Adjust.
22037 * coverage.c (build_var): Set DECL_NONALIASED.
22039 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22041 * expr.c (expand_expr_real_1): Remove outdated comment.
22043 2014-03-20 Jakub Jelinek <jakub@redhat.com>
22045 PR middle-end/60597
22046 * ira.c (adjust_cleared_regs): Call copy_rtx on
22047 *reg_equiv[REGNO (loc)].src_p before passing it to
22048 simplify_replace_fn_rtx.
22051 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
22052 into CONST, put pic register as first operand of PLUS. Use
22053 gen_const_mem for both 32-bit and 64-bit PIC got loads.
22055 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22057 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
22059 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22061 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22062 around for store forwarding issue in the FPU on the UT699.
22063 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22064 loads and operations if -mfix-ut699 is specified.
22065 (divtf3_hq): Tweak attribute.
22066 (sqrttf2_hq): Likewise.
22068 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22070 * calls.c (store_one_arg): Remove incorrect const qualification on the
22071 type of the temporary.
22072 * cfgexpand.c (expand_return): Likewise.
22073 * expr.c (expand_constructor): Likewise.
22074 (expand_expr_real_1): Likewise.
22076 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22078 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
22081 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22084 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
22086 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
22088 * config/arm/aarch-common-protos.h
22089 (alu_cost_table): Fix spelling of "extend".
22090 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
22092 2014-03-19 Richard Biener <rguenther@suse.de>
22094 PR middle-end/60553
22095 * tree-core.h (tree_type_common): Re-order pointer members
22096 to reduce recursion depth during GC walks.
22098 2014-03-19 Marek Polacek <polacek@redhat.com>
22101 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22102 before accessing it.
22104 2014-03-19 Richard Biener <rguenther@suse.de>
22107 * lto-streamer-in.c (input_function): In WPA stage do not drop
22110 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22112 PR tree-optimization/60559
22113 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22114 with build_zero_cst assignment.
22116 2014-03-18 Kai Tietz <ktietz@redhat.com>
22118 PR rtl-optimization/56356
22119 * sdbout.c (sdbout_parms): Verify that parms'
22120 incoming argument is valid.
22121 (sdbout_reg_parms): Likewise.
22123 2014-03-18 Richard Henderson <rth@redhat.com>
22126 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22127 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22128 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22130 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22132 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22133 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22134 Italicize plugin event names in description. Explain that
22135 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22136 Remind that no GCC functions should be called after PLUGIN_FINISH.
22137 Explain what pragmas with expansion are.
22139 2014-03-18 Martin Liska <mliska@suse.cz>
22141 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22142 gimple call statement is update.
22143 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22144 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22146 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22149 * ubsan.c (ubsan_instrument_unreachable): Call
22150 initialize_sanitizer_builtins.
22151 (ubsan_pass): Likewise.
22154 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22155 varpool_finalize_decl instead of rest_of_decl_compilation.
22157 2014-03-18 Richard Biener <rguenther@suse.de>
22159 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22160 by using bitmap_and_compl instead of bitmap_and_compl_into.
22161 (df_rd_transfer_function): Likewise.
22163 2014-03-18 Richard Biener <rguenther@suse.de>
22165 * doc/lto.texi (fresolution): Fix typo.
22167 2014-03-18 Richard Biener <rguenther@suse.de>
22169 * doc/invoke.texi (flto): Update for changes in 4.9.
22171 2014-03-18 Richard Biener <rguenther@suse.de>
22173 * doc/loop.texi: Remove section on the removed lambda framework.
22174 Update loop docs with recent changes in preserving loop structure.
22176 2014-03-18 Richard Biener <rguenther@suse.de>
22178 * doc/lto.texi (-fresolution): Document.
22180 2014-03-18 Richard Biener <rguenther@suse.de>
22182 * doc/contrib.texi: Adjust my name.
22184 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22187 * internal-fn.c: Include diagnostic-core.h.
22188 (expand_BUILTIN_EXPECT): New function.
22189 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22190 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22191 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22192 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22193 IFN_BUILTIN_EXPECT.
22194 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22195 Revert 3 argument __builtin_expect code.
22196 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22197 * gimple-fold.c (gimple_fold_call): Likewise.
22198 * tree.h (fold_builtin_expect): New prototype.
22199 * builtins.c (build_builtin_expect_predicate): Add predictor
22200 argument, if non-NULL, create 3 argument __builtin_expect.
22201 (fold_builtin_expect): No longer static. Add ARG2 argument,
22202 pass it through to build_builtin_expect_predicate.
22203 (fold_builtin_2): Adjust caller.
22204 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22205 * internal-fn.def (BUILTIN_EXPECT): New.
22207 2014-03-18 Tobias Burnus <burnus@net-b.de>
22210 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22211 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22212 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22214 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22217 * predict.c (combine_predictions_for_bb): Fix up formatting.
22218 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22219 fill what it points to if non-NULL.
22220 (tree_predict_by_opcode): Adjust caller, use the predictor.
22221 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22223 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22225 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22226 proper constant for the store mode.
22228 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22230 * symtab.c (change_decl_assembler_name): Fix transparent alias
22231 chain construction.
22233 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22235 * config/aarch64/aarch64.c: Correct the comments about the
22236 aarch64 stack layout.
22238 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22240 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22241 check for GF_OMP_FOR_KIND_FOR.
22243 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22245 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22246 ymm and zmm register names.
22248 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22251 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22252 note creation for the 2010-08-31 changes.
22254 2014-03-17 Marek Polacek <polacek@redhat.com>
22256 PR middle-end/60534
22257 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22258 as -fno-tree-loop-vectorize.
22259 (expand_omp_simd): Likewise.
22261 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22263 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22264 (eligible_for_call_delay): New prototype.
22265 * config/sparc/sparc.c (tls_call_delay): Rename into...
22266 (eligible_for_call_delay): ...this. Return false if the instruction
22267 cannot be put in the delay slot of a branch.
22268 (eligible_for_restore_insn): Simplify.
22269 (eligible_for_return_delay): Return false if the instruction cannot be
22270 put in the delay slot of a branch and simplify.
22271 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22272 put in the delay slot of a branch.
22273 * config/sparc/sparc.md (fix_ut699): New attribute.
22274 (tls_call_delay): Delete.
22275 (in_call_delay): Reimplement.
22276 (eligible_for_sibcall_delay): Rename into...
22277 (in_sibcall_delay): ...this.
22278 (eligible_for_return_delay): Rename into...
22279 (in_return_delay): ...this.
22280 (in_branch_delay): Reimplement.
22281 (in_uncond_branch_delay): Delete.
22282 (in_annul_branch_delay): Delete.
22284 2014-03-14 Richard Henderson <rth@redhat.com>
22287 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22288 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22289 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22290 (floathi splitters): Remove.
22291 (float<SWI48x>xf2): New pattern.
22292 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22293 code that tried to handle DImode for 32-bit, but which was excluded
22294 by the pattern's condition. Drop allocation of stack temporary.
22295 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22296 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22297 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22298 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22299 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22300 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22301 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22302 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22303 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22304 (*float<SWI48x><X87MODEF>2_i387): Remove.
22305 (all float _with_temp splitters): Remove.
22306 (*float<SWI48x><MODEF>2_i387): New pattern.
22307 (*float<SWI48><MODEF>2_sse): New pattern.
22308 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22309 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22311 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22312 Marek Polacek <polacek@redhat.com>
22314 PR middle-end/60484
22315 * common.opt (dump_base_name_prefixed): New Variable.
22316 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22317 if x_dump_base_name_prefixed is already set, set it at the end.
22319 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22321 PR rtl-optimization/60508
22322 * lra-constraints.c (get_reload_reg): Add new parameter
22324 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22325 Pass the new parameter values.
22327 2014-03-14 Richard Biener <rguenther@suse.de>
22329 * common.opt: Revert unintented changes from r205065.
22330 * opts.c: Likewise.
22332 2014-03-14 Richard Biener <rguenther@suse.de>
22334 PR middle-end/60518
22335 * cfghooks.c (split_block): Properly adjust all loops the
22336 block was a latch of.
22338 2014-03-14 Martin Jambor <mjambor@suse.cz>
22341 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22344 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22347 * config/avr/avr.c (avr_set_current_function): Pass function name
22348 through default_strip_name_encoding before sanity checking instead
22349 of skipping the first char of the assembler name.
22351 2014-03-13 Richard Henderson <rth@redhat.com>
22354 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22355 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22356 * config/i386/i386-protos.h: Likewise.
22357 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22358 in the expander instead of a splitter.
22359 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22360 any possibility of requiring a memory.
22361 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22362 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22363 (fp branch splitters): Update for ix86_split_fp_branch.
22364 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22365 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22366 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22367 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22368 (*fop_<MODEF>_3_i387): Likewise.
22369 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22370 (splitters for the fop_* register patterns): Remove.
22371 (fscalexf4_i387): Rename from *fscalexf4_i387.
22372 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22374 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22376 PR tree-optimization/59779
22377 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22378 type for bitsize and maxsize instead of HOST_WIDE_INT.
22380 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22382 PR rtl-optimization/57320
22383 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22384 the CFG after thread_prologue_and_epilogue_insns.
22386 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22388 PR rtl-optimization/57189
22389 * lra-constraints.c (process_alt_operands): Disfavor spilling
22392 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22394 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22396 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22398 PR tree-optimization/59025
22399 PR middle-end/60418
22400 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22401 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22403 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22406 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22407 calls of avr_out_plus_1.
22409 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22411 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22412 BB's single pred and update the father loop's latch info later.
22414 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22416 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22420 (VEC_base): Likewise.
22421 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22422 registers, we need to swap double words in little endian mode.
22424 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22425 to be a container mode for 128-bit integer operations added in ISA
22426 2.07. Unlike TImode and PTImode, the preferred register set is
22427 the Altivec/VMX registers for the 128-bit operations.
22429 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22431 (rs6000_split_128bit_ok_p): Likewise.
22433 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22434 macros for creating ISA 2.07 normal and overloaded builtin
22435 functions with 3 arguments.
22436 (BU_P8V_OVERLOAD_3): Likewise.
22437 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22438 for use as overloaded functions.
22439 (VPERM_1TI_UNS): Likewise.
22440 (VSEL_1TI): Likewise.
22441 (VSEL_1TI_UNS): Likewise.
22442 (ST_INTERNAL_1ti): Likewise.
22443 (LD_INTERNAL_1ti): Likewise.
22444 (XXSEL_1TI): Likewise.
22445 (XXSEL_1TI_UNS): Likewise.
22446 (VPERM_1TI): Likewise.
22447 (VPERM_1TI_UNS): Likewise.
22448 (XXPERMDI_1TI): Likewise.
22449 (SET_1TI): Likewise.
22450 (LXVD2X_V1TI): Likewise.
22451 (STXVD2X_V1TI): Likewise.
22452 (VEC_INIT_V1TI): Likewise.
22453 (VEC_SET_V1TI): Likewise.
22454 (VEC_EXT_V1TI): Likewise.
22455 (EQV_V1TI): Likewise.
22456 (NAND_V1TI): Likewise.
22457 (ORC_V1TI): Likewise.
22458 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22459 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22460 overloaded builtin.
22461 (VADDUQM): Likewise.
22462 (VSUBCUQ): Likewise.
22463 (VADDEUQM): Likewise.
22464 (VADDECUQ): Likewise.
22465 (VSUBEUQM): Likewise.
22466 (VSUBECUQ): Likewise.
22468 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22469 __int128_t and __uint128_t types.
22470 (__uint128_type): Likewise.
22471 (altivec_categorize_keyword): Add support for vector __int128_t,
22472 vector __uint128_t, vector __int128, and vector unsigned __int128
22473 as a container type for TImode operations that need to be done in
22474 VSX/Altivec registers.
22475 (rs6000_macro_to_expand): Likewise.
22476 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22477 to support 128-bit integer instructions vaddcuq, vadduqm,
22478 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22479 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22481 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22482 for V1TImode, and set up preferences to use VSX/Altivec registers.
22483 Setup VSX reload handlers.
22484 (rs6000_debug_reg_global): Likewise.
22485 (rs6000_init_hard_regno_mode_ok): Likewise.
22486 (rs6000_preferred_simd_mode): Likewise.
22487 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22488 (easy_altivec_constant): Likewise.
22489 (output_vec_const_move): Likewise.
22490 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22492 (rs6000_expand_vector_extract): Likewise.
22493 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22495 (rs6000_const_vec): Add support for V1TImode.
22496 (rs6000_emit_le_vsx_load): Swap double words when loading or
22497 storing TImode/V1TImode.
22498 (rs6000_emit_le_vsx_store): Likewise.
22499 (rs6000_emit_le_vsx_move): Likewise.
22500 (rs6000_emit_move): Add support for V1TImode.
22501 (altivec_expand_ld_builtin): Likewise.
22502 (altivec_expand_st_builtin): Likewise.
22503 (altivec_expand_vec_init_builtin): Likewise.
22504 (altivec_expand_builtin): Likewise.
22505 (rs6000_init_builtins): Add support for V1TImode type. Add
22506 support for ISA 2.07 128-bit integer builtins. Define type names
22507 for the VSX/Altivec vector types.
22508 (altivec_init_builtins): Add support for overloaded vector
22509 functions with V1TImode type.
22510 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22511 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22513 (rs6000_split_128bit_ok_p): Likewise.
22514 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22515 __int128_t and vector __uint128_t.
22517 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22518 and mode attributes.
22520 (VSX_M2): Likewise.
22525 (VS_scalar): Likewise.
22526 (VS_double): Likewise.
22527 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22529 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22530 we support the ISA 2.07 128-bit integer arithmetic instructions.
22531 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22532 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22533 and TImode types for use with the builtin functions.
22534 (V1TI_type_node): Likewise.
22535 (unsigned_V1TI_type_node): Likewise.
22536 (intTI_type_internal_node): Likewise.
22537 (uintTI_type_internal_node): Likewise.
22539 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22540 128-bit builtin functions.
22541 (UNSPEC_VADDEUQM): Likewise.
22542 (UNSPEC_VADDECUQ): Likewise.
22543 (UNSPEC_VSUBCUQ): Likewise.
22544 (UNSPEC_VSUBEUQM): Likewise.
22545 (UNSPEC_VSUBECUQ): Likewise.
22546 (VM): Add V1TImode to vector mode iterators.
22548 (VI_unit): Likewise.
22549 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22550 (altivec_vaddcuq): Likewise.
22551 (altivec_vsubuqm): Likewise.
22552 (altivec_vsubcuq): Likewise.
22553 (altivec_vaddeuqm): Likewise.
22554 (altivec_vaddecuq): Likewise.
22555 (altivec_vsubeuqm): Likewise.
22556 (altivec_vsubecuq): Likewise.
22558 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22560 (BOOL_128): Likewise.
22561 (BOOL_REGS_OUTPUT): Likewise.
22562 (BOOL_REGS_OP1): Likewise.
22563 (BOOL_REGS_OP2): Likewise.
22564 (BOOL_REGS_UNARY): Likewise.
22565 (BOOL_REGS_AND_CR0): Likewise.
22567 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22568 128-bit integer builtin support.
22569 (vec_vadduqm): Likewise.
22570 (vec_vaddecuq): Likewise.
22571 (vec_vaddeuqm): Likewise.
22572 (vec_vsubecuq): Likewise.
22573 (vec_vsubeuqm): Likewise.
22574 (vec_vsubcuq): Likewise.
22575 (vec_vsubuqm): Likewise.
22577 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22578 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22579 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22580 128-bit integer add/subtract to ISA 2.07.
22582 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22584 * config/arc/arc.c (arc_predicate_delay_insns):
22585 Fix third argument passed to conditionalize_nonjump.
22587 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22589 * config/aarch64/aarch64-builtins.c
22590 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22591 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22592 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22593 instead of __builtin_lfloor.
22594 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22596 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22598 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22599 (tree_ssa_ifcombine_bb_1): New function.
22600 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22601 is an empty forwarder block to then_bb or vice versa and then_bb
22602 and else_bb are effectively swapped.
22604 2014-03-12 Christian Bruel <christian.bruel@st.com>
22607 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22608 REG_CFA_DEF_CFA note.
22609 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22610 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22612 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22614 PR tree-optimization/60454
22615 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22617 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22619 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22620 Do not define target_cpu_default2 to generic.
22621 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22622 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22623 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22625 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22626 Marc Glisse <marc.glisse@inria.fr>
22628 PR tree-optimization/60502
22629 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22630 instead of build_low_bits_mask.
22632 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22634 PR middle-end/60482
22635 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22636 if there are multiple uses, but op doesn't live on E edge.
22637 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22638 clobber stmts before __builtin_unreachable.
22640 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22642 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22643 hard_frame_pointer_rtx.
22644 * cse.c (cse_insn): Remove volatile check.
22645 * cselib.c (cselib_process_insn): Likewise.
22646 * dse.c (scan_insn): Likewise.
22648 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22650 * config/arc/arc.c (conditionalize_nonjump): New function,
22652 (arc_ifcvt): ... this.
22653 (arc_predicate_delay_insns): Use it.
22655 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22657 * config/arc/predicates.md (extend_operand): During/after reload,
22658 allow const_int_operand.
22659 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22660 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22661 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22663 (umulsi3_highpart_i): Likewise.
22665 2014-03-11 Richard Biener <rguenther@suse.de>
22667 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22668 Add asserts to guard possible wrong-code bugs.
22670 2014-03-11 Richard Biener <rguenther@suse.de>
22672 PR tree-optimization/60429
22673 PR tree-optimization/60485
22674 * tree-ssa-structalias.c (set_union_with_increment): Properly
22675 take into account all fields that overlap the shifted vars.
22676 (do_sd_constraint): Likewise.
22677 (do_ds_constraint): Likewise.
22678 (get_constraint_for_ptr_offset): Likewise.
22680 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22682 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22683 (nios2_compute_frame_layout):
22684 Add calculation of cfun->machine->fp_save_offset.
22685 (nios2_expand_prologue): Correct setting of frame pointer register
22687 (nios2_expand_epilogue): Update recovery of stack pointer from
22688 frame pointer accordingly.
22689 (nios2_initial_elimination_offset): Update calculation of offset
22690 for eliminating to HARD_FRAME_POINTER_REGNUM.
22692 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22695 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22696 cgraph_get_create_node on VAR_DECLs.
22698 2014-03-10 Richard Biener <rguenther@suse.de>
22700 PR middle-end/60474
22701 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22703 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22705 * config/vms/vms.opt (vms_float_format): New variable.
22707 2014-03-08 Tobias Burnus <burnus@net-b.de>
22709 * doc/invoke.texi (-fcilkplus): Update implementation status.
22711 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22712 Richard Biener <rguenther@suse.de>
22714 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22715 consistently accross all TUs.
22716 (run_gcc): Enable -fshort-double automatically at link at link-time
22717 and disallow override.
22719 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22722 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22723 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22724 if they can't be used.
22726 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22728 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22729 for Solaris 11/x86 ld.
22730 * configure: Regenerate.
22732 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22734 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22735 (LIB_TLS_SPEC): Save as ld_tls_libs.
22736 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22737 (HAVE_AS_IX86_TLSLDM): New test.
22738 * configure, config.in: Regenerate.
22739 * config/i386/i386.c (legitimize_tls_address): Fall back to
22740 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22741 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22742 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22743 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22745 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22747 * common.opt (fira-loop-pressure): Mark as optimization.
22749 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22751 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22752 an OpenMP mappable type.
22754 2014-03-06 Matthias Klose <doko@ubuntu.com>
22756 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22757 MULTILIB_OSDIRNAMES is not defined.
22759 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22760 Meador Inge <meadori@codesourcery.com>
22763 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22764 (arm_legitimize_address): Call legitimize_tls_address for any
22765 arm_tls_referenced_p expression, handle constant addend. Call it
22766 before testing for !TARGET_ARM.
22767 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22769 2014-03-06 Richard Biener <rguenther@suse.de>
22771 PR middle-end/60445
22775 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22777 * tree-streamer.c (record_common_node): Assert we don't record
22778 nodes with type double.
22779 (preload_common_node): Skip type double, complex double and double
22780 pointer since it is now frontend dependent due to fshort-double option.
22782 2014-03-06 Richard Biener <rguenther@suse.de>
22784 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22785 or -fno-lto is specified and the linker has full plugin support.
22786 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22787 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22788 * lto-wrapper.c (merge_and_complain): Merge compile-time
22789 optimization levels.
22790 (run_gcc): And pass it through to the link options.
22792 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22796 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22798 * cselib.c (remove_useless_values): Skip to avoid quadratic
22799 behavior if the condition moved from...
22800 (cselib_process_insn): ... here holds.
22802 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22805 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22806 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22809 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22810 (TM_H): Add x86-tune.def.
22812 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22814 * config/aarch64/aarch64.c (generic_tunings):
22815 Use cortexa57_extra_costs.
22817 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22820 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22821 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22822 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22825 2014-03-04 Heiher <r@hev.cc>
22827 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22828 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22830 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22832 * config/i386/predicates.md (const2356_operand): Change to ...
22833 (const2367_operand): ... this.
22834 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22836 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22837 (*avx512pf_scatterpf<mode>sf): Ditto.
22838 (avx512pf_scatterpf<mode>df): Ditto.
22839 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22840 (*avx512pf_scatterpf<mode>df): Ditto.
22841 * config/i386/i386.c (ix86_expand_builtin): Update
22842 incorrect hint operand error message.
22844 2014-03-04 Richard Biener <rguenther@suse.de>
22846 * lto-section-in.c (lto_get_section_data): Fix const cast.
22848 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22850 * tree-streamer.c (record_common_node): Assert we don't record
22851 nodes with type double.
22852 (preload_common_node): Skip type double, complex double and double
22853 pointer since it is now frontend dependent due to fshort-double option.
22855 2014-03-04 Richard Biener <rguenther@suse.de>
22858 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22859 (lto_input_toplevel_asms): Likewise.
22860 * lto-section-in.c (lto_get_section_data): Instead do it here
22863 2014-03-04 Richard Biener <rguenther@suse.de>
22865 PR tree-optimization/60382
22866 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22867 dead PHIs a reduction.
22869 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22871 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22873 (_mm_prefetch): Move out of GCC target("sse") pragma.
22874 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22875 GCC target("prfchw") pragma.
22876 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22878 * config/i386/i386.c (ix86_option_override_internal): Enable
22879 -mprfchw with -mprefetchwt1.
22881 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22883 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22886 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22888 * opts.h (CL_PCH_IGNORE): Define.
22889 * targhooks.c (option_affects_pch_p):
22890 Return false for options that have CL_PCH_IGNORE set.
22891 * opt-functions.awk: Process PchIgnore.
22892 * doc/options.texi: Document PchIgnore.
22894 * config/arc/arc.opt (misize): Add PchIgnore property.
22896 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22898 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22899 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22900 constraint on constants to permit them being loaded into
22901 GENERAL_REGS or BASE_REGS.
22903 2014-03-03 Nick Clifton <nickc@redhat.com>
22905 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22906 anti-cacnonical alternatives.
22907 (negandhi3_real): New pattern.
22908 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22910 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22912 * config/avr/avr-mcus.def: Remove atxmega16x1.
22913 * config/avr/avr-tables.opt: Regenerate.
22914 * config/avr/t-multilib: Regenerate.
22915 * doc/avr-mmcu.texi: Regenerate.
22917 2014-03-03 Tobias Grosser <tobias@grosser.es>
22918 Mircea Namolaru <mircea.namolaru@inria.fr>
22920 PR tree-optimization/58028
22921 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22924 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22926 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22927 not handled by recognizers.
22929 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22931 PR middle-end/60175
22932 * function.c (expand_function_end): Don't emit
22933 clobber_return_register sequence if clobber_after is a BARRIER.
22934 * cfgexpand.c (construct_exit_block): Append instructions before
22935 return_label to prev_bb.
22937 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22939 * config/rs6000/constraints.md: Document reserved use of "wc".
22941 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22944 * ipa.c (function_and_variable_visibility): When dissolving comdat
22945 group, also set all symbols to local.
22947 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22952 2013-12-14 Jan Hubicka <jh@suse.cz>
22953 PR middle-end/58477
22954 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22956 2014-03-02 Jon Beniston <jon@beniston.com>
22962 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22963 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22964 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22965 (simple_return, *simple_return): New patterns
22966 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22967 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22969 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22971 * dwarf2out.c (gen_subprogram_die): Tidy.
22973 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22976 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22977 (*mov_t_msb_neg_negc): ... this new insn.
22979 2014-02-28 Jason Merrill <jason@redhat.com>
22982 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22985 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22988 * dwarf2out.c (decltype_auto_die): New static.
22989 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22990 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22991 (is_cxx_auto): Likewise.
22993 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22995 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22996 we are not using general regs only.
22998 2014-02-28 Richard Biener <rguenther@suse.de>
23001 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23002 previous fix and only allow to remove trivial pre-headers
23003 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23004 (remove_forwarder_block): Properly update the latch of a loop.
23006 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23009 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23010 (cselib_preserved_hash_table): New.
23011 (preserve_constants_and_equivs): Move preserved vals to it.
23012 (cselib_find_slot): Look it up first.
23013 (cselib_init): Initialize it.
23014 (cselib_finish): Release it.
23015 (dump_cselib_table): Dump it.
23017 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23020 * cselib.c (remove_useless_values): Skip to avoid quadratic
23021 behavior if the condition moved from...
23022 (cselib_process_insn): ... here holds.
23024 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23027 * var-tracking.c (vt_initialize): Apply the same condition to
23028 preserve the CFA base value.
23030 2014-02-28 Joey Ye <joey.ye@arm.com>
23033 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23034 if reload in progress or completed.
23036 2014-02-28 Tobias Burnus <burnus@net-b.de>
23038 PR middle-end/60147
23039 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23042 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
23044 * doc/tm.texi.in (Condition Code Status): Update documention for
23045 relative locations of cc0-setter and cc0-user.
23047 2014-02-27 Jeff Law <law@redhat.com>
23049 PR rtl-optimization/52714
23050 * combine.c (try_combine): When splitting an unrecognized PARALLEL
23051 into two independent simple sets, if I3 is a jump, ensure the
23052 pattern we place into I3 is a (set (pc) ...).
23054 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
23055 Jeff Law <law@redhat.com>
23057 PR rtl-optimization/49847
23058 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
23059 are in different blocks.
23060 * doc/tm.texi (Condition Code Status): Update documention for
23061 relative locations of cc0-setter and cc0-user.
23063 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23066 * lra.c (lra_emit_add): Check SUBREG too.
23068 2014-02-27 Andreas Schwab <schwab@suse.de>
23070 * config/m68k/m68k.c (m68k_option_override): Disable
23071 -flive-range-shrinkage for classic m68k.
23072 (m68k_override_options_after_change): Likewise.
23074 2014-02-27 Marek Polacek <polacek@redhat.com>
23076 PR middle-end/59223
23077 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
23078 -Wmaybe-uninitialized.
23080 2014-02-27 Alan Modra <amodra@gmail.com>
23083 * reload1.c (emit_input_reload_insns): When reload_override_in,
23084 set old to rl->in_reg when rl->in_reg is a subreg.
23086 2014-02-26 Richard Biener <rguenther@suse.de>
23089 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
23091 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23093 * common/config/i386/predicates.md (const1256_operand): Remove.
23094 (const2356_operand): New.
23095 (const_1_to_2_operand): Remove.
23096 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23097 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23098 (*avx512pf_gatherpf<mode>sf): Ditto.
23099 (avx512pf_gatherpf<mode>df): Ditto.
23100 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23101 (*avx512pf_gatherpf<mode>df): Ditto.
23102 (avx512pf_scatterpf<mode>sf): Ditto.
23103 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23104 (*avx512pf_scatterpf<mode>sf): Ditto.
23105 (avx512pf_scatterpf<mode>df): Ditto.
23106 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23107 (*avx512pf_scatterpf<mode>df): Ditto.
23108 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23110 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23112 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23113 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23114 (_mm512_mask_testn_epi64_mask): Move to ...
23115 * config/i386/avx512cdintrin.h: Here.
23116 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23117 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23118 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23119 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23120 TARGET_AVX512F from TARGET_AVX512CD.
23122 2014-02-26 Richard Biener <rguenther@suse.de>
23125 * ipa.c (walk_polymorphic_call_targets): Properly guard
23126 call to inline_update_overall_summary.
23128 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23131 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23132 and latches only if requested. Fix latch if it is removed.
23133 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23134 LOOPS_HAVE_PREHEADERS.
23136 2014-02-25 Andrew Pinski <apinski@cavium.com>
23138 * builtins.c (expand_builtin_thread_pointer): Create a new target
23139 when the target is NULL.
23141 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23143 PR rtl-optimization/60317
23144 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23145 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23146 * lra-assigns.c: Include params.h.
23147 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23148 other reload pseudos considerations.
23150 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23152 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23153 to use canonical form for nor<mode>3.
23155 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23158 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23161 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23163 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23164 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23165 (ix86_handle_option): Handle OPT_mprefetchwt1.
23166 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23167 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23169 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23170 OPTION_MASK_ISA_PREFETCHWT1.
23171 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23172 (PTA_PREFETCHWT1): New.
23173 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23174 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23175 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23176 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23177 (*prefetch_avx512pf_<mode>_: Change into ...
23178 (*prefetch_prefetchwt1_<mode>: This.
23179 * config/i386/i386.opt (mprefetchwt1): New.
23180 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23181 (_mm_prefetch): Handle intent to write.
23182 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23184 2014-02-25 Richard Biener <rguenther@suse.de>
23186 PR middle-end/60291
23187 * emit-rtl.c (mem_attrs_htab): Remove.
23188 (mem_attrs_htab_hash): Likewise.
23189 (mem_attrs_htab_eq): Likewise.
23190 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23191 (init_emit_once): Do not allocate mem_attrs_htab.
23193 2014-02-25 Richard Biener <rguenther@suse.de>
23196 * lto-opts.c (lto_write_options): Output non-explicit conservative
23197 -fwrapv, -fno-trapv and -fno-strict-overflow.
23198 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23199 (run_gcc): And pass them through.
23201 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23203 * sel-sched.c (calculate_new_fences): New parameter ptime.
23204 Calculate it as a maximum over all fence cycles.
23205 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23206 Print the final schedule timing when sched_verbose.
23208 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23210 PR rtl-optimization/60292
23211 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23212 bit fot the fence instruction.
23214 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23216 * calls.h: Fix typo in comment.
23218 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23220 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23221 adjusting offsetable addresses.
23223 2014-02-24 Guozhi Wei <carrot@google.com>
23225 * sparseset.h (sparseset_pop): Fix the wrong index.
23227 2014-02-24 Walter Lee <walt@tilera.com>
23229 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23230 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23232 * common/config/tilegx/tilegx-common.c
23233 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23234 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23235 (LINK_SPEC): Ditto.
23236 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23237 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23238 (tilegx_gimplify_va_arg_expr): Handle big endian.
23239 (tilegx_expand_unaligned_load): Ditto.
23240 (tilegx_expand_unaligned_store): Ditto.
23241 (TARGET_RETURN_IN_MSB): New.
23242 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23243 (TARGET_ENDIAN_DEFAULT): New.
23244 (TARGET_BIG_ENDIAN): Handle big endian.
23245 (BYTES_BIG_ENDIAN): Ditto.
23246 (WORDS_BIG_ENDIAN): Ditto.
23247 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23248 (ENDIAN_SPEC): New.
23249 (EXTRA_SPECS): New.
23250 * config/tilegx/tilegx.md (extv): Handle big endian.
23252 (insn_st<n>): Ditto.
23253 (insn_st<n>_add<bitsuffix>): Ditto.
23254 (insn_stnt<n>): Ditto.
23255 (insn_stnt<n>_add<bitsuffix>):Ditto.
23256 (vec_interleave_highv8qi): Handle big endian.
23257 (vec_interleave_highv8qi_be): New.
23258 (vec_interleave_highv8qi_le): New.
23259 (insn_v1int_h): Handle big endian.
23260 (vec_interleave_lowv8qi): Handle big endian.
23261 (vec_interleave_lowv8qi_be): New.
23262 (vec_interleave_lowv8qi_le): New.
23263 (insn_v1int_l): Handle big endian.
23264 (vec_interleave_highv4hi): Handle big endian.
23265 (vec_interleave_highv4hi_be): New.
23266 (vec_interleave_highv4hi_le): New.
23267 (insn_v2int_h): Handle big endian.
23268 (vec_interleave_lowv4hi): Handle big endian.
23269 (vec_interleave_lowv4hi_be): New.
23270 (vec_interleave_lowv4hi_le): New.
23271 (insn_v2int_l): Handle big endian.
23272 (vec_interleave_highv2si): Handle big endian.
23273 (vec_interleave_highv2si_be): New.
23274 (vec_interleave_highv2si_le): New.
23275 (insn_v4int_h): Handle big endian.
23276 (vec_interleave_lowv2si): Handle big endian.
23277 (vec_interleave_lowv2si_be): New.
23278 (vec_interleave_lowv2si_le): New.
23279 (insn_v4int_l): Handle big endian.
23280 * config/tilegx/tilegx.opt (mbig-endian): New option.
23281 (mlittle-endian): New option.
23282 * doc/install.texi: Document tilegxbe-linux.
23283 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23285 2014-02-24 Martin Jambor <mjambor@suse.cz>
23288 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23289 there are no parameter descriptors.
23291 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23293 PR rtl-optimization/60268
23294 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23295 initialization to ...
23296 (sched_rgn_init): ... here.
23297 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23299 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23301 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23304 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23306 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23309 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23311 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23312 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23314 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23316 * config/microblaze/predicates.md: Add cmp_op predicate.
23317 * config/microblaze/microblaze.md: Add branch_compare instruction
23318 which uses cmp_op predicate and emits cmp insn before branch.
23319 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23320 to microblaze_expand_conditional_branch and consolidate logic.
23321 (microblaze_expand_conditional_branch): emit branch_compare
23322 insn instead of handling cmp op separate from branch insn.
23324 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23326 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23329 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23331 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23332 define_insn with define_expand and new define_insn
23333 *altivec_lve<VI_char>x_internal.
23334 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23335 and new define_insn *altivec_stve<VI_char>x_internal.
23336 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23338 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23340 (altivec_expand_stvex_be): New function.
23342 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23344 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23345 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23346 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23347 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23349 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23352 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23353 instead of emit_move_insn.
23355 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23357 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23358 vspltw with vsldoi.
23359 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23360 gen_altivec_vsumsws.
23362 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23364 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23365 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23366 (altivec_lvxl_<mode>): New define_expand incorporating
23367 -maltivec=be semantics where needed.
23368 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23369 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23370 semantics where needed.
23371 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23372 (altivec_stvx_<mode>): New define_expand incorporating
23373 -maltivec=be semantics where needed.
23374 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23375 VM2 iterator instead of V4SI.
23376 (altivec_stvxl_<mode>): New define_expand incorporating
23377 -maltivec=be semantics where needed.
23378 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23379 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23380 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23381 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23382 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23383 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23384 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23385 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23386 ALTIVEC_BUILTIN_STVXL.
23387 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23388 (altivec_expand_stvx_be): Likewise.
23389 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23390 (altivec_expand_lvx_be): Likewise.
23391 (altivec_expand_stvx_be): Likewise.
23392 (altivec_expand_builtin): Add cases for
23393 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23394 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23395 (altivec_init_builtins): Add definitions for
23396 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23397 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23399 2014-02-21 Catherine Moore <clm@codesourcery.com>
23401 * doc/invoke.texi (mvirt, mno-virt): Document.
23402 * config/mips/mips.opt (mvirt): New option.
23403 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23405 2014-02-21 Richard Biener <rguenther@suse.de>
23407 PR tree-optimization/60276
23408 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23409 (STMT_VINFO_MIN_NEG_DIST): New macro.
23410 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23411 STMT_VINFO_MIN_NEG_DIST.
23412 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23413 made for negative dependence distances still hold.
23415 2014-02-21 Richard Biener <rguenther@suse.de>
23417 PR middle-end/60291
23418 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23419 DECL_INITIAL for globals not in the current function context.
23421 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23423 PR tree-optimization/56490
23424 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23425 * tree-ssa-uninit.c: Include params.h.
23426 (compute_control_dep_chain): Add num_calls argument, return false
23427 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23428 num_calls to recursive call.
23429 (find_predicates): Change dep_chain into normal array,
23430 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23431 variable and adjust compute_control_dep_chain caller.
23432 (find_def_preds): Likewise.
23434 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23436 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23437 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23439 2014-02-21 Nick Clifton <nickc@redhat.com>
23441 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23442 (pushhi1): Likewise.
23443 (popqi1): Add mode to pre_dec.
23444 (pophi1): Likewise.
23446 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23448 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23449 mode for mask of V8SFmode permutation.
23451 2014-02-20 Richard Henderson <rth@redhat.com>
23454 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23455 a new pseudo for OLDVAL.
23457 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23460 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23461 gen_reg_rtx if d->testing_p.
23462 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23463 if d->testing_p and we will certainly return true.
23464 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23467 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23469 * emit-rtl.c (gen_reg_rtx): Assert that
23470 crtl->emit.regno_pointer_align_length is non-zero.
23472 2014-02-20 Richard Henderson <rth@redhat.com>
23475 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23476 on failure the store back into EXPECT.
23478 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23479 Sandra Loosemore <sandra@codesourcery.com>
23481 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23482 * config/nios2/nios2.c (nios2_function_profiler): Add
23483 -fPIC (flag_pic == 2) support.
23484 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23485 (nios2_large_offset_p): New function.
23486 (nios2_unspec_reloc_p): Move up position, update to use
23487 nios2_large_offset_p.
23488 (nios2_unspec_address): Remove function.
23489 (nios2_unspec_offset): New function.
23490 (nios2_large_got_address): New function.
23491 (nios2_got_address): Add large offset support.
23492 (nios2_legitimize_tls_address): Update usage of removed and new
23494 (nios2_symbol_binds_local_p): New function.
23495 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23496 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23497 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23498 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23499 processing for (const (unspec ...)).
23500 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23502 2014-02-20 Richard Biener <rguenther@suse.de>
23504 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23505 doing the substitution.
23506 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23508 2014-02-20 Martin Jambor <mjambor@suse.cz>
23511 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23512 info when checking whether lattices are bottom.
23514 2014-02-20 Richard Biener <rguenther@suse.de>
23516 PR middle-end/60221
23517 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23520 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23523 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23524 parameter specifying the scaling.
23525 (inline_call): Update.
23526 (want_inline_recursively): Guard division by zero.
23527 (recursive_inlining): Update.
23528 * ipa-inline.h (clone_inlined_nodes): Update.
23530 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23533 * config/i386/i386.c (classify_argument): Pass structures of size
23534 64 bytes or less in register.
23536 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23537 Kirill Yukhin <kirill.yukhin@intel.com>
23539 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23540 (_mm_rcp28_round_ss): Ditto.
23541 (_mm_rsqrt28_round_sd): Ditto.
23542 (_mm_rsqrt28_round_ss): Ditto.
23543 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23544 (_mm_rcp14_round_ss): Ditto.
23545 (_mm_rsqrt14_round_sd): Ditto.
23546 (_mm_rsqrt14_round_ss): Ditto.
23547 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23548 the first input operand, get rid of match_dup.
23549 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23551 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23553 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23554 operand as the first input operand, set type attribute.
23555 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23556 Set type attribute.
23557 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23558 operand as the first input operand, set type attribute.
23560 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23562 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23565 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23568 * config/i386/i386.c (construct_container): Remove TFmode check
23569 for X86_64_INTEGER_CLASS.
23571 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23574 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23575 only when -Wpsabi is enabled.
23577 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23580 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23581 passing arrays in registers are the same as for structs, so remove the
23582 special case for them.
23584 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23586 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23587 destination type, extract only the valid bits if the source type is not
23588 integral and has a different mode.
23590 2014-02-19 Richard Biener <rguenther@suse.de>
23593 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23596 2014-02-19 Richard Biener <rguenther@suse.de>
23599 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23600 (ipa_modify_call_arguments): Emit an argument load explicitely and
23601 preserve virtual SSA form there and for the replacement call.
23602 Do not update SSA form nor free dominance info.
23604 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23606 * ipa.c (function_and_variable_visibility): Also clear WEAK
23607 flag when disolving COMDAT_GROUP.
23609 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23611 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23612 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23613 not devirtualizing.
23614 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23615 do more sanity checks.
23616 (detect_type_change): Return true when giving up early.
23617 (compute_complex_assign_jump_func): Fix type parameter of
23618 ipa_set_ancestor_jf.
23619 (compute_complex_ancestor_jump_func): Likewise.
23620 (update_jump_functions_after_inlining): Fix updating of
23622 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23624 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23626 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23627 inline clones when edge disappears.
23629 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23632 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23633 Split 64-bit moves into 2 patterns. Do not allow the use of
23634 direct move for TDmode in little endian, since the decimal value
23635 has little endian bytes within a word, but the 64-bit pieces are
23636 ordered in a big endian fashion, and normal subreg's of TDmode are
23638 (mov<mode>_64bit_dm): Likewise.
23639 (movtd_64bit_nodm): Likewise.
23641 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23643 PR tree-optimization/60174
23644 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23645 statement of an SSA_NAME that occurs in an abnormal PHI node.
23647 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23650 * final.c (SEEN_BB): Remove.
23651 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23652 (final_scan_insn): Don't force_source_line on second
23653 NOTE_INSN_BASIC_BLOCK.
23655 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23658 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23659 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23660 (type_natural_mode): Warn ABI change when %zmm register is not
23661 available for AVX512F vector value passing.
23663 2014-02-18 Kai Tietz <ktietz@redhat.com>
23666 * config/i386/i386.c (ix86_expand_prologue): Use value in
23667 rax register as displacement when restoring %r10 or %rax.
23668 Fix wrong offset when restoring both registers.
23670 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23672 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23673 assertion with conditional return.
23675 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23676 Uros Bizjak <ubizjak@gmail.com>
23679 * config/i386/driver-i386.c (host_detect_local_cpu): If
23680 YMM state is not saved by the OS, also clear has_f16c. Move
23681 CPUID 0x80000001 handling before YMM state saving checking.
23683 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23685 PR rtl-optimization/58960
23686 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23687 factored out from ...
23688 (sched_init): ... here.
23689 (free_global_sched_pressure_data): New, factored out from ...
23690 (sched_finish): ... here.
23691 * sched-int.h (free_global_sched_pressure_data): Declare.
23692 * sched-rgn.c (nr_regions_initial): New static global.
23693 (haifa_find_rgns): Initialize it.
23694 (schedule_region): Disable sched-pressure for the newly
23697 2014-02-17 Richard Biener <rguenther@suse.de>
23699 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23700 release SSA defs of pattern stmts.
23702 2014-02-17 Richard Biener <rguenther@suse.de>
23704 * tree-inline.c (expand_call_inline): Release the virtual
23705 operand defined by the call we are about to inline.
23707 2014-02-17 Richard Biener <rguenther@suse.de>
23709 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23711 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23712 Ilya Tocar <ilya.tocar@intel.com>
23714 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23715 arguments order in builtin.
23716 (_mm512_permutexvar_epi64): Ditto.
23717 (_mm512_mask_permutexvar_epi64): Ditto
23718 (_mm512_maskz_permutexvar_epi32): Ditto
23719 (_mm512_permutexvar_epi32): Ditto
23720 (_mm512_mask_permutexvar_epi32): Ditto
23722 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23724 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23725 (p8_vmrgow): Likewise.
23727 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23729 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23732 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23735 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23736 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23737 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23738 using direct move instructions on ISA 2.07. Also adjust
23739 instruction length for 64-bit.
23740 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23741 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23743 2014-02-15 Alan Modra <amodra@gmail.com>
23747 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23748 find_replacement on parts of insn rtl that might be reloaded.
23750 2014-02-15 Richard Biener <rguenther@suse.de>
23752 PR tree-optimization/60183
23753 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23754 (tree_ssa_phiprop): Calculate and free post-dominators.
23756 2014-02-14 Jeff Law <law@redhat.com>
23758 PR rtl-optimization/60131
23759 * ree.c (get_extended_src_reg): New function.
23760 (combine_reaching_defs): Use it rather than assuming location of REG.
23761 (find_and_remove_re): Verify first operand of extension is
23762 a REG before adding the insns to the copy list.
23764 2014-02-14 Roland McGrath <mcgrathr@google.com>
23766 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23767 * configure: Regenerated.
23768 * config.in: Regenerated.
23769 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23770 instead of ASM_SHORT.
23772 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23773 Richard Earnshaw <rearnsha@arm.com>
23775 PR rtl-optimization/59535
23776 * lra-constraints.c (process_alt_operands): Encourage alternative
23777 when unassigned pseudo class is superset of the alternative class.
23778 (inherit_reload_reg): Don't inherit when optimizing for code size.
23779 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23780 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23781 modes not less than 4 for Thumb1.
23783 2014-02-14 Kyle McMartin <kyle@redhat.com>
23786 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23788 2014-02-14 Richard Biener <rguenther@suse.de>
23790 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23791 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23792 Do not strip INDIRECT_REFs.
23794 2014-02-14 Richard Biener <rguenther@suse.de>
23797 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23798 DECL_FUNCTION_SPECIFIC_TARGET.
23799 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23800 * tree-streamer-out.c (pack_ts_target_option): Remove.
23801 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23802 (write_ts_function_decl_tree_pointers): Do not stream
23803 DECL_FUNCTION_SPECIFIC_TARGET.
23804 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23805 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23806 (lto_input_ts_function_decl_tree_pointers): Do not stream
23807 DECL_FUNCTION_SPECIFIC_TARGET.
23809 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23811 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23812 (get_initial_def_for_induction, vectorizable_induction): Ignore
23813 debug stmts when looking for exit_phi.
23814 (vectorizable_live_operation): Fix up condition.
23816 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23818 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23819 nreverse() because it changes the content of original tree list.
23821 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23823 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23824 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23826 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23828 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23829 GNU coding standards.
23831 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23834 * dwarf2out.c (gen_subprogram_die): Don't call
23835 add_calling_convention_attribute if subr_die is old_die.
23837 2014-02-13 Sharad Singhai <singhai@google.com>
23839 * doc/optinfo.texi: Fix order of nodes.
23841 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23843 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23844 operands[2], not operands[3].
23846 2014-02-13 Richard Biener <rguenther@suse.de>
23849 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23850 mention the possibility of an in-tree build.
23851 (CLooG): Update recommended version to 0.18.1, mention the
23852 possibility of an in-tree build and clarify that the ISL
23853 bundled with CLooG does not work.
23855 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23858 * expr.c (compress_float_constant): If x is a hard register,
23859 extend into a pseudo and then move to x.
23861 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23863 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23864 caused by bad second argument to warning_at() with -mhotpatch and
23865 nested functions (e.g. with gfortran).
23867 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23869 * opts.c (option_name): Remove "enabled by default" rider.
23871 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23873 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23875 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23876 Uros Bizjak <ubizjak@gmail.com>
23879 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23880 * configure: Regenerated.
23882 2014-02-12 Richard Biener <rguenther@suse.de>
23884 * vec.c (vec_prefix::calculate_allocation): Move as
23885 inline variant to vec.h.
23886 (vec_prefix::calculate_allocation_1): New out-of-line version.
23887 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23888 (vec_prefix::m_has_auto_buf): Rename to ...
23889 (vec_prefix::m_using_auto_storage): ... this.
23890 (vec_prefix::calculate_allocation): Inline the easy cases
23891 and dispatch to calculate_allocation_1 which doesn't need the
23893 (va_heap::reserve): Use gcc_checking_assert.
23894 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23895 m_using_auto_storage.
23896 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23898 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23899 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23900 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23902 2014-02-12 Richard Biener <rguenther@suse.de>
23904 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23905 when we found a dependence.
23907 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23909 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23911 (maybe_fold_stmt): ... into this new function.
23912 * omp-low.c (lower_omp): Update comment.
23914 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23917 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23920 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23922 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23923 identifiers in comments.
23924 (cortexa53_extra_costs): Likewise.
23925 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23926 (cortexa7_extra_costs): Likewise.
23927 (cortexa12_extra_costs): Likewise.
23928 (cortexa15_extra_costs): Likewise.
23929 (v7m_extra_costs): Likewise.
23931 2014-02-12 Richard Biener <rguenther@suse.de>
23933 PR middle-end/60092
23934 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23935 of posix_memalign being successful.
23936 (lower_stmt): Restrict lowering of posix_memalign to when
23937 -ftree-bit-ccp is enabled.
23939 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23941 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23943 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23945 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23947 PR rtl-optimization/60116
23948 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23949 other_insn once the combination has been validated.
23951 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23954 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23956 * ipa-devirt.c: Include demangle.h
23957 (odr_violation_reported): New static variable.
23958 (add_type_duplicate): Update odr_violations.
23959 (maybe_record_node): Add completep parameter; update it.
23960 (record_target_from_binfo): Add COMPLETEP parameter;
23961 update it as needed.
23962 (possible_polymorphic_call_targets_1): Likewise.
23963 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23964 rename FINAL to COMPLETE.
23965 (record_targets_from_bases): Sanity check we found the binfo;
23966 fix COMPLETEP updating.
23967 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23968 parameter, fix computing of COMPLETEP.
23969 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23970 at LTO time do demangling.
23971 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23972 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23974 (gimple_get_virt_method_for_binfo): Likewise.
23975 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23976 gimple_get_virt_method_for_vtable): Update prototypes.
23978 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23981 * genautomata.c (add_presence_absence): Fix typo with
23982 {final_}presence_list.
23984 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23987 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23988 for VSX/Altivec vectors that land in GPR registers.
23990 2014-02-11 Richard Henderson <rth@redhat.com>
23991 Jakub Jelinek <jakub@redhat.com>
23994 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23995 around drhs if type conversion to lacc->type is not useless.
23997 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23999 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24001 (cortex-a57.cortex-a53): Likewise.
24002 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24004 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24006 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24009 2014-02-11 Renlin Li <Renlin.Li@arm.com>
24011 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24012 add_options_for_arm_vfp3.
24014 2014-02-11 Jeff Law <law@redhat.com>
24016 PR middle-end/54041
24017 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24018 object with an undesirable mode.
24020 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24023 * config/i386/sol2-9.h: New file.
24024 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24025 *-*-solaris2.9*): Use it.
24027 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24029 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24030 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24032 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24034 * config/microblaze/microblaze.c: Extend mcpu version format
24036 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
24038 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24040 2014-02-10 Richard Henderson <rth@redhat.com>
24043 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24044 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
24045 ms-abi vs -mno-accumulate-outgoing-args.
24046 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
24047 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
24050 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
24052 PR middle-end/60080
24053 * cfgexpand.c (expand_asm_operands): Attach source location to
24054 ASM_INPUT rtx objects.
24055 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
24057 2014-02-10 Nick Clifton <nickc@redhat.com>
24059 * config/mn10300/mn10300.c (popcount): New function.
24060 (mn10300_expand_prologue): Include saved registers in stack usage
24063 2014-02-10 Jeff Law <law@redhat.com>
24065 PR middle-end/52306
24066 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24067 when changing the SET_DEST of a prior insn to avoid an input reload.
24069 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24071 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24072 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24073 -mcall-openbsd, or -mcall-linux.
24074 (CC1_ENDIAN_BIG_SPEC): Remove.
24075 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24076 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24077 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
24078 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
24079 and %cc1_endian_default.
24080 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24082 2014-02-10 Richard Biener <rguenther@suse.de>
24084 PR tree-optimization/60115
24085 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
24086 MEM_REF handling. Properly verify that the accesses are not
24087 out of the objects bound.
24089 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24091 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
24094 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
24096 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
24097 proper constants and fix formatting.
24098 (possible_polymorphic_call_targets): Fix formatting.
24100 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24101 Ilya Tocar <ilya.tocar@intel.com>
24103 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24104 (_mm512_loadu_epi32): Renamed into...
24105 (_mm512_loadu_si512): This.
24106 (_mm512_storeu_epi32): Renamed into...
24107 (_mm512_storeu_si512): This.
24108 (_mm512_maskz_ceil_ps): Removed.
24109 (_mm512_maskz_ceil_pd): Ditto.
24110 (_mm512_maskz_floor_ps): Ditto.
24111 (_mm512_maskz_floor_pd): Ditto.
24112 (_mm512_floor_round_ps): Ditto.
24113 (_mm512_floor_round_pd): Ditto.
24114 (_mm512_ceil_round_ps): Ditto.
24115 (_mm512_ceil_round_pd): Ditto.
24116 (_mm512_mask_floor_round_ps): Ditto.
24117 (_mm512_mask_floor_round_pd): Ditto.
24118 (_mm512_mask_ceil_round_ps): Ditto.
24119 (_mm512_mask_ceil_round_pd): Ditto.
24120 (_mm512_maskz_floor_round_ps): Ditto.
24121 (_mm512_maskz_floor_round_pd): Ditto.
24122 (_mm512_maskz_ceil_round_ps): Ditto.
24123 (_mm512_maskz_ceil_round_pd): Ditto.
24124 (_mm512_expand_pd): Ditto.
24125 (_mm512_expand_ps): Ditto.
24126 * config/i386/i386.c (ix86_builtins): Remove
24127 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24128 (bdesc_args): Ditto.
24129 * config/i386/predicates.md (const1256_operand): New.
24130 (const_1_to_2_operand): Ditto.
24131 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24132 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24133 (*avx512pf_gatherpf<mode>sf): Ditto.
24134 (avx512pf_gatherpf<mode>df): Ditto.
24135 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24136 (*avx512pf_gatherpf<mode>df): Ditto.
24137 (avx512pf_scatterpf<mode>sf): Ditto.
24138 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24139 (*avx512pf_scatterpf<mode>sf): Ditto.
24140 (avx512pf_scatterpf<mode>df): Ditto.
24141 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24142 (*avx512pf_scatterpf<mode>df): Ditto.
24143 (avx512f_expand<mode>): Removed.
24144 (<shift_insn><mode>3<mask_name>): Change predicate type.
24146 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24148 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24149 not at the end of datarefs vector use ordered_remove to avoid
24150 reordering datarefs vector.
24153 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24154 mark local addressable non-static vars as GOVD_PRIVATE
24155 instead of GOVD_LOCAL.
24156 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24157 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24160 PR middle-end/60092
24161 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24162 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24163 assume_aligned or alloc_align attributes.
24164 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24165 arguments. Handle also assume_aligned and alloc_align attributes.
24166 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24167 calls to functions with assume_aligned or alloc_align attributes.
24168 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24170 2014-02-08 Terry Guo <terry.guo@arm.com>
24172 * doc/invoke.texi: Document ARM -march=armv7e-m.
24174 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24176 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24177 flag on __cilkrts_rethrow builtin.
24180 * ipa-cp.c (determine_versionability): Fail at -O0
24181 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24182 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24185 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24188 * tree-inline.c (copy_forbidden): Fail for
24189 __attribute__((optimize (0))) functions.
24191 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24193 * varpool.c: Include pointer-set.h.
24194 (varpool_remove_unreferenced_decls): Variables in other partitions
24195 will not be output; be however careful to not lose information
24196 about partitioning.
24198 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24200 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24201 lookup in the vtable constructor.
24203 2014-02-07 Jeff Law <law@redhat.com>
24206 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24207 define_insn_and_split.
24209 * ipa-inline.c (inline_small_functions): Fix typos.
24211 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24213 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24214 (s390_can_use_return_insn): Declare.
24215 * config/s390/s390.h (EPILOGUE_USES): Define.
24216 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24218 (s390_chunkify_start): Handle return JUMP_LABELs.
24219 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24220 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24221 (s390_can_use_return_insn): New functions.
24222 (s390_fix_long_loop_prediction): Handle conditional returns.
24223 (TARGET_SET_UP_BY_PROLOGUE): Define.
24224 * config/s390/s390.md (ANY_RETURN): New code iterator.
24225 (*creturn, *csimple_return, return, simple_return): New patterns.
24227 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24229 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24230 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24231 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24232 REG_CFA_RESTORE list when deciding not to restore a register.
24234 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24236 * config/s390/s390.c: Include tree-pass.h and context.h.
24237 (s390_early_mach): New function, split out from...
24238 (s390_emit_prologue): ...here.
24239 (pass_data_s390_early_mach): New pass structure.
24240 (pass_s390_early_mach): New class.
24241 (s390_option_override): Create and register early_mach pass.
24242 Move to end of file.
24244 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24246 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24247 to match for the exit block.
24249 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24251 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24252 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24253 Reject misaligned operands.
24255 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24257 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24259 2014-02-07 Richard Biener <rguenther@suse.de>
24261 PR middle-end/60092
24262 * gimple-low.c (lower_builtin_posix_memalign): New function.
24263 (lower_stmt): Call it to lower posix_memalign in a way
24264 to make alignment info accessible.
24266 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24269 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24270 __builtin_setjmp_receiver.
24272 2014-02-07 Richard Biener <rguenther@suse.de>
24274 PR middle-end/60092
24275 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24276 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24277 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24278 Handle BUILT_IN_POSIX_MEMALIGN.
24279 (find_func_clobbers): Likewise.
24280 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24281 (call_may_clobber_ref_p_1): Likewise.
24283 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24286 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24289 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24292 * lto-cgraph.c (lto_output_node): Use
24293 symtab_get_symbol_partitioning_class.
24294 (lto_output_varpool_node): likewise.
24295 (symtab_get_symbol_partitioning_class): Move here from
24296 lto/lto-partition.c
24297 * cgraph.h (symbol_partitioning_class): Likewise.
24298 (symtab_get_symbol_partitioning_class): Declare.
24300 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24302 * ggc.h (ggc_internal_cleared_alloc): New macro.
24303 * vec.h (vec_safe_copy): Handle memory stats.
24304 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24305 * target-globals.c (save_target_globals): Likewise.
24307 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24310 * expr.c (emit_move_resolve_push): Export; be bit more selective
24311 on when to clear alias set.
24312 * expr.h (emit_move_resolve_push): Declare.
24313 * function.h (struct function): Add tail_call_marked.
24314 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24315 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24316 * config/i386/i386.md (TImode move expander): De not call
24318 (FP push expanders): Preserve memory attributes.
24319 * config/i386/sse.md (push<mode>1): Remove.
24320 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24321 (ix86_expand_push): Remove.
24322 * config/i386/mmx.md (push<mode>1): Remove.
24324 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24326 PR rtl-optimization/60030
24327 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24328 lopart with paradoxical subreg before shifting it up by hprec.
24330 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24332 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24333 Remove extra newline at end of file.
24334 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24335 (arm_issue_rate): Handle cortexa57.
24336 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24337 (cortex-a57.cortex-a53): Likewise.
24339 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24342 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24343 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24345 (arm_expand_prologue): Adjust all callers.
24346 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24347 info, registers also at the lowest numbered registers side. Use
24348 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24352 * var-tracking.c (adjust_mems): Before adding a SET to
24353 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24355 2014-02-06 Alan Modra <amodra@gmail.com>
24358 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24359 change SDmode to DDmode when lra_in_progress.
24361 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24363 PR middle-end/59150
24364 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24365 free_data_ref on the dr first, and before goto again also set dr
24366 to the next dr. For simd_lane_access, free old datarefs[i] before
24367 overwriting it. For get_vectype_for_scalar_type failure, don't
24368 free_data_ref if simd_lane_access.
24370 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24373 * tree.h (opts_for_fn): New inline function.
24374 (opt_for_fn): Define.
24375 * config/i386/i386.c (ix86_function_regparm): Use
24376 opt_for_fn (decl, optimize) instead of optimize.
24378 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24380 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24381 for SYMBOL_REF in large memory model.
24383 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24385 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24386 and crypto support.
24387 (cortex-a57): Likewise.
24388 (cortex-a57.cortex-a53): Likewise.
24390 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24391 Kugan Vivekanandarajah <kuganv@linaro.org>
24393 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24395 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24397 2014-02-06 Richard Biener <rguenther@suse.de>
24399 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24400 set_loop_copy and initialize_original_copy_tables.
24402 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24404 * config/aarch64/aarch64-simd.md
24405 (aarch64_ashr_simddi): Change QI to SI.
24407 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24408 Jakub Jelinek <jakub@redhat.com>
24410 PR middle-end/60013
24411 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24414 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24416 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24417 CODE_FOR_altivec_vpku[hw]um to
24418 CODE_FOR_altivec_vpku[hw]um_direct.
24419 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24420 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24421 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24422 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24424 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24426 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24427 generation for -maltivec=be.
24428 (altivec_vsumsws): Simplify redundant test.
24430 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24432 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24433 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24434 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24435 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24436 gen_altivec_vpkuwum.
24437 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24439 (altivec_vpks<VI_char>ss): Likewise.
24440 (altivec_vpks<VI_char>us): Likewise.
24441 (altivec_vpku<VI_char>us): Likewise.
24442 (altivec_vpku<VI_char>um): Likewise.
24443 (altivec_vpku<VI_char>um_direct): New (copy of
24444 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24446 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24447 target is little endian and -maltivec=be is not specified.
24448 (*altivec_vupkhs<VU_char>_direct): New (copy of
24449 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24450 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24451 target is little endian and -maltivec=be is not specified.
24452 (*altivec_vupkls<VU_char>_direct): New (copy of
24453 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24454 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24455 little endian and -maltivec=be is not specified.
24456 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24457 little endian and -maltivec=be is not specified.
24459 2014-02-05 Richard Henderson <rth@redhat.com>
24462 * combine-stack-adj.c: Revert r206943.
24463 * sched-int.h (struct deps_desc): Add last_args_size.
24464 * sched-deps.c (init_deps): Initialize it.
24465 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24466 contain REG_ARGS_SIZE notes.
24468 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24470 * lto-cgraph.c (asm_nodes_output): Make global.
24471 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24472 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24473 (driver_handle_option): Handle OPT_fwpa.
24475 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24478 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24479 a comment typo and formatting issue. If odr_hash hasn't been
24480 created, return vNULL and set *completep to false.
24482 PR middle-end/57499
24483 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24484 bb with no successors.
24486 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24489 * doc/invoke.texi (-march): Clarify documentation for ARM.
24490 (-mtune): Likewise.
24493 2014-02-05 Richard Biener <rguenther@suse.de>
24495 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24496 when not vectorizing because of too many alias checks.
24497 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24498 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24500 2014-02-05 Nick Clifton <nickc@redhat.com>
24502 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24503 accept extended registers in any mode when compiling for the MN10300.
24505 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24507 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24508 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24509 sanitization attributes.
24510 (can_inline_edge_p): Likewise.
24511 (sanitize_attrs_match_for_inline_p): New function.
24513 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24515 * ipa-prop.c (detect_type_change): Shor circuit testing of
24516 type changes on THIS pointer.
24518 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24521 * config/pa/pa.c (legitimize_tls_address): Return original address
24522 if not passed a SYMBOL_REF rtx.
24523 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24525 (pa_emit_move_sequence): Simplify TLS source operands.
24526 (pa_legitimate_constant_p): Reject all TLS constants.
24527 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24528 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24530 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24532 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24533 groups when we know they are controlled by LTO.
24534 * varasm.c (default_binds_local_p_1): If object is in other partition,
24535 it will be resolved locally.
24537 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24539 * config/host-linux.c (linux_gt_pch_use_address): Don't
24540 use SSIZE_MAX because it is not always defined.
24542 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24545 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24546 threshold for pseudo splitting.
24547 (update_ebb_live_info): Process call argument hard registers and
24548 hard registers from insn definition too.
24549 (max_small_class_regs_num): New constant.
24550 (inherit_in_ebb): Update live hard regs through EBBs. Update
24551 reloads_num only for small register classes. Don't split for
24554 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24557 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24560 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24562 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24563 visibility is safe.
24565 2014-02-04 Marek Polacek <polacek@redhat.com>
24567 * gdbinit.in (pel): Define.
24569 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24571 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24574 2014-02-04 Richard Biener <rguenther@suse.de>
24577 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24578 in function context local.
24579 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24580 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24581 similar to LTO_imported_decl_ref.
24583 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24585 PR tree-optimization/60002
24586 * cgraphclones.c (build_function_decl_skip_args): Clear
24587 DECL_LANG_SPECIFIC.
24589 PR tree-optimization/60023
24590 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24591 false to gsi_replace.
24592 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24593 has been in some EH region and vec_stmt could throw, add
24594 vec_stmt into the same EH region.
24595 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24596 has no lhs, ignore it.
24597 * internal-fn.c (expand_MASK_LOAD): Likewise.
24600 * tree-inline.c (copy_forbidden): Fail for
24601 __attribute__((optimize (0))) functions.
24604 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24605 is set, copy one less argument.
24606 (expand_simd_clones): Don't subtract clone_info->inbranch
24607 from simd_clone_struct_alloc argument.
24609 PR rtl-optimization/57915
24610 * recog.c (simplify_while_replacing): If all unary/binary/relational
24611 operation arguments are constant, attempt to simplify those.
24613 PR middle-end/59261
24614 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24615 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24617 2014-02-04 Richard Biener <rguenther@suse.de>
24619 PR tree-optimization/60012
24620 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24621 TBAA disambiguation to all DDRs.
24623 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24626 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24627 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24629 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24632 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24634 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24636 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24637 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24639 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24642 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24643 to figure out targets of polymorphic calls with known decl.
24644 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24645 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24646 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24647 (get_polymorphic_call_info): ... here.
24648 (get_polymorphic_call_info_from_invariant): New function.
24650 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24652 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24653 lookup via vtable pointer; check for type consistency
24654 and turn inconsitent facts into UNREACHABLE.
24655 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24656 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24657 type inconsistent querries; return UNREACHABLE instead.
24659 2014-02-03 Richard Henderson <rth@twiddle.net>
24662 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24663 already processed this node.
24664 (normalize_one_pred_1): Pass along mark_set.
24665 (normalize_one_pred): Create and destroy a pointer_set_t.
24666 (normalize_one_pred_chain): Likewise.
24668 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24670 PR gcov-profile/58602
24671 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24673 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24676 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24677 -fno-devirtualize; try to devirtualize by the knowledge of
24678 virtual table pointer given by aggregate propagation.
24679 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24680 (ipa_print_node_jump_functions): Dump also offset that
24681 is relevant for polymorphic calls.
24682 (determine_known_aggregate_parts): Add arg_type parameter; use it
24683 instead of determining the type from pointer type.
24684 (ipa_compute_jump_functions_for_edge): Update call of
24685 determine_known_aggregate_parts.
24686 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24687 (gimple_get_virt_method_for_binfo): ... here; simplify using
24688 vtable_pointer_value_to_vtable.
24689 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24690 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24691 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24692 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24694 (vtable_pointer_value_to_binfo): ... here.
24695 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24697 2014-02-03 Teresa Johnson <tejohnson@google.com>
24699 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24700 redef of outer loop index variable.
24702 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24706 * doc/extend.texi (Function Attributes): Typo.
24708 2014-02-03 Cong Hou <congh@google.com>
24710 PR tree-optimization/60000
24711 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24712 if the vectorized statement is a store. A store statement can only
24713 appear at the end of pattern statements.
24715 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24717 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24718 (ix86_option_override_internal): Default long double to 64-bit for
24719 32-bit Bionic and to 128-bit for 64-bit Bionic.
24721 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24722 TARGET_LONG_DOUBLE_128 is true.
24723 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24725 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24726 (mlong-double-64): Negate -mlong-double-128.
24727 (mlong-double-128): New option.
24729 * config/i386/i386-c.c (ix86_target_macros): Define
24730 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24732 * doc/invoke.texi: Document -mlong-double-128.
24734 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24736 PR rtl-optimization/60024
24737 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24739 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24741 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24743 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24745 PR rtl-optimization/57662
24746 * sel-sched.c (code_motion_path_driver): Do not mark already not
24747 existing blocks in the visiting bitmap.
24749 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24751 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24752 on the insn being emitted.
24754 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24755 Will Deacon <will.deacon@arm.com>
24757 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24759 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24761 * config/arm/arm-tables.opt: Regenerate.
24763 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24765 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24766 for vector types other than V16QImode.
24767 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24768 define_expand, and call altivec_expand_vec_perm_le when producing
24769 code with little endian element order.
24770 (*altivec_vperm_<mode>_internal): New insn having previous
24771 behavior of altivec_vperm_<mode>.
24772 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24773 altivec_expand_vec_perm_le when producing code with little endian
24775 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24776 behavior of altivec_vperm_<mode>_uns.
24778 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24780 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24781 (altivec_vsumsws): Add handling for -maltivec=be with a little
24783 (altivec_vsumsws_direct): New.
24784 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24785 gen_altivec_vsumsws.
24787 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24789 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24790 vtable_pointer_value_to_binfo): New functions.
24791 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24792 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24794 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24796 * config/nios2/nios2.md (load_got_register): Initialize GOT
24797 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24798 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24800 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24802 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24803 preserverd by passthrough, do not propagate the type.
24805 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24807 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24808 (mips_atomic_assign_expand_fenv): New function.
24809 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24811 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24813 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24814 (__builtin_mips_set_fcsr): Likewise.
24815 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24816 MIPS_USI_FTYPE_VOID.
24817 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24818 (mips16_expand_set_fcsr): Likewise.
24819 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24820 (mips16_set_fcsr_stub): Likewise.
24821 (mips16_get_fcsr_one_only_stub): New class.
24822 (mips16_set_fcsr_one_only_stub): Likewise.
24823 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24824 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24825 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24826 (hard_float): New availability predicate.
24827 (mips_builtins): Add get_fcsr and set_fcsr.
24828 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24829 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24830 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24831 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24832 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24835 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24837 * config/mips/mips.c (mips_one_only_stub): New class.
24838 (mips_need_mips16_rdhwr_p): Replace with...
24839 (mips16_rdhwr_stub): ...this new variable.
24840 (mips16_stub_call_address): New function.
24841 (mips16_rdhwr_one_only_stub): New class.
24842 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24843 (mips_output_mips16_rdhwr): Delete.
24844 (mips_finish_stub): New function.
24845 (mips_code_end): Use it to handle rdhwr stubs.
24847 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24850 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24851 when calculating size of integer atomic types.
24853 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24855 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24857 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24859 PR tree-optimization/60003
24860 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24861 * profile.c (branch_prob): Use gimple_call_builtin_p
24862 to check for BUILT_IN_SETJMP_RECEIVER.
24863 * tree-inline.c (copy_bb): Call notice_special_calls.
24865 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24868 * lra-constraints.c (process_alt_operands): Update reload_sum only
24871 2014-01-31 Richard Henderson <rth@redhat.com>
24873 PR middle-end/60004
24874 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24875 until after else_eh is processed.
24877 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24879 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24880 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24881 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24882 in smmintrin.h, remove them.
24883 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24884 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24885 * config/i386/i386.md (ROUND_SAE): Fix value.
24886 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24887 (const48_operand): New.
24888 * config/i386/subst.md (round), (round_expand): Use
24889 const_4_or_8_to_11_operand.
24890 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24892 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24894 * config/i386/constraints.md (Yk): Swap meaning with k.
24895 * config/i386/i386.md (movhi_internal): Change Yk to k.
24896 (movqi_internal): Ditto.
24897 (*k<logic><mode>): Ditto.
24900 (kandn<mode>): Ditto.
24901 (*<code>hi_1): Ditto.
24902 (*<code>qi_1): Ditto.
24903 (kxnor<mode>): Ditto.
24904 (kortestzhi): Ditto.
24905 (kortestchi): Ditto.
24907 (*one_cmplhi2_1): Ditto.
24908 (*one_cmplqi2_1): Ditto.
24909 * config/i386/sse.md (): Change k to Yk.
24910 (avx512f_load<mode>_mask): Ditto.
24911 (avx512f_blendm<mode>): Ditto.
24912 (avx512f_store<mode>_mask): Ditto.
24913 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24914 (avx512f_storedqu<mode>_mask): Ditto.
24915 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24917 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24918 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24919 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24920 (avx512f_maskcmp<mode>3): Ditto.
24921 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24922 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24923 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24924 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24925 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24926 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24927 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24928 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24929 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24930 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24931 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24932 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24933 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24934 (vec_extract_lo_<mode>_maskm): Ditto.
24935 (vec_extract_hi_<mode>_maskm): Ditto.
24936 (avx512f_vternlog<mode>_mask): Ditto.
24937 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24938 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24939 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24940 (avx512f_<code>v8div16qi2_mask): Ditto.
24941 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24942 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24943 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24944 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24945 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24946 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24947 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24948 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24949 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24950 (avx512cd_maskb_vec_dupv8di): Ditto.
24951 (avx512cd_maskw_vec_dupv16si): Ditto.
24952 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24953 (avx512f_vpermi2var<mode>3_mask): Ditto.
24954 (avx512f_vpermi2var<mode>3_mask): Ditto.
24955 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24956 (*avx512f_gathersi<mode>): Ditto.
24957 (*avx512f_gathersi<mode>_2): Ditto.
24958 (*avx512f_gatherdi<mode>): Ditto.
24959 (*avx512f_gatherdi<mode>_2): Ditto.
24960 (*avx512f_scattersi<mode>): Ditto.
24961 (*avx512f_scatterdi<mode>): Ditto.
24962 (avx512f_compress<mode>_mask): Ditto.
24963 (avx512f_compressstore<mode>_mask): Ditto.
24964 (avx512f_expand<mode>_mask): Ditto.
24965 * config/i386/subst.md (mask): Change k to Yk.
24966 (mask_scalar_merge): Ditto.
24969 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24971 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24973 2014-01-31 Richard Biener <rguenther@suse.de>
24975 PR middle-end/59990
24976 * builtins.c (fold_builtin_memory_op): Make sure to not
24977 use a floating-point mode or a boolean or enumeral type for
24978 the copy operation.
24980 2014-01-30 DJ Delorie <dj@redhat.com>
24982 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24983 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24984 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24985 whenever main() has an epilogue.
24987 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24989 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24990 unused variable "field".
24991 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24992 (vsx_mergeh_<mode>): Likewise.
24993 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24994 (altivec_vmrghh): Likewise.
24995 (altivec_vmrghw): Likewise.
24996 (altivec_vmrglb): Likewise.
24997 (altivec_vmrglh): Likewise.
24998 (altivec_vmrglw): Likewise.
24999 (altivec_vspltb): Add missing uses.
25000 (altivec_vsplth): Likewise.
25001 (altivec_vspltw): Likewise.
25002 (altivec_vspltsf): Likewise.
25004 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25007 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25008 frame related instructions.
25010 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
25012 PR rtl-optimization/59959
25013 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25014 any reload of register whose subreg is invalid.
25016 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25018 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25019 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25020 Add missing return type - void.
25022 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25024 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25025 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25026 remove element index adjustment for endian (now handled in vsx.md
25028 (altivec_expand_vec_perm_const): Use
25029 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25030 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25031 (vsx_xxspltw_<mode>): Adjust element index for little endian.
25032 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25033 define_expand and a new define_insn *altivec_vspltb_internal;
25034 adjust for -maltivec=be on a little endian target.
25035 (altivec_vspltb_direct): New.
25036 (altivec_vsplth): Divide into a define_expand and a new
25037 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25038 little endian target.
25039 (altivec_vsplth_direct): New.
25040 (altivec_vspltw): Divide into a define_expand and a new
25041 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25042 little endian target.
25043 (altivec_vspltw_direct): New.
25044 (altivec_vspltsf): Divide into a define_expand and a new
25045 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
25046 a little endian target.
25048 2014-01-30 Richard Biener <rguenther@suse.de>
25050 PR tree-optimization/59993
25051 * tree-ssa-forwprop.c (associate_pointerplus): Check we
25052 can propagate form the earlier stmt and avoid the transform
25053 when the intermediate result is needed.
25055 2014-01-30 Alangi Derick <alangiderick@gmail.com>
25057 * README.Portability: Fix typo.
25059 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
25061 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25062 comparison_operator with ordered_comparison_operator.
25064 2014-01-30 Nick Clifton <nickc@redhat.com>
25066 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25067 Rename to mn10300_store_multiple_regs.
25068 * config/mn10300/mn10300.c: Likewise.
25069 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25070 store_multiple_regs.
25071 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25072 Call mn10300_store_multiple_regs.
25074 2014-01-30 Nick Clifton <nickc@redhat.com>
25075 DJ Delorie <dj@redhat.com>
25077 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
25078 %fp 2 to keep registers after it properly word-aligned.
25079 (rl78_alloc_physical_registers_umul): Handle the case where both
25080 input operands are the same.
25082 2014-01-30 Richard Biener <rguenther@suse.de>
25084 PR tree-optimization/59903
25085 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
25088 2014-01-30 Jason Merrill <jason@redhat.com>
25091 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
25094 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
25096 2014-01-30 Richard Biener <rguenther@suse.de>
25098 PR tree-optimization/59951
25099 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25101 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25104 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25105 SFmode to DFmode case.
25107 2014-01-29 DJ Delorie <dj@redhat.com>
25109 * config/msp430/msp430.opt (-minrt): New.
25110 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25112 (ENDFILE_SPEC): Likewise.
25114 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25116 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25117 (estimate_function_body_sizes): Use it.
25119 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25122 * dwarf2out.c (is_cxx_auto): New.
25123 (is_base_type): Use it.
25124 (gen_type_die_with_usage): Likewise.
25126 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25128 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25129 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25130 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25131 -maltivec=be with LE targets.
25132 (vsx_mergeh_<mode>): Likewise.
25133 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25134 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25135 (altivec_vmrghb): Replace with define_expand and new
25136 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25137 (altivec_vmrghb_direct): New define_insn.
25138 (altivec_vmrghh): Replace with define_expand and new
25139 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25140 (altivec_vmrghh_direct): New define_insn.
25141 (altivec_vmrghw): Replace with define_expand and new
25142 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25143 (altivec_vmrghw_direct): New define_insn.
25144 (*altivec_vmrghsf): Adjust for endianness.
25145 (altivec_vmrglb): Replace with define_expand and new
25146 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25147 (altivec_vmrglb_direct): New define_insn.
25148 (altivec_vmrglh): Replace with define_expand and new
25149 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25150 (altivec_vmrglh_direct): New define_insn.
25151 (altivec_vmrglw): Replace with define_expand and new
25152 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25153 (altivec_vmrglw_direct): New define_insn.
25154 (*altivec_vmrglsf): Adjust for endianness.
25155 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25156 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25157 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25158 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25159 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25160 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25161 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25162 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25164 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25166 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25167 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25170 2014-01-29 Richard Biener <rguenther@suse.de>
25172 PR tree-optimization/58742
25173 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25174 associate_pointerplus_align.
25175 (associate_pointerplus_diff): New function.
25176 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25177 and associate_pointerplus_diff.
25179 2014-01-29 Richard Biener <rguenther@suse.de>
25181 * lto-streamer.h (LTO_major_version): Bump to 3.
25182 (LTO_minor_version): Reset to 0.
25184 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25186 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25187 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25188 (arm_file_start): Generate correct asm header for armv7ve.
25189 * config/arm/bpabi.h: Add multilib support for armv7ve.
25190 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25191 and cortex-a15 to armv7ve.
25192 * config/arm/t-aprofile: Add multilib support for armv7ve.
25193 * doc/invoke.texi: Document -march=armv7ve.
25195 2014-01-29 Richard Biener <rguenther@suse.de>
25197 PR tree-optimization/58742
25198 * tree-ssa-forwprop.c (associate_plusminus): Return true
25199 if we changed sth, defer EH cleanup to ...
25200 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25201 (simplify_mult): New function.
25203 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25205 PR middle-end/59917
25206 PR tree-optimization/59920
25207 * tree.c (build_common_builtin_nodes): Remove
25208 __builtin_setjmp_dispatcher initialization.
25209 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25210 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25211 instead of gsi_after_labels + manually skipping debug stmts.
25212 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25213 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25214 * tree-inline.c (copy_edges_for_bb): Remove
25215 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25216 argument. Ignore computed_goto_p stmts. Don't call
25217 make_abnormal_goto_edges. If a call might need abnormal edges
25218 for non-local gotos, see if it already has an edge to
25219 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25220 with true argument, don't do anything then, otherwise add
25221 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25222 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25224 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25225 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25226 (lower_stmt): Don't set data->calls_builtin_setjmp.
25227 (lower_builtin_setjmp): Adjust comment.
25228 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25229 * tree-cfg.c (found_computed_goto): Remove.
25230 (factor_computed_gotos): Remove.
25231 (make_goto_expr_edges): Return bool, true for computed gotos.
25232 Don't call make_abnormal_goto_edges.
25233 (build_gimple_cfg): Don't set found_computed_goto, don't call
25234 factor_computed_gotos.
25235 (computed_goto_p): No longer static.
25236 (make_blocks): Don't set found_computed_goto.
25237 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25238 (make_edges): If make_goto_expr_edges returns true, push bb
25239 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25240 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25241 vector. Record mapping between bbs and OpenMP regions if there
25242 are any, adjust make_gimple_omp_edges caller. Call
25243 handle_abnormal_edges.
25244 (make_abnormal_goto_edges): Remove.
25245 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25246 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25247 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25248 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25249 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25250 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25251 filling *region also set *region_idx to (*region)->entry->index.
25254 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25255 For REGs set ORIGINAL_REGNO.
25257 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25259 * doc/md.texi: Mention that a target shouldn't implement
25260 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25263 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25265 PR tree-optimization/59594
25266 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25267 a copy of the datarefs vector rather than the vector itself.
25269 2014-01-28 Jason Merrill <jason@redhat.com>
25272 * dwarf2out.c (auto_die): New static.
25273 (gen_type_die_with_usage): Handle C++1y 'auto'.
25274 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25277 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25280 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25281 (SPEC_X32): Likewise.
25282 (SPEC_64): Likewise.
25283 * config/i386/i386.c (ix86_option_override_internal): Turn off
25284 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25286 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25287 * config/i386/i386.h (TARGET_16BIT): New macro.
25288 (TARGET_16BIT_P): Likewise.
25289 * config/i386/i386.opt: Add m16.
25290 * doc/invoke.texi: Document -m16.
25292 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25294 PR preprocessor/59935
25295 * input.c (location_get_source_line): Bail out on when line number
25296 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25298 2014-01-28 Richard Biener <rguenther@suse.de>
25300 PR tree-optimization/58742
25301 * tree-ssa-forwprop.c (associate_plusminus): Handle
25302 pointer subtraction of the form (T)(P + A) - (T)P.
25304 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25306 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25309 2014-01-28 Richard Biener <rguenther@suse.de>
25312 2014-01-28 Richard Biener <rguenther@suse.de>
25314 PR rtl-optimization/45364
25315 PR rtl-optimization/59890
25316 * var-tracking.c (local_get_addr_clear_given_value): Handle
25317 already cleared slot.
25318 (val_reset): Handle not allocated local_get_addr_cache.
25319 (vt_find_locations): Use post-order on the inverted CFG.
25321 2014-01-28 Richard Biener <rguenther@suse.de>
25323 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25325 2014-01-28 Richard Biener <rguenther@suse.de>
25327 PR rtl-optimization/45364
25328 PR rtl-optimization/59890
25329 * var-tracking.c (local_get_addr_clear_given_value): Handle
25330 already cleared slot.
25331 (val_reset): Handle not allocated local_get_addr_cache.
25332 (vt_find_locations): Use post-order on the inverted CFG.
25334 2014-01-28 Alan Modra <amodra@gmail.com>
25336 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25337 * configure.ac <recursive call for build != host>: Define
25338 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25339 and LD_FOR_BUILD too.
25340 * configure: Regenerate.
25342 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25344 * config/i386/i386.c (get_builtin_code_for_version): Separate
25345 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25346 Broadwell from Haswell.
25348 2014-01-27 Steve Ellcey <sellcey@mips.com>
25350 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25351 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25352 * config/mips/mips.c (mips_option_override): Change setting
25354 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25355 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25356 Change from Mask to Var.
25358 2014-01-27 Jeff Law <law@redhat.com>
25360 * ipa-inline.c (inline_small_functions): Fix typo.
25362 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25364 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25365 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25366 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25367 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25368 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25369 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25370 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25371 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25372 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25373 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25374 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25375 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25376 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25377 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25378 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25379 (_mm512_storeu_epi64): Ditto.
25380 (_mm512_cmpge_epi32_mask): Ditto.
25381 (_mm512_cmpge_epu32_mask): Ditto.
25382 (_mm512_cmpge_epi64_mask): Ditto.
25383 (_mm512_cmpge_epu64_mask): Ditto.
25384 (_mm512_cmple_epi32_mask): Ditto.
25385 (_mm512_cmple_epu32_mask): Ditto.
25386 (_mm512_cmple_epi64_mask): Ditto.
25387 (_mm512_cmple_epu64_mask): Ditto.
25388 (_mm512_cmplt_epi32_mask): Ditto.
25389 (_mm512_cmplt_epu32_mask): Ditto.
25390 (_mm512_cmplt_epi64_mask): Ditto.
25391 (_mm512_cmplt_epu64_mask): Ditto.
25392 (_mm512_cmpneq_epi32_mask): Ditto.
25393 (_mm512_cmpneq_epu32_mask): Ditto.
25394 (_mm512_cmpneq_epi64_mask): Ditto.
25395 (_mm512_cmpneq_epu64_mask): Ditto.
25396 (_mm512_expand_pd): Ditto.
25397 (_mm512_expand_ps): Ditto.
25398 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25399 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25400 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25401 * config/i386/i386.c (ix86_builtins): Add
25402 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25403 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25404 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25405 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25406 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25407 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25408 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25409 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25410 IX86_BUILTIN_PMOVUSQW512_MEM.
25411 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25412 __builtin_ia32_pmovsqd512mem_mask,
25413 __builtin_ia32_pmovqd512mem_mask,
25414 __builtin_ia32_pmovusqw512mem_mask,
25415 __builtin_ia32_pmovsqw512mem_mask,
25416 __builtin_ia32_pmovqw512mem_mask,
25417 __builtin_ia32_pmovusdw512mem_mask,
25418 __builtin_ia32_pmovsdw512mem_mask,
25419 __builtin_ia32_pmovdw512mem_mask,
25420 __builtin_ia32_pmovqb512mem_mask,
25421 __builtin_ia32_pmovusqb512mem_mask,
25422 __builtin_ia32_pmovsqb512mem_mask,
25423 __builtin_ia32_pmovusdb512mem_mask,
25424 __builtin_ia32_pmovsdb512mem_mask,
25425 __builtin_ia32_pmovdb512mem_mask.
25426 (bdesc_args): Add __builtin_ia32_expanddf512,
25427 __builtin_ia32_expandsf512.
25428 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25429 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25430 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25431 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25432 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25433 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25434 (avx512f_<code>v8div16qi2_mask_store): This.
25435 (avx512f_expand<mode>): New.
25437 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25439 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25441 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25442 (_mm512_prefetch_i32scatter_pd): Ditto.
25443 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25444 (_mm512_prefetch_i64scatter_pd): Ditto.
25445 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25446 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25447 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25448 (_mm512_prefetch_i32scatter_ps): Ditto.
25449 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25450 (_mm512_prefetch_i64scatter_ps): Ditto.
25451 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25452 * config/i386/i386-builtin-types.def: Define
25453 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25454 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25455 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25456 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25457 IX86_BUILTIN_SCATTERPFQPD.
25458 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25459 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25460 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25461 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25462 __builtin_ia32_scatterpfqps.
25463 (ix86_expand_builtin): Expand new built-ins.
25464 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25465 fix memory access data type.
25466 (*avx512pf_gatherpf<mode>_mask): Ditto.
25467 (*avx512pf_gatherpf<mode>): Ditto.
25468 (avx512pf_scatterpf<mode>): Ditto.
25469 (*avx512pf_scatterpf<mode>_mask): Ditto.
25470 (*avx512pf_scatterpf<mode>): Ditto.
25471 (GATHER_SCATTER_SF_MEM_MODE): New.
25472 (avx512pf_gatherpf<mode>df): Ditto.
25473 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25474 (*avx512pf_scatterpf<mode>df): Ditto.
25476 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25479 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25480 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25483 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25485 * common/config/arm/arm-common.c
25486 (arm_rewrite_mcpu): Handle multiple names.
25488 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25490 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25492 * gimple-builder.h (create_gimple_tmp): Delete.
25494 2014-01-27 Christian Bruel <christian.bruel@st.com>
25496 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25499 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25501 * config/pa/pa.md (call): Generate indirect long calls to non-local
25502 functions when outputing 32-bit code.
25503 (call_value): Likewise except for special call to buggy powf function.
25505 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25506 portable runtime and PIC indirect calls.
25507 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25508 and PIC call sequences. Use ldo instead of blr to set return register
25509 in PIC call sequence.
25511 2014-01-25 Walter Lee <walt@tilera.com>
25513 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25514 avoid clobbering a live register.
25516 2014-01-25 Walter Lee <walt@tilera.com>
25518 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25519 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25520 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25521 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25523 2014-01-25 Walter Lee <walt@tilera.com>
25525 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25526 arguments on even registers.
25527 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25529 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25530 (BIGGEST_ALIGNMENT): Ditto.
25531 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25533 2014-01-25 Walter Lee <walt@tilera.com>
25535 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25536 insns before bundling.
25537 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25539 2014-01-25 Walter Lee <walt@tilera.com>
25541 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25542 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25543 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25545 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25547 * config/mips/constraints.md (kl): Delete.
25548 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25549 define expands, using...
25550 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25551 instructions for MIPS16.
25552 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25553 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25555 2014-01-25 Walter Lee <walt@tilera.com>
25557 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25561 2014-01-25 Walter Lee <walt@tilera.com>
25563 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25564 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25566 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25568 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25571 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25573 * print-rtl.c (in_call_function_usage): New var.
25574 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25575 EXPR_LIST mode as mode and not as reg note name.
25577 PR middle-end/59561
25578 * cfgloopmanip.c (copy_loop_info): If
25579 loop->warned_aggressive_loop_optimizations, make sure
25580 the flag is set in target loop too.
25582 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25584 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25586 * builtins.def: Likewise.
25587 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25588 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25589 * ira.c (ira_setup_eliminable_regset): Likewise.
25590 * omp-low.c (gate_expand_omp): Likewise.
25591 (execute_lower_omp): Likewise.
25592 (diagnose_sb_0): Likewise.
25593 (gate_diagnose_omp_blocks): Likewise.
25594 (simd_clone_clauses_extract): Likewise.
25597 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25599 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25600 correction for little endian...
25601 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25604 2014-01-24 Jeff Law <law@redhat.com>
25606 PR tree-optimization/59919
25607 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25608 for non-returning calls.
25610 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25612 * common/config/aarch64/aarch64-common.c
25613 (aarch64_rewrite_mcpu): Handle multiple names.
25614 * config/aarch64/aarch64.h
25615 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25617 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25619 * input.c (add_file_to_cache_tab): Handle the case where fopen
25622 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25625 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25626 from push operand if code of push isn't PRE_DEC.
25628 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25631 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25632 -mquad-memory-atomic. Update -mquad-memory documentation to say
25633 it is only used for non-atomic loads/stores.
25635 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25636 -mquad-memory or -mquad-memory-atomic switches.
25638 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25639 -mquad-memory-atomic to ISA 2.07 support.
25641 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25642 to separate support of normal quad word memory operations (ldq, stq)
25643 from the atomic quad word memory operations.
25645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25646 support to separate non-atomic quad word operations from atomic
25647 quad word operations. Disable non-atomic quad word operations in
25648 little endian mode so that we don't have to swap words after the
25649 load and before the store.
25650 (quad_load_store_p): Add comment about atomic quad word support.
25651 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25652 options printed with -mdebug=reg.
25654 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25655 -mquad-memory-atomic as the test for whether we have quad word
25656 atomic instructions.
25657 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25658 or -mp8-vector are used, allow byte/half-word atomic operations.
25660 * config/rs6000/sync.md (load_lockedti): Insure that the address
25661 is a proper indexed or indirect address for the lqarx instruction.
25662 On little endian systems, swap the hi/lo registers after the lqarx
25664 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25665 insure the address is valid for the lqarx instruction.
25666 (store_conditionalti): Insure that the address is a proper indexed
25667 or indirect address for the stqcrx. instruction. On little endian
25668 systems, swap the hi/lo registers before doing the stqcrx.
25670 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25671 insure the address is valid for the stqcrx. instruction.
25673 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25674 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25675 type of quad memory support is available.
25677 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25679 PR regression/59915
25680 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25681 there is a danger of looping.
25683 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25685 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25686 force flag_ira_loop_pressure if set via command line.
25688 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25690 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25691 (ashr_simd): New builtin handling DI mode.
25692 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25693 (aarch64_sshr_simddi): New match pattern.
25694 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25695 (vshrd_n_s64): Likewise.
25696 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25698 2014-01-23 Nick Clifton <nickc@redhat.com>
25700 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25701 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25702 favour of mcu specific scripts.
25703 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25706 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25707 Alex Velenko <Alex.Velenko@arm.com>
25709 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25710 (vaddv_s16): Likewise.
25711 (vaddv_s32): Likewise.
25712 (vaddv_u8): Likewise.
25713 (vaddv_u16): Likewise.
25714 (vaddv_u32): Likewise.
25715 (vaddvq_s8): Likewise.
25716 (vaddvq_s16): Likewise.
25717 (vaddvq_s32): Likewise.
25718 (vaddvq_s64): Likewise.
25719 (vaddvq_u8): Likewise.
25720 (vaddvq_u16): Likewise.
25721 (vaddvq_u32): Likewise.
25722 (vaddvq_u64): Likewise.
25723 (vaddv_f32): Likewise.
25724 (vaddvq_f32): Likewise.
25725 (vaddvq_f64): Likewise.
25726 (vmaxv_f32): Likewise.
25727 (vmaxv_s8): Likewise.
25728 (vmaxv_s16): Likewise.
25729 (vmaxv_s32): Likewise.
25730 (vmaxv_u8): Likewise.
25731 (vmaxv_u16): Likewise.
25732 (vmaxv_u32): Likewise.
25733 (vmaxvq_f32): Likewise.
25734 (vmaxvq_f64): Likewise.
25735 (vmaxvq_s8): Likewise.
25736 (vmaxvq_s16): Likewise.
25737 (vmaxvq_s32): Likewise.
25738 (vmaxvq_u8): Likewise.
25739 (vmaxvq_u16): Likewise.
25740 (vmaxvq_u32): Likewise.
25741 (vmaxnmv_f32): Likewise.
25742 (vmaxnmvq_f32): Likewise.
25743 (vmaxnmvq_f64): Likewise.
25744 (vminv_f32): Likewise.
25745 (vminv_s8): Likewise.
25746 (vminv_s16): Likewise.
25747 (vminv_s32): Likewise.
25748 (vminv_u8): Likewise.
25749 (vminv_u16): Likewise.
25750 (vminv_u32): Likewise.
25751 (vminvq_f32): Likewise.
25752 (vminvq_f64): Likewise.
25753 (vminvq_s8): Likewise.
25754 (vminvq_s16): Likewise.
25755 (vminvq_s32): Likewise.
25756 (vminvq_u8): Likewise.
25757 (vminvq_u16): Likewise.
25758 (vminvq_u32): Likewise.
25759 (vminnmv_f32): Likewise.
25760 (vminnmvq_f32): Likewise.
25761 (vminnmvq_f64): Likewise.
25763 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25765 * config/aarch64/aarch64-simd.md
25766 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25767 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25768 (*aarch64_mul3_elt<mode>): Likewise.
25769 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25770 (*aarch64_mul3_elt_to_64v2df): Likewise.
25771 (*aarch64_mla_elt<mode>): Likewise.
25772 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25773 (*aarch64_mls_elt<mode>): Likewise.
25774 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25775 (*aarch64_fma4_elt<mode>): Likewise.
25776 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25777 (*aarch64_fma4_elt_to_64v2df): Likewise.
25778 (*aarch64_fnma4_elt<mode>): Likewise.
25779 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25780 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25781 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25782 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25783 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25784 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25785 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25786 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25787 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25789 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25791 * config/aarch64/aarch64-simd.md
25792 (aarch64_be_checked_get_lane<mode>): New define_expand.
25793 * config/aarch64/aarch64-simd-builtins.def
25794 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25795 New builtin definition.
25796 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25797 Use new safe be builtin.
25799 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25801 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25803 (aarch64_be_st1<mode>): Likewise.
25804 (aarch_ld1<VALL:mode>): Define_expand modified.
25805 (aarch_st1<VALL:mode>): Likewise.
25806 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25807 (UNSPEC_ST1): Likewise.
25809 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25811 * config/microblaze/microblaze.md: Add trap insn and attribute
25813 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25815 PR preprocessor/58580
25816 * input.h (location_get_source_line): Take an additional line_size
25818 (void diagnostics_file_cache_fini): Declare new function.
25819 * input.c (struct fcache): New type.
25820 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25821 New static constants.
25822 (diagnostic_file_cache_init, total_lines_num)
25823 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25824 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25825 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25826 (get_next_line, read_next_line, goto_next_line, read_line_num):
25827 New static function definitions.
25828 (diagnostic_file_cache_fini): New function.
25829 (location_get_source_line): Take an additional output line_len
25830 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25832 * diagnostic.c (diagnostic_finish): Call
25833 diagnostic_file_cache_fini.
25834 (adjust_line): Take an additional input parameter for the length
25835 of the line, rather than calculating it with strlen.
25836 (diagnostic_show_locus): Adjust the use of
25837 location_get_source_line and adjust_line with respect to their new
25838 signature. While displaying a line now, do not stop at the first
25839 null byte. Rather, display the zero byte as a space and keep
25840 going until we reach the size of the line.
25841 * Makefile.in: Add vec.o to OBJS-libcommon
25843 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25844 Ilya Tocar <ilya.tocar@intel.com>
25846 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25847 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25848 (__builtin_ia32_kmov16): Ditto.
25849 * config/i386/i386.md (UNSPEC_KMOV): New.
25852 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25854 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25855 (_mm512_storeu_si512): Ditto.
25857 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25860 * rtl.h (get_referenced_operands): Declare.
25861 * recog.c (get_referenced_operands): New function.
25862 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25863 operands have been referenced when recording LO_SUM references.
25865 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25867 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25869 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25871 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25872 Enable for generic and recent AMD targets.
25874 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25876 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25877 ARG_SIZE note when adjustment was eliminated.
25879 2014-01-22 Jeff Law <law@redhat.com>
25881 PR tree-optimization/59597
25882 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25883 in file. Accept new argument REGISTERING and use it to modify
25884 dump output appropriately.
25885 (register_jump_thread): Corresponding changes.
25886 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25887 thread paths involving joiner blocks. Add code to dump cancelled
25888 jump threading paths.
25890 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25892 PR rtl-optimization/59477
25893 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25894 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25896 2014-01-22 Tom Tromey <tromey@redhat.com>
25898 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25900 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25902 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25904 PR rtl-optimization/59896
25905 * lra-constraints.c (process_alt_operands): Check unused note for
25906 matched operands of insn with no output reloads.
25908 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25910 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25911 (mips_move_from_gpr_cost): Likewise.
25913 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25915 PR rtl-optimization/59858
25916 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25917 ira_class_hard_regs_num.
25918 (process_alt_operands): Increase reject for dying matched operand.
25920 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25923 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25924 smaller than size, perform several stores or loads and stores
25925 at dst + count - size to store or copy all of size bytes, rather
25926 than just last modesize bytes.
25928 2014-01-20 DJ Delorie <dj@redhat.com>
25930 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25931 that CLOBBERs are REGs before propogating their values.
25933 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25935 PR middle-end/59789
25936 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25937 (cgraph_inline_failed_type): New function.
25938 * cgraph.h (DEFCIFCODE): Add type.
25939 (cgraph_inline_failed_type_t): New enum.
25940 (cgraph_inline_failed_type): New prototype.
25941 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25942 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25943 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25944 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25945 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25946 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25947 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25948 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25949 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25950 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25951 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25952 OPTIMIZATION_MISMATCH.
25953 * tree-inline.c (expand_call_inline): Emit errors during
25954 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25956 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25959 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25960 mode attribute in insn output.
25962 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25964 * output.h (output_constant): Delete.
25965 * varasm.c (output_constant): Make private.
25967 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25969 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25971 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25973 PR middle-end/59860
25974 * tree.h (fold_builtin_strcat): New prototype.
25975 * builtins.c (fold_builtin_strcat): No longer static. Add len
25976 argument, if non-NULL, don't call c_strlen. Optimize
25977 directly into __builtin_memcpy instead of __builtin_strcpy.
25978 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25979 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25981 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25983 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25984 for SImode_address_operand operands, having only a REG argument.
25986 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25988 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25989 loader name using mbig-endian.
25990 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25992 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25994 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25995 (-mtune): Likewise.
25998 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
26000 * config/aarch64/aarch64-protos.h
26001 (aarch64_cannot_change_mode_class_ptr): Declare.
26002 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26003 aarch64_cannot_change_mode_class_ptr): New.
26004 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26005 backend hook aarch64_cannot_change_mode_class.
26007 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26009 * common/config/aarch64/aarch64-common.c
26010 (aarch64_handle_option): Don't handle any option order logic here.
26011 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26012 selected_cpu, warn on architecture version mismatch.
26013 (aarch64_override_options): Fix parsing order for option strings.
26015 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26016 Iain Sandoe <iain@codesourcery.com>
26019 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26020 warning. Amend comment to reflect current functionality.
26022 2014-01-20 Richard Biener <rguenther@suse.de>
26024 PR middle-end/59860
26025 * builtins.c (fold_builtin_strcat): Remove case better handled
26026 by tree-ssa-strlen.c.
26028 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
26030 * config/aarch64/aarch64.opt
26031 (mcpu, march, mtune): Make case-insensitive.
26033 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26036 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26037 if operands[1] is a REG or ZERO_EXTEND of a REG.
26039 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
26041 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26043 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
26045 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
26046 long non-pic millicode calls.
26048 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26050 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
26052 2014-01-19 Kito Cheng <kito@0xlab.org>
26054 * builtins.c (expand_movstr): Check movstr expand done or fail.
26056 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26057 H.J. Lu <hongjiu.lu@intel.com>
26060 * config/i386/i386.md (*lea<mode>): Zero-extend return register
26061 to DImode for zero-extended addresses.
26063 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26065 PR rtl-optimization/57763
26066 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26067 on the new indirect jump_insn and increment LABEL_NUSES (label).
26069 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26073 * config.gcc (x86_archs): New variable.
26074 (x86_64_archs): Likewise.
26075 (x86_cpus): Likewise.
26076 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
26077 --with-arch/--with-cpu= options.
26078 Support --with-arch=/--with-cpu={nehalem,westmere,
26079 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
26081 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26083 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
26084 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
26086 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26088 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
26090 2014-01-18 Jakub Jelinek <jakub@redhat.com>
26093 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
26094 clear cpp_get_options (parse_in)->warn_unused_macros for
26095 ix86_target_macros_internal with cpp_define.
26097 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26099 * jump.c (delete_related_insns): Keep (use (insn))s.
26100 * reorg.c (redundant_insn): Check for barriers too.
26102 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26104 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26106 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26108 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26109 call to $$dyncall when TARGET_LONG_CALLS is true.
26111 2014-01-17 Jeff Law <law@redhat.com>
26113 * ree.c (combine_set_extension): Temporarily disable test for
26114 changing number of hard registers.
26116 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26118 PR middle-end/58125
26119 * ipa-inline-analysis.c (inline_free_summary):
26120 Do not free summary of aliases.
26122 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26124 PR middle-end/59706
26125 * gimplify.c (gimplify_expr): Use create_tmp_var
26126 instead of create_tmp_var_raw. If cond doesn't have
26127 integral type, don't add the IFN_ANNOTATE builtin at all.
26129 2014-01-17 Martin Jambor <mjambor@suse.cz>
26132 * ipa-cp.c (prev_edge_clone): New variable.
26133 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26134 Also resize prev_edge_clone vector.
26135 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26136 (ipcp_edge_removal_hook): New function.
26137 (ipcp_driver): Register ipcp_edge_removal_hook.
26139 2014-01-17 Andrew Pinski <apinski@cavium.com>
26140 Steve Ellcey <sellcey@mips.com>
26143 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26146 2014-01-17 Jeff Law <law@redhat.com>
26148 PR middle-end/57904
26149 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26150 so that pass_ccp runs first.
26152 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26154 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26155 (ix86_adjust_cost): Use !TARGET_XXX.
26156 (do_reorder_for_imul): Likewise.
26157 (swap_top_of_ready_list): Likewise.
26158 (ix86_sched_reorder): Likewise.
26160 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26162 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26163 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26164 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26165 (intel_memset): New. Duplicate slm_memset.
26166 (intel_cost): New. Duplicate slm_cost.
26167 (m_INTEL): New macro.
26168 (processor_target_table): Add "intel".
26169 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26170 with PROCESSOR_INTEL for "intel".
26171 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26172 PROCESSOR_SILVERMONT.
26173 (ix86_issue_rate): Likewise.
26174 (ix86_adjust_cost): Likewise.
26175 (ia32_multipass_dfa_lookahead): Likewise.
26176 (swap_top_of_ready_list): Likewise.
26177 (ix86_sched_reorder): Likewise.
26178 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26179 instead of TARGET_OPT_AGU.
26180 * config/i386/i386.h (TARGET_INTEL): New.
26181 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26182 (processor_type): Add PROCESSOR_INTEL.
26183 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26184 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26186 2014-01-17 Marek Polacek <polacek@redhat.com>
26189 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26192 2014-01-17 Richard Biener <rguenther@suse.de>
26194 PR tree-optimization/46590
26195 * opts.c (default_options_table): Add entries for
26196 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26197 all enabled at -O1 but not for -Og.
26198 * common.opt (fbranch-count-reg): Remove Init(1).
26199 (fmove-loop-invariants): Likewise.
26200 (ftree-pta): Likewise.
26202 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26204 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26205 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26206 decls to at least the GCC 4.8 used alignments.
26209 * tree-nested.c (convert_nonlocal_reference_stmt,
26210 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26211 of GIMPLE_BIND stmts, adjust associated decls.
26213 2014-01-17 Richard Biener <rguenther@suse.de>
26215 PR tree-optimization/46590
26216 * vec.h (vec<>::bseach): New member function implementing
26217 binary search according to C89 bsearch.
26218 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26219 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26220 bitmap pointer again. Make accesses_in_loop a flat array.
26221 (mem_ref_obstack): New global.
26222 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26223 (mark_ref_stored): Likewise.
26224 (ref_indep_loop_p_2): Likewise.
26225 (set_ref_stored_in_loop): New helper function.
26226 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26227 (memref_free): Adjust.
26228 (record_mem_ref_loc): Simplify.
26229 (gather_mem_refs_stmt): Adjust.
26230 (sort_locs_in_loop_postorder_cmp): New function.
26231 (analyze_memory_references): Sort accesses_in_loop after
26232 loop postorder number.
26233 (find_ref_loc_in_loop_cmp): New function.
26234 (for_all_locs_in_loop): Find relevant cluster of locs in
26235 accesses_in_loop and iterate without recursion.
26236 (execute_sm): Avoid uninit warning.
26237 (struct ref_always_accessed): Simplify.
26238 (ref_always_accessed::operator ()): Likewise.
26239 (ref_always_accessed_p): Likewise.
26240 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26241 loop postorder numbers here.
26242 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26245 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26248 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26249 on decls for which assemble_alias has been called.
26251 2014-01-17 Nick Clifton <nickc@redhat.com>
26253 * config/msp430/msp430.opt: (mcpu): New option.
26254 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26255 (msp430_option_override): Parse target_cpu. If the MCU name
26256 matches a generic string, clear target_mcu.
26257 (msp430_attr): Allow numeric interrupt values up to 63.
26258 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26259 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26261 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26263 * config/msp430/msp430.md (popm): Use %J rather than %I.
26264 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26265 (addhi_cy_i): Use immediate_operand for operand 2.
26266 * doc/invoke.texi: Document -mcpu option.
26268 2014-01-17 Richard Biener <rguenther@suse.de>
26270 PR rtl-optimization/38518
26271 * df.h (df_analyze_loop): Declare.
26272 * df-core.c: Include cfgloop.h.
26273 (df_analyze_1): Split out main part of df_analyze.
26274 (df_analyze): Adjust.
26275 (loop_inverted_post_order_compute): New function.
26276 (loop_post_order_compute): Likewise.
26277 (df_analyze_loop): New function avoiding whole-function
26278 postorder computes.
26279 * loop-invariant.c (find_defs): Use df_analyze_loop.
26280 (find_invariants): Adjust.
26281 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26283 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26285 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26286 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26288 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26290 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26291 traversal when removing references.
26293 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26296 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26298 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26300 PR middle-end/56791
26301 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26302 pushing a reload for an autoinc when we had previously reloaded an
26303 inner part of the address.
26305 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26307 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26309 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26310 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26311 when not giving up or versioning for alias only because of
26313 (vect_analyze_data_ref_dependences): Set to true.
26314 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26316 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26317 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26320 PR middle-end/58344
26321 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26324 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26325 operand 0 predicate for gathers, use a new pseudo as subtarget.
26327 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26329 PR middle-end/59609
26330 * lra-constraints.c (process_alt_operands): Add printing debug info.
26331 Check absence of input/output reloads for matched operands too.
26333 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26335 PR rtl-optimization/59835
26336 * ira.c (ira_init_register_move_cost): Increase cost for
26339 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26341 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26343 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26346 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26347 non-register objects. Use gen_(high/low)part more consistently.
26350 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26353 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26354 endian support, remove tests for WORDS_BIG_ENDIAN.
26355 (p8_mfvsrd_3_<mode>): Likewise.
26356 (reload_gpr_from_vsx<mode>): Likewise.
26357 (reload_gpr_from_vsxsf): Likewise.
26358 (p8_mfvsrd_4_disf): Likewise.
26360 2014-01-16 Richard Biener <rguenther@suse.de>
26362 PR rtl-optimization/46590
26363 * lcm.c (compute_antinout_edge): Use postorder iteration.
26364 (compute_laterin): Use inverted postorder iteration.
26366 2014-01-16 Nick Clifton <nickc@redhat.com>
26368 PR middle-end/28865
26369 * varasm.c (output_constant): Return the number of bytes actually
26371 (output_constructor_array_range): Update the field size with the
26372 number of bytes emitted by output_constant.
26373 (output_constructor_regular_field): Likewise. Also do not
26374 complain if the total number of bytes emitted is now greater
26375 than the expected fieldpos.
26376 * output.h (output_constant): Update prototype and descriptive comment.
26378 2014-01-16 Marek Polacek <polacek@redhat.com>
26380 PR middle-end/59827
26381 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26382 it is error_mark_node.
26384 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26386 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26387 VALID_AVX256_REG_OR_OI_MODE.
26389 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26391 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26392 current procedure should be profiled.
26394 2014-01-15 Andrew Pinski <apinski@cavium.com>
26396 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26397 of moving from/to the STACK_REG register class.
26399 2014-01-15 Richard Henderson <rth@redhat.com>
26402 * reginfo.c (global_regs_decl): Globalize.
26403 * rtl.h (global_regs_decl): Declare.
26404 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26405 reserved via global_regs.
26407 2014-01-15 Teresa Johnson <tejohnson@google.com>
26409 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26411 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26413 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26414 and vmulosh rather than call gen_vec_widen_smult_*.
26415 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26416 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26417 (vec_widen_smult_even_v16qi): Likewise.
26418 (vec_widen_umult_even_v8hi): Likewise.
26419 (vec_widen_smult_even_v8hi): Likewise.
26420 (vec_widen_umult_odd_v16qi): Likewise.
26421 (vec_widen_smult_odd_v16qi): Likewise.
26422 (vec_widen_umult_odd_v8hi): Likewise.
26423 (vec_widen_smult_odd_v8hi): Likewise.
26424 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26425 vmuloub rather than call gen_vec_widen_umult_*.
26426 (vec_widen_umult_lo_v16qi): Likewise.
26427 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26428 vmulosb rather than call gen_vec_widen_smult_*.
26429 (vec_widen_smult_lo_v16qi): Likewise.
26430 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26431 rather than call gen_vec_widen_umult_*.
26432 (vec_widen_umult_lo_v8hi): Likewise.
26433 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26434 rather than call gen_vec_widen_smult_*.
26435 (vec_widen_smult_lo_v8hi): Likewise.
26437 2014-01-15 Jeff Law <law@redhat.com>
26439 PR tree-optimization/59747
26440 * ree.c (find_and_remove_re): Properly handle case where a second
26441 eliminated extension requires widening a copy created for elimination
26442 of a prior extension.
26443 (combine_set_extension): Ensure that the number of hard regs needed
26444 for a destination register does not change when we widen it.
26446 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26448 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26449 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26450 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26451 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26452 (avr-*-rtems*): Likewise.
26453 (bfin*-rtems*): Likewise.
26454 (moxie-*-rtems*): Likewise.
26455 (h8300-*-rtems*): Likewise.
26456 (i[34567]86-*-rtems*): Likewise.
26457 (lm32-*-rtems*): Likewise.
26458 (m32r-*-rtems*): Likewise.
26459 (m68k-*-rtems*): Likewise.
26460 (microblaze*-*-rtems*): Likewise.
26461 (mips*-*-rtems*): Likewise.
26462 (powerpc-*-rtems*): Likewise.
26463 (sh-*-rtems*): Likewise.
26464 (sparc-*-rtems*): Likewise.
26465 (sparc64-*-rtems*): Likewise.
26466 (v850-*-rtems*): Likewise.
26467 (m32c-*-rtems*): Likewise.
26469 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26471 PR rtl-optimization/59511
26472 * ira.c (ira_init_register_move_cost): Use memory costs for some
26473 cases of register move cost calculations.
26474 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26475 instead of BB frequency.
26476 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26477 * lra-assigns.c (find_hard_regno_for): Ditto.
26479 2014-01-15 Richard Biener <rguenther@suse.de>
26481 PR tree-optimization/59822
26482 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26483 (vectorizable_load): Use it to hoist defs of uses of invariant
26484 loads out of the loop.
26486 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26487 Kugan Vivekanandarajah <kuganv@linaro.org>
26490 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26493 2014-01-15 Richard Biener <rguenther@suse.de>
26495 PR rtl-optimization/59802
26496 * lcm.c (compute_available): Use inverted postorder to seed
26497 the initial worklist.
26499 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26502 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26503 ADDR_REGS for invalid symrefs in non-PIC code.
26505 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26508 * builtins.c (determine_block_size): Initialize *probable_max_size
26509 even if len_rtx is CONST_INT.
26511 2014-01-14 Andrew Pinski <apinski@cavium.com>
26513 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26514 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26515 (cortexa53_tunings): Likewise.
26516 (aarch64_sched_issue_rate): New function.
26517 (TARGET_SCHED_ISSUE_RATE): Define.
26519 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26521 * ira-costs.c (find_costs_and_classes): Add missed
26522 ira_init_register_move_cost_if_necessary.
26524 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26527 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26529 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26532 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26533 to indicate if type is used for function return value. Warn ABI
26534 change if the vector mode isn't available for function return value.
26535 (ix86_function_arg_advance): Pass false to type_natural_mode.
26536 (ix86_function_arg): Likewise.
26537 (ix86_gimplify_va_arg): Likewise.
26538 (function_arg_32): Don't warn ABI change.
26539 (ix86_function_value): Pass true to type_natural_mode.
26540 (ix86_return_in_memory): Likewise.
26541 (ix86_struct_value_rtx): Removed.
26542 (TARGET_STRUCT_VALUE_RTX): Likewise.
26544 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26546 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26547 converting a conditional jump into a conditional return.
26549 2014-01-14 Richard Biener <rguenther@suse.de>
26551 PR tree-optimization/58921
26552 PR tree-optimization/59006
26553 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26554 hoisting invariant stmts.
26555 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26556 invariant loads on the preheader edge if possible.
26558 2014-01-14 Joey Ye <joey.ye@arm.com>
26560 * doc/plugin.texi (Building GCC plugins): Update to C++.
26562 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26564 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26565 (_mm_rcp28_round_ss): Ditto.
26566 (_mm_rsqrt28_round_sd): Ditto.
26567 (_mm_rsqrt28_round_ss): Ditto.
26568 (_mm_rcp28_sd): Ditto.
26569 (_mm_rcp28_ss): Ditto.
26570 (_mm_rsqrt28_sd): Ditto.
26571 (_mm_rsqrt28_ss): Ditto.
26572 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26573 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26574 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26575 (IX86_BUILTIN_RCP28SD): Ditto.
26576 (IX86_BUILTIN_RCP28SS): Ditto.
26577 (IX86_BUILTIN_RSQRT28SD): Ditto.
26578 (IX86_BUILTIN_RSQRT28SS): Ditto.
26579 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26580 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26581 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26582 (ix86_expand_special_args_builtin): Expand new FTYPE.
26583 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26584 (srcp14<mode>): Make insn unary.
26585 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26586 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26587 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26588 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26589 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26590 Fix rounding: make it SAE only.
26591 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26593 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26595 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26596 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26597 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26598 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26599 (round_saeonly_mask_scalar_operand4): Ditto.
26600 (round_saeonly_mask_scalar_op3): Ditto.
26601 (round_saeonly_mask_scalar_op4): Ditto.
26603 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26605 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26606 Implement -maltivec=be for vec_insert and vec_extract.
26608 2014-01-10 DJ Delorie <dj@redhat.com>
26610 * config/msp430/msp430.md (call_internal): Don't allow memory
26611 references with SP as the base register.
26612 (call_value_internal): Likewise.
26613 * config/msp430/constraints.md (Yc): New. For memory references
26614 that don't use SP as a base register.
26616 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26617 "an integer without a # prefix"
26618 * config/msp430/msp430.md (epilogue_helper): Use it.
26620 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26623 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26624 AVX512F gather builtins.
26625 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26626 on gather decls with INTEGER_TYPE masktype.
26627 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26628 directly into the builtin rather than hoisting it before loop.
26630 PR tree-optimization/59387
26631 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26632 (scev_const_prop): If folded_casts and type has undefined overflow,
26633 use force_gimple_operand instead of force_gimple_operand_gsi and
26634 for each added stmt if it is assign with
26635 arith_code_with_undefined_signed_overflow, call
26636 rewrite_to_defined_overflow.
26637 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26638 gimple-fold.h instead.
26639 (arith_code_with_undefined_signed_overflow,
26640 rewrite_to_defined_overflow): Moved to ...
26641 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26642 rewrite_to_defined_overflow): ... here. No longer static.
26643 Include gimplify-me.h.
26644 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26645 rewrite_to_defined_overflow): New prototypes.
26647 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26649 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26651 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26653 * builtins.c (get_object_alignment_2): Minor tweak.
26654 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26656 2014-01-13 Christian Bruel <christian.bruel@st.com>
26658 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26659 optimized non constant lengths.
26661 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26664 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26665 load as __atomic_load_N if possible.
26667 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26669 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26671 (rs6000_expand_builtin): Adjust call.
26673 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26676 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26677 * config/rs6000/rs6000.c: Include target-globals.h.
26678 (rs6000_set_current_function): Instead of doing target_reinit
26679 unconditionally, use save_target_globals_default_opts and
26680 restore_target_globals.
26682 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26684 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26685 (rs6000_expand_builtin): Handle mffs and mtfsf.
26686 (rs6000_init_builtins): Define mffs and mtfsf.
26687 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26688 (rs6000_mffs): New pattern.
26689 (rs6000_mtfsf): New pattern.
26691 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26693 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26694 Start narrowing with START. Apply candidate-use pair
26695 and check overall cost in narrowing.
26696 (iv_ca_prune): Pass new argument.
26698 2014-01-10 Jeff Law <law@redhat.com>
26700 PR middle-end/59743
26701 * ree.c (combine_reaching_defs): Ensure the defining statement
26702 occurs before the extension when optimizing extensions with
26703 different source and destination hard registers.
26705 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26708 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26709 vtables into the type inheritance graph.
26711 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26713 PR rtl-optimization/59754
26714 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26715 modes in the REGNO != REGNO case.
26717 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26719 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26721 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26723 PR tree-optimization/59745
26724 * tree-predcom.c (tree_predictive_commoning_loop): Call
26725 free_affine_expand_cache if giving up because components is NULL.
26727 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26728 GC in payload of target_globals struct instead of allocating them on
26729 the heap and the larger structs separately using GC.
26730 * target-globals.h (struct target_globals): Make regs, hard_regs,
26731 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26732 of GTY((skip)) and change type to void *.
26733 (reset_target_globals): Cast loads from those fields to corresponding
26736 2014-01-10 Steve Ellcey <sellcey@mips.com>
26739 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26740 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26741 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26743 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26746 * aarch64-modes.def (CC_Zmode): New flags mode.
26747 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26748 represents an equality.
26749 (aarch64_get_condition_code): Handle CC_Zmode.
26750 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26752 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26754 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26755 extraction in good case.
26757 2014-01-10 Richard Biener <rguenther@suse.de>
26759 PR tree-optimization/59374
26760 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26761 checking after SLP discovery. Mark stmts not participating
26762 in any SLP instance properly.
26764 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26766 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26767 when handling a SET rtx.
26769 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26771 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26772 (cortex-a57): Likewise.
26773 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26775 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26777 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26778 non-iwmmxt builtins.
26780 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26784 * ipa-devirt.c record_target_from_binfo): Take as argument
26785 stack of binfos and lookup matching one for virtual inheritance.
26786 (possible_polymorphic_call_targets_1): Update.
26788 2014-01-10 Huacai Chen <chenhc@lemote.com>
26790 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26791 kernel strings for Loongson-2E/2F/3A.
26793 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26795 PR middle-end/59670
26796 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26797 is_gimple_call before calling gimple_call_internal_p.
26799 2014-01-09 Steve Ellcey <sellcey@mips.com>
26801 * Makefile.in (TREE_FLOW_H): Remove.
26802 (TREE_SSA_H): Add file names from tree-flow.h.
26803 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26804 * tree.h: Remove tree-flow.h reference.
26805 * hash-table.h: Remove tree-flow.h reference.
26806 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26807 reference with tree-ssa-loop.h.
26809 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26811 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26812 default element-order behavior for -maltivec.
26813 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26814 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26815 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26816 when targeting big endian, at least for now.
26817 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26819 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26821 PR middle-end/47735
26822 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26823 var satisfies use_register_for_decl, just take into account type
26824 alignment, rather than decl alignment.
26826 PR tree-optimization/59622
26827 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26828 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26829 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26830 Don't devirtualize for inplace at all. For targets.length () == 1,
26831 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26833 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26835 * config/i386/i386.md (cpu): Remove the unused btver1.
26837 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26839 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26841 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26844 * tree-core.h (struct target_globals): New forward declaration.
26845 (struct tree_target_option): Add globals field.
26846 * tree.h (TREE_TARGET_GLOBALS): Define.
26847 (prepare_target_option_nodes_for_pch): New prototype.
26848 * target-globals.h (struct target_globals): Define even if
26849 !SWITCHABLE_TARGET.
26850 * tree.c (prepare_target_option_node_for_pch,
26851 prepare_target_option_nodes_for_pch): New functions.
26852 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26853 * config/i386/i386.c: Include target-globals.h.
26854 (ix86_set_current_function): Instead of doing target_reinit
26855 unconditionally, use save_target_globals_default_opts and
26856 restore_target_globals.
26858 2014-01-09 Richard Biener <rguenther@suse.de>
26860 PR tree-optimization/59715
26861 * tree-cfg.h (split_critical_edges): Declare.
26862 * tree-cfg.c (split_critical_edges): Export.
26863 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26865 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26867 * cfgexpand.c (expand_stack_vars): Optionally disable
26868 asan stack protection.
26869 (expand_used_vars): Likewise.
26870 (partition_stack_vars): Likewise.
26871 * asan.c (asan_emit_stack_protection): Optionally disable
26872 after return stack usage.
26873 (instrument_derefs): Optionally disable memory access instrumentation.
26874 (instrument_builtin_call): Likewise.
26875 (instrument_strlen_call): Likewise.
26876 (asan_protect_global): Optionally disable global variables protection.
26877 * doc/invoke.texi: Added doc for new options.
26878 * params.def: Added new options.
26879 * params.h: Likewise.
26881 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26883 PR rtl-optimization/59724
26884 * ifcvt.c (cond_exec_process_if_block): Don't call
26885 flow_find_head_matching_sequence with 0 longest_match.
26886 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26887 non-active insns if !stop_after.
26888 (try_head_merge_bb): Revert 2014-01-07 changes.
26890 2014-01-08 Jeff Law <law@redhat.com>
26892 * ree.c (get_sub_rtx): New function, extracted from...
26893 (merge_def_and_ext): Here.
26894 (combine_reaching_defs): Use get_sub_rtx.
26896 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26898 * cgraph.h (varpool_variable_node): Do not choke on null node.
26900 2014-01-08 Catherine Moore <clm@codesourcery.com>
26902 * config/mips/mips.md (simple_return): Attempt to use JRC
26904 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26906 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26908 PR rtl-optimization/59137
26909 * reorg.c (steal_delay_list_from_target): Call update_block for
26911 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26913 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26915 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26916 two duplicate entries.
26918 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26921 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26923 * config/mips/mips.c (mips_truncated_op_cost): New function.
26924 (mips_rtx_costs): Adjust test for BADDU.
26925 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26927 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26929 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26930 (*baddu_si): ...this new pattern.
26932 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26935 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26937 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26939 PR middle-end/57748
26940 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26942 (expand_expr, expand_normal): Adjust.
26943 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26944 inner_reference_p. Use inner_reference_p to expand inner references.
26945 (store_expr): Adjust.
26946 * cfgexpand.c (expand_call_stmt): Adjust.
26948 2014-01-08 Rong Xu <xur@google.com>
26950 * gcov-io.c (gcov_var): Move from gcov-io.h.
26951 (gcov_position): Ditto.
26952 (gcov_is_error): Ditto.
26953 (gcov_rewrite): Ditto.
26954 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26955 only part to libgcc/libgcov.h.
26957 2014-01-08 Marek Polacek <polacek@redhat.com>
26959 PR middle-end/59669
26960 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26962 2014-01-08 Marek Polacek <polacek@redhat.com>
26965 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26967 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26969 PR rtl-optimization/59649
26970 * stor-layout.c (get_mode_bounds): For BImode return
26971 0 and STORE_FLAG_VALUE.
26973 2014-01-08 Richard Biener <rguenther@suse.de>
26975 PR middle-end/59630
26976 * gimple.h (is_gimple_builtin_call): Remove.
26977 (gimple_builtin_call_types_compatible_p): New.
26978 (gimple_call_builtin_p): New overload.
26979 * gimple.c (is_gimple_builtin_call): Remove.
26980 (validate_call): Rename to ...
26981 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26982 check return types.
26983 (validate_type): New static function.
26984 (gimple_call_builtin_p): New overload and adjust.
26985 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26986 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26987 (gimple_fold_stmt_to_constant_1): Likewise.
26988 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26990 2014-01-08 Richard Biener <rguenther@suse.de>
26992 PR middle-end/59471
26993 * gimplify.c (gimplify_expr): Gimplify register-register type
26994 VIEW_CONVERT_EXPRs to separate stmts.
26996 2014-01-07 Jeff Law <law@redhat.com>
26998 PR middle-end/53623
26999 * ree.c (combine_set_extension): Handle case where source
27000 and destination registers in an extension insn are different.
27001 (combine_reaching_defs): Allow source and destination registers
27002 in extension to be different under limited circumstances.
27003 (add_removable_extension): Remove restriction that the
27004 source and destination registers in the extension are the same.
27005 (find_and_remove_re): Emit a copy from the extension's
27006 destination to its source after the defining insn if
27007 the source and destination registers are different.
27009 PR middle-end/59285
27010 * ifcvt.c (merge_if_block): If we are merging a block with more than
27011 one successor with a block with no successors, remove any BARRIER
27012 after the second block.
27014 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
27016 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27018 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
27021 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27022 for 14-bit register offsets when INT14_OK_STRICT is false.
27024 2014-01-07 Roland Stigge <stigge@antcom.de>
27025 Michael Meissner <meissner@linux.vnet.ibm.com>
27028 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27029 Only check TFmode for SPE constants. Don't check TImode or TDmode.
27031 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
27033 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27036 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
27038 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27039 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27040 rtx is const0_rtx or not.
27042 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
27045 * target-globals.c (save_target_globals): Remove this_fn_optab
27047 * toplev.c: Include optabs.h.
27048 (target_reinit): Temporarily restore the global options if another
27049 set of options are in force.
27051 2014-01-07 Jakub Jelinek <jakub@redhat.com>
27053 PR rtl-optimization/58668
27054 * cfgcleanup.c (flow_find_cross_jump): Don't count
27055 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
27056 to determine what is counted.
27057 (flow_find_head_matching_sequence): Use active_insn_p to determine
27059 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
27061 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27062 determine what is counted.
27064 PR tree-optimization/59643
27065 * tree-predcom.c (split_data_refs_to_components): If one dr is
27066 read and one write, determine_offset fails and the write isn't
27067 in the bad component, just put the read into the bad component.
27069 2014-01-07 Mike Stump <mikestump@comcast.net>
27070 Jakub Jelinek <jakub@redhat.com>
27073 * tree-core.h (struct tree_optimization_option): Change optabs
27074 type from unsigned char * to void *.
27075 * optabs.c (init_tree_optimization_optabs): Adjust
27076 TREE_OPTIMIZATION_OPTABS initialization.
27078 2014-01-06 Jakub Jelinek <jakub@redhat.com>
27081 * config/i386/i386.h (struct machine_function): Add
27082 no_drap_save_restore field.
27083 * config/i386/i386.c (ix86_save_reg): Use
27084 !cfun->machine->no_drap_save_restore instead of
27085 crtl->stack_realign_needed.
27086 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
27087 this function clears frame_pointer_needed. Set
27088 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
27089 and DRAP reg is needed.
27091 2014-01-06 Marek Polacek <polacek@redhat.com>
27094 * doc/implement-c.texi: Mention that other integer types are
27095 permitted as bit-field types in strictly conforming mode.
27097 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27099 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27100 is newly allocated.
27102 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27104 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27106 2014-01-06 Martin Jambor <mjambor@suse.cz>
27109 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27111 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27113 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27117 * var-tracking.c (add_stores): Preserve the value of the source even if
27118 we don't record the store.
27120 2014-01-06 Terry Guo <terry.guo@arm.com>
27122 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27124 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27127 * config/darwin.c (darwin_function_section): Adjust return values to
27128 correspond to optimisation changes made in r206070.
27130 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27132 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27133 from prefetch_block tune setting.
27134 (nocona_cost): Correct size of prefetch block to 64.
27136 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27138 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27139 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27140 used to save the static chain register in the computation of the offset
27141 from which the FP registers need to be restored.
27143 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27145 PR tree-optimization/59519
27146 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27147 ICE if get_current_def (current_new_name) is already non-NULL, as long
27148 as it is a phi result of some other phi in *new_exit_bb that has
27151 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27152 or vmovdqu* for misaligned_operand.
27153 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27154 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27155 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27156 aligned_mem for AVX512F masked aligned load and store builtins and for
27157 non-temporal moves.
27159 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27161 PR tree-optimization/59651
27162 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27163 Address range for negative step should be added by TYPE_SIZE_UNIT.
27165 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27167 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27168 overlapping registers also for registers other than the stack pointer.
27170 2014-01-03 Marek Polacek <polacek@redhat.com>
27173 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27176 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27179 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27182 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27183 (push splitter): Use <P:MODE_SIZE> instead of
27184 GET_MODE_SIZE (<P:MODE>mode).
27185 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27186 (mov -1, reg peephole2): Likewise.
27187 * config/i386/sse.md (*mov<mode>_internal,
27188 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27189 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27190 *<code><mode>3, *andnot<mode>3<mask_name>,
27191 <mask_codefor><code><mode>3<mask_name>): Likewise.
27192 * config/i386/subst.md (mask_mode512bit_condition,
27193 sd_mask_mode512bit_condition): Likewise.
27195 2014-01-02 Xinliang David Li <davidxl@google.com>
27197 PR tree-optimization/59303
27198 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27199 (dump_predicates): Better output format.
27200 (pred_equal_p): New function.
27201 (is_neq_relop_p): Ditto.
27202 (is_neq_zero_form_p): Ditto.
27203 (pred_expr_equal_p): Ditto.
27204 (pred_neg_p): Ditto.
27205 (simplify_pred): Ditto.
27206 (simplify_preds_2): Ditto.
27207 (simplify_preds_3): Ditto.
27208 (simplify_preds_4): Ditto.
27209 (simplify_preds): Ditto.
27210 (push_pred): Ditto.
27211 (push_to_worklist): Ditto.
27212 (get_pred_info_from_cmp): Ditto.
27213 (is_degenerated_phi): Ditto.
27214 (normalize_one_pred_1): Ditto.
27215 (normalize_one_pred): Ditto.
27216 (normalize_one_pred_chain): Ditto.
27217 (normalize_preds): Ditto.
27218 (normalize_cond_1): Remove function.
27219 (normalize_cond): Ditto.
27220 (is_gcond_subset_of): Ditto.
27221 (is_subset_of_any): Ditto.
27222 (is_or_set_subset_of): Ditto.
27223 (is_and_set_subset_of): Ditto.
27224 (is_norm_cond_subset_of): Ditto.
27225 (pred_chain_length_cmp): Ditto.
27226 (convert_control_dep_chain_into_preds): Type change.
27227 (find_predicates): Ditto.
27228 (find_def_preds): Ditto.
27229 (destroy_predicates_vecs): Ditto.
27230 (find_matching_predicates_in_rest_chains): Ditto.
27231 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27232 (is_pred_expr_subset): Ditto.
27233 (is_pred_chain_subset_of): Ditto.
27234 (is_included_in): Ditto.
27235 (is_superset_of): Ditto.
27237 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27239 Update copyright years.
27241 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27243 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27244 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27245 config/arc/arc.md, config/arc/arc.opt,
27246 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27247 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27248 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27249 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27250 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27251 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27252 vtable-verify.c, vtable-verify.h: Use the standard form for the
27255 2014-01-02 Tobias Burnus <burnus@net-b.de>
27257 * gcc.c (process_command): Update copyright notice dates.
27258 * gcov-dump.c: Ditto.
27260 * doc/cpp.texi: Bump @copying's copyright year.
27261 * doc/cppinternals.texi: Ditto.
27262 * doc/gcc.texi: Ditto.
27263 * doc/gccint.texi: Ditto.
27264 * doc/gcov.texi: Ditto.
27265 * doc/install.texi: Ditto.
27266 * doc/invoke.texi: Ditto.
27268 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27270 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27272 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27274 * config/i386/sse.md (*mov<mode>_internal): Guard
27275 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27277 PR rtl-optimization/59647
27278 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27279 new_rtx into UNSIGNED_FLOAT rtxes.
27281 Copyright (C) 2014 Free Software Foundation, Inc.
27283 Copying and distribution of this file, with or without modification,
27284 are permitted in any medium without royalty provided the copyright
27285 notice and this notice are preserved.