1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * regcprop.c: Include rtl-iter.h.
4 (kill_value): Take a const_rtx.
5 (kill_autoinc_value): Turn from being a for_each_rtx callback
6 to being a function that examines each subrtx itself.
7 (copyprop_hardreg_forward_1): Update accordingly.
9 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
11 * reg-stack.c: Include rtl-iter.h.
12 (subst_stack_regs_in_debug_insn): Delete.
13 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
14 instead of for_each_rtx.
16 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18 * lower-subreg.c (find_decomposable_subregs): Turn from being
19 a for_each_rtx callback to being a function that examines each
20 subrtx itself. Remove handling of null rtxes.
21 (decompose_multiword_subregs): Update accordingly.
23 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
25 * lower-subreg.c (adjust_decomposed_uses): Delete.
26 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
27 Remove handling of null rtxes.
29 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
31 * lower-subreg.c: Include rtl-iter.h.
32 (resolve_subreg_use): Turn from being a for_each_rtx callback
33 to being a function that examines each subrtx itself. Remove
34 handling of null rtxes.
35 (resolve_reg_notes, resolve_simple_move): Update accordingly.
36 (decompose_multiword_subregs): Likewise.
38 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
40 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
41 to being a function that examines each subrtx itself.
42 (simplify_using_condition, simplify_using_initial_values): Update
45 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
47 * loop-iv.c: Include rtl-iter.h.
48 (find_single_def_src): New function.
49 (replace_single_def_regs): Turn from being a for_each_rtx callback
50 to being a function that examines each subrtx itself.
51 (replace_in_expr, simplify_using_initial_values): Update accordingly.
53 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
55 * jump.c (eh_returnjump_p_1): Delete.
56 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
57 Remove handling of null rtxes.
59 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
61 * jump.c: Include rtl-iter.h.
62 (returnjump_p_1): Delete.
63 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
64 Remove handling of null rtxes.
66 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
68 * ira.c: Include rtl-iter.h.
69 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
70 to being a function that examines each subrtx itself. Remove
71 handling of null rtxes.
72 (update_equiv_regs): Update call accordingly.
74 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
76 * fwprop.c: Include rtl-iter.h.
77 (varying_mem_p): Turn from being a for_each_rtx callback to being
78 a function that examines each subrtx itself.
79 (propagate_rtx): Update accordingly.
81 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
83 * function.c: Include rtl-iter.h
84 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
85 callback to being a function that examines each subrtx itself.
86 Return the changed flag.
87 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
88 (instantiate_virtual_regs): Update calls accordingly.
90 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
92 * final.c: Include rtl-iter.h.
93 (mark_symbol_ref_as_used): Delete.
94 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
97 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
99 * emit-rtl.c: Include rtl-iter.h.
100 (find_auto_inc): Turn from being a for_each_rtx callback to being
101 a function that examines each subrtx itself. Assume the first operand
102 to an RTX_AUTOINC is the automodified register.
103 (try_split): Update call accordingly.
105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
107 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
108 Return a bool, inverting the result so that 0/false means "not ok".
109 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
111 (mem_loc_descriptor, add_const_value_attribute)
112 (resolve_addr_in_expr): Update calls accordingly.
114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
116 * dwarf2out.c: Include rtl-iter.h.
117 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
118 Remove unused data parameter. Return a bool, inverting the result
119 so that 0/false means "not ok".
120 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
121 instead of for_each_rtx.
123 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
125 * dse.c: Include rtl-iter.h.
126 (check_mem_read_rtx): Change void * parameter to real type.
128 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
129 for_each_rtx. Don't handle null rtxes.
131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
133 * df-problems.c: Include rtl-iter.h.
134 (find_memory): Turn from being a for_each_rtx callback to being
135 a function that examines each subrtx itself. Continue to look for
136 volatile references even after a nonvolatile one has been found.
137 (can_move_insns_across): Update calls accordingly.
139 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
141 * ddg.c (walk_mems_2, walk_mems_1): Delete.
142 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
143 to iterate over subrtxes. Return a bool rather than an int.
145 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
147 * ddg.c: Include rtl-iter.h.
148 (mark_mem_use_1): Rename to...
149 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
150 instead of for_each_rtx.
151 (mem_read_insn_p): Update accordingly.
153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
155 * cse.c (change_cc_mode_args): Delete.
156 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
157 a function that examines each subrtx itself. Take the fields of
158 change_cc_mode_args as argument and return void.
159 (cse_change_cc_mode_insn): Update calls accordingly.
161 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
163 * cse.c (is_dead_reg): Change argument to const_rtx.
164 (dead_debug_insn_data): Delete.
165 (is_dead_debug_insn): Expand commentary. Turn from being a
166 for_each_rtx callback to being a function that examines
167 each subrtx itself. Take the fields of dead_debug_insn_data
169 (delete_trivially_dead_insns): Update call accordingly.
171 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
173 * cse.c (check_for_label_ref): Move earlier in file. Turn from
174 being a for_each_rtx callback to being a function that examines
176 (cse_extended_basic_block): Update call accordingly.
178 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
180 * cse.c (check_dependence_data): Delete.
181 (check_dependence): Change from being a for_each_rtx callback to being
182 a function that examines all subrtxes itself. Don't handle null rtxes.
183 (invalidate): Update call accordingly.
185 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
187 * cse.c: Include rtl-iter.h.
188 (approx_reg_cost_1): Delete.
189 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
190 Don't handle null rtxes.
192 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
194 * cfgcleanup.c: Include rtl-iter.h.
195 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
196 to being a function that examines each subrtx itself.
197 (thread_jump): Update accordingly.
199 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
201 * combine-stack-adj.c: Include rtl-iter.h.
202 (record_stack_refs_data): Delete.
203 (record_stack_refs): Turn from being a for_each_rtx callback
204 to being a function that examines each subrtx itself.
205 Take a pointer to the reflist. Invert sense of return value
206 so that true means success and false means failure. Don't
208 (combine_stack_adjustments_for_block): Update accordingly.
210 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
212 * combine.c (record_truncated_value): Turn from being a for_each_rtx
213 callback to a function that takes an rtx and returns a bool
214 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
217 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
219 * combine.c: Include rtl-iter.h.
220 (unmentioned_reg_p_1): Delete.
221 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
222 Don't handle null rtxes.
224 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
226 * calls.c: Include rtl-iter.h.
227 (internal_arg_pointer_based_exp_1): Delete.
228 (internal_arg_pointer_based_exp): Take a const_rtx.
229 Use FOR_EACH_SUBRTX to iterate over subrtxes.
231 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
233 * caller-save.c: Include rtl-iter.h.
234 (add_used_regs_1): Delete.
235 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
236 to iterate over subrtxes. Assert that any remaining pseudos
239 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
241 * bt-load.c: Include rtl-iter.h.
242 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
243 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
244 to iterate over subrtxes.
245 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
246 find_btr_use rather than btr_referenced_p.
248 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
250 * alias.c: Include rtl-iter.h.
251 (refs_newer_value_cb): Delete.
252 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
254 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
256 * rtl-iter.h: New file.
257 * rtlanal.c: Include it.
258 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
259 (generic_subrtx_iterator <T>::add_single_to_queue)
260 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
261 (generic_subrtx_iterator <T>::free_array): New functions.
262 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
263 (generic_subrtx_iterator <const_rtx_accessor>)
264 (generic_subrtx_iterator <rtx_var_accessor>
265 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
266 (setup_reg_subrtx_bounds): New function.
267 (init_rtlanal): Call it.
269 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
272 * config/sh/sh.md (ashlsi3): Handle negative shift count for
274 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
276 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
278 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
280 2014-08-27 David Malcolm <dmalcolm@redhat.com>
282 * rtl.h (JUMP_LABEL_AS_INSN): New.
284 2014-08-27 David Malcolm <dmalcolm@redhat.com>
286 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
288 (alloc_EXPR_LIST): Strengthen return type from rtx to
290 (remove_free_EXPR_LIST_node): Likewise for param.
291 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
292 from rtx to rtx_expr_list *.
293 * sched-int.h (struct deps_desc): Strengthen fields
294 "pending_read_mems" and "pending_write_mems" from rtx to
297 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
298 rtx to rtx_expr_list *.
299 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
300 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
302 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
303 from rtx to rtx_expr_list *.
304 * loop-iv.c (simplify_using_initial_values): Strengthen local
305 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
306 "pnote_next" from rtx * to rtx_expr_list **.
307 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
308 param "exprp" from rtx * to rtx_expr_list **.
309 (add_insn_mem_dependence): Strengthen local "mem_list" from
310 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
312 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
313 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
314 param "old_mems_p" from rtx * to rtx_expr_list **.
315 * var-tracking.c (struct adjust_mem_data): Strengthen field
316 "side_effects" from rtx to rtx_expr_list *.
317 (adjust_insn): Replace NULL_RTX with NULL when assigning to
319 (prepare_call_arguments): Likewise.
321 2014-08-27 David Malcolm <dmalcolm@redhat.com>
323 * function.h (struct rtl_data): Strengthen field
324 "x_stack_slot_list" from rtx to rtx_expr_list *.
326 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
327 when assigning to stack_slot_list.
329 2014-08-27 David Malcolm <dmalcolm@redhat.com>
331 * function.h (struct rtl_data): Strengthen field
332 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
333 * rtl.h (remove_node_from_expr_list): Strengthen second param from
334 rtx * to rtx_expr_list **.
336 * cfgbuild.c (make_edges): In loop over
337 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
338 rtx_expr_list *, and use methods of the latter class to clarify
340 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
341 rtx_expr_list *, and use methods of the latter class to clarify
343 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
344 * reload1.c (set_initial_label_offsets): Likewise for local "x".
345 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
346 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
347 to rtx_expr_list *. Use methods of the latter class to clarify
350 2014-08-27 David Malcolm <dmalcolm@redhat.com>
352 * function.h (struct expr_status): Strengthen field
353 "x_forced_labels" from rtx to rtx_expr_list *.
355 * cfgbuild.c (make_edges): Split local "x" into two locals,
356 strengthening one from rtx to rtx_expr_list *, and using methods
358 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
359 loop over forced_labels, introduce strengthen it from rtx to
360 rtx_expr_list *, using methods to clarify the code.
361 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
362 to rtx_expr_list *, using methods of said class to clarify the
364 * reload1.c (set_initial_label_offsets): Split local "x" into two
365 per-loop variables, strengthening the first from rtx to
366 rtx_expr_list * and using methods.
368 2014-08-27 David Malcolm <dmalcolm@redhat.com>
370 * coretypes.h (class rtx_expr_list): Add forward declaration.
371 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
372 * gengenrtl.c (special_rtx): Add EXPR_LIST.
373 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
374 invariant: GET_CODE (X) == EXPR_LIST.
375 (is_a_helper <rtx_expr_list *>::test): New.
376 (rtx_expr_list::next): New.
377 (rtx_expr_list::element): New.
378 (gen_rtx_EXPR_LIST): New.
380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
382 * varasm.c (mark_constants): Convert a GET_CODE check into a
383 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
384 Use methods of rtx_sequence to clarify the code.
386 2014-08-27 David Malcolm <dmalcolm@redhat.com>
388 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
389 local "seq" via a checked cast, and use methods of rtx_sequence
390 to simplify the code.
392 2014-08-27 David Malcolm <dmalcolm@redhat.com>
394 * resource.c (mark_referenced_resources): Strengthen local
395 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
396 using methods of rtx_sequence to clarify the code.
397 (find_dead_or_set_registers): Within the switch statement, convert
398 a GET_CODE check to a dyn_cast, introducing local "seq". Within
399 the JUMP_P handling, introduce another local "seq", adding a
400 checked cast to rtx_sequence *. In both cases, use methods of
401 rtx_sequence to clarify the code.
402 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
403 via a checked cast, and use methods of rtx_sequence to simplify
406 2014-08-27 David Malcolm <dmalcolm@redhat.com>
408 * reorg.c (redundant_insn): In two places in the function, replace
409 a check of GET_CODE with a dyn_cast, introducing local "seq", and
410 usings methods of rtx_sequence to clarify the code.
412 2014-08-27 David Malcolm <dmalcolm@redhat.com>
414 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
415 local "seq" with a checked cast, and use methods of rtx_sequence
418 2014-08-27 David Malcolm <dmalcolm@redhat.com>
420 * function.c (contains): Introduce local "seq" for PATTERN (insn),
421 with a checked cast, in the region for where we know it's a
422 SEQUENCE. Use methods of rtx_sequence.
424 2014-08-27 David Malcolm <dmalcolm@redhat.com>
426 * final.c (get_attr_length_1): Replace GET_CODE check with a
427 dyn_cast, introducing local "seq" and the use of methods of
429 (shorten_branches): Likewise, introducing local "body_seq".
430 Strengthen local "inner_insn" from rtx to rtx_insn *.
431 (reemit_insn_block_notes): Replace GET_CODE check with a
432 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
433 Use methods of rtx_sequence.
434 (final_scan_insn): Likewise, introducing local "seq" for when
435 "body" is known to be a SEQUENCE, using its methods.
437 2014-08-27 David Malcolm <dmalcolm@redhat.com>
439 * except.c (can_throw_external): Strengthen local "seq" from rtx
440 to rtx_sequence *. Use methods of rtx_sequence.
441 (insn_nothrow_p): Likewise.
443 2014-08-27 David Malcolm <dmalcolm@redhat.com>
445 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
446 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
447 Use methods of rtx_sequence.
448 (scan_trace): Likewise for local "pat".
450 2014-08-27 David Malcolm <dmalcolm@redhat.com>
452 * coretypes.h (class rtx_sequence): Add forward declaration.
453 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
454 invariant: GET_CODE (X) == SEQUENCE.
455 (is_a_helper <rtx_sequence *>::test): New.
456 (is_a_helper <const rtx_sequence *>::test): New.
457 (rtx_sequence::len): New.
458 (rtx_sequence::element): New.
459 (rtx_sequence::insn): New.
461 2014-08-27 David Malcolm <dmalcolm@redhat.com>
463 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
465 (alloc_INSN_LIST): Strengthen return type from rtx to
467 (copy_INSN_LIST): Likewise for return type and param.
468 (concat_INSN_LIST): Likewise for both params and return type.
469 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
470 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
471 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
472 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
474 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
475 "implicit_sets", "control_uses", "clobbers" from rtx to
477 (struct deps_desc): Likewise for fields "pending_read_insns",
478 "pending_write_insns", "pending_jump_insns",
479 "last_pending_memory_flush", "last_function_call",
480 "last_function_call_may_noreturn", "sched_before_next_call",
481 "sched_before_next_jump".
482 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
483 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
485 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
486 from rtx to rtx_insn_list *.
487 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
490 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
492 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
494 (queue_insn): Likewise for local "link".
495 (struct haifa_saved_data): Strengthen field "insn_queue" from
496 rtx * to rtx_insn_list **.
497 (save_backtrack_point): Update allocation of save->insn_queue to
498 reflect the strengthening of elements from rtx to rtx_insn_list *.
499 (queue_to_ready): Strengthen local "link" from rtx to
500 rtx_insn_list *; use methods "next" and "insn" when traversing the
502 (early_queue_to_ready): Likewise for locals "link", "next_link",
504 (schedule_block): Update allocation of insn_queue to reflect the
505 strengthening of elements from rtx to rtx_insn_list *. Strengthen
506 local "link" from rtx to rtx_insn_list *, and use methods when
508 (add_to_speculative_block): Strengthen locals "twins" and
509 "next_node" from rtx to rtx_insn_list *, and use methods when
510 working with them. Strengthen local "twin" from rtx to
511 rtx_insn *, eliminating a checked cast.
512 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
513 from rtx to rtx_insn_list *, and use methods when working with
516 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
517 from rtx to rtx_insn_list *, adding a checked cast.
518 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
520 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
521 "newlink" from rtx to rtx_insn_list *. Strengthen local
522 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
523 from rtx to rtx_insn *.
524 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
525 from rtx to rtx_insn_list *. Use methods of the latter class.
526 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
527 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
528 (remove_free_INSN_LIST_node): Strengthen return type and local
529 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
530 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
531 rtx_insn_list *, using "insn" method.
533 * sched-deps.c (add_dependence_list): Strengthen param "list"
534 from rtx to rtx_insn_list *, and use methods when working with it.
535 (add_dependence_list_and_free): Strengthen param "listp" from
536 rtx * to rtx_insn_list **.
537 (remove_from_dependence_list): Strenghten param "listp" from rtx *
538 to rtx_insn_list **, and use methods when working with *listp.
539 (remove_from_both_dependence_lists): Strengthen param "listp" from
540 rtx * to rtx_insn_list **
541 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
542 to rtx_insn_list **. Eliminate local "link", in favor of two new
543 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
545 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
546 by introducing local "cond_deps".
547 (remove_from_deps): Strengthen param "insn" from rtx to
550 * sched-rgn.c (concat_insn_mem_list): Strengthen param
551 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
552 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
553 Use methods of rtx_insn_list.
555 * store-motion.c (struct st_expr): Strengthen fields
556 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
557 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
559 (find_moveable_store): Split out "tmp" into multiple more-tightly
560 scoped locals. Use methods of rtx_insn_list *.
561 (compute_store_table): Strengthen local "tmp" from rtx to
562 rtx_insn *. Use methods of rtx_insn_list *.
564 2014-08-27 David Malcolm <dmalcolm@redhat.com>
566 * coretypes.h (class rtx_insn_list): Add forward declaration.
567 * rtl.h (class rtx_insn_list): New subclass of rtx_def
568 (is_a_helper <rtx_insn_list *>::test): New.
569 (rtx_insn_list::next): New.
570 (rtx_insn_list::insn): New.
571 (gen_rtx_INSN_LIST): Add prototype.
572 * emit-rtl.c (gen_rtx_INSN_LIST): New.
573 * gengenrtl.c (special_rtx): Add INSN_LIST.
575 2014-08-27 David Malcolm <dmalcolm@redhat.com>
577 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
578 "prev" from rtx to rtx_insn *.
580 2014-08-27 David Malcolm <dmalcolm@redhat.com>
582 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
583 functions. Require merely an rtx for now, not an rtx_insn *.
584 (BLOCK_FOR_INSN): Likewise.
585 (INSN_LOCATION): Likewise.
586 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
588 2014-08-27 David Malcolm <dmalcolm@redhat.com>
590 * rtl.h (PATTERN): Convert this macro into a pair of inline
591 functions, for now, requiring const_rtx and rtx.
593 2014-08-27 David Malcolm <dmalcolm@redhat.com>
595 * target.def (unwind_emit): Strengthen param "insn" from rtx to
597 (final_postscan_insn): Likewise.
598 (adjust_cost): Likewise.
599 (adjust_priority): Likewise.
600 (variable_issue): Likewise.
601 (macro_fusion_pair_p): Likewise.
602 (dfa_post_cycle_insn): Likewise.
603 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
604 (first_cycle_multipass_issue): Likewise.
605 (dfa_new_cycle): Likewise.
606 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
607 (speculate_insn): Likewise for param "insn".
608 (gen_spec_check): Likewise for params "insn" and "label".
609 (get_insn_spec_ds): Likewise for param "insn".
610 (get_insn_checked_ds): Likewise.
611 (dispatch_do): Likewise.
612 (dispatch): Likewise.
613 (cannot_copy_insn_p): Likewise.
614 (invalid_within_doloop): Likewise.
615 (legitimate_combined_insn): Likewise.
619 * doc/tm.texi: Automatically updated to reflect changes to
622 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
624 (schedule_block): Likewise.
625 (sched_init): Likewise.
626 (sched_speculate_insn): Strengthen param "insn" from rtx to
628 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
630 * hooks.c (hook_bool_rtx_true): Rename to...
631 hook_bool_rtx_insn_true): ...this, and strengthen first param from
633 (hook_constcharptr_const_rtx_null): Rename to...
634 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
635 first param from const_rtx to const rtx_insn *.
636 (hook_bool_rtx_int_false): Rename to...
637 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
638 param from rtx to rtx_insn *.
639 (hook_void_rtx_int): Rename to...
640 (hook_void_rtx_insn_int): ...this, and strengthen first param from
643 * hooks.h (hook_bool_rtx_true): Rename to...
644 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
646 (hook_bool_rtx_int_false): Rename to...
647 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
648 param from rtx to rtx_insn *.
649 (hook_void_rtx_int): Rename to...
650 (hook_void_rtx_insn_int): ...this, and strengthen first param from
652 (hook_constcharptr_const_rtx_null): Rename to...
653 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
654 first param from const_rtx to const rtx_insn *.
656 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
657 and local "prev" from rtx to rtx_insn *.
659 * sched-int.h (sched_speculate_insn): Strengthen first param from
662 * sel-sched.c (create_speculation_check): Likewise for local "label".
663 * targhooks.c (default_invalid_within_doloop): Strengthen param
664 "insn" from const_rtx to const rtx_insn *.
665 * targhooks.h (default_invalid_within_doloop): Strengthen param
666 from const_rtx to const rtx_insn *.
668 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
669 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
671 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
673 (arc_invalid_within_doloop): Likewise, with const.
675 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
676 (arm_cannot_copy_insn_p): Likewise for param "insn".
677 (arm_unwind_emit): Likewise.
679 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
682 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
683 (c6x_variable_issue): Likewise. Removed now-redundant checked
685 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
687 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
688 Likewise for param "insn".
689 (epiphany_mode_after): Likewise.
690 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
691 params "insn", "dep_insn".
692 (epiphany_mode_needed): Likewise for param "insn".
693 (epiphany_mode_after): Likewise.
695 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
696 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
697 (ix86_avx_u128_mode_needed): Likewise.
698 (ix86_i387_mode_needed): Likewise.
699 (ix86_mode_needed): Likewise.
700 (ix86_avx_u128_mode_after): Likewise.
701 (ix86_mode_after): Likewise.
702 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
703 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
704 (ix86_adjust_priority): Likewise for param "insn".
705 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
706 (do_dispatch): Likewise.
707 (has_dispatch): Likewise.
708 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
710 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
711 reflect renaming of default hook implementation from
712 hook_constcharptr_const_rtx_null to
713 hook_constcharptr_const_rtx_insn_null.
714 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
716 (ia64_variable_issue): Likewise for param "insn".
717 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
718 (ia64_dfa_new_cycle): Likewise.
719 (ia64_get_insn_spec_ds): Likewise.
720 (ia64_get_insn_checked_ds): Likewise.
721 (ia64_speculate_insn): Likewise.
722 (ia64_gen_spec_check): Likewise for params "insn", "label".
723 (ia64_asm_unwind_emit): Likewise for param "insn".
725 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
727 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
729 (m68k_sched_variable_issue): Likewise for param "insn".
731 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
734 * config/microblaze/microblaze.c (microblaze_adjust_cost):
735 Likewise for params "insn", "dep".
737 * config/mips/mips.c (mips_adjust_cost): Likewise.
738 (mips_variable_issue): Likewise for param "insn".
739 (mips_final_postscan_insn): Likewise.
741 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
742 for params "insn", "dep".
744 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
746 (pa_adjust_priority): Likewise for param "insn".
748 * config/picochip/picochip.c (picochip_sched_adjust_cost):
749 Likewise for params "insn", "dep_insn".
751 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
753 (rs6000_variable_issue): Likewise.
754 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
755 (rs6000_debug_adjust_cost): Likewise.
756 (rs6000_adjust_priority): Likewise for param "insn".
757 (rs6000_use_sched_lookahead_guard): Likewise.
758 (get_next_active_insn): Likewise for return type and both params.
759 (redefine_groups): Likewise for params "prev_head_insn", "tail"
760 and locals "insn", "next_insn".
761 (pad_groups): Likewise.
763 * config/s390/s390.c (s390_adjust_priority): Likewise for param
765 (s390_cannot_copy_insn_p): Likewise.
766 (s390_sched_variable_issue): Likewise for third param, eliminating
768 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
769 default hook implementation from hook_constcharptr_const_rtx_null
770 to hook_constcharptr_const_rtx_insn_null.
772 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
773 from rtx to rtx_insn *.
774 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
775 (sh_variable_issue): Likewise for param "insn".
776 (sh_dfa_new_cycle): Likewise.
777 (sh_mode_needed): Likewise.
778 (sh_mode_after): Likewise.
780 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
781 params "insn", "dep_insn".
782 (hypersparc_adjust_cost): Likewise.
783 (sparc_adjust_cost): Likewise.
785 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
786 param, eliminated checked cast.
787 (spu_sched_adjust_cost): Likewise for first and third params.
789 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
790 params "insn" and "dep_insn" from rtx to rtx_insn *.
792 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
794 2014-08-27 David Malcolm <dmalcolm@redhat.com>
796 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
797 (set_is_load_p): ...this, updating to work on a SET pattern rather
799 (is_store_insn): Rename to...
800 (set_is_store_p): ...this, updating to work on a SET pattern
802 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
803 top of function to where it is needed. Rewrite the bogus
804 condition that checks for "insn" and "dep" being PARALLEL to
805 instead use single_set, introducing locals "insn_set" and
806 "dep_set". Given that we only ever returned "cost" for a non-pair
807 of SETs, bail out early if we don't have a pair of SET.
808 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
809 use the new locals "insn_set" and "dep_set", and update calls to
810 is_load_insn and is_store_insn to be calls to set_is_load_p and
813 2014-08-27 Guozhi Wei <carrot@google.com>
816 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
817 amount before using it.
819 2014-08-27 Richard Biener <rguenther@suse.de>
821 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
822 get_maxval_strlen inside a more useful API.
823 (gimple_fold_builtin_with_strlen): Remove and fold into ...
824 (gimple_fold_builtin): ... caller.
825 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
826 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
827 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
828 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
829 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
830 gimple_fold_builtin_sprintf): Adjust to compute maxval
833 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
836 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
838 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
840 Anna Tikhonova <anna.tikhonova@intel.com>
841 Ilya Tocar <ilya.tocar@intel.com>
842 Andrey Turetskiy <andrey.turetskiy@intel.com>
843 Ilya Verbin <ilya.verbin@intel.com>
844 Kirill Yukhin <kirill.yukhin@intel.com>
845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
848 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
849 Use `concat_tg_mode' attribute to determine asm register size.
851 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
852 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
853 Anna Tikhonova <anna.tikhonova@intel.com>
854 Ilya Tocar <ilya.tocar@intel.com>
855 Andrey Turetskiy <andrey.turetskiy@intel.com>
856 Ilya Verbin <ilya.verbin@intel.com>
857 Kirill Yukhin <kirill.yukhin@intel.com>
858 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
861 (define_mode_iterator VI48_AVX512VL): New.
862 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
863 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
864 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
865 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
866 with VI1): Change mode iterator.
867 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
868 with VI_ULOADSTORE_BW_AVX512VL): New.
869 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
870 with VI_ULOADSTORE_F_AVX512VL): Ditto.
871 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
872 with VI1): Change mode iterator.
873 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
874 with VI_ULOADSTORE_BW_AVX512VL): New.
875 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
876 with VI_ULOADSTORE_F_AVX512VL): Ditto.
877 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
878 with VI1): Change mode iterator.
879 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
880 with VI_ULOADSTORE_BW_AVX512VL): New.
881 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
882 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
883 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
884 (define_insn "<avx512>_storedqu<mode>_mask" with
886 (define_insn "<avx512>_storedqu<mode>_mask" with
887 VI12_AVX512VL): Ditto.
889 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
891 Anna Tikhonova <anna.tikhonova@intel.com>
892 Ilya Tocar <ilya.tocar@intel.com>
893 Andrey Turetskiy <andrey.turetskiy@intel.com>
894 Ilya Verbin <ilya.verbin@intel.com>
895 Kirill Yukhin <kirill.yukhin@intel.com>
896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
899 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
900 (define_mode_iterator VI48_AVX512BW): New.
901 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
902 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
903 with VI48_AVX2_48_AVX512F): New.
904 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
905 with VI2_AVX512VL): Ditto.
907 2014-08-27 Richard Biener <rguenther@suse.de>
910 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
911 (fold_builtin_3): Do not fold strcat_chk here.
912 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
914 (gimple_fold_builtin): Fold strcat_chk here.
916 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
918 * dwarf2out.h (dwarf2out_decl): Remove prototype.
919 * dwarf2out.c (dwarf2out_decl): Make static.
921 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
923 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
925 2014-08-26 David Malcolm <dmalcolm@redhat.com>
927 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
928 from rtx to rtx_insn *.
929 (cselib_lookup_from_insn): Likewise for final param.
930 (cselib_subst_to_values_from_insn): Likewise.
931 (cselib_add_permanent_equiv): Likewise.
933 * cselib.c (cselib_current_insn): Likewise for this variable.
934 (cselib_subst_to_values_from_insn): Likewise for param "insn".
935 (cselib_lookup_from_insn): Likewise.
936 (cselib_add_permanent_equiv): Likewise for param "insn" and local
937 "save_cselib_current_insn".
938 (cselib_process_insn): Replace use of NULL_RTX with NULL.
940 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
941 from rtx to rtx_insn *.
943 2014-08-26 David Malcolm <dmalcolm@redhat.com>
945 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
948 2014-08-26 David Malcolm <dmalcolm@redhat.com>
950 * df.h (df_dump_insn_problem_function): Strengthen first param of
951 this callback from const_rtx to const rtx_insn *.
952 (struct df_insn_info): Strengthen field "insn" from rtx to
954 (DF_REF_INSN): Eliminate this function, reinstating the older
956 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
957 (df_reg_defined): Likewise.
958 (df_find_use): Likewise.
959 (df_reg_used): Likewise.
960 (df_dump_insn_top): Strengthen param 1 from const_rtx to
962 (df_dump_insn_bottom): Likewise.
963 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
964 (df_insn_debug_regno): Likewise.
965 (debug_df_insn): Likewise.
966 (df_rd_simulate_one_insn): Likewise for param 2.
967 (df_word_lr_simulate_defs): Likewise for param 1.
968 (df_word_lr_simulate_uses): Likewise.
969 (df_md_simulate_one_insn): Likewise for param 2.
970 (df_simulate_find_noclobber_defs): Likewise for param 1.
971 (df_simulate_find_defs): Likewise.
972 (df_simulate_defs): Likewise.
973 (df_simulate_uses): Likewise.
974 (df_simulate_one_insn_backwards): Likewise for param 2.
975 (df_simulate_one_insn_forwards): Likewise.
976 (df_uses_create): Likewise for param 2.
977 (df_insn_create_insn_record): Likewise for param 1.
978 (df_insn_delete): Likewise.
979 (df_insn_rescan): Likewise.
980 (df_insn_rescan_debug_internal): Likewise.
981 (df_insn_change_bb): Likewise.
982 (df_notes_rescan): Likewise.
983 * rtl.h (remove_death): Likewise for param 2.
984 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
986 * sched-int.h (reemit_notes): Strengthen param from rtx to
988 * valtrack.h (propagate_for_debug): Likewise for param 1.
990 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
991 local "tmp_rtx" from const_rtx to const rtx_insn *.
992 * combine.c (remove_death): Strengthen param "insn" from rtx to
994 (move_deaths): Likewise for local "where_dead".
995 * cse.c (delete_trivially_dead_insns): Introduce local
996 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
997 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
999 (df_reg_defined): Likewise.
1000 (df_find_use): Likewise.
1001 (df_reg_used): Likewise.
1002 (df_dump_insn_problem_data): Strengthen param "insn" from
1003 const_rtx to const rtx_insn *.
1004 (df_dump_insn_top): Likewise.
1005 (df_dump_insn_bottom): Likewise.
1006 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1007 (df_insn_debug_regno): Likewise.
1008 (debug_df_insn): Likewise.
1009 (DF_REF_INSN): Delete.
1010 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1011 from rtx to rtx_insn *.
1012 (df_chain_insn_top_dump): Strengthen param "insn" from
1013 const_rtx to const rtx_insn *.
1014 (df_chain_insn_bottom_dump): Likewise.
1015 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1017 (df_word_lr_simulate_uses): Likewise.
1018 (df_print_note): Likewise.
1019 (df_remove_dead_and_unused_notes): Likewise.
1020 (df_set_unused_notes_for_mw): Likewise.
1021 (df_set_dead_notes_for_mw): Likewise.
1022 (df_create_unused_note): Likewise.
1023 (df_simulate_find_defs): Likewise.
1024 (df_simulate_find_uses): Likewise.
1025 (df_simulate_find_noclobber_defs): Likewise.
1026 (df_simulate_defs): Likewise.
1027 (df_simulate_uses): Likewise.
1028 (df_simulate_one_insn_backwards): Likewise.
1029 (df_simulate_one_insn_forwards): Likewise.
1030 (df_md_simulate_one_insn): Likewise.
1031 * df-scan.c (df_uses_create): Likewise.
1032 (df_insn_create_insn_record): Likewise.
1033 (df_insn_delete): Likewise.
1034 (df_insn_rescan): Likewise.
1035 (df_insn_rescan_debug_internal): Likewise.
1036 (df_insn_change_bb): Likewise.
1037 (df_notes_rescan): Likewise.
1038 (df_refs_add_to_chains): Likewise.
1039 (df_insn_refs_verify): Likewise.
1040 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1041 when invoking df_insn_delete.
1042 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1043 (set_unique_reg_note): Add checked cast.
1044 * final.c (cleanup_subreg_operands): Likewise.
1045 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1046 "insn" from rtx to rtx_insn *.
1047 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1048 "last" from rtx to rtx_insn *.
1049 * ira-emit.c (change_regs_in_insn): New function.
1050 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1051 Invoke change_regs_in_insn rather than change_regs.
1052 * ira.c (update_equiv_regs): Strengthen locals "insn",
1053 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1054 for_each_rtx_in_insn rather than for_each_rtx.
1055 * recog.c (confirm_change_group): Add checked casts.
1056 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1058 (peep2_fill_buffer): Add checked cast.
1059 * rtlanal.c (remove_note): Likewise.
1060 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1061 locals "next" "end" from rtx to rtx_insn *.
1063 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1065 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1067 (struct reg_use_data): Likewise for field "insn".
1068 (insn_cost): Likewise for param.
1069 (real_insn_for_shadow): Likewise for return type and param.
1070 (increase_insn_priority): Likewise for param 1.
1071 (debug_dependencies): Likewise for both params.
1073 * haifa-sched.c (insn_delay): Likewise for param "insn".
1074 (real_insn_for_shadow): Likewise for return type and param "insn".
1075 (update_insn_after_change): Likewise for param "insn".
1076 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1078 (insn_cost): Likewise for param "insn".
1079 (increase_insn_priority): Likewise.
1080 (calculate_reg_deaths): Likewise.
1081 (setup_insn_reg_pressure_info): Likewise.
1082 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1083 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1084 (model_recompute): Likewise.
1085 (must_restore_pattern_p): Likewise for param "next".
1086 (model_excess_cost): Likewise for param "insn".
1087 (queue_remove): Likewise.
1088 (adjust_priority): Likewise for param "prev".
1089 (update_register_pressure): Likewise for param "insn".
1090 (setup_insn_max_reg_pressure): Likewise for local "insn".
1091 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1092 (model_add_to_schedule): Likewise.
1093 (model_reset_queue_indices): Likewise for local "insn".
1094 (unschedule_insns_until): Strengthen local "recompute_vec" from
1095 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1096 "con" from rtx to rtx_insn *.
1097 (restore_last_backtrack_point): Likewise for both locals "x". Add
1099 (estimate_insn_tick): Likewise for param "insn".
1100 (commit_schedule): Likewise for params "prev_head", "tail" and
1102 (verify_shadows): Likewise for locals "i1", "i2".
1103 (dump_insn_stream): Likewise for params "head", "tail" and locals
1104 "next_tail", "insn".
1105 (schedule_block): Likewise for locals "insn", "x". Add a checked
1107 (fix_inter_tick): Likewise for params "head", "tail".
1108 (create_check_block_twin): Likewise for local "jump".
1109 (haifa_change_pattern): Likewise for param "insn".
1110 (haifa_speculate_insn): Likewise.
1111 (dump_new_block_header): Likewise for params "head", "tail".
1112 (fix_jump_move): Likewise for param "jump".
1113 (move_block_after_check): Likewise.
1114 (sched_init_insn_luid): Likewise for param "insn".
1115 (sched_init_luids): Likewise for local "insn".
1116 (insn_luid): Likewise for param "insn".
1117 (init_h_i_d): Likewise.
1118 (haifa_init_h_i_d): Likewise for local "insn".
1119 (haifa_init_insn): Likewise for param "insn".
1120 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1122 (create_insn_reg_use): Likewise for param "insn".
1123 (setup_insn_reg_uses): Likewise. Add a checked cast.
1124 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1125 "tail" from rtx to rtx_insn *.
1126 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1127 "insn", "next_tail".
1129 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1131 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1132 from rtx to rtx_insn *.
1133 (model_add_to_schedule): Likewise for locals "start", "end",
1136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1138 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1140 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1141 "to" and locals "insn", "next", "copy". Remove now-redundant
1144 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1146 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1147 rtx_insn * and param 4 from rtx * to rtx_insn **.
1148 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1149 param 2 from rtx * to rtx_insn **.
1151 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1152 rtx_insn * and final param from rtx * to rtx_insn **.
1154 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1155 from rtx to rtx_insn *.
1156 (try_head_merge_bb): Likewise for both locals named "move_upto".
1157 * df-problems.c (can_move_insns_across): Likewise for params
1158 "from", "to", "across_from", "across_to" and locals "insn",
1159 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1161 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1162 from rtx to rtx_insn *.
1163 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1164 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1165 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1167 (noce_try_abs): Likewise.
1168 (noce_get_condition): Likewise for param "jump". Strengthen param
1169 "earliest" from rtx * to rtx_insn **.
1170 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1172 (find_cond_trap): Likewise.
1173 (dead_or_predicable): Likewise for local "earliest".
1174 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1176 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1177 and local "prev". Strengthen param "earliest" from rtx * to
1179 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1180 Strengthen param "earliest" from rtx * to rtx_insn **.
1182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1184 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1185 "to" and local "insn" from rtx to rtx_insn *.
1187 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1189 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1190 from rtx to rtx_insn *.
1191 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1192 (code_motion_path_driver): Likewise for local "last_insn".
1193 (simplify_changed_insns): Likewise for local "insn".
1195 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1197 * rtl.h (push_to_sequence): Strengthen param from rtx to
1199 (push_to_sequence2): Likewise for both params.
1200 (delete_insns_since): Likewise for param.
1201 (reorder_insns_nobb): Likewise for all three params.
1202 (set_new_first_and_last_insn): Likewise for both params.
1204 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1205 rtx_insn *. Remove now-redundant cast.
1206 (set_last_insn): Likewise.
1208 * builtins.c (expand_builtin_return): Strengthen local
1209 "call_fusage" from rtx to rtx_insn *.
1210 * cfgrtl.c (create_basic_block_structure): Likewise for local
1212 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1213 "first", "last" and local "insn".
1214 (delete_insns_since): Likewise for param "from".
1215 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1217 (push_to_sequence): Likewise for param "first" and local "last".
1218 (push_to_sequence2): Likewise for params "first" and "last".
1219 * lra.c (emit_add3_insn): Likewise for local "last".
1220 (lra_emit_add): Likewise.
1221 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1223 (process_address_1): Likewise for locals "insn", last".
1224 * modulo-sched.c (ps_first_note): Likewise for return type.
1225 * optabs.c (expand_binop_directly): Likewise for param "last".
1227 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1229 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1231 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1233 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1235 * function.h (struct sequence_stack): Strengthen fields "first"
1236 and "last" from rtx to rtx_insn *.
1237 (struct emit_status): Likewise for fields "x_first_insn" and
1240 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1241 (set_first_insn): Add checked cast.
1242 (get_last_insn): Remove now-redundant checked cast.
1243 (set_last_insn): Add checked cast.
1245 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1246 "saved_first" and "saved_last" from rtx to rtx_insn *.
1248 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1250 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1251 (unlink_insn_chain): Strengthen both params from rtx to
1254 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1256 (unlink_insn_chain): Likewise for params "first" and "last".
1257 Remove now-redundant checked cast.
1258 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1259 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1261 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1263 (add_insn): Likewise for param "insn" and local "prev".
1264 (add_insn_after_nobb): Likewise for both params and local "next".
1265 (add_insn_before_nobb): Likewise for both params and local "prev".
1266 (add_insn_after): Rename param "after" to "uncast_after",
1267 introducing local "after" with another checked cast.
1268 (add_insn_before): Rename params "insn" and "before", giving them
1269 "uncast_" prefixes, adding the old names back using checked casts.
1270 (emit_note_after): Likewise for param "after".
1271 (emit_note_before): Likewise for param "before".
1272 (emit_label): Add a checked cast.
1274 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1276 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1277 "insn" from rtx to rtx_insn *.
1279 * cselib.c (cselib_record_sets_hook): Likewise.
1281 * var-tracking.c (add_with_sets): Likewise, renaming back from
1282 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1285 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1287 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1288 and "header_" from rtx to rtx_insn *.
1289 (struct basic_block_d): Likewise for field "head_" within "x"
1290 field of union basic_block_il_dependent.
1291 (BB_HEAD): Drop function...
1292 (SET_BB_HEAD): ...and this function in favor of...
1293 (BB_HEAD): ...reinstate macro.
1294 (BB_END): Drop function...
1295 (SET_BB_END): ...and this function in favor of...
1296 (BB_END): ...reinstate macro.
1297 (BB_HEADER): Drop function...
1298 (SET_BB_HEADER): ...and this function in favor of...
1299 (BB_HEADER): ...reinstate macro.
1301 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1302 (fix_crossing_unconditional_branches): Likewise.
1303 * caller-save.c (save_call_clobbered_regs): Likewise.
1304 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1305 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1306 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1307 (merge_blocks_move_successor_nojumps): Likewise.
1308 (outgoing_edges_match): Update use of for_each_rtx to
1309 for_each_rtx_in_insn.
1310 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1311 (expand_gimple_cond): Likewise.
1312 (expand_gimple_tailcall): Likewise.
1313 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1315 (construct_exit_block): Drop use of SET_BB_END.
1316 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1318 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1319 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1320 SET_BB_HEAD and SET_BB_END.
1321 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1323 (rtl_delete_block): Drop use of SET_BB_HEAD.
1324 (rtl_split_block): Drop use of SET_BB_END.
1325 (emit_nop_for_unique_locus_between): Likewise.
1326 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1327 (block_label): Drop use of SET_BB_HEAD.
1328 (fixup_abnormal_edges): Drop use of SET_BB_END.
1329 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1330 (relink_block_chain): Likewise.
1331 (fixup_reorder_chain): Drop use of SET_BB_END.
1332 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1333 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1334 rtx_insn **. Drop use of SET_BB_HEADER.
1335 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1337 (BB_HEAD): Delete this function.
1338 (SET_BB_HEAD): Likewise.
1340 (SET_BB_END): Likewise.
1341 (BB_HEADER): Likewise.
1342 (SET_BB_HEADER): Likewise.
1343 * emit-rtl.c (add_insn_after): Rename param "insn" to
1344 "uncast_insn", adding a new local "insn" and a checked cast to
1345 rtx_insn *. Drop use of SET_BB_END.
1346 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1347 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1348 (reorder_insns): Drop use of SET_BB_END.
1349 (emit_insn_after_1): Strengthen param "first" and locals "last",
1350 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1351 (emit_pattern_after_noloc): Add checked cast.
1352 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1353 (restore_other_notes): Likewise.
1354 (move_insn): Likewise.
1355 (sched_extend_bb): Likewise.
1356 (fix_jump_move): Likewise.
1357 * ifcvt.c (noce_process_if_block): Likewise.
1358 (dead_or_predicable): Likewise.
1359 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1360 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1361 * sel-sched-ir.c (sel_move_insn): Likewise.
1362 * sel-sched.c (move_nop_to_previous_block): Likewise.
1364 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1366 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1368 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1370 * basic-block.h (create_basic_block_structure): Strengthen params
1371 1 "head" and 2 "end" from rtx to rtx_insn *.
1372 * cfgrtl.c (create_basic_block_structure): Likewise.
1373 (rtl_create_basic_block): Update casts from void * to rtx to
1374 rtx_insn *, so that we can pass them as rtx_insn * to
1375 create_basic_block_structure.
1376 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1378 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1380 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1382 (check_for_inc_dec): Strengthen param "insn" from rtx to
1385 * cselib.h (cselib_process_insn): Likewise.
1387 * cselib.c (cselib_record_sets): Likewise.
1388 (cselib_process_insn): Likewise.
1390 * dse.c (struct insn_info): Likewise for field "insn".
1391 (check_for_inc_dec_1): Likewise for local "insn".
1392 (check_for_inc_dec): Likewise for param "insn".
1393 (scan_insn): Likewise.
1394 (dse_step1): Likewise for local "insn".
1396 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1397 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1399 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1401 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1402 from rtx to rtx_insn *.
1403 (DEP_PRO): Delete this function and...
1404 (SET_DEP_PRO): ...this function in favor of...
1405 (DEP_PRO): ...reinstate this macro.
1406 (DEP_CON): Delete this function and...
1407 (SET_DEP_CON): ...this function in favor of...
1408 (DEP_CON): ...reinstate this old macro.
1409 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1410 (init_dep): Likewise.
1411 (set_priorities): Likewise for both params.
1412 (sd_copy_back_deps): Likewise for params 1 and 2.
1414 * haifa-sched.c (priority): Likewise for param "insn" and local
1416 (set_priorities): Likewise for params "head" and "tail" and local
1418 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1420 (add_to_speculative_block): Add a checked cast.
1421 (create_check_block_twin): Drop use of SET_DEP_CON.
1422 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1425 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1426 Drop use of SET_DEP_PRO
1427 (init_dep): Strengthen params "pro" and "con" from rtx to
1429 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1433 (SET_DEP_PRO): Delete.
1434 (SET_DEP_CON): Delete.
1436 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1438 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1439 from rtx to rtx_insn *.
1440 (VINSN_INSN_RTX): Eliminate rvalue function and...
1441 (SET_VINSN_INSN): ...lvalue function in favor of...
1442 (VINSN_INSN_RTX): reinstate this old macro.
1444 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1445 in favor of VINSN_INSN_RTX.
1446 (VINSN_INSN_RTX): Delete this function.
1447 (SET_VINSN_INSN_RTX): Likewise.
1449 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1451 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1452 (BND_TO): Delete this function and...
1453 (SET_BND_TO): ...this functions in favor of...
1454 (BND_TO): ...reinstating this macro.
1455 (struct _fence): Strengthen field "executing_insns" from
1456 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1457 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1458 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1459 and param "insn" from rtx to insn_t.
1460 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1463 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1465 (rtx_vec_t): Likewise.
1466 (struct sched_deps_info_def): Strengthen param of "start_insn"
1467 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1468 "note_mem_dep" callback and first param of "note_dep" callback.
1470 * haifa-sched.c (add_to_speculative_block): Strengthen param
1471 "insn" from rtx to rtx_insn *.
1472 (clear_priorities): Likewise.
1473 (calc_priorities): Likewise for local "insn".
1475 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1476 Remove redundant checked cast.
1477 (haifa_note_mem_dep): Likewise for param "pending_insn".
1478 (haifa_note_dep): Likewise for param "elem".
1479 (note_mem_dep): Likewise for param "e".
1480 (sched_analyze_1): Add checked casts.
1481 (sched_analyze_2): Likewise.
1483 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1484 from rtx to rtx_insn *.
1485 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1486 from vec<rtx> * to vec<rtx_insn *> *.
1488 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1490 (flist_add): Strengthen param "executing_insns" from
1491 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1492 (advance_deps_context): Remove now-redundant checked cast.
1493 (init_fences): Replace uses of NULL_RTX with NULL.
1494 (merge_fences): Strengthen params "last_scheduled_insn" and
1495 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1496 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1497 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1498 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1499 an instruction, rather than doing double-duty as a pattern.
1500 (return_nop_to_pool): Update for change of insn_t.
1501 (deps_init_id): Remove now-redundant checked cast.
1502 (struct sched_scan_info_def): Strengthen param of "init_insn"
1503 callback from rtx to insn_t.
1504 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1505 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1507 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1508 "end" from rtx to rtx_insn *.
1509 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1510 (rtx insn_rtx, bool force_unique_p)
1511 (BND_TO): Delete function.
1512 (SET_BND_TO): Delete function.
1514 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1516 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1517 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1519 (undo_transformations): Likewise for param "insn".
1520 (update_liveness_on_insn): Likewise.
1521 (compute_live_below_insn): Likewise for param "insn" and local
1523 (update_data_sets): Likewise for param "insn".
1524 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1525 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1526 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1528 (move_cond_jump): Likewise for param "insn".
1529 (move_cond_jump): Drop use of SET_BND_TO.
1530 (compute_av_set_on_boundaries): Likewise.
1531 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1532 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1533 from rtx to rtx_insn *.
1534 (maybe_emit_renaming_copy): Likewise for param "insn".
1535 (maybe_emit_speculative_check): Likewise.
1536 (handle_emitting_transformations): Likewise.
1537 (remove_insn_from_stream): Likewise.
1538 (code_motion_process_successors): Strengthen local "succ" from rtx
1541 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1543 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1544 ilist_t, not _xlist_t;
1545 (ILIST_INSN): Define in terms of new union field "insn".
1546 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1548 (struct _list_node): Add new field "insn" to the union, of type
1550 (ilist_add): Replace macro with an inline function, requiring an
1552 (ilist_remove): Define this macro directly in terms of
1553 _list_remove, rather than indirectly via _xlist_remove.
1554 (ilist_clear): Likewise, in terms of _list_clear rather than
1556 (ilist_is_in_p): Replace macro with an inline function, requiring
1558 (_list_iter_cond_insn): New function.
1559 (ilist_iter_remove): Define this macro directly in terms of
1560 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1561 (ilist_iterator): Define directly in terms of _list_iterator
1562 rather than indirectly through _xlist_iterator.
1563 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1564 than in terms of _FOR_EACH_X.
1565 (FOR_EACH_INSN_1): Likewise.
1567 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1571 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1572 DECL_HARD_REGISTER and return for invalid register specifications.
1573 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1574 DECL_HARD_REGISTER, call expand_one_error_var.
1575 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1576 CC_REGNUM with non-MODE_CC modes.
1577 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1579 2014-08-26 Marek Polacek <polacek@redhat.com>
1582 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1584 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1586 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1587 qi cost; add di cost.
1588 (cortexa57_addrcost_table): Likewise.
1590 2014-08-26 Marek Polacek <polacek@redhat.com>
1593 * expr.c (is_aligning_offset): Remove logical not.
1595 2014-08-26 Marek Polacek <polacek@redhat.com>
1598 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1599 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1601 2014-08-26 Richard Biener <rguenther@suse.de>
1603 PR tree-optimization/62175
1604 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1605 expand possibly trapping operations.
1607 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1609 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1610 "insn" from rtx to rtx_insn *.
1611 (permute_load): Likewise for param "insn".
1612 (permute_store): Likewise.
1613 (handle_special_swappables): Likewise for local "insn".
1614 (replace_swap_with_copy): Likewise for locals "insn" and
1616 (rs6000_analyze_swaps): Likewise for local "insn".
1618 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1620 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1623 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1625 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1626 "note_list" from rtx to rtx_insn *.
1627 (BB_NOTE_LIST): Replace this function and...
1628 (SET_BB_NOTE_LIST): ...this function with...
1629 (BB_NOTE_LIST): ...the former macro implementation.
1631 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1632 local "from_start" from rtx to rtx_insn *. Strengthen param
1633 "to_endp" from rtx * to rtx_insn **.
1635 * haifa-sched.c (concat_note_lists): Likewise.
1636 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1638 (sel_restore_notes): Likewise.
1639 (move_bb_info): Likewise.
1640 (BB_NOTE_LIST): Delete this function.
1641 (SET_BB_NOTE_LIST): Delete this function.
1642 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1643 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1647 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1648 from rtx * to rtx_insn **.
1649 (reorder2): Likewise.
1650 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1651 from rtx to rtx_insn *.
1653 * doc/tm.texi: Update mechanically for above change to target.def.
1655 * sched-int.h (note_list): Strengthen this variable from rtx to
1657 (remove_notes): Likewise for both params.
1658 (restore_other_notes): Likewise for return type and first param.
1659 (struct ready_list): Strengthen field "vec" from rtx * to
1661 (struct dep_replacement): Strenghten field "insn" from rtx to
1663 (struct deps_desc): Likewise for fields "last_debug_insn",
1665 (struct haifa_sched_info): Likewise for callback field
1666 "can_schedule_ready_p"'s param, for first param of "new_ready"
1667 callback field, for both params of "rank" callback field, for
1668 first field of "print_insn" callback field (with a const), for
1669 both params of "contributes_to_priority" callback, for param
1670 of "insn_finishes_block_p" callback, for fields "prev_head",
1671 "next_tail", "head", "tail", for first param of "add_remove_insn"
1672 callback, for first param of "begin_schedule_ready" callback, for
1673 both params of "begin_move_insn" callback, and for second param
1674 of "advance_target_bb" callback.
1675 (add_dependence): Likewise for params 1 and 2.
1676 (sched_analyze): Likewise for params 2 and 3.
1677 (deps_analyze_insn): Likewise for param 2.
1678 (ready_element): Likewise for return type.
1679 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1680 (try_ready): Strenghten param from rtx to rtx_insn *.
1681 (sched_emit_insn): Likewise for return type.
1682 (record_delay_slot_pair): Likewise for params 1 and 2.
1683 (add_delay_dependencies): Likewise for param.
1684 (contributes_to_priority): Likewise for both params.
1685 (find_modifiable_mems): Likewise.
1687 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1688 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1689 "first_older_only_insn" from rtx to rtx_insn *.
1690 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1693 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1694 "last_scheduled_iter0" from rtx to rtx_insn *.
1695 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1696 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1697 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1698 "insn" from rtx to rtx_insn *.
1699 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1701 (c6x_sched_reorder2): Strengthen param "ready" and locals
1702 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1703 "insn" from rtx to rtx_insn *.
1704 (c6x_variable_issue): Add a checked cast when assigning from insn
1705 to ss.last_scheduled_iter0.
1706 (split_delayed_branch): Strengthen param "insn" and local "i1"
1707 from rtx to rtx_insn *.
1708 (split_delayed_nonbranch): Likewise.
1709 (undo_split_delayed_nonbranch): Likewise for local "insn".
1710 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1711 "entry_after", "end_packet", "head_insn", "tail_insn",
1712 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1713 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1714 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1715 but add a checked cast on loop->start_label. Consolidate calls to
1716 avoid assigning result of gen_spkernel to "insn", now an
1719 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1720 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1722 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1723 rtx_insn **. Strengthen locals "top", "next" from rtx to
1725 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1726 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1727 (add_parameter_dependencies): Strengthen params "call", "head" and
1728 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1729 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1730 (add_dependee_for_func_arg): Likewise for param "arg" and local
1732 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1733 "tail" and locals "insn", "first_arg".
1735 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1736 for params "head", "tail" and locals "insn", "next", "next_tail".
1737 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1738 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1739 "insn", "lowest", "highest" from rtx to rtx_insn *.
1740 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1742 (ia64_sched_reorder2): Likewise.
1744 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1745 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1746 from rtx * to rtx_insn **.
1747 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1749 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1751 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1752 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1755 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1756 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1758 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1759 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1760 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1762 (vr4130_reorder): Likewise.
1763 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1765 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1767 (mips_sched_reorder): Likewise.
1768 (mips_sched_reorder2): Likewise.
1770 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1772 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1773 Strengthen local "tmp" from rtx to rtx_insn *.
1774 (rs6000_sched_reorder2): Likewise.
1776 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1777 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1778 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1779 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1781 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1782 "tmp2" from rtx to rtx_insn *.
1783 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1784 Strengthen local "insn" from rtx to rtx_insn *.
1785 (ready_reorder): Strengthen param "ready" from rtx * to
1786 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1787 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1788 (sh_reorder2): Likewise.
1790 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1791 local "insn" from rtx to rtx_insn *.
1793 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1795 (scheduled_insns): Strengthen this variable from vec<rtx> to
1797 (set_modulo_params): Likewise for locals "i1", "i2".
1798 (record_delay_slot_pair): Likewise for params "i1", "i2".
1799 (add_delay_dependencies): Likewise for param "insn".
1800 (cond_clobbered_p): Likewise.
1801 (recompute_todo_spec): Likewise for local "prev".
1802 (last_scheduled_insn): Likewise for this variable.
1803 (nonscheduled_insns_begin): Likewise.
1804 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1806 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1808 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1809 Strengthen local "insn" from rtx to rtx_insn *.
1810 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1811 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1812 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1813 (ready_remove_first): Likewise for return type and local "t".
1814 (ready_element): Likewise for return type.
1815 (ready_remove): Likewise for return type and local "t".
1816 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1817 (check_clobbered_conditions): Strengthen local "x" from rtx to
1818 rtx_insn *, adding a checked cast.
1819 (schedule_insn): Likewise for param "insn".
1820 (remove_notes): Likewise for params "head", "tail" and locals
1821 "next_tail", "insn", "next".
1822 (struct haifa_saved_data): Likewise for fields
1823 "last_scheduled_insn", "nonscheduled_insns_begin".
1824 (save_backtrack_point): Update for change to field "vec" of
1826 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1828 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1829 from rtx to rtx_insn *
1830 (resolve_dependencies): Strengthen param "insn" from rtx to
1832 (restore_other_notes): Likewise for return type, for param "head"
1833 and local "note_head".
1834 (undo_all_replacements): Likewise for local "insn".
1835 (first_nonscheduled_insn): Likewise for return type and local "insn".
1836 (queue_to_ready): Likewise for local "insn", adding checked casts.
1837 (early_queue_to_ready): Likewise for local "insn".
1838 (debug_ready_list_1): Strengthen local "p" from rtx * to
1840 (move_insn): Strengthen param "insn" and local "note" from rtx to
1842 (insn_finishes_cycle_p): Likewise for param "insn".
1843 (max_issue): Likewise for local "insn".
1844 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1846 (commit_schedule): Strengthen param "prev_head" and local "insn"
1847 from rtx to rtx_insn *
1848 (prune_ready_list): Likewise for local "insn".
1849 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1850 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1851 (set_priorities): Likewise for local "prev_head".
1852 (try_ready): Likewise for param "next".
1853 (fix_tick_ready): Likewise.
1854 (change_queue_index): Likewise.
1855 (sched_extend_ready_list): Update for change to field "vec" of
1857 (generate_recovery_code): Strengthen param "insn" from rtx to
1859 (begin_speculative_block): Likewise.
1860 (create_check_block_twin): Likewise for param "insn" and locals
1861 "label", "check", "twin". Introduce local "check_pat" to avoid
1862 "check" being used as a plain rtx before being used as an insn.
1863 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1864 extracting elements from ready_list.
1865 (sched_remove_insn): Strengthen param "insn" from rtx to
1867 (sched_emit_insn): Likewise for return type.
1868 (ready_remove_first_dispatch): Likewise for return type and local
1871 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1873 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1876 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1877 from rtx to rtx_insn *.
1878 (add_dependence_list): Likewise for param "insn". Add a checked
1880 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1881 to rtx_insn *. Strengthen param "list_p" from rtx * to
1883 (chain_to_prev_insn): Strengthen param "insn" and locals
1884 "prec_nonnote", "i" from rtx to rtx_insn *.
1885 (flush_pending_lists): Likewise for param "insn".
1886 (cur_insn): Likewise for this variable.
1887 (haifa_start_insn): Add a checked cast.
1888 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1889 (sched_analyze_reg): Likewise for param "insn".
1890 (sched_analyze_1): Likewise.
1891 (sched_analyze_2): Likewise. Add checked casts.
1892 (sched_analyze_insn): Likewise. Also for local "prev".
1893 (deps_analyze_insn): Likewise for param "insn".
1894 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1895 (add_dependence_1): Likewise for params "insn", "elem".
1896 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1897 (parse_add_or_inc): Likewise for param "insn".
1898 (find_inc): Likewise for local "inc_cand".
1899 (find_modifiable_mems): Likewise for params "head", "tail" and
1900 locals "insn", "next_tail".
1902 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1903 (begin_schedule_ready): Likewise for param "insn".
1904 (begin_move_insn): Likewise for params "insn" and "last".
1905 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1907 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1908 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1909 (ebb_add_remove_insn): Likewise for param "insn".
1910 (advance_target_bb): Likewise.
1912 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1914 (check_live): Likewise for param "insn".
1915 (init_ready_list): Likewise for local "insn".
1916 (can_schedule_ready_p): Likewise for param "insn".
1917 (begin_schedule_ready): Likewise.
1918 (new_ready): Likewise for param "next".
1919 (rgn_print_insn): Likewise for param "insn".
1920 (rgn_rank): Likewise for params "insn1", "insn2".
1921 (contributes_to_priority): Likewise for params "next", "insn".
1922 (rgn_insn_finishes_block_p): Likewise for param "insn".
1923 (add_branch_dependences): Likewise for params "head", "tail" and
1924 locals "insn", "last".
1925 (rgn_add_remove_insn): Likewise for param "insn".
1926 (advance_target_bb): Likewise.
1928 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1929 const_rtx to const rtx_insn *.
1931 * sel-sched-dump.h (sel_print_insn): Likewise.
1933 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1934 (deps_init_id): Likewise.
1936 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1937 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1942 * output.h (final_start_function): Strengthen param 1 from rtx to
1945 * final.c (final_start_function): Likewise, renaming back from
1946 "uncast_first" to "first", and dropping the checked cast from rtx
1949 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1951 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1952 * final.c (final): Likewise. Rename param back from
1953 "uncast_first" to "first" and eliminate the checked cast from rtx
1956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1958 * output.h (shorten_branches): Strengthen param from rtx to
1961 * final.c (shorten_branches): Likewise, renaming param back from
1962 "uncast_first" to "first", and dropping the checked cast from rtx
1965 * genattr.c (gen_attr): Likewise when writing out the prototype of
1968 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1970 * sched-int.h (struct haifa_sched_info): Strengthen fields
1971 "prev_head" and "next_tail" from rtx to rtx_insn *.
1973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1975 * rtl.h (rtx_jump_table_data::get_labels): New method.
1976 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1977 with use of the new rtx_jump_table_data::get_labels method.
1978 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1979 to rtx_jump_table_data *. Simplify by using get_labels method.
1980 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1981 a dyn_cast, introducing local "table", using it to replace
1982 label-lookup logic with a get_labels method call.
1983 (patch_jump_insn): Simplify using get_labels method.
1984 * dwarf2cfi.c (create_trace_edges): Likewise.
1985 * rtlanal.c (label_is_jump_target_p): Likewise.
1987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1989 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1992 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1993 (unshare_all_rtl_again): Likewise, also for local "p".
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1997 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1999 * cfgrtl.c (delete_insn_and_edges): Likewise.
2001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2003 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2004 from rtx to rtx_insn *.
2006 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2010 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2011 locals "returnjump", "epilogue_end", "insn", "next".
2013 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2014 "returnjump" from rtx * to rtx_insn **.
2015 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2019 * basic-block.h (struct edge_def). Strengthen "r" within
2020 union edge_def_insns from rtx to rtx_insn *.
2022 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2023 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2025 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2026 from rtx to rtx_insn *.
2027 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2029 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2030 (reg_used_on_edge): Likewise.
2031 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2032 (gt_pch_nx): New overload for rtx_insn *&.
2033 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2034 from rtx to rtx_insn *.
2036 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2038 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2039 from rtx to rtx_insn *.
2040 (BB_FOOTER): Replace function with access macro.
2041 (SET_BB_FOOTER): Delete.
2043 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2045 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2046 (emit_barrier_after_bb): Likewise.
2047 (record_effective_endpoints): Likewise.
2048 (relink_block_chain): Likewise.
2049 (fixup_fallthru_exit_predecessor): Likewise.
2050 (cfg_layout_duplicate_bb): Likewise.
2051 (cfg_layout_split_block): Likewise.
2052 (cfg_layout_delete_block): Likewise.
2053 (cfg_layout_merge_blocks): Likewise.
2054 (BB_FOOTER): Delete function.
2055 (SET_BB_FOOTER): Delete function.
2056 * combine.c (update_cfg_for_uncondjump): Replace uses of
2057 SET_BB_FOOTER with BB_FOOTER.
2059 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2061 * except.h (struct eh_landing_pad_d): Strengthen field
2062 "landing_pad" from rtx to rtx_code_label *.
2064 * except.c (sjlj_emit_dispatch_table): Likewise for param
2066 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2068 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2070 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2071 first param from rtx to rtx_insn *.
2072 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2073 field "set_frame_ptr_insn".
2074 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2075 "csend" from rtx to rtx_code_label *.
2076 (xtensa_expand_atomic): Likewise for local "csloop".
2077 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2079 (xtensa_call_tls_desc): Likewise for return type and locals
2080 "call_insn", "insns".
2081 (xtensa_legitimize_tls_address): Likewise for local "insns".
2082 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2086 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2087 first param from rtx to rtx_insn *.
2088 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2091 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2093 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2094 Strengthen param 1 from rtx to rtx_insn *.
2095 (tilepro_output_cbranch): Likewise.
2096 (tilepro_adjust_insn_length): Likewise.
2097 (tilepro_final_prescan_insn): Likewise for sole param.
2099 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2100 Likewise for local "last".
2101 (cbranch_predicted_p): Likewise for param "insn".
2102 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2103 (tilepro_output_cbranch_with_opcode): Likewise.
2104 (tilepro_output_cbranch): Likewise.
2105 (frame_emit_load): Likewise for return type and locals "seq",
2107 (emit_sp_adjust): Likewise for return type and local "insn".
2108 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2110 (tilepro_adjust_insn_length): Likewise for param "insn".
2111 (next_insn_to_bundle): Likewise for return type and params
2113 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2114 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2116 (match_addli_pcrel): Likewise for param "insn".
2117 (replace_addli_pcrel): Likewise.
2118 (match_auli_pcrel): Likewise.
2119 (replace_auli_pcrel): Likewise.
2120 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2122 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2123 "queue", "next_queue", "prev".
2124 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2125 (tilepro_final_prescan_insn): Likewise for param "insn".
2127 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2129 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2130 Strengthen param 1 from rtx to rtx_insn *.
2131 (tilegx_output_cbranch): Likewise.
2132 (tilegx_adjust_insn_length): Likewise.
2133 (tilegx_final_prescan_insn): Likewise for sole param.
2135 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2137 (cbranch_predicted_p): Likewise for param "insn".
2138 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2139 (tilegx_output_cbranch_with_opcode): Likewise.
2140 (tilegx_output_cbranch): Likewise.
2141 (frame_emit_load): Likewise for return type.
2142 (set_frame_related_p): Likewise for locals "seq", "insn".
2143 (emit_sp_adjust): Likewise for return type, and for local "insn".
2144 Introduce local "pat" for use in place of "insn" where the latter
2145 isn't an instruction.
2146 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2147 from rtx to rtx_insn *.
2148 (tilegx_adjust_insn_length): Likewise for param "insn".
2149 (next_insn_to_bundle): Likewise for return type and params "r" and
2151 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2153 (replace_insns): Likewise for params "old_insn", "new_insns".
2154 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2156 (replace_mov_pcrel_step2): Likewise.
2157 (replace_mov_pcrel_step3): Likewise.
2158 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2160 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2161 "queue", "next_queue", "prev".
2162 (tilegx_output_mi_thunk): Likewise for local "insn".
2163 (tilegx_final_prescan_insn): Likewise for param "insn".
2165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2167 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2169 (frame_emit_load): Likewise.
2170 (frame_emit_add_imm): Likewise, also for local "insn".
2171 (spu_expand_prologue): Likewise for local "insn".
2172 (struct spu_bb_info): Likewise for field "prop_jump".
2173 (emit_nop_for_insn): Likewise for param "insn" and local
2175 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2177 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2178 locals "hint", "insn".
2179 (get_branch_target): Likewise for param "branch".
2180 (insn_clobbers_hbr): Likewise for param "insn".
2181 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2182 locals "insn", "before_4", "before_16".
2183 (insert_hbrp): Likewise for local "insn".
2184 (spu_machine_dependent_reorg): Likewise for locals "branch",
2185 "insn", "next", "bbend".
2186 (uses_ls_unit): Likewise for param "insn".
2187 (get_pipe): Likewise.
2188 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2189 introducing a checked cast.
2190 (spu_sched_adjust_cost): Likewise for params "insn" and
2192 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2193 (spu_sms_res_mii): Likewise.
2195 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2197 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2198 from rtx to rtx_insn *.
2199 (output_cbranch): Likewise for param 6.
2200 (output_return): Likewise for param 1.
2201 (output_sibcall): Likewise.
2202 (output_v8plus_shift): Likewise.
2203 (output_v8plus_mult): Likewise.
2204 (output_v9branch): Likewise for param 7.
2205 (output_cbcond): Likewise for param 3.
2207 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2209 (sparc_legitimize_pic_address): Likewise.
2210 (sparc_emit_call_insn): Likewise.
2211 (emit_save_or_restore_regs): Likewise.
2212 (emit_window_save): Likewise for return type and local "insn".
2213 (sparc_expand_prologue): Likewise for local "insn".
2214 (sparc_flat_expand_prologue): Likewise.
2215 (output_return): Likewise for param "insn".
2216 (output_sibcall): Likewise for param "insn" and local "delay".
2217 (output_ubranch): Likewise for param "insn".
2218 (output_cbranch): Likewise.
2219 (output_cbcond): Likewise.
2220 (output_v9branch): Likewise.
2221 (output_v8plus_shift): Likewise.
2222 (sparc_output_mi_thunk): Likewise for local "insn".
2223 (get_some_local_dynamic_name): Likewise.
2224 (output_v8plus_mult): Likewise for param "insn".
2226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2228 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2229 from rtx to rtx_insn *.
2230 (output_branchy_insn): Likewise for param 3.
2231 (output_far_jump): Likewise for param 1.
2232 (final_prescan_insn): Likewise.
2233 (sh_insn_length_adjustment): Likewise for sole param.
2235 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2236 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2238 (sh_emit_compare_and_set): Likewise for local "lab".
2239 (output_far_jump): Strengthen param "insn" and local "prev" from
2241 (output_branchy_insn): Likewise for param "insn" and local
2243 (output_ieee_ccmpeq): Likewise for param "insn".
2244 (struct label_ref_list_d): Strengthen field "label" from rtx to
2246 (pool_node): Likewise.
2247 (pool_window_label): Likewise for this global.
2248 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2249 (dump_table): Strengthen params "start", "barrier" and local
2250 "scan" from rtx to rtx_insn *.
2251 (broken_move): Likewise for param "insn".
2252 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2253 Strengthen param "first_mova" from rtx * to rtx_insn **.
2254 (mova_p): Likewise for param "insn".
2255 (fixup_mova): Likewise for param "mova".
2256 (find_barrier): Likewise for return type, params "mova" and
2257 "from", and locals "barrier_before_mova", "found_barrier",
2258 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2259 "label" from rtx to rtx_code_label *.
2260 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2262 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2263 (split_branches): Likewise for param "first" and local "insn".
2264 (final_prescan_insn): Likewise for param "insn".
2265 (sequence_insn_p): Likewise for locals "prev", "next".
2266 (sh_insn_length_adjustment): Likewise for param "insn".
2267 (sh_can_redirect_branch): Likewise for local "insn".
2268 (find_r0_life_regions): Likewise for locals "end", "insn".
2269 (sh_output_mi_thunk): Likewise for local "insns".
2271 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2273 * config/score/score.c (score_output_mi_thunk): Strengthen local
2274 "insn" from rtx to rtx_insn *.
2275 (score_prologue): Likewise.
2277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2279 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2280 1 from rtx to rtx_insn *.
2281 (s390_emit_jump): Likewise for return type.
2282 (s390_emit_call): Likewise.
2283 (s390_load_got): Likewise.
2285 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2287 (s390_match_ccmode): Likewise for param "insn".
2288 (s390_emit_jump): Likewise for return type.
2289 (s390_split_branches): Likewise for local "label".
2290 (struct constant): Strengthen field "label" from rtx to
2292 (struct constant_pool): Likewise for field "label". Strengthen
2293 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2295 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2297 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2298 (s390_end_pool): Likewise.
2299 (s390_dump_pool): Likewise for local "insn".
2300 (s390_mainpool_start): Likewise.
2301 (s390_chunkify_start): Likewise.
2302 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2303 with insns. Strengthen locals "label", "jump", "barrier", "next",
2304 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2305 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2307 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2308 "jump", "label", "next_insn".
2309 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2310 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2312 (s390_load_got): Likewise for return type and local "insns".
2313 (s390_save_gprs_to_fprs): Likewise for local "insn".
2314 (s390_restore_gprs_from_fprs): Likewise.
2315 (pass_s390_early_mach::execute): Likewise.
2316 (s390_emit_prologue): Likewise for local "insns".
2317 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2319 (s390_emit_call): Strengthen return type and local "insn" from
2321 (s390_emit_tpf_eh_return): Likewise for local "insn".
2322 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2323 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2324 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2326 (s390_non_addr_reg_read_p): Likewise for param "insn".
2327 (find_cond_jump): Likewise for return type and param "insn".
2328 (s390_swap_cmp): Likewise for param "insn".
2329 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2330 "prev_insn", "next_insn".
2331 (s390_reorg): Likewise for locals "insn", "target".
2332 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2333 (s390_sched_variable_issue): For now, rename param "insn" to
2334 "uncast_insn", introducing a checked cast.
2335 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2337 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2338 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2340 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2342 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2343 param from rtx to rtx_insn *.
2344 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2346 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2348 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2349 4 from rtx to rtx_insn *.
2350 (rs6000_final_prescan_insn): Likewise for first param.
2351 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2353 (rs6000_get_some_local_dynamic_name): Likewise.
2354 (output_cbranch): Likewise for param "insn".
2355 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2356 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2357 (rs6000_emit_allocate_stack): Likewise for local "insn".
2358 (load_cr_save): Likewise.
2359 (restore_saved_cr): Likewise.
2360 (restore_saved_lr): Likewise.
2361 (emit_cfa_restores): Likewise.
2362 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2363 "deleted_debug_label".
2364 (rs6000_output_mi_thunk): Likewise for local "insn".
2365 (rs6000_final_prescan_insn): Likewise for param "insn".
2367 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2369 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2370 Strengthen param "insn" from rtx to rtx_insn *.
2371 * config/picochip/picochip.c (picochip_current_prescan_insn):
2372 Likewise for this variable.
2373 (picochip_final_prescan_insn): Likewise for param "insn".
2375 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2377 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2378 from rtx to rtx_insn *.
2379 (pa_output_indirect_call): Likewise.
2380 (pa_adjust_insn_length): Likewise.
2381 (pa_attr_length_millicode_call): Likewise.
2382 (pa_attr_length_call): Likewise.
2383 (pa_attr_length_indirect_call): Likewise.
2385 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2387 (pa_attr_length_millicode_call): Likewise.
2388 (pa_attr_length_call): Likewise.
2389 (pa_output_call): Likewise.
2390 (pa_attr_length_indirect_call): Likewise.
2391 (pa_output_indirect_call): Likewise.
2393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2395 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2396 Strengthen first param from rtx to rtx_insn *.
2397 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2402 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2403 type from rtx to rtx_insn *.
2404 (mips_expand_call): Likewise.
2405 (mips_adjust_insn_length): Likewise for first param.
2406 (mips_output_conditional_branch): Likewise.
2407 (mips_output_order_conditional_branch): Likewise.
2408 (mips_final_prescan_insn): Likewise.
2410 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2411 rtx_insn * for the SEQUENCE case.
2412 (SEQ_END): Likewise.
2413 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2414 (mips_emit_call_insn): Likewise, also for local "insn".
2415 (mips16_gp_pseudo_reg): Likewise for local "scan".
2416 (mips16_build_call_stub): Likewise for return type and for local
2417 "insn". Introduce a new local "pattern" so that "insn" can indeed
2419 (mips_expand_call): Strengthen return type and local "insn" from
2421 (mips_block_move_loop): Strengthen local "label" from rtx to
2423 (mips_expand_synci_loop): Likewise for locals "label",
2425 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2427 (mips16e_collect_argument_saves): Likewise for locals "insn",
2429 (mips_find_gp_ref): Likewise for param of callback for "pred"
2430 param, and for local "insn".
2431 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2432 (mips_insn_has_flexible_gp_ref_p): Likewise.
2433 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2435 (mips_epilogue_set_cfa): Likewise for local "insn".
2436 (mips_expand_epilogue): Likewise.
2437 (mips_adjust_insn_length): Likewise for param "insn".
2438 (mips_output_conditional_branch): Likewise.
2439 (mips_output_order_conditional_branch): Likewise.
2440 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2441 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2442 "falu2_turn_enabled_insn".
2443 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2444 "done_label" from rtx to rtx_code_label *.
2445 (struct mips16_constant): Likewise for field "label".
2446 (mips16_add_constant): Likewise for return type.
2447 (mips16_emit_constants_1): Strengthen return type and param "insn"
2448 from rtx to rtx_insn *.
2449 (mips16_emit_constants): Likewise for param "insn".
2450 (mips16_insn_length): Likewise.
2451 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2452 to rtx_code_label *.
2453 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2454 from rtx to rtx_insn *.
2455 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2456 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2457 (r10k_simplify_address): Strengthen param "insn" and local
2458 "def_insn" from rtx to rtx_insn *.
2459 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2461 (r10k_needs_protection_p_1): Update target type of cast of data
2462 from to rtx to rtx_insn *.
2463 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2464 rtx * to rtx_insn **.
2465 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2467 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2468 (mips_call_expr_from_insn): Likewise for param "insn".
2469 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2470 (mips_find_pic_call_symbol): Likewise for param "insn".
2471 (mips_annotate_pic_calls): Likewise for local "insn".
2472 (mips_sim_insn): Likewise for this variable.
2473 (struct mips_sim): Likewise for field "insn" within elements of
2475 (mips_sim_wait_reg): Likewise for param "insn".
2476 (mips_sim_wait_regs): Likewise.
2477 (mips_sim_wait_units): Likewise.
2478 (mips_sim_wait_insn): Likewise.
2479 (mips_sim_issue_insn): Likewise.
2480 (mips_sim_finish_insn): Likewise.
2481 (mips_seq_time): Likewise for param "seq" and local "insn".
2482 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2483 locals "first", "second".
2484 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2485 "last", "last2", "next".
2486 (mips_avoid_hazard): Likewise for params "after", "insn".
2487 (mips_reorg_process_insns): Likewise for locals "insn",
2488 "last_insn", "subinsn", "next_insn".
2489 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2490 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2492 (mips_output_mi_thunk): Likewise for local "insn".
2493 (mips_final_prescan_insn): Likewise for param "insn".
2495 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2497 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2498 Strengthen return type and local "insns" from rtx to rtx_insn *.
2499 (microblaze_legitimize_tls_address): Likewise for local "insns".
2500 (microblaze_block_move_loop): Strengthen local "label" from rtx
2501 to rtx_code_label *.
2502 (microblaze_expand_prologue): Strengthen two locals named "insn"
2503 from rtx to rtx_insn *.
2504 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2505 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2506 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2507 to rtx_code_label *.
2509 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2511 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2512 param from rtx to rtx_insn *.
2513 (mep_reuse_lo): Likewise for third param.
2514 (mep_use_post_modify_p): Likewise for first param.
2515 (mep_core_address_length): Likewise.
2516 (mep_cop_address_length): Likewise.
2517 (mep_final_prescan_insn): Likewise.
2518 (mep_store_data_bypass_p): Likewise for both params.
2519 (mep_mul_hilo_bypass_p): Likewise.
2520 (mep_ipipe_ldc_p): Likewise for param.
2522 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2523 (mep_rewrite_mult): Likewise.
2524 (mep_rewrite_mulsi3): Likewise.
2525 (mep_rewrite_maddsi3): Likewise.
2526 (mep_reuse_lo_p_1): Likewise.
2527 (mep_reuse_lo_p): Likewise.
2528 (mep_frame_expr): Likewise.
2529 (mep_make_parallel): Likewise for both params.
2530 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2532 (mep_use_post_modify_p): Likewise for param "insn".
2533 (mep_core_address_length): Likewise.
2534 (mep_cop_address_length): Likewise.
2535 (mep_reg_set_in_function): Likewise for local "insn".
2536 (mep_asm_without_operands_p): Likewise.
2537 (F): Likewise for return type and param "x".
2538 (add_constant): Likewise for local "insn".
2539 (maybe_dead_move): Likewise for return type and local "insn".
2540 (mep_expand_prologue): Likewise for local "insn".
2541 (mep_final_prescan_insn): Likewise for param "insn".
2542 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2543 "next", "follow", "x".
2544 (mep_insert_repeat_label_last): Likewise for return type, param
2545 "last_insn", and locals "next", "prev". Strengthen param "label"
2546 from rtx to rtx_code_label *.
2547 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2549 (struct mep_doloop_end): Likewise for fields "insn" and
2551 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2552 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2553 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2555 (mep_invert_branch): Likewise for params "insn" and "after".
2556 (mep_reorg_erepeat): Likewise for param "insns" and locals
2557 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2558 "l" from rtx to rtx_code_label *.
2559 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2560 from rtx to rtx_insn *.
2561 (mep_reorg_addcombine): Likewise for param "insns" and locals
2563 (add_sp_insn_p): Likewise for param "insn".
2564 (mep_reorg_noframe): Likewise for param "insns" and locals
2565 "start_frame_insn", "end_frame_insn", "next".
2566 (mep_reorg): Likewise for local "insns".
2567 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2569 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2570 (mep_mul_hilo_bypass_p): Likewise.
2571 (mep_ipipe_ldc_p): Likewise for param "insn".
2572 (mep_make_bundle): Likewise for return type, param "cop" and local
2573 "insn", splitting out the latter into a new local "seq" for when it
2574 is a SEQUENCE rather than an insn.
2575 (core_insn_p): Likewise for param "insn".
2576 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2577 "last", "first", "note", "prev", "core_insn".
2579 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2581 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2583 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2584 (m68k_final_prescan_insn): Likewise for first param.
2586 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2587 (m68k_set_frame_related): Likewise for param "insn".
2588 (output_btst): Likewise for param "insn".
2589 (m68k_final_prescan_insn): Likewise.
2590 (m68k_move_to_reg): Likewise for local "insn".
2591 (m68k_call_tls_get_addr): Likewise for local "insns".
2592 (m68k_call_m68k_read_tp): Likewise.
2593 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2594 (m68k_output_mi_thunk): Likewise for local "insn".
2596 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2598 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2599 first param from rtx to rtx_insn *.
2600 (iq2000_adjust_insn_length): Likewise.
2601 (iq2000_output_conditional_branch): Likewise.
2602 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2603 "insn" and local "nop_insn".
2604 (iq2000_annotate_frame_insn): Likewise for param "insn".
2605 (iq2000_expand_prologue): Likewise for both locals "insn".
2606 (iq2000_adjust_insn_length): Likewise for param "insn".
2607 (iq2000_output_conditional_branch): Likewise.
2609 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2611 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2612 "insns" from rtx to rtx_insn *.
2613 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2614 (struct spill_fill_data): Likewise for field "init_after" and for
2615 elements of array field "prev_insn".
2616 (spill_restore_mem): Likewise for locals "insn", "first".
2617 (do_spill): Likewise for local "insn".
2618 (do_restore): Likewise.
2619 (ia64_expand_prologue): Likewise.
2620 (ia64_expand_epilogue): Likewise.
2621 (emit_insn_group_barriers): Likewise for locals "insn",
2623 (emit_all_insn_group_barriers): Likewise for locals "insn",
2625 (dfa_stop_insn): Likewise for this global.
2626 (dfa_pre_cycle_insn): Likewise.
2627 (ia64_nop): Likewise.
2628 (final_emit_insn_group_barriers): Likewise for locals "insn",
2630 (emit_predicate_relation_info): Likewise for locals "head", "n",
2632 (ia64_reorg): Likewise for local "insn".
2633 (ia64_output_mi_thunk): Likewise.
2634 (expand_vec_perm_interleave_2): Likewise for local "seq".
2636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2638 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2639 param 1 "insn" from rtx to rtx_insn *.
2640 (ix86_use_lea_for_mov): Likewise.
2641 (ix86_avoid_lea_for_addr): Likewise.
2642 (ix86_split_lea_for_addr): Likewise.
2643 (ix86_lea_for_add_ok): Likewise.
2644 (ix86_output_call_insn): Likewise.
2646 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2647 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2648 (ix86_output_function_epilogue): Likewise for locals "insn",
2649 "deleted_debug_label".
2650 (legitimize_tls_address): Likewise for local "insn".
2651 (get_some_local_dynamic_name): Likewise.
2652 (increase_distance): Likewise for params "prev", "next".
2653 (distance_non_agu_define_in_bb): Likewise for params "insn",
2654 "start" and locals "prev", "next".
2655 (distance_non_agu_define): Likewise for param "insn".
2656 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2657 locals "next", "prev".
2658 (distance_agu_use): Likewise for param "insn".
2659 (ix86_lea_outperforms): Likewise.
2660 (ix86_ok_to_clobber_flags): Likewise.
2661 (ix86_avoid_lea_for_add): Likewise.
2662 (ix86_use_lea_for_mov): Likewise.
2663 (ix86_avoid_lea_for_addr): Likewise.
2664 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2665 (ix86_split_lea_for_addr): Likewise for param "insn".
2666 (ix86_lea_for_add_ok): Likewise for param "insn".
2667 (ix86_expand_carry_flag_compare): Likewise for local
2669 (ix86_expand_int_movcc): Likewise.
2670 (ix86_output_call_insn): Likewise for param "insn".
2671 (ix86_output_call_insn): Likewise for local "i".
2672 (x86_output_mi_thunk): Introduce local "insn", using it in place
2673 of "tmp" when dealing with insns.
2674 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2676 (ix86_pad_returns): Likewise for locals "ret", "prev".
2677 (ix86_count_insn_bb): Likewise for local "insn".
2678 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2679 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2680 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2681 (expand_vec_perm_interleave2): Likewise for local "seq".
2682 (expand_vec_perm_vperm2f128_vblend): Likewise.
2683 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2684 call to for_each_rtx with for_each_rtx_in_insn.
2686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2688 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2689 "label" from rtx to rtx_code_label *.
2690 (ix86_expand_prologue): Likewise.
2691 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2693 (ix86_split_idivmod): Likewise for locals "end_label" and
2695 (ix86_expand_branch): Likewise for local "label2".
2696 (ix86_expand_aligntest): Likewise for return type and local "label".
2697 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2699 (expand_movmem_epilogue): Likewise for the various locals named
2701 (expand_setmem_epilogue): Likewise.
2702 (expand_small_movmem_or_setmem): Likewise for local "label".
2703 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2704 Strengthen param "done_label" from rtx * to rtx_code_label **.
2705 Strengthen locals "loop_label" and "label" from rtx to
2707 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2708 Likewise for locals "loop_label", "label".
2709 (ix86_expand_set_or_movmem): Likewise for locals "label",
2710 "jump_around_label", "hot_label".
2711 (ix86_expand_strlensi_unroll_1): Likewise for locals
2712 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2714 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2715 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2716 "label2", "jump_label".
2717 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2719 (ix86_expand_lfloorceil): Likewise for local "label".
2720 (ix86_expand_rint): Likewise.
2721 (ix86_expand_floorceildf_32): Likewise.
2722 (ix86_expand_floorceil): Likewise.
2723 (ix86_expand_rounddf_32): Likewise.
2724 (ix86_expand_trunc): Likewise.
2725 (ix86_expand_truncdf_32): Likewise.
2726 (ix86_expand_round): Likewise.
2728 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2730 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2731 first param from rtx to rtx_insn *.
2732 (h8300_insn_length_from_table): Likewise.
2733 * config/h8300/h8300.c (F): Likewise for return type and param
2735 (Fpa): Add a checked cast to rtx_insn *.
2736 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2738 (final_prescan_insn): Likewise for param "insn".
2739 (h8300_binary_length): Likewise.
2740 (h8300_insn_length_from_table): Likewise.
2742 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2744 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2745 Strengthen first param "insn" from rtx to rtx_insn *.
2747 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2749 (frame_insn): Likewise for return type. Introduce local "insn"
2750 for use in place of local "x" for use as an rtx_insn *.
2751 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2752 (epiphany_expand_prologue): Likewise for local "insn".
2753 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2754 * config/epiphany/resolve-sw-modes.c
2755 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2758 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2760 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2761 param from rtx to rtx_insn *.
2762 (c6x_final_prescan_insn): Likewise for first param.
2764 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2765 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2766 (c6x_expand_compare): Strengthen local "insns" from rtx to
2768 (c6x_get_unit_specifier): Likewise for param "insn".
2769 (c6x_print_unit_specifier_field): Likewise.
2770 (c6x_final_prescan_insn): Likewise.
2771 (emit_add_sp_const): Likewise for local "insn".
2772 (c6x_expand_prologue): Likewise.
2774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2776 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2777 param 1 from rtx to rtx_insn *.
2778 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2779 the various locals named "insn".
2780 (expand_epilogue_reg_restore): Likewise.
2781 (frame_related_constant_load): Likewise.
2782 (add_to_reg): Likewise.
2783 (emit_link_insn): Likewise.
2784 (do_link): Likewise.
2785 (expand_interrupt_handler_prologue): Likewise.
2786 (branch_dest): Likewise for param "branch".
2787 (asm_conditional_branch): Likewise for param "insn".
2788 (gen_one_bundle): Likewise for elements of param "slot" and local
2790 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2791 elements of local "slot".
2792 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2793 "queue", "next_queue", "prev".
2794 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2795 (add_sched_insns_for_speculation): Likewise for local "insn".
2797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2799 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2800 from rtx to rtx_insn *.
2801 (output_movhi): Likewise.
2802 (output_movsisf): Likewise.
2803 (avr_out_tstsi): Likewise.
2804 (avr_out_tsthi): Likewise.
2805 (avr_out_tstpsi): Likewise.
2806 (avr_out_compare): Likewise.
2807 (avr_out_compare64): Likewise.
2808 (avr_out_movpsi): Likewise.
2809 (ashlqi3_out): Likewise.
2810 (ashlhi3_out): Likewise.
2811 (ashlsi3_out): Likewise.
2812 (ashrqi3_out): Likewise.
2813 (ashrhi3_out): Likewise.
2814 (ashrsi3_out): Likewise.
2815 (lshrqi3_out): Likewise.
2816 (lshrhi3_out): Likewise.
2817 (lshrsi3_out): Likewise.
2818 (avr_out_ashlpsi3): Likewise.
2819 (avr_out_ashrpsi3): Likewise.
2820 (avr_out_lshrpsi3): Likewise.
2821 (avr_out_fract): Likewise.
2822 (avr_out_sbxx_branch): Likewise.
2823 (avr_out_round): Likewise.
2824 (avr_out_xload): Likewise.
2825 (avr_out_movmem): Likewise.
2826 (adjust_insn_length): Likewise.
2827 (avr_out_lpm): Likewise.
2828 (reg_unused_after): Likewise.
2829 (_reg_unused_after): Likewise.
2830 (avr_jump_mode): Likewise for second param.
2831 (jump_over_one_insn): Likewise for first param.
2832 (avr_final_prescan_insn): Likewise.
2833 (out_shift_with_cnt): Likewise for second param.
2835 * config/avr/avr.c (get_sequence_length): Likewise for param
2836 "insns" and local "insn".
2837 (emit_push_byte): Likewise for local "insn".
2838 (emit_push_sfr): Likewise.
2839 (avr_prologue_setup_frame): Likewise for locals "insn",
2840 "fp_plus_insns", "sp_plus_insns".
2841 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2843 (avr_jump_mode): Likewise for param "insn".
2844 (avr_final_prescan_insn): Likewise.
2845 (avr_find_unused_d_reg): Likewise.
2846 (avr_out_lpm_no_lpmx): Likewise.
2847 (avr_out_lpm): Likewise.
2848 (avr_out_xload): Likewise.
2849 (output_movqi): Likewise.
2850 (output_movhi): Likewise.
2851 (out_movqi_r_mr): Likewise.
2852 (out_movhi_r_mr): Likewise.
2853 (out_movsi_r_mr): Likewise.
2854 (out_movsi_mr_r): Likewise.
2855 (output_movsisf): Likewise.
2856 (avr_out_load_psi): Likewise.
2857 (avr_out_store_psi): Likewise.
2858 (avr_out_movpsi): Likewise.
2859 (out_movqi_mr_r): Likewise.
2860 (avr_out_movhi_mr_r_xmega): Likewise.
2861 (out_movhi_mr_r): Likewise.
2862 (compare_condition): Likewise for param "insn" and local "next".
2863 (compare_sign_p): Likewise for param "insn".
2864 (compare_diff_p): Likewise.
2865 (compare_eq_p): Likewise.
2866 (avr_out_compare): Likewise.
2867 (avr_out_compare64): Likewise.
2868 (avr_out_tsthi): Likewise.
2869 (avr_out_tstpsi): Likewise.
2870 (avr_out_tstsi): Likewise.
2871 (out_shift_with_cnt): Likewise.
2872 (ashlqi3_out): Likewise.
2873 (ashlhi3_out): Likewise.
2874 (avr_out_ashlpsi3): Likewise.
2875 (ashlsi3_out): Likewise.
2876 (ashrqi3_out): Likewise.
2877 (ashrhi3_out): Likewise.
2878 (avr_out_ashrpsi3): Likewise.
2879 (ashrsi3_out): Likewise.
2880 (lshrqi3_out): Likewise.
2881 (lshrhi3_out): Likewise.
2882 (avr_out_lshrpsi3): Likewise.
2883 (lshrsi3_out): Likewise.
2884 (avr_out_fract): Likewise.
2885 (avr_out_round): Likewise.
2886 (avr_adjust_insn_length): Likewise.
2887 (reg_unused_after): Likewise.
2888 (_reg_unused_after): Likewise.
2889 (avr_compare_pattern): Likewise.
2890 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2891 and locals "branch1", "branch2", "insn2", "jump".
2892 (avr_reorg): Likewise for local "insn".
2893 (avr_2word_insn_p): Likewise for param "insn".
2894 (jump_over_one_insn_p): Likewise.
2895 (avr_out_sbxx_branch): Likewise.
2896 (avr_out_movmem): Likewise.
2898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2900 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2901 param from rtx to rtx_insn *.
2902 (thumb1_final_prescan_insn): Likewise.
2903 (thumb2_final_prescan_insn): Likewise.
2905 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2907 (struct minipool_node): Likewise for field "insn".
2908 (dump_minipool): Likewise for param "scan".
2909 (create_fix_barrier): Likewise for local "from". Strengthen local
2910 "label" from rtx to rtx_code_label *.
2911 (push_minipool_barrier): Strengthen param "insn" from rtx to
2913 (push_minipool_fix): Likewise.
2914 (note_invalid_constants): Likewise.
2915 (thumb2_reorg): Likewise for local "insn".
2916 (arm_reorg): Likewise.
2917 (thumb2_final_prescan_insn): Likewise for param
2918 "insn" and local "first_insn".
2919 (arm_final_prescan_insn): Likewise for param "insn" and locals
2920 "start_insn", "this_insn".
2921 (arm_debugger_arg_offset): Likewise for param "insn".
2922 (thumb1_emit_multi_reg_push): Likewise for return type and local
2924 (thumb1_final_prescan_insn): Likewise for param "insn".
2925 (thumb_far_jump_used_p): Likewise for local "insn".
2926 (thumb1_expand_prologue): Likewise.
2927 (arm_expand_epilogue_apcs_frame): Likewise.
2928 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2929 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2930 from rtx to rtx_code_label *.
2931 (arm_split_atomic_op): Likewise for local "label".
2932 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2934 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2936 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2937 first param from rtx to rtx_insn *.
2938 (arc_verify_short): Likewise.
2939 (arc_short_long): Likewise.
2940 (arc_need_delay): Likewise.
2942 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2944 (arc_ccfsm_advance): Likewise for param "insn" and locals
2945 "start_insn", "this_insn".
2946 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2947 (arc_ccfsm_post_advance): Likewise for param "insn".
2948 (arc_next_active_insn): Likewise for return type and param "insn".
2949 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2950 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2951 (output_short_suffix): Likewise for local "insn".
2952 (arc_final_prescan_insn): Likewise for param "insn". Remove
2953 now-redundant checked cast.
2954 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2955 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2956 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2957 for use where lc_set became an insn.
2958 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2960 (arc_get_insn_variants): Likewise for local "prev".
2961 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2963 (arc_predicate_delay_insns): Likewise for local "insn".
2964 (arc_pad_return): Likewise for local "prev". For now, add a
2965 checked cast when extracting the insn from "final_sequence".
2966 (arc_short_long): Likewise for param "insn".
2967 (arc_need_delay): Likewise for param "insn" and local "next".
2968 (arc_label_align): Likewise for locals "prev", "next".
2970 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2972 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2973 "insn" from rtx to rtx_insn *.
2974 (alpha_gp_save_rtx): Likewise for local "seq".
2975 (alpha_instantiate_decls): Likewise for local "top".
2976 (get_some_local_dynamic_name): Likewise for local "insn".
2977 (alpha_does_function_need_gp): Likewise.
2978 (set_frame_related_p): Likewise for return type and for locals
2980 (emit_frame_store_1): Likewise for local "insn".
2981 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2982 (alpha_end_function): Likewise for local "insn".
2983 (alpha_output_mi_thunk_osf): Likewise.
2984 (alphaev4_insn_pipe): Likewise for param "insn".
2985 (alphaev5_insn_pipe): Likewise.
2986 (alphaev4_next_group): Likewise for return type and param 1
2988 (alphaev5_next_group): Likewise.
2989 (alpha_align_insns_1): Likewise for return type and param 1 of
2990 callback param "next_group", and for locals "i", "next", "prev",
2991 "where", "where2", "insn".
2993 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2995 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2996 rather than modifying the stmt.
2998 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3000 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3001 cgraph_state conversion.
3003 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3005 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3006 Strengthen local "insns" from rtx to rtx_insn *.
3007 (aarch64_set_frame_expr): Likewise for local "insn".
3008 (aarch64_save_or_restore_fprs): Likewise.
3009 (aarch64_save_or_restore_callee_save_registers): Likewise.
3010 (aarch64_expand_prologue): Likewise.
3011 (aarch64_expand_epilogue): Likewise.
3012 (aarch64_output_mi_thunk): Likewise.
3013 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3014 "label2" from rtx to rtx_code_label *.
3015 (aarch64_split_atomic_op): Likewise for local "label".
3017 2014-08-25 Martin Liska <mliska@suse.cz>
3019 * cgraph.h (symtab_node):
3020 (bool needed_p (void)): created from decide_is_symbol_needed
3021 (bool referred_to_p (void)): created from referred_to_p
3022 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3023 * cgraph.h (cgraph_node):
3024 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3025 (void expand (void)): created from expand_function
3026 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3027 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3028 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3029 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3030 * cgraph.h (varpool_node):
3031 (static void add (tree decl): created from varpool_add_new_variable
3032 * cgraph.h (cgraph_edge):
3034 (void remove_caller (void)): created from cgraph_edge_remove_caller
3035 (void remove_callee (void)): created from cgraph_edge_remove_callee
3036 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3037 created from cgraph_set_call_stmt
3038 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3039 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3040 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3041 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3042 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3043 created from cgraph_speculative_call_info
3044 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3045 int freq_scale, bool update_original)): created from cgraph_clone_edge
3046 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3047 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3048 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3049 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3050 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3051 (static void rebuild_references (void)): created from cgraph_rebuild_references
3052 * cgraph.h (symbol_table):
3053 (create_reference): renamed from add_reference
3054 (maybe_create_reference): renamed from maybe_add_reference
3055 (void register_symbol (symtab_node *node)): new function
3056 (void clear_asm_symbols (void)): new function
3057 (void unregister (symtab_node *node)): new function
3058 (void release_symbol (cgraph_node *node, int uid)): new function
3059 (cgraph_node * allocate_cgraph_symbol (void)): new function
3060 (void initialize (void)): created from cgraph_init
3061 (symtab_node *first_symbol (void)):new function
3062 (asm_node *first_asm_symbol (void)):new function
3063 (symtab_node *first_defined_symbol (void)):new function
3064 (varpool_node *first_variable (void)):new function
3065 (varpool_node *next_variable (varpool_node *node)):new function
3066 (varpool_node *first_static_initializer (void)):new function
3067 (varpool_node *next_static_initializer (varpool_node *node)):new function
3068 (varpool_node *first_defined_variable (void)):new function
3069 (varpool_node *next_defined_variable (varpool_node *node)):new function
3070 (cgraph_node *first_defined_function (void)):new function
3071 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3072 (cgraph_node *first_function (void)):new function
3073 (cgraph_node *next_function (cgraph_node *node)):new function
3074 (cgraph_node *first_function_with_gimple_body (void)):new function
3075 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3076 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3077 created from symtab_remove_unreachable_nodes
3078 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3079 (void process_new_functions (void)): created from cgraph_process_new_functions
3080 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3081 (bool output_variables (void)): created from varpool_node::output_variables
3082 (void output_asm_statements (void)): created from output_asm_statements
3083 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3084 (void compile (void)): created from compile
3085 (void output_weakrefs (void)): created from output_weakrefs
3086 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3087 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3088 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3089 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3090 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3091 created from cgraph_next_function_with_gimple_body
3092 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3093 created from cgraph_remove_edge_removal_hook
3094 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3095 created from cgraph_add_node_removal_hook
3096 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3097 created from cgraph_remove_node_removal_hook
3098 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3099 created from varpool_add_node_removal_hook
3100 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3101 created from varpool_remove_node_removal_hook
3102 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3103 created from cgraph_add_function_insertion_hook
3104 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3105 created from cgraph_remove_function_insertion_hook
3106 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3107 created from varpool_add_variable_insertion_hook
3108 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3109 created from varpool_remove_variable_insertion_hook
3110 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3111 created from cgraph_add_edge_duplication_hook
3112 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3113 created from cgraph_remove_edge_duplication_hook
3114 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3115 created from cgraph_add_node_duplication_hook
3116 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3117 created from cgraph_remove_node_duplication_hook
3118 (void call_edge_removal_hooks (cgraph_edge *e)):
3119 created from cgraph_call_edge_removal_hooks
3120 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3121 created from call_function_insertion_hooks
3122 (void call_cgraph_removal_hooks (cgraph_node *node)):
3123 created from cgraph_call_node_removal_hooks
3124 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3125 created from cgraph_node::call_duplication_hooks
3126 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3127 created from cgraph_call_edge_duplication_hooks
3128 (void call_varpool_removal_hooks (varpool_node *node)):
3129 created from varpool_call_node_removal_hooks
3130 (void call_varpool_insertion_hooks (varpool_node *node)):
3131 created from varpool_call_variable_insertion_hooks
3132 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3133 created from insert_to_assembler_name_hash
3134 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3135 created from unlink_from_assembler_name_hash
3136 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3137 created from symtab_prevail_in_asm_name_hash
3138 (void symtab_initialize_asm_name_hash (void)):
3139 created from symtab_initialize_asm_name_hash
3140 (void change_decl_assembler_name (tree decl, tree name)):
3141 created from change_decl_assembler_name
3142 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3143 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3144 created from decl_assembler_name_hash
3145 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3146 created from decl_assembler_name_equal
3147 (static hashval_t hash_node_by_assembler_name (const void *p)):
3148 created from hash_node_by_assembler_name
3149 (static int eq_assembler_name (const void *p1, const void *p2)):
3150 created from eq_assembler_name
3152 2014-08-25 Marek Polacek <polacek@redhat.com>
3154 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3156 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3158 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3159 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3160 SWI1248_AVX512BW mode iterator.
3162 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3165 * config/sh/predicates.md (general_extend_operand): Disable
3166 TRUNCATE before reload completes.
3168 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3170 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3172 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3175 * config/sh/sh.opt (musermode): Allow negative form.
3176 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3177 targets that don't support it.
3178 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3179 Document -mno-usermode option.
3181 2014-08-24 Kito Cheng <kito@0xlab.org>
3183 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3184 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3185 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3186 * doc/tm.texi: Regenerate.
3188 2014-08-24 Kito Cheng <kito@0xlab.org>
3190 * ira.c: Fix typo in comment.
3192 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3194 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3195 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3197 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3200 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3201 last_address when the current function is a thunk.
3202 (pa_asm_output_mi_thunk): When we don't have named sections or they
3203 are not being used, check that thunk can reach the stub table with a
3206 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3208 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3210 (pass_web::execute): Likewise for local "insn".
3212 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3214 * var-tracking.c (struct micro_operation_def): Strengthen field
3215 "insn" from rtx to rtx_insn *.
3216 (struct emit_note_data_def): Likewise.
3217 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3218 (vt_stack_adjustments): Likewise for local "insn".
3219 (adjust_insn): Likewise for param "insn".
3220 (val_store): Likewise.
3221 (val_resolve): Likewise.
3222 (struct count_use_info): Likewise for field "insn".
3223 (log_op_type): Likewise for param "insn".
3224 (reverse_op): Likewise.
3225 (prepare_call_arguments): Likewise.
3226 (add_with_sets): The initial param takes an insn, but we can't
3227 yet strengthen it from rtx to rtx_insn * since it's used as a
3228 cselib_record_sets_hook callback. For now rename initial param
3229 from "insn" to "uncast_insn", and introduce a local "insn" of
3230 the stronger rtx_insn * type, with a checked cast.
3231 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3233 (emit_note_insn_var_location): Likewise.
3234 (emit_notes_for_changes): Likewise.
3235 (emit_notes_for_differences): Likewise.
3236 (next_non_note_insn_var_location): Likewise for return type and
3238 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3239 (vt_initialize): Likewise for local "insn".
3240 (delete_debug_insns): Likewise for locals "insn" and "next".
3242 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3244 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3246 (mark_constant_pool): Likewise for local "insn".
3248 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3250 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3252 (dead_debug_promote_uses): Likewise.
3253 (dead_debug_insert_temp): Likewise.
3255 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3257 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3258 from const_rtx to const rtx_insn *.
3259 (store_killed_after): Likewise. Strengthen locals "last", "act"
3260 from rtx to rtx_insn *.
3261 (store_killed_before): Strengthen param "insn" from const_rtx to
3262 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3263 (find_moveable_store): Strengthen param "insn" from rtx to
3265 (compute_store_table): Likewise for local "insn".
3266 (insert_insn_start_basic_block): Likewise for param "insn" and
3267 locals "prev", "before", "insn".
3268 (insert_store): For now, add a checked cast to rtx_insn * on the
3269 result of gen_move_insn.
3270 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3272 (replace_store_insn): Likewise. For now, add a checked cast to
3273 rtx_insn * on the result of gen_move_insn.
3275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3277 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3279 (expand_sjlj_dispatch_table): Likewise.
3281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3283 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3284 "insn" from rtx to rtx_insn *.
3286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3288 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3289 "insn" from rtx to rtx_insn *.
3290 (dup_block_and_redirect): Likewise for param 3 "before".
3292 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3293 from rtx to rtx_insn *.
3294 (move_insn_for_shrink_wrap): Likewise.
3295 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3296 (dup_block_and_redirect): Likewise for param "before" and local
3298 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3300 (convert_to_simple_return): Likewise for local "start".
3302 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3303 Strengthen local "insn" from rtx to rtx_insn *, for use when
3304 invoking requires_stack_frame_p.
3306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3308 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3310 (speculate_expr): Likewise for locals "orig_insn_rtx",
3312 (eq_transformed_insns): Likewise for locals "i1", "i2".
3313 (check_for_new_jump): Likewise for return type and local "end".
3314 (find_new_jump): Likewise for return type and local "jump".
3315 (sel_split_edge): Likewise for local "jump".
3316 (sel_create_recovery_block): Likewise.
3317 (sel_redirect_edge_and_branch_force): Likewise.
3318 (sel_redirect_edge_and_branch): Likewise.
3320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3322 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3323 "new_insn" from rtx to rtx_insn *.
3324 (create_insn_rtx_with_rhs): Likewise for return type and for local
3326 (create_insn_rtx_with_lhs): Likewise.
3327 (create_speculation_check): Likewise for local "insn_rtx".
3328 (implicit_clobber_conflict_p): Likewise for local "insn".
3329 (get_expr_cost): Likewise.
3330 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3331 (move_cond_jump): Likewise for locals "next", "prev", "link",
3332 "head", "from", "to".
3334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3336 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3337 "next" from rtx to rtx_insn *.
3338 (find_conditional_protection): Likewise for local "next".
3339 (is_conditionally_protected): Likewise for local "insn1".
3340 (is_pfree): Likewise for locals "insn1", "insn2".
3342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3344 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3345 from rtx to rtx_insn *.
3347 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3348 locals "insn1", "insn2" from rtx to rtx_insn *.
3349 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3350 locals "insn", "prev", "last_jump", "next_tail".
3351 (schedule_ebb): Likewise for params "head", "tail".
3352 (schedule_ebbs): Likewise for locals "tail", "head".
3354 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3355 to rtx_insn on "last_insn" in one of the invocations of
3358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3360 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3361 "elem", "insn" from rtx to rtx_insn *.
3362 (change_spec_dep_to_hard): Likewise.
3363 (get_back_and_forw_lists): Likewise for local "con".
3364 (sd_add_dep): Likewise for locals "elem", "insn".
3365 (sd_resolve_dep): Likewise for locals "pro", "con".
3366 (sd_unresolve_dep): Likewise.
3367 (sd_delete_dep): Likewise.
3368 (chain_to_prev_insn): Likewise for local "pro".
3369 (find_inc): Likewise for locals "pro", "con".
3371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3373 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3375 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3377 (modified_between_p): Strengthen local "insn" from rtx to
3379 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3380 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3385 * resource.c (next_insn_no_annul): Strengthen local "next" from
3387 (mark_referenced_resources): Likewise for local "insn".
3389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3391 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3393 (find_reloads): Likewise for param 1.
3394 (subst_reloads): Likewise for sole param.
3395 (find_equiv_reg): Likwise for param 2.
3396 (regno_clobbered_p): Likwise for param 2.
3397 (reload): Likewise for param 1.
3399 * caller-save.c (save_call_clobbered_regs): Strengthen local
3400 "insn" from rtx to rtx_insn *.
3401 (insert_one_insn): Likewise for local "insn".
3403 * reload.c (this_insn): Likewise for this global.
3404 (find_reloads): Likewise for param "insn".
3405 (find_reloads_toplev): Likewise.
3406 (find_reloads_address): Likewise.
3407 (subst_reg_equivs): Likewise.
3408 (update_auto_inc_notes): Likewise.
3409 (find_reloads_address_1): Likewise.
3410 (find_reloads_subreg_address): Likewise.
3411 (subst_reloads): Likewise.
3412 (find_equiv_reg): Likewise, also for local "p".
3413 (regno_clobbered_p): Likewise for param "insn".
3415 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3417 (spill_reg_store): Likewise for the elements of this array.
3418 (remove_init_insns): Likewise for local "equiv_insn".
3419 (will_delete_init_insn_p): Likewise for param "insn".
3420 (reload): Likewise for param ""first" and local "insn".
3421 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3423 (calculate_elim_costs_all_insns): Likewise.
3424 (delete_caller_save_insns): Likewise.
3425 (spill_failure): Likewise for param "insn".
3426 (delete_dead_insn): Likewise.
3427 (set_label_offsets): Likewise.
3428 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3430 (elimination_costs_in_insn): Likewise for param "insn".
3431 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3432 when referring to an insn.
3433 (set_initial_label_offsets): Likewise.
3434 (set_offsets_for_label): Strengthen param "insn" from rtx to
3436 (init_eliminable_invariants): Likewise for param "first" and local
3438 (fixup_eh_region_note): Likewise for param "insn".
3439 (reload_as_needed): Likewise for locals "prev", "insn",
3440 "old_next", "old_prev", "next".
3441 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3443 (reload_inheritance_insn): Strengthen elements of this array from
3445 (failed_reload): Likewise for param "insn".
3446 (choose_reload_regs): Likewise for local "insn". Replace use of
3447 NULL_RTX with NULL when referring to an insn.
3448 (input_reload_insns): Strengthen elements of this array from rtx
3450 (other_input_address_reload_insns): Likewise for this global.
3451 (other_input_reload_insns): Likewise for this global.
3452 (input_address_reload_insns): Likwise for the elements of this
3454 (inpaddr_address_reload_insns): Likwise for the elements of this
3456 (output_reload_insns): Likewise for the elements of this array.
3457 (output_address_reload_insns): Likewise for the elements of this
3459 (outaddr_address_reload_insns): Likewise for the elements of this
3461 (operand_reload_insns): Likewise for this global.
3462 (other_operand_reload_insns): Likewise for this global.
3463 (other_output_reload_insns): Likewise for the elements of this
3465 (new_spill_reg_store): Likewise for the elements of this
3467 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3468 Strengthen local "where" from rtx * to rtx_insn **.
3469 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3470 from rtx to rtx_insn *.
3471 (do_input_reload): Likewise for local "insn".
3472 (do_output_reload): Likewise for local "insn".
3473 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3474 (emit_insn_if_valid_for_reload): Likewise for return type and local
3475 "last". Add checked cast to rtx_insn when returning "insn" since
3476 this has been through emit_insn.
3477 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3478 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3479 returning "insn" since it's been through
3480 emit_insn_if_valid_for_reload at this point.
3481 (delete_output_reload): Strengthen param "insn" and locals
3482 "output_reload_insn", "i2" from rtx to rtx_insn *.
3483 (delete_address_reloads): Likewise for params "dead_insn",
3484 "current_insn" and locals "prev", "next".
3485 (delete_address_reloads_1): Likewise for params "dead_insn",
3486 "current_insn" and locals "prev", "i2".
3487 (inc_for_reload): Likewise for locals "last", "add_insn".
3488 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3491 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3492 param of this duplicate of the prototype from reload.h
3494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3496 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3498 (regstat_bb_compute_calls_crossed): Likewise.
3500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3502 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3504 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3506 (regrename_analyze): Strengthen local "insn" from rtx to
3508 (scan_rtx_reg): Likewise for param "insn".
3509 (scan_rtx_address): Likewise.
3510 (scan_rtx): Likewise.
3511 (restore_operands): Likewise.
3512 (record_out_operands): Likewise.
3513 (build_def_use): Likewise for local "insn". Replace use of
3514 NULL_RTX with NULL when dealing with an insn.
3516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3518 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3519 * reginfo.c (reg_scan): Likewise, also for local "insn".
3520 (reg_scan_mark_refs): Likewise for param "insn".
3521 (init_subregs_of_mode): Likewise for local "insn".
3523 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3525 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3526 "insn" from rtx to rtx_insn *.
3527 (replace_oldest_value_reg): Likewise for param "insn".
3528 (replace_oldest_value_addr): Likewise.
3529 (replace_oldest_value_mem): Likewise.
3530 (apply_debug_insn_changes): Likewise for local "last_insn".
3531 (copyprop_hardreg_forward_1): Likewise for local "insn".
3533 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3535 * reg-stack.c (next_flags_user): Strengthen return type and param
3536 "insn" from rtx to rtx_insn *.
3537 (straighten_stack): Likewise for param "insn".
3538 (check_asm_stack_operands): Likewise.
3539 (remove_regno_note): Likewise.
3540 (emit_pop_insn): Likewise for return type, param "insn", local
3542 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3543 "limit" from rtx to rtx_insn *.
3544 (swap_to_top): Likewise for param "insn".
3545 (move_for_stack_reg): Likewise.
3546 (move_nan_for_stack_reg): Likewise.
3547 (swap_rtx_condition): Likewise.
3548 (compare_for_stack_reg): Likewise.
3549 (subst_all_stack_regs_in_debug_insn): Likewise.
3550 (subst_stack_regs_pat): Likewise, and local "insn2".
3551 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3553 (subst_stack_regs): Likewise.
3554 (change_stack): Likewise.
3555 (convert_regs_1): Likewise for locals "insn", "next".
3557 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3559 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3561 (combine_set_extension): Likewise for param "curr_insn".
3562 (transform_ifelse): Likewise for param "def_insn".
3563 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3564 from vec<rtx> * to vec<rtx_insn *> *.
3565 (is_cond_copy_insn): Likewise for param "insn".
3566 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3568 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3569 local "def_insn" from rtx to rtx_insn *.
3570 (get_sub_rtx): Likewise for param "def_insn".
3571 (merge_def_and_ext): Likewise.
3572 (combine_reaching_defs): Likewise.
3573 (add_removable_extension): Likewise for param "insn".
3574 (find_removable_extensions): Likewise for local "insn".
3575 (find_and_remove_re): Likewise for locals "curr_insn" and
3576 "def_insn". Strengthen locals "reinsn_del_list" and
3577 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3581 * recog.c (split_insn): Strengthen param "insn" and locals
3582 "first", "last" from rtx to rtx_insn *.
3583 (split_all_insns): Likewise for locals "insn", "next".
3584 (split_all_insns_noflow): Likewise.
3586 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3588 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3590 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3591 (debug_rtx_find): Likewise for param 1 "x".
3593 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3594 const_rtx to const rtx_insn *. Likewise for local "insn".
3595 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3596 (debug_rtx_find): Likewise for param 1 "x".
3597 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3598 from const_rtx to const rtx_insn * within the appropriate cases of
3599 the switch statement.
3601 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3602 Strengthen local "insns" from rtx to rtx_insn * since this is
3603 passed to a call to debug_rtx_list.
3605 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3607 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3610 * function.c (stack_protect_epilogue): Add checked cast to
3611 rtx_insn for now when invoking predict_insn_def.
3613 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3615 (predict_insn_def): Likewise.
3616 (rtl_predict_edge): Likewise for local "last_insn".
3617 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3619 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3621 (bb_estimate_probability_locally): Likewise for local "last_insn".
3622 (expensive_function_p): Likewise for local "insn".
3624 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3625 local "jmp", since this is used when invoking predict_insn_def.
3627 2014-08-22 Marek Polacek <polacek@redhat.com>
3630 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3632 2014-08-22 Marek Polacek <polacek@redhat.com>
3635 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3636 a comparison in parens.
3637 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3640 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3642 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3645 * cprop.c (fis_get_condition): Likewise.
3647 * postreload.c (reload_cse_regs): Likewise for param "first".
3648 (reload_cse_simplify): Likewise for param "insn".
3649 (reload_cse_regs_1): Likewise for local "insn".
3650 (reload_cse_simplify_set): Likewise for param "insn".
3651 (reload_cse_simplify_operands): Likewise.
3652 (struct reg_use): Likewise for field "insn".
3653 (reload_combine_purge_insn_uses): Likewise for param "insn".
3654 (fixup_debug_insns): Likewise for params "from", "to" and local
3656 (try_replace_in_use): Likewise for local "use_insn".
3657 (reload_combine_recognize_const_pattern): Likewise for param
3658 "insn" and locals "add_moved_after_insn", "use_insn".
3659 (reload_combine_recognize_pattern): Likewise for param "insn" and
3661 (reload_combine): Likewise for locals "insn", "prev".
3662 (reload_combine_note_use): Likewise for param "insn".
3663 (move2add_use_add2_insn): Likewise.
3664 (move2add_use_add3_insn): Likewise.
3665 (reload_cse_move2add): Likewise, also for local "next".
3666 (move2add_note_store): Likewise for local "insn".
3668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3670 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3672 (struct unoccr): Likewise.
3673 (struct modifies_mem): Likewise.
3674 (alloc_mem): Likewise for local "insn".
3675 (insert_expr_in_table): Likewise for param "insn".
3676 (dump_expr_hash_table_entry): Likewise for local "insn".
3677 (oprs_unchanged_p): Likewise for param "insn".
3678 (load_killed_in_block_p): Likewise for local "setter".
3679 (record_last_reg_set_info): Likewise for param "insn".
3680 (record_last_reg_set_info_regno): Likewise.
3681 (record_last_mem_set_info): Likewise.
3682 (record_last_set_info): Likewise for local "last_set_insn".
3683 (record_opr_changes): Likewise for param "insn".
3684 (hash_scan_set): Likewise.
3685 (compute_hash_table): Likewise for local "insn".
3686 (get_avail_load_store_reg): Likewise for param "insn".
3687 (eliminate_partially_redundant_load): Likewise, also for locals
3688 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3690 (eliminate_partially_redundant_loads): Likewise for local "insn".
3692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3694 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3696 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3697 (expand_twoval_unop): Likewise for locals entry_last", "last".
3698 (expand_twoval_binop): Likewise.
3699 (expand_twoval_binop_libfunc): Likewise for local "insns".
3700 (widen_leading): Likewise for local "last".
3701 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3702 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3703 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3704 (expand_parity): Likewise for locals "last" and "seq".
3705 (expand_ffs): Likewise for local "seq". Strengthen local
3706 "nonzero_label" from rtx to rtx_code_label *.
3707 (expand_absneg_bit): Strengthen local "insns" from rtx to
3709 (expand_unop_direct): Likewise for local "last".
3710 (expand_unop): Likewise for locals "last", "insns".
3711 (expand_abs_nojump): Likewise for local "last".
3712 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3713 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3715 (expand_copysign_absneg): Strengthen local "label" from rtx to
3717 (expand_copysign_bit): Strengthen local "insns" from rtx to
3719 (struct no_conflict_data): Likewise for fields "first", "insn".
3720 (emit_libcall_block_1): Likewise for param "insns" and locals
3721 "next", "last", "insn".
3722 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3723 on "insns" when invoking emit_libcall_block_1. Ultimately we
3724 want to strengthen insns itself.
3725 (prepare_cmp_insn): Strengthen local "last" from rtx to
3727 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3728 (prepare_float_lib_cmp): Likewise for local "insns".
3729 (emit_conditional_move): Likewise for local "last".
3730 (emit_conditional_add): Likewise.
3731 (have_sub2_insn): Likewise for local "seq".
3732 (expand_float): Likewise for local "insns". Strengthen locals
3733 "label", "neglabel" from rtx to rtx_code_label *.
3734 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3735 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3736 (expand_fixed_convert): Likewise for local "insns" (to
3738 (expand_sfix_optab): Likewise for local "last".
3739 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3740 to rtx_code_label *.
3741 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3742 from rtx to rtx_insn *.
3743 (expand_atomic_fetch_op): Likewise for local "insn".
3744 (maybe_legitimize_operand_same_code): Likewise for local "last".
3745 (maybe_legitimize_operands): Likewise.
3747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3749 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3750 "insn" from rtx to rtx_insn *.
3751 (ps_rtl_insn): Likewise for return type.
3752 (doloop_register_get): Likewise for params "head", "tail" and
3753 locals "insn", "first_insn_not_to_check".
3754 (schedule_reg_move): Likewise for local "this_insn".
3755 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3756 of gen_move_insn for now.
3757 (reset_sched_times): Strengthen local "insn" from rtx to
3759 (permute_partial_schedule): Likewise.
3760 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3761 (dump_insn_location): Likewise for param "insn".
3762 (loop_canon_p): Likewise for local "insn".
3763 (sms_schedule): Likewise.
3764 (print_partial_schedule): Likewise.
3765 (ps_has_conflicts): Likewise.
3767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3769 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3770 "tailp" from rtx * to rtx_insn **.
3772 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3773 from rtx to rtx_insn *.
3774 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3775 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3776 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3778 * modulo-sched.c (const_iteration_count): Strengthen return type
3779 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3780 use of NULL_RTX with NULL when working with insns.
3781 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3783 (sms_schedule): Likewise.
3784 * sched-rgn.c (init_ready_list): Likewise, also for locals
3785 "src_head" and "src_next_tail".
3786 (compute_block_dependences): Likewise.
3787 (free_block_dependencies): Likewise.
3788 (debug_rgn_dependencies): Likewise.
3789 (free_rgn_deps): Likewise.
3790 (compute_priorities): Likewise.
3791 (schedule_region): Likewise.
3792 * sel-sched.c (find_ebb_boundaries): Likewise.
3794 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3795 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3797 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3799 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3800 from rtx to rtx_insn *.
3801 (new_seginfo): Likewise for param "insn".
3802 (create_pre_exit): Likewise for locals "last_insn",
3803 "before_return_copy", "return_copy".
3804 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3809 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3810 from rtx to rtx_insn *.
3811 (lra_push_insn): Likewise for 1st param.
3812 (lra_push_insn_and_update_insn_regno_info): Likewise.
3813 (lra_pop_insn): Likewise for return type.
3814 (lra_invalidate_insn_data): Likewise for 1st param.
3815 (lra_set_insn_deleted): Likewise.
3816 (lra_delete_dead_insn): Likewise.
3817 (lra_process_new_insns): Likewise for first 3 params.
3818 (lra_set_insn_recog_data): Likewise for 1st param.
3819 (lra_update_insn_recog_data): Likewise.
3820 (lra_set_used_insn_alternative): Likewise.
3821 (lra_invalidate_insn_regno_info): Likewise.
3822 (lra_update_insn_regno_info): Likewise.
3823 (lra_former_scratch_operand_p): Likewise.
3824 (lra_eliminate_regs_1): Likewise.
3825 (lra_get_insn_recog_data): Likewise.
3827 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3830 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3832 (substitute_within_insn): New.
3833 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3834 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3835 Replace call to "substitute" with call to substitute_within_insn.
3837 * lra-constraints.c (curr_insn): Strengthen from rtx to
3839 (get_equiv_with_elimination): Likewise for param "insn".
3840 (match_reload): Strengthen params "before" and "after" from rtx *
3842 (emit_spill_move): Likewise for return type. Add a checked cast
3843 to rtx_insn * on result of gen_move_insn for now.
3844 (check_and_process_move): Likewise for local "before". Replace
3845 NULL_RTX with NULL when referring to insns.
3846 (process_addr_reg): Strengthen params "before" and "after" from
3847 rtx * to rtx_insn **.
3848 (insert_move_for_subreg): Likewise.
3849 (simplify_operand_subreg): Strengthen locals "before" and "after"
3850 from rtx to rtx_insn *.
3851 (process_address_1): Strengthen params "before" and "after" from
3852 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3854 (process_address): Strengthen params "before" and "after" from
3855 rtx * to rtx_insn **.
3856 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3857 (curr_insn_transform): Strengthen locals "before" and "after"
3858 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3860 (loc_equivalence_callback): Update cast of "data", changing
3861 resulting type from rtx to rtx_insn *.
3862 (substitute_pseudo_within_insn): New.
3863 (inherit_reload_reg): Strengthen param "insn" from rtx to
3864 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3865 NULL when referring to insns. Add a checked cast to rtx_insn *
3866 when using usage_insn to invoke lra_update_insn_regno_info.
3867 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3868 likewise for locals "restore", "save". Add checked casts to
3869 rtx_insn * when using usage_insn to invoke
3870 lra_update_insn_regno_info and lra_process_new_insns. Replace
3871 NULL_RTX with NULL when referring to insns.
3872 (split_if_necessary): Strengthen param "insn" from rtx to
3874 (update_ebb_live_info): Likewise for params "head", "tail" and local
3876 (get_last_insertion_point): Likewise for return type and local "insn".
3877 (get_live_on_other_edges): Likewise for local "last".
3878 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3879 "prev_insn", "next_insn", "restore".
3880 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3881 (undo_optional_reloads): Likewise for local "insn".
3883 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3885 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3887 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3889 (spill_pseudos): Likewise for local "insn".
3890 (init_elimination): Likewise.
3891 (process_insn_for_elimination): Likewise for param "insn".
3893 * lra-lives.c (curr_insn): Likewise.;
3895 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3896 (remove_pseudos): Likewise for param "insn".
3897 (spill_pseudos): Likewise for local "insn".
3898 (lra_final_code_change): Likewise for locals "insn", "curr".
3900 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3901 (lra_set_insn_deleted): Likewise.
3902 (lra_delete_dead_insn): Likewise, and for local "prev".
3903 (new_insn_reg): Likewise for param "insn".
3904 (lra_set_insn_recog_data): Likewise.
3905 (lra_update_insn_recog_data): Likewise.
3906 (lra_set_used_insn_alternative): Likewise.
3907 (get_insn_freq): Likewise.
3908 (invalidate_insn_data_regno_info): Likewise.
3909 (lra_invalidate_insn_regno_info): Likewise.
3910 (lra_update_insn_regno_info): Likewise.
3911 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3913 (lra_push_insn_1): Strengthen param "insn" from rtx to
3915 (lra_push_insn): Likewise.
3916 (lra_push_insn_and_update_insn_regno_info): Likewise.
3917 (lra_pop_insn): Likewise for return type and local "insn".
3918 (push_insns): Likewise for params "from", "to", and local "insn".
3919 (setup_sp_offset): Likewise for params "from", "last" and locals
3921 (lra_process_new_insns): Likewise for params "insn", "before",
3922 "after" and local "last".
3923 (struct sloc): Likewise for field "insn".
3924 (lra_former_scratch_operand_p): Likewise for param "insn".
3925 (remove_scratches): Likewise for locals "insn", "last".
3926 (check_rtl): Likewise for local "insn".
3927 (add_auto_inc_notes): Likewise for param "insn".
3928 (update_inc_notes): Likewise for local "insn".
3929 (lra): Replace NULL_RTX with NULL when referring to insn.
3931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3933 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3935 (resolve_reg_notes): Likewise.
3936 (resolve_simple_move): Likewise for return type, param "insn", and
3937 locals "insns", "minsn".
3938 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3939 (resolve_use): Likewise.
3940 (resolve_debug): Likewise.
3941 (find_decomposable_shift_zext): Likewise.
3942 (resolve_shift_zext): Likewise for return type, param "insn", and
3943 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3944 (decompose_multiword_subregs): Likewise for local "insn",
3945 "orig_insn", "decomposed_shift", "end".
3947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3949 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3950 param "insns" from rtx to rtx_insn *.
3952 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3954 (struct iv_to_split): Likewise.
3955 (loop_exit_at_end_p): Likewise for local "insn".
3956 (split_edge_and_insert): Likewise for param "insns".
3957 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3958 and locals "seq", "jump".
3959 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3960 "branch_code"; update invocations of compare_and_jump_seq to
3961 eliminate NULL_RTX in favor of NULL.
3962 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3964 (reset_debug_uses_in_loop): Likewise.
3965 (analyze_insn_to_expand_var): Likewise for param "insn".
3966 (analyze_iv_to_split_insn): Likewise.
3967 (analyze_insns_in_loop): Likewise for local "insn".
3968 (insert_base_initialization): Likewise for param
3969 "insn" and local "seq".
3970 (split_iv): Likewise for param "insn" and local "seq".
3971 (expand_var_during_unrolling): Likewise for param "insn".
3972 (insert_var_expansion_initialization): Likewise for local "seq".
3973 (combine_var_copies_in_loop_exit): Likewise.
3974 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3976 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3977 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3982 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3984 (iv_analyze_result): Likewise.
3985 (iv_analyze_expr): Likewise.
3988 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3989 local "def_insn" from rtx to rtx_insn *.
3990 (get_biv_step_1): Likewise for local "insn".
3991 (iv_analyze_expr): Likewise for param "insn".
3992 (iv_analyze_def): Likewise for local "insn".
3993 (iv_analyze_op): Likewise for param "insn".
3994 (iv_analyze): Likewise.
3995 (iv_analyze_result): Likewise.
3997 (suitable_set_for_replacement): Likewise.
3998 (simplify_using_initial_values): Likewise for local "insn".
3999 (iv_number_of_iterations): Likewise for param "insn".
4000 (check_simple_exit): Add checked cast to rtx_insn when invoking
4001 iv_number_of_iterations for now (until get_condition is
4004 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4005 "insn" from rtx to rtx_insn *.
4006 (analyze_insns_in_loop): Likewise for local "insn".
4008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4010 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4012 (struct invariant): Likewise.
4013 (hash_invariant_expr_1): Likewise for param "insn".
4014 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4015 (find_exits): Likewise for local "insn".
4016 (create_new_invariant): Likewise for param "insn".
4017 (check_dependencies): Likewise.
4018 (find_invariant_insn): Likewise.
4019 (record_uses): Likewise.
4020 (find_invariants_insn): Likewise.
4021 (find_invariants_bb): Likewise for local "insn".
4022 (get_pressure_class_and_nregs): Likewise for param "insn".
4023 (calculate_loop_reg_pressure): Likewise for local "insn".
4025 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4027 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4029 (add_test): Likewise for locals "seq", "jump".
4030 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4032 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4034 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4036 (rebuild_jump_labels_chain): Likewise for param "chain".
4038 * cfgexpand.c (pass_expand::execute): Add checked cast to
4039 rtx_insn * when calling rebuild_jump_labels_chain in region where
4040 we know e->insns.r is non-NULL.
4042 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4044 (rebuild_jump_labels): Likewise.
4045 (rebuild_jump_labels_chain): Likewise for param "chain".
4046 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4047 (init_label_info): Likewise for param "f".
4048 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4049 "prev_nonjump_insn".
4050 (mark_all_labels): Likewise for param "f" and locals "insn",
4051 "prev_nonjump_insn".
4053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4055 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4056 from rtx to rtx_insn *insn.
4057 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4058 (ira_add_allocno_copy): Likewise.
4059 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4061 (ira_create_copy): Likewise.
4062 (ira_add_allocno_copy): Likewise.
4063 (create_bb_allocnos): Likewise for local "insn".
4064 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4065 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4066 process_regs_for_copy for rtx_insn * param.
4067 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4068 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4069 process_regs_for_copy for rtx_insn * param.
4070 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4071 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4072 (record_operand_costs): Likewise.
4073 (scan_one_insn): Likewise for return type, and for param "insn".
4074 (process_bb_for_costs): Likewise for local "insn".
4075 (process_bb_node_for_hard_reg_moves): Likewise.
4076 * ira-emit.c (struct move): Likewise for field "insn".
4077 (create_move): Eliminate use of NULL_RTX when dealing with an
4079 (emit_move_list): Strengthen return type and locals "result",
4080 "insn" from rtx to rtx_insn *insn.
4081 (emit_moves): Likewise for locals "insns", "tmp".
4082 (ira_emit): Likewise for local "insn".
4083 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4085 (find_call_crossed_cheap_reg): Likewise.
4086 (process_bb_node_lives): Likewise for local "insn".
4087 * ira.c (decrease_live_ranges_number): Likewise.
4088 (compute_regs_asm_clobbered): Likewise.
4089 (build_insn_chain): Likewise.
4090 (find_moveable_pseudos): Likewise, also locals "def_insn",
4091 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4092 to rtx_insn **. Add a checked cast when assigning from
4093 "closest_use" into closest_uses array in a region where we know
4094 it's a non-NULL insn.
4095 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4097 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4098 "last_interesting_insn", "uin".
4099 (move_unallocated_pseudos): Likewise for locals "def_insn",
4100 "move_insn", "newinsn".
4102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4104 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4105 Strengthen locals "done_label", "do_error" from rtx to
4107 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4108 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4110 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4111 "done_label", "do_error" to rtx_code_label * and local "last" to
4113 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4114 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4115 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4116 "after_lopart_neg", "do_overflow", "hipart_different" to
4117 rtx_code_label * and local "last" to rtx_insn *.
4119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4121 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4122 "insn" and "move_insn" from rtx to rtx_insn *.
4124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4126 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4128 (cheap_bb_rtx_cost_p): Likewise.
4129 (first_active_insn): Likewise for return type and local "insn".
4130 (last_active_insn): Likewise for return type and locals "insn",
4132 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4134 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4136 (noce_try_move): Likewise for local "seq".
4137 (noce_try_store_flag): Likewise.
4138 (noce_try_store_flag_constants): Likewise.
4139 (noce_try_addcc): Likewise.
4140 (noce_try_store_flag_mask): Likewise.
4141 (noce_try_cmove): Likewise.
4142 (noce_try_minmax): Likewise.
4143 (noce_try_abs): Likewise.
4144 (noce_try_sign_mask): Likewise.
4145 (noce_try_bitop): Likewise.
4146 (noce_can_store_speculate_p): Likewise for local "insn".
4147 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4149 (check_cond_move_block): Likewise for local "insn".
4150 (cond_move_convert_if_block): Likewise.
4151 (cond_move_process_if_block): Likewise for locals "seq",
4153 (noce_find_if_block): Likewise for local "jump".
4154 (merge_if_block): Likewise for local "last".
4155 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4156 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4157 (block_has_only_trap): Likewise for return type and local "trap".
4158 (find_if_case_1): Likewise for local "jump".
4159 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4164 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4165 "last_insn", "loop_end" from rtx to rtx_insn *.
4167 * hw-doloop.c (scan_loop): Likewise for local "insn".
4168 (discover_loop): Likewise for param "tail_insn".
4169 (discover_loops): Likewise for local "tail".
4171 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4172 cast to rtx_insn * when assigning from an rtx local to a
4173 hwloop_info's "last_insn" field.
4175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4177 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4178 (add_delay_dependencies): Strengthen local "pro" from rtx to
4180 (recompute_todo_spec): Likewise.
4181 (dep_cost_1): Likewise for locals "insn", "used".
4182 (schedule_insn): Likewise for local "dbg".
4183 (schedule_insn): Likewise for locals "pro", "next".
4184 (unschedule_insns_until): Likewise for local "con".
4185 (restore_pattern): Likewise for local "next".
4186 (estimate_insn_tick): Likewise for local "pro".
4187 (resolve_dependencies): Likewise for local "next".
4188 (fix_inter_tick): Likewise.
4189 (fix_tick_ready): Likewise for local "pro".
4190 (add_to_speculative_block): Likewise for locals "check", "twin",
4192 (sched_extend_bb): Likewise for locals "end", "insn".
4193 (init_before_recovery): Likewise for local "x".
4194 (sched_create_recovery_block): Likewise for local "barrier".
4195 (create_check_block_twin): Likewise for local "pro".
4196 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4198 (unlink_bb_notes): Update for change to type of bb_header.
4199 Strengthen locals "prev", "label", "note", "next" from rtx to
4201 (clear_priorities): Likewise for local "pro".
4203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4205 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4207 (test_insn): Likewise for this global.
4208 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4210 (oprs_anticipatable_p): Likewise.
4211 (oprs_available_p): Likewise.
4212 (insert_expr_in_table): Strengthen param "insn" from rtx to
4214 (hash_scan_set): Likewise.
4215 (hash_scan_clobber): Likewise.
4216 (hash_scan_call): Likewise.
4217 (hash_scan_insn): Likewise.
4218 (compute_hash_table_work): Likewise for local "insn".
4219 (process_insert_insn): Likewise for return type and local "pat".
4220 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4221 "pat", "pat_end", "maybe_cc0_setter".
4222 (pre_edge_insert): Likewise for local "insn".
4223 (pre_insert_copy_insn): Likewise for param "insn".
4224 (pre_insert_copies): Likewise for local "insn".
4225 (struct set_data): Likewise for field "insn".
4226 (single_set_gcse): Likewise for param "insn".
4227 (gcse_emit_move_after): Likewise.
4228 (pre_delete): Likewise for local "insn".
4229 (update_bb_reg_pressure): Likewise for param "from" and local
4231 (should_hoist_expr_to_dom): Likewise for param "from".
4232 (hoist_code): Likewise for local "insn".
4233 (get_pressure_class_and_nregs): Likewise for param "insn".
4234 (calculate_bb_reg_pressure): Likewise for local "insn".
4235 (compute_ld_motion_mems): Likewise.
4237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4239 * genpeep.c (main): Rename param back from "uncast_ins1" to
4240 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4243 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4245 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4248 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4249 documentation to state it is only for VSX operations.
4251 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4252 constraint only active if VSX.
4254 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4255 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4260 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4261 Strengthen local "insn" from rtx to rtx_insn *.
4262 (use_killed_between): Likewise for param "target_insn".
4263 (all_uses_available_at): Likewise for param "target_insn" and
4265 (update_df_init): Likewise for params "def_insn", "insn".
4266 (update_df): Likewise for param "insn".
4267 (try_fwprop_subst): Likewise for param "def_insn" and local
4269 (free_load_extend): Likewise for param "insn".
4270 (forward_propagate_subreg): Likewise for param "def_insn" and
4272 (forward_propagate_asm): Likewise for param "def_insn" and local
4274 (forward_propagate_and_simplify): Likewise for param "def_insn"
4275 and local "use_insn".
4276 (forward_propagate_into): Likewise for locals "def_insn" and
4279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4281 * function.c (emit_initial_value_sets): Strengthen local "seq"
4282 from rtx to rtx_insn *.
4283 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4285 (instantiate_virtual_regs): Likewise for local "insn".
4286 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4287 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4288 (expand_function_end): Likewise for locals "insn" and "seq".
4289 (epilogue_done): Likewise for local "insn".
4290 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4292 (reposition_prologue_and_epilogue_notes): Likewise for locals
4293 "insn", "last", "note", "first".
4294 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4295 (pass_match_asm_constraints::execute): Likewise for local "insn".
4297 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4299 * output.h (final_scan_insn): Strengthen return type from rtx to
4301 (final_forward_branch_p): Likewise for param.
4302 (current_output_insn): Likewise for this global.
4304 * final.c (rtx debug_insn): Likewise for this variable.
4305 (current_output_insn): Likewise.
4306 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4307 adding "insn" back in as an rtx_insn * with a checked cast, so
4308 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4310 (compute_alignments): Strengthen local "label" from rtx to
4312 (shorten_branches): Rename param from "first" to "uncast_first",
4313 introducing a new local rtx_insn * "first" using a checked cast to
4314 effectively strengthen "first" from rtx to rtx_insn * without
4315 affecting the type signature. Strengthen locals "insn", "seq",
4316 "next", "label" from rtx to rtx_insn *.
4317 (change_scope): Strengthen param "orig_insn" and local "insn" from
4319 (final_start_function): Rename param from "first" to "uncast_first",
4320 introducing a new local rtx_insn * "first" using a checked cast to
4321 effectively strengthen "first" from rtx to rtx_insn * without
4322 affecting the type signature. Strengthen local "insn" from rtx to
4324 (dump_basic_block_info): Strengthen param "insn" from rtx to
4326 (final): Rename param from "first" to "uncast_first",
4327 introducing a new local rtx_insn * "first" using a checked cast to
4328 effectively strengthen "first" from rtx to rtx_insn * without
4329 affecting the type signature. Strengthen locals "insn", "next"
4330 from rtx to rtx_insn *.
4331 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4333 (call_from_call_insn): Strengthen param "insn" from rtx to
4335 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4336 introducing a new local rtx_insn * "insn" using a checked cast to
4337 effectively strengthen "insn" from rtx to rtx_insn * without
4338 affecting the type signature. Strengthen return type and locals
4339 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4340 now-redundant checked cast to rtx_insn * from both invocations of
4341 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4342 introducing a local "call_insn" for use when invoking
4343 call_from_call_insn.
4344 (notice_source_line): Strengthen param "insn" from rtx to
4346 (leaf_function_p): Likewise for local "insn".
4347 (final_forward_branch_p): Likewise.
4348 (leaf_renumber_regs): Likewise for param "first".
4349 (rest_of_clean_state): Likewise for locals "insn" and "next".
4350 (self_recursive_call_p): Likewise for param "insn".
4351 (collect_fn_hard_reg_usage): Likewise for local "insn".
4352 (get_call_fndecl): Likewise for param "insn".
4353 (get_call_cgraph_rtl_info): Likewise.
4354 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4355 introducing a new local rtx_insn * "insn" using a checked cast to
4356 effectively strengthen "insn" from rtx to rtx_insn * without
4357 affecting the type signature.
4359 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4360 cast when assigning from param "insn" to current_output_insn.
4361 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4362 so that we can assign it back to current_output_insn.
4364 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4366 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4367 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4368 atmxt540s and atmxt540sreva devices.
4369 * config/avr/avr-tables.opt: Regenerate.
4370 * config/avr/t-multilib: Regenerate.
4371 * doc/avr-mmcu.texi: Regenerate.
4373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4375 * expr.c (convert_move): Strengthen local "insns" from rtx to
4377 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4378 "top_label" from rtx to rtx_code_label *.
4379 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4381 (emit_single_push_insn): Likewise for locals "prev", "last".
4382 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4383 to rtx_code_label *.
4384 (store_constructor): Likewise for locals "loop_start", "loop_end".
4385 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4387 (expand_expr_real_2): Likewise.
4388 (expand_expr_real_1): Strengthen local "label" from rtx to
4391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4393 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4394 from rtx to rtx_insn *.
4395 (store_bit_field_1): Likewise.
4396 (extract_bit_field_1): Likewise.
4397 (expand_mult_const): Likewise for local "insns".
4398 (expmed_mult_highpart): Strengthen local "label" from rtx to
4400 (expand_smod_pow2): Likewise.
4401 (expand_sdiv_pow2): Likewise.
4402 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4403 rtx_insn *. Strengthen locals "label", "label1", "label2",
4404 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4405 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4406 (emit_store_flag): Likewise.
4407 (emit_store_flag_force): Strengthen local "label" from rtx to
4409 (do_cmp_and_jump): Likewise for param "label".
4411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4413 * explow.c (force_reg): Strengthen local "insn" from rtx to
4415 (adjust_stack_1): Likewise.
4416 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4417 "final_label", "available_label", "space_available" from rtx to
4419 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4420 (anti_adjust_stack_and_probe): Likewise.
4422 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4424 * except.h (sjlj_emit_function_exit_after): Strengthen param
4425 "after" from rtx to rtx_insn *. This is only called with
4426 result of get_last_insn (in function.c) so type-change should be
4429 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4430 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4431 to rtx_insn *. These fields are only used from except.c so this
4432 type-change should be self-contained to this patch.
4434 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4435 local "last" from rtx to rtx_insn *.
4436 (dw2_build_landing_pads): Likewise for local "seq".
4437 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4438 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4439 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4441 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4443 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4444 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4445 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4446 referring to an insn. Strengthen local "dispatch_label" from
4447 rtx to rtx_code_label *.
4448 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4450 (expand_eh_return): Strengthen local "around_label" from
4451 rtx to rtx_code_label *.
4452 (convert_to_eh_region_ranges): Strengthen locals "iter",
4453 "last_action_insn", "first_no_action_insn",
4454 "first_no_action_insn_before_switch",
4455 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4459 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4460 from rtx to rtx_insn *.
4461 (cached_next_real_insn): Likewise.
4462 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4464 (dwarf2out_var_location): Strengthen locals "next_real",
4465 "next_note", "expected_next_loc_note", "last_start", "insn" from
4468 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4470 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4471 from rtx to rtx_insn *.
4472 (create_pseudo_cfg): Likewise for local "insn".
4474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4476 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4477 from rtx to rtx_insn *.
4478 (df_bb_regno_last_def_find): Likewise.
4480 * df-problems.c (df_rd_bb_local_compute): Likewise.
4481 (df_lr_bb_local_compute): Likewise.
4482 (df_live_bb_local_compute): Likewise.
4483 (df_chain_remove_problem): Likewise.
4484 (df_chain_create_bb): Likewise.
4485 (df_word_lr_bb_local_compute): Likewise.
4486 (df_remove_dead_eq_notes): Likewise for param "insn".
4487 (df_note_bb_compute): Likewise for local "insn".
4488 (simulate_backwards_to_point): Likewise.
4489 (df_md_bb_local_compute): Likewise.
4491 * df-scan.c (df_scan_free_bb_info): Likewise.
4492 (df_scan_start_dump): Likewise.
4493 (df_scan_start_block): Likewise.
4494 (df_install_ref_incremental): Likewise for local "insn".
4495 (df_insn_rescan_all): Likewise.
4496 (df_reorganize_refs_by_reg_by_insn): Likewise.
4497 (df_reorganize_refs_by_insn_bb): Likewise.
4498 (df_recompute_luids): Likewise.
4499 (df_bb_refs_record): Likewise.
4500 (df_update_entry_exit_and_calls): Likewise.
4501 (df_bb_verify): Likewise.
4503 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4505 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4506 "first_note" from rtx to rtx_insn *.
4507 (get_node_of_insn): Likewise for param 2 "insn".
4508 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4510 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4512 (mem_write_insn_p): Likewise.
4513 (mem_access_insn_p): Likewise.
4514 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4515 (def_has_ccmode_p): Likewise for param "insn".
4516 (add_cross_iteration_register_deps): Likewise for locals
4517 "def_insn" and "use_insn".
4518 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4519 (build_intra_loop_deps): Likewise for local "src_insn".
4520 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4522 (get_node_of_insn): Likewise for param "insn".
4524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4526 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4527 (deletable_insn_p): Strengthen param "insn" from rtx to
4528 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4529 find_call_stack_args, since this is guarded by CALL_P (insn).
4530 (marked_insn_p): Strengthen param "insn" from rtx to
4532 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4533 invoking find_call_stack_args, since this is guarded by
4535 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4536 rtx_insn *; we know this is an insn since this was called by
4538 (mark_nonreg_stores_2): Likewise.
4539 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4541 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4542 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4544 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4545 from rtx to rtx_insn *.
4546 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4548 (delete_unmarked_insns): Likewise for locals "insn", "next".
4549 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4550 (mark_reg_dependencies): Likewise for param "insn".
4551 (rest_of_handle_ud_dce): Likewise for local "insn".
4552 (word_dce_process_block): Likewise.
4553 (dce_process_block): Likewise.
4555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4557 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4558 from rtx to rtx_insn *.
4559 (struct change_cc_mode_args): Likewise for field "insn".
4560 (this_insn): Strengthen from rtx to rtx_insn *.
4561 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4563 (validate_canon_reg): Strengthen param "insn" from rtx to
4565 (canon_reg): Likewise.
4566 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4568 (record_jump_equiv): Strengthen param "insn" from rtx to
4570 (try_back_substitute_reg): Likewise, also for locals "prev",
4572 (find_sets_in_insn): Likewise for param "insn".
4573 (canonicalize_insn): Likewise.
4574 (cse_insn): Likewise. Add a checked cast.
4575 (invalidate_from_clobbers): Likewise for param "insn".
4576 (invalidate_from_sets_and_clobbers): Likewise.
4577 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4579 (cse_prescan_path): Strengthen local "insn" from rtx to
4581 (cse_extended_basic_block): Likewise for locals "insn" and
4583 (cse_main): Likewise for param "f".
4584 (check_for_label_ref): Likewise for local "insn".
4585 (set_live_p): Likewise for second param ("insn").
4586 (insn_live_p): Likewise for first param ("insn") and for local
4588 (cse_change_cc_mode_insn): Likewise for first param "insn".
4589 (cse_change_cc_mode_insns): Likewise for first and second params
4591 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4593 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4596 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4598 Anna Tikhonova <anna.tikhonova@intel.com>
4599 Ilya Tocar <ilya.tocar@intel.com>
4600 Andrey Turetskiy <andrey.turetskiy@intel.com>
4601 Ilya Verbin <ilya.verbin@intel.com>
4602 Kirill Yukhin <kirill.yukhin@intel.com>
4603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4605 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4607 * config/i386/sse.md
4608 (define_mode_iterator VI248_AVX2): Delete.
4609 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4610 (define_mode_iterator VI48_AVX2): Ditto.
4611 (define_insn <shift_insn><mode>3): Delete.
4612 (define_insn "<shift_insn><mode>3<mask_name>" with
4613 VI2_AVX2_AVX512BW): New.
4614 (define_insn "<shift_insn><mode>3<mask_name>" with
4617 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4618 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4619 Anna Tikhonova <anna.tikhonova@intel.com>
4620 Ilya Tocar <ilya.tocar@intel.com>
4621 Andrey Turetskiy <andrey.turetskiy@intel.com>
4622 Ilya Verbin <ilya.verbin@intel.com>
4623 Kirill Yukhin <kirill.yukhin@intel.com>
4624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4626 * config/i386/sse.md
4627 (define_mode_iterator VI4F_BRCST32x2): New.
4628 (define_mode_attr 64x2_mode): Ditto.
4629 (define_mode_attr 32x2mode): Ditto.
4630 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4631 with VI4F_BRCST32x2): Ditto.
4632 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4633 with V16FI mode iterator): Ditto.
4634 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4636 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4637 with VI8F_BRCST64x2): Ditto.
4639 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4641 Anna Tikhonova <anna.tikhonova@intel.com>
4642 Ilya Tocar <ilya.tocar@intel.com>
4643 Andrey Turetskiy <andrey.turetskiy@intel.com>
4644 Ilya Verbin <ilya.verbin@intel.com>
4645 Kirill Yukhin <kirill.yukhin@intel.com>
4646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4648 * config/i386/sse.md
4649 (define_mode_iterator VI8_AVX512VL): New.
4650 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4652 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4654 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4655 (define_mode_iterator V48_AVX512VL): New.
4656 (define_mode_iterator V12_AVX512VL): Ditto.
4657 (define_insn <avx512>_load<mode>_mask): Split into two similar
4658 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4659 Refactor output template.
4660 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4664 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4666 (reg_available_p): Likewise for param "insn".
4667 (insert_set_in_table): Likewise.
4668 (hash_scan_set): Likewise.
4669 (hash_scan_insn): Likewise.
4670 (make_set_regs_unavailable): Likewise.
4671 (compute_hash_table_work): Likewise for local "insn".
4672 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4674 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4675 (try_replace_reg): Likewise.
4676 (find_avail_set): Likewise.
4677 (cprop_jump): Likewise for params "setcc", "jump".
4678 (constprop_register): Likewise for param "insn".
4679 (cprop_insn): Likewise.
4680 (do_local_cprop): Likewise.
4681 (local_cprop_pass): Likewise for local "insn".
4682 (bypass_block): Likewise for params "setcc" and "jump".
4683 (bypass_conditional_jumps): Likewise for locals "setcc" and
4685 (one_cprop_pass): Likewise for local "insn".
4687 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4689 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4690 from rtx to rtx_insn *.
4691 (struct comparison): Likewise, also for field "prev_clobber".
4692 (conforming_compare): Likewise for param "insn".
4693 (arithmetic_flags_clobber_p): Likewise.
4694 (find_flags_uses_in_insn): Likewise.
4695 (find_comparison_dom_walker::before_dom_children): Likewise for
4696 locals "insn", "next", "last_clobber".
4697 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4699 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4701 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4702 "insn" from rtx to rtx_insn *.
4703 (single_set_for_csa): Likewise for param "insn".
4704 (record_one_stack_ref): Likewise.
4705 (try_apply_stack_adjustment): Likewise.
4706 (struct record_stack_refs_data): Likewise for field "insn".
4707 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4708 (prev_active_insn_bb): Likewise for return type and param "insn".
4709 (next_active_insn_bb): Likewise.
4710 (force_move_args_size_note): Likewise for params "prev" and "last"
4711 and locals "test", "next_candidate", "prev_candidate".
4712 (combine_stack_adjustments_for_block): Strengthen locals
4713 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4716 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4718 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4719 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4720 (subst_insn): Likewise for this variable.
4721 (added_links_insn): Likewise.
4722 (struct insn_link): Likewise for field "insn".
4723 (alloc_insn_link): Likewise for param "insn".
4724 (struct undobuf): Likewise for field "other_insn".
4725 (find_single_use): Likewise for param "insn" and local "next".
4726 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4727 (delete_noop_moves): Likewise for locals "insn", "next".
4728 (create_log_links): Likewise for locals "insn", "use_insn".
4729 Strengthen local "next_use" from rtx * to rtx_insn **.
4730 (insn_a_feeds_b): Likewise for params "a", "b".
4731 (combine_instructions): Likewise for param "f" and locals "insn",
4732 "next", "prev", "first", "last_combined_insn", "link", "link1",
4733 "temp". Replace use of NULL_RTX with NULL when referring to
4735 (setup_incoming_promotions): Likewise for param "first"
4736 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4737 (can_combine_p): Likewise for params "insn", "i3", "pred",
4738 "pred2", "succ", "succ2" and for local "p".
4739 (combinable_i3pat): Likewise for param "i3".
4740 (cant_combine_insn_p): Likewise for param "insn".
4741 (likely_spilled_retval_p): Likewise.
4742 (adjust_for_new_dest): Likewise.
4743 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4744 (try_combine): Likewise for return type and for params "i3", "i2",
4745 "i1", "i0", "last_combined_insn", and for locals "insn",
4746 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4747 "i0_insn". Eliminate local "tem" in favor of new locals
4748 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4749 checked cast for now to rtx_insn * on the return type of
4750 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4752 (find_split_point): Strengthen param "insn" from rtx to
4754 (simplify_set): Likewise for local "other_insn".
4755 (recog_for_combine): Likewise for param "insn".
4756 (record_value_for_reg): Likewise.
4757 (record_dead_and_set_regs_1): Likewise for local
4759 (record_dead_and_set_regs): Likewise for param "insn".
4760 (record_promoted_value): Likewise.
4761 (check_promoted_subreg): Likewise.
4762 (get_last_value_validate): Likewise.
4763 (reg_dead_at_p): Likewise.
4764 (move_deaths): Likewise for param "to_insn".
4765 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4766 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4767 in favor of new locals "tem_note" and "tem_insn", the latter being
4769 (distribute_links): Strengthen locals "place", "insn" from rtx to
4772 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4774 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4776 (can_delete_label_p): Require a const rtx_code_label * rather than
4778 (delete_insn): Add checked cast to rtx_code_label * when we know
4779 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4781 (delete_insn_chain): Strengthen locals "prev" and "current" from
4782 rtx to rtx_insn *. Add a checked cast when assigning from
4783 "finish" (strengthening the params will come later). Add a
4784 checked cast to rtx_note * in region where we know
4786 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4788 (compute_bb_for_insn): Likewise.
4789 (free_bb_for_insn): Likewise for local "insn".
4790 (compute_bb_for_insn): Likewise.
4791 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4792 local "insn" from rtx to rtx_insn *
4793 (flow_active_insn_p): Require a const rtx_insn * rather than a
4795 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4797 (can_fallthru): Likewise for locals "insn" and "insn2".
4798 (bb_note): Likewise for local "note".
4799 (first_insn_after_basic_block_note): Likewise for local "note" and
4801 (rtl_split_block): Likewise for locals "insn" and "next".
4802 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4804 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4805 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4807 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4808 them), "kill_from", "barrier", "new_insn".
4809 (patch_jump_insn): Likewise for params "insn", "old_label".
4810 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4811 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4812 "old_label", "new_label".
4813 (rtl_tidy_fallthru_edge): Likewise for local "q".
4814 (rtl_split_edge): Likewise for locals "before", "last".
4815 (commit_one_edge_insertion): Likewise for locals "before",
4816 "after", "insns", "tmp", "last", adding a checked cast where
4817 currently necessary.
4818 (commit_edge_insertions): Likewise.
4819 (rtl_dump_bb): Likewise for locals "insn", "last".
4820 (print_rtl_with_bb): Likewise for local "x".
4821 (rtl_verify_bb_insns): Likewise for local "x".
4822 (rtl_verify_bb_pointers): Likewise for local "insn".
4823 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4825 (rtl_verify_fallthru): Likewise for local "insn".
4826 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4827 (purge_dead_edges): Likewise for local "insn".
4828 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4829 (skip_insns_after_block): Likewise for return type and for locals
4830 "insn", "last_insn", "next_head", "prev".
4831 (record_effective_endpoints): Likewise for locals "next_insn",
4833 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4834 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4835 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4836 (duplicate_insn_chain): For now, add checked cast from rtx to
4837 rtx_insn * when returning insn.
4838 (cfg_layout_duplicate_bb): Likewise for local "insn".
4839 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4841 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4842 (rtl_block_empty_p): Likewise.
4843 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4844 "split_point", "last".
4845 (rtl_block_ends_with_call_p): Likewise for local "insn".
4846 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4848 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4849 "split_at_insn" from rtx to rtx_insn *.
4850 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4851 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4852 to const rtx_insn *.
4853 (rtl_account_profile_record): Likewise.
4855 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4857 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4859 (average_num_loop_insns): Likewise.
4860 (init_set_costs): Likewise for local "seq".
4861 (seq_cost): Likewise for param "seq", from const_rtx to const
4864 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4866 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4869 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4871 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4872 "f1" and "f2" from rtx * to rtx_insn **.
4873 (flow_find_head_matching_sequence): Likewise.
4875 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4876 "cbranch_insn" from rtx to rtx_insn *.
4877 (thread_jump): Likewise for local "insn".
4878 (try_forward_edges): Likewise for local "last".
4879 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4880 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4882 (can_replace_by): Likewise for params "i1", "i2".
4883 (old_insns_match_p): Likewise.
4884 (merge_notes): Likewise.
4885 (walk_to_nondebug_insn): Likewise for param "i1".
4886 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4887 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4888 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4889 (flow_find_head_matching_sequence): Strengthen params "f1" and
4890 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4891 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4893 (outgoing_edges_match): Likewise for locals "last1", "last2".
4894 (try_crossjump_to_edge): Likewise for local "insn".
4895 Replace call to for_each_rtx with for_each_rtx_in_insn.
4897 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4898 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4899 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4900 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4901 (try_optimize_cfg): Strengthen local "last" from rtx to
4903 (delete_dead_jumptables): Likewise for locals "insn", "next",
4906 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4907 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4908 "rtx else_first_tail", to reflect the basic-block.h changes above.
4910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4912 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4914 (purge_dead_tablejump_edges): Likewise.
4915 (find_bb_boundaries): Likewise for locals "insn", "end",
4916 "flow_transfer_insn".
4918 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4920 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4921 "ins" and "prev" from rtx to rtx_insn *.
4923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4925 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4927 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4928 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4930 (load_register_parameters): Likewise for local "before_arg".
4931 (check_sibcall_argument_overlap): Likewise for param "insn".
4932 (expand_call): Likewise for locals "normal_call_insns",
4933 "tail_call_insns", "insns", "before_call", "after_args",
4934 "before_arg", "last", "prev". Strengthen one of the "last" from
4935 rtx to rtx_call_insn *.
4936 (fixup_tail_calls): Strengthen local "insn" from rtx to
4938 (emit_library_call_value_1): Likewise for locals "before_call" and
4941 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4943 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4944 and "last" from rtx to rtx_insn *.
4945 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4946 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4948 (expand_errno_check): Strengthen local "lab" from rtx to
4950 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4952 (expand_builtin_mathfn_2): Likewise.
4953 (expand_builtin_mathfn_ternary): Likewise.
4954 (expand_builtin_mathfn_3): Likewise.
4955 (expand_builtin_interclass_mathfn): Likewise for local "last".
4956 (expand_builtin_int_roundingfn): Likewise for local "insns".
4957 (expand_builtin_int_roundingfn_2): Likewise.
4958 (expand_builtin_strlen): Likewise for local "before_strlen".
4959 (expand_builtin_strncmp): Likewise for local "seq".
4960 (expand_builtin_signbit): Likewise for local "last".
4961 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4962 from rtx to rtx_code_label *.
4963 (expand_stack_restore): Strengthen local "prev" from rtx to
4966 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4968 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4970 (struct btr_def_s): Likewise.
4971 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4973 (add_btr_def): Likewise.
4974 (new_btr_user): Likewise.
4975 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4977 (link_btr_uses): Likewise.
4978 (move_btr_def): Likewise for locals "insp", "old_insn",
4979 "new_insn". Add checked cast to rtx_insn * for now on result of
4981 (can_move_up): Strengthen param "insn" from const_rtx to
4984 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4986 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4988 (get_uncond_jump_length): Likewise for locals "label", "jump".
4989 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4991 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4992 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4993 (find_jump_block): Likewise for local "insn".
4994 (fix_crossing_conditional_branches): Likewise for locals
4995 "old_jump", "new_jump".
4996 (fix_crossing_unconditional_branches): Likewise for locals
4997 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4998 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5000 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5002 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5004 (struct mem_insn): Likewise for field "insn".
5005 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5006 (reg_next_inc_use): Likewise.
5007 (reg_next_def): Likewise.
5008 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5009 from rtx to rtx_insn *.
5010 (move_insn_before): Likewise for param "next_insn" and local "insns".
5011 (attempt_change): Likewise for local "mov_insn".
5012 (try_merge): Likewise for param "last_insn".
5013 (get_next_ref): Likewise for return type and local "insn".
5014 Strengthen param "next_array" from rtx * to rtx_insn **.
5015 (parse_add_or_inc): Strengthen param "insn" from rtx to
5017 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5019 (merge_in_block): Likewise for locals "insn", "curr",
5021 (pass_inc_dec::execute): Update allocations of the arrays to
5022 reflect the stronger types.
5024 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5026 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5027 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5028 from rtx to rtx_code_label *.
5030 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5032 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5035 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5037 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5038 generated a warning and prevented bootstrapping the compiler.
5040 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5042 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5045 * jump.c (delete_related_insns): Likewise, also for locals "next"
5048 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5050 * genautomata.c (output_internal_insn_latency_func): When writing
5051 the function "internal_insn_latency" to insn-automata.c,
5052 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5053 allowing the optional guard function of (define_bypass) clauses to
5054 expect a pair of rtx_insn *, rather than a pair of rtx.
5055 (output_insn_latency_func): When writing the function
5056 "insn_latency", add an "uncast_" prefix to params "insn" and
5057 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5058 using checked casts from the params, thus enabling the above
5059 change to the generated "internal_insn_latency" function.
5061 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5063 PR tree-optimization/62091
5064 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5065 handle correctly arrays.
5066 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5068 (record_known_type): Walk into inner type.
5069 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5070 condition on no type changes.
5072 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5074 * genattrtab.c (write_attr_get): Within the generated get_attr_
5075 functions, rename param "insn" to "uncast_insn" and reintroduce
5076 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5077 is an rtx_insn * within insn-attrtab.c
5079 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5081 * output.h (peephole): Strengthen return type from rtx to
5083 * rtl.h (delete_for_peephole): Likewise for both params.
5084 * genpeep.c (main): In generated "peephole" function, strengthen
5085 return type and local "insn" from rtx to rtx_insn *. For now,
5086 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5087 rtx_insn *, with a checked cast.
5088 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5089 locals "insn", "next", "prev" from rtx to rtx_insn *.
5091 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5093 PR tree-optimization/62112
5094 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5095 * gimple-iterator.h (gsi_replace): Return bool.
5096 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5097 moved from ref_may_alias_global_p.
5098 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5100 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5101 (stmt_kills_ref_p_1): Rename...
5102 (stmt_kills_ref_p): ... to this.
5103 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5104 stmt_kills_ref_p): Declare.
5105 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5106 Move the self-assignment case...
5107 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5109 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5111 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5113 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5114 "after". For now, don't strengthen param "trial", which requires
5115 adding checked casts when returning it.
5117 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5119 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5120 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5121 "var_location" hook from rtx to rtx_insn *.
5122 (debug_nothing_rtx): Delete in favor of...
5123 (debug_nothing_rtx_code_label): New prototype.
5124 (debug_nothing_rtx_rtx): Delete unused prototype.
5125 (debug_nothing_rtx_insn): New prototype.
5127 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5128 invoking debug_hooks->var_location (in two places, one in a NOTE
5129 case of a switch statement, the other guarded by a CALL_P
5130 conditional. Add checked cast to rtx_code_label * when invoking
5131 debug_hooks->label (within CODE_LABEL case of switch statement).
5133 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5134 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5135 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5136 (xcoff_debug_hooks): Likewise.
5137 * debug.c (do_nothing_debug_hooks): Likewise.
5138 (debug_nothing_rtx): Delete in favor of...
5139 (debug_nothing_rtx_insn): New function.
5140 (debug_nothing_rtx_rtx): Delete unused function.
5141 (debug_nothing_rtx_code_label): New function.
5142 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5143 debug_nothing_rtx to debug_nothing_rtx_code_label.
5144 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5146 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5147 debug_nothing_rtx to debug_nothing_rtx_insn.
5148 (sdbout_label): Strengthen param "insn" from rtx to
5150 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5151 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5152 "var_location" hook from debug_nothing_rtx to
5153 debug_nothing_rtx_insn.
5155 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5157 * recog.h (insn_output_fn): Update this function typedef to match
5158 the changes below to the generated output functions, strengthening
5159 the 2nd param from rtx to rtx_insn *.
5161 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5162 insn when invoking an output function, to match the new signature
5163 of insn_output_fn with a stronger second param.
5165 * genconditions.c (write_header): In the generated code for
5166 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5167 to match the other changes in this patch.
5169 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5170 the generated "gen_" functions from rtx to rtx_insn * within their
5173 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5174 the subfunctions within the generated "recog_", "split", "peephole2"
5175 function trees from rtx to rtx_insn *. For now, the top-level
5176 generated functions ("recog", "split", "peephole2") continue to
5177 take a plain rtx for "insn", to avoid introducing dependencies on
5178 other patches. Rename this 2nd param from "insn" to
5179 "uncast_insn", and reintroduce "insn" as a local variable of type
5180 rtx_insn *, initialized at the top of the generated function with
5181 a checked cast on "uncast_insn".
5182 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5183 the generated "gen_" functions from rtx to rtx_insn * within their
5186 * genoutput.c (process_template): Strengthen the 2nd param within
5187 the generated "output_" functions "insn" from rtx to rtx_insn *.
5189 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5191 * tree-profile.c (tree_profiling): Skip external functions
5192 when doing coverage instrumentation.
5193 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5195 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5197 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5198 (vec_mergee): Likewise.
5199 (vec_mergeo): Likewise.
5200 (vec_cntlz): Likewise.
5201 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5202 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5203 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5205 * doc/extend.texi: Document various forms of vec_cpsgn,
5206 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5207 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5208 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5209 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5210 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5212 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5214 * config/rs6000/rs6000.c (context.h): New include.
5215 (tree-pass.h): Likewise.
5216 (make_pass_analyze_swaps): New decl.
5217 (rs6000_option_override): Register pass_analyze_swaps.
5218 (swap_web_entry): New subsclass of web_entry_base (df.h).
5219 (special_handling_values): New enum.
5220 (union_defs): New function.
5221 (union_uses): Likewise.
5222 (insn_is_load_p): Likewise.
5223 (insn_is_store_p): Likewise.
5224 (insn_is_swap_p): Likewise.
5225 (rtx_is_swappable_p): Likewise.
5226 (insn_is_swappable_p): Likewise.
5227 (chain_purpose): New enum.
5228 (chain_contains_only_swaps): New function.
5229 (mark_swaps_for_removal): Likewise.
5230 (swap_const_vector_halves): Likewise.
5231 (adjust_subreg_index): Likewise.
5232 (permute_load): Likewise.
5233 (permute_store): Likewise.
5234 (handle_special_swappables): Likewise.
5235 (replace_swap_with_copy): Likewise.
5236 (dump_swap_insn_table): Likewise.
5237 (rs6000_analyze_swaps): Likewise.
5238 (pass_data_analyze_swaps): New pass_data.
5239 (pass_analyze_swaps): New rtl_opt_pass.
5240 (make_pass_analyze_swaps): New function.
5241 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5243 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5245 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5246 type from rtx to rtx_insn *.
5247 (create_copy_of_insn_rtx): Likewise.
5248 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5249 (create_copy_of_insn_rtx): Likewise, also for local "res".
5251 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5253 * rtl.h (find_first_parameter_load): Strengthen return type from
5255 * rtlanal.c (find_first_parameter_load): Strengthen return type
5256 from rtx to rtx_insn *. Add checked cast for now, to postpone
5257 strengthening the params.
5259 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5262 * diagnostic.c: Set default caret.
5263 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5265 * diagnostic.h (struct diagnostic_context):
5267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5269 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5270 (sel_bb_head): Strengthen return type insn_t (currently just an
5272 (sel_bb_end): Likewise.
5274 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5275 (sel_bb_head): Strengthen return type and local "head" from
5276 insn_t (currently just an rtx) to rtx_insn *.
5277 (sel_bb_end): Likewise for return type.
5278 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5281 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5283 * basic-block.h (get_last_bb_insn): Strengthen return type from
5285 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5288 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5291 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5293 (diagnostic_report_diagnostic): ... from here.
5294 * toplev.c (general_init): Move code to c-family.
5296 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5298 * df.h (web_entry_base): Replace existing struct web_entry with a
5299 new class web_entry_base with only the predecessor member.
5300 (unionfind_root): Remove declaration and move to class member.
5301 (unionfind_union): Remove declaration and move to friend
5303 (union_defs): Remove declaration.
5304 * web.c (web_entry_base::unionfind_root): Modify to be member
5305 function and adjust accessors.
5306 (unionfind_union): Modify to be friend function and adjust
5308 (web_entry): New subclass of web_entry_base containing the reg
5310 (union_match_dups): Modify for struct -> class changes.
5311 (union_defs): Likewise.
5312 (entry_register): Likewise.
5313 (pass_web::execute): Likewise.
5315 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5317 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5318 builtin define __VEC_ELEMENT_REG_ORDER__.
5320 2014-08-20 Martin Jambor <mjambor@suse.cz>
5321 Wei Mi <wmi@google.com>
5325 * tree-ssa-operands.c (update_stmt_operands): Remove
5326 MODIFIED_NORETURN_CALLS.
5327 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5328 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5329 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5330 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5331 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5332 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5333 (gimple_call_set_ctrl_altering): New func.
5334 (gimple_call_ctrl_altering_p): Ditto.
5335 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5336 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5337 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5338 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5339 remove MODIFIED_NORETURN_CALLS.
5341 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5343 * coverage.c (coverage_compute_profile_id): Return non-0;
5344 also handle symbols with unique name.
5345 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5347 2014-08-20 Steve Ellcey <sellcey@mips.com>
5350 * doc/sourcebuild.texi (non_strict_align): New.
5352 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5354 * cgraphunit.c (ipa_passes, compile): Reshedule
5355 symtab_remove_unreachable_nodes passes; update comments.
5356 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5357 TODO_remove_functions before the pass; the functions ought to be
5359 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5360 TODO_remove_functions.
5361 * passes.c (pass_data_early_local_passes): Do not schedule function
5363 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5365 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5368 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5369 before setting the option.
5370 * diagnostic.c (diagnostic_classify_diagnostic): Record
5371 command-line status.
5373 2014-08-20 Richard Biener <rguenther@suse.de>
5376 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5377 to build uint{16,32,64}_type_node.
5379 2014-08-20 Terry Guo <terry.guo@arm.com>
5381 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5382 with immediate_operand.
5384 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5386 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5387 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5390 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5392 PR preprocessor/51303
5393 * incpath.c (remove_duplicates): Use cpp_warning.
5395 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5399 * doc/options.texi (CPP): Document it.
5400 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5401 * optc-gen.awk: Handle CPP.
5402 * opth-gen.awk: Likewise.
5404 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5406 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5408 (duplicate_insn_chain): Likewise.
5409 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5410 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5411 checked cast for now (until we can strengthen the params in the
5413 (duplicate_insn_chain): Likewise.
5415 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5417 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5419 (prev_cc0_setter): Likewise.
5421 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5422 rtx_insn *, adding checked casts for now as necessary.
5423 (prev_cc0_setter): Likewise.
5425 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5427 * expr.h (emit_move_insn): Strengthen return type from rtx to
5429 (emit_move_insn_1): Likewise.
5430 (emit_move_complex_push): Likewise.
5431 (emit_move_complex_parts): Likewise.
5433 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5434 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5436 (emit_move_complex_push): Strengthen return type from rtx to
5438 (emit_move_complex): Likewise, also for local "ret".
5439 (emit_move_ccmode): Likewise.
5440 (emit_move_multi_word): Likewise for return type and locals
5442 (emit_move_insn_1): Likewise for return type and locals "result",
5444 (emit_move_insn): Likewise for return type and local "last_insn".
5445 (compress_float_constant): Likewise.
5447 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5449 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5450 from rtx to rtx_insn *.
5452 * rtl.h (emit_insn_before): Likewise.
5453 (emit_insn_before_noloc): Likewise.
5454 (emit_insn_before_setloc): Likewise.
5455 (emit_jump_insn_before): Likewise.
5456 (emit_jump_insn_before_noloc): Likewise.
5457 (emit_jump_insn_before_setloc): Likewise.
5458 (emit_call_insn_before): Likewise.
5459 (emit_call_insn_before_noloc): Likewise.
5460 (emit_call_insn_before_setloc): Likewise.
5461 (emit_debug_insn_before): Likewise.
5462 (emit_debug_insn_before_noloc): Likewise.
5463 (emit_debug_insn_before_setloc): Likewise.
5464 (emit_label_before): Likewise.
5465 (emit_insn_after): Likewise.
5466 (emit_insn_after_noloc): Likewise.
5467 (emit_insn_after_setloc): Likewise.
5468 (emit_jump_insn_after): Likewise.
5469 (emit_jump_insn_after_noloc): Likewise.
5470 (emit_jump_insn_after_setloc): Likewise.
5471 (emit_call_insn_after): Likewise.
5472 (emit_call_insn_after_noloc): Likewise.
5473 (emit_call_insn_after_setloc): Likewise.
5474 (emit_debug_insn_after): Likewise.
5475 (emit_debug_insn_after_noloc): Likewise.
5476 (emit_debug_insn_after_setloc): Likewise.
5477 (emit_label_after): Likewise.
5478 (emit_insn): Likewise.
5479 (emit_debug_insn): Likewise.
5480 (emit_jump_insn): Likewise.
5481 (emit_call_insn): Likewise.
5482 (emit_label): Likewise.
5483 (gen_clobber): Likewise.
5484 (emit_clobber): Likewise.
5485 (gen_use): Likewise.
5486 (emit_use): Likewise.
5489 (emit_barrier_before): Strengthen return type from rtx to
5491 (emit_barrier_after): Likewise.
5492 (emit_barrier): Likewise.
5494 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5495 from rtx to rtx_insn *. Add checked casts for now when converting
5496 "last" from rtx to rtx_insn *.
5497 (emit_insn_before_noloc): Likewise for return type.
5498 (emit_jump_insn_before_noloc): Likewise.
5499 (emit_call_insn_before_noloc): Likewise.
5500 (emit_debug_insn_before_noloc): Likewise.
5501 (emit_barrier_before): Strengthen return type and local "insn"
5502 from rtx to rtx_barrier *.
5503 (emit_label_before): Strengthen return type from rtx to
5504 rtx_insn *. Add checked cast for now when returning param
5505 (emit_pattern_after_noloc): Strengthen return type from rtx to
5506 rtx_insn *. Add checked casts for now when converting "last" from
5508 (emit_insn_after_noloc): Strengthen return type from rtx to
5510 (emit_jump_insn_after_noloc): Likewise.
5511 (emit_call_insn_after_noloc): Likewise.
5512 (emit_debug_insn_after_noloc): Likewise.
5513 (emit_barrier_after): Strengthen return type from rtx to
5515 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5516 Add checked cast for now when converting "label" from rtx to
5518 (emit_pattern_after_setloc): Strengthen return type from rtx to
5519 rtx_insn *. Add checked casts for now when converting "last" from
5521 (emit_pattern_after): Strengthen return type from rtx to
5523 (emit_insn_after_setloc): Likewise.
5524 (emit_insn_after): Likewise.
5525 (emit_jump_insn_after_setloc): Likewise.
5526 (emit_jump_insn_after): Likewise.
5527 (emit_call_insn_after_setloc): Likewise.
5528 (emit_call_insn_after): Likewise.
5529 (emit_debug_insn_after_setloc): Likewise.
5530 (emit_debug_insn_after): Likewise.
5531 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5532 when converting "last" from rtx to rtx_insn *.
5533 (emit_pattern_before): Strengthen return type from rtx to
5535 (emit_insn_before_setloc): Likewise.
5536 (emit_insn_before): Likewise.
5537 (emit_jump_insn_before_setloc): Likewise.
5538 (emit_jump_insn_before): Likewise.
5539 (emit_call_insn_before_setloc): Likewise.
5540 (emit_call_insn_before): Likewise.
5541 (emit_debug_insn_before_setloc): Likewise.
5542 (emit_debug_insn_before): Likewise.
5543 (emit_insn): Strengthen return type and locals "last", "insn",
5544 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5545 within cases where we know we have an insn.
5546 (emit_debug_insn): Likewise.
5547 (emit_jump_insn): Likewise.
5548 (emit_call_insn): Strengthen return type and local "insn" from rtx
5550 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5551 a checked cast to rtx_insn * for now on "label".
5552 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5553 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5554 (emit_use): Likewise.
5555 (gen_use): Likewise, also for local "seq".
5556 (emit): Likewise for return type and local "insn".
5557 (rtx_insn): Likewise for return type and local "new_rtx".
5559 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5560 from rtx to rtx_barrier *.
5562 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5563 changed return type from rtx to rtx_insn *, we must update
5564 "emit_fn" type, and this in turn means updating...
5565 (frame_insn): ...this. Strengthen return type from rtx to
5566 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5568 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5570 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5571 rtx to rtx_jump_table_data *. Also for local.
5572 * rtl.h (emit_jump_table_data): Likewise.
5574 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5576 * basic-block.h (create_basic_block_structure): Strengthen third
5577 param "bb_note" from rtx to rtx_note *.
5578 * rtl.h (emit_note_before): Strengthen return type from rtx to
5580 (emit_note_after): Likewise.
5581 (emit_note): Likewise.
5582 (emit_note_copy): Likewise. Also, strengthen param similarly.
5583 * function.h (struct rtl_data): Strengthen field
5584 "x_stack_check_probe_note" from rtx to rtx_note *.
5586 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5587 from rtx to rtx_note *.
5588 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5589 "bb_note" from rtx to rtx_note *.
5590 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5591 when calling emit_note_copy.
5592 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5594 (emit_note_after): Likewise.
5595 (emit_note_before): Likewise.
5596 (emit_note_copy): Likewise. Also, strengthen param similarly.
5597 (emit_note): Likewise.
5598 * except.c (emit_note_eh_region_end): Likewise for return type.
5599 Strengthen local "next" from rtx to rtx_insn *.
5600 (convert_to_eh_region_ranges): Strengthen local "note"
5601 from rtx to rtx_note *.
5602 * final.c (change_scope): Likewise.
5603 (reemit_insn_block_notes): Likewise, for both locals named "note".
5604 Also, strengthen local "insn" from rtx to rtx_insn *.
5605 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5607 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5608 strengthen local "seq" from rtx to rtx_insn *.
5609 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5611 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5613 (get_bb_note_from_pool): Strengthen return type from rtx to
5615 (sel_create_basic_block): Strengthen local "new_bb_note" from
5616 insn_t to rtx_note *.
5617 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5618 "note" from rtx to rtx_note *.
5619 (emit_notes_in_bb): Likewise.
5621 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5623 * function.h (struct rtl_data): Strengthen field
5624 "x_parm_birth_insn" from rtx to rtx_insn *.
5625 * function.c (struct assign_parm_data_all): Strengthen fields
5626 "first_conversion_insn" and "last_conversion_insn" from rtx to
5629 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5631 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5632 to rtx_insn *; also for local "var_end_seq".
5633 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5634 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5636 (expand_gimple_cond): Likewise for locals "last2" and "last".
5637 (mark_transaction_restart_calls): Likewise for local "insn".
5638 (expand_gimple_stmt): Likewise for return type and locals "last"
5640 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5641 (avoid_complex_debug_insns): Likewise for param "insn".
5642 (expand_debug_locations): Likewise for locals "insn", "last",
5643 "prev_insn" and "insn2".
5644 (expand_gimple_basic_block): Likewise for local "last".
5645 (construct_exit_block): Likewise for locals "head", "end",
5647 (pass_expand::execute): Likewise for locals "var_seq",
5648 "var_ret_seq", "next".
5650 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5652 * asan.h (asan_emit_stack_protection): Strengthen return type from
5654 * asan.c (asan_emit_stack_protection): Likewise. Add local
5655 "insns" to hold the return value.
5657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5659 * basic-block.h (bb_note): Strengthen return type from rtx to
5661 * sched-int.h (bb_note): Likewise.
5662 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5664 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5666 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5669 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5670 "insn" from rtx to rtx_insn *.
5671 (make_debug_insn_raw): Strengthen return type from rtx to
5672 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5673 (make_jump_insn_raw): Strengthen return type from rtx to
5674 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5675 (make_call_insn_raw): Strengthen return type from rtx to
5676 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5677 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5678 callback from rtx to rtx_insn *; likewise for local "insn" and
5679 "next", adding a checked cast to rtx_insn in the relevant cases of
5680 the switch statement.
5681 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5682 callback from rtx to rtx_insn *.
5683 (emit_pattern_after_setloc): Likewise.
5684 (emit_pattern_after): Likewise.
5685 (emit_pattern_before_setloc): Likewise.
5686 (emit_pattern_before): Likewise.
5688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5690 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5692 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5693 accepting an rtx_insn *.
5694 (last_call_insn): Strengthen return type from rtx to
5697 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5699 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5700 "insns" from rtx to rtx_insn *.
5701 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5702 locals "insn" and "prev".
5704 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5706 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5707 rtx_jump_table_data **.
5709 * cfgbuild.c (make_edges): Introduce local "table", using it in
5710 place of "tmp" for jump table data.
5711 (find_bb_boundaries): Strengthen local "table" from rtx to
5712 rtx_jump_table_data *.
5713 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5714 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5715 (try_crossjump_to_edge): Likewise.
5716 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5718 (patch_jump_insn): Introduce local "table", using it in place of
5719 "tmp" for jump table data.
5720 (force_nonfallthru_and_redirect): Introduce local "table", so that
5721 call to tablejump_p can receive an rtx_jump_table_data **. Update
5722 logic around the call to overwrite "note" appropriately if
5723 tablejump_p returns non-zero.
5724 (get_last_bb_insn): Introduce local "table", using it in place of
5725 "tmp" for jump table data.
5726 * dwarf2cfi.c (create_trace_edges): Likewise.
5728 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5729 from rtx to rtx_jump_table_data *.
5730 (create_fix_barrier): Strengthen local "tmp" from rtx to
5731 rtx_jump_table_data *.
5732 (arm_reorg): Likewise for local "table".
5734 * config/s390/s390.c (s390_chunkify_start): Likewise.
5736 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5738 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5739 rtx to rtx_jump_table_data *.
5741 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5742 rtx_jump_table_data **. Add a checked cast when writing through
5743 the pointer: we know there that local "table" is non-NULL and that
5744 JUMP_TABLE_DATA_P (table) holds.
5745 (label_is_jump_target_p): Introduce local "table", using it in
5746 place of "tmp" for jump table data.
5748 2014-08-19 Marek Polacek <polacek@redhat.com>
5751 * doc/invoke.texi: Document -Wbool-compare.
5753 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5755 * rtl.h (entry_of_function): Strengthen return type from rtx to
5757 * cfgrtl.c (entry_of_function): Likewise.
5759 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5761 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5762 rtx_insn *, adding a checked cast for now.
5763 (get_last_insn): Likewise.
5765 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5767 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5770 * emit-rtl.c (gen_label_rtx): Likewise.
5772 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5774 * rtl.h (previous_insn): Strengthen return type from rtx to
5776 (next_insn): Likewise.
5777 (prev_nonnote_insn): Likewise.
5778 (prev_nonnote_insn_bb): Likewise.
5779 (next_nonnote_insn): Likewise.
5780 (next_nonnote_insn_bb): Likewise.
5781 (prev_nondebug_insn): Likewise.
5782 (next_nondebug_insn): Likewise.
5783 (prev_nonnote_nondebug_insn): Likewise.
5784 (next_nonnote_nondebug_insn): Likewise.
5785 (prev_real_insn): Likewise.
5786 (next_real_insn): Likewise.
5787 (prev_active_insn): Likewise.
5788 (next_active_insn): Likewise.
5790 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5791 rtx_insn *, adding a checked cast.
5792 (previous_insn): Likewise.
5793 (next_nonnote_insn): Likewise.
5794 (next_nonnote_insn_bb): Likewise.
5795 (prev_nonnote_insn): Likewise.
5796 (prev_nonnote_insn_bb): Likewise.
5797 (next_nondebug_insn): Likewise.
5798 (prev_nondebug_insn): Likewise.
5799 (next_nonnote_nondebug_insn): Likewise.
5800 (prev_nonnote_nondebug_insn): Likewise.
5801 (next_real_insn): Likewise.
5802 (prev_real_insn): Likewise.
5803 (next_active_insn): Likewise.
5804 (prev_active_insn): Likewise.
5806 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5807 param "stepfunc" so that it returns an rtx_insn * rather than an
5808 rtx, to track the change to prev_nonnote_insn_bb, which is the
5809 only function this is called with.
5810 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5812 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5814 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5817 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5819 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5820 (class rtx_nonjump_insn): Likewise.
5821 (class rtx_jump_insn): Likewise.
5822 (class rtx_call_insn): Likewise.
5823 (class rtx_jump_table_data): Likewise.
5824 (class rtx_barrier): Likewise.
5825 (class rtx_code_label): Likewise.
5826 (class rtx_note): Likewise.
5828 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5829 adding the invariant DEBUG_INSN_P (X).
5830 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5831 the invariant NONJUMP_INSN_P (X).
5832 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5833 the invariant JUMP_P (X).
5834 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5835 the invariant CALL_P (X).
5836 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5837 invariant JUMP_TABLE_DATA_P (X).
5838 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5839 invariant BARRIER_P (X).
5840 (class rtx_code_label): New, a subclass of rtx_insn, adding
5841 the invariant LABEL_P (X).
5842 (class rtx_note): New, a subclass of rtx_insn, adding
5843 the invariant NOTE_P(X).
5844 (is_a_helper <rtx_debug_insn *>::test): New.
5845 (is_a_helper <rtx_nonjump_insn *>::test): New.
5846 (is_a_helper <rtx_jump_insn *>::test): New.
5847 (is_a_helper <rtx_call_insn *>::test): New.
5848 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5849 overloaded for both rtx and rtx_insn *.
5850 (is_a_helper <rtx_barrier *>::test): New.
5851 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5852 for both rtx and rtx_insn *.
5853 (is_a_helper <rtx_note *>::test): New.
5855 2014-08-19 Marek Polacek <polacek@redhat.com>
5857 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5858 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5859 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5860 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5862 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5864 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5865 rtx_insn *. To help with transition, for now, convert from an
5866 access macro into a pair of functions: BND_TO, returning an
5868 (SET_BND_TO): New function, for use where BND_TO is used as an
5871 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5873 (BND_TO): New function, adding a checked cast.
5874 (SET_BND_TO): New function.
5876 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5878 (compute_av_set_on_boundaries): Likewise.
5880 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5882 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5883 destination if it is used in source.
5884 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5885 (*popcount<mode>2_falsedep_1): Likewise.
5887 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5890 * configure.ac: Set install_gold_as_default to no first.
5891 * configure: Regenerated.
5893 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5895 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5896 "note_list" field will eventually be an rtx_insn *. To help with
5897 transition, for now, convert from an access macro into a pair of
5898 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5899 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5902 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5903 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5905 * sel-sched-ir.c (init_bb): Likewise.
5906 (sel_restore_notes): Likewise.
5907 (move_bb_info): Likewise.
5908 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5909 (SET_BB_NOTE_LIST): New function.
5911 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5913 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5914 field will eventually be an rtx_insn *. To help with transition,
5915 for now, convert from an access macro into a pair of functions:
5916 VINSN_INSN_RTX, returning an rtx_insn *, and...
5917 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5918 is used as an lvalue.
5920 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5921 SET_VINSN_INSN_RTX where it's used as an lvalue.
5922 (VINSN_INSN_RTX): New function.
5923 (SET_VINSN_INSN_RTX): New function.
5925 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5927 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5928 eventually be rtx_insn *, but to help with transition, for now,
5929 convert from an access macro into a pair of functions: DEP_PRO
5930 returning an rtx_insn * and...
5931 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5932 lvalue, returning an rtx&.
5933 (DEP_CON): Analogous changes to DEP_PRO above.
5934 (SET_DEP_CON): Likewise.
5936 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5937 an lvalue to SET_DEP_CON.
5938 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5939 (sd_copy_back_deps): Likewise for DEP_CON.
5940 (DEP_PRO): New function, adding a checked cast for now.
5941 (DEP_CON): Likewise.
5942 (SET_DEP_PRO): New function.
5943 (SET_DEP_CON): Likewise.
5945 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5947 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5948 (extra_options): Add i386/cygwin.opt.
5949 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5950 (CPP_SPEC): Accept -pthread.
5952 (GOMP_SELF_SPECS): Update comment.
5953 * config/i386/cygwin.opt: New file for -pthread flag.
5955 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5957 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5958 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5959 that we can return an rtx_insn *.
5961 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5963 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5964 when building executables, not DLLs. Add --large-address-aware
5965 under the same conditions.
5966 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5967 when building executables, not DLLs. Add --large-address-aware
5968 under the same conditions when using -m32.
5970 * config/i386/cygwin-stdint.h: Throughout, make type
5971 definitions dependent on target architecture, not host.
5973 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5975 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5976 the return type from rtx to rtx_insn *, which will enable various
5977 conversions in followup patches. For now this is is done by a
5979 (NEXT_INSN): Likewise.
5980 (SET_PREV_INSN): Convert to an inline function. This is intended
5981 for use as an lvalue, and so returns an rtx& to allow in-place
5983 (SET_NEXT_INSN): Likewise.
5985 2014-07-08 Mark Wielaard <mjw@redhat.com>
5988 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5990 2014-08-19 Marek Polacek <polacek@redhat.com>
5993 * cgraphunit.c (handle_alias_pairs): Fix condition.
5995 2014-08-19 Richard Biener <rguenther@suse.de>
5997 * gimple-fold.c (fold_gimple_assign): Properly build a
5998 null-pointer constant when devirtualizing addresses.
6000 2014-07-07 Mark Wielaard <mjw@redhat.com>
6002 * dwarf2out.c (decl_quals): New function.
6003 (modified_type_die): Take one cv_quals argument instead of two,
6004 one for const and one for volatile.
6005 (add_type_attribute): Likewise.
6006 (generic_parameter_die): Call add_type_attribute with one modifier
6008 (base_type_for_mode): Likewise.
6009 (add_bounds_info): Likewise.
6010 (add_subscript_info): Likewise.
6011 (gen_array_type_die): Likewise.
6012 (gen_descr_array_type_die): Likewise.
6013 (gen_entry_point_die): Likewise.
6014 (gen_enumeration_type_die): Likewise.
6015 (gen_formal_parameter_die): Likewise.
6016 (gen_subprogram_die): Likewise.
6017 (gen_variable_die): Likewise.
6018 (gen_const_die): Likewise.
6019 (gen_field_die): Likewise.
6020 (gen_pointer_type_die): Likewise.
6021 (gen_reference_type_die): Likewise.
6022 (gen_ptr_to_mbr_type_die): Likewise.
6023 (gen_inheritance_die): Likewise.
6024 (gen_subroutine_type_die): Likewise.
6025 (gen_typedef_die): Likewise.
6026 (force_type_die): Likewise.
6028 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6030 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6032 * configure: Regenerate.
6034 2014-08-19 Richard Biener <rguenther@suse.de>
6036 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6037 DECL_EXTERNALs in BLOCKs as non-references.
6038 * tree-streamer-out.c (streamer_write_chain): Likewise.
6040 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6042 Anna Tikhonova <anna.tikhonova@intel.com>
6043 Ilya Tocar <ilya.tocar@intel.com>
6044 Andrey Turetskiy <andrey.turetskiy@intel.com>
6045 Ilya Verbin <ilya.verbin@intel.com>
6046 Kirill Yukhin <kirill.yukhin@intel.com>
6047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6049 * config/i386/sse.md
6050 (define_mode_iterator VI48_AVX512F): Delete.
6051 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6052 (define_mode_iterator VI2_AVX512VL): Ditto.
6053 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6056 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6058 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6059 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6060 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6061 with VI48_AVX512F_AVX512VL): New.
6062 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6063 with VI2_AVX512VL): Ditto.
6065 2014-08-19 Marek Polacek <polacek@redhat.com>
6067 * doc/invoke.texi: Document -Wc99-c11-compat.
6069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6071 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6073 (SET_PREV_INSN): New macro, for use as an lvalue.
6074 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6076 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6077 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6078 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6079 (fixup_abnormal_edges): Likewise.
6080 (unlink_insn_chain): Likewise.
6081 (fixup_reorder_chain): Likewise.
6082 (cfg_layout_delete_block): Likewise.
6083 (cfg_layout_merge_blocks): Likewise.
6084 * combine.c (update_cfg_for_uncondjump): Likewise.
6085 * emit-rtl.c (link_insn_into_chain): Likewise.
6086 (remove_insn): Likewise.
6087 (delete_insns_since): Likewise.
6088 (reorder_insns_nobb): Likewise.
6089 (emit_insn_after_1): Likewise.
6090 * final.c (rest_of_clean_state): Likewise.
6091 (final_scan_insn): Likewise.
6092 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6093 * haifa-sched.c (concat_note_lists): Likewise.
6094 (remove_notes): Likewise.
6095 (restore_other_notes): Likewise.
6096 (move_insn): Likewise.
6097 (unlink_bb_notes): Likewise.
6098 (restore_bb_notes): Likewise.
6099 * jump.c (delete_for_peephole): Likewise.
6100 * optabs.c (emit_libcall_block_1): Likewise.
6101 * reorg.c (emit_delay_sequence): Likewise.
6102 (fill_simple_delay_slots): Likewise.
6103 * sel-sched-ir.c (sel_move_insn): Likewise.
6104 (sel_remove_insn): Likewise.
6105 (get_bb_note_from_pool): Likewise.
6106 * sel-sched.c (move_nop_to_previous_block): Likewise.
6108 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6109 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6110 (c6x_gen_bundles): Likewise.
6111 (hwloop_optimize): Likewise.
6112 * config/frv/frv.c (frv_function_prologue): Likewise.
6113 (frv_register_nop): Likewise.
6114 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6115 (ia64_reorg): Likewise.
6116 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6117 (mep_make_bundle): Likewise.
6118 (mep_bundle_insns): Likewise.
6119 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6120 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6121 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6123 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6125 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6126 return type from rtx to rtx_insn *.
6128 (BB_HEADER): Likewise.
6129 (BB_FOOTER): Likewise.
6130 (SET_BB_HEAD): Convert to a function.
6131 (SET_BB_END): Likewise.
6132 (SET_BB_HEADER): Likewise.
6133 (SET_BB_FOOTER): Likewise.
6135 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6136 Strengthen the return type from rtx to rtx_insn *. For now, this
6137 is done by adding a checked cast, but this will eventually
6138 become a field lookup.
6140 (BB_HEADER): Likewise.
6141 (BB_FOOTER): Likewise.
6142 (SET_BB_HEAD): New function, from macro of same name. This is
6143 intended for use as an lvalue, and so returns an rtx& to allow
6144 in-place modification.
6145 (SET_BB_END): Likewise.
6146 (SET_BB_HEADER): Likewise.
6147 (SET_BB_FOOTER): Likewise.
6149 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6151 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6153 (SET_BB_HEAD): New macro, for use as a lvalue.
6154 (BB_END, SET_BB_END): Likewise.
6155 (BB_HEADER, SET_BB_HEADER): Likewise.
6156 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6158 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6159 of BB_* macros into SET_BB_* macros.
6160 (fix_crossing_unconditional_branches): Likewise.
6161 * caller-save.c (save_call_clobbered_regs): Likewise.
6162 (insert_one_insn): Likewise.
6163 * cfgbuild.c (find_bb_boundaries): Likewise.
6164 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6165 (outgoing_edges_match): Likewise.
6166 (try_optimize_cfg): Likewise.
6167 * cfgexpand.c (expand_gimple_cond): Likewise.
6168 (expand_gimple_tailcall): Likewise.
6169 (expand_gimple_basic_block): Likewise.
6170 (construct_exit_block): Likewise.
6171 * cfgrtl.c (delete_insn): Likewise.
6172 (create_basic_block_structure): Likewise.
6173 (rtl_delete_block): Likewise.
6174 (rtl_split_block): Likewise.
6175 (emit_nop_for_unique_locus_between): Likewise.
6176 (rtl_merge_blocks): Likewise.
6177 (block_label): Likewise.
6178 (try_redirect_by_replacing_jump): Likewise.
6179 (emit_barrier_after_bb): Likewise.
6180 (fixup_abnormal_edges): Likewise.
6181 (record_effective_endpoints): Likewise.
6182 (relink_block_chain): Likewise.
6183 (fixup_reorder_chain): Likewise.
6184 (fixup_fallthru_exit_predecessor): Likewise.
6185 (cfg_layout_duplicate_bb): Likewise.
6186 (cfg_layout_split_block): Likewise.
6187 (cfg_layout_delete_block): Likewise.
6188 (cfg_layout_merge_blocks): Likewise.
6189 * combine.c (update_cfg_for_uncondjump): Likewise.
6190 * emit-rtl.c (add_insn_after): Likewise.
6191 (remove_insn): Likewise.
6192 (reorder_insns): Likewise.
6193 (emit_insn_after_1): Likewise.
6194 * haifa-sched.c (get_ebb_head_tail): Likewise.
6195 (restore_other_notes): Likewise.
6196 (move_insn): Likewise.
6197 (sched_extend_bb): Likewise.
6198 (fix_jump_move): Likewise.
6199 * ifcvt.c (noce_process_if_block): Likewise.
6200 (dead_or_predicable): Likewise.
6201 * ira.c (update_equiv_regs): Likewise.
6202 * reg-stack.c (change_stack): Likewise.
6203 * sel-sched-ir.c (sel_move_insn): Likewise.
6204 * sel-sched.c (move_nop_to_previous_block): Likewise.
6206 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6207 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6209 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6211 * rtl.h (for_each_rtx_in_insn): New function.
6212 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6214 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6216 * coretypes.h (class rtx_insn): Add forward declaration.
6218 * rtl.h: Include is-a.h.
6219 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6220 workaround to ensure gengtype knows inheritance is occurring,
6221 whilst continuing to use the pre-existing special-casing for
6223 (class rtx_insn): New subclass of rtx_def, adding the
6224 invariant that we're dealing with something we can sanely use
6225 INSN_UID, NEXT_INSN, PREV_INSN on.
6226 (is_a_helper <rtx_insn *>::test): New.
6227 (is_a_helper <const rtx_insn *>::test): New.
6229 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6231 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6233 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6235 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6238 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6240 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6241 to BUILT_IN_UNREACHABLE.
6243 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6246 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6248 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6249 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6250 (ffs<mode>2): Do not expand with tzcnt for
6251 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6252 (ffssi2_no_cmove): Ditto.
6253 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6254 (ctz<mode>2): New expander.
6255 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6256 (*ctz<mode>2_falsedep): New insn.
6257 (*ctz<mode>2): Rename from ctz<mode>2.
6258 (clz<mode>2_lzcnt): New expander.
6259 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6260 (*clz<mode>2_lzcnt_falsedep): New insn.
6261 (*clz<mode>2): Rename from ctz<mode>2.
6262 (popcount<mode>2): New expander.
6263 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6264 (*popcount<mode>2_falsedep): New insn.
6265 (*popcount<mode>2): Rename from ctz<mode>2.
6266 (*popcount<mode>2_cmp): Remove.
6267 (*popcountsi2_cmp_zext): Ditto.
6269 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6271 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6272 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6273 * config/microblaze/microblaze.h
6274 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6276 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6279 * configure.ac: Set install_gold_as_default to no for
6281 * configure: Regenerated.
6283 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6285 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6286 * config.in: Add undef of HAVE_isl.
6287 * configure: Regenerate.
6288 * configure.ac: Add definition of HAVE_isl.
6289 * graphite-blocking.c: Add checking of HAVE_isl.
6290 * graphite-dependences.c: Likewise.
6291 * graphite-interchange.c: Likewise.
6292 * graphite-isl-ast-to-gimple.c: Likewise.
6293 * graphite-optimize-isl.c: Likewise.
6294 * graphite-poly.c: Likewise.
6295 * graphite-scop-detection.c: Likewise.
6296 * graphite-sese-to-poly.c: Likewise.
6297 * graphite.c: Likewise.
6298 * toplev.c: Replace the checking of HAVE_cloog with the checking
6301 2014-08-18 Richard Biener <rguenther@suse.de>
6303 PR tree-optimization/62090
6304 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6305 (fold_builtin_3): Do not fold snprintf.
6306 (fold_builtin_4): Likewise.
6307 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6308 moved from builtins.c.
6309 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6310 (gimple_fold_builtin): Do not fold sprintf here.
6312 2014-08-18 Richard Biener <rguenther@suse.de>
6314 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6316 (maybe_canonicalize_mem_ref_addr): ... this function.
6317 (fold_stmt_1): Apply it here before all simplification.
6319 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6322 * cgraph.h (cgraph_node::create_indirect_edge): Add
6323 compute_indirect_info param.
6324 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6325 indirect_info only when it is required.
6326 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6327 indirect_info fore cloned indirect edge.
6329 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6331 Anna Tikhonova <anna.tikhonova@intel.com>
6332 Ilya Tocar <ilya.tocar@intel.com>
6333 Andrey Turetskiy <andrey.turetskiy@intel.com>
6334 Ilya Verbin <ilya.verbin@intel.com>
6335 Kirill Yukhin <kirill.yukhin@intel.com>
6336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6338 * config/i386/sse.md
6339 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6340 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6342 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6343 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6344 Anna Tikhonova <anna.tikhonova@intel.com>
6345 Ilya Tocar <ilya.tocar@intel.com>
6346 Andrey Turetskiy <andrey.turetskiy@intel.com>
6347 Ilya Verbin <ilya.verbin@intel.com>
6348 Kirill Yukhin <kirill.yukhin@intel.com>
6349 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6351 * config/i386/sse.md
6352 (define_mode_iterator VF1_AVX512VL): New.
6353 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6354 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6357 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6358 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6359 Anna Tikhonova <anna.tikhonova@intel.com>
6360 Ilya Tocar <ilya.tocar@intel.com>
6361 Andrey Turetskiy <andrey.turetskiy@intel.com>
6362 Ilya Verbin <ilya.verbin@intel.com>
6363 Kirill Yukhin <kirill.yukhin@intel.com>
6364 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6366 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6367 * config/i386/i386.md
6368 (define_code_iterator any_float): New.
6369 (define_code_attr floatsuffix): New.
6370 * config/i386/sse.md
6371 (define_mode_iterator VF1_128_256VL): New.
6372 (define_mode_iterator VF2_512_256VL): New.
6373 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6375 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6376 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6378 (define_mode_attr qq2pssuff): New.
6379 (define_mode_attr sselongvecmode): New.
6380 (define_mode_attr sselongvecmodelower): New.
6381 (define_mode_attr sseintvecmode3): New.
6382 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6384 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6385 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6386 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6387 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6389 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6391 Anna Tikhonova <anna.tikhonova@intel.com>
6392 Ilya Tocar <ilya.tocar@intel.com>
6393 Andrey Turetskiy <andrey.turetskiy@intel.com>
6394 Ilya Verbin <ilya.verbin@intel.com>
6395 Kirill Yukhin <kirill.yukhin@intel.com>
6396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6398 * config/i386/sse.md
6399 (define_mode_iterator VF2_AVX512VL): New.
6400 (define_mode_attr sseintvecmode2): New.
6401 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6402 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6403 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6405 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6407 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6409 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6412 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6413 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6414 Anna Tikhonova <anna.tikhonova@intel.com>
6415 Ilya Tocar <ilya.tocar@intel.com>
6416 Andrey Turetskiy <andrey.turetskiy@intel.com>
6417 Ilya Verbin <ilya.verbin@intel.com>
6418 Kirill Yukhin <kirill.yukhin@intel.com>
6419 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6421 * config/i386/i386.md
6422 (define_insn "*movoi_internal_avx"): Add evex version.
6423 (define_insn "*movti_internal"): Ditto.
6425 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6426 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6427 Anna Tikhonova <anna.tikhonova@intel.com>
6428 Ilya Tocar <ilya.tocar@intel.com>
6429 Andrey Turetskiy <andrey.turetskiy@intel.com>
6430 Ilya Verbin <ilya.verbin@intel.com>
6431 Kirill Yukhin <kirill.yukhin@intel.com>
6432 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6434 * config/i386/i386.md
6435 (define_attr "isa"): Add avx512dq, noavx512dq.
6436 (define_attr "enabled"): Ditto.
6437 * config/i386/sse.md
6438 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6440 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6442 Anna Tikhonova <anna.tikhonova@intel.com>
6443 Ilya Tocar <ilya.tocar@intel.com>
6444 Andrey Turetskiy <andrey.turetskiy@intel.com>
6445 Ilya Verbin <ilya.verbin@intel.com>
6446 Kirill Yukhin <kirill.yukhin@intel.com>
6447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6449 * config/i386/i386.c
6450 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6451 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6452 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6453 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6454 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6455 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6456 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6457 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6458 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6459 * config/i386/sse.md
6460 (define_mode_iterator VMOVE): Allow V4TI mode.
6461 (define_mode_iterator V_AVX512VL): New.
6462 (define_mode_iterator V): New handling for AVX512VL.
6463 (define_insn "avx512f_load<mode>_mask"): Delete.
6464 (define_insn "<avx512>_load<mode>_mask"): New.
6465 (define_insn "avx512f_store<mode>_mask"): Delete.
6466 (define_insn "<avx512>_store<mode>_mask"): New.
6469 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6472 * asan.c (instrument_derefs): Fix bitfield check.
6474 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6476 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6477 * config/rs6000/htm.md (ttest): Remove clobber.
6478 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6479 (and_operand): Reformat.
6480 (and_2rld_operand): New predicate.
6481 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6483 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6484 parameter. Handle AND directly.
6485 (rs6000_split_logical_di): Remove last parameter.
6486 (rs6000_split_logical): Remove last parameter. Remove obsolete
6488 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6489 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6490 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6491 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6492 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6493 and 5 anonymous splitters): Delete.
6494 (and<mode>3): New expander.
6495 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6496 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6497 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6498 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6499 (floatdisf2_internal1): Remove clobbers.
6500 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6501 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6502 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6503 (and<mode>3 for BOOL_128): Remove clobber.
6504 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6505 rs6000_split_logical.
6506 (*bool<mode>3_internal for BOOL_128): Adjust call of
6507 rs6000_split_logical.
6508 (*boolc<mode>3_internal1 for BOOL_128,
6509 *boolc<mode>3_internal2 for BOOL_128,
6510 *boolcc<mode>3_internal1 for BOOL_128,
6511 *boolcc<mode>3_internal2 for BOOL_128,
6512 *eqv<mode>3_internal1 for BOOL_128,
6513 *eqv<mode>3_internal2 for BOOL_128,
6514 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6515 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6517 (*vec_reload_and_reg_<mptrsize>): Delete.
6519 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6521 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6522 and split, *boolccsi3_internal3 and split): Delete.
6523 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6524 *boolccdi3_internal3 and split): Delete.
6525 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6526 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6528 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6530 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6531 and split, *boolcsi3_internal3 and split): Delete.
6532 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6533 *boolcdi3_internal3 and split): Delete.
6534 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6536 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6538 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6539 <'u'>: Also support printing the low-order 16 bits.
6540 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6541 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6542 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6543 *booldi3_internal3 and split): Delete.
6544 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6545 *bool<mode>3_dot2): New.
6546 (two anonymous define_splits for non_logical_cint_operand): Merge.
6548 2014-08-17 Marek Polacek <polacek@redhat.com>
6549 Manuel López-Ibáñez <manu@gcc.gnu.org>
6552 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6553 (diagnostic_show_locus): Don't print caret diagnostic
6554 if a column is larger than the line_width.
6556 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6558 * common.opt: Make the ISL AST generator to be the main code generator
6561 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6563 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6565 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6568 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6570 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6571 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6572 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6574 * config/pa/pa.md (begin_brtab): Delete insn.
6575 (end_brtab): Likewise.
6577 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6579 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6581 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6583 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6584 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6585 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6586 (get_dynamic_type): Remove.
6587 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6588 (clear_speculation): Bring to ipa-deivrt.h
6589 (get_class_context): Rename to ...
6590 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6591 (contains_type_p): Update.
6592 (get_dynamic_type): Rename to ...
6593 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6594 (possible_polymorphic_call_targets): UPdate.
6595 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6596 * ipa-prop.c (ipa_analyze_call_uses): Update.
6598 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6600 * doc/invoke.texi (SH options): Document missing processor variant
6601 options. Remove references to Hitachi. Undocument deprecated mspace
6604 2014-08-15 Jason Merrill <jason@redhat.com>
6606 * tree.c (type_hash_canon): Uncomment assert.
6608 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6610 * input.h (in_system_header_at): Add comment.
6612 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6615 * diagnostic.c (build_message_string): Make it extern.
6616 * diagnostic.h (build_message_string): Make it extern.
6618 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6620 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6621 load/store from/to non-floating class pseudo.
6623 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6625 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6627 2014-08-15 Richard Biener <rguenther@suse.de>
6629 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6630 (get_constraint_for_ssa_var): Remove dead code.
6631 (get_constraint_for_1): Adjust.
6632 (find_what_var_points_to): Likewise.
6633 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6635 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6638 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6639 (_mm512_mask_cmpge_epu32_mask): Ditto.
6640 (_mm512_cmpge_epu32_mask): Ditto.
6641 (_mm512_mask_cmpge_epi64_mask): Ditto.
6642 (_mm512_cmpge_epi64_mask): Ditto.
6643 (_mm512_mask_cmpge_epu64_mask): Ditto.
6644 (_mm512_cmpge_epu64_mask): Ditto.
6645 (_mm512_mask_cmple_epi32_mask): Ditto.
6646 (_mm512_cmple_epi32_mask): Ditto.
6647 (_mm512_mask_cmple_epu32_mask): Ditto.
6648 (_mm512_cmple_epu32_mask): Ditto.
6649 (_mm512_mask_cmple_epi64_mask): Ditto.
6650 (_mm512_cmple_epi64_mask): Ditto.
6651 (_mm512_mask_cmple_epu64_mask): Ditto.
6652 (_mm512_cmple_epu64_mask): Ditto.
6653 (_mm512_mask_cmplt_epi32_mask): Ditto.
6654 (_mm512_cmplt_epi32_mask): Ditto.
6655 (_mm512_mask_cmplt_epu32_mask): Ditto.
6656 (_mm512_cmplt_epu32_mask): Ditto.
6657 (_mm512_mask_cmplt_epi64_mask): Ditto.
6658 (_mm512_cmplt_epi64_mask): Ditto.
6659 (_mm512_mask_cmplt_epu64_mask): Ditto.
6660 (_mm512_cmplt_epu64_mask): Ditto.
6661 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6662 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6663 (_mm512_cmpneq_epu32_mask): Ditto.
6664 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6665 (_mm512_cmpneq_epi64_mask): Ditto.
6666 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6667 (_mm512_cmpneq_epu64_mask): Ditto.
6668 (_mm512_castpd_ps): Ditto.
6669 (_mm512_castpd_si512): Ditto.
6670 (_mm512_castps_pd): Ditto.
6671 (_mm512_castps_si512): Ditto.
6672 (_mm512_castsi512_ps): Ditto.
6673 (_mm512_castsi512_pd): Ditto.
6674 (_mm512_castpd512_pd128): Ditto.
6675 (_mm512_castps512_ps128): Ditto.
6676 (_mm512_castsi512_si128): Ditto.
6677 (_mm512_castpd512_pd256): Ditto.
6678 (_mm512_castps512_ps256): Ditto.
6679 (_mm512_castsi512_si256): Ditto.
6680 (_mm512_castpd128_pd512): Ditto.
6681 (_mm512_castps128_ps512): Ditto.
6682 (_mm512_castsi128_si512): Ditto.
6683 (_mm512_castpd256_pd512): Ditto.
6684 (_mm512_castps256_ps512): Ditto.
6685 (_mm512_castsi256_si512): Ditto.
6686 (_mm512_cmpeq_epu32_mask): Ditto.
6687 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6688 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6689 (_mm512_cmpeq_epu64_mask): Ditto.
6690 (_mm512_cmpgt_epu32_mask): Ditto.
6691 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6692 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6693 (_mm512_cmpgt_epu64_mask): Ditto.
6694 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6695 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6696 * config/i386/i386.c (enum ix86_builtins): Add
6697 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6698 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6699 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6700 (bdesc_args): Add __builtin_ia32_si512_256si,
6701 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6702 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6703 __builtin_ia32_pd512_pd.
6704 (ix86_expand_args_builtin): Handle new FTYPEs.
6705 * config/i386/sse.md (castmode): Add 512-bit modes.
6706 (AVX512MODE2P): New.
6707 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6708 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6710 2014-08-15 Richard Biener <rguenther@suse.de>
6712 * fold-const.c (tree_swap_operands_p): Put all constants
6713 last, also strip sign-changing NOPs when considering further
6714 canonicalization. Canonicalize also when optimizing for size.
6716 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6718 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6719 one_match > zero_match case to just before simple_sequence.
6721 2014-08-15 Richard Biener <rguenther@suse.de>
6723 * data-streamer.h (streamer_string_index, string_for_index):
6725 * data-streamer-out.c (streamer_string_index): Make static.
6726 * data-streamer-in.c (string_for_index): Likewise.
6727 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6728 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6730 2014-08-15 Richard Biener <rguenther@suse.de>
6732 PR tree-optimization/62031
6733 * tree-data-ref.c (dr_analyze_indices): Do not set
6734 DR_UNCONSTRAINED_BASE.
6735 (dr_may_alias_p): All indirect accesses have to go the
6736 formerly DR_UNCONSTRAINED_BASE path.
6737 * tree-data-ref.h (struct indices): Remove
6738 unconstrained_base member.
6739 (DR_UNCONSTRAINED_BASE): Remove.
6741 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6744 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6745 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6746 in OMP_CLAUSE_MAP in some outer target region.
6748 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6750 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6751 name_expansion_cache.
6752 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6753 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6754 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6755 (difference_cannot_overflow_p): New parameter. Use affine
6756 expansion for equality check.
6757 (iv_elimination_compare_lt): Pass new argument.
6759 2014-08-14 DJ Delorie <dj@redhat.com>
6761 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6762 variables to the accumulator.
6764 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6765 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6766 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6769 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6770 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6771 (umulqihi3_virt): Likewise.
6772 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6773 (umulqihi3_real): Likewise.
6775 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6777 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6779 PR tree-optimization/62091
6780 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6781 function_entry_reached.
6782 (walk_aliased_vdefs): Clear it here.
6783 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6785 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6787 * ipa-utils.h (compare_virtual_tables): Declare.
6788 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6790 2014-08-14 Marek Polacek <polacek@redhat.com>
6793 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6794 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6796 2014-08-14 Tom de Vries <tom@codesourcery.com>
6798 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6800 2014-08-14 Tom de Vries <tom@codesourcery.com>
6802 PR rtl-optimization/62004
6803 PR rtl-optimization/62030
6804 * ifcvt.c (rtx_interchangeable_p): New function.
6805 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6806 * emit-rtl.h (mem_attrs_eq_p): Declare.
6808 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6810 * graphite-scop-detection.c:
6811 Add inclusion of cp-tree.h.
6812 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6813 in case they are pointers to object types
6815 2014-08-14 Richard Biener <rguenther@suse.de>
6817 * BASE-VER: Change to 5.0.0
6819 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6821 Anna Tikhonova <anna.tikhonova@intel.com>
6822 Ilya Tocar <ilya.tocar@intel.com>
6823 Andrey Turetskiy <andrey.turetskiy@intel.com>
6824 Ilya Verbin <ilya.verbin@intel.com>
6825 Kirill Yukhin <kirill.yukhin@intel.com>
6826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6828 * config/i386/sse.md (define_mode_attr avx512): New.
6829 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6831 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6832 (define_mode_attr ssse3_avx2): Ditto.
6833 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6834 (define_mode_attr avx2_avx512bw): New.
6835 (define_mode_attr ssedoublemodelower): New.
6836 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6838 (define_mode_attr ssebytemode): Allow V8DI modes.
6839 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6840 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6841 (define_mode_attr ssePSmode2): New.
6842 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6844 (define_mode_attr dbpsadbwmode): New.
6845 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6846 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6847 (vi8_sse4_1_avx2_avx512): New.
6848 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6850 (define_mode_attr blendbits): Move before its immediate use.
6852 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6854 Anna Tikhonova <anna.tikhonova@intel.com>
6855 Ilya Tocar <ilya.tocar@intel.com>
6856 Andrey Turetskiy <andrey.turetskiy@intel.com>
6857 Ilya Verbin <ilya.verbin@intel.com>
6858 Kirill Yukhin <kirill.yukhin@intel.com>
6859 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6861 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6862 * config/i386/subst.md
6863 (define_mode_iterator SUBST_V): Update.
6864 (define_mode_iterator SUBST_A): Ditto.
6865 (define_subst_attr "mask_operand7"): New.
6866 (define_subst_attr "mask_operand10"): New.
6867 (define_subst_attr "mask_operand_arg34") : New.
6868 (define_subst_attr "mask_expand_op3"): New.
6869 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6870 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6871 (define_subst_attr "mask_avx512vl_condition"): New.
6872 (define_subst_attr "round_mask_operand4"): Ditto.
6873 (define_subst_attr "round_mask_scalar_op3"): Delete.
6874 (define_subst_attr "round_mask_op4"): New.
6875 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6877 (define_subst_attr "round_modev8sf_condition"): New.
6878 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6880 (define_subst_attr "round_saeonly_mask_operand4"): New.
6881 (define_subst_attr "round_saeonly_mask_op4"): New.
6882 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6883 V8DImode, V16SImode.
6884 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6885 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6886 (define_subst_attr "mask_expand4_args"): New.
6887 (define_subst "mask_expand4"): New.
6889 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6891 Anna Tikhonova <anna.tikhonova@intel.com>
6892 Ilya Tocar <ilya.tocar@intel.com>
6893 Andrey Turetskiy <andrey.turetskiy@intel.com>
6894 Ilya Verbin <ilya.verbin@intel.com>
6895 Kirill Yukhin <kirill.yukhin@intel.com>
6896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6898 * config/i386/i386.md
6899 (define_attr "isa"): Add avx512bw,noavx512bw.
6900 (define_attr "enabled"): Ditto.
6901 (define_split): Add 32/64-bit mask logic.
6902 (define_insn "*k<logic>qi"): New.
6903 (define_insn "*k<logic>hi"): New.
6904 (define_insn "*anddi_1"): Add mask version.
6905 (define_insn "*andsi_1"): Ditto.
6906 (define_insn "*<code><mode>_1"): Ditto.
6907 (define_insn "*<code>hi_1"): Ditto.
6908 (define_insn "kxnor<mode>"): New.
6909 (define_insn "kunpcksi"): New.
6910 (define_insn "kunpckdi"): New.
6911 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6912 (define_insn "*one_cmplhi2_1"): Ditto.
6914 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6915 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6916 Anna Tikhonova <anna.tikhonova@intel.com>
6917 Ilya Tocar <ilya.tocar@intel.com>
6918 Andrey Turetskiy <andrey.turetskiy@intel.com>
6919 Ilya Verbin <ilya.verbin@intel.com>
6920 Kirill Yukhin <kirill.yukhin@intel.com>
6921 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6923 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6926 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6928 Anna Tikhonova <anna.tikhonova@intel.com>
6929 Ilya Tocar <ilya.tocar@intel.com>
6930 Andrey Turetskiy <andrey.turetskiy@intel.com>
6931 Ilya Verbin <ilya.verbin@intel.com>
6932 Kirill Yukhin <kirill.yukhin@intel.com>
6933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6935 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6937 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6938 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6939 xmm/ymm16+ when availble.
6940 * config/i386/i386.h
6941 (HARD_REGNO_NREGS): Add mask regs.
6942 (VALID_AVX512F_REG_MODE): Ditto.
6943 (VALID_AVX512F_REG_MODE) : Define.
6944 (VALID_MASK_AVX512BW_MODE): Ditto.
6945 (reg_class) (MASK_REG_P(X)): Define.
6946 * config/i386/i386.md: Do not split long moves with mask register,
6947 use kmovb if avx512bw is availible.
6948 (movdi_internal): Handle mask registers.
6950 2014-08-14 Richard Biener <rguenther@suse.de>
6952 PR tree-optimization/62081
6953 * tree-ssa-loop.c (pass_fix_loops): New pass.
6954 (pass_tree_loop::gate): Do not fixup loops here.
6955 * tree-pass.h (make_pass_fix_loops): Declare.
6956 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6958 2014-08-14 Richard Biener <rguenther@suse.de>
6960 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6961 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6963 2014-08-14 Richard Biener <rguenther@suse.de>
6965 PR tree-optimization/62090
6966 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6967 (fold_builtin_2): Do not fold sprintf.
6968 (fold_builtin_3): Likewise.
6969 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6970 moved from builtins.c.
6971 (gimple_fold_builtin): Fold sprintf.
6973 2014-08-14 Richard Biener <rguenther@suse.de>
6975 PR rtl-optimization/62079
6976 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6979 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6981 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6982 current_function_decl.
6984 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6986 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6987 cgraph_function_node to cgraph_node::function_symbol
6990 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6992 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6993 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6995 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6997 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7000 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7002 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7005 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7008 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7009 any registers that are used in mem_insn.
7011 2014-08-12 Steve Ellcey <sellcey@mips.com>
7013 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7015 2014-08-12 Steve Ellcey <sellcey@mips.com>
7017 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7018 (MULTILIB_DIRNAMES): Ditto.
7019 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7020 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7021 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7022 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7023 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7024 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7026 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7029 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7030 of __ARM_SIZEOF_WCHAR_T.
7032 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7035 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7036 Remove unnecessary attributes.
7038 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7040 * internal-fn.c (init_internal_fns): Fix off-by-one.
7042 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7043 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7044 Anna Tikhonova <anna.tikhonova@intel.com>
7045 Ilya Tocar <ilya.tocar@intel.com>
7046 Andrey Turetskiy <andrey.turetskiy@intel.com>
7047 Ilya Verbin <ilya.verbin@intel.com>
7048 Kirill Yukhin <kirill.yukhin@intel.com>
7049 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7051 * config/i386/i386.c (standard_sse_constant_opcode): Use
7052 vpxord/vpternlog if avx512 is availible.
7054 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7057 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7058 bitfields, that is when size doesn't match the size of type or the
7059 size of the constructor.
7061 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7063 * config/rs6000/constraints.md (wh constraint): New constraint,
7064 for FP registers if direct move is available.
7065 (wi constraint): New constraint, for VSX/FP registers that can
7066 handle 64-bit integers.
7067 (wj constraint): New constraint for VSX/FP registers that can
7068 handle 64-bit integers for direct moves.
7069 (wk constraint): New constraint for VSX/FP registers that can
7070 handle 64-bit doubles for direct moves.
7071 (wy constraint): Make documentation match implementation.
7073 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7074 scalar_in_vmx_p field to simplify tests of whether SFmode or
7075 DFmode can go in the Altivec registers.
7076 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7077 (rs6000_setup_reg_addr_masks): Likewise.
7078 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7079 field, and wh/wi/wj/wk constraints.
7080 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7081 the wh/wi/wj/wk constraints.
7082 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7083 upper registers, prefer VSX registers unless the operation is a
7084 memory operation with REG+OFFSET addressing.
7086 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7087 DImode. Change SFmode to use ww constraint instead of d to allow
7088 SF registers in the upper registers.
7091 (VSr5): Fix thinko in comment.
7092 (VSa): New mode attribute that is an alternative to wa, that
7093 returns the VSX register class that a mode can go in, but may not
7094 be the preferred register class.
7095 (VS_64dm): New mode attribute for appropriate register classes for
7096 referencing 64-bit elements of vectors for direct moves and normal
7098 (VS_64reg): Likewise.
7099 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7100 register allocator to only registers the data type can handle.
7101 (vsx_le_perm_load_<mode>): Likewise.
7102 (vsx_le_perm_store_<mode>): Likewise.
7103 (vsx_xxpermdi2_le_<mode>): Likewise.
7104 (vsx_xxpermdi4_le_<mode>): Likewise.
7105 (vsx_lxvd2x2_le_<mode>): Likewise.
7106 (vsx_lxvd2x4_le_<mode>): Likewise.
7107 (vsx_stxvd2x2_le_<mode>): Likewise.
7108 (vsx_add<mode>3): Likewise.
7109 (vsx_sub<mode>3): Likewise.
7110 (vsx_mul<mode>3): Likewise.
7111 (vsx_div<mode>3): Likewise.
7112 (vsx_tdiv<mode>3_internal): Likewise.
7113 (vsx_fre<mode>2): Likewise.
7114 (vsx_neg<mode>2): Likewise.
7115 (vsx_abs<mode>2): Likewise.
7116 (vsx_nabs<mode>2): Likewise.
7117 (vsx_smax<mode>3): Likewise.
7118 (vsx_smin<mode>3): Likewise.
7119 (vsx_sqrt<mode>2): Likewise.
7120 (vsx_rsqrte<mode>2): Likewise.
7121 (vsx_tsqrt<mode>2_internal): Likewise.
7122 (vsx_fms<mode>4): Likewise.
7123 (vsx_nfma<mode>4): Likewise.
7124 (vsx_eq<mode>): Likewise.
7125 (vsx_gt<mode>): Likewise.
7126 (vsx_ge<mode>): Likewise.
7127 (vsx_eq<mode>_p): Likewise.
7128 (vsx_gt<mode>_p): Likewise.
7129 (vsx_ge<mode>_p): Likewise.
7130 (vsx_xxsel<mode>): Likewise.
7131 (vsx_xxsel<mode>_uns): Likewise.
7132 (vsx_copysign<mode>3): Likewise.
7133 (vsx_float<VSi><mode>2): Likewise.
7134 (vsx_floatuns<VSi><mode>2): Likewise.
7135 (vsx_fix_trunc<mode><VSi>2): Likewise.
7136 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7137 (vsx_x<VSv>r<VSs>i): Likewise.
7138 (vsx_x<VSv>r<VSs>ic): Likewise.
7139 (vsx_btrunc<mode>2): Likewise.
7140 (vsx_b2trunc<mode>2): Likewise.
7141 (vsx_floor<mode>2): Likewise.
7142 (vsx_ceil<mode>2): Likewise.
7143 (vsx_<VS_spdp_insn>): Likewise.
7144 (vsx_xscvspdp): Likewise.
7145 (vsx_xvcvspuxds): Likewise.
7146 (vsx_float_fix_<mode>2): Likewise.
7147 (vsx_set_<mode>): Likewise.
7148 (vsx_extract_<mode>_internal1): Likewise.
7149 (vsx_extract_<mode>_internal2): Likewise.
7150 (vsx_extract_<mode>_load): Likewise.
7151 (vsx_extract_<mode>_store): Likewise.
7152 (vsx_splat_<mode>): Likewise.
7153 (vsx_xxspltw_<mode>): Likewise.
7154 (vsx_xxspltw_<mode>_direct): Likewise.
7155 (vsx_xxmrghw_<mode>): Likewise.
7156 (vsx_xxmrglw_<mode>): Likewise.
7157 (vsx_xxsldwi_<mode>): Likewise.
7158 (vsx_xscvdpspn): Tighten constraints to only use register classes
7160 (vsx_xscvspdpn): Likewise.
7161 (vsx_xscvdpspn_scalar): Likewise.
7163 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7164 wj, and wk constraints.
7165 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7166 general purpose registers.
7168 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7170 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7171 DImode instead of wm. Use wk constraint for direct move of DFmode
7173 (extendsidi2_lfiwax): Likewise.
7176 (movdi_internal64): Likewise.
7178 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7179 wk constraints. Make the wy constraint documentation match them
7182 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7184 Replacement of isl_int by isl_val
7185 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7186 (compute_bounds_for_param): use isl_val instead of isl_int
7187 (compute_bounds_for_loop): likewise
7188 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7189 (build_linearized_memory_access): use isl_val instead of isl_int
7190 (pdr_stride_in_loop): likewise
7191 * graphite-optimize-isl.c:
7192 (getPrevectorMap): use isl_val instead of isl_int
7194 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7195 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7196 (extern the_isl_ctx): declare
7197 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7198 (extract_affine_gmp): likewise
7200 (build_loop_iteration_domains): likewise
7201 (add_param_constraints): likewise
7203 2014-08-11 Richard Biener <rguenther@suse.de>
7205 PR tree-optimization/62075
7206 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7207 handle uses in patterns.
7209 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7211 Anna Tikhonova <anna.tikhonova@intel.com>
7212 Ilya Tocar <ilya.tocar@intel.com>
7213 Andrey Turetskiy <andrey.turetskiy@intel.com>
7214 Ilya Verbin <ilya.verbin@intel.com>
7215 Kirill Yukhin <kirill.yukhin@intel.com>
7216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7218 * common/config/i386/i386-common.c
7219 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7220 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7221 (ix86_handle_option): Handle OPT_mavx512vl.
7222 * config/i386/cpuid.h (bit_AVX512VL): Define.
7223 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7224 set -mavx512vl accordingly.
7225 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7226 OPTION_MASK_ISA_AVX512VL.
7227 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7228 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7229 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7230 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7231 * config/i386/i386.h (TARGET_AVX512VL): Define.
7232 (TARGET_AVX512VL_P(x)): Ditto.
7233 * config/i386/i386.opt: Add mavx512vl.
7235 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7237 PR tree-optimization/62073
7238 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7241 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7243 Anna Tikhonova <anna.tikhonova@intel.com>
7244 Ilya Tocar <ilya.tocar@intel.com>
7245 Andrey Turetskiy <andrey.turetskiy@intel.com>
7246 Ilya Verbin <ilya.verbin@intel.com>
7247 Kirill Yukhin <kirill.yukhin@intel.com>
7248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7250 * common/config/i386/i386-common.c
7251 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7252 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7253 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7254 (ix86_handle_option): Handle OPT_mavx512bw.
7255 * config/i386/cpuid.h (bit_AVX512BW): Define.
7256 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7257 set -mavx512bw accordingly.
7258 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7259 OPTION_MASK_ISA_AVX512BW.
7260 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7261 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7262 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7263 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7264 * config/i386/i386.h (TARGET_AVX512BW): Define.
7265 (TARGET_AVX512BW_P(x)): Ditto.
7266 * config/i386/i386.opt: Add mavx512bw.
7268 2014-08-11 Richard Biener <rguenther@suse.de>
7270 PR tree-optimization/62070
7271 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7272 Remove SSA checking.
7274 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7276 * asan.c (asan_check_flags): New enum.
7277 (build_check_stmt_with_calls): Removed function.
7278 (build_check_stmt): Split inlining logic to
7279 asan_expand_check_ifn.
7280 (instrument_derefs): Rename parameter.
7281 (instrument_mem_region_access): Rename parameter.
7282 (instrument_strlen_call): Likewise.
7283 (asan_expand_check_ifn): New function.
7284 (asan_instrument): Remove old code.
7285 (pass_sanopt::execute): Change handling of
7286 asan-instrumentation-with-call-threshold.
7287 (asan_clear_shadow): Fix formatting.
7288 (asan_function_start): Likewise.
7289 (asan_emit_stack_protection): Likewise.
7290 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7292 * internal-fn.c (expand_ASAN_CHECK): New function.
7293 * internal-fn.def (ASAN_CHECK): New internal function.
7294 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7296 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7297 * tree.c: Small comment fix.
7299 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7301 * gimple.c (gimple_call_fnspec): Support internal functions.
7302 (gimple_call_return_flags): Use const.
7303 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7304 * internal-fn.def: Add fnspec information.
7305 * internal-fn.h (internal_fn_fnspec): New function.
7306 (init_internal_fns): Declare new function.
7307 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7308 (init_internal_fns): New function.
7309 * tree-core.h: Update macro call.
7310 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7312 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7314 * lto-streamer.h (struct output_block::symbol): Change from
7315 struct symtab_node to plain symtab_node.
7316 (referenced_from_this_partition_p): Change first parameter
7317 from struct symtab_node to plain symtab_node.
7319 2014-08-10 Marek Polacek <polacek@redhat.com>
7322 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7324 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7326 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7327 DECL correctly; do not give up on types in static storage.
7329 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7331 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7333 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7335 * graphite-isl-ast-to-gimple.c:
7336 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7338 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7340 2014-08-08 Guozhi Wei <carrot@google.com>
7342 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7344 2014-08-08 Cary Coutant <ccoutant@google.com>
7346 * dwarf2out.c (get_skeleton_type_unit): Remove.
7347 (output_skeleton_debug_sections): Remove skeleton type units.
7348 (output_comdat_type_unit): Likewise.
7349 (dwarf2out_finish): Likewise.
7351 2014-08-07 Yi Yang <ahyangyi@google.com>
7353 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7355 2014-08-08 Richard Biener <rguenther@suse.de>
7357 * lto-streamer.h (struct lto_input_block): Make it a class
7359 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7360 (struct lto_function_header, struct lto_simple_header,
7361 struct lto_simple_header_with_strings,
7362 struct lto_decl_header, struct lto_function_header): Make
7363 a simple inheritance hieararchy. Remove unused fields.
7364 (struct lto_asm_header): Remove.
7365 * lto-streamer-out.c (produce_asm): Adjust.
7366 (lto_output_toplevel_asms): Likewise.
7367 (produce_asm_for_decls): Likewise.
7368 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7369 * data-streamer-in.c (string_for_index): Likewise.
7370 * ipa-inline-analysis.c (inline_read_section): Likewise.
7371 * ipa-prop.c (ipa_prop_read_section): Likewise.
7372 (read_replacements_section): Likewise.
7373 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7374 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7375 (lto_destroy_simple_input_block): Likewise.
7376 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7377 (lto_input_toplevel_asms): Likewise.
7379 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7381 Anna Tikhonova <anna.tikhonova@intel.com>
7382 Ilya Tocar <ilya.tocar@intel.com>
7383 Andrey Turetskiy <andrey.turetskiy@intel.com>
7384 Ilya Verbin <ilya.verbin@intel.com>
7385 Kirill Yukhin <kirill.yukhin@intel.com>
7386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7388 * common/config/i386/i386-common.c
7389 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7390 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7391 (ix86_handle_option): Handle OPT_mavx512dq.
7392 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7393 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7394 set -mavx512dq accordingly.
7395 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7396 OPTION_MASK_ISA_AVX512DQ.
7397 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7398 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7399 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7400 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7401 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7402 (TARGET_AVX512DQ_P(x)): Ditto.
7403 * config/i386/i386.opt: Add mavx512dq.
7405 2014-08-08 Richard Biener <rguenther@suse.de>
7407 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7408 target_percent, target_percent_s): Export.
7409 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7410 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7411 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7412 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7413 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7414 Move to gimple-fold.c.
7415 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7417 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7418 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7419 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7420 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7421 (rewrite_call_expr_array): Remove.
7422 (fold_builtin_sprintf_chk): Likewise.
7423 (fold_builtin_snprintf_chk): Likewise.
7424 (fold_builtin_varargs): Remove handling of sprintf_chk,
7425 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7426 (gimple_fold_builtin_sprintf_chk): Remove.
7427 (gimple_fold_builtin_snprintf_chk): Likewise.
7428 (gimple_fold_builtin_varargs): Likewise.
7429 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7430 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7431 * gimple.c (gimple_seq_add_seq_without_update): New function.
7432 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7433 * gimple-fold.c: Include output.h.
7434 (gsi_replace_with_seq_vops): New function, split out from ...
7435 (gimplify_and_update_call_from_tree): ... here.
7436 (replace_call_with_value): New function.
7437 (replace_call_with_call_and_fold): Likewise.
7438 (var_decl_component_p): Moved from builtins.c.
7439 (gimple_fold_builtin_memory_op): Moved from builtins.c
7440 fold_builtin_memory_op and rewritten to GIMPLE.
7441 (gimple_fold_builtin_memset): Likewise.
7442 (gimple_fold_builtin_strcpy): Likewise.
7443 (gimple_fold_builtin_strncpy): Likewise.
7444 (gimple_fold_builtin_strcat): Likewise.
7445 (gimple_fold_builtin_fputs): Likewise.
7446 (gimple_fold_builtin_memory_chk): Likewise.
7447 (gimple_fold_builtin_stxcpy_chk): Likewise.
7448 (gimple_fold_builtin_stxncpy_chk): Likewise.
7449 (gimple_fold_builtin_snprintf_chk): Likewise.
7450 (gimple_fold_builtin_sprintf_chk): Likewise.
7451 (gimple_fold_builtin_strlen): New function.
7452 (gimple_fold_builtin_with_strlen): New function split out from
7453 gimple_fold_builtin.
7454 (gimple_fold_builtin): Change signature and handle
7455 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7456 here. Call gimple_fold_builtin_with_strlen.
7457 (gimple_fold_call): Adjust.
7459 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7461 * calls.c (precompute_arguments): Check
7462 promoted_for_signed_and_unsigned_p and set the promoted mode.
7463 (promoted_for_signed_and_unsigned_p): New function.
7464 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7465 and set the promoted mode.
7466 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7467 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7468 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7471 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7473 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7474 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7475 (expand_call): Likewise.
7476 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7477 to get promoted mode.
7478 * combine.c (record_promoted_value): Skip > 0 comparison with
7479 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7480 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7481 of SUBREG_PROMOTED_UNSIGNED_P.
7482 (convert_modes): Likewise.
7483 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7484 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7485 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7486 SUBREG_PROMOTED_UNSIGNED_SET.
7487 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7488 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7489 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7490 SUBREG_PROMOTED_SET.
7491 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7492 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7493 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7494 of SUBREG_PROMOTED_UNSIGNED_P.
7495 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7496 (SUBREG_PROMOTED_SET): New define.
7497 (SUBREG_PROMOTED_GET): Likewise.
7498 (SUBREG_PROMOTED_SIGN): Likewise.
7499 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7500 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7501 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7502 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7503 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7504 (nonzero_bits1): Skip > 0 comparison with the results as
7505 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7506 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7507 of !SUBREG_PROMOTED_UNSIGNED_P.
7508 * simplify-rtx.c (simplify_unary_operation_1): Use new
7509 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7510 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7511 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7512 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7514 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7516 * ipa-devirt.c: Include gimple-pretty-print.h
7517 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7519 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7520 (get_polymorphic_call_info): Fix return value
7521 (type_change_info): New sturcture based on ipa-prop
7523 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7524 based on ipa-prop variant.
7525 (extr_type_from_vtbl_ptr_store): New function
7526 based on ipa-prop variant.
7527 (record_known_type): New function.
7528 (check_stmt_for_type_change): New function.
7529 (get_dynamic_type): New function.
7530 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7531 * tree-ssa-pre.c: ipa-utils.h
7532 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7533 machinery; sanity check with ipa-prop devirtualization.
7534 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7537 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7539 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7540 * alias.c, cfgexpand.c, cgraphbuild.c,
7541 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7542 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7543 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7544 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7545 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7546 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7547 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7548 dse.c, except.c, gengtype.c, gimple-expr.c,
7549 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7550 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7551 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7552 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7553 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7554 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7556 * pointer-set.c: Remove file.
7557 * pointer-set.h: Remove file.
7559 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7561 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7562 * config/arm/types.md (f_sels, f_seld): Delete.
7564 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7566 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7567 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7568 (aarch64_movdi_<mode>high): Likewise.
7569 (aarch64_mov<mode>high_di): Likewise.
7570 (aarch64_movdi_<mode>low): Likewise.
7571 (aarch64_mov<mode>low_di): Likewise.
7572 (aarch64_movtilow_tilow): Likewise.
7573 Add comment explaining usage of fp,simd attributes and of
7574 TARGET_FLOAT and TARGET_SIMD.
7576 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7577 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7579 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7580 Use MOVN when one of the half-words is 0xffff.
7582 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7584 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7586 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7588 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7589 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7590 (rfs_str): String corresponding to RFS_* constants.
7591 (rank_for_schedule_stats_t): New typedef.
7592 (rank_for_schedule_stats): New static variable.
7593 (rfs_result): New static function.
7594 (rank_for_schedule): Track statistics for deciding heuristics.
7595 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7597 (ready_sort): Use them for debug printouts.
7598 (schedule_block): Init statistics state. Print statistics on
7599 rank_for_schedule decisions.
7601 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7603 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7605 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7607 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7610 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7612 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7613 function to not conflict.
7614 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7615 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7616 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7617 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7618 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7621 2014-08-07 Marek Polacek <polacek@redhat.com>
7623 * fold-const.c (fold_binary_loc): Add folding of
7624 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7626 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7628 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7629 instead of type size.
7630 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7632 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7634 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7635 (*thumb1_movqi_insn): Likewise.
7636 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7638 2014-08-07 Tom de Vries <tom@codesourcery.com>
7640 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7641 (glibc_2_11_or_earlier): Remove effective-target keywords.
7643 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7645 * config/arm/arm.c (bdesc_2arg): Fix typo.
7646 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7648 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7650 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7652 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7655 * haifa-sched.c (advance_one_cycle): Fix dump.
7656 (schedule_block): Don't advance cycle if we are already at the
7657 beginning of the cycle.
7659 2014-08-06 Martin Jambor <mjambor@suse.cz>
7662 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7664 2014-08-06 Richard Biener <rguenther@suse.de>
7667 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7669 (lto_input_tree): Pop SCCs here.
7671 2014-08-06 Richard Biener <rguenther@suse.de>
7673 PR tree-optimization/61320
7674 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7675 handle misaligned loads.
7677 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7679 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7680 (aarch64_expand_vec_perm_const): Check for dup before zip.
7682 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7684 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7685 CONST_INT_P instead of GET_CODE and compare.
7686 (aarch64_select_cc_mode): Likewise.
7687 (aarch64_print_operand): Likewise.
7688 (aarch64_rtx_costs): Likewise.
7689 (aarch64_simd_valid_immediate): Likewise.
7690 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7691 (aarch64_simd_emit_pair_result_insn): Likewise.
7693 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7695 * gdbhooks.py (find_gcc_source_dir): New helper function.
7696 (class PassNames): New class, locating and parsing passes.def.
7697 (class BreakOnPass): New command "break-on-pass".
7699 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7701 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7704 2014-08-05 Richard Biener <rguenther@suse.de>
7706 PR rtl-optimization/61672
7707 * emit-rtl.h (mem_attrs_eq_p): Declare.
7708 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7709 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7710 * cfgcleanup.c (merge_memattrs): Likewise.
7713 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7715 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7716 rather than singleton vectors.
7717 (vqdmlsls_lane_s32): Likewise.
7719 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7721 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7722 Use VSDQ_HSI mode iterator.
7723 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7724 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7725 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7726 Use BUILTIN_VDQHS macro.
7727 (sqrdmulh_laneq): Likewise.
7728 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7729 (vqdmlals_laneq_s32): Likewise.
7730 (vqdmlslh_laneq_s16): Likewise.
7731 (vqdmlsls_laneq_s32): Likewise.
7732 (vqdmulhh_laneq_s16): Likewise.
7733 (vqdmulhs_laneq_s32): Likewise.
7734 (vqrdmulhh_laneq_s16): Likewise.
7735 (vqrdmulhs_laneq_s32): Likewise.
7737 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7739 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7740 (vmuld_laneq_f64): Likewise.
7741 (vmuls_laneq_f32): Likewise.
7742 (vmul_n_f64): Likewise.
7743 (vmuld_lane_f64): Reimplement in C.
7744 (vmuls_lane_f32): Likewise.
7746 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7748 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7750 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7752 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7754 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7755 (rbitsi2): Likewise.
7756 (*arm_rev): Set predicable and predicable_short_it attributes.
7758 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7760 * convert.c (convert_to_integer): Guard transformation to lrint by
7763 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7765 * config/aarch64/aarch64-builtins.c
7766 (aarch64_simd_builtin_type_mode): Delete.
7767 (v8qi_UP): Remap to V8QImode.
7768 (v4hi_UP): Remap to V4HImode.
7769 (v2si_UP): Remap to V2SImode.
7770 (v2sf_UP): Remap to V2SFmode.
7771 (v1df_UP): Remap to V1DFmode.
7772 (di_UP): Remap to DImode.
7773 (df_UP): Remap to DFmode.
7774 (v16qi_UP):V16QImode.
7775 (v8hi_UP): Remap to V8HImode.
7776 (v4si_UP): Remap to V4SImode.
7777 (v4sf_UP): Remap to V4SFmode.
7778 (v2di_UP): Remap to V2DImode.
7779 (v2df_UP): Remap to V2DFmode.
7780 (ti_UP): Remap to TImode.
7781 (ei_UP): Remap to EImode.
7782 (oi_UP): Remap to OImode.
7783 (ci_UP): Map to CImode.
7784 (xi_UP): Remap to XImode.
7785 (si_UP): Remap to SImode.
7786 (sf_UP): Remap to SFmode.
7787 (hi_UP): Remap to HImode.
7788 (qi_UP): Remap to QImode.
7789 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7790 (VAR1): Build builtin name.
7791 (aarch64_init_simd_builtins): Remove dead code.
7793 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7795 * graphite-isl-ast-to-gimple.c:
7796 (set_options): New function.
7797 (scop_to_isl_ast): Add calling of set_options.
7799 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7801 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7802 (analyze_iv_to_split_insn): Don't initialize them.
7803 (get_ivts_expr): Removed.
7804 (allocate_basic_variable, insert_base_initialization): Use
7805 SET_SRC instead of *get_ivts_expr.
7806 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7808 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7810 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7811 (translate_isl_ast_for_loop): Add checking of the
7812 flag_loop_parallelize_all.
7813 (ast_build_before_for): New function.
7814 (scop_to_isl_ast): Add checking of the
7815 flag_loop_parallelize_all.
7816 * graphite-dependences.c: Move the defenition of the
7817 scop_get_dependences from graphite-optimize-isl.c to this file.
7818 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7819 (carries_deps): Add checking of the x's value.
7820 * graphite-optimize-isl.c: Move the defenition of the
7821 scop_get_dependences to graphite-dependences.c.
7822 * graphite-poly.h: Add declarations of scop_get_dependences
7825 2014-08-04 Rohit <rohitarulraj@freescale.com>
7828 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7830 (alt_reg_names): Likewise.
7831 (rs6000_dwarf_register_span): For SPE high registers, replace
7832 dwarf register numbers with GCC hard register numbers.
7833 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7834 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7835 register number for the corresponding GCC hard register number.
7836 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7837 newly added GCC hard register numbers for SPE high registers.
7838 (DWARF_FRAME_REGISTERS): Likewise.
7839 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7840 (DWARF_FRAME_REGNUM): Likewise.
7841 (FIXED_REGISTERS): Likewise.
7842 (CALL_USED_REGISTERS): Likewise.
7843 (CALL_REALLY_USED_REGISTERS): Likewise.
7844 (REG_ALLOC_ORDER): Likewise.
7845 (enum reg_class): Likewise.
7846 (REG_CLASS_NAMES): Likewise.
7847 (REG_CLASS_CONTENTS): Likewise.
7848 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7850 2014-08-04 Richard Biener <rguenther@suse.de>
7852 * gimple-fold.h (gimple_fold_builtin): Remove.
7853 * gimple-fold.c (gimple_fold_builtin): Make static.
7854 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7855 fold_stmt, not gimple_fold_builtin.
7857 2014-08-04 Martin Liska <mliska@suse.cz>
7859 * cgraph.h (csi_end_p): Removed.
7860 (csi_next): Likewise.
7861 (csi_node): Likewise.
7862 (csi_start): Likewise.
7863 (cgraph_node_in_set_p): Likewise.
7864 (cgraph_node_set_size): Likewise.
7865 (vsi_end_p): Likewise.
7866 (vsi_next): Likewise.
7867 (vsi_node): Likewise.
7868 (vsi_start): Likewise.
7869 (varpool_node_set_size): Likewise.
7870 (cgraph_node_set_nonempty_p): Likewise.
7871 (varpool_node_set_nonempty_p): Likewise.
7872 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7874 * ipa-inline-transform.c: Likewise.
7875 * ipa-utils.c (cgraph_node_set_new): Removed.
7876 (cgraph_node_set_add): Likewise.
7877 (cgraph_node_set_remove): Likewise.
7878 (cgraph_node_set_find): Likewise.
7879 (dump_cgraph_node_set): Likewise.
7880 (debug_cgraph_node_set): Likewise.
7881 (free_cgraph_node_set): Likewise.
7882 (varpool_node_set_new): Likewise.
7883 (varpool_node_set_add): Likewise.
7884 (varpool_node_set_remove): Likewise.
7885 (varpool_node_set_find): Likewise.
7886 (dump_varpool_node_set): Likewise.
7887 (free_varpool_node_set): Likewise.
7888 (debug_varpool_node_set): Likewise.
7889 * tree-emutls.c (struct tls_var_data):
7890 (emutls_index): Removed.
7891 (emutls_decl): Likewise.
7892 (gen_emutls_addr): Function implementation uses newly added
7893 hash_map<varpool_node *, tls_var_data>.
7894 (clear_access_vars): Likewise.
7895 (create_emultls_var): Likewise.
7896 (ipa_lower_emutls): Likewise.
7897 (reset_access): New function.
7899 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7901 * config/i386/i386.c (ix86_option_override_internal): Add
7902 PTA_RDRND and PTA_MOVBE for bdver4.
7904 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7905 James Greenhalgh <james.greenhalgh@arm.com>
7907 * doc/md.texi (clrsb): Document.
7908 (clz): Change reference to x into operand 1.
7910 (popcount): Likewise.
7912 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7915 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7916 move to subtarget in serial version if result is ignored.
7918 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7919 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7921 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7922 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7923 (sched_analyze_insn): Update use of try_group_insn to
7924 sched_macro_fuse_insns.
7925 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7926 arguments that are not conditional jumps.
7928 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7930 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7931 family information. Handle BTVER2 cpu with cpuid family value.
7933 2014-08-04 Tom de Vries <tom@codesourcery.com>
7935 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7936 (glibc_2_11_or_earlier): Document effective-target keywords.
7938 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7940 * ipa-devirt.c (odr_type_warn_count): Add type.
7941 (possible_polymorphic_call_targets): Set it.
7942 (ipa_devirt): Use it.
7944 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7946 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7948 * ipa-devirt.c: Include hash-map.h
7949 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7950 (clear_speculation): Break out of ...
7951 (get_class_context): ... here; speed up handling obviously useless
7953 (odr_type_warn_count, decl_warn_count): New structures.
7954 (final_warning_record): New structure.
7955 (final_warning_records): New static variable.
7956 (possible_polymorphic_call_targets): Cleanup handling of
7957 speculative info; do not build speculation when user do not care;
7958 record info about warnings when asked for.
7959 (add_decl_warning): New function.
7960 (type_warning_cmp): New function.
7961 (decl_warning_cmp): New function.
7962 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7963 (gate): Enable pass when warnings are requested.
7964 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7967 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7969 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7971 (hash_map::remove): New method.
7972 (hash_map::traverse): New method.
7973 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7974 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7975 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7976 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7977 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7978 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7981 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7983 * hash-set.h: new File.
7984 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7985 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7986 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7987 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7988 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7989 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7990 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7991 varpool.c: Use hash_set instead of pointer_set.
7993 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7995 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7997 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7999 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8000 for frame access when strict_p is false.
8002 2014-08-01 Renlin Li <renlin.li@arm.com>
8003 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8005 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8006 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8007 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8009 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8011 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8012 aarch64_mem_pair_offset.
8014 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8016 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8018 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8019 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8021 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8023 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8025 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8028 * cgraphunit.c (analyze_functions): Use get_create rather than get
8029 for decls which are clones of abstract functions.
8031 2014-08-01 Martin Liska <mliska@suse.cz>
8033 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8034 * ipa-prop.h (count_formal_params): Global function created from static.
8035 * ipa-prop.c (count_formal_params): Likewise.
8036 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8037 profiles for semantically equivalent functions.
8038 * passes.c (do_per_function): If we load body of a function
8039 during WPA, this condition should behave same.
8040 * varpool.c (ctor_for_folding): More tolerant assert for variable
8041 aliases created during WPA.
8043 2014-08-01 Martin Liska <mliska@suse.cz>
8045 * doc/invoke.texi (Options That Control Optimization): Documentation
8046 for -foptimize-strlen introduced. Optimization levels default options
8049 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8051 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8052 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8053 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8055 * stor-layout.h (min_align_of_type): New prototype.
8056 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8057 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8059 * ubsan.c: Include builtins.h.
8060 (ubsan_expand_bounds_ifn): Change return type to bool,
8062 (ubsan_expand_null_ifn): Change return type to bool, change
8063 argument to gimple_stmt_iterator *. Handle both null and alignment
8064 sanitization, take type from ckind argument's type rather than
8066 (instrument_member_call): Removed.
8067 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8068 Handle both null and alignment sanitization, don't say whole
8069 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8070 call instead of 2 argument.
8071 (instrument_null): Adjust instrument_mem_ref caller. Don't
8072 instrument calls here.
8073 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8075 * stor-layout.c (min_align_of_type): New function.
8076 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8077 Or it into SANITIZE_UNDEFINED.
8078 * doc/invoke.texi (-fsanitize=alignment): Document.
8080 2014-07-31 Andi Kleen <ak@linux.intel.com>
8082 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8084 2014-07-31 Andi Kleen <ak@linux.intel.com>
8086 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8088 (vn_reference_compute_hash): Dito.
8089 (vn_nary_op_compute_hash): Dito.
8090 (vn_phi_compute_hash): Dito.
8091 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8093 2014-07-31 Andi Kleen <ak@linux.intel.com>
8095 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8096 Rename to inchash:add_expr_commutative. Convert to inchash.
8097 (iterative_hash_hashable_expr): Rename to
8098 inchash:add_hashable_expr. Convert to inchash.
8099 (avail_expr_hash): Dito.
8101 2014-07-31 Andi Kleen <ak@linux.intel.com>
8103 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8106 2014-07-31 Andi Kleen <ak@linux.intel.com>
8108 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8110 2014-07-31 Andi Kleen <ak@linux.intel.com>
8112 * Makefile.in (OBJS): Add rtlhash.o
8113 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8114 (loc_checksum): Dito.
8115 (loc_checksum_ordered): Dito.
8116 (hash_loc_operands): Dito.
8118 (hash_loc_list): Dito.
8119 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8120 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8121 * rtlhash.c: New file.
8122 * rtlhash.h: New file.
8124 2014-07-31 Andi Kleen <ak@linux.intel.com>
8126 * inchash.h (inchash): Change inchash class to namespace.
8127 (class hash): ... Rename from inchash.
8128 (add_object): Move from macro to class template.
8129 * lto-streamer-out.c (hash_tree): Change inchash
8131 * tree.c (build_type_attribute_qual_variant): Dito.
8132 (type_hash_list): Dito.
8133 (attribute_hash_list): Dito.
8134 (iterative_hstate_expr): Rename to inchash::add_expr
8135 (build_range_type_1): Change inchash to inchash::hash
8136 and use hash::add_expr.
8137 (build_array_type_1): Dito.
8138 (build_function_type): Dito
8139 (build_method_type_directly): Dito.
8140 (build_offset_type): Dito.
8141 (build_complex_type): Dito.
8142 (make_vector_type): Dito.
8143 * tree.h (iterative_hash_expr): Dito.
8145 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8147 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8149 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8151 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8152 correct alphabetical position.
8153 (vpaddd_f64): Rewrite using builtins.
8154 (vpaddd_s64): Move to correct alphabetical position.
8157 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8160 * config/sh/sh.c (sh_legitimate_address_p,
8161 sh_legitimize_reload_address): Handle reg+reg address modes when
8162 ALLOW_INDEXED_ADDRESS is false.
8163 * config/sh/predicates.md (general_movsrc_operand,
8164 general_movdst_operand): Likewise.
8166 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8168 * config/aarch64/aarch64-builtins.c
8169 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8172 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8174 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8175 the generated mask based on BYTES_BIG_ENDIAN.
8176 (aarch64_simd_check_vect_par_cnst_half): New.
8177 * config/aarch64/aarch64-protos.h
8178 (aarch64_simd_check_vect_par_cnst_half): New.
8179 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8180 the check out to aarch64_simd_check_vect_par_cnst_half.
8181 (vect_par_cnst_lo_half): Likewise.
8182 * config/aarch64/aarch64-simd.md
8183 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8184 (move_hi_quad_<mode>): Always generate a low mask.
8186 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8188 * doc/invoke.texi (AVR Options): Add documentation about
8189 __AVR_DEVICE_NAME__ built-in macro.
8191 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8194 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8195 constraints are satisfied.
8196 (<shift>di3_neon): Likewise.
8198 2014-07-31 Richard Biener <rguenther@suse.de>
8200 PR tree-optimization/61964
8201 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8202 by structural equality.
8204 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8206 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8207 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8208 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8210 * gcc.c (sanitize_spec_function): Support new option.
8211 (SANITIZER_SPEC): Remove now redundant check.
8212 * opts.c (common_handle_option): Support new option.
8213 (finish_options): Check for incompatibilities.
8214 * toplev.c (process_options): Split userspace-specific checks.
8216 2014-07-31 Richard Biener <rguenther@suse.de>
8218 * lto-streamer.h (struct output_block): Remove global.
8219 (struct data_in): Remove labels, num_named_labels and
8221 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8222 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8224 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8227 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8228 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8229 (isolate_path): New argument to avoid inserting a trap.
8230 (find_implicit_erroneous_behaviour): Handle returning the address
8231 of a local variable.
8232 (find_explicit_erroneous_behaviour): Likewise.
8234 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8237 * toplev.c (init_random_seed): Move piece of code never called to
8239 (set_random_seed): see above.
8241 2014-07-31 Tom de Vries <tom@codesourcery.com>
8243 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8245 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8247 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8248 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8250 2014-07-31 Richard Biener <rguenther@suse.de>
8252 * data-streamer.h (streamer_write_data_stream): Declare here,
8254 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8255 * lto-cgraph.c (lto_output_node): Adjust.
8256 (lto_output_varpool_node): Likewise.
8257 * data-streamer-out.c (streamer_string_index): Likewise.
8258 (streamer_write_data_stream, lto_append_block): Move from ...
8259 * lto-section-out.c (lto_output_data_stream,
8260 lto_append_block): ... here.
8262 2014-07-30 Mike Stump <mikestump@comcast.net>
8264 * configure.ac: Also check for popen.
8265 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8266 * configure: Regenerate.
8267 * config.in: Regenerate.
8269 2014-07-30 Martin Jambor <mjambor@suse.cz>
8271 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8272 parameter to gimple.
8274 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8276 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8277 address as second parameter to __tpf_eh_return routine.
8279 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8281 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8284 2014-07-30 Tom Tromey <tromey@redhat.com>
8287 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8288 * doc/extend.texi (Type Attributes): Document designated_init
8291 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8293 * graphite-isl-ast-to-gimple.c:
8294 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8295 (gcc_expression_from_isl_expression): Pass type to
8296 gcc_expression_from_isl_ast_expr_id.
8298 2014-07-30 Richard Biener <rguenther@suse.de>
8300 * lto-streamer.h (lto_write_data): New function.
8301 * langhooks.c (lhd_append_data): Do not free block.
8302 * lto-section-out.c (lto_write_data): New function writing
8303 raw data to the current section.
8304 (lto_write_stream): Adjust for langhook semantic change.
8305 (lto_destroy_simple_output_block): Write header directly.
8306 * lto-opts.c (lto_write_options): Write options directly.
8307 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8308 (lto_output_toplevel_asms): Likewise.
8309 (copy_function_or_variable): Copy data directly.
8310 (write_global_references): Output index table directly.
8311 (lto_output_decl_state_refs): Likewise.
8312 (write_symbol): Write data directly.
8313 (produce_symtab): Adjust.
8314 (produce_asm_for_decls): Output header and refs directly.
8316 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8318 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8319 to speculative_targets
8320 (get_class_context): Fix handling of contextes without outer type;
8321 avoid matching non-polymorphic types in LTO.
8322 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8323 parameter to speculative_targetsp; handle speculation.
8324 (dump_possible_polymorphic_call_targets): Update dumping.
8326 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8328 * common.opt (Wodr): Enable by default.
8330 2014-07-29 Olivier Hainque <hainque@adacore.com>
8332 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8334 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8337 * gengtype.c (strtoken): New function.
8338 (create_user_defined_type): Replace strtok with strtoken.
8340 2014-07-29 Nathan Sidwell <nathan@acm.org>
8342 * gcov-io.c (gcov_var): Make hidden.
8343 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8344 (gcov_do_dump): Declare.
8345 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8347 2014-07-29 Martin Jambor <mjambor@suse.cz>
8349 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8350 parameter to gimple.
8351 (sra_modify_assign): Likewise.
8353 2014-07-29 Richard Biener <rguenther@suse.de>
8356 * expr.c (expand_expr_real_2): Revert last change.
8358 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8360 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8361 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8362 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8364 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8365 (contains_type_p): Forward declare.
8366 (polymorphic_call_target_hasher::hash): Hash speculative info.
8367 (polymorphic_call_target_hasher::equal): Compare speculative info.
8368 (get_class_context): Handle speuclation.
8369 (contains_type_p): Update.
8370 (get_polymorphic_call_info_for_decl): Update.
8371 (walk_ssa_copies): Break out from ...
8372 (get_polymorphic_call_info): ... here; set speculative context
8374 * ipa-prop.c (ipa_write_indirect_edge_info,
8375 ipa_read_indirect_edge_info): Stream speculative context.
8376 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8377 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8378 SPECULATIVE_MAYBE_DERIVED_TYPE).
8379 (possible_polymorphic_call_targets overriders): Update.
8380 (dump_possible_polymorphic_call_targets overriders): Update.
8381 (dump_possible_polymorphic_call_target_p overriders): Update.
8383 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8385 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8386 ipa-devirt path; fix thinko there.
8388 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8390 * config/i386/i386.c (ix86_return_in_memory): Replace one
8391 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8393 2014-07-28 Marek Polacek <polacek@redhat.com>
8395 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8397 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8399 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8400 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8401 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8402 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8403 (USE_LD_AS_NEEDED): Likewise.
8404 (ASM_APP_ON): Likewise.
8405 (ASM_APP_OFF): Likewise.
8406 (TARGET_POSIX_IO): Likewise.
8407 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8408 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8409 (USE_LD_AS_NEEDED): Likewise.
8410 (ASM_APP_ON): Likewise.
8411 (ASM_APP_OFF): Likewise.
8412 (TARGET_POSIX_IO): Likewise.
8414 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8417 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8418 operators other than the equality operators.
8420 2014-07-28 Richard Biener <rguenther@suse.de>
8423 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8424 sure to register SImode ones, not only >= word_mode ones.
8425 * expr.c (expand_expr_real_2): When expanding -ftrapv
8426 binops do not use OPTAB_LIB_WIDEN.
8428 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8431 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8432 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8433 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8434 inserting them in the insn stream.
8436 2014-07-28 Marek Polacek <polacek@redhat.com>
8439 * common.opt (Wodr): Add Var.
8441 2014-07-28 Richard Biener <rguenther@suse.de>
8443 PR tree-optimization/61921
8444 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8445 if there is a varpool node before dereferencing it.
8447 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8449 * graphite-sese-to-poly.c:
8450 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8451 id of the pbb), which contains pointer to the pbb1.
8453 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8455 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8457 * graphite-isl-ast-to-gimple.c:
8458 (graphite_create_new_guard): New function.
8459 (translate_isl_ast_node_if): New function.
8460 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8462 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8464 2014-07-27 Anthony Green <green@moxielogic.com>
8466 * config.gcc: Add moxie-*-moxiebox* configuration.
8467 * config/moxie/moxiebox.h: New file.
8469 2014-07-26 Andrew Pinski <apinski@cavium.com>
8471 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8472 from the read only register.
8474 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8476 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8477 as the allocation class if it isn't likely to be spilled.
8479 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8481 * rtl.h (tls_referenced_p): Declare.
8482 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8483 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8484 (mips_cannot_force_const_mem): Use tls_referenced_p.
8485 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8486 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8487 instead of pa_tls_referenced_p.
8488 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8489 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8490 (pa_legitimate_constant_p): Likewise.
8491 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8492 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8493 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8494 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8495 rs6000_tls_referenced_p.
8496 (rs6000_tls_symbol_ref_1): Delete.
8498 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8501 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8502 Optimize inverse of a VEC_CONCAT.
8504 2014-07-25 Xinliang David Li <davidxl@google.com>
8506 * params.def: New parameter.
8507 * coverage.c (get_coverage_counts): Check new flag.
8508 (coverage_compute_profile_id): Check new flag.
8509 (coverage_begin_function): Check new flag.
8510 (coverage_end_function): Check new flag.
8511 * value-prof.c (coverage_node_map_initialized_p): New function.
8512 (init_node_map): Populate map with all functions.
8513 * doc/invoke.texi: Document new parameter.
8515 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8516 Richard Biener <rguenther@suse.de>
8518 * lto-streamer-out.c (struct sccs): Turn to ...
8519 (class DFS): ... this one; refactor the DFS walk so it can
8520 be re-done on per-SCC basis.
8521 (DFS::DFS): New constructor.
8522 (DFS::~DFS): New destructor.
8523 (hash_tree): Add new MAP argument holding in-SCC hash values;
8524 remove POINTER_TYPE hashing hack.
8525 (scc_entry_compare): Rename to ...
8526 (DFS::scc_entry_compare): ... this one.
8527 (hash_scc): Rename to ...
8528 (DFS::hash_scc): ... this one; pass output_block instead
8529 of streamer_cache; work harder to get unique and stable SCC
8531 (DFS_write_tree): Rename to ...
8532 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8533 (lto_output_tree): Update.
8535 2014-07-25 Andi Kleen <ak@linux.intel.com>
8537 * lto-streamer-out.c (hash_tree): Convert to inchash.
8539 2014-07-25 Andi Kleen <ak@linux.intel.com>
8541 * tree.c (build_type_attribute_qual_variant): Use inchash.
8542 (type_hash_list): Dito.
8543 (attribute_hash_list): Dito
8544 (iterative_hstate_expr): Dito.
8545 (iterative_hash_expr): Dito.
8546 (build_range_type_1): Dito.
8547 (build_array_type_1): Dito.
8548 (build_function_type): Dito.
8549 (build_method_type_directly): Dito.
8550 (build_offset_type): Dito.
8551 (build_complex_type): Dito.
8552 (make_vector_type): Dito.
8553 * tree.h (iterative_hash_expr): Add compat wrapper.
8554 (iterative_hstate_expr): Add.
8556 2014-07-25 Andi Kleen <ak@linux.intel.com>
8558 * Makefile.in (OBJS): Add inchash.o.
8559 (PLUGIN_HEADERS): Add inchash.h.
8560 * ipa-devirt.c: Include inchash.h.
8561 * lto-streamer-out.c: Dito.
8562 * tree-ssa-dom.c: Dito.
8563 * tree-ssa-pre.c: Dito.
8564 * tree-ssa-sccvn.c: Dito.
8565 * tree-ssa-tail-merge.c: Dito.
8567 * tree.c (iterative_hash_hashval_t): Move to ...
8568 (iterative_hash_host_wide_int): Move to ...
8569 * inchash.c: Here. New file.
8570 * tree.h (iterative_hash_hashval_t): Move to ...
8571 (iterative_hash_host_wide_int): Move to ...
8572 * inchash.h: Here. New file.
8574 2014-07-25 Richard Biener <rguenther@suse.de>
8578 * fold-const.c (native_encode_int): Add and handle offset
8579 parameter to do partial encodings of expr.
8580 (native_encode_fixed): Likewise.
8581 (native_encode_real): Likewise.
8582 (native_encode_complex): Likewise.
8583 (native_encode_vector): Likewise.
8584 (native_encode_string): Likewise.
8585 (native_encode_expr): Likewise.
8586 * fold-const.c (native_encode_expr): Add offset parameter
8588 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8589 (fold_ctor_reference): Handle all reads from tcc_constant
8592 2014-07-25 Richard Biener <rguenther@suse.de>
8594 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8597 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8599 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8601 2014-07-24 Kyle McMartin <kyle@redhat.com>
8603 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8605 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8607 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8609 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8611 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8612 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8613 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8615 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8617 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8618 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8619 aggregate types. Instead, *all* aggregate types, except for single-
8620 element or homogeneous float/vector aggregates, are quadword-aligned
8621 if required by their type alignment. Issue -Wpsabi note when a type
8622 is now treated differently than before.
8624 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8626 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8627 does not fit fully into floating-point registers, and there is still
8628 space in the register parameter area, use GPRs to pass those parts
8629 of the argument. Issue -Wpsabi note if any parameter is now treated
8630 differently than before.
8631 (rs6000_arg_partial_bytes): Update.
8633 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8635 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8637 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8639 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8640 * toplev.c (initialize_rtl): Don't use it. Move previously
8641 "language-dependent" calls to...
8642 (backend_init): ...here.
8643 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8644 Assert that RTL initialization hasn't happend yet.
8646 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8648 PR rtl-optimization/61629
8649 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8650 they have already been initialized.
8652 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8655 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8656 DECL_INCOMING_RTL and entry_parm.
8657 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8658 * calls.c (load_register_parameters): Likewise argument values.
8659 (emit_library_call_value_1, store_one_arg): Likewise argument
8661 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8663 * explow.c (validize_mem): Modify the argument in-place.
8665 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8667 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8668 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8670 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8672 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8673 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8675 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8677 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8678 (aarch64_save_callee_saves): New parameter "skip_wb".
8679 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8681 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8683 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8685 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8687 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8689 * graphite-isl-ast-to-gimple.c:
8690 (graphite_create_new_loop): Add calling of isl_id_free to properly
8691 decrement reference counts.
8693 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8695 2014-07-24 Martin Liska <mliska@suse.cz>
8696 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8698 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8699 (rs6000_code_end): Likewise.
8701 2014-07-24 Martin Liska <mliska@suse.cz>
8703 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8704 symtab_node funtion used.
8705 (rs6000_xcoff_declare_object_name): Likewise.
8707 2014-07-24 Martin Liska <mliska@suse.cz>
8709 * cgraphunit.c (compile): Correct function used.
8711 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8713 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8716 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8719 * varasm.c (bss_initializer_p): Handle offlined ctors.
8720 (align_variable, get_variable_align): Likewise.
8721 (make_decl_one_only): Likewise.
8722 (default_binds_local_p_1): Likewise.
8723 (decl_binds_to_current_def_p): Likewise.
8724 (get_variable_section): Get constructor if it is offlined.
8725 (assemble_variable_contents): Sanity check that the caller
8726 streamed in the ctor in LTO.
8728 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8730 * graphite-isl-ast-to-gimple.c:
8731 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8732 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8733 isl_ast_op_pdiv_r to the different case.
8735 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8737 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8740 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8741 when flag_errno_math is on.
8743 2014-07-24 Martin Liska <mliska@suse.cz>
8745 * cgraph.h (varpool_node):
8746 (availability get_availability (void)):
8747 created from cgraph_variable_initializer_availability
8748 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8749 created from: cgraph_variable_initializer_availability
8750 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8751 (void finalize_named_section_flags (void)):
8752 created from varpool_finalize_named_section_flags
8753 (bool assemble_decl (void)): created from varpool_assemble_decl
8754 (void analyze (void)): created from varpool_analyze_node
8755 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8756 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8757 (void remove_initializer (void)): created from varpool_remove_initializer
8758 (tree get_constructor (void)): created from varpool_get_constructor
8759 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8760 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8761 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8762 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8763 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8764 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8765 (static bool output_variables (void)): created from varpool_output_variables
8766 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8767 created from varpool_extra_name_alias
8768 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8769 (static void dump_varpool (FILE *f)): created from dump_varpool
8770 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8771 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8772 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8773 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8774 (void assemble_aliases (void)): created from assemble_aliases
8776 2014-07-24 Martin Liska <mliska@suse.cz>
8778 * cgraph.h (symtab_node):
8779 (void register_symbol (void)): created from symtab_register_node
8780 (void remove (void)): created from symtab_remove_node
8781 (void dump (FILE *f)): created from dump_symtab_node
8782 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8783 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8784 (struct ipa_ref *add_reference (symtab_node *referred_node,
8785 enum ipa_ref_use use_type)): created from add_reference
8786 (struct ipa_ref *add_reference (symtab_node *referred_node,
8787 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8788 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8789 gimple stmt)): created from maybe_add_reference
8790 (bool semantically_equivalent_p (symtab_node *target)): created from
8791 symtab_semantically_equivalent_p
8792 (void remove_from_same_comdat_group (void)): created from
8793 remove_from_same_comdat_group
8794 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8795 symtab_add_to_same_comdat_group
8796 (void dissolve_same_comdat_group_list (void)): created from
8797 symtab_dissolve_same_comdat_group_list
8798 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8799 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8800 created from symtab_alias_ultimate_target
8801 (inline symtab_node *next_defined_symbol (void)): created from
8802 symtab_next_defined_symbol
8803 (bool resolve_alias (symtab_node *target)): created from
8804 symtab_resolve_alias
8805 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8806 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8807 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8808 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8809 (void set_section (const char *section)): created from set_section_1
8810 (enum availability get_availability (void)): created from symtab_node_availability
8811 (void make_decl_local (void)): created from symtab_make_decl_local
8812 (bool real_symbol_p (void)): created from symtab_read_node
8813 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8814 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8815 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8816 symtab_in_same_comdat_p;
8817 (bool address_taken_from_non_vtable_p (void)): created from
8818 address_taken_from_non_vtable_p
8819 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8820 (static void dump_table (FILE *)): created from dump_symtab
8821 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8822 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8823 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8824 symtab_used_from_object_file_p
8825 (void dump_base (FILE *)): created from dump_symtab_base
8826 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8827 (void unregister (void)): created from symtab_unregister_node
8828 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8829 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8830 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8831 symtab_nonoverwritable_alias_1
8832 * cgraph.h (cgraph_node):
8833 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8834 created from cgraph_remove_node_and_inline_clones
8835 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8836 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8837 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8838 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8839 created from cgraph_function_node
8840 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8841 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8842 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8843 created from cgraph_create_clone
8844 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8845 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8846 created from cgraph_create_virtual_clone
8847 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8848 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8849 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8850 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8851 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8852 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8853 created from cgraph_function_version_info
8854 (struct cgraph_function_version_info *insert_new_function_version (void)):
8855 created from insert_new_cgraph_node_version
8856 (struct cgraph_function_version_info *function_version (void)): created from
8857 get_cgraph_node_version
8858 (void analyze (void)): created from analyze_function
8859 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8860 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8861 tree real_alias) cgraph_add_thunk
8862 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8863 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8864 created from cgraph_function_or_thunk_node
8865 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8866 created from expand_thunk
8867 (void reset (void)): created from cgraph_reset_node
8868 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8869 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8870 (void remove (void)): created from cgraph_remove_node
8871 (void dump (FILE *f)): created from dump_cgraph_node
8872 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8873 (bool get_body (void)): created from cgraph_get_body
8874 (void release_body (void)): created from cgraph_release_function_body
8875 (void unnest (void)): created from cgraph_unnest_node
8876 (void make_local (void)): created from cgraph_make_node_local
8877 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8878 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8879 gcov_type count, int freq)): created from cgraph_create_edge
8880 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8881 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8882 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8883 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8884 created from cgraph_create_edge_including_clones
8885 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8886 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8887 (void remove_callers (void)): created from cgraph_node_remove_callers
8888 (void remove_callees (void)): created from cgraph_node_remove_callees
8889 (enum availability get_availability (void)): created from cgraph_function_body_availability
8890 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8891 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8892 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8893 (void call_duplication_hooks (cgraph_node *node2)): created from
8894 cgraph_call_node_duplication_hooks
8895 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8896 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8897 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8898 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8899 (void call_function_insertion_hooks (void)):
8900 created from cgraph_call_function_insertion_hooks
8901 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8902 (bool local_p (void)): created from cgraph_local_node
8903 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8904 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8905 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8906 (inline bool only_called_directly_or_aliased_p (void)):
8907 created from cgraph_only_called_directly_or_aliased_p
8908 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8909 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8910 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8911 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8912 (bool can_remove_if_no_direct_calls_p (void)):
8913 created from cgraph_can_remove_if_no_direct_calls_p
8914 (inline bool has_gimple_body_p (void)):
8915 created from cgraph_function_with_gimple_body_p
8916 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8917 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8918 (static inline void debug_cgraph (void)): created from debug_cgraph
8919 (static void record_function_versions (tree decl1, tree decl2)):
8920 created from record_function_versions
8921 (static void delete_function_version (tree decl)):
8922 created from delete_function_version
8923 (static void add_new_function (tree fndecl, bool lowered)):
8924 created from cgraph_add_new_function
8925 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8926 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8927 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8928 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8929 (static cgraph_node *get_for_asmname (tree asmname)):
8930 created from cgraph_node_for_asm
8931 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8932 created from cgraph_same_body_alias
8933 (static bool used_from_object_file_p_worker (cgraph_node *node,
8934 void *): new function
8935 (static bool non_local_p (cgraph_node *node, void *)):
8936 created from cgraph_non_local_node_p_1
8937 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8938 created from verify_cgraph
8939 (static bool make_local (cgraph_node *node, void *)):
8940 created from cgraph_make_node_local
8941 (static cgraph_node *create_alias (tree alias, tree target)):
8942 created from cgraph_create_function_alias
8943 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8944 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8945 created from cgraph_create_edge_1
8946 * cgraph.h (varpool_node):
8947 (void remove (void)): created from varpool_remove_node
8948 (void dump (FILE *f)): created from dump_varpool_node
8950 2014-07-24 Richard Biener <rguenther@suse.de>
8953 * tree-ssa-structalias.c (create_variable_info_for_1):
8954 Use varpool_get_constructor.
8955 (create_variable_info_for): Likewise.
8957 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8959 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8960 subtract outgoing area size when restoring stack_pointer_rtx.
8962 2014-07-24 Nick Clifton <nickc@redhat.com>
8964 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8965 that operations are taking place in parallel.
8966 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8968 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8970 * omp-low.c (extract_omp_for_data): Add missing break statement.
8972 2014-07-24 Richard Biener <rguenther@suse.de>
8974 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8975 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8976 and adjust MOVE_RATIO query accordingly.
8977 (estimate_num_insns): Adjust callers.
8978 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8979 * ipa-cp.c (gather_context_independent_values,
8980 estimate_local_effects): Likewise.
8981 * ipa-split.c (consider_split): Likewise.
8983 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8985 * config/i386/driver-i386.c: Remove names of unused arguments and
8986 unnecessary unused attributes.
8987 * config/i386/host-mingw32.c: Likewise.
8988 * config/i386/i386.c: Likewise.
8989 * config/i386/winnt-stubs.c: Likewise.
8990 * config/i386/winnt.c: Likewise.
8992 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8994 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8995 (aarch64_gen_loadwb_pair): New helper function.
8996 (aarch64_expand_epilogue): Simplify code using new helper functions.
8997 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8999 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9001 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9002 (aarch64_gen_storewb_pair): New helper function.
9003 (aarch64_expand_prologue): Simplify code using new helper functions.
9004 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9006 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9008 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9009 Rename to aarch64_save_callee_saves, remove restore code.
9010 (aarch64_restore_callee_saves): New function.
9012 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9014 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9015 (aarch64_save_callee_saves): New function to handle reg save
9016 for both core and vectore regs.
9018 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9020 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9021 (aarch64_gen_store_pair): New helper function.
9022 (aarch64_save_or_restore_callee_save_registers)
9023 (aarch64_save_or_restore_fprs): Use new helper functions.
9025 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9027 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9028 (aarch64_save_or_restore_callee_save_registers)
9029 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9031 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9033 * config/aarch64/aarch64.c
9034 (aarch64_save_or_restore_callee_save_registers)
9035 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9037 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9039 * config/aarch64/aarch64.c
9040 (aarch64_save_or_restore_callee_save_registers)
9041 (aarch64_save_or_restore_fprs): Remove 'increment'.
9043 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9045 * config/aarch64/aarch64.c
9046 (aarch64_save_or_restore_callee_save_registers)
9047 (aarch64_save_or_restore_fprs): Use register offset in
9048 cfun->machine->frame.reg_offset.
9050 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9052 * config/aarch64/aarch64.c
9053 (aarch64_save_or_restore_callee_save_registers)
9054 (aarch64_save_or_restore_fprs): Remove base_rtx.
9056 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9058 * config/aarch64/aarch64.c
9059 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9060 to 'start_offset'. Remove local variable 'start_offset'.
9062 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9064 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9065 type to HOST_WIDE_INT.
9067 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9069 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9070 (aarch64_save_or_restore_fprs)
9071 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9073 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9075 * config/arm/t-rtems-eabi: Add
9076 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9077 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9078 mbig-endian/mthumb/march=armv7-r, and
9079 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9082 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9083 Chris Johns <chrisj@rtems.org>
9084 Joel Sherrill <joel.sherrill@oarcorp.com>
9086 * config.gcc: Add nios2-*-rtems*.
9087 * config/nios2/rtems.h: New file.
9088 * gcc/config/nios2/t-rtems: New file.
9090 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9093 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9094 constant numbers, not general constants.
9095 (rs6000_expand_vector_init): Ditto.
9097 2014-07-23 Nathan Sidwell <nathan@acm.org>
9099 * gcov-tool.c (gcov_list): Declare here.
9100 (set_gcov_list): Remove.
9101 (gcov_output_files): Set gcov_list directly.
9103 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9105 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9107 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9109 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9110 callee-saved registers are available for padding purpose
9111 and r3 is not mandatory, then prefer use those callee-saved
9114 2014-07-23 Richard Biener <rguenther@suse.de>
9116 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9117 * combine.c: Include statistics.h and params.h.
9118 (combine_instructions): Guard three and four insn combines
9119 with max-combine-insns value. Record statistics for combines
9121 * doc/invoke.texi (max-combine-insns): Document new param.
9123 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9125 * graphite-isl-ast-to-gimple.c:
9126 (translate_isl_ast_node_block): New function.
9127 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9129 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9130 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9132 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9134 * graphite-isl-ast-to-gimple.c:
9135 (get_max_schedule_dimensions): New function.
9136 (extend_schedule): Likewise.
9137 (generate_isl_schedule): Add calling of extend_schedule and
9138 get_max_schedule_dimensions.
9140 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9142 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9143 (case UNSPEC): Handle UNSPEC_RBIT.
9145 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9147 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9148 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9150 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9152 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9154 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9156 * graphite-isl-ast-to-gimple.c:
9157 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9159 (build_iv_mapping): New function.
9160 (translate_isl_ast_node_user): Likewise.
9161 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9163 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9164 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9165 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9167 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9170 * config/arm/arm.md (setmem): New pattern.
9171 * config/arm/arm-protos.h (struct tune_params): New fields.
9172 (arm_gen_setmem): New prototype.
9173 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9174 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9175 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9176 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9177 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9178 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9179 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9180 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9181 (arm_const_inline_cost): New function.
9182 (arm_block_set_max_insns): New function.
9183 (arm_block_set_non_vect_profit_p): New function.
9184 (arm_block_set_vect_profit_p): New function.
9185 (arm_block_set_unaligned_vect): New function.
9186 (arm_block_set_aligned_vect): New function.
9187 (arm_block_set_unaligned_non_vect): New function.
9188 (arm_block_set_aligned_non_vect): New function.
9189 (arm_block_set_vect, arm_gen_setmem): New functions.
9191 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9193 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9195 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9198 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9199 out of #ifdef __OPTIMIZE__.
9201 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9203 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9204 different trapping status if -fnon-call-exceptions is enabled.
9206 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9208 * expr.c (store_field): Handle VOIDmode for calls that return values
9209 in multiple locations.
9211 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9213 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9214 (altivec_vsldoi_<mode>): Likewise.
9216 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9218 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9219 to the number of characters in the line.
9221 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9223 * graphite-isl-ast-to-gimple.c: Add using of
9224 build_nonstandard_integer_type instead of int128_integer_type_node.
9226 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9228 * toplev.c (output_stack_usage): Adjust the location of the warning.
9230 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9232 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9233 (*membar_storeload): Disable for LEON3.
9235 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9237 PR rtl-optimization/61461
9238 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9240 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9243 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9244 Fix instruction constraint.
9245 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9247 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9249 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9251 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9253 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9254 GNU coding standards.
9255 (nds32_register_move_cost): Likewise.
9256 (nds32_memory_move_cost): Likewise.
9257 (nds32_address_cost): Likewise.
9259 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9261 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9263 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9265 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9266 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9267 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9268 (HAVE_sync_compare_and_swapqi): Define.
9269 (HAVE_sync_compare_and_swaphi): Likewise.
9270 (HAVE_sync_compare_and_swapsi): Likewise.
9272 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9274 * config/mips/p5600.md: Add missing cpu tests.
9276 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9278 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9279 (vmla_f64): Likewise.
9280 (vfms_f64): Likewise.
9281 (vmls_f64): Likewise.
9283 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9285 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9286 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9288 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9290 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9291 (vmlal_high_lane_s32): Likewise.
9292 (vmlal_high_lane_u16): Likewise.
9293 (vmlal_high_lane_u32): Likewise.
9294 (vmlsl_high_lane_s16): Likewise.
9295 (vmlsl_high_lane_s32): Likewise.
9296 (vmlsl_high_lane_u16): Likewise.
9297 (vmlsl_high_lane_u32): Likewise.
9299 2014-07-17 Terry Guo <terry.guo@arm.com>
9301 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9302 (alus_reg): Renamed to alus_sreg.
9303 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9304 from alu_reg to alu_sreg. Change type of dsp instructions from
9305 alu_reg to alu_dsp_reg.
9306 * config/arm/thumb1.md: Likewise.
9307 * config/arm/thumb2.md: Likewise.
9308 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9309 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9310 with alu_sreg and alus_sreg.
9311 * config/arm/arm1026ejs.md (alu_op): Likewise.
9312 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9313 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9314 * config/arm/fa526.md (526_alu_op): Likewise.
9315 * config/arm/fa606te.md (606te_alu_op): Likewise.
9316 * config/arm/fa626te.md (626te_alu_op): Likewise.
9317 * config/arm/fa726te.md (726te_alu_op): Likewise.
9318 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9319 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9320 alu_sreg, alu_dsp_reg and alus_sreg.
9321 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9322 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9323 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9324 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9325 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9326 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9327 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9328 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9329 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9330 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9331 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9332 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9333 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9334 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9335 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9336 alus_reg to alus_sreg.
9338 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9340 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9343 2014-07-17 Richard Biener <rguenther@suse.de>
9345 PR rtl-optimization/61801
9346 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9347 don't set reg_pending_barrier if it appears in a debug-insn.
9349 2014-07-16 DJ Delorie <dj@redhat.com>
9351 * config/rx/rx.c (rx_option_override): Fix alignment values.
9352 (rx_align_for_label): Likewise.
9354 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9357 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9358 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9359 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9361 (cris_print_index, cris_print_operand, cris_constant_index_p)
9362 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9363 (cris_address_cost): Ditto last CONSTANT_P.
9364 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9365 callers changed. Yield cris_offsettable_symbol for non-PIC
9366 constant symbolic expressions including labels. Yield cris_unspec
9368 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9369 target to pic_offset_table_rtx for calls that will likely go
9370 through PLT, const0_rtx when they can't. All callers changed.
9371 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9372 symbolic expressions to be PICified. Remove second, redundant,
9373 assert on can_create_pseudo_p returning non-zero. Use
9374 replace_equiv_address_nv, not replace_equiv_address, for final
9376 * config/cris/cris.md ("movsi"): Move variable t to pattern
9377 toplevel. Adjust assert for new cris_symbol_type member. Use
9378 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9379 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9381 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9382 ("call", "call_value"): Use second incoming operand as a marker
9383 for pic-offset-table-register being used.
9384 ("*expanded_call_non_v32", "*expanded_call_v32")
9385 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9386 second incoming operand to CALL, match cris_call_type_marker.
9387 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9388 ("*expanded_call_side"): Ditto. Fix typo in comment.
9389 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9391 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9392 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9393 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9394 users changed. Add members cris_offsettable_symbol and cris_unspec.
9395 (cris_symbol_type): Rename from cris_pic_symbol_type.
9396 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9398 * config/cris/cris-protos.h (cris_symbol_type_of,
9399 cris_expand_pic_call_address): Adjust prototypes.
9400 (cris_legitimate_constant_p): New prototype.
9402 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9403 an existing tmake_file. Don't add t-slibgcc and t-linux.
9405 2014-07-17 Jason Merrill <jason@redhat.com>
9408 * symtab.c (symtab_remove_from_same_comdat_group): Also
9409 set_comdat_group to NULL_TREE.
9410 (verify_symtab): Fix diagnostic.
9412 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9415 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9417 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9419 Support location tracking for built-in macro tokens
9420 * input.h (is_location_from_builtin_token): New function declaration.
9421 * input.c (is_location_from_builtin_token): New function definition.
9422 * toplev.c (general_init): Tell libcpp what the pre-defined
9423 spelling location for built-in tokens is.
9425 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9427 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9428 on the FUNCTION_DECL.
9430 2014-07-16 Richard Biener <rguenther@suse.de>
9433 * doc/extend.texi (always_inline): Clarify.
9435 2014-07-15 Eric Christopher <echristo@gmail.com>
9437 * doc/invoke.texi (Link Options): Document -z option.
9439 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9441 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9442 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9444 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9446 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9448 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9450 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9451 varpool_assemble_decl.
9452 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9455 2014-07-15 Michael Matz <matz@suse.de>
9457 PR rtl-optimization/61772
9458 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9460 2014-07-15 Richard Biener <rguenther@suse.de>
9462 * opts.c (default_options_table): Disable bit-ccp at -Og.
9464 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9466 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9468 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9470 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9471 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9472 call langhook for unknown declaration.
9473 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9474 * tree.h (DECL_ARGUMENTS): Update.
9475 * print-tree.c (print_node): Update.
9476 * tree-core.h (tree_decl_non_common): Remove arguments.
9477 (tree_function_decl): Add arguments.
9479 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9481 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9483 2014-07-14 Richard Biener <rguenther@suse.de>
9485 PR tree-optimization/61779
9486 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9487 simplifying a condition.
9489 2014-07-14 Richard Biener <rguenther@suse.de>
9491 * builtins.c (c_strlen): Make only_value == 2 really only
9492 affect warning generation.
9494 2014-07-14 Richard Biener <rguenther@suse.de>
9496 PR tree-optimization/61757
9497 PR tree-optimization/61783
9498 PR tree-optimization/61787
9499 * tree-ssa-dom.c (record_equality): Revert canonicalization
9500 change and add comment.
9501 (propagate_rhs_into_lhs): Revert previous fix, removing
9502 loop depth restriction again.
9504 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9506 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9507 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9508 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9509 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9510 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9511 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9512 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9514 2014-07-14 Richard Biener <rguenther@suse.de>
9516 * cgraph.h (decl_in_symtab_p): Make inline.
9518 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9521 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9524 * config/i386/i386.c (classify_argument): Don't merge classes above
9527 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9529 * cgraph.h (symtab_node): Add nonzero_address.
9530 (decl_in_symtab_p): Break out from ...
9531 (symtab_get_node): ... here.
9532 * fold-const.c: Include cgraph.h
9533 (tree_single_nonzero_warnv_p): Use symtab to determine
9534 if symbol is non-zero.
9535 * symtab.c (symtab_node::nonzero_address): New method.
9537 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9539 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9540 forgotten in previous commit.
9542 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9544 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9546 * ipa-devirt.c: Include stor-layout.h and intl.h
9547 (odr_subtypes_equivalent_p): New function.
9548 (warn_odr): New function.
9549 (warn_type_mismatch): New function.
9550 (odr_types_equivalent_p): New function.
9551 (add_type_duplicate): Use it.
9552 * common.opt (Wodr): New flag.
9553 * doc/invoke.texi (Wodr): Document new warning.
9555 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9557 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9558 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9559 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9560 (varpool_get_constructor): Push CTORS_IN timevar.
9561 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9563 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9565 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9566 Remove VOID_FTYPE_PUSHORT.
9567 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9568 Change code to USHORT_FTYPE_VOID.
9569 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9570 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9571 (ix86_atomic_assign_expand_fenv): Update for
9572 __builtin_ia32_fnstsw changes.
9573 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9574 (fnstsw): Change operand 0 to nonimmediate operand.
9576 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9578 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9579 (varpool_get_constructor): New function.
9580 (varpool_ctor_useable_for_folding_p): Break out from ...
9581 (ctor_for_folding): ... here; use varpool_get_constructor.
9582 (varpool_assemble_decl): Likewise.
9583 * lto-streamer.h (struct output_block): Turn cgraph_node
9585 (lto_input_variable_constructor): Declare.
9586 * ipa-visibility.c (function_and_variable_visibility): Use
9587 varpool_get_constructor.
9588 * cgraph.h (varpool_get_constructor): Declare.
9589 (varpool_ctor_useable_for_folding_p): New function.
9590 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9591 parameter; return error_mark_node for non-trivial constructors.
9592 (lto_write_tree_1, DFS_write_tree): Update use of
9593 get_symbol_initial_value.
9594 (output_function): Update initialization of symbol.
9595 (output_constructor): New function.
9596 (copy_function): Rename to ..
9597 (copy_function_or_variable): ... this one; handle vars too.
9598 (lto_output): Output variable sections.
9599 * lto-streamer-in.c (input_constructor): New function.
9600 (lto_read_body): Rename from ...
9601 (lto_read_body_or_constructor): ... this one; handle vars too.
9602 (lto_input_variable_constructor): New function.
9603 * ipa-prop.c (ipa_prop_write_jump_functions,
9604 ipa_prop_write_all_agg_replacement): Update.
9605 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9606 (output_cgraph_opt_summary): Set symbol to NULL.
9608 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9610 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9611 non-polymorphic types.
9612 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9613 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9614 of types is not polymorphic.
9616 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9618 * lra-constraints.c (remove_inheritance_pseudos): Process
9619 destination pseudo too.
9621 2014-07-11 Rong Xu <xur@google.com>
9623 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9626 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9628 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9629 * config/avr/avr-devices.c (AVR_MCU): Same.
9630 (avr_mcu_types): add text start value to end of device list.
9631 * config/avr/avr-mcus.def: Add text section start for all devices.
9632 (ata5782): Add new avr5 device.
9634 * config/avr/avr-tables.opt: Regenerate.
9635 * config/avr/avr.h: Add declaration for text section start handler.
9636 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9638 (LINK_SPEC): Include text section start handler to linker spec.
9639 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9640 pass -Ttext option to linker if the text section start for the device
9642 * config/avr/t-multilib: Regenerate.
9643 * doc/avr-mmcu.texi: Regenerate.
9645 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9647 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9648 * config/rs6000/aix52.h (LINK_SPEC): Same.
9649 * config/rs6000/aix53.h (LINK_SPEC): Same.
9650 * config/rs6000/aix61.h (LINK_SPEC): Same.
9651 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9653 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9655 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9656 (graphite_verify): New function.
9657 (ivs_params_clear): New function.
9658 (gcc_expression_from_isl_ast_expr_id): New function.
9659 (gcc_expression_from_isl_expr_int): New function.
9660 (binary_op_to_tree): New function.
9661 (ternary_op_to_tree): New function.
9662 (unary_op_to_tree): New function.
9663 (nary_op_to_tree): New function.
9664 (gcc_expression_from_isl_expr_op): New function.
9665 (gcc_expression_from_isl_expression): New function.
9666 (graphite_create_new_loop): New function.
9667 (translate_isl_ast_for_loop): New function.
9668 (get_upper_bound): New function.
9669 (graphite_create_new_loop_guard): New function.
9670 (translate_isl_ast_node_for): New function.
9671 (translate_isl_ast): New function.
9672 (add_parameters_to_ivs_params): New function.
9673 (scop_to_isl_ast): New parameter ip.
9674 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9676 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9678 * config/xtensa/predicates.md (call expander): Update for
9679 DECL_SECTION_NAME being string.
9681 2014-07-11 Richard Biener <rguenther@suse.de>
9684 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9685 can be implemented with a single load followed by a single store.
9686 (c_strlen): Only warn when only_value is not 2.
9688 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9690 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9692 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9695 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9696 (*movhi_bytes): Likewise.
9697 (*arm_movqi_insn): Likewise.
9699 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9702 * config/alpha/alpha.c: Include tree-pass.h, context.h
9704 (pass_data_handle_trap_shadows): New pass.
9705 (pass_handle_trap_shadows::gate): New pass gate function.
9706 (make_pass_handle_trap_shadows): New function.
9707 (rest_of_handle_trap_shadows): Ditto.
9709 (alpha_align_insns_1): Rename from alpha_align_insns.
9710 (pass_data_align_insns): New pass.
9711 (pass_align_insns::gate): New pass gate function.
9712 (make_pass_aling_insns): New function.
9713 (rest_of_align_insns): Ditto.
9714 (alpha_align_insns): Ditto.
9716 (alpha_option_override): Declare handle_trap_shadows info
9717 and align_insns_info. Register handle_trap_shadows and align_insns
9719 (alpha_reorg): Do not call alpha_trap_shadows and
9720 alpha_align_insn from here.
9722 (alpha_pad_function_end): Do not skip BARRIERs.
9724 2014-07-10 Rong Xu <xur@google.com>
9726 Add gcov-tool: an offline gcda profile processing tool support.
9727 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9728 (gcov_is_error): Ditto.
9729 (gcov_read_string): Ditto.
9730 (gcov_read_sync): Ditto.
9731 * gcov-io.h: Move counter defines to gcov-counter.def.
9732 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9733 * coverage.c: Ditto.
9734 * gcov-tool.c: Offline gcda profile processing tool.
9735 (unlink_gcda_file): Remove one gcda file.
9736 (unlink_profile_dir): Remove gcda files from the profile path.
9737 (gcov_output_files): Output gcda files to an output dir.
9738 (profile_merge): Merge two profiles in directory.
9739 (print_merge_usage_message): Print merge usage.
9740 (merge_usage): Print merge usage and exit.
9741 (do_merge): Driver for profile merge sub-command.
9742 (profile_rewrite): Rewrite profile.
9743 (print_rewrite_usage_message): Print rewrite usage.
9744 (rewrite_usage): Print rewrite usage and exit.
9745 (do_rewrite): Driver for profile rewrite sub-command.
9746 (print_usage): Print gcov-info usage and exit.
9747 (print_version): Print gcov-info version.
9748 (process_args): Process arguments.
9749 (main): Main routine for gcov-tool.
9750 * Makefile.in: Build and install gcov-tool.
9751 * gcov-counter.def: New file split from gcov-io.h.
9752 * doc/gcc.texi: Include gcov-tool.texi.
9753 * doc/gcov-tool.texi: Document for gcov-tool.
9755 2014-07-10 Richard Biener <rguenther@suse.de>
9757 PR tree-optimization/61757
9758 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9759 (propagate_rhs_into_lhs): Revert part of last change.
9761 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9763 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9766 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9769 * function.c (allocate_struct_function): Revert r188667 change.
9771 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9773 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9775 * doc/install.texi: Remove links to defunct package providers for
9778 2014-07-09 Tom de Vries <tom@codesourcery.com>
9780 * final.c (get_call_fndecl): Declare.
9781 (self_recursive_call_p): New function.
9782 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9784 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9786 * ipa-devirt.c (record_node): Walk through aliases.
9788 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9790 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9792 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9795 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9797 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9799 * ipa-visibility.c (function_and_variable_visibility): Remove
9800 temporary hack disabling local aliases on AIX.
9802 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9804 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9805 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9807 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9809 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9810 * rs6000/rs6000.c: Inline output of .set instruction.
9811 (declare_alias_data): New struct.
9812 (rs6000_declare_alias): New function.
9813 (rs6000_xcoff_declare_function_name): Use it.
9814 (rs6000_xcoff_declare_object_name): New function.
9815 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9816 (ASM_OUTPUT_DEF): Turn to empty definition.
9818 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9821 * hash-table.h: use hash_table::value_type instead of
9822 Descriptor::value_type in the return types of several methods.
9824 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9826 * tree-pass.h (pass_data): Remove has_execute member.
9827 * passes.c (execute_one_pass): Don't check pass->has_execute.
9828 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9829 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9830 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9831 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9832 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9833 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9834 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9835 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9836 gimple-low.c, gimple-ssa-isolate-paths.c,
9837 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9838 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9839 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9840 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9841 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9842 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9843 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9844 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9845 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9846 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9847 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9848 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9849 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9850 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9851 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9852 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9853 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9854 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9855 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9856 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9857 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9858 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9859 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9860 web.c: Remove initializer for pass_data::has_execute.
9862 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9864 * graphite-htab.h: Use hash_map instead of hash_table.
9865 * graphite-clast-to-gimple.c: Adjust.
9866 * passes.c: Use hash_map instead of hash_table.
9868 * sese.h: Remove now unused code.
9870 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9873 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9876 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9878 PR rtl-optimization/61673
9879 * combine.c (simplify_comparison): Test just mode's sign bit
9880 in tmode rather than the sign bit and any bits above it.
9882 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9884 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9885 Add __isl_give to the declaration.
9886 (generate_isl_schedule): Likewise.
9887 (scop_to_isl_ast): Likewise.
9889 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9891 * config/arm/arm.c (cortexa5_extra_costs): New table.
9892 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9894 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9896 PR tree-optimization/61725
9897 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9898 range, use range_includes_zerop_p instead of integer_zerop on
9899 vr0->min, only use log2 of max if min is not negative.
9901 2014-07-08 Richard Biener <rguenther@suse.de>
9903 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9904 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9905 restriction on loop depth difference.
9906 (record_equality): Likewise.
9907 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9908 (loop_depth_of_name): Remove.
9909 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9910 restriction on loop depth difference.
9911 (init_copy_prop): Likewise.
9913 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9915 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9917 (walk_aliased_vdefs): Likewise.
9918 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9919 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9920 (detect_type_change_from_memory_writes): Check if entry was reached.
9922 2014-07-08 Richard Biener <rguenther@suse.de>
9924 PR tree-optimization/61681
9925 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9926 NONLOCAL inside ESCAPED.
9928 2014-07-08 Richard Biener <rguenther@suse.de>
9930 PR tree-optimization/61680
9931 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9932 Handle properly all read-write dependences with group accesses.
9934 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9936 PR tree-optimization/61576
9937 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9938 block containing reduction statement is predecessor of phi basi block.
9940 2014-07-08 Marek Polacek <polacek@redhat.com>
9943 * fold-const.c (round_up_loc): Change the parameter type.
9945 * fold-const.h (round_up_loc): Adjust declaration.
9946 * stor-layout.c (finalize_record_size): Check for too large types.
9948 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9950 * symtab.c: Include calls.h.
9951 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9953 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9955 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9956 little-endian code generation.
9957 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9958 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9959 (spe_evmergehilo): Rename to...
9960 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9961 (spe_evmergelo): Rename to...
9962 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9963 (spe_evmergelohi): Rename to...
9964 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9965 (spe_evmergehi, spe_evmergehilo): New expanders.
9966 (spe_evmergelo, spe_evmergelohi): Likewise.
9967 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9968 (*frob_tf_ti): Likewise.
9969 (*frob_<mode>_di_2): Likewise.
9970 (*frob_tf_di_8_2): Likewise.
9971 (*frob_di_<mode>): Likewise.
9972 (*frob_ti_tf): Likewise.
9973 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9974 (*frob_ti_<mode>_8_2): Likewise.
9975 (*frob_ti_tf_2): Likewise.
9976 (mov_si<mode>_e500_subreg0): Rename to...
9977 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9979 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9980 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9981 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9982 the big endianness only.
9983 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9984 (*mov_si<mode>_e500_subreg0_2): Rename to...
9985 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9986 big big endianness only.
9987 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9988 (*mov_si<mode>_e500_subreg4): Rename to...
9989 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9991 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9992 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9993 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9994 the big endianness only.
9995 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9997 (*mov_si<mode>_e500_subreg4_2): Rename to...
9998 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10000 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10001 (*mov_sitf_e500_subreg8): Rename to...
10002 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10004 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10005 (*mov_sitf_e500_subreg8_2): Rename to...
10006 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10008 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10009 (*mov_sitf_e500_subreg12): Rename to...
10010 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10012 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10013 (*mov_sitf_e500_subreg12_2): Rename to...
10014 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10016 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10018 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10020 * asan.c (instrument_strlen_call): Do not instrument first byte
10021 in strlen if already instrumented.
10023 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10025 * config/arm/arm.opt (mwords-little-endian): Delete.
10026 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10027 of TARGET_LITTLE_WORDS.
10028 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10029 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10031 * doc/invoke.texi: Remove references to -mwords-little-endian.
10033 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10035 * expmed.c (struct init_expmed_rtl): Change all fields but
10036 pow2 and cint from struct rtx_def to rtx.
10037 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10038 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10041 2014-07-06 Marek Polacek <polacek@redhat.com>
10044 * doc/invoke.texi: Document -Wsizeof-array-argument.
10046 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10048 * wide-int.h (wide_int_storage): Change declaration from struct
10051 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10053 * cgraph.c (cgraph_create_indirect_edge): Update call of
10054 get_polymorphic_call_info.
10055 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10056 (possible_polymorphic_call_targets): Add parameter call.
10057 (decl_maybe_in_construction_p): New predicate.
10058 (get_polymorphic_call_info): Add parameter call;
10059 use decl_maybe_in_construction_p.
10060 * gimple-fold.c (fold_gimple_assign): Update use of
10061 possible_polymorphic_call_targets.
10062 (gimple_fold_call): Likewise.
10063 * ipa-prop.c: Inlcude calls.h
10064 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10065 (param_type_may_change_p): New predicate.
10066 (detect_type_change_from_memory_writes): Break out from ...
10067 (detect_type_change): ... this one; use param_type_may_change_p.
10068 (detect_type_change_ssa): Use param_type_may_change_p.
10069 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10071 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10074 * config/arm/arm-protos.h (arm_legitimate_address_p,
10075 arm_is_constant_pool_ref): Add prototypes.
10076 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10077 (arm_is_constant_pool_ref) New function.
10078 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10079 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10080 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10081 operand. Remove pool_range and neg_pool_range attributes.
10082 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10083 pool_range and neg_pool_range attributes.
10084 * config/arm/constraints.md (Uh): New constraint.
10085 (Uq): Don't allow constant pool references.
10087 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10089 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10090 (move_lo_quad_internal_be_<mode>): Likewise.
10091 (move_lo_quad_<mode>): Convert to define_expand.
10092 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10093 (aarch64_simd_move_hi_quad_be_<mode>): New.
10094 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10095 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10096 (aarch64_combinez_be<mode>): New.
10097 (aarch64_combine<mode>): Convert to define_expand.
10098 (aarch64_combine_internal<mode>): New.
10099 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10101 2014-07-04 Tom de Vries <tom@codesourcery.com>
10103 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10104 combination of earlyclobber and read/write modifiers.
10106 2014-07-04 Tom de Vries <tom@codesourcery.com>
10108 * config/aarch64/aarch64-simd.md
10109 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10111 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10114 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10116 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10118 PR middle-end/61654
10119 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10121 PR tree-optimization/61684
10122 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10123 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10125 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10126 Kito Cheng <kito@0xlab.org>
10127 Monk Chiang <sh.chiang04@gmail.com>
10129 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10130 (nds32_symbol_load_store_p): Move to ...
10131 (nds32_fp_as_gp_check_available): Move to ...
10132 * config/nds32/nds32-fp-as-gp.c: ... here.
10133 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10134 extern declaration.
10136 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10137 Kito Cheng <kito@0xlab.org>
10138 Monk Chiang <sh.chiang04@gmail.com>
10140 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10141 (nds32_expand_store_multiple): Move to ...
10142 (nds32_expand_movmemqi): Move to ...
10143 * config/nds32/nds32-memory-manipulation.c: ... here.
10145 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10146 Kito Cheng <kito@0xlab.org>
10147 Monk Chiang <sh.chiang04@gmail.com>
10149 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10150 (nds32_output_casesi_pc_relative): Move to ...
10151 (nds32_output_casesi): Move to ...
10152 (nds32_mem_format): Move to ...
10153 (nds32_output_16bit_store): Move to ...
10154 (nds32_output_16bit_load): Move to ...
10155 (nds32_output_32bit_store): Move to ...
10156 (nds32_output_32bit_load): Move to ...
10157 (nds32_output_32bit_load_s): Move to ...
10158 (nds32_output_stack_push): Move to ...
10159 (nds32_output_stack_pop): Move to ...
10160 * config/nds32/nds32-md-auxiliary.c: ... here.
10162 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10163 Ling-Hua Tseng <uranus@tinlans.org>
10165 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10166 the purpose of this file.
10168 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10169 Kito Cheng <kito@0xlab.org>
10170 Monk Chiang <sh.chiang04@gmail.com>
10172 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10173 (nds32_address_cost): Move implementation to ...
10174 * config/nds32/nds32-cost.c: ... here.
10175 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10176 (nds32_address_cost_impl): Declare.
10178 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10179 Kito Cheng <kito@0xlab.org>
10180 Monk Chiang <sh.chiang04@gmail.com>
10182 * config/nds32/nds32.c
10183 (nds32_consecutive_registers_load_store_p): Move to ...
10184 (nds32_valid_multiple_load_store): Move to ...
10185 (nds32_valid_stack_push_pop): Move to ...
10186 (nds32_can_use_bclr_p): Move to ...
10187 (nds32_can_use_bset_p): Move to ...
10188 (nds32_can_use_btgl_p): Move to ...
10189 (nds32_can_use_bitci_p): Move to ...
10190 * config/nds32/nds32-predicates.c: ... here.
10192 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10193 Kito Cheng <kito@0xlab.org>
10194 Monk Chiang <sh.chiang04@gmail.com>
10196 * config/nds32/nds32.c
10197 (nds32_expand_builtin_null_ftype_reg): Move to ...
10198 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10199 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10200 (nds32_init_builtins): Move implementation to ...
10201 (nds32_expand_builtin): Move implementation to ...
10202 * config/nds32/nds32-intrinsic.c: ... here.
10203 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10204 (nds32_expand_builtin_impl): Declare.
10206 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10207 Kito Cheng <kito@0xlab.org>
10208 Monk Chiang <sh.chiang04@gmail.com>
10210 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10211 (nds32_emit_section_tail_template): Move to ...
10212 (nds32_emit_isr_jmptbl_section): Move to ...
10213 (nds32_emit_isr_vector_section): Move to ...
10214 (nds32_emit_isr_reset_conten): Move to ...
10215 (nds32_check_isr_attrs_conflict): Move to ...
10216 (nds32_construct_isr_vectors_information): Move to ...
10217 (nds32_asm_file_start): Move implementation to ...
10218 (nds32_asm_file_end): Move implementation to ...
10219 * config/nds32/nds32-isr.c: ... here.
10220 * config/nds32/nds32-protos.h
10221 (nds32_check_isr_attrs_conflict): Declare.
10222 (nds32_construct_isr_vectors_information): Declare.
10223 (nds32_asm_file_start_for_isr): Declare.
10224 (nds32_asm_file_end_for_isr): Declare.
10226 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10227 Kito Cheng <kito@0xlab.org>
10228 Monk Chiang <sh.chiang04@gmail.com>
10230 * config.gcc (nds32*): Add new modules to extra_objs.
10231 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10232 (nds32be-*-*): Likewise.
10233 * config/nds32/nds32-cost.c: New file.
10234 * config/nds32/nds32-fp-as-gp.c: New file.
10235 * config/nds32/nds32-intrinsic.c: New file.
10236 * config/nds32/nds32-isr.c: New file.
10237 * config/nds32/nds32-md-auxiliary.c: New file.
10238 * config/nds32/nds32-memory-manipulation.c: New file.
10239 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10240 * config/nds32/nds32-predicates.c: New file.
10241 * config/nds32/t-nds32: New file.
10243 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10245 PR tree-optimization/61682
10246 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10247 using cases and when one of the operands is equal to 1.
10249 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10251 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10252 ashr<mode>3): Correct mode of operands[2].
10253 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10254 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10255 Correct mode of operands[2]. Fix split condition.
10257 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10259 * arm.md (arch): Add armv6_or_vfpv3.
10260 (arch_enabled): Add test for the above.
10261 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10263 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10265 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10267 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10268 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10269 HWI 1 and negate the unsigned value.
10270 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10271 use AND instead of shift.
10272 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10274 2014-07-03 Marek Polacek <polacek@redhat.com>
10276 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10277 (-fsanitize=float-divide-by-zero): Move to the table with
10278 -fsanitize=undefined suboptions.
10279 (-fsanitize=float-cast-overflow): Likewise.
10281 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10283 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10284 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10287 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10289 * loop-invariant.c (struct invariant): Add a new member: eqno;
10290 (find_identical_invariants): Update eqno;
10291 (create_new_invariant): Init eqno;
10292 (get_inv_cost): Compute comp_cost with eqno;
10294 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10296 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10297 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10298 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10299 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10300 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10302 2014-07-02 Christian Bruel <christian.bruel@st.com>
10306 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10307 (make_preds_opaque): Delete.
10308 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10309 (commit_mode_sets): New function.
10310 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10311 Process all modes at once.
10312 * basic-block.h (pre_edge_lcm_avs): Declare.
10313 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10314 Call clear_aux_for_edges. Fix comments.
10315 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10316 (pre_edge_rev_lcm): Idem.
10317 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10319 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10320 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10322 * config/i386/i386.c (x96_emit_mode_set): Idem.
10323 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10324 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10325 (fpscr_toggle) Disallow from delay slot.
10326 * target.def (emit_mode_set): Add prev_mode parameter.
10327 * doc/tm.texi: Regenerate.
10329 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10331 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10334 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10336 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10337 vtable_pointer_value_to_vtable): Constify.
10338 (contains_polymorphic_type_p): Declare.
10339 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10340 vtable_pointer_value_to_vtable): Constify.
10341 (contains_polymorphic_type_p): New predicate.
10342 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10344 (ipa_set_ancestor_jf): Likewise.
10345 (detect_type_change): Return false in easy cases.
10346 (compute_complex_assign_jump_func): Require type to contain
10348 (compute_known_type_jump_func): Likewise.
10350 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10352 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10354 (type_in_anonymous_namespace_p): Constify argument.
10355 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10356 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10357 (main_odr_variant): New function.
10358 (hash_type_name): Make static; update assert; do not ICE on
10360 (types_same_for_odr): Bring here from tree.c; simplify and remove
10361 old structural comparing code that doesn't work for templates.
10362 (odr_hasher::equal): Update assert.
10363 (add_type_duplicate): Return true when bases should be computed;
10364 replace incomplete loader by complete; do not output duplicated
10365 warnings; do not ICE on non-records; set odr_violated flag.
10366 (get_odr_type): Be ready to replace incomplete type by complete
10367 one; work on ODR variants instead of main variants; reorder item
10368 in array so bases have still smaller indexes.
10369 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10370 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10372 2014-07-01 Cary Coutant <ccoutant@google.com>
10374 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10376 (resolve_addr_in_expr): When replacing the rtx in a location list
10377 entry, get a new address table entry.
10378 (dwarf2out_finish): Call index_location_lists even if there are no
10379 addr_index_table entries yet.
10381 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10383 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10384 change for not being obvious.
10386 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10388 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10391 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10393 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10394 (vcagt_f64): Likewise.
10395 (vcale_f64): Likewise.
10396 (vcaled_f64): Likewise.
10397 (vcales_f32): Likewise.
10398 (vcalt_f64): Likewise.
10399 (vcaltd_f64): Likewise.
10400 (vcalts_f32): Likewise.
10402 2014-07-01 Marek Polacek <polacek@redhat.com>
10404 * doc/invoke.texi: Document -Wint-conversion.
10406 2014-07-01 Marek Polacek <polacek@redhat.com>
10409 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10411 2014-07-01 Martin Liska <mliska@suse.cz>
10413 IPA REF alias refactoring
10414 * cgraph.h (iterate_direct_aliases): New function.
10415 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10416 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10417 FOR_EACH_ALIAS added.
10418 (cgraph_for_node_and_aliases): Likewise.
10419 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10420 * ipa-inline.c (reset_edge_caches): Likewise.
10421 (update_caller_keys): Likewise.
10422 * trans-mem.c (ipa_tm_execute): Likewise.
10423 *varpool.c (varpool_analyze_node): Likewise.
10424 (varpool_for_node_and_aliases): Likewise.
10425 * ipa-ref.h (first_alias): New function.
10426 (last_alias): Likewise.
10427 (has_aliases_p): Likewise.
10428 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10429 is sensitive to IPA_REF_ALIASes.
10430 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10431 are put at the beginning of the list.
10432 (symtab_node::iterate_direct_aliases): New function.
10434 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10437 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10439 (write_ts_type_common_tree_pointers): Do not stream fields not set
10440 for incomplete types; do not stream duplicated fields for variants;
10441 sanity check that variant and type match.
10442 (write_ts_type_non_common_tree_pointers): Likewise.
10443 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10444 TYPE_SIZE whether type is complete.
10445 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10446 write_ts_type_common_tree_pointers
10447 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10449 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10451 * var-tracking.c (add_stores): Return instead of asserting if old
10452 and new values for conditional store are the same.
10454 2014-06-30 Richard Henderson <rth@redhat.com>
10458 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10459 the cfg if there were any changes.
10460 * passes.def: Revert move of peephole2 after reorder_blocks;
10461 move duplicate_computed_gotos before peephole2.
10463 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10465 * except.c (emit_note_eh_region_end): New helper function.
10466 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10467 emit EH_REGION_END note.
10468 * jump.c (cleanup_barriers): Do not split a call and its
10469 corresponding CALL_ARG_LOCATION note.
10471 2014-06-30 Jeff Law <law@redhat.com>
10473 PR tree-optimization/61607
10474 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10475 deeper into the SSA_NAME_VALUE chain.
10477 2014-06-30 Marek Polacek <polacek@redhat.com>
10479 * convert.c (convert_to_integer): Don't instrument conversions if the
10480 function has no_sanitize_undefined attribute.
10481 * ubsan.c: Don't run the ubsan pass if the function has
10482 no_sanitize_undefined attribute.
10484 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10486 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10487 -fsanitize=undefined suboptions.
10489 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10491 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10492 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10493 against bigendian and adjust indices.
10495 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10497 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10499 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10502 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10503 Add alternative; make early clobber. Adjust both split patterns
10504 to use operand 0 as the working register.
10506 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10508 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10509 as ira_object_id_map might be NULL, or 1.
10511 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10513 * loop-invariant.c (get_inv_cost): Handle register class.
10514 (gain_for_invariant): Check the register pressure of the inv
10515 and its overlapped register class, other than all.
10517 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10519 * doc/invoke.texi (Optimize Options): Fix descriptions of
10520 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10522 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10524 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10527 2014-06-29 Tobias Grosser <tobias@grosser.es>
10530 * graphite-isl-ast-to-gimple.c: Add missing guards.
10532 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10534 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10535 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10536 * flag-types.h: Add new enum fgraphite_generator.
10537 * graphite-isl-ast-to-gimple.c: New.
10538 * graphite-isl-ast-to-gimple.h: New.
10539 * graphite.c (graphite_transform_loops): Add choice of Graphite
10540 code generator, which depends on flag_graphite_code_gen.
10542 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10544 * graphite-dependences.c (subtract_commutative_associative_deps):
10545 Add NULL checking of the following variables: must_raw_no_source,
10546 may_raw_no_source, must_war_no_source, may_war_no_source,
10547 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10548 must_war, may_war, must_waw, may_waw.
10550 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10552 * graphite-clast-to-gimple.c: gloog is renamed to
10553 graphite_regenerate_ast_cloog. gloog_error is renamed to
10554 graphite_regenerate_error.
10555 * graphite-clast-to-gimple.h: The definition of the struct
10556 bb_pbb_def is moved to graphite-htab.h.
10557 Add inclusion of the hash-table.h.
10558 * graphite-htab.h: The declaration of the function gloog is moved
10559 to graphite-clast-to-gimple.h and renamed to
10560 graphite_regenerate_ast_cloog.
10561 * graphite.c (graphite_transform_loops): gloog is renamed
10562 to graphite_regenerate_ast_cloog.
10564 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10566 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10568 (write_ts_type_common_tree_pointers): Do not stream fields not set
10569 for incomplete types; do not stream duplicated fields for variants;
10570 sanity check that variant and type match.
10571 (write_ts_type_non_common_tree_pointers): Likewise.
10572 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10573 TYPE_SIZE whether type is complete.
10574 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10575 write_ts_type_common_tree_pointers
10576 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10578 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10580 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10582 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10584 * tree-inline.c (remap_type_1): Do not duplicate fields
10585 that are shared in between type and its main variant.
10587 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10589 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10591 (ipa_set_ancestor_jf) Likewise.
10592 (check_stmt_for_type_change): Check that we work on main variant.
10593 (detect_type_change): Look into main variant.
10594 (compute_known_type_jump_func): Check that main variant has BINFO.
10596 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10598 * ipa-devirt.c (set_type_binfo): New function.
10599 (add_type_duplicate): Use it.
10600 (get_odr_type): Sanity check that binfos points to main variants.
10601 (get_class_context): Be sure the context's outer_type is main variant.
10602 (contains_type_p): Walk main variant.
10603 (get_polymorphic_call_info_for_decl): Set outer_type to be
10605 (get_polymorphic_call_info): Likewise.
10606 (possible_polymorphic_call_targets): Sanity check that we operate
10609 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10611 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10613 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10615 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10616 accidental change due to wide-int branch merge.
10618 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10620 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10621 compressed debug support.
10622 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10623 * configure: Regenerate.
10624 * config.in: Regenerate.
10625 * common.opt (compressed_debug_sections): New enum.
10626 (gz, gz=): New options.
10627 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10628 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10629 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10630 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10631 LINK_COMPRESS_DEBUG_SPEC.
10632 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10633 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10634 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10635 (Debugging Options): Document -gz[=type].
10637 2014-06-27 Martin Jambor <mjambor@suse.cz>
10640 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10641 args_to_skip, use those from node instead. Copy args_to_skip and
10642 combined_args_to_skip from node to the new thunk.
10643 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10644 (cgraph_create_virtual_clone): Moved computation of
10645 combined_args_to_skip...
10646 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10648 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10650 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10651 redundant diagnostic machinary.
10653 2014-06-27 Richard Biener <rguenther@suse.de>
10655 * tree-ssa-math-opts.c (bswap_replace): Fix
10656 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10658 2014-06-27 Martin Liska <mliska@suse.cz>
10660 * gimple.h (gimple_location_safe): New function introduced.
10661 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10662 of gimple_location_safe replaces gimple_location.
10663 (gimple_fold_call): Likewise.
10664 * ipa-devirt.c (ipa_devirt): Likewise.
10665 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10666 * ipa.c (walk_polymorphic_call_targets): Likewise.
10667 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10669 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10671 PR tree-optimization/57233
10672 PR tree-optimization/61299
10673 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10675 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10676 would be lowered to scalar shifts, check if corresponding
10677 shifts and vector BIT_IOR_EXPR are supported and don't lower
10678 or lower just to narrower vector type in that case.
10679 * expmed.c (expand_shift_1): Fix up handling of vector
10680 shifts and rotates.
10682 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10685 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10687 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10689 * doc/invoke.texi (-fsemantic-interposition): Document.
10690 * common.opt (fsemantic-interposition): New flag.
10691 * varasm.c (decl_replaceable_p): Use it.
10693 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10696 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10697 extraction other than index 3.
10699 2014-06-26 Teresa Johnson <tejohnson@google.com>
10701 * doc/invoke.texi: Fix typo.
10702 * dumpfile.c: Add support for documented -fdump-* options
10703 optimized/missed/note/optall.
10705 2014-06-26 Martin Jambor <mjambor@suse.cz>
10707 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10708 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10709 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10710 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10711 * opts.c (default_options_optimization): Set
10712 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10713 * doc/invoke.texi (allow-load-data-races)
10714 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10715 (allow-store-data-races): Document the new default.
10717 2014-06-26 Martin Jambor <mjambor@suse.cz>
10719 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10720 renamed to ipa_impossible_devirt_target. Fix typo.
10721 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10722 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10723 ipa_impossible_devirt_target.
10725 2014-06-26 Richard Biener <rguenther@suse.de>
10727 PR tree-optimization/61607
10728 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10729 explaining why we restrict copies on loop depth.
10730 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10732 (record_equivalences_from_phis): Instead add it here.
10734 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10736 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10737 (LTO_WRAPPER_OBJS): New variable.
10738 (lto-wrapper$(exeext)): Use it.
10739 * collect2.c: Include "collect-utils.h".
10740 (verbose, debug): Remove variables.
10741 (at_file_supplied): No longer static.
10742 (tool_name): New variable.
10743 (do_wait, fork_execute, maybe_unlink): Don't declare.
10744 (tool_cleanup): No longer static.
10745 (notice): Remove function.
10746 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10747 fork_execute calls.
10748 (collect_wait, do_wait, collect_execute): Remove functions.
10749 (maybe_unlink): No longer static.
10750 * collect2.h (verbose, debug): Don't declare.
10751 (at_file_supplied): Declare.
10752 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10754 (collect_execute): Replace with implementation from collect2, plus a
10755 new arg use_atfile. All callers changed.
10756 (collect_wait): Replace with implementation from collect2.
10757 (maybe_unlink_file): Remove function.
10758 (fork_execute): Replace with implementation from collect2, plus a
10759 new arg use_atfile. All callers changed.
10760 (do_wait): Add call to utils_cleanup to the error path.
10761 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10762 (tool_cleanup): Adjust declarations.
10763 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10764 * tlink.c: Include "collect-utils.h".
10765 (tlink_execute): New arg use_atfile. All callers changed.
10766 (tlink_init, tlink_execute): Remove declarations.
10768 * collect-utils.c (save_temps): New variable.
10769 (do_wait): Use it instead of debug. Use fatal_error.
10770 * collect-utils.h (save_temps): Declare.
10771 * collect2.c (verbose): Rename from vflag. All uses changed.
10772 (tool_cleanup): New function, copied from collect_atexit.
10773 (collect_atexit, handler): Just call it.
10774 * collect2.h (verbose): Declaration renamed from vflag.
10775 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10778 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10779 (lto-wrapper$(exeext)): Link with collect-utils.o.
10780 * collect-utils.c: New file.
10781 * collect-utils.h: New file.
10782 * lto-wrapper.c: Include "collect-utils.h".
10783 (args_name): Delete variable.
10784 (tool_name): New variable.
10785 (tool_cleanup): New function.
10786 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10787 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10788 (fork_execute): Remove functions.
10790 2014-06-26 Nick Clifton <nickc@redhat.com>
10792 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10794 * doc/extend.texi (Function Attributes): Fix typo in description
10795 of RX vector attribute.
10797 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10799 * config.gcc (supported_defaults): Error when passing either
10800 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10802 2014-06-26 Richard Biener <rguenther@suse.de>
10804 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10805 propagating volatile pointers.
10807 2014-06-26 Richard Biener <rguenther@suse.de>
10809 PR tree-optimization/61607
10810 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10811 loop if we redirected its latch edge.
10812 (thread_block_1): Do not cancel loops prematurely.
10814 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10816 * toplev.c (backend_init_target): Move init_emit_regs and
10818 (backend_init) ... here; skip ira_init_once and backend_init_target.
10819 (target_reinit) ... and here; clear
10820 this_target_rtl->lang_dependent_initialized.
10821 (lang_dependent_init_target): Clear
10822 this_target_rtl->lang_dependent_initialized;
10823 break out rtl initialization to ...
10824 (initialize_rtl): ... here; call also backend_init_target
10826 * toplev.h (initialize_rtl): New function.
10827 * function.c: Include toplev.h
10828 (init_function_start): Call initialize_rtl.
10829 * rtl.h (target_rtl): Add target_specific_initialized,
10830 lang_dependent_initialized.
10832 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10833 Jakub Jelinek <jakub@redhat.com>
10835 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10837 2014-06-25 Tom de Vries <tom@codesourcery.com>
10839 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10841 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10843 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10844 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10845 Issue a strict overflow warning if appropriate.
10847 2014-06-25 Martin Liska <mliska@suse.cz>
10849 IPA REF refactoring
10850 * Makefile.in: Removed header file (ipa-ref-inline.h).
10851 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10853 (cgraph_speculative_call_info): Likewise.
10854 (cgraph_for_node_thunks_and_aliases): Likewise.
10855 (cgraph_for_node_and_aliases): Likewise.
10856 (verify_cgraph_node): Likewise.
10857 * cgraph.h: Batch of IPA REF functions become member functions of
10858 symtab_node: add_reference, maybe_add_reference, clone_references,
10859 clone_referring, clone_reference, find_reference,
10860 remove_stmt_references, remove_all_references,
10861 remove_all_referring, dump_references, dump_referring,
10862 has_alias_p, iterate_reference, iterate_referring.
10863 * cgraphbuild.c (record_reference): New IPA REF function used.
10864 (record_type_list): Likewise.
10865 (record_eh_tables): Likewise.
10866 (mark_address): Likewise.
10867 (mark_load): Likewise.
10868 (mark_store): Likewise.
10869 (pass_build_cgraph_edges): Likewise.
10870 (rebuild_cgraph_edge): Likewise.
10871 (cgraph_rebuild_references): Likewise.
10872 (pass_remove_cgraph_callee_edges): Likewise.
10873 * cgraphclones.c (cgraph_clone_node): Likewise.
10874 (cgraph_create_virtual_clone): Likewise.
10875 (cgraph_materialize_clone): Likewise.
10876 (cgraph_materialize_all_clones): Likewise.
10877 * cgraphunit.c (cgraph_reset_node): Likewise.
10878 (cgraph_reset_node): Likewise.
10879 (analyze_function): Likewise.
10880 (assemble_thunks_and_aliases): Likewise.
10881 (expand_function): Likewise.
10882 * ipa-comdats.c (propagate_comdat_group): Likewise.
10883 (enqueue_references): Likewise.
10884 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10885 (create_specialized_node): Likewise.
10886 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10887 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10888 * ipa-inline.c (reset_edge_caches): Likewise.
10889 (update_caller_keys): Likewise.
10890 (execute): Likewise.
10891 * ipa-prop.c (remove_described_reference): Likewise.
10892 (propagate_controlled_uses): Likewise.
10893 (ipa_edge_duplication_hook): Likewise.
10894 (ipa_modify_call_arguments): Likewise.
10895 * ipa-pure-const.c (propagate_pure_const): Likewise.
10896 * ipa-ref-inline.h: Header file removed, functions moved
10897 to symtab_node class.
10898 * ipa-ref.c (remove_reference): New class member function.
10899 (cannot_lead_to_return): New class member function.
10900 (referring_ref_list): Likewise.
10901 (referred_ref_list): Likewise.
10902 Rest of functions moved to symtab_node class.
10903 * ipa-ref.h: New member functions remove_reference,
10904 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10906 ipa_ref_list class has new member functions: first_reference,
10907 first_referring, clear, nreferences.
10908 * ipa-reference.c (analyze_function): New IPA REF function used.
10909 (write_node_summary_p): Likewise.
10910 (ipa_reference_write_optimization_summary): Likewise.
10911 * ipa-split.c (split_function): Likewise.
10912 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10913 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10914 (function_and_variable_visibility): Likewise.
10915 * ipa.c (has_addr_references_p): Likewise.
10916 (process_references): Argument type changed.
10917 (symtab_remove_unreachable_nodes): New IPA REF function used.
10918 (process_references): Likewise.
10919 (set_writeonly_bit): Likewise.
10920 * lto-cgraph.c: Implementation of new symtab_node member functions
10921 that uses new IPA REF functions.
10922 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10924 * lto-streamer-out.c (output_symbol_p): Likewise.
10925 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10927 * symtab.c: Implementation of new IPA REF API.
10928 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10929 (ipa_tm_create_version): Likewise.
10930 (ipa_tm_execute): Likewise.
10931 * tree-emutls.c (gen_emutls_addr): Likewise.
10932 * tree-inline.c (copy_bb): Likewise.
10933 (delete_unreachable_blocks_update_callgraph): Likewise.
10934 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10935 (varpool_for_node_and_aliases): Likewise.
10937 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10939 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10941 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10944 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10945 tree_node * instead of tree_node *.
10947 (print_fold_checksum): Likewise.
10948 (fold_check_failed): Likewise.
10949 (debug_fold_checksum): Likewise.
10950 (fold_build1_stat_loc): Likewise.
10951 (fold_build2_stat_loc): Likewise.
10952 (fold_build3_stat_loc): Likewise.
10953 (fold_build_call_array_loc): Likewise.
10955 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10957 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10958 implementation with call to...
10959 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10961 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10964 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10966 PR tree-optimization/57742
10967 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10968 after replacing the statement.
10970 2014-06-25 Nick Clifton <nickc@redhat.com>
10972 * config/v850/v850.c (GHS_default_section_names): Change to const
10974 (GHS_current_section_names): Likewise.
10975 (v850_insert_attributes): Do not build strings, just assign the
10976 names directly. Change the type of 'chosen_section' to const
10978 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10979 directly to the array entry.
10980 * config/v850/v850.h (GHS_default_section_names): Change to const
10982 (GHS_current_section_names): Likewise.
10984 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10986 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10987 (LANG_HOOKS_DECLS): Add it.
10988 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10990 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10991 * langhooks.h (struct lang_hooks_for_decls): Add
10992 omp_clause_linear_ctor hook.
10993 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10994 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10995 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10996 combined simd loop use omp_clause_linear_ctor hook.
10998 2014-06-24 Cong Hou <congh@google.com>
11000 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11001 pattern recognition.
11002 (type_conversion_p): PROMOTION is true if it's a type promotion
11003 conversion, and false otherwise. Return true if the given expression
11004 is a type conversion one.
11005 * tree-vectorizer.h: Adjust the number of patterns.
11006 * tree.def: Add SAD_EXPR.
11007 * optabs.def: Add sad_optab.
11008 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11009 * expr.c (expand_expr_real_2): Likewise.
11010 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11011 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11012 * optabs.c (optab_for_tree_code): Likewise.
11013 * tree-cfg.c (estimate_operator_cost): Likewise.
11014 * tree-ssa-operands.c (get_expr_operands): Likewise.
11015 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11016 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11017 * doc/generic.texi: Add document for SAD_EXPR.
11018 * doc/md.texi: Add document for ssad and usad.
11020 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11022 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11023 qualification in cast.
11025 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11027 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11028 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11029 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11030 (tree_function_decl): ... here.
11031 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11032 streaming of vindex to ...
11033 (write_ts_function_decl_tree_pointers): ... here.
11034 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11035 Do not stream DECL_VINDEX.
11036 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11038 2014-06-24 Catherine Moore <clm@codesourcery.com>
11039 Sandra Loosemore <sandra@codesourcery.com>
11041 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11042 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11043 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11045 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11047 * doc/invoke.texi (Warning Options): Remove duplicated
11048 -Wmaybe-uninitialized.
11050 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11052 PR tree-optimization/57742
11053 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11054 (handle_builtin_malloc, handle_builtin_memset): New functions.
11055 (strlen_optimize_stmt): Call them.
11056 * passes.def: Move strlen after loop+dom but before vrp.
11058 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11061 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11062 model family 6 CPU with has_longmode never use a CPU without
11065 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11068 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11071 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11073 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11074 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11076 * hash-map.h: New file.
11077 * ipa-comdats.c: Use hash_map instead of pointer_map.
11079 * lto-section-out.c: Adjust.
11080 * lto-streamer.h: Replace pointer_map with hash_map.
11081 * symtab.c (verify_symtab): Likewise.
11082 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11083 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11084 * tree-streamer.h: Likewise.
11085 * tree-streamer.c: Adjust.
11086 * pointer-set.h: Remove pointer_map.
11088 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11090 * hash-table.h: Add a template arg to choose between storing values
11091 and storing pointers to values, and then provide partial
11092 specializations for both.
11093 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11094 should store, not the type values should point to.
11095 * tree-into-ssa.c (var_info_hasher): Likewise.
11096 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11097 * tree-complex.c: Adjust.
11098 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11099 table instead of int_tree_map *.
11100 * tree-parloops.c: Adjust.
11101 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11102 type is being stored.
11103 * tree-vectorizer.c: Adjust.
11105 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11107 * hash-table.h: Remove a layer of indirection from hash_table so that
11108 it contains the hash table's data instead of a pointer to the data.
11109 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11110 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11111 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11112 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11113 fold-const.c, gcse.c, ggc-common.c,
11114 gimple-ssa-strength-reduction.c, gimplify.c,
11115 graphite-clast-to-gimple.c, graphite-dependences.c,
11116 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11117 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11118 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11119 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11120 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11121 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11122 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11123 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11124 tree-ssa-live.c, tree-ssa-loop-im.c,
11125 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11126 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11127 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11128 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11129 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11130 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11131 vtable-verify.c, vtable-verify.h: Adjust.
11133 2014-06-24 Richard Biener <rguenther@suse.de>
11135 PR tree-optimization/61572
11136 * tree-ssa-sink.c (statement_sink_location): Do not sink
11137 loads from hard registers.
11139 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11141 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11142 not mentioned in clauses use private clause if the iterator is
11143 declared in #pragma omp for simd, and when adding lastprivate
11144 instead, add it to the outer #pragma omp for too. Diagnose
11145 if the variable is private in outer context. For simd collapse > 1
11146 loops, replace all iterators with temporaries.
11147 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11148 same even in collapse > 1 loops.
11150 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11151 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11153 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11154 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11156 (gimplify_adjust_omp_clauses): Likewise.
11157 * omp-low.c (lower_rec_simd_input_clauses,
11158 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11159 safelen the same as safelen(1).
11160 * tree-nested.c (convert_nonlocal_omp_clauses,
11161 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11162 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11163 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11164 Fixup handling of GIMPLE_OMP_TARGET.
11165 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11168 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11170 PR tree-optimization/61554
11171 * tree-ssa-propagate.c: Include "bitmap.h".
11172 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11173 properly update constructor/destructor.
11174 (substitute_and_fold_dom_walker::before_dom_children):
11175 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11176 need_eh_cleaup instead.
11177 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11180 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11182 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11183 * tree-pass.h (make_pass_ipa_single_use): New pass.
11184 * cgraph.h (used_by_single_function): New flag.
11185 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11187 * passes.def (pass_ipa_single_use): Scedule.
11188 * ipa.c (BOTTOM): New macro.
11189 (meet): New function
11190 (propagate_single_user): New function.
11191 (ipa_single_use): New function.
11192 (pass_data_ipa_single_use): New pass.
11193 (pass_ipa_single_use): New pass.
11194 (pass_ipa_single_use::gate): New gate.
11195 (make_pass_ipa_single_use): New function.
11197 2014-06-23 Kai Tietz <ktietz@redhat.com>
11200 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11201 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11203 2014-06-23 Richard Biener <rguenther@suse.de>
11205 * tree-ssa-loop.c (gate_loop): New function.
11206 (pass_tree_loop::gate): Call it.
11207 (pass_data_tree_no_loop, pass_tree_no_loop,
11208 make_pass_tree_no_loop): New.
11209 * tree-vectorizer.c: Include tree-scalar-evolution.c
11210 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11212 (pass_slp_vectorize::clone): New method.
11213 * timevar.def (TV_TREE_NOLOOP): New.
11214 * tree-pass.h (make_pass_tree_no_loop): Declare.
11215 * passes.def (pass_tree_no_loop): New pass group with
11218 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11221 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11222 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11224 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11226 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11227 "yes" where needed.
11229 2014-06-23 Alan Modra <amodra@gmail.com>
11232 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11233 to zero on debug statements.
11235 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11238 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11239 Ignore third operand if present by marking qualifier_internal.
11241 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11243 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11245 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11246 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11247 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11248 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11249 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11250 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11251 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11252 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11253 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11254 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11255 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11256 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11257 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11258 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11259 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11260 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11261 logic in GCC vector extensions
11263 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11264 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11265 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11266 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11267 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11268 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11269 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11270 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11271 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11272 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11274 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11276 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11279 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11280 (vget_low_s64): Use __GET_LOW macro.
11281 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11282 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11283 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11284 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11285 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11287 (vcombine_s64): Use GCC vector extensions; remove cast.
11288 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11289 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11290 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11291 Fix type signature; remove cast.
11293 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11296 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11298 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11300 (BUILTIN_VD1): New.
11301 (BUILTIN_VD_RE): Remove.
11302 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11303 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11304 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11305 variant but not df.
11306 (vreinterpretv1df*, vreinterpret*v1df): New.
11307 (vreinterpretdf*, vreinterpret*df): Remove.
11308 * config/aarch64/aarch64-simd.md (aarch64_create,
11309 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11310 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11312 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11313 (vcreate_f64): Remove cast, use v1df builtin.
11314 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11315 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11316 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11317 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11318 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11319 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11320 add range check using __builtin_aarch64_im_lane_boundsi.
11321 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11322 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11323 type signature, use gcc vector extensions.
11324 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11325 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11326 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11327 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11328 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11329 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11330 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11331 vreinterpret_u64_f64): Use v1df builtin not df.
11333 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11335 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11338 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11340 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11343 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11345 * loop-invariant.c (pre_check_invariant_p): New function.
11346 (find_invariant_insn): Call pre_check_invariant_p.
11348 2014-06-22 Richard Henderson <rth@redhat.com>
11351 * compare-elim.c (struct comparison): Add eh_note.
11352 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11353 a redundant comparison in a different EH region. Purge EH edges if
11356 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11358 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11359 (var_shift): Use it.
11360 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11361 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11362 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11363 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11364 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11365 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11366 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11367 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11368 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11369 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11370 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11371 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11372 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11373 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11374 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11375 *rotldi3_internal15be): Use the new attribute. Merge register and
11376 integer alternatives.
11378 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11380 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11381 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11382 split, *ashrdi3_internal3 and split): Delete, merge into...
11383 (ashr<mode>3): New expander.
11384 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11385 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11387 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11389 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11390 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11391 *rotldi3_internal3 and split): Delete, merge into...
11392 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11393 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11394 Use "rotlw" extended mnemonic.
11396 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11398 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11399 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11400 and split, *ashldi3_internal3 and split): Delete, merge into...
11401 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11402 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11404 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11406 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11407 (lshrsi3, two anonymous define_insns and define_splits,
11408 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11409 *lshrdi3_internal3 and split): Delete, merge into...
11410 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11411 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11413 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11415 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11416 Remove "O" alternative.
11418 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11420 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11421 (mips_move_from_gpr_cost): Likewise.
11422 (mips_register_move_cost): Update accordingly.
11423 (mips_secondary_reload_class): Remove name of in_p.
11425 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11428 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11429 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11431 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11433 * config/nios2/nios2.c: Include "builtins.h".
11435 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11437 * cgraph.h (tls_model_names): New variable.
11438 * print-tree.c (print_node): Simplify.
11439 * varpool.c (tls_model_names): New variable.
11440 (dump_varpool_node): Output tls model.
11442 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11444 * ipa-visibility.c (function_and_variable_visibility): Disable
11445 temporarily local aliases for some targets.
11447 2014-06-20 Marek Polacek <polacek@redhat.com>
11449 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11450 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11451 into SANITIZE_UNDEFINED.
11452 * doc/invoke.texi: Describe -fsanitize=bounds.
11453 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11454 functions created in the FEs.
11455 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11456 (expand_UBSAN_BOUNDS): New function.
11457 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11458 * internal-fn.h: Don't define internal functions here.
11459 * opts.c (common_handle_option): Add -fsanitize=bounds.
11460 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11461 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11462 * tree-core.h: Define internal functions here.
11463 (struct tree_base): Add ifn field.
11464 * tree-pretty-print.c: Include "internal-fn.h".
11465 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11466 * tree.c (get_callee_fndecl): Likewise.
11467 (build_call_expr_internal_loc): New function.
11468 * tree.def (CALL_EXPR): Update description.
11469 * tree.h (CALL_EXPR_IFN): Define.
11470 (build_call_expr_internal_loc): Declare.
11471 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11473 (ubsan_type_descriptor): Change bool parameter to enum
11474 ubsan_print_style. Adjust the code. Add handling of
11476 (ubsan_expand_bounds_ifn): New function.
11477 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11478 (ubsan_build_overflow_builtin): Likewise.
11479 (instrument_bool_enum_load): Likewise.
11480 (ubsan_instrument_float_cast): Likewise.
11481 * ubsan.h (enum ubsan_print_style): New enum.
11482 (ubsan_expand_bounds_ifn): Declare.
11483 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11485 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11487 * config/rs6000/rs6000.md: Append `DONE' to preparation
11488 statements of `bswap' pattern splitters.
11490 2014-06-20 Tom de Vries <tom@codesourcery.com>
11492 * target.def (call_fusage_contains_non_callee_clobbers): Update
11494 * doc/tm.texi: Regenerate.
11496 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11497 Max Ostapenko <m.ostapenko@partner.samsung.com>
11500 * asan.c (instrument_strlen_call): Fixed instrumentation of
11503 2014-06-20 Martin Jambor <mjambor@suse.cz>
11506 * ipa-prop.c (impossible_devirt_target): New function.
11507 (try_make_edge_direct_virtual_call): Use it, also instead of
11510 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11511 Max Ostapenko <m.ostapenko@partner.samsung.com>
11514 * asan.c (build_check_stmt): Add condition.
11516 2014-06-20 Martin Jambor <mjambor@suse.cz>
11519 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11522 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11524 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11526 (VCONQ): Make comment more helpful.
11528 * config/aarch64/aarch64-simd.md
11529 (aarch64_sqdmulh_lane<mode>):
11530 Use VCOND for operands 2. Update lane checking and flipping logic.
11531 (aarch64_sqrdmulh_lane<mode>): Likewise.
11532 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11533 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11534 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11535 attribute of operand 3 to VCOND.
11536 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11537 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11538 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11539 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11540 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11541 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11543 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11544 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11545 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11546 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11547 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11548 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11549 operand to VCOND. Update lane flipping and bounds checking logic.
11550 (aarch64_sqdmlal2_lane<mode>): Likewise.
11551 (aarch64_sqdmlsl_lane<mode>): Likewise.
11552 (aarch64_sqdmull_lane<mode>): Likewise.
11553 (aarch64_sqdmull2_lane<mode>): Likewise.
11554 (aarch64_sqdmlal_laneq<mode>):
11555 Replace VCON usage with VCONQ.
11556 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11557 (aarch64_sqdmlal2_laneq<mode>): Emit
11558 aarch64_sqdmlal2_laneq<mode>_internal insn.
11559 Replace VCON with VCONQ.
11560 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11561 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11562 (aarch64_sqdmull_laneq<mode>): Emit
11563 aarch64_sqdmull_laneq<mode>_internal insn.
11564 Replace VCON with VCONQ.
11565 (aarch64_sqdmull2_laneq<mode>): Emit
11566 aarch64_sqdmull2_laneq<mode>_internal insn.
11567 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11568 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11569 of 3rd argument to int16x4_t.
11570 (vqdmlalh_lane_s16): Likewise.
11571 (vqdmlslh_lane_s16): Likewise.
11572 (vqdmull_high_lane_s16): Likewise.
11573 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11574 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11575 (vqdmlsl_lane_s16): Likewise.
11576 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11577 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11578 (vqdmlals_lane_s32): Likewise.
11579 (vqdmlsls_lane_s32): Likewise.
11580 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11581 (vqdmulls_lane_s32): Likewise.
11582 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11583 (vqdmlsl_lane_s32): Likewise.
11584 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11585 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11586 (vqrdmulhh_lane_s16): Likewise.
11587 (vqdmlsl_high_lane_s16): Likewise.
11588 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11589 (vqdmlsl_high_lane_s32): Likewise.
11590 (vqrdmulhs_lane_s32): Likewise.
11592 2014-06-20 Tom de Vries <tom@codesourcery.com>
11594 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11595 get_call_reg_set_usage.
11597 2014-06-20 Tom de Vries <tom@codesourcery.com>
11599 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11600 it contains all call_used_regs.
11602 2014-06-20 Tom de Vries <tom@codesourcery.com>
11604 * final.c (collect_fn_hard_reg_usage): Add and use variable
11605 function_used_regs.
11607 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11609 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11610 (set_init_priority, get_init_priority, set_fini_priority,
11611 get_fini_priority): New methods.
11612 * tree.c (init_priority_for_decl): Remove.
11613 (init_ttree): Do not initialize init priority.
11614 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11615 (decl_priority_info): Remove.
11616 (decl_init_priority_insert): Rewrite.
11617 (decl_fini_priority_insert): Rewrite.
11618 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11619 tree_priority_map_marked_p): Remove.
11620 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11621 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11622 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11623 not output priorities.
11624 (pack_ts_function_decl_value_fields): Likewise.
11625 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11626 not input priorities.
11627 (unpack_ts_function_decl_value_fields): Likewise.
11628 * symtab.c (symbol_priority_map): Declare.
11629 (init_priority_hash): Declare.
11630 (symtab_unregister_node): Unregister from priority hash, too.
11631 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11633 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11634 (symbol_priority_info): New function.
11635 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11637 * tree-core.h (tree_priority_map): Remove.
11639 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11641 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11642 0xff to uint64_t before shifting it up.
11644 2014-06-20 Julian Brown <julian@codesourcery.com>
11645 Chung-Lin Tang <cltang@codesourcery.com>
11647 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11648 TARGET_THUMB1_ONLY. Add comments.
11650 2014-06-19 Tom de Vries <tom@codesourcery.com>
11652 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11653 return type to void.
11654 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11656 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11658 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11659 as "move", from depends_on.
11661 2014-06-19 Terry Guo <terry.guo@arm.com>
11663 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11666 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11668 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11670 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11672 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11675 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11676 addresses here if reload in progress or completed.
11678 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11680 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11681 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11682 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11683 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11684 (mips_register_priority): New function that implements the target
11685 hook TARGET_REGISTER_PRIORITY.
11686 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11687 (mips_lra_p): Likewise for TARGET_LRA_P.
11688 (TARGET_REGISTER_PRIORITY): Define macro.
11689 (TARGET_SPILL_CLASS): Likewise.
11690 (TARGET_LRA_P): Likewise.
11691 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11693 (REG_CLASS_NAMES): Likewise.
11694 (REG_CLASS_CONTENTS): Likewise.
11695 (BASE_REG_CLASS): Use M16_SP_REGS.
11696 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11697 New set attribute to enable alternatives depending on the register
11699 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11700 (*lea64): Disable pattern for MIPS16.
11701 * config/mips/mips.opt (mlra): New option.
11703 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11705 * lra-constraints.c (base_to_reg): New function.
11706 (process_address): Use new function.
11708 2014-06-18 Tom de Vries <tom@codesourcery.com>
11710 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11711 * config/aarch64/aarch64.c
11712 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11713 (aarch64_emit_call_insn): New function.
11714 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11716 * config/aarch64/aarch64.md (define_expand "call_internal")
11717 (define_expand "call_value_internal", define_expand "sibcall_internal")
11718 (define_expand "sibcall_value_internal"): New.
11719 (define_expand "call", define_expand "call_value")
11720 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11721 expand variant and aarch64_emit_call_insn.
11723 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11724 Tom de Vries <tom@codesourcery.com>
11726 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11727 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11729 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11730 clobbers to CALL_INSN_FUNCTION_USAGE.
11731 (define_expand "sibcall_internal")
11732 (define_expand "sibcall_value_internal"): New.
11733 (define_expand "call", define_expand "call_value"): Add argument to
11734 arm_emit_call_insn.
11735 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11736 (define_expand "sibcall_value"): Use sibcall_value_internal and
11737 arm_emit_call_insn.
11739 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11741 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11743 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11745 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11748 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11750 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11751 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11752 annotations. Fix DWARF information.
11754 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11756 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11757 __udivmoddi4, and fixups for negative operands.
11759 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11761 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11763 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11765 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11768 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11770 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11773 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11775 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11776 describing register usage on function entry and exit.
11778 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11780 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11781 (__aeabi_ldivmod): Fix whitespace.
11783 2014-06-18 Andreas Schwab <schwab@suse.de>
11785 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11786 Remove blank line after @item.
11788 2014-06-18 Richard Henderson <rth@redhat.com>
11791 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11793 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11795 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11796 POST_MODIFY for neon loads and stores.
11797 (arm_print_operand): Output post-index register for neon loads and
11800 2014-06-18 Richard Biener <rguenther@suse.de>
11802 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11804 2014-06-18 Richard Biener <rguenther@suse.de>
11806 * tree-pass.h (make_pass_dce_loop): Remove.
11807 * passes.def: Replace pass_dce_loop with pass_dce.
11808 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11809 changed free niter estimates and reset the scev cache.
11810 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11811 make_pass_dce_loop): Remove.
11812 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11813 (fini_copy_prop): Return whether something changed. Always
11814 let substitute_and_fold perform DCE and free niter estimates
11815 and reset the scev cache if so.
11816 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11817 (pass_data_copy_prop): Do not unconditionally schedule
11818 cleanup-cfg or update-ssa.
11820 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11822 PR tree-optimization/61518
11823 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11824 reduction var is used in reduction stmt or phi-function only.
11826 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11828 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11830 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11832 PR tree-optimization/61517
11833 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11834 whose rhs's first tree is the source expression instead of the
11836 (find_bswap_or_nop): Likewise.
11837 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11838 gimple stmt whose rhs's first tree is the source. In the memory source
11839 case, move the stmt to be replaced close to one of the original load to
11840 avoid the problem of a store between the load and the stmt's original
11842 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11845 2014-06-18 Andreas Schwab <schwab@suse.de>
11847 PR rtl-optimization/54555
11848 * postreload.c (move2add_use_add2_insn): Substitute
11849 STRICT_LOW_PART only if it is cheaper.
11851 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11853 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11854 Do not use unspec as call operand. Use memory_operand instead of
11855 memory_nox32_operand and add "m" operand constraint. Disable
11856 pattern for TARGET_X32.
11857 (*sibcall_pop_memory): Ditto.
11858 (*sibcall_value_memory): Ditto.
11859 (*sibcall_value_pop_memory): Ditto.
11860 (sibcall peepholes): Merge SImode and DImode patterns using
11861 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11862 Disable pattern for TARGET_X32. Check if eliminated register is
11863 really dead after call insn. Generate call RTX without unspec operand.
11864 (sibcall_value peepholes): Ditto.
11865 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11866 instead of memory_nox32_operand. Check if eliminated register is
11867 really dead after call insn. Generate call RTX without unspec operand.
11868 (sibcall_value_pop peepholes): Ditto.
11869 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11871 2014-06-18 Terry Guo <terry.guo@arm.com>
11874 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11877 2014-06-18 Olivier Hainque <hainque@adacore.com>
11879 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11880 memorization of the end of block source location.
11881 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11882 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11883 end source location info we have on the block entry/exit code we
11886 2014-06-18 Richard Biener <rguenther@suse.de>
11888 * common.opt (fssa-phiopt): New option.
11889 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11891 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11892 * doc/invoke.texi (-fssa-phiopt): Document.
11894 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11896 * genattrtab.c (n_bypassed): New variable.
11897 (process_bypasses): Initialise n_bypassed.
11898 Count number of bypassed reservations.
11899 (make_automaton_attrs): Allocate space for bypassed reservations
11900 rather than number of bypasses.
11902 2014-06-18 Richard Biener <rguenther@suse.de>
11904 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11905 we propagated anything.
11906 (substitute_and_fold_dom_walker::before_dom_children): Something
11907 changed if we propagated into PHI arguments.
11908 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11911 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11913 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11915 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11916 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11917 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11918 Introduces alternative way of loads group permutaions.
11919 (vect_transform_grouped_load): Try alternative way of permutations.
11921 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11923 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11924 changed in ORT_TARGET region, don't jump to do_outer.
11925 (struct gimplify_adjust_omp_clauses_data): New type.
11926 (gimplify_adjust_omp_clauses_1): Adjust for data being
11927 a struct gimplify_adjust_omp_clauses_data pointer instead
11928 of tree *. Pass pre_p as a new argument to
11929 lang_hooks.decls.omp_finish_clause hook.
11930 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11931 splay_tree_foreach to pass both list_p and pre_p.
11932 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11933 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11934 gimplify_adjust_omp_clauses callers.
11935 * langhooks.c (lhd_omp_finish_clause): New function.
11936 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11937 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11938 * langhooks.h (struct lang_hooks_for_decls): Add a new
11939 gimple_seq * argument to omp_finish_clause hook.
11940 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11941 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11942 (scan_omp_parallel, lower_omp_for): When adding
11943 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11944 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11945 * tree-nested.c (convert_nonlocal_omp_clauses,
11946 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11947 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11949 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11951 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11952 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11954 2014-06-17 Xinliang David Li <davidxl@google.com>
11956 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11957 * passes.c (pass_init_dump_file): Do not set initialize
11958 flag to false unconditionally.
11960 2014-06-17 Richard Biener <rguenther@suse.de>
11962 * genopinit.c (main): Use vec<>::qsort method.
11963 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11965 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11967 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11969 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11970 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11971 (mips_move_to_gpr_cost): Remove ST_REGS case.
11972 (mips_move_from_gpr_cost): Likewise.
11973 (mips_register_move_cost): Likewise.
11974 (mips_secondary_reload_class): Likewise.
11976 2014-06-17 Richard Biener <rguenther@suse.de>
11978 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11979 (pass_all_optimizations): Move 3rd copy-prop pass from after
11980 fre to before ifcombine/phiopt.
11982 2014-06-17 Richard Biener <rguenther@suse.de>
11984 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11985 and allow all blocks to be forwarders.
11987 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11990 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11991 variable 'size'; calculate 'size' right in the front; use
11992 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11993 pcum->aapcs_stack_words.
11995 2014-06-17 Nick Clifton <nickc@redhat.com>
11997 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11998 (umulhi3, mulsidi3, umulsidi3): Likewise.
12000 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12002 PR middle-end/61508
12003 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12004 check for section name.
12006 2014-06-17 Richard Biener <rguenther@suse.de>
12008 * tree-ssa-propagate.c: Include domwalk.h.
12009 (substitute_and_fold): Outline main worker into a domwalker ...
12010 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12011 Schedule stmts we can fully propagate for removal. Remove
12013 (substitute_and_fold): Apply a dominator walk to perform
12014 substitution. Process stmts scheduled for removal here.
12016 2014-06-17 Richard Biener <rguenther@suse.de>
12018 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12019 of PHI node moving.
12021 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12023 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12024 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12025 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12026 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12027 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12029 (get_fpscr) : Likewise.
12031 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12033 PR rtl-optimization/61325
12034 * lra-constraints.c (valid_address_p): Add forward declaration.
12035 (simplify_operand_subreg): Check address validity before and after
12036 alter_reg of memory subreg.
12038 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12040 * config/i386/i386.c (decide_alg): Correctly handle
12041 maximum size of stringop algorithm.
12043 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12045 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12047 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12049 PR rtl-optimization/61522
12050 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12052 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12055 * symtab.c (symtab_node::reset_section): New method.
12056 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12058 * cgraph.h (reset_section): Declare.
12059 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12060 do not consider comdat locals.
12061 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12063 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12064 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12065 reset sections of symbols dragged out of the comdats.
12066 (function_and_variable_visibility): Reset sections of
12069 2014-06-16 Richard Biener <rguenther@suse.de>
12071 PR tree-optimization/61482
12072 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12073 [-INF(OVF), +INF(OVF)] range.
12075 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12077 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12078 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12079 handling 32-bit multiplication.
12081 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12083 PR middle-end/61430
12084 * lra-lives.c (process_bb_lives): Skip creating copy during
12085 insn scan when src/dest has constrained to same regno.
12087 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12089 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12090 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12092 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12094 * asan.c (check_func): New function.
12095 (maybe_create_ssa_name): Likewise.
12096 (build_check_stmt_with_calls): Likewise.
12097 (use_calls_p): Likewise.
12098 (report_error_func): Change interface.
12099 (build_check_stmt): Allow non-integer lengths; add support
12101 (asan_instrument): Likewise.
12102 (instrument_mem_region_access): Moved code to build_check_stmt.
12103 (instrument_derefs): Likewise.
12104 (instrument_strlen_call): Likewise.
12105 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12106 * doc/invoke.texi: Describe new parameter.
12107 * params.def: Define new parameter.
12108 * params.h: Likewise.
12109 * sanitizer.def: Describe new builtins.
12111 2014-06-16 Richard Biener <rguenther@suse.de>
12113 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12114 Make all defs available at the end.
12115 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12117 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12120 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12122 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12125 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12126 initialization. Replace remaining use of uid.
12128 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12130 * c-family/c-common.c (handle_tls_model_attribute): Use
12131 set_decl_tls_model.
12132 * c-family/c-common.c (handle_tls_model_attribute): Use
12133 set_decl_tls_model.
12134 * cgraph.h (struct varpool_node): Add tls_model.
12135 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12136 * tree.h (DECL_TLS_MODEL): Update.
12137 (DECL_THREAD_LOCAL_P): Check that variable is static.
12138 (decl_tls_model): Declare.
12139 (set_decl_tls_model): Declare.
12140 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12141 set symbol prorperties.
12142 (get_emutls_init_templ_addr): Cleanup.
12143 (new_emutls_decl): Update.
12144 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12145 (lto_input_varpool_node): Likewise.
12146 * lto-streamer-out.c (hash_tree): Likewise.
12147 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12148 not stream DECL_TLS_MODEL.
12149 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12150 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12152 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12154 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12156 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12158 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12159 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12161 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12162 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12163 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12164 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12165 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12166 (df_get_artificial_defs, df_get_artificial_uses)
12167 (df_single_def, df_single_use): Update accordingly.
12168 (df_refs_chain_dump): Take the first element in a linked list as
12169 parameter, rather than a pointer to an array of pointers.
12170 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12171 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12172 (df_chain_create_bb_process_use): Likewise.
12173 (df_md_bb_local_compute_process_def): Likewise.
12174 * fwprop.c (process_defs, process_uses): Likewise.
12175 (register_active_defs, update_uses): Likewise.
12176 (forward_propagate_asm): Update for new df_ref linking.
12177 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12178 (df_null_ref_rec, df_null_mw_rec): Likewise.
12179 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12181 (df_scan_free_bb_info): Remove check for null artificial_defs.
12182 (df_install_ref_incremental): Adjust for new df_ref linking.
12183 Use a single-element insertion rather than a full sort.
12184 (df_ref_chain_delete_du_chain): Take the first element
12185 in a linked list as parameter, rather than a pointer to an array of
12187 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12188 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12189 (df_insn_info_delete): Remove check for null defs and call to
12190 df_scan_free_mws_vec.
12191 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12192 null rather than df_null_*_rec.
12193 (df_insn_rescan_debug_internal): Likewise, and update null
12194 checks in the same way. Remove check for null defs.
12195 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12196 Move a single element rather doing a full sort.
12197 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12199 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12200 Initialize df_ref and df_mw_hardreg lists to null rather than
12202 (df_ref_compare): Take df_refs as parameter, transferring the
12203 old interface to...
12204 (df_ref_ptr_compare): ...this new function.
12205 (df_sort_and_compress_refs): Update accordingly.
12206 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12207 old interface to...
12208 (df_mw_ptr_compare): ...this new function.
12209 (df_sort_and_compress_mws): Update accordingly.
12210 (df_install_refs, df_install_mws): Return a linked list rather than
12211 an array of pointers.
12212 (df_refs_add_to_chains): Assert that old lists are empty rather
12214 (df_insn_refs_verify): Don't handle null defs speciailly.
12215 * web.c (union_match_dups): Update for new df_ref linking.
12217 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12219 * df.h (df_ref_create, df_ref_remove): Delete.
12220 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12221 (df_ref_remove): Likewise.
12223 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12225 * df.h (df_single_def, df_single_use): New functions.
12226 * ira.c (find_moveable_pseudos): Use them.
12228 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12230 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12231 * df-problems.c (df_note_bb_compute): Use it.
12232 * regstat.c (regstat_bb_compute_ri): Likewise.
12234 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12236 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12237 * cse.c (cse_extended_basic_block): Use them.
12238 * dce.c (mark_artificial_use): Likewise.
12239 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12240 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12241 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12242 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12243 (df_simulate_initialize_backwards): Likewise.
12244 (df_simulate_finalize_backwards): Likewise.
12245 (df_simulate_initialize_forwards): Likewise.
12246 (df_md_simulate_artificial_defs_at_top): Likewise.
12247 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12248 * regrename.c (init_rename_info): Likewise.
12249 * regstat.c (regstat_bb_compute_ri): Likewise.
12250 (regstat_bb_compute_calls_crossed): Likewise.
12252 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12254 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12255 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12256 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12257 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12258 * combine.c (create_log_links): Likewise.
12259 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12260 (try_eliminate_compare): Likewise.
12261 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12262 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12263 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12264 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12265 (word_dce_process_block, dce_process_block): Likewise.
12266 * ddg.c (def_has_ccmode_p): Likewise.
12267 * df-core.c (df_bb_regno_first_def_find): Likewise.
12268 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12269 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12270 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12271 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12272 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12273 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12274 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12275 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12276 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12277 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12278 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12279 * fwprop.c (local_ref_killed_between_p): Likewise.
12280 (all_uses_available_at, free_load_extend): Likewise.
12281 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12282 * hw-doloop.c (scan_loop): Likewise.
12283 * ifcvt.c (dead_or_predicable): Likewise.
12284 * init-regs.c (initialize_uninitialized_regs): Likewise.
12285 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12286 (process_bb_node_lives): Likewise.
12287 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12288 (find_moveable_pseudos): Likewise.
12289 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12290 * recog.c (peep2_find_free_register): Likewise.
12291 * ree.c (get_defs): Likewise.
12292 * regstat.c (regstat_bb_compute_ri): Likewise.
12293 (regstat_bb_compute_calls_crossed): Likewise.
12294 * sched-deps.c (find_inc, find_mem): Likewise.
12295 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12296 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12297 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12298 (prepare_shrink_wrap): Likewise.
12299 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12300 * web.c (union_defs, pass_web::execute): Likewise.
12301 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12302 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12304 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12306 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12307 to inheritance pseudos.
12308 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12310 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12313 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12314 (BU_MISC_2): Rename to ...
12315 (BU_LDBL128_2): ... this.
12316 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12317 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12318 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12319 RS6000_BTM_LDBL128.
12320 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12321 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12322 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12323 (unpacktf_1): Likewise.
12324 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12325 (__builtin_longdouble_dw1): Likewise.
12326 * doc/sourcebuild.texi (longdouble128): Document.
12328 2014-06-13 Jeff Law <law@redhat.com>
12330 PR rtl-optimization/61094
12331 PR rtl-optimization/61446
12332 * ree.c (combine_reaching_defs): Get the mode for the copy from
12333 the extension insn rather than the defining insn.
12335 2014-06-13 Dehao Chen <dehao@google.com>
12337 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12339 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12341 * doc/install.texi (--enable-linker-plugin-configure-flags)
12342 (--enable-linker-plugin-flags): Document new flags.
12344 2014-06-13 Martin Jambor <mjambor@suse.cz>
12347 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12348 cache_token if returning early.
12350 2014-06-13 Nick Clifton <nickc@redhat.com>
12352 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12353 requested alignment is active.
12354 (LABEL_ALIGN): Likewise.
12355 (LOOP_ALIGN): Likewise.
12357 2014-06-13 Richard Biener <rguenther@suse.de>
12359 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12360 Rewrite to propagate the VN result into all uses where
12361 possible and to remove stmts becoming dead because of that.
12362 (eliminate): Generalize stmt removal handling, remove in
12363 reverse dominator order to support proper debug stmt
12364 generation. Update stmts before removing stmts.
12365 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12367 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12369 PR tree-optimization/61375
12370 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12371 symbolic number cannot be represented in an uint64_t.
12372 (find_bswap_or_nop_1): Likewise.
12374 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12376 * symtab.c (symtab_node::reset_section): New method.
12377 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12379 * cgraph.h (reset_section): Declare.
12380 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12381 do not consider comdat locals.
12382 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12384 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12385 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12386 reset sections of symbols dragged out of the comdats.
12387 (function_and_variable_visibility): Reset sections of
12390 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12392 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12393 to use symtab and decl_binds_to_current_def_p
12394 * tree-vectorizer.c (increase_alignment): Increase alignment
12395 of alias target, too.
12397 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12399 PR middle-end/61486
12400 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12401 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12402 if outer combined construct is distribute.
12403 (gimplify_omp_for): For OMP_DISTRIBUTE set
12404 gimplify_omp_ctxp->distribute.
12405 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12406 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12407 mapping into decl map.
12409 2014-06-12 Jason Merrill <jason@redhat.com>
12411 * common.opt (fabi-version): Change default to 0.
12413 2014-06-12 Jason Merrill <jason@redhat.com>
12415 * toplev.c (process_options): Reject -fabi-version=1.
12417 2014-06-12 Jeff Law <law@redhat.com>
12419 PR tree-optimization/61009
12420 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12421 value when we stop processing a block due to problematic PHIs.
12423 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12425 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12426 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12427 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12428 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12429 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12430 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12431 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12432 are not in the spec.
12434 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12437 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12438 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12441 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12443 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12445 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12448 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12449 loading from address spaces.
12451 2014-06-12 Martin Liska <mliska@suse.cz>
12454 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12455 statement is reachable.
12457 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12459 * symtab.c (section_hash): New hash.
12460 (symtab_unregister_node): Clear section before freeing.
12461 (hash_section_hash_entry): New haser.
12462 (eq_sections): New function.
12463 (symtab_node::set_section_for_node): New method.
12464 (set_section_1): Update.
12465 (symtab_node::set_section): Take string instead of tree as parameter.
12466 (symtab_resolve_alias): Update.
12467 * cgraph.h (section_hash_entry_d): New structure.
12468 (section_hash_entry): New typedef.
12469 (cgraph_node): Change comdat_group_ to x_comdat_group,
12470 change section_ to x_section and turn into section_hash_entry;
12471 update accestors; put set_section_for_node offline.
12472 * tree.c (decl_section_name): Turn into string.
12473 (set_decl_section_name): Change parameter to be string.
12474 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12475 * sdbout.c (sdbout_one_type): Update.
12476 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12477 * varasm.c (IN_NAMED_SECTION, get_named_section,
12478 resolve_unique_section, hot_function_section, get_named_text_section,
12479 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12480 make_decl_rtl, default_unique_section): Update.
12481 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12482 (c6x_elf_unique_section): Update.
12483 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12484 * config/pa/pa.c (pa_function_section): Update.
12485 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12486 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12487 * config/arc/arc.c (arc_in_small_data_p): Update.
12488 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12489 * config/mcore/mcore.c (mcore_unique_section): Update.
12490 * config/mips/mips.c (mips16_build_function_stub): Update.
12491 (mips16_build_call_stub): Update.
12492 (mips_function_rodata_section): Update.
12493 (mips_in_small_data_p): Update.
12494 * config/score/score.c (score_in_small_data_p): Update.
12495 * config/rx/rx.c (rx_in_small_data): Update.
12496 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12497 (rs6000_xcoff_asm_named_section): Update.
12498 (rs6000_xcoff_unique_section): Update.
12499 * config/frv/frv.c (frv_string_begins_with): Update.
12500 (frv_in_small_data_p): Update.
12501 * config/v850/v850.c (v850_encode_data_area): Update.
12502 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12503 (bfin_handle_l1_data_attribute): Update.
12504 (bfin_handle_l2_attribute): Update.
12505 * config/mep/mep.c (mep_unique_section): Update.
12506 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12508 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12509 (h8300_handle_tiny_data_attribute): Update.
12510 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12511 (m32r_in_small_data_p): Update.
12512 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12513 * config/i386/i386.c (ix86_in_large_data_p): Update.
12514 * config/i386/winnt.c (i386_pe_unique_section): Update.
12515 * config/darwin.c (darwin_function_section): Update.
12516 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12517 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12518 (new_emutls_decl): Update.
12519 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12520 input_varpool_node): Update.
12521 (ead_string_cst): Turn to ...
12522 (read_string): ... this one.
12523 * dwarf2out.c (secname_for_decl): Update.
12524 * asan.c (asan_protect_global): Update.
12526 2014-06-11 DJ Delorie <dj@redhat.com>
12528 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12530 * config/rx/rx.c (rx_option_override): Likewise.
12531 (rx_align_for_label): Likewise.
12533 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12535 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12537 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12540 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12542 * common.md: New file.
12543 * doc/md.texi: Update description of generic, machine-independent
12545 * config/s390/constraints.md (e): Delete.
12546 * Makefile.in (md_file): Include common.md.
12547 * config/m32c/t-m32c (md_file): Likewise.
12548 * genpreds.c (general_mem): New array.
12549 (generic_constraint_letters): Remove constraints now defined by
12551 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12552 Allow the first character to be '<' or '>' as well.
12553 * genoutput.c (general_mem): New array.
12554 (indep_constraints): Remove constraints now defined by common.md.
12555 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12556 Remove special handling of 'm'.
12557 * ira-costs.c (record_reg_classes): Remove special handling of
12558 constraints now defined by common.md.
12559 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12560 * ira-lives.c (single_reg_class): Likewise.
12561 (ira_implicitly_set_insn_hard_regs): Likewise.
12562 * lra-constraints.c (reg_class_from_constraints): Likewise.
12563 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12564 * postreload.c (reload_cse_simplify_operands): Likewise.
12565 * reload.c (push_secondary_reload, scratch_reload_class)
12566 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12567 * reload1.c (maybe_fix_stack_asms): Likewise.
12568 * targhooks.c (default_secondary_reload): Likewise.
12569 * stmt.c (parse_output_constraint): Likewise.
12570 * recog.c (preprocess_constraints): Likewise.
12571 (constrain_operands, peep2_find_free_register): Likewise.
12572 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12573 must be handled specially.
12575 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12577 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12578 * genpreds.c (have_const_dbl_constraints): Delete.
12579 (add_constraint): Don't set it.
12580 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12581 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12582 constraints using the lookup_constraint logic.
12583 * ira-lives.c (single_reg_class): Likewise.
12584 * ira.c (ira_setup_alts): Likewise.
12585 * lra-constraints.c (process_alt_operands): Likewise.
12586 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12587 * reload.c (find_reloads): Likewise.
12589 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12591 * genpreds.c (const_int_start, const_int_end): New variables.
12592 (choose_enum_order): Output CONST_INT constraints before memory
12594 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12596 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12597 * ira.c (ira_setup_alts): Likewise.
12598 * lra-constraints.c (process_alt_operands): Likewise.
12599 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12600 * reload.c (find_reloads): Likewise.
12602 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12604 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12605 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12606 * recog.c (preprocess_constraints): Update accordingly.
12608 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12610 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12611 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12612 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12613 * genpreds.c (print_type_tree): New function.
12614 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12615 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12616 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12617 Write out enum constraint_type and get_constraint_type.
12618 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12619 constraint_num rather than a constraint string.
12620 (satisfies_address_constraint_p): Likewise.
12621 (reg_class_from_constraints): Avoid old constraint macros.
12622 (process_alt_operands, process_address_1): Likewise.
12623 (curr_insn_transform): Likewise.
12624 * ira-costs.c (record_reg_classes): Likewise.
12625 (record_operand_costs): Likewise.
12626 * ira-lives.c (single_reg_class): Likewise.
12627 (ira_implicitly_set_insn_hard_regs): Likewise.
12628 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12629 * postreload.c (reload_cse_simplify_operands): Likewise.
12630 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12631 (constrain_operands, peep2_find_free_register): Likewise.
12632 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12633 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12634 * reload1.c (maybe_fix_stack_asms): Likewise.
12635 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12636 * targhooks.c (default_secondary_reload): Likewise.
12637 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12638 to EXTRA_CONSTRAINT_STR.
12639 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12641 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12643 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12644 (write_constraint_satisfied_p_array): ...this new function.
12645 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12647 (write_insn_preds_c): Update accordingly.
12649 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12651 * genpreds.c (write_lookup_constraint): Rename to...
12652 (write_lookup_constraint_1): ...this.
12653 (write_lookup_constraint_array): New function.
12654 (write_tm_preds_h): Define lookup_constraint as an inline function
12655 that uses write_lookup_constraint_array where possible.
12656 (write_insn_preds_c): Update for the changes above.
12658 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12660 * doc/md.texi (regclass_for_constraint): Rename to...
12661 (reg_class_for_constraint): ...this.
12662 * genpreds.c (num_constraints, enum_order, register_start)
12663 (register_end, satisfied_start, memory_start, memory_end)
12664 (address_start, address_end): New variables.
12665 (add_constraint): Count the number of constraints.
12666 (choose_enum_order): New function.
12667 (write_enum_constraint_num): Iterate over enum_order.
12668 (write_regclass_for_constraint): Rename to...
12669 (write_reg_class_for_constraint_1): ...this and update output
12671 (write_constraint_satisfied_p): Rename to...
12672 (write_constraint_satisfied_p_1): ...this and update output
12673 accordingly. Do nothing if all extra constraints are register
12675 (write_insn_extra_memory_constraint): Delete.
12676 (write_insn_extra_address_constraint): Delete.
12677 (write_range_function): New function.
12678 (write_tm_preds_h): Define constraint_satisfied_p and
12679 reg_class_for_constraint as inline functions that do a range check
12680 before calling the out-of-line function. Use write_range_function
12681 to implement insn_extra_{register,memory,address}_constraint,
12682 the first of which is new.
12683 (write_insn_preds_c): Update after above changes to write_* functions.
12684 (main): Call choose_enum_order.
12686 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12688 PR tree-optimization/61306
12689 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12690 expression instead of its size.
12691 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12692 false to prevent optimization when the result is unpredictable due to
12693 arithmetic right shift of signed type with highest byte is set.
12694 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12695 (init_symbolic_number): Likewise.
12696 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12697 when the result is unpredictable due to sign extension.
12699 2014-06-11 Terry Guo <terry.guo@arm.com>
12701 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12702 (*thumb1_addsi3): Ditto.
12703 (*thumb_subdi3): Ditto.
12704 (thumb1_subsi3_insn): Ditto.
12705 (*thumb_mulsi3): Ditto.
12706 (*thumb_mulsi3_v6): Ditto.
12707 (*thumb1_andsi3_insn): Ditto.
12708 (thumb1_bicsi3): Ditto.
12709 (*thumb1_iorsi3_insn): Ditto.
12710 (*thumb1_xorsi3_insn): Ditto.
12711 (*thumb1_ashlsi3): Ditto.
12712 (*thumb1_ashrsi3): Ditto.
12713 (*thumb1_lshrsi3): Ditto.
12714 (*thumb1_rotrsi3): Ditto.
12715 (*thumb1_negdi2): Ditto.
12716 (*thumb1_negsi2): Ditto.
12717 (*thumb1_abssi2): Ditto.
12718 (*thumb1_neg_abssi2): Ditto.
12719 (*thumb1_one_cmplsi2): Ditto.
12720 (*thumb1_zero_extendhisi2): Ditto.
12721 (*thumb1_zero_extendqisi2): Ditto.
12722 (*thumb1_zero_extendqisi2_v6): Ditto.
12723 (thumb1_extendhisi2): Ditto.
12724 (thumb1_extendqisi2): Ditto.
12725 (*thumb1_movdi_insn): Ditto.
12726 (*thumb1_movsi_insn): Ditto.
12727 (*thumb1_movhi_insn): Ditto.
12728 (thumb_movhi_clobber): Ditto.
12729 (*thumb1_movqi_insn): Ditto.
12730 (*thumb1_movhf): Ditto.
12731 (*thumb1_movsf_insn): Ditto.
12732 (*thumb_movdf_insn): Ditto.
12733 (movmem12b): Ditto.
12735 (cbranchqi4): Ditto.
12736 (cbranchsi4_insn): Ditto.
12737 (cbranchsi4_scratch): Ditto.
12738 (*negated_cbranchsi4): Ditto.
12739 (*tbit_cbranch): Ditto.
12740 (*tlobits_cbranch): Ditto.
12741 (*tstsi3_cbranch): Ditto.
12742 (*cbranchne_decr1): Ditto.
12743 (*addsi3_cbranch): Ditto.
12744 (*addsi3_cbranch_scratch): Ditto.
12745 (*thumb_cmpdi_zero): Ditto.
12746 (cstoresi_eq0_thumb1): Ditto.
12747 (cstoresi_ne0_thumb1): Ditto.
12748 (*cstoresi_eq0_thumb1_insn): Ditto.
12749 (*cstoresi_ne0_thumb1_insn): Ditto.
12750 (cstoresi_nltu_thumb1): Ditto.
12751 (cstoresi_ltu_thumb1): Ditto.
12752 (thumb1_addsi3_addgeu): Ditto.
12753 (*thumb_jump): Ditto.
12754 (*call_reg_thumb1_v5): Ditto.
12755 (*call_reg_thumb1): Ditto.
12756 (*call_value_reg_thumb1_v5): Ditto.
12757 (*call_value_reg_thumb1): Ditto.
12758 (*call_insn): Ditto.
12759 (*call_value_insn): Ditto.
12760 (thumb1_casesi_internal_pic): Ditto.
12761 (thumb1_casesi_dispatch): Ditto.
12762 (*thumb1_indirect_jump): Ditto.
12763 (prologue_thumb1_interwork): Ditto.
12764 (*epilogue_insns): Ditto.
12765 (consttable_1): Ditto.
12766 (consttable_2): Ditto.
12767 (tablejump): Ditto.
12768 (*thumb1_tablejump): Ditto.
12769 (thumb_eh_return): Ditto.
12770 (define_peephole2): Two of them are thumb1 only and got moved into
12771 new file thumb1.md.
12772 (define_split): Six of them are thumb1 only and got moved into new
12774 * config/arm/thumb1.md: New file comprised of above thumb1 only
12777 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12779 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12780 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12782 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12783 (aarch64_crc_builtin_datum): New struct.
12784 (aarch64_crc_builtin_data): New.
12785 (aarch64_init_crc32_builtins): New function.
12786 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12787 (aarch64_crc32_expand_builtin): New.
12788 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12789 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12790 __ARM_FEATURE_CRC32 when appropriate.
12791 (TARGET_CRC32): Define.
12792 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12793 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12794 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12795 (aarch64_<crc_variant>): New pattern.
12796 * config/aarch64/arm_acle.h: New file.
12797 * config/aarch64/iterators.md (CRC): New int iterator.
12798 (crc_variant, crc_mode): New int attributes.
12799 * doc/aarch64-acle-intrinsics.texi: New file.
12800 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12801 Include aarch64-acle-intrinsics.texi.
12803 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12805 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12806 check for stores group of length 3.
12807 (vect_permute_store_chain): New permutations for stores group of
12809 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12810 of vec_perm_shuffle for the new permutations.
12812 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12814 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12815 table rewriting temporarily on targets not supporting ONE_ONLY.
12817 2014-06-11 Richard Biener <rguenther@suse.de>
12819 PR middle-end/61437
12821 2014-06-04 Richard Biener <rguenther@suse.de>
12823 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12824 TREE_PUBLIC and DECL_EXTERNAL decls.
12826 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12828 * varasm.c (set_implicit_section): New function.
12829 (resolve_unique_section): Use it to set implicit section
12831 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12832 (default_function_section): Likewise.
12833 (decl_binds_to_current_def_p): Constify argument.
12834 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12835 * asan.c (asan_protect_global): Use
12836 symtab_get_node (decl)->implicit_section.
12837 * symtab.c (dump_symtab_base): Dump implicit sections.
12838 (verify_symtab_base): Verify sanity of sectoins and comdats.
12839 (symtab_resolve_alias): Alias share the section of its target.
12840 (set_section_1): New function.
12841 (symtab_node::set_section): Move here, recurse to aliases.
12842 (verify_symtab): Check for duplicated symtab lists.
12843 * tree-core.h (implicit_section_name_p): Remove.
12844 * tree-vect-data-refs.c: Include varasm.h.
12845 (vect_can_force_dr_alignment_p): Fix conditional on when
12846 decl bints to current definition; use
12847 symtab_get_node (decl)->implicit_section.
12848 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12849 * cgraph.h (struct symtab_node): Add implicit_section.
12850 (set_section): Rename to ...
12851 (set_section_for_node): ... this one.
12852 (set_section): Declare.
12853 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12854 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12855 input_overwrite_node, input_varpool_node): Stream implicit_section.
12856 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12857 removal; it will fail in LTO.
12859 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12861 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12862 Change second alternative type to f_mcr.
12863 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12864 and 12th alternatives' types to f_mcr and f_mrc.
12865 (*movdi_aarch64): Same for 12th and 13th alternatives.
12866 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12867 (aarch64_movtilow_tilow): Change type to fmov.
12869 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12871 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12872 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12874 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12876 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12878 (aarch64_sqrdmulh_lane<mode>): Likewise.
12879 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12880 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12881 (aarch64_sqdmulh_laneq<mode>): New expander.
12882 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12883 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12884 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12885 (aarch64_sqdmulh_lane<mode>): New expander.
12886 (aarch64_sqrdmulh_lane<mode>): Likewise.
12887 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12888 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12889 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12890 (aarch64_sqdmlal_laneq<mode>): Likewise.
12891 (aarch64_sqdmlsl_lane<mode>): Likewise.
12892 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12893 (aarch64_sqdmlal2_lane<mode>): Likewise.
12894 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12895 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12896 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12897 (aarch64_sqdmull_lane<mode>): Likewise.
12898 (aarch64_sqdmull_laneq<mode>): Likewise.
12899 (aarch64_sqdmull2_lane<mode>): Likewise.
12900 (aarch64_sqdmull2_laneq<mode>): Likewise.
12902 2014-06-10 Richard Biener <rguenther@suse.de>
12904 PR tree-optimization/61438
12905 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12906 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12907 insertion of IVs if running PRE.
12908 (eliminate): Adjust.
12909 (pass_pre::execute): Likewise.
12910 (pass_fre::execute): Likewise.
12912 2014-06-10 Richard Biener <rguenther@suse.de>
12914 PR middle-end/61456
12915 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12916 Do not use the main variant for the type comparison.
12917 (ncr_compar): Likewise.
12918 (nonoverlapping_component_refs_p): Likewise.
12920 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12922 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12923 REG_CFA_RESTORE mode.
12925 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12927 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12928 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12929 expand_vec_perm_pblendv.
12931 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12933 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12935 Simplify description of __crc32d and __crc32cd intrinsics.
12936 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12939 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12942 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12943 * config.in: Regenerate.
12944 * configure: Likewise.
12946 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12948 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12950 (intersect_static_var_sets): Remove.
12951 (propagate): Do not prune local statics.
12953 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12956 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12957 Set lastprivate_firstprivate even if omp_private_outer_ref
12958 langhook returns true.
12959 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12960 langhook, call unshare_expr on new_var and call
12961 build_outer_var_ref to get the last argument.
12963 2014-06-10 Marek Polacek <polacek@redhat.com>
12966 * doc/extend.texi: Add cindex for transparent_union.
12968 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12970 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12971 init_symbolic_number ().
12973 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12975 PR middle-end/61141
12976 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12977 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12978 (verify_rtl_sharing): Likewise.
12980 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12983 * tree.c (build_qualified_type): Use a canonical type for
12986 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12988 * config/arm/arm-modes.def: Remove XFmode.
12990 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12993 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12994 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12995 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12996 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12997 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12998 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12999 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13000 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13001 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13003 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13005 * tree-core.h (tree_decl_with_vis): Remove section_name.
13007 2014-06-09 Kito Cheng <kito@0xlab.org>
13009 * ira.c (ira): Don't call init_caller_save if LRA enabled
13010 since LRA use its own infrastructure to handle that.
13012 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13014 * symtab.c (dump_symtab_base): Update dumping.
13015 (symtab_make_decl_local): Clear only DECL_COMDAT.
13016 * tree-vect-data-refs.c (Check that variable is static before
13017 tampering with sections.
13018 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13019 (cgraph_create_virtual_clone): Likewise.
13020 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13021 (decl_section_name, set_decl_section_name): New accessors.
13022 (find_decls_types_r): Do not walk section name
13023 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13024 (decl_comdat_group, decl_comdat_group_id): Constify.
13025 (decl_section_name, set_decl_section_name): Update.
13026 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13027 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13028 (cgraph_make_node_local_1): Clear section and comdat group.
13029 * cgraph.h (set_comdat_group): Sanity check.
13030 (get_section, set_section): New.
13031 * ipa-comdats.c (ipa_comdats): Use get_section.
13032 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13033 * lto-streamer-out.c: Do not follow section names.
13034 * c-family/c-common.c (handle_section_attribute): Update.
13035 * lto-cgraph.c (lto_output_node): Output section.
13036 (lto_output_varpool_node): Likewise.
13037 (read_comdat_group): Rename to ...
13038 (read_identifier): ... this one.
13039 (read_string_cst): New function.
13040 (input_node, input_varpool_node): Input section names.
13041 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13042 (new_emutls_decl): Update.
13043 (secname_for_decl): Check section names only of static vars.
13044 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13045 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13046 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13047 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13048 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13049 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13050 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13051 * config/v850/v850.c (v850_insert_attributes): Likewise.
13052 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13054 (h8300_handle_tiny_data_attribute): Likewise.
13055 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13056 (bfin_handle_l2_attribute): Likewise.
13058 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13060 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13061 remove static initializer.
13063 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13065 * varasm.c (use_blocks_for_decl_p): Check symbol table
13066 instead of alias attribute.
13067 (place_block_symbol): Recurse on aliases.
13069 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13071 * ipa-visibility.c: Include varasm.h
13072 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13074 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13076 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13077 outputting aliases.
13079 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13081 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13082 from test_insn into GGC space escape via SET_SRC.
13084 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13086 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13087 call statement, if any.
13088 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13089 statements, if any. Tidy up.
13091 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13094 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13095 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13096 handles swapping the two 64-bit double words on little endian
13097 systems. Include V1TImode and optionally TImode in VSX_LE so that
13098 these types are properly swapped. Change all of the insns and
13099 splits that do the 64-bit swaps to use VSX_LE.
13100 (vsx_le_perm_load_<mode>): Likewise.
13101 (vsx_le_perm_store_<mode>): Likewise.
13102 (splitters for little endian memory operations): Likewise.
13103 (vsx_xxpermdi2_le_<mode>): Likewise.
13104 (vsx_lxvd2x2_le_<mode>): Likewise.
13105 (vsx_stxvd2x2_le_<mode>): Likewise.
13107 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13110 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13111 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13112 and corresponding splitters. Zero extend general register
13113 or memory input operand to XMM temporary. Enable for
13114 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13115 (floatunssi<mode>2): Update expander predicate.
13117 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13119 PR rtl-optimization/61325
13120 * lra-constraints.c (process_address_1): Check scale equal to one
13121 to prevent transformation: base + scale * index => base + new_reg.
13123 2014-06-06 Richard Biener <rguenther@suse.de>
13125 PR tree-optimization/59299
13126 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13128 (nearest_common_dominator_of_uses): Likewise.
13129 (statement_sink_location): Adjust. Support sinking loads.
13131 2014-06-06 Martin Jambor <mjambor@suse.cz>
13133 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13134 (build_agg_jump_func_from_list): Likewise.
13135 (determine_known_aggregate_parts): Renamed to
13136 determine_locally_known_aggregate_parts. Moved some functionality
13137 to the two functions above, removed bound checks.
13139 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13141 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13142 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13143 (aarch64_progress_pointer): Likewise.
13144 (aarch64_copy_one_part_and_move_pointers): Likewise.
13145 (aarch64_expand_movmen): Likewise.
13146 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13147 * config/aarch64/aarch64.md (movmem<mode>): New.
13149 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13151 * targhooks.c (default_add_stmt_cost): Call target specific
13152 hook instead of default one.
13154 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13156 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13157 endianness instead of host endianness.
13158 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13161 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13164 * function.c (instantiate_decls): Process the saved static chain.
13165 (expand_function_start): If not optimizing, save the static chain
13167 * tree-nested.c (convert_all_function_calls): Always create the static
13168 chain for nested functions if not optimizing.
13170 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13172 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13174 2014-06-06 Richard Biener <rguenther@suse.de>
13176 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13177 (construct_init_block): Likewise.
13178 (construct_exit_block): Likewise.
13179 (pass_expand::execute): Likewise.
13180 * graphite.c (graphite_transforms): Replace check for current_loops
13181 with a check for > 1 loops.
13182 (pass_graphite_transforms::execute): Adjust.
13183 * ipa-split.c (split_function): Remove check for current_loops.
13184 * omp-low.c (expand_parallel_call): Likewise.
13185 (expand_omp_for_init_counts): Likewise.
13186 (extract_omp_for_update_vars): Likewise.
13187 (expand_omp_for_generic): Likewise.
13188 (expand_omp_sections): Likewise.
13189 (expand_omp_target): Likewise.
13190 * tracer.c (tail_duplicate): Likewise.
13191 (pass_tracer::execute): Likewise.
13192 * trans-mem.c (expand_transaction): Likewise.
13193 * tree-complex.c (expand_complex_div_wide): Likewise.
13194 * tree-eh.c (lower_resx): Likewise.
13195 (cleanup_empty_eh_merge_phis): Likewise.
13196 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13197 current_loops with a check for > 1 loops.
13198 (pass_predcom::execute): Adjust.
13199 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13200 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13201 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13202 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13203 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13204 * tree-switch-conversion.c (process_switch): Likewise.
13205 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13206 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13207 (execute_vrp): Likewise.
13208 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13210 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13212 * rtl.h (insn_location): Declare.
13213 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13214 with UNKNOWN_LOCATION.
13215 * emit-rtl.c (insn_location): New function.
13216 * final.c (notice_source_line): Check that the instruction has a
13217 location before retrieving it and use insn_location.
13218 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13219 * print-rtl.c (print_rtx): Likewise.
13221 2014-06-06 Richard Biener <rguenther@suse.de>
13223 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13225 2014-06-06 Christian Bruel <christian.bruel@st.com>
13227 PR tree-optimization/43934
13228 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13231 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13233 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13234 return NO_REGS for extra address and memory constraints. Handle
13235 operands that match (or are equivalent to something that matches)
13236 extra constant constraints. Ignore other non-register operands.
13238 2014-06-06 Alan Modra <amodra@gmail.com>
13241 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13242 * doc/tm.texi: Regenerate.
13243 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13244 Use throughout in place of REG_PARM_STACK_SPACE.
13245 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13246 "incoming" param. Pass to rs6000_function_parms_need_stack.
13247 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13248 prototype_p when incoming. Use function decl when incoming
13249 to handle K&R style functions.
13250 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13251 (INCOMING_REG_PARM_STACK_SPACE): Define.
13253 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13256 * cfgexpand.c (expand_debug_expr): Use address space of nested
13257 TREE_TYPE for ADDR_EXPR and MEM_REF.
13259 2014-06-05 Jeff Law <law@redhat.com>
13261 PR tree-optimization/61289
13262 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13263 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13264 looking for those which match LHS. All callers changed.
13265 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13266 parameters and code which manipulated them. All callers changed.
13267 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13268 and DST_MAP parameters. Simplify invalidation code by just calling
13269 invalidate_equivalences. All callers changed.
13270 (thread_across_edge): Simplify now that we don't need to maintain
13271 the map of equivalences to invalidate.
13273 2014-06-05 Kai Tietz <ktietz@redhat.com>
13274 Richard Henderson <rth@redhat.com>
13277 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13278 checking for !TARGET_X32.
13279 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13280 (sibcall_intern): New define_insn, plus required peepholes.
13281 (sibcall_pop_intern): Likewise.
13282 (sibcall_value_intern): Likewise.
13283 (sibcall_value_pop_intern): Likewise.
13285 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13287 * tree-inline.c (tree_function_versioning): Check DF info existence
13288 before accessing it.
13290 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13292 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13294 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13295 aarch64_frame hard_fp_offset and frame_size.
13296 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13297 frame_size; remove original_frame_size.
13298 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13299 (aarch64_initial_elimination_offset): Remove frame_size and
13300 offset. Use aarch64_frame frame_size.
13302 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13303 Jiong Wang <jiong.wang@arm.com>
13304 Renlin <renlin.li@arm.com>
13306 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13307 initialization of R30 offset. Update offset. Iterate core
13308 regisers upto X30. Remove X29, X30 specific code.
13310 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13311 Jiong Wang <jiong.wang@arm.com>
13313 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13314 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13315 (aarch64_register_saved_on_entry): Adjust test.
13317 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13319 * config/aarch64/aarch64.h (machine_function): Move
13320 saved_varargs_size from here...
13321 (aarch64_frame): ... to here.
13323 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13324 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13325 (aarch64_initial_elimination_offset)
13326 (aarch64_setup_incoming_varargs): Adjust location of
13327 saved_varargs_size.
13329 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13331 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13334 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13335 Prachi Godbole <Prachi.Godbole@imgtec.com>
13337 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13338 mips32r5 entry to use PROCESSOR_P5600.
13339 * config/mips/mips-tables.opt: Regenerate.
13340 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13341 * config/mips/mips.c (mips_fmadd_bypass): New function.
13342 (mips_rtx_cost_data): Add costs for p5600.
13343 (mips_issue_rate): Add support for p5600.
13344 (mips_multipass_dfa_lookahead): Likewise.
13345 * config/mips/mips.h (TUNE_P5600): New define.
13346 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13347 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13348 * config/mips/mips.md: Include p5600.md.
13349 (processor): Add p5600.
13350 * config/mips/p5600.md: New file.
13352 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13354 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13355 * config/i386/predicates.md (palignr_operand): New.
13356 Indicates if permutation is suitable for palignr instruction.
13358 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13360 PR tree-optimization/61319
13361 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13362 stmt belongs to loop.
13364 2014-06-05 Richard Biener <rguenther@suse.de>
13366 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13367 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13368 (lookup_tmp_var): Adjust.
13369 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13371 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13373 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13375 2014-06-05 Marek Polacek <polacek@redhat.com>
13378 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13380 2014-06-04 Tom de Vries <tom@codesourcery.com>
13382 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13385 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13387 PR tree-optimization/61385
13388 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13390 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13392 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13393 changed to use fatal_error.
13394 (main): Ensure lto_wrapper_cleanup is run atexit.
13396 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13398 * lra-constraints.c (valid_address_p): Move earlier in file.
13399 (address_eliminator): New structure.
13400 (satisfies_memory_constraint_p): New function.
13401 (satisfies_address_constraint_p): Likewise.
13402 (process_alt_operands, process_address, curr_insn_transform): Use them.
13404 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13406 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13408 (target_lra_int, default_target_lra_int, this_target_lra_int)
13409 (op_alt_data): Delete.
13410 * lra.h (lra_init): Delete.
13411 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13412 (init_insn_code_data_once): Remove op_alt_data handling.
13413 (finish_insn_code_data_once): Likewise.
13414 (init_op_alt_data): Delete.
13415 (get_static_insn_data): Initialize operand_alternative to null.
13416 (free_insn_recog_data): Cast operand_alternative before freeing it.
13417 (setup_operand_alternative): Take the operand_alternative as
13418 parameter and assume it isn't already cached in the static
13420 (lra_set_insn_recog_data): Update accordingly.
13421 (lra_init): Delete.
13422 * ira.c (ira_init): Don't call lra_init.
13423 * target-globals.h (this_target_lra_int): Declare.
13424 (target_globals): Remove lra_int.
13425 (restore_target_globals): Update accordingly.
13426 * target-globals.c: Don't include lra-int.h.
13427 (default_target_globals, save_target_globals): Remove lra_int.
13429 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13431 * recog.h (operand_alternative): Convert reg_class, reject,
13432 matched and matches into bitfields.
13433 (preprocess_constraints): New overload.
13434 (preprocess_insn_constraints): New function.
13435 (preprocess_constraints): Take the insn as parameter.
13436 (recog_op_alt): Change into a pointer.
13437 (target_recog): Add x_op_alt.
13438 * recog.c (asm_op_alt): New variable.
13439 (recog_op_alt): Change into a pointer.
13440 (preprocess_constraints): New overload, replacing the old function
13441 definition with one that doesn't use global state.
13442 (preprocess_insn_constraints): New function.
13443 (preprocess_constraints): Use them. Take the insn as parameter.
13444 Use asm_op_alt for asms.
13445 (recog_init): Free existing x_op_alt entries.
13446 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13448 (make_early_clobber_and_input_conflicts): Likewise.
13449 (process_bb_node_lives): Pass the insn to process_constraints.
13450 * reg-stack.c (check_asm_stack_operands): Likewise.
13451 (subst_asm_stack_regs): Likewise.
13452 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13453 * regrename.c (build_def_use): Likewise.
13454 * sched-deps.c (sched_analyze_insn): Likewise.
13455 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13456 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13457 (note_invalid_constants): Likewise.
13458 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13459 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13462 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13464 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13465 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13467 (make_early_clobber_and_input_conflicts): Likewise.
13468 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13470 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13472 * recog.h (alternative_class): New function.
13473 (which_op_alt): Return a const recog_op_alt.
13474 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13475 (subst_asm_stack_regs): Likewise.
13476 * config/arm/arm.c (note_invalid_constants): Likewise.
13477 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13478 the operand_alternative; use alternative class instead.
13479 * sel-sched.c (get_reg_class): Likewise.
13480 * regrename.c (build_def_use): Likewise.
13481 (hide_operands, restore_operands, record_out_operands): Update type
13484 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13486 * recog.h (recog_op_alt): Convert to a flat array.
13487 (which_op_alt): New function.
13488 * recog.c (recog_op_alt): Convert to a flat array.
13489 (preprocess_constraints): Update accordingly, grouping all
13490 operands of the same alternative together, rather than the
13492 * ira-lives.c (check_and_make_def_conflict): Likewise.
13493 (make_early_clobber_and_input_conflicts): Likewise.
13494 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13495 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13496 (subst_asm_stack_regs): Likewise.
13497 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13498 * regrename.c (hide_operands, record_out_operands): Likewise.
13499 (build_def_use): Likewise.
13500 * sel-sched.c (get_reg_class): Likewise.
13501 * config/arm/arm.c (note_invalid_constants): Likewise.
13503 2014-06-04 Jason Merrill <jason@redhat.com>
13507 * gimplify.c (gimplify_arg): Non-static.
13508 * gimplify.h: Declare it.
13510 2014-06-04 Richard Biener <rguenther@suse.de>
13512 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13513 TREE_PUBLIC and DECL_EXTERNAL decls.
13515 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13517 * regcprop.c (copyprop_hardreg_forward_1): Account for
13518 HARD_REGNO_CALL_PART_CLOBBERED.
13520 2014-06-04 Richard Biener <rguenther@suse.de>
13522 * configure.ac: Check whether the underlying type of int64_t
13523 is long or long long.
13524 * configure: Regenerate.
13525 * config.in: Likewise.
13526 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13527 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13529 2014-06-04 Richard Biener <rguenther@suse.de>
13531 PR tree-optimization/60098
13532 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13534 (dse_optimize_stmt): Simplify, now that we found a kill
13537 2014-06-04 Richard Biener <rguenther@suse.de>
13539 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13540 of accesses with non-invariant address.
13542 2014-06-04 Martin Liska <mliska@suse.cz>
13544 * cgraph.h (cgraph_make_wrapper): New function introduced.
13545 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13546 * ipa-inline.h (inline_analyze_function): The function is global.
13547 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13549 2014-06-04 Martin Liska <mliska@suse.cz>
13551 * tree.h (private_lookup_attribute_starting): New function.
13552 (lookup_attribute_starting): Likewise.
13553 * tree.c (private_lookup_attribute_starting): Likewise.
13555 2014-06-04 Martin Liska <mliska@suse.cz>
13557 * cgraph.h (expand_thunk): New argument added.
13558 (address_taken_from_non_vtable_p): New global function.
13559 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13560 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13561 * cgraphunit.c (analyze_function): Likewise.
13562 (assemble_thunks_and_aliases): Argument added to call.
13563 (expand_thunk): New argument forces to produce GIMPLE thunk.
13565 2014-06-04 Martin Liska <mliska@suse.cz>
13567 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13568 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13569 * profile.c (branch_prob): Likewise.
13571 2014-06-04 Martin Jambor <mjambor@suse.cz>
13574 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13575 handler for switch on an ipa_ref_use enum.
13576 * ipa-reference.c (analyze_function): Likewise.
13578 2014-06-04 Kai Tietz <ktietz@redhat.com>
13580 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13581 from old call-instruction.
13583 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13585 * config/aarch64/aarch64.c (aarch64_classify_address)
13586 (aarch64_legitimize_reload_address): Support full addressing modes
13588 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13589 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13591 2014-06-03 Andrew Pinski <apinski@cavium.com>
13593 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13596 2014-06-03 Andrew Pinski <apinski@cavium.com>
13598 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13599 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13601 2014-06-03 Kai Tietz <ktietz@redhat.com>
13603 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13606 2014-06-03 Dehao Chen <dehao@google.com>
13608 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13611 2014-06-03 Marek Polacek <polacek@redhat.com>
13614 * doc/invoke.texi: Document -Wswitch-bool.
13615 * function.c (stack_protect_epilogue): Cast controlling expression of
13617 * gengtype.c (walk_type): Generate switch expression with its
13618 controlling expression cast to int.
13620 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13622 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13624 * config/avr/avr-tables.opt: Regenerate.
13625 * config/avr/t-multilib: Regenerate.
13626 * doc/avr-mmcu.texi: Regenerate.
13628 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13629 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13631 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13632 (ata6617c, ata664251): Add new avr35 devices.
13633 (ata6612c): Add new avr4 device.
13634 (ata6613c, ata6614q): Add new avr5 devices.
13635 * config/avr/avr-tables.opt: Regenerate.
13636 * config/avr/t-multilib: Regenerate.
13637 * doc/avr-mmcu.texi: Regenerate.
13639 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13641 * gcc/config/aarch64/aarch64-builtins.c
13642 (aarch64_types_binop_ssu_qualifiers): New static data.
13643 (TYPES_BINOP_SSU): Define.
13644 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13645 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13646 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13647 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13648 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13649 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13650 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13651 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13652 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13653 suffix to builtin function name, remove cast.
13654 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13655 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13656 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13658 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13660 * gcc/config/aarch64/aarch64-builtins.c
13661 (aarch64_types_binop_uus_qualifiers,
13662 aarch64_types_shift_to_unsigned_qualifiers,
13663 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13664 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13665 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13666 sqshlu_n, uqshl_n): Update qualifiers.
13667 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13668 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13669 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13670 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13671 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13672 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13673 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13674 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13675 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13676 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13677 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13678 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13679 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13680 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13681 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13682 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13683 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13684 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13685 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13686 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13687 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13688 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13689 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13690 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13691 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13692 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13693 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13695 2014-06-03 Teresa Johnson <tejohnson@google.com>
13697 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13699 2014-06-02 Jason Merrill <jason@redhat.com>
13702 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13704 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13706 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13709 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13711 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13713 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13714 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13715 * config/aarch64/iterators.md (REVERSE): New iterator.
13716 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13717 (rev_op): New int_attribute.
13718 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13719 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13720 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13721 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13722 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13723 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13724 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13725 Replace temporary __asm__ with __builtin_shuffle.
13727 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13729 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13731 * config/mips/mips-tables.opt: Regenerate.
13732 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13733 to use mips_isa_rev rather than ISA_MIPS32R2.
13734 * config/mips/mips.h (ISA_MIPS32R3): New define.
13735 (ISA_MIPS32R5): New define.
13736 (ISA_MIPS64R3): New define.
13737 (ISA_MIPS64R5): New define.
13738 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13739 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13740 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13742 (MIPS_ISA_SYNCI_SPEC): Likewise.
13743 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13744 (LINK_SPEC): Added mips32r3 and mips32r5.
13745 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13746 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13747 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13748 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13749 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13750 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13751 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13753 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13755 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13757 * config/mips/mips.opt (mxpa): New option.
13758 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13761 2014-06-03 Martin Jambor <mjambor@suse.cz>
13764 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13767 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13769 PR tree-optimization/61328
13770 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13771 initialization from find_bswap_or_nop_1.
13772 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13773 in source_expr2 before using the size value the function sets. Also
13774 make use of init_symbolic_number () in both the old place and
13775 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13776 doing recursion in the GIMPLE_BINARY_RHS case.
13778 2014-06-03 Richard Biener <rguenther@suse.de>
13780 PR tree-optimization/61383
13781 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13784 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13786 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13787 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13788 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13789 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13791 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13792 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13793 * system.h: ...here and make it unconditional.
13794 * target.def (conditional_register_usage): Mention
13795 define_register_constraint instead of old-style constraint macros.
13796 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13797 * doc/tm.texi: Regenerate.
13798 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13799 protected by !USE_MD_CONSTRAINTS.
13800 * config/frv/frv.md: Remove quote from old version of documentation.
13801 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13802 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13803 CONST_DOUBLE_OK_FOR_LETTER.
13804 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13806 2014-06-02 Andrew Pinski <apinski@cavium.com>
13808 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13809 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13810 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13811 file whose name depends on -mabi= and -mbig-endian.
13812 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13813 Handle LP64 better and handle ilp32 too.
13814 (MULTILIB_OPTIONS): Delete.
13815 (MULTILIB_DIRNAMES): Delete.
13817 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13819 * expr.h: Remove prototypes of functions defined in builtins.c.
13820 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13821 Remove prototypes of functions defined in builtins.c.
13822 * builtins.h: Update prototype list to include all exported functions.
13823 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13824 no_c99_libc_has_function): Move to targhooks.c
13825 (build_string_literal, build_call_expr_loc_array,
13826 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13828 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13829 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13830 no_c99_libc_has_function): Relocate from builtins.c.
13831 * tree.c: Include builtins.h.
13832 (build_call_expr_loc_array, build_call_expr_loc_vec,
13833 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13835 * fold-const.h (fold_fma): Move prototype to builtins.h.
13836 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13837 * asan.c: Include builtins.h.
13838 * cfgexpand.c: Likewise.
13839 * convert.c: Likewise.
13840 * emit-rtl.c: Likewise.
13841 * except.c: Likewise.
13842 * expr.c: Likewise.
13843 * fold-const.c: Likewise.
13844 * gimple-fold.c: Likewise.
13845 * gimple-ssa-strength-reduction.c: Likewise.
13846 * gimplify.c: Likewise.
13847 * ipa-inline.c: Likewise.
13848 * ipa-prop.c: Likewise.
13849 * lto-streamer-out.c: Likewise.
13850 * stmt.c: Likewise.
13851 * tree-inline.c: Likewise.
13852 * tree-object-size.c: Likewise.
13853 * tree-sra.c: Likewise.
13854 * tree-ssa-ccp.c: Likewise.
13855 * tree-ssa-forwprop.c: Likewise.
13856 * tree-ssa-loop-ivcanon.c: Likewise.
13857 * tree-ssa-loop-ivopts.c: Likewise.
13858 * tree-ssa-math-opts.c: Likewise.
13859 * tree-ssa-reassoc.c: Likewise.
13860 * tree-ssa-threadedge.c: Likewise.
13861 * tree-streamer-in.c: Likewise.
13862 * tree-vect-data-refs.c: Likewise.
13863 * tree-vect-patterns.c: Likewise.
13864 * tree-vect-stmts.c: Likewise.
13865 * config/aarch64/aarch64.c: Likewise.
13866 * config/alpha/alpha.c: Likewise.
13867 * config/arc/arc.c: Likewise.
13868 * config/arm/arm.c: Likewise.
13869 * config/avr/avr.c: Likewise.
13870 * config/bfin/bfin.c: Likewise.
13871 * config/c6x/c6x.c: Likewise.
13872 * config/cr16/cr16.c: Likewise.
13873 * config/cris/cris.c: Likewise.
13874 * config/epiphany/epiphany.c: Likewise.
13875 * config/fr30/fr30.c: Likewise.
13876 * config/frv/frv.c: Likewise.
13877 * config/h8300/h8300.c: Likewise.
13878 * config/i386/i386.c: Likewise.
13879 * config/i386/winnt.c: Likewise.
13880 * config/ia64/ia64.c: Likewise.
13881 * config/iq2000/iq2000.c: Likewise.
13882 * config/lm32/lm32.c: Likewise.
13883 * config/m32c/m32c.c: Likewise.
13884 * config/m32r/m32r.c: Likewise.
13885 * config/m68k/m68k.c: Likewise.
13886 * config/mcore/mcore.c: Likewise.
13887 * config/mep/mep.c: Likewise.
13888 * config/microblaze/microblaze.c: Likewise.
13889 * config/mips/mips.c: Likewise.
13890 * config/mmix/mmix.c: Likewise.
13891 * config/mn10300/mn10300.c: Likewise.
13892 * config/moxie/moxie.c: Likewise.
13893 * config/msp430/msp430.c: Likewise.
13894 * config/nds32/nds32.c: Likewise.
13895 * config/pa/pa.c: Likewise.
13896 * config/pdp11/pdp11.c: Likewise.
13897 * config/picochip/picochip.c: Likewise.
13898 * config/rl78/rl78.c: Likewise.
13899 * config/rs6000/rs6000.c: Likewise.
13900 * config/rx/rx.c: Likewise.
13901 * config/s390/s390.c: Likewise.
13902 * config/score/score.c: Likewise.
13903 * config/sh/sh.c: Likewise.
13904 * config/sparc/sparc.c: Likewise.
13905 * config/spu/spu.c: Likewise.
13906 * config/stormy16/stormy16.c: Likewise.
13907 * config/tilegx/tilegx.c: Likewise.
13908 * config/tilepro/tilepro.c: Likewise.
13909 * config/v850/v850.c: Likewise.
13910 * config/vax/vax.c: Likewise.
13911 * config/xtensa/xtensa.c: Likewise.
13913 2014-06-02 Jeff Law <law@redhat.com>
13915 PR rtl-optimization/61094
13916 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13917 was marked as do_no_reextend. If a copy is needed to eliminate
13918 an extension, then mark it as do_not_reextend.
13920 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13922 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13924 2014-06-02 Richard Henderson <rth@redhat.com>
13927 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13928 addresses inside asms. Use output_operand_lossage instead of
13931 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13934 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13935 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13937 2014-06-02 Tom de Vries <tom@codesourcery.com>
13939 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13940 case that x has VOIDmode.
13942 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13944 * varasm.c (copy_constant): Delete function.
13945 (build_constant_desc): Don't call it.
13947 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13950 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13951 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13952 with immediate_operand.
13954 2014-06-02 Andreas Schwab <schwab@suse.de>
13956 * config/ia64/ia64.c
13957 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13958 pending_data_specs first.
13960 2014-06-02 Richard Biener <rguenther@suse.de>
13962 PR tree-optimization/61378
13963 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13964 valueized_anything.
13966 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13968 * config/i386/constraints.md (Bw): Rename from 'w'.
13969 (Bz): Rename from 'z'.
13970 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13972 2014-06-01 Kai Tietz <ktietz@redhat.com>
13975 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13976 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13977 instead of m constraint.
13979 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13981 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13982 a separate alternative where the scratch operand 2 is marked as
13985 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13987 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13988 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13989 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13990 and __builtins_arm_get_fpscr.
13991 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13992 __builtins_arm_get_fpscr.
13993 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13994 __builtins_arm_ldfpscr.
13995 (arm_atomic_assign_expand_fenv): New function.
13996 * config/arm/vfp.md (set_fpscr): New pattern.
13997 (get_fpscr) : Likewise.
13998 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14000 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14001 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14003 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14005 * asan.c (report_error_func): Add SLOW_P argument, use
14006 BUILT_IN_ASAN_*_N if set.
14007 (build_check_stmt): Likewise.
14008 (instrument_derefs): If T has insufficient alignment,
14009 force same handling as for odd sizes.
14011 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14012 BUILT_IN_ASAN_REPORT_STORE_N): New.
14013 * asan.c (struct asan_mem_ref): Change access_size type to
14015 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14016 update_mem_ref_hash_table): Likewise.
14017 (asan_mem_ref_hasher::hash): Hash in a HWI.
14018 (report_error_func): Change size_in_bytes argument to HWI.
14019 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14021 (build_shadow_mem_access): New function.
14022 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14023 Handle size_in_bytes not power of two or larger than 16.
14024 (instrument_derefs): Don't give up if size_in_bytes is not
14025 power of two or is larger than 16.
14027 2014-05-30 Kai Tietz <ktietz@redhat.com>
14030 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14031 for sibling-tail-calls.
14032 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14034 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14035 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14037 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14039 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14040 * config/avr/avr-tables.opt: Regenerate.
14041 * config/avr/t-multilib: Regenerate.
14042 * doc/avr-mmcu.texi: Regenerate.
14044 2014-05-30 Ian Lance Taylor <iant@google.com>
14046 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14049 2014-05-30 Tom de Vries <tom@codesourcery.com>
14051 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14054 2014-05-30 Tom de Vries <tom@codesourcery.com>
14056 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14057 * lra.c (initialize_lra_reg_info_element): Add init of
14058 actual_call_used_reg_set field.
14059 (lra): Call lra_create_live_ranges before lra_inheritance for
14061 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14063 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14064 instead of call_used_reg_set for -fuse-caller-save.
14065 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14067 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14069 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14071 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14073 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14075 * ira.c (ira_get_dup_out_num): Check for output operands at
14076 the start of the loop. Handle cases where an included alternative
14077 follows an excluded one.
14079 2014-05-29 Mike Stump <mikestump@comcast.net>
14082 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14083 post ld passes when lto is used.
14085 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14087 PR rtl-optimization/61325
14088 * lra-constraints.c (process_address): Rename to process_address_1.
14089 (process_address): New function.
14091 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14093 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14094 TYPES_BINOPV): New static data.
14095 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14097 * config/aarch64/aarch64-simd.md (aarch64_ext,
14098 aarch64_im_lane_boundsi): New patterns.
14099 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14101 (aarch64_evpc_ext): New function.
14103 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14105 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14106 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14107 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14108 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14109 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14111 2014-05-29 Tom de Vries <tom@codesourcery.com>
14113 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14115 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14116 Richard Sandiford <rdsandiford@googlemail.com>
14118 * arm/iterators.md (shiftable_ops): New code iterator.
14119 (t2_binop0, arith_shift_insn): New code attributes.
14120 * arm/predicates.md (shift_nomul_operator): New predicate.
14121 * arm/arm.md (insn_enabled): Delete.
14122 (enabled): Remove insn_enabled test.
14123 (*arith_shiftsi): Delete. Replace with ...
14124 (*<arith_shift_insn>_multsi): ... new pattern.
14125 (*<arith_shift_insn>_shiftsi): ... new pattern.
14126 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14128 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14129 Tom de Vries <tom@codesourcery.com>
14131 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14132 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14134 (mips_split_call): Use POST_CALL_TMP_REG.
14135 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14137 2014-05-29 Tom de Vries <tom@codesourcery.com>
14139 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14140 with #ifdef STACK_REGS.
14142 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14144 * varasm.c (get_variable_section): Walk aliases.
14145 (place_block_symbol): Walk aliases.
14147 2014-05-28 Tom de Vries <tom@codesourcery.com>
14150 2014-05-28 Tom de Vries <tom@codesourcery.com>
14152 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14153 * lra.c (initialize_lra_reg_info_element): Add init of
14154 actual_call_used_reg_set field.
14155 (lra): Call lra_create_live_ranges before lra_inheritance for
14157 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14159 * lra-constraints.c (need_for_call_save_p): Use
14160 actual_call_used_reg_set instead of call_used_reg_set for
14162 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14164 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14166 * doc/md.texi: Document that the % constraint character must
14167 be at the beginning of the string.
14168 * genoutput.c (validate_insn_alternatives): Check that '=',
14169 '+' and '%' only appear at the beginning of a constraint.
14170 * ira.c (commutative_constraint_p): Delete.
14171 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14172 at the start of the string.
14173 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14175 * config/arm/neon.md (bicdi3_neon): Likewise.
14176 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14177 (slt_si, sltu_si): Likewise.
14178 * config/vax/vax.md (sbcdi3): Likewise.
14179 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14180 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14181 (mul64): Move '%' to beginning of constraint.
14182 * config/arm/arm.md (*xordi3_insn): Likewise.
14183 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14184 (xorsi3): Likewise.
14186 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14188 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14190 2014-05-28 Jason Merrill <jason@redhat.com>
14193 * cgraph.h (symtab_node::get_comdat_group_id): New.
14194 * cgraphunit.c (analyze_functions): Call it.
14195 * symtab.c (dump_symtab_node): Likewise.
14196 * tree.c (decl_comdat_group_id): New.
14197 * tree.h: Declare it.
14198 * lto-streamer-out.c (write_symbol): Use it.
14199 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14201 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14203 PR bootstrap/PR61146
14204 * wide-int.cc: Do not include longlong.h when compiling with clang.
14206 2014-05-28 Richard Biener <rguenther@suse.de>
14208 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14209 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14210 (vrp_visit_assignment_or_call): Print less vertical space.
14211 (vrp_visit_stmt): Likewise.
14212 (vrp_visit_phi_node): Likewise. For a PHI argument with
14213 VR_VARYING range consider recording it as copy.
14215 2014-05-28 Richard Biener <rguenther@suse.de>
14218 2014-05-28 Richard Biener <rguenther@suse.de>
14220 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14222 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14224 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14225 sufficiently aligned and an offset is used at the same time.
14226 (expand_expr_real_1): Likewise.
14228 2014-05-28 Richard Biener <rguenther@suse.de>
14230 PR middle-end/61045
14231 * fold-const.c (fold_comparison): When folding
14232 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14233 the sign of the remaining constant operand stays the same.
14235 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14237 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14238 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14239 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14241 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14242 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14243 (m32bit-doubles) Likewise.
14244 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14245 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14248 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14250 * configure.ac ($gcc_cv_ld_clearcap): New test.
14251 * configure: Regenerate.
14252 * config.in: Regenerate.
14253 * config/sol2.opt (mclear-hwcap): New option.
14254 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14255 * config/sol2-clearcap.map: Moved here from
14256 testsuite/gcc.target/i386/clearcap.map.
14257 * config/sol2-clearcapv2.map: Move here from
14258 gcc.target/i386/clearcapv2.map.
14259 * config/t-sol2 (install): Depend on install-clearcap-map.
14260 (install-clearcap-map): New target.
14261 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14264 2014-05-28 Richard Biener <rguenther@suse.de>
14266 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14267 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14268 ... here and remove the rest.
14269 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14271 2014-05-28 Richard Biener <rguenther@suse.de>
14273 PR tree-optimization/61335
14274 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14275 new range fails, drop to varying.
14277 2014-05-28 Olivier Hainque <hainque@adacore.com>
14279 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14280 (CPP_SPEC): Add entry for -mcpu=8548.
14281 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14282 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14284 2014-05-28 Tom de Vries <tom@codesourcery.com>
14286 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14287 * lra.c (initialize_lra_reg_info_element): Add init of
14288 actual_call_used_reg_set field.
14289 (lra): Call lra_create_live_ranges before lra_inheritance for
14291 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14293 * lra-constraints.c (need_for_call_save_p): Use
14294 actual_call_used_reg_set instead of call_used_reg_set for
14296 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14298 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14299 Tom de Vries <tom@codesourcery.com>
14301 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14303 (@item -fuse-caller-save): New item.
14305 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14306 Tom de Vries <tom@codesourcery.com>
14308 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14309 OPT_fuse_caller_save.
14311 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14312 Tom de Vries <tom@codesourcery.com>
14314 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14315 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14316 get_call_reg_set_usage.
14317 * resource.c (mark_set_resources, mark_target_live_regs): Use
14318 get_call_reg_set_usage.
14319 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14321 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14322 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14323 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14324 * ira-build.c (ira_create_allocno): Init
14325 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14326 (create_cap_allocno, propagate_allocno_info)
14327 (propagate_some_info_from_allocno)
14328 (copy_info_to_removed_store_destinations): Handle
14329 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14330 * ira-costs.c (ira_tune_allocno_costs): Use
14331 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14333 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14334 Tom de Vries <tom@codesourcery.com>
14336 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14337 and function_used_regs_valid fields.
14338 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14339 find_all_hard_reg_sets.
14340 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14341 (get_call_reg_set_usage): New function.
14342 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14343 * regs.h (get_call_reg_set_usage): Declare.
14345 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14348 * config/dbx.h (License): Add Runtime Library Exception.
14349 * config/newlib-stdint.h (License): Same.
14350 * config/rtems.h (License): Same
14351 * config/initfini-array.h (License): Same
14352 * config/v850/v850.h (License): Same.
14353 * config/v850/v850-opts.h (License): Same
14354 * config/v850/rtems.h (License): Same.
14356 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14359 * doc/extend.texi (Local Labels): Note that label differences are
14360 not supported for AVR.
14362 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14363 Olivier Hainque <hainque@adacore.com>
14365 * rtl.h (set_for_reg_notes): Declare.
14366 * emit-rtl.c (set_for_reg_notes): New function.
14367 (set_unique_reg_note): Use it.
14368 * optabs.c (add_equal_note): Likewise
14370 2014-05-27 Andrew Pinski <apinski@cavium.com>
14372 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14373 Use <w> for the register in assembly template.
14374 (stack_protect_test): Use the mode of operands[0] for the result.
14375 (stack_protect_test_<mode>): Use <w> for the register
14376 in assembly template.
14378 2014-05-27 DJ Delorie <dj@redhat.com>
14380 * config/rx/rx.c (add_vector_labels): New.
14381 (rx_output_function_prologue): Call it.
14382 (rx_handle_func_attribute): Don't require empty arguments.
14383 (rx_handle_vector_attribute): New.
14384 (rx_attribute_table): Add "vector" attribute.
14385 * doc/extend.texi (interrupt, vector): Document new/changed
14386 RX-specific attributes.
14388 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14390 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14392 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14393 predicate to detect a negative quotient.
14395 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14397 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14398 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14399 Add X - Y CMP 0 to X CMP Y transformation.
14400 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14402 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14404 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14407 2014-05-27 Steve Ellcey <sellcey@mips.com>
14409 * config/mips/mips.c: Add include of cgraph.h.
14411 2014-05-27 Richard Biener <rguenther@suse.de>
14413 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14415 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14418 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14419 * config/arm/arm-cores.def (License): Same.
14420 * config/arm/arm-opts.h (License): Same.
14421 * config/arm/aout.h (License): Same.
14422 * config/arm/bpabi.h (License): Same.
14423 * config/arm/elf.h (License): Same.
14424 * config/arm/linux-elf.h (License): Same.
14425 * config/arm/linux-gas.h (License): Same.
14426 * config/arm/netbsd-elf.h (License): Same.
14427 * config/arm/uclinux-eabi.h (License): Same.
14428 * config/arm/uclinux-elf.h (License): Same.
14429 * config/arm/vxworks.h (License): Same.
14431 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14433 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14434 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14435 (arm_init_neon_builtins): Handle NEON_BSWAP.
14436 Define required type nodes.
14437 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14438 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14439 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14440 * config/arm/iterators.md (VDQHSD): New mode iterator.
14442 2014-05-27 Richard Biener <rguenther@suse.de>
14444 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14445 Try using literal operands when comparing value-ranges failed.
14447 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14449 * ira.c (commutative_operand): Adjust for change to recog_data.
14450 [Missing from previous commit.]
14452 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14454 * system.h (TEST_BIT): New macro.
14455 * recog.h (alternative_mask): New type.
14456 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14457 (recog_data_d): Replace alternative_enabled_p array with
14458 enabled_alternatives.
14459 (target_recog): New structure.
14460 (default_target_recog, this_target_recog): Declare.
14461 (get_enabled_alternatives, recog_init): Likewise.
14462 * recog.c (default_target_recog, this_target_recog): New variables.
14463 (get_enabled_alternatives): New function.
14464 (extract_insn): Use it.
14465 (recog_init): New function.
14466 (preprocess_constraints, constrain_operands): Adjust for change to
14468 * postreload.c (reload_cse_simplify_operands): Likewise.
14469 * reload.c (find_reloads): Likewise.
14470 * ira-costs.c (record_reg_classes): Likewise.
14471 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14472 all alternatives after a disabled one would be skipped.
14473 (ira_implicitly_set_insn_hard_regs): Likewise.
14474 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14475 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14476 with enabled_alternatives.
14477 * lra.c (free_insn_recog_data): Update accordingly.
14478 (lra_update_insn_recog_data): Likewise.
14479 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14480 * lra-constraints.c (process_alt_operands): Likewise. Handle
14481 only_alternative as part of the enabled mask.
14482 * target-globals.h (this_target_recog): Declare.
14483 (target_globals): Add a recog field.
14484 (restore_target_globals): Restore this_target_recog.
14485 * target-globals.c: Include recog.h.
14486 (default_target_globals): Initialize recog field.
14487 (save_target_globals): Likewise.
14488 * reginfo.c (reinit_regs): Call recog_init.
14489 * toplev.c (backend_init_target): Likewise.
14491 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14493 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14494 rather than any named insn's code.
14496 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14499 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14500 * config/arm/arm-cores.def (License): Same.
14502 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14504 * tree.h (decl_comdat_group): Declare.
14505 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14506 * tree.c (decl_comdat_group): Here.
14508 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14510 PR rtl-optimization/61222
14511 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14512 the shift, truncate the PLUS operand to the result mode.
14514 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14517 * config/i386/i386.c (ix86_rtx_costs)
14518 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14521 2014-05-26 Martin Jambor <mjambor@suse.cz>
14523 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14526 2014-05-26 Richard Biener <rguenther@suse.de>
14528 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14529 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14530 Provide specializations.
14531 (wi::int_traits <HOST_WIDE_INT>,
14532 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14534 2014-05-26 Alan Modra <amodra@gmail.com>
14537 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14538 params and return a bool. Remove dead code. Update comment.
14539 Assert we have a const_int source. Remove bogus code from
14540 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14541 handling of constants > 2G and reg_equal note, from..
14542 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14543 return value. Update comment. If we can, use a new pseudo
14544 for intermediate calculations.
14545 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14547 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14548 call to rs6000_emit_set_const in splitter.
14549 (movdi_internal64+2, +3): Likewise.
14551 2014-05-26 Richard Biener <rguenther@suse.de>
14553 * system.h: Define __STDC_FORMAT_MACROS before
14554 including inttypes.h.
14555 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14556 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14557 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14558 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14559 HOST_WIDEST_INT_C): Remove.
14560 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14561 if C99 inttypes.h is not available.
14562 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14563 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14564 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14565 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14566 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14567 (struct output_info): Likewise.
14568 (print_statistics): Adjust.
14569 (dump_bitmap_statistics): Likewise.
14570 * bt-load.c (migrate_btr_defs): Print with PRId64.
14571 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14572 (MAX_SAFE_MULTIPLIER): Adjust.
14573 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14574 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14575 dump_cgraph_node): Likewise.
14576 * final.c (dump_basic_block_info): Likewise.
14577 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14578 * gcov.c (format_gcov): Likewise.
14579 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14581 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14582 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14583 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14584 Use PRId64 for dumping.
14585 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14586 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14587 (add_allocno_hard_regs): Adjust.
14588 * loop-doloop.c (doloop_modify): Print using PRId64.
14589 * loop-iv.c (inverse): Compute in uint64_t.
14590 (determine_max_iter, iv_number_of_iterations): Likewise.
14591 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14592 Print using PRId64.
14593 * lto-streamer-out.c (write_symbol): Use uint64_t.
14594 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14595 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14596 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14597 * modulo-sched.c (const_iteration_count): Use int64_t.
14598 (sms_schedule): Dump using PRId64.
14599 * predict.c (dump_prediction): Likewise.
14600 * pretty-print.h (pp_widest_integer): Remove.
14601 * profile.c (get_working_sets, is_edge_inconsistent,
14602 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14603 * tree-pretty-print.c (pp_double_int): Remove case handling
14604 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14605 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14607 (pass_optimize_bswap::execute): Remove restriction on hosts.
14608 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14609 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14610 * tree.c (widest_int_cst_value): Remove.
14611 * tree.h (widest_int_cst_value): Likewise.
14612 * value-prof.c (dump_histogram_value): Print using PRId64.
14613 * gengtype.c (main): Also inject int64_t.
14614 * ggc-page.c (struct max_alignment): Use int64_t.
14615 * alloc-pool.c (struct allocation_object_def): Likewise.
14616 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14618 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14619 * doc/tm.texi: Regenerated.
14620 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14621 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14622 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14623 mmix_output_register_setting): Use [u]int64_t in prototypes.
14624 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14625 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14626 mmix_output_octa, mmix_output_shifted_value): Adjust.
14627 (mmix_intval): Adjust. Remove unreachable case.
14628 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14630 2014-05-26 Richard Biener <rguenther@suse.de>
14632 * configure.ac: Drop __int64 type check. Insist that we
14633 found uint64_t and int64_t.
14634 * hwint.h (HOST_BITS_PER___INT64): Remove.
14635 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14636 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14637 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14638 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14639 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14640 for dst_q_src_df_rms_cdt.
14641 * configure: Regenerate.
14642 * config.in: Likewise.
14644 2014-05-26 Michael Tautschnig <mt@debian.org>
14647 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14648 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14650 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14652 PR rtl-optimization/61278
14653 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14655 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14657 PR rtl-optimization/61220
14658 Part of PR rtl-optimization/61225
14659 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14660 insn; skip split_edge for a block with only one successor.
14662 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14664 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14667 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14669 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14670 (update_vtable_references): New function.
14671 (function_and_variable_visibility): Rewrite also vtable initializers.
14672 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14674 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14676 * ggc.h (ggc_grow): New function.
14677 * ggc-none.c (ggc_grow): New function.
14678 * ggc-page.c (ggc_grow): Likewise.
14680 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14682 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14683 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14684 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14685 varpool_externally_visible_p, can_replace_by_local_alias,
14686 update_visibility_by_resolution_info, function_and_variable_visibility,
14687 pass_data_ipa_function_and_variable_visibility,
14688 make_pass_ipa_function_and_variable_visibility,
14689 whole_program_function_and_variable_visibility,
14690 pass_data_ipa_whole_program_visibility,
14691 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14692 * cgraph.h (cgraph_local_node_p): Declare.
14693 * ipa-visibility.c: New file.
14694 * Makefile.in (OBJS): Add ipa-visiblity.o
14696 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14698 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14699 that var decl is available.
14701 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14703 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14704 symtab_node pointer.
14705 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14706 (find_decls_types_r): Do not walk COMDAT_GROUP.
14707 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14708 * varasm.c (make_decl_one_only): Use set_comdat_group;
14709 create node if needed.
14710 * ipa-inline-transform.c (save_inline_function_body): Update
14711 way we decl->symtab mapping.
14712 * symtab.c (symtab_hash, hash_node, eq_node
14713 symtab_insert_node_to_hashtable): Remove.
14714 (symtab_register_node): Update.
14715 (symtab_unregister_node): Update.
14716 (symtab_get_node): Reimplement as inline function.
14717 (symtab_add_to_same_comdat_group): Update.
14718 (symtab_dissolve_same_comdat_group_list): Update.
14719 (dump_symtab_base): Update.
14720 (verify_symtab_base): Update.
14721 (symtab_make_decl_local): Update.
14722 (fixup_same_cpp_alias_visibility): Update.
14723 (symtab_nonoverwritable_alias): Update.
14724 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14725 * ipa.c (update_visibility_by_resolution_info): UPdate.
14726 * bb-reorder.c: Include cgraph.h
14727 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14728 with comdat groups.
14729 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14730 * cgraph.c (cgraph_get_create_node): Update.
14731 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14733 (symtab_get_node): Make inline.
14734 (symtab_insert_node_to_hashtable): Remove.
14735 (symtab_can_be_discarded): Update.
14736 (decl_comdat_group): New function.
14737 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14739 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14741 (read_comdat_group): New function.
14742 (input_node, input_varpool_node): Use it.
14743 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14745 * mips.c (mips_start_unique_function): Likewise.
14746 (ix86_code_end): Likewise.
14747 (rs6000_code_end): Likweise.
14748 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14750 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14752 * gengtype-state.c (fatal_reading_state): Bring offline.
14753 * optabs.c (widening_optab_handler): Bring offline.
14754 * optabs.h (widening_optab_handler): Likewise.
14755 * final.c (get_attr_length_1): Likewise.
14757 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14759 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14761 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14763 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14764 (ppc440-compare): Include shift with dot.
14765 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14766 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14768 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14770 (e6500_sfx2): Include it.
14771 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14772 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14773 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14774 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14775 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14776 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14777 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14778 *lshiftrt_internal1le, *lshiftrt_internal1be,
14779 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14780 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14781 *rotldi3_internal10le, *rotldi3_internal10be,
14782 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14783 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14784 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14785 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14786 define_insns): Use type "shift" in the appropriate alternatives.
14788 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14790 * config/rs6000/rs6000.md (type): Add "logical". Delete
14792 (dot): Adjust comment.
14793 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14794 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14795 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14796 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14797 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14798 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14799 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14800 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14802 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14803 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14804 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14805 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14806 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14807 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14808 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14809 * config/rs6000/8540.md (ppc8540_su): Adjust.
14810 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14811 cell-cmp-microcoded): Adjust.
14812 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14813 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14814 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14815 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14816 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14817 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14818 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14819 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14820 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14822 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14823 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14824 Adjust. Adjust comment.
14825 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14826 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14828 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14830 * config/rs6000/rs6000.md (type): Add "add".
14831 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14832 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14833 define_insns): Use it.
14834 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14836 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14837 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14838 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14839 * config/rs6000/601.md (ppc601-integer): Adjust.
14840 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14841 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14842 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14843 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14844 * config/rs6000/8540.md (ppc8540_su): Adjust.
14845 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14846 cell-cmp-microcoded): Adjust.
14847 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14848 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14849 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14850 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14851 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14852 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14853 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14854 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14855 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14857 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14858 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14859 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14860 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14862 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14864 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14865 "delayed_compare", "var_delayed_compare".
14866 (var_shift): New attribute.
14867 (cell_micro): Adjust.
14868 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14869 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14870 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14871 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14872 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14873 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14874 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14875 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14876 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14877 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14878 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14879 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14880 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14881 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14882 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14883 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14884 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14885 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14886 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14887 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14888 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14889 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14890 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14891 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14892 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14894 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14895 * config/rs6000/440.md (ppc440-integer): Adjust.
14896 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14897 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14898 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14899 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14900 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14901 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14902 * config/rs6000/8540.md (ppc8540_su): Adjust.
14903 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14904 cell-cmp-microcoded): Adjust.
14905 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14906 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14907 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14908 e500mc64_delayed): Adjust.
14909 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14910 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14911 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14912 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14913 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14914 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14915 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14916 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14917 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14919 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14920 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14922 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14924 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14925 (bits): New mode_attr.
14926 (idiv_ldiv): Delete mode_attr.
14927 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14928 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14929 rs6000_adjust_priority, is_nonpipeline_insn,
14930 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14932 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14933 * config/rs6000/440.md (ppc440-idiv): Adjust.
14934 * config/rs6000/476.md (ppc476-idiv): Adjust.
14935 * config/rs6000/601.md (ppc601-idiv): Adjust.
14936 * config/rs6000/603.md (ppc603-idiv): Adjust.
14937 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14938 ppc620-ldiv): Adjust.
14939 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14940 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14941 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14942 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14943 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14944 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14945 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14946 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14947 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14948 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14949 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14950 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14951 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14952 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14953 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14954 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14955 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14956 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14958 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14960 * config/rs6000/rs6000.md (type): Delete "insert_word",
14961 "insert_dword". Add "insert".
14962 (size): Update comment.
14963 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14964 insn_must_be_first_in_group): Adjust.
14965 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14966 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14967 *insvsi_internal6, insvdi_internal): Adjust.
14969 * config/rs6000/40x.md (ppc403-integer): Adjust.
14970 * config/rs6000/440.md (ppc440-integer): Adjust.
14971 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14972 * config/rs6000/601.md (ppc601-integer): Adjust.
14973 * config/rs6000/603.md (ppc603-integer): Adjust.
14974 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14975 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14976 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14977 * config/rs6000/8540.md (ppc8540_su): Adjust.
14978 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14979 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14980 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14981 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14982 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14983 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14984 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14985 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14986 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14987 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14988 * config/rs6000/power7.md (power7-integer): Adjust.
14989 * config/rs6000/power8.md (power8-1cyc): Adjust.
14990 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14991 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14993 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14995 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14996 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14997 (size): New attribute.
14998 (dot): New attribute.
14999 (cell_micro): Adjust.
15000 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15001 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15002 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15003 umuldi3_highpart): Adjust.
15004 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15005 rs6000_adjust_priority, is_nonpipeline_insn,
15006 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15008 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15009 ppc405-imul3): Adjust.
15010 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15011 * config/rs6000/476.md (ppc476-imul): Adjust.
15012 * config/rs6000/601.md (ppc601-imul): Adjust.
15013 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15014 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15015 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15016 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15017 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15019 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15020 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15021 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15022 cell-imul): Adjust.
15023 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15024 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15025 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15026 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15027 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15028 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15029 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15030 power4-lmul, power4-imul, power4-imul3): Adjust.
15031 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15032 power5-lmul, power5-imul, power5-imul3): Adjust.
15033 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15034 power6-lmul, power6-imul, power6-imul3): Adjust.
15035 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15036 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15038 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15039 rs64a-lmul): Adjust.
15040 * config/rs6000/titan.md (titan_imul): Adjust.
15042 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15044 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15045 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15046 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15047 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15048 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15049 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15050 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15051 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15052 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15053 * config/rs6000/titan.md: Delete nonsensical comment.
15054 (titan_imul): Add type imul3.
15055 (titan_mulhw): Remove type imul3; add type halfmul.
15057 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15059 * config/rs6000/rs6000.md (type): Reorder, reformat.
15061 2014-05-23 Martin Jambor <mjambor@suse.cz>
15063 PR tree-optimization/53787
15064 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15065 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15066 analysis_done, update all uses.
15067 * ipa-prop.c: Include domwalk.h
15068 (param_analysis_info): Removed.
15069 (param_aa_status): New type.
15070 (ipa_bb_info): Likewise.
15071 (func_body_info): Likewise.
15072 (ipa_get_bb_info): New function.
15073 (aa_overwalked): Likewise.
15074 (find_dominating_aa_status): Likewise.
15075 (parm_bb_aa_status_for_bb): Likewise.
15076 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15077 (load_from_unmodified_param): Accept func_body_info as a parameter
15078 instead of parms_ainfo.
15079 (parm_ref_data_preserved_p): Changed to use new param AA info.
15080 (parm_ref_data_pass_through_p): Likewise.
15081 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15082 (compute_complex_assign_jump_func): Changed to use new param AA info.
15083 (compute_complex_ancestor_jump_func): Likewise.
15084 (ipa_compute_jump_functions_for_edge): Likewise.
15085 (ipa_compute_jump_functions): Removed.
15086 (ipa_compute_jump_functions_for_bb): New function.
15087 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15089 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15090 and info, moved variable declarations down.
15091 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15093 (ipa_analyze_stmt_uses): Likewise.
15094 (ipa_analyze_params_uses): Removed.
15095 (ipa_analyze_params_uses_in_bb): New function.
15096 (ipa_analyze_controlled_uses): Likewise.
15097 (free_ipa_bb_info): Likewise.
15098 (analysis_dom_walker): New class.
15099 (ipa_analyze_node): Handle node-specific forbidden analysis,
15100 initialize and free func_body_info, use dominator walker.
15101 (ipcp_modif_dom_walker): New class.
15102 (ipcp_transform_function): Create and free func_body_info, use
15103 ipcp_modif_dom_walker, moved a lot of functionality there.
15105 2014-05-23 Marek Polacek <polacek@redhat.com>
15106 Jakub Jelinek <jakub@redhat.com>
15108 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15109 * gcc.c (sanitize_spec_function): Likewise.
15110 * convert.c (convert_to_integer): Include "ubsan.h". Add
15111 floating-point to integer instrumentation.
15112 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15113 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15114 SANITIZE_NONDEFAULT.
15115 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15116 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15117 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15118 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15119 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15120 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15121 float/double/long double.
15122 (ubsan_instrument_float_cast): New function.
15123 * ubsan.h (ubsan_instrument_float_cast): Declare.
15125 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15127 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15129 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15130 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15131 Adjust for tailcalling through registers.
15132 * config/aarch64/aarch64.h (enum reg_class): New caller save
15134 (REG_CLASS_NAMES): Likewise.
15135 (REG_CLASS_CONTENTS): Likewise.
15136 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15137 Allow tailcalling without decls.
15139 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15141 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15142 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15144 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15145 gsi, and variables v_* to v*.
15147 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15149 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15151 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15153 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15154 * omp-low.c: Update accordingly.
15156 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15157 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15158 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15159 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15160 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15161 GF_OMP_TARGET_KIND_UPDATE.
15163 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15164 Explicitly enumerate the expected region types.
15166 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15169 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15170 documentation; the old documentation didn't clearly state the
15171 constraints on the contents of the pointed-to storage.
15173 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15175 Fix bootstrap error on ia64
15176 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15177 Return default value.
15179 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15181 PR tree-optimization/54733
15182 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15184 (find_bswap_or_nop_load): New.
15185 (find_bswap_1): Renamed to ...
15186 (find_bswap_or_nop_1): This. Also add support for memory source.
15187 (find_bswap): Renamed to ...
15188 (find_bswap_or_nop): This. Also add support for memory source and
15189 detection of bitwise operations equivalent to load in target
15191 (execute_optimize_bswap): Likewise. Also move its leading comment back
15192 in place and split statement transformation into ...
15193 (bswap_replace): This.
15195 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15197 PR rtl-optimization/61215
15198 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15199 simplify_gen_subreg until final substitution.
15201 2014-05-23 Alan Modra <amodra@gmail.com>
15204 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15205 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15206 Use "Y" constraint rather than "m".
15208 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15210 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15212 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15213 New function declaration.
15214 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15215 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15216 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15217 (aarch64_init_builtins) : Initialize builtins
15218 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15219 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15220 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15221 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15222 and __builtins_aarch64_set_fpsr.
15223 (aarch64_atomic_assign_expand_fenv): New function.
15224 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15225 (get_fpcr) : Likewise.
15226 (set_fpsr) : Likewise.
15227 (get_fpsr) : Likewise.
15228 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15229 and UNSPECV_SET_FPSR.
15230 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15231 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15232 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15234 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15236 PR rtl-optimization/60969
15237 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15238 constraints. Set up mem cost for NO_REGS case.
15240 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15242 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15244 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15246 * config/darwin.c: Include "lto-section-names.h".
15247 (LTO_SEGMENT_NAME): Don't define.
15248 * config/i386/winnt.c: Include "lto-section-names.h".
15249 * lto-streamer.c: Include "lto-section-names.h".
15250 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15251 * lto-wrapper.c: Include "lto-section-names.h".
15252 (LTO_SECTION_NAME_PREFIX): Don't define.
15253 * lto-section-names.h: New file.
15254 * cgraphunit.c: Include "lto-section-names.h".
15256 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15258 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15260 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15263 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15265 2014-05-22 Nick Clifton <nickc@redhat.com>
15267 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15269 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15271 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15272 -> (T)A transformation to integer types.
15274 2014-05-22 Teresa Johnson <tejohnson@google.com>
15276 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15277 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15278 (gcov_rewrite): Use gcov_nonruntime_assert.
15279 (gcov_open): Ditto.
15280 (gcov_write_words): Ditto.
15281 (gcov_write_length): Ditto.
15282 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15283 gcc_assert from IN_LIBGCOV code.
15284 (gcov_read_summary): Use gcov_error to flag profile corruption.
15285 (gcov_sync): Use gcov_nonruntime_assert.
15286 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15287 (gcov_histo_index): Use gcov_nonruntime_assert.
15288 (static void gcov_histogram_merge): Ditto.
15289 (compute_working_sets): Ditto.
15290 * gcov-io.h (gcov_nonruntime_assert): Define.
15291 (gcov_error): Define for !IN_LIBGCOV
15293 2014-05-22 Richard Biener <rguenther@suse.de>
15295 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15296 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15297 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15298 and deallocation site.
15299 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15300 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15301 passing through the incoming points-to set.
15302 (handle_lhs_call): Use flags argument instead of recomputing it.
15303 (find_func_aliases_for_call): Call handle_lhs_call with proper
15306 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15308 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15309 all padding bits in REAL_VALUE_TYPE are cleared.
15311 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15313 Cleanup and improve multipass_dfa_lookahead_guard
15314 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15315 (core2i7_first_cycle_multipass_begin,)
15316 (core2i7_first_cycle_multipass_issue,)
15317 (core2i7_first_cycle_multipass_backtrack): Update signature.
15318 * config/ia64/ia64.c
15319 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15320 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15321 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15323 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15324 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15326 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15328 * doc/tm.texi: Regenerate.
15330 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15331 * haifa-sched.c (ready_try): Make signed to allow negative values.
15332 (rebug_ready_list_1): Update.
15333 (choose_ready): Simplify.
15334 (sched_extend_ready_list): Update.
15336 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15338 Remove IA64 speculation tweaking flags
15339 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15340 speculation tuning flags.
15341 (msched-prefer-non-data-spec-insns,)
15342 (msched-prefer-non-control-spec-insns): Obsolete options.
15343 * haifa-sched.c (choose_ready): Remove handling of
15344 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15345 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15346 and PREFER_NON_DATA_SPEC.
15347 * sel-sched.c (process_spec_exprs): Remove handling of
15348 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15350 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15352 Improve scheduling debug output
15353 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15354 (advance_one_cycle): Update.
15355 (schedule_insn, queue_to_ready): Add debug printouts.
15356 (debug_ready_list_1): New static function.
15357 (debug_ready_list): Update.
15358 (max_issue): Add debug printouts.
15359 (dump_insn_stream): New static function.
15360 (schedule_block): Use it. Also better indent printouts.
15362 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15364 Fix sched_insn debug counter
15365 * haifa-sched.c (schedule_insn): Update.
15366 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15367 (save_backtrack_point, restore_backtrack_point): Update.
15368 (first_nonscheduled_insn): New static function.
15369 (queue_to_ready, choose_ready): Use it.
15370 (schedule_block): Init nonscheduled_insns_begin.
15371 (sched_emit_insn): Update.
15374 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15376 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15378 (aarch64_secondary_reload) : LikeWise.
15379 (aarch64_class_max_nregs) : Remove CORE_REGS.
15380 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15381 (REG_CLASS_NAMES) : Likewise.
15382 (REG_CLASS_CONTENTS) : LikeWise.
15383 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15385 2014-05-21 Guozhi Wei <carrot@google.com>
15388 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15390 (vqdmulhq_n_s16): Likewise.
15392 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15394 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15396 2014-05-21 Marek Polacek <polacek@redhat.com>
15399 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15401 2014-05-21 Martin Jambor <mjambor@suse.cz>
15403 * doc/invoke.texi (Optimize Options): Document parameters
15404 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15405 ipa-cp-array-index-hint-bonus.
15407 2014-05-21 Mark Wielaard <mjw@redhat.com>
15410 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15411 version >= 3 or not strict DWARF.
15412 * langhooks.h (struct lang_hooks_for_types): Add
15413 enum_underlying_base_type.
15414 * langhooks.c (lhd_enum_underlying_base_type): New function.
15415 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15416 enum_underlying_base_type.
15417 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15418 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15419 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15421 2014-05-21 Richard Biener <rguenther@suse.de>
15423 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15425 2014-05-21 John Marino <gnugcc@marino.st>
15427 * config.gcc (*-*-dragonfly*): New target.
15428 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15429 * configure: Regenerate.
15430 * config/dragonfly-stdint.h: New.
15431 * config/dragonfly.h: New.
15432 * config/dragonfly.opt: New.
15433 * config/i386/dragonfly.h: New.
15434 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15436 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15438 * tree.def (VOID_CST): New.
15439 * tree-core.h (TI_VOID): New.
15440 * tree.h (void_node): New.
15441 * tree.c (tree_node_structure_for_code, tree_code_size)
15442 (iterative_hash_expr): Handle VOID_CST.
15443 (build_common_tree_nodes): Initialize void_node.
15445 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15447 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15449 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15451 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15454 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15455 flag_reorder_blocks_and_partition.
15456 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15458 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15461 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15463 (*addc_r_t): Add new insn_and_split.
15465 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15467 PR middle-end/61252
15468 * omp-low.c (handle_simd_reference): New function.
15469 (lower_rec_input_clauses): Use it. Defer adding reference
15470 initialization even for reduction without placeholder if in simd,
15471 handle it properly later on.
15473 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15475 PR tree-optimization/60899
15476 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15477 assume all static symbols will have definition wile parsing and
15478 check the do have definition later in compilation; check that
15479 variable referring symbol will be output before concluding that
15480 reference is safe; be conservative for referring local statics;
15481 be more precise about when comdat is output in other partition.
15483 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15486 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15488 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15489 (ipa_inline): Loop inline_to_all_callers until no more aliases
15492 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15494 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15495 set writeonly flag only for vars actually written to.
15497 2014-05-20 Dehao Chen <dehao@google.com>
15499 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15500 and callee count to get clone count.
15501 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15502 count in copy_body.
15504 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15506 PR rtl-optimization/61243
15507 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15509 2014-05-20 Xinliang David Li <davidxl@google.com>
15511 * cgraphunit.c (walk_polymorphic_call_targets): Add
15512 dbgcnt and fopt-info support.
15513 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15514 * ipa-devirt.c (ipa_devirt): Ditto.
15515 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15516 * ipa.c (walk_polymorphic_call_targets): Ditto.
15517 * gimple-fold.c (fold_gimple_assign): Ditto.
15518 (gimple_fold_call): Ditto.
15519 * dbgcnt.def: New counter.
15521 2014-05-20 DJ Delorie <dj@redhat.com>
15523 * config/msp430/msp430.md (split): Don't allow subregs when
15524 splitting SImode adds.
15525 (andneghi): Fix subtraction logic.
15526 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15528 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15530 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15532 * except.c (switch_to_exception_section, resolve_unique_section,
15533 get_named_text_section, default_function_rodata_section,
15534 align_variable, get_block_for_decl, default_section_type_flags):
15535 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15536 * symtab.c (symtab_add_to_same_comdat_group,
15537 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15538 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15540 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15541 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15542 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15543 (c6x_function_in_section_p): Likewise.
15544 * config/darwin.c (machopic_select_section): Likewise.
15545 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15546 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15547 * config/mep/mep.c (mep_select_section): LIkewise.
15548 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15550 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15552 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15553 EH region of calls to pure functions that can throw an exception.
15554 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15555 (copy_reference_ops_from_call): Also copy the EH region of the call if
15556 it can throw an exception.
15558 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15560 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15561 nested VEC_SELECTs that are inverses of each other.
15563 2014-05-20 Richard Biener <rguenther@suse.de>
15565 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15566 (extract_and_process_scc_for_name): not here.
15567 (cond_dom_walker::before_dom_children): Only process
15568 stmts that end the BB in interesting ways.
15569 (run_scc_vn): Mark param uses as visited.
15571 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15573 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15576 2014-05-20 Nick Clifton <nickc@redhat.com>
15578 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15579 (msp430_gimplify_va_arg_expr): New function.
15580 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15582 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15583 operand 0 in order to prevent confusion about the number of
15584 registers involved.
15586 2014-05-20 Richard Biener <rguenther@suse.de>
15588 PR tree-optimization/61221
15589 * tree-ssa-pre.c (el_to_update): Remove.
15590 (eliminate_dom_walker::before_dom_children): Handle released
15591 VDEFs by value-numbering them to the associated VUSE. Update
15592 stmt immediately for substituted call address.
15593 (eliminate): Remove delayed stmt updating code.
15594 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15595 possibly late re-numbered vuses.
15596 (vn_reference_lookup_2): Adjust.
15597 (vn_reference_lookup_pieces): Likewise.
15598 (vn_reference_lookup): Likewise.
15600 2014-05-20 Richard Biener <rguenther@suse.de>
15602 * config.gcc: Remove need_64bit_hwint.
15603 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15604 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15606 * config.in: Regenerate.
15607 * configure: Likewise.
15609 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15611 * doc/extend.texi: Create Label Attributes section,
15612 move all label attributes into it and reference it.
15614 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15616 * arm.c (thumb1_reorg): When scanning backwards skip anything
15617 that's not a proper insn.
15619 2014-05-19 Richard Biener <rguenther@suse.de>
15621 PR tree-optimization/61221
15622 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15623 Do nothing for unreachable blocks.
15624 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15625 Improve unreachability detection.
15627 2014-05-19 Richard Biener <rguenther@suse.de>
15629 PR tree-optimization/61209
15630 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15632 2014-05-19 Nick Clifton <nickc@redhat.com>
15634 * except.c (init_eh): Fix computation of builtin setjmp buffer
15635 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15637 2014-05-19 Richard Biener <rguenther@suse.de>
15639 PR tree-optimization/61184
15640 * tree-vrp.c (is_negative_overflow_infinity): Use
15641 TREE_OVERFLOW_P and do that check first.
15642 (is_positive_overflow_infinity): Likewise.
15643 (is_overflow_infinity): Likewise.
15644 (vrp_operand_equal_p): Properly treat operands with
15645 differing overflow as not equal.
15647 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15649 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15650 shift simplification where it was intended.
15652 2014-05-19 Christian Bruel <christian.bruel@st.com>
15655 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15657 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15660 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15663 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15665 * reg-notes.def (CROSSING_JUMP): Likewise.
15666 * rtl.h (rtx_def): Update comment for jump flag.
15667 (CROSSING_JUMP_P): Define.
15668 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15669 of a REG_CROSSING_JUMP note.
15670 * cfghooks.c (tidy_fallthru_edges): Likewise.
15671 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15672 * emit-rtl.c (try_split): Likewise.
15673 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15674 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15675 * jump.c (redirect_jump_2): Likewise.
15676 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15677 (relax_delay_slots): Likewise.
15678 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15679 (bbit_di): Likewise.
15680 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15681 * config/sh/sh.md (jump_compact): Likewise.
15682 * bb-reorder.c (rotate_loop): Likewise.
15683 (pass_duplicate_computed_gotos::execute): Likewise.
15684 (add_reg_crossing_jump_notes): Rename to...
15685 (update_crossing_jump_flags): ...this.
15686 (pass_partition_blocks::execute): Update accordingly.
15688 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15690 * tree.h: Remove extraneous template <>.
15692 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15694 * ipa.c (symtab_remove_unreachable_nodes): Remove
15695 symbol from comdat group if its body was eliminated.
15696 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15697 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15698 (symtab_unregister_node): ... this one.
15699 (verify_symtab_base): More strict checking of comdats.
15700 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15702 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15704 * tree-pass.h (make_pass_ipa_comdats): New pass.
15705 * timevar.def (TV_IPA_COMDATS): New timevar.
15706 * passes.def (pass_ipa_comdats): Add.
15707 * Makefile.in (OBJS): Add ipa-comdats.o
15708 * ipa-comdats.c: New file.
15710 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15712 * ipa.c (update_visibility_by_resolution_info): New function.
15713 (function_and_variable_visibility): Use it.
15715 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15717 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15719 (FOR_EACH_DEFINED_SYMBOL): New macro.
15720 (varpool_first_static_initializer, varpool_next_static_initializer,
15721 varpool_first_defined_variable, varpool_next_defined_variable):
15723 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15725 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15727 * ggc-page.c (ggc_handle_finalizers): Add comment.
15729 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15731 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15732 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15733 (ggc_internal_cleared_alloc): Likewise.
15734 * ggc-page.c (finalizer): New class.
15735 (vec_finalizer): Likewise.
15736 (globals::finalizers): New member.
15737 (globals::vec_finalizers): Likewise.
15738 (ggc_internal_alloc): Record the finalizer if any for the block being
15740 (ggc_handle_finalizers): New function.
15741 (ggc_collect): Call ggc_handle_finalizers.
15742 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15744 (ggc_internal_cleared_alloc): Likewise.
15745 (finalize): New function.
15746 (need_finalization_p): Likewise.
15747 (ggc_alloc): Install the type's destructor as the finalizer if it
15748 might do something.
15749 (ggc_cleared_alloc): Likewise.
15750 (ggc_vec_alloc): Likewise.
15751 (ggc_cleared_vec_alloc): Likewise.
15753 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15755 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15757 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15759 * alias.c (record_alias_subset): Adjust.
15760 * bitmap.c (bitmap_element_allocate): Likewise.
15761 (bitmap_gc_alloc_stat): Likewise.
15762 * cfg.c (init_flow): Likewise.
15763 (alloc_block): Likewise.
15764 (unchecked_make_edge): Likewise.
15765 * cfgloop.c (alloc_loop): Likewise.
15766 (flow_loops_find): Likewise.
15767 (rescan_loop_exit): Likewise.
15768 * cfgrtl.c (init_rtl_bb_info): Likewise.
15769 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15770 (cgraph_allocate_node): Likewise.
15771 (cgraph_create_edge_1): Likewise.
15772 (cgraph_allocate_init_indirect_info): Likewise.
15773 * cgraphclones.c (cgraph_clone_edge): Likewise.
15774 * cgraphunit.c (add_asm_node): Likewise.
15775 (init_lowered_empty_function): Likewise.
15776 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15777 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15778 (alpha_use_linkage): Likewise.
15779 * config/arc/arc.c (arc_init_machine_status): Likewise.
15780 * config/arm/arm.c (arm_init_machine_status): Likewise.
15781 * config/avr/avr.c (avr_init_machine_status): Likewise.
15782 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15783 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15784 * config/cris/cris.c (cris_init_machine_status): Likewise.
15785 * config/darwin.c (machopic_indirection_name): Likewise.
15786 (darwin_build_constant_cfstring): Likewise.
15787 (darwin_enter_string_into_cfstring_table): Likewise.
15788 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15789 * config/frv/frv.c (frv_init_machine_status): Likewise.
15790 * config/i386/i386.c (get_dllimport_decl): Likewise.
15791 (ix86_init_machine_status): Likewise.
15792 (assign_386_stack_local): Likewise.
15793 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15794 (i386_pe_maybe_record_exported_symbol): Likewise.
15795 (i386_pe_record_stub): Likewise.
15796 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15797 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15798 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15799 (m32c_note_pragma_address): Likewise.
15800 * config/mep/mep.c (mep_init_machine_status): Likewise.
15801 (mep_note_pragma_flag): Likewise.
15802 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15803 (mips16_local_alias): Likewise.
15804 (mips_init_machine_status): Likewise.
15805 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15806 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15807 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15808 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15809 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15810 * config/pa/pa.c (pa_init_machine_status): Likewise.
15811 (pa_get_deferred_plabel): Likewise.
15812 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15813 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15814 (rs6000_init_machine_status): Likewise.
15815 (output_toc): Likewise.
15816 * config/s390/s390.c (s390_init_machine_status): Likewise.
15817 * config/score/score.c (score_output_external): Likewise.
15818 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15819 * config/spu/spu.c (spu_init_machine_status): Likewise.
15820 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15821 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15822 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15823 * coverage.c (coverage_end_function): Likewise.
15824 * dbxout.c (dbxout_init): Likewise.
15825 * doc/gty.texi: Don't mention variable_size attribute.
15826 * dwarf2cfi.c (new_cfi): Adjust.
15827 (new_cfi_row): Likewise.
15828 (copy_cfi_row): Likewise.
15829 (create_cie_data): Likewise.
15830 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15831 (new_loc_descr): Likewise.
15832 (find_AT_string_in_table): Likewise.
15833 (add_addr_table_entry): Likewise.
15834 (new_die): Likewise.
15835 (add_var_loc_to_decl): Likewise.
15836 (clone_die): Likewise.
15837 (clone_as_declaration): Likewise.
15838 (break_out_comdat_types): Likewise.
15839 (new_loc_list): Likewise.
15840 (add_loc_descr_to_each): Likewise.
15841 (add_location_or_const_value_attribute): Likewise.
15842 (add_linkage_name): Likewise.
15843 (lookup_filename): Likewise.
15844 (dwarf2out_var_location): Likewise.
15845 (new_line_info_table): Likewise.
15846 (dwarf2out_init): Likewise.
15847 (mem_loc_descriptor): Likewise.
15848 (loc_descriptor): Likewise.
15849 (add_const_value_attribute): Likewise.
15850 (tree_add_const_value_attribute): Likewise.
15851 (comp_dir_string): Likewise.
15852 (dwarf2out_vms_debug_main_pointer): Likewise.
15853 (string_cst_pool_decl): Likewise.
15854 * emit-rtl.c (set_mem_attrs): Likewise.
15855 (get_reg_attrs): Likewise.
15856 (start_sequence): Likewise.
15857 (init_emit): Likewise.
15858 (init_emit_regs): Likewise.
15859 * except.c (init_eh_for_function): Likewise.
15860 (gen_eh_region): Likewise.
15861 (gen_eh_region_catch): Likewise.
15862 (gen_eh_landing_pad): Likewise.
15863 (add_call_site): Likewise.
15864 * function.c (add_frame_space): Likewise.
15865 (insert_temp_slot_address): Likewise.
15866 (assign_stack_temp_for_type): Likewise.
15867 (get_hard_reg_initial_val): Likewise.
15868 (allocate_struct_function): Likewise.
15869 (prepare_function_start): Likewise.
15870 (types_used_by_var_decl_insert): Likewise.
15871 * gengtype.c (variable_size_p): Remove function.
15872 (enum alloc_quantity): Remove enum.
15873 (write_typed_alloc_def): Remove function.
15874 (write_typed_struct_alloc_def): Likewise.
15875 (write_typed_typedef_alloc_def): Likewise.
15876 (write_typed_alloc_defns): Likewise.
15878 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15879 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15880 * ggc.h (ggc_alloc): new function.
15881 (ggc_cleared_alloc): Likewise.
15882 (ggc_vec_alloc): Template on type of vector element, and remove
15883 element size argument.
15884 (ggc_cleared_vec_alloc): Likewise.
15885 * gimple.c (gimple_build_omp_for): Adjust.
15886 (gimple_copy): Likewise.
15887 * ipa-cp.c (get_replacement_map): Likewise.
15888 (find_aggregate_values_for_callers_subset): Likewise.
15889 (known_aggs_to_agg_replacement_list): Likewise.
15890 * ipa-devirt.c (get_odr_type): Likewise.
15891 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15892 (read_agg_replacement_chain): Likewise.
15893 * loop-iv.c (get_simple_loop_desc): Likewise.
15894 * lto-cgraph.c (input_node_opt_summary): Likewise.
15895 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15896 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15897 (input_eh_region): Likewise.
15898 (input_eh_lp): Likewise.
15899 (input_cfg): Likewise.
15900 * optabs.c (set_optab_libfunc): Likewise.
15901 (init_tree_optimization_optabs): Likewise.
15902 (set_conv_libfunc): Likewise.
15903 * passes.c (do_per_function_toporder): Likewise.
15904 * rtl.h: Don't use variable_size gty attribute.
15905 * sese.c (if_region_set_false_region): Adjust.
15906 * stringpool.c (gt_pch_save_stringpool): Likewise.
15907 * target-globals.c (save_target_globals): Likewise.
15908 * toplev.c (general_init): Likewise.
15909 * trans-mem.c (record_tm_replacement): Likewise.
15910 (split_bb_make_tm_edge): Likewise.
15911 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15912 * tree-data-ref.h (lambda_vector_new): Likewise.
15913 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15914 * tree-iterator.c (tsi_link_before): Likewise.
15915 (tsi_link_after): Likewise.
15916 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15917 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15918 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15919 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15920 * tree-ssa.c (init_tree_ssa): Adjust.
15921 * tree-ssanames.c (set_range_info): Likewise.
15922 (get_ptr_info): Likewise.
15923 (duplicate_ssa_name_ptr_info): Likewise.
15924 (duplicate_ssa_name_range_info): Likewise.
15925 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15926 (unpack_ts_fixed_cst_value_fields): Likewise.
15927 * tree.c (build_fixed): Likewise.
15928 (build_real): Likewise.
15929 (build_string): Likewise.
15930 (decl_priority_info): Likewise.
15931 (decl_debug_expr_insert): Likewise.
15932 (decl_value_expr_insert): Likewise.
15933 (decl_debug_args_insert): Likewise.
15934 (type_hash_add): Likewise.
15935 (build_omp_clause): Likewise.
15936 * ubsan.c (decl_for_type_insert): Likewise.
15937 * varasm.c (get_unnamed_section): Likewise.
15938 (get_noswitch_section): Likewise.
15939 (get_section): Likewise.
15940 (get_block_for_section): Likewise.
15941 (create_block_symbol): Likewise.
15942 (build_constant_desc): Likewise.
15943 (create_constant_pool): Likewise.
15944 (force_const_mem): Likewise.
15945 (record_tm_clone_pair): Likewise.
15946 * varpool.c (varpool_create_empty_node): Likewise.
15948 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15950 * dwarf2out.c (tree_add_const_value_attribute): Call
15951 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15952 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15953 instead of ggc_internal_<x>alloc_stat.
15954 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15955 (ggc_realloc): Likewise.
15956 * ggc-none.c (ggc_internal_alloc): Likewise.
15957 (ggc_internal_cleared_alloc): Likewise.
15958 * ggc-page.c: Likewise.
15959 * ggc.h (ggc_internal_alloc_stat): Likewise.
15960 (ggc_internal_alloc): Remove macro.
15961 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15962 (ggc_internal_cleared_alloc): Remove macro.
15963 (GGC_RESIZEVEC): Adjust.
15964 (ggc_resizevar): Remove macro.
15965 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15966 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15967 (ggc_internal_vec_cleared_alloc): Remove macro.
15968 (ggc_alloc_atomic_stat): Drop _stat suffix.
15969 (ggc_alloc_atomic): Remove macro.
15970 (ggc_alloc_cleared_atomic): Remove macro.
15971 (ggc_alloc_string_stat): Drop _stat suffix.
15972 (ggc_alloc_string): Remove macro.
15973 (ggc_alloc_rtx_def_stat): Adjust.
15974 (ggc_alloc_tree_node_stat): Likewise.
15975 (ggc_alloc_cleared_tree_node_stat): Likewise.
15976 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15977 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15978 * gimple.c (gimple_build_omp_for): Likewise.
15979 (gimple_copy): Likewise.
15980 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15981 * toplev.c (realloc_for_line_map): Adjust.
15982 * tree-data-ref.h (lambda_vector_new): Likewise.
15983 * tree-phinodes.c (allocate_phi_node): Likewise.
15984 * tree.c (grow_tree_vec_stat): Likewise.
15985 * vec.h (va_gc::reserve): Adjust.
15987 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15989 * config/microblaze/microblaze.c (break_handler): New Declaration.
15990 (microblaze_break_function_p,microblaze_is_break_handler): New.
15991 (compute_frame_size): Use microblaze_break_function_p.
15992 Add the test of break_handler.
15993 (microblaze_function_prologue) : Add the test of variable
15994 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15995 (microblaze_function_epilogue) : Add the test of break_handler.
15996 (microblaze_globalize_label) : Add the test of break_handler.
15997 Check the name by BREAK_HANDLER_NAME.
15999 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16001 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16002 microblaze_is_break_handler test.
16003 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16004 Use SYMBOL_REF_DECL.
16006 * config/microblaze/microblaze-protos.h
16007 (microblaze_break_function_p,microblaze_is_break_handler):
16010 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16011 new MicroBlaze break_handler functions.
16013 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16015 * doc/extend.texi (Size of an asm): Move node text according
16016 to its @menu entry position.
16018 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16020 PR tree-optimization/61140
16021 PR tree-optimization/61150
16022 PR tree-optimization/61197
16023 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16025 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16027 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16029 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16031 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16032 __SIZEOF_INT128__ is defined.
16034 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16036 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16037 (rs6000_delegitimize_address): Use it.
16039 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16041 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16042 inplace argument. Store the new address in the original MEM when true.
16043 * emit-rtl.c (change_address_1): Likewise.
16044 (adjust_address_1, adjust_automodify_address_1, offset_address):
16045 Update accordingly.
16046 * rtl.h (plus_constant): Add an inplace argument.
16047 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16048 when true. Avoid generating (plus X (const_int 0)).
16049 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16050 in-place. Pass true to plus_constant.
16051 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16053 2014-05-16 Dehao Chen <dehao@google.com>
16055 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16057 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16060 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16062 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16064 2014-05-16 Dehao Chen <dehao@google.com>
16066 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16067 optimize_function_for_size_p.
16068 * regs.h (REG_FREQ_FROM_BB): Likewise.
16070 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16073 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16074 negt_reg_operand cases.
16075 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16077 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16079 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16081 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16084 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16087 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16089 * tree-cfg.c (dump_function_to_file): Dump the return type of
16090 functions, in a line to itself before the function body, mimicking
16091 the layout of a C function.
16093 2014-05-16 Dehao Chen <dehao@google.com>
16095 * cfghooks.c (make_forwarder_block): Use direct computation to
16096 get fall-through edge's count and frequency.
16098 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16100 * config/arc/arc.c (arc_init): Fix typo in error message.
16101 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16102 (split_stack_prologue_scratch_regno): Likewise.
16103 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16104 word from error message.
16106 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16108 * ira-costs.c: Fix typo in comment.
16110 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16112 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16114 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16116 * varpool.c (dump_varpool_node): Dump write-only flag.
16117 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16119 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16120 write-only variables.
16121 * ipa.c (process_references): New function.
16122 (set_readonly_bit): New function.
16123 (set_writeonly_bit): New function.
16124 (clear_addressable_bit): New function.
16125 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16126 fix handling of aliases.
16127 * cgraph.h (struct varpool_node): Add writeonly flag.
16129 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16131 PR rtl-optimization/60969
16132 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16133 Calculate costs for this case.
16135 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16137 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16138 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16140 2014-05-16 Richard Biener <rguenther@suse.de>
16142 PR tree-optimization/61194
16143 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16144 bool patterns ending in a COND_EXPR.
16146 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16148 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16150 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16152 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16153 where we were unable to cost an RTX.
16155 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16157 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16160 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16161 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16163 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16165 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16166 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16168 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16169 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16171 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16172 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16174 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16177 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16178 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16180 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16183 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16184 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16186 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16187 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16189 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16190 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16192 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16193 rotates and shifts.
16195 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16196 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16198 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16199 ZERO_EXTEND and SIGN_EXTEND better.
16201 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16202 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16204 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16205 logical operations.
16207 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16208 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16210 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16211 costs when costing loads and stores to memory.
16213 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16214 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16216 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16219 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16221 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16223 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16224 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16226 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16228 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16230 (aarch64_rtx_mult_cost): New.
16231 (aarch64_rtx_costs): Use it, refactor as appropriate.
16233 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16234 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16236 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16237 emit instructions, return number of instructions which would
16239 (aarch64_add_constant): Update call to aarch64_build_constant.
16240 (aarch64_output_mi_thunk): Likewise.
16241 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16244 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16246 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16247 (TARGET_RTX_COSTS): Call it.
16249 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16251 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16252 (cortexa57_vector_cost): Likewise.
16253 (cortexa57_tunings): Use them.
16255 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16257 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16258 (cpu_addrcost_table): Use it.
16259 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16260 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16263 2014-05-16 Richard Biener <rguenther@suse.de>
16265 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16266 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16267 (visit_phi): Ignore edges marked as not executable.
16268 (class cond_dom_walker): New.
16269 (cond_dom_walker::before_dom_children): Value-number
16270 control statements and mark successor edges as not
16271 executable if possible.
16272 (run_scc_vn): First walk all control statements in
16273 dominator order, marking edges as not executable.
16274 * tree-inline.c (copy_edges_for_bb): Be not confused
16275 about random edge flags.
16277 2014-05-16 Richard Biener <rguenther@suse.de>
16279 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16281 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16284 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16285 (__TM_simple_begin): Use it.
16286 (__TM_begin): Likewise.
16288 2014-05-15 Martin Jambor <mjambor@suse.cz>
16291 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16292 type_preserved flag when the indirect edge is polymorphic.
16294 2014-05-15 Martin Jambor <mjambor@suse.cz>
16296 PR tree-optimization/61090
16297 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16298 build_ref_for_model.
16300 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16302 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16303 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16305 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16307 PR tree-optimization/61158
16308 * fold-const.c (fold_binary_loc): If X is zero-extended and
16309 shiftc >= prec, make sure zerobits is all ones instead of
16310 invoking undefined behavior.
16312 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16314 * regcprop.h: New file.
16315 * regcprop.c (skip_debug_insn_p): New decl.
16316 (replace_oldest_value_reg): Check skip_debug_insn_p.
16317 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16318 * shrink-wrap.c: Include regcprop.h.
16319 (prepare_shrink_wrap): Call
16320 copyprop_hardreg_forward_bb_without_debug_insn.
16322 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16324 * shrink-wrap.h: Update comment.
16325 * shrink-wrap.c: Update comment.
16326 (next_block_for_reg): Rename to live_edge_for_reg.
16327 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16328 (move_insn_for_shrink_wrap): Split live_edge.
16329 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16331 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16333 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16335 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16336 * config/sparc/sparc.md (fptype_ut699): New attribute.
16337 (in_branch_delay): Return false if -mfix-ut699 is specified and
16338 fptype_ut699 is set to single.
16339 (truncdfsf2): Add fptype_ut699 attribute.
16340 (fix_truncdfsi2): Likewise.
16341 (floatsisf2): Change fptype attribute.
16342 (fix_truncsfsi2): Likewise.
16343 (negtf2_notv9): Delete.
16344 (negtf2_v9): Likewise.
16345 (negtf2_hq): New instruction.
16346 (negtf2): New instruction and splitter.
16347 (negdf2_notv9): Rewrite.
16348 (abstf2_notv9): Delete.
16349 (abstf2_hq_v9): Likewise.
16350 (abstf2_v9): Likewise.
16351 (abstf2_hq): New instruction.
16352 (abstf2): New instruction and splitter.
16353 (absdf2_notv9): Rewrite.
16355 2014-05-14 Cary Coutant <ccoutant@google.com>
16358 * opts.c (common_handle_option): Don't special-case "-g".
16359 (set_debug_level): Default to at least level 2 with "-g".
16361 2014-05-14 DJ Delorie <dj@redhat.com>
16363 * config/msp430/msp430.c (msp430_builtin): Add
16364 MSP430_BUILTIN_DELAY_CYCLES.
16365 (msp430_init_builtins): Register void __delay_cycles(long long).
16366 (msp430_builtin_decl): Add it.
16367 (cg_magic_constant): New.
16368 (msp430_expand_delay_cycles): New.
16369 (msp430_expand_builtin): Call it.
16370 (msp430_print_operand_raw): Change integer printing from "int" to
16372 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16373 (delay_cycles_start): New.
16374 (delay_cycles_end): New.
16375 (delay_cycles_32): New.
16376 (delay_cycles_32x): New.
16377 (delay_cycles_16): New.
16378 (delay_cycles_16x): New.
16379 (delay_cycles_2): New.
16380 (delay_cycles_1): New.
16381 * doc/extend.texi: Document __delay_cycles().
16383 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16385 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16386 length attribute computation.
16388 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16391 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16393 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16396 * config/sparc/sparc.md: Fix types of low and high in DI constant
16397 splitter. Use gen_int_mode in some other splitters.
16399 2014-05-14 Martin Jambor <mjambor@suse.cz>
16402 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16404 2014-05-14 James Norris <jnorris@codesourcery.com>
16406 * omp-low.c (expand_parallel_call): Remove shadow variable.
16407 (expand_omp_taskreg): Likewise.
16409 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16411 * common/config/i386/i386-common.c
16412 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16413 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16414 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16415 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16416 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16417 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16418 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16419 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16420 xsavecintrin.h, xsavesintrin.h.
16421 (x86_64-*-*): Ditto.
16422 * config/i386/clflushoptintrin.h: New.
16423 * config/i386/xsavecintrin.h: Ditto.
16424 * config/i386/xsavesintrin.h: Ditto.
16425 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16426 (bit_XSAVES): Ditto.
16427 (bit_XSAVES): Ditto.
16428 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16429 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16431 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16432 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16433 OPTION_MASK_ISA_XSAVES.
16434 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16435 -mxsavec, -mxsaves.
16436 (PTA_CLFLUSHOPT) Define.
16437 (PTA_XSAVEC): Ditto.
16438 (PTA_XSAVES): Ditto.
16439 (ix86_option_override_internal): Handle new options.
16440 (ix86_valid_target_attribute_inner_p): Ditto.
16441 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16442 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16443 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16444 (bdesc_special_args): Add __builtin_ia32_xsaves,
16445 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16446 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16447 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16448 (ix86_expand_builtin): Handle new builtins.
16449 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16450 (TARGET_CLFLUSHOPT_P): Ditto.
16451 (TARGET_XSAVEC): Ditto.
16452 (TARGET_XSAVEC_P): Ditto.
16453 (TARGET_XSAVES): Ditto.
16454 (TARGET_XSAVES_P): Ditto.
16455 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16456 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16457 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16459 (ANY_XRSTOR64): Ditto.
16461 (xrstor): Change into <xrstor>.
16462 (xrstor_rex64): Change into <xrstor>_rex64.
16463 (xrstor64): Change into <xrstor>64
16465 * config/i386/i386.opt (mclflushopt): New.
16468 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16470 * doc/invoke.texi: Document new options.
16472 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16474 PR rtl-optimization/60866
16475 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16476 Default it to -1. Pass it down to init_simplejump_data.
16477 (init_simplejump_data): New parameter old_seqno. Pass it down
16478 to get_seqno_for_a_jump.
16479 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16480 initializing new jump seqno as a last resort. Add comment.
16481 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16482 jump and pass it down to sel_init_new_insn.
16483 (sel_redirect_edge_and_branch_force): Likewise.
16485 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16487 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16488 shifted values to avoid build warning.
16490 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16492 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16493 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16494 (cfg_layout_merge_blocks): Likewise.
16495 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16497 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16499 PR rtl-optimization/60901
16500 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16501 bb predecessor belongs to the same scheduling region. Adjust comment.
16503 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16505 * doc/sourcebuild.texi: (dfp_hw): Document.
16506 (p8vector_hw): Likewise.
16507 (powerpc_eabi_ok): Likewise.
16508 (powerpc_elfv2): Likewise.
16509 (powerpc_htm_ok): Likewise.
16510 (ppc_recip_hw): Likewise.
16511 (vsx_hw): Likewise.
16513 2014-05-13 Cary Coutant <ccoutant@google.com>
16515 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16517 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16519 * gengtype-parse.c (require3): Eliminate in favor of...
16521 (require_template_declaration): Update to support optional single *
16524 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16525 (create_user_defined_type): Handle a single level of explicit
16526 pointerness within template arguments.
16527 (struct write_types_data): Add field "kind".
16528 (filter_type_name): Handle "*" character.
16529 (write_user_func_for_structure_ptr): Require a write_types_data
16530 rather than just a prefix string, so that we can look up the kind
16531 of the wtd and use it as an index into wrote_user_func_for_ptr,
16532 ensuring that such functions are written at most once. Support
16533 subclasses by invoking the marking function of the ultimate base class.
16534 (write_user_func_for_structure_body): Require a write_types_data
16535 rather than just a prefix string, so that we can pass this to
16536 write_user_func_for_structure_ptr.
16537 (write_func_for_structure): Likewise.
16538 (ggc_wtd): Add initializer of new "kind" field.
16539 (pch_wtd): Likewise.
16541 * gengtype.h (enum write_types_kinds): New.
16542 (struct type): Add field wrote_user_func_for_ptr to the "s"
16545 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16547 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16548 instead of const_binop.
16549 (fold_binary_loc): Likewise.
16551 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16553 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16554 calculation to match get_ref_base_and_extent.
16556 2014-05-13 Catherine Moore <clm@codesourcery.com>
16557 Sandra Loosemore <sandra@codesourcery.com>
16559 * configure.ac: Fix assembly for explicit JALR relocation check.
16560 * configure: Regenerate.
16562 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16564 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16565 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16566 Remove associated type declarations and initialisations.
16567 (arm_expand_neon_builtin): Likewise.
16568 (neon_emit_pair_result_insn): Delete.
16569 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16570 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16571 (neon_vzip<mode>): Likewise.
16572 (neon_vuzp<mode>): Likewise.
16574 2014-05-13 Richard Biener <rguenther@suse.de>
16577 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16578 it needs revisiting whether the call still may be tail-called.
16580 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16582 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16583 * rtl.h (block_symbol): Reduce number of fields to 2.
16584 (rtx_def): Add u2.symbol_ref_flags.
16585 (SYMBOL_REF_FLAGS): Use it.
16586 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16587 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16588 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16589 Lower index of SYMBOL_REF_DATA.
16590 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16591 Print SYMBOL_REF_FLAGS at the same time.
16592 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16594 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16596 * rtl.def (VAR_LOCATION): Remove "i" field.
16597 * rtl.h (rtx_def): Add u2.var_location_status.
16598 (PAT_VAR_LOCATION_STATUS): Use it.
16599 (gen_rtx_VAR_LOCATION): Declare.
16600 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16601 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16602 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16604 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16606 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16607 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16609 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16611 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16612 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16613 * rtl.h (rtx_def): Add insn_uid to u2 field.
16614 (RTX_FLAG_CHECK8): Delete in favor of...
16615 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16616 (INSN_DELETED_P): Update accordingly.
16617 (INSN_UID): Use u2.insn_uid.
16618 (INSN_CHAIN_CODE_P): Define.
16619 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16620 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16621 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16622 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16623 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16624 indices accordingly.
16625 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16626 Update indices for insn-chain rtxes.
16627 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16628 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16629 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16630 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16631 * combine.c (try_combine): Likewise.
16632 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16634 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16636 * rtl.def (REG): Remove middle field.
16637 * rtl.h (rtx_def): Add orignal_regno to u2.
16638 (ORIGINAL_REGNO): Use it instead of field 1.
16639 (REG_ATTRS): Lower field index accordingly.
16640 * gengtype.c (adjust_field_rtx_def): Remove handling of
16641 ORIGINAL_REGNO. Move REG_ATTRS index down.
16642 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16643 code that prints the REGNO.
16645 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16647 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16650 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16652 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16654 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16656 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16657 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16659 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16661 * config/aarch64/aarch64-protos.h
16662 (aarch64_hard_regno_caller_save_mode): New prototype.
16663 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16665 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16667 2014-05-13 Christian Bruel <christian.bruel@st.com>
16669 * target.def (mode_switching): New hook vector.
16670 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16671 (mode_exit, modepriority_to_mode): Likewise.
16672 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16673 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16674 * target.h: Include tm.h and hard-reg-set.h.
16675 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16676 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16677 * doc/tm.texi Regenerate.
16678 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16679 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16680 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16681 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16682 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16683 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16684 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16685 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16686 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16687 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16688 (ix86_emit_mode_set): Hookify.
16689 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16691 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16692 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16693 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16694 (epiphany_mode_priority_to_mode): Remove declaration.
16695 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16696 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16697 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16699 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16700 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16701 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16703 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16706 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16707 is const0_rtx, return immediately. Don't test count == 0 when
16710 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16712 * Makefile.in: add shrink-wrap.o.
16713 * config/i386/i386.c: include "shrink-wrap.h"
16714 * function.c: Likewise.
16715 (requires_stack_frame_p, next_block_for_reg,
16716 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16717 dup_block_and_redirect): Move to shrink-wrap.c
16718 (thread_prologue_and_epilogue_insns): Extract three code segments
16719 as functions in shrink-wrap.c
16720 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16722 * shrink-wrap.c: New file.
16723 * shrink-wrap.h: New file.
16725 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16727 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16728 reference to Solaris.
16730 2014-05-12 Mike Stump <mikestump@comcast.net>
16733 * genattrtab.c (filename): Add.
16734 (convert_set_attr_alternative): Improve error message.
16735 (check_defs): Restore read_md_filename for error messages.
16736 (gen_insn): Save filename.
16738 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16740 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16741 -fno-local-ivars and -fivar-visibility.
16742 * c-family/c.opt: Make -Wshadow also implicitly enable
16745 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16747 * doc/tm.texi: Remove reference to deleted macro.
16748 * doc/tm.texi.in: Likewise.
16750 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16753 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16756 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16759 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16760 * config/arm/aout.h (License): Same.
16761 * config/arm/bpabi.h (License): Same.
16762 * config/arm/elf.h (License): Same.
16763 * config/arm/linux-elf.h (License): Same.
16764 * config/arm/linux-gas.h (License): Same.
16765 * config/arm/netbsd-elf.h (License): Same.
16766 * config/arm/uclinux-eabi.h (License): Same.
16767 * config/arm/uclinux-elf.h (License): Same.
16768 * config/arm/vxworks.h (License): Same.
16770 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16772 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16773 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16774 number of operands to 3.
16775 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16776 * tree-nested.c (convert_nonlocal_omp_clauses,
16777 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16778 * gimplify.c (gimplify_scan_omp_clauses): Handle
16779 OMP_CLAUSE_LINEAR_STMT.
16780 * omp-low.c (lower_rec_input_clauses): Fix typo.
16781 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16782 cast between Fortran boolean_type_node and C _Bool if
16785 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16787 PR tree-optimization/61136
16788 * wide-int.h (multiple_of_p): Define a version that doesn't return
16790 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16791 integer_zerop/const_binop pair.
16792 (multiple_of_p): Likewise, converting both operands to widest_int
16795 2014-05-09 Teresa Johnson <tejohnson@google.com>
16797 * cgraphunit.c (analyze_functions): Use correct dump file.
16799 2014-05-09 Florian Weimer <fweimer@redhat.com>
16801 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16803 (stack_protect_return_slot_p): New function.
16804 (expand_used_vars): Call stack_protect_decl_p and
16805 stack_protect_return_slot_p for -fstack-protector-strong.
16807 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16808 Andrew Haley <aph@redhat.com>
16809 Richard Sandiford <rdsandiford@googlemail.com>
16811 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16814 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16816 PR middle-end/61111
16817 * fold-const.c (fold_binary_loc): Changed width of mask.
16819 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16821 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16822 unsigned int initializers for regno_in, regno_out.
16824 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16827 * config/avr/avr.md (cc): Add new attribute set_vzn.
16828 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16829 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16830 with INC, DEC or NEG.
16831 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16832 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16833 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16835 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16838 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16840 * wide-int.cc (UTItype): Define.
16841 (UDWtype): Define for appropriate W_TYPE_SIZE.
16843 2014-05-09 Richard Biener <rguenther@suse.de>
16845 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16846 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16847 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16848 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16849 ssa_propagate): Adjust.
16851 2014-05-08 Jeff Law <law@redhat.com>
16853 PR tree-optimization/61009
16854 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16855 tri-state rather than a boolean. When a block is too big to
16856 thread through, inform caller via negative return value.
16857 (thread_across_edge): If a block was too big for normal threading,
16858 then it's too big for a joiner too, so remove temporary equivalences
16859 and return immediately.
16861 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16862 Matthias Klose <doko@ubuntu.com>
16865 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16867 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16870 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16872 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16875 * config/alpha/alpha.c: Include gimple-iterator.h.
16876 (alpha_gimple_fold_builtin): New function. Move
16877 ALPHA_BUILTIN_UMULH folding from ...
16878 (alpha_fold_builtin): ... here.
16879 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16881 2014-05-08 Wei Mi <wmi@google.com>
16884 * config/i386/i386.c (ix86_compute_frame_layout): Update
16885 preferred_stack_boundary for call, expanded from tls descriptor.
16886 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16887 to depend on SP register.
16888 (*tls_local_dynamic_base_32_gnu): Ditto.
16889 (*tls_local_dynamic_32_once): Ditto.
16890 (tls_global_dynamic_64_<mode>): Set
16891 ix86_tls_descriptor_calls_expanded_in_cfun.
16892 (tls_local_dynamic_base_64_<mode>): Ditto.
16893 (tls_global_dynamic_32): Set
16894 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16895 to depend on SP register.
16896 (tls_local_dynamic_base_32): Ditto.
16898 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16900 * config/arm/arm_neon.h: Update comment.
16901 * config/arm/neon-docgen.ml: Delete.
16902 * config/arm/neon-gen.ml: Delete.
16903 * doc/arm-neon-intrinsics.texi: Update comment.
16905 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16907 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16909 (vand, vorr, veor, vorn, vbic): Remove.
16910 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16912 (neon_vsub_unspec): Likewise.
16913 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16915 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16917 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16918 (vadd_s16): Likewise.
16919 (vadd_s32): Likewise.
16920 (vadd_f32): Likewise.
16921 (vadd_u8): Likewise.
16922 (vadd_u16): Likewise.
16923 (vadd_u32): Likewise.
16924 (vadd_s64): Likewise.
16925 (vadd_u64): Likewise.
16926 (vaddq_s8): Likewise.
16927 (vaddq_s16): Likewise.
16928 (vaddq_s32): Likewise.
16929 (vaddq_s64): Likewise.
16930 (vaddq_f32): Likewise.
16931 (vaddq_u8): Likewise.
16932 (vaddq_u16): Likewise.
16933 (vaddq_u32): Likewise.
16934 (vaddq_u64): Likewise.
16935 (vmul_s8): Likewise.
16936 (vmul_s16): Likewise.
16937 (vmul_s32): Likewise.
16938 (vmul_f32): Likewise.
16939 (vmul_u8): Likewise.
16940 (vmul_u16): Likewise.
16941 (vmul_u32): Likewise.
16942 (vmul_p8): Likewise.
16943 (vmulq_s8): Likewise.
16944 (vmulq_s16): Likewise.
16945 (vmulq_s32): Likewise.
16946 (vmulq_f32): Likewise.
16947 (vmulq_u8): Likewise.
16948 (vmulq_u16): Likewise.
16949 (vmulq_u32): Likewise.
16950 (vsub_s8): Likewise.
16951 (vsub_s16): Likewise.
16952 (vsub_s32): Likewise.
16953 (vsub_f32): Likewise.
16954 (vsub_u8): Likewise.
16955 (vsub_u16): Likewise.
16956 (vsub_u32): Likewise.
16957 (vsub_s64): Likewise.
16958 (vsub_u64): Likewise.
16959 (vsubq_s8): Likewise.
16960 (vsubq_s16): Likewise.
16961 (vsubq_s32): Likewise.
16962 (vsubq_s64): Likewise.
16963 (vsubq_f32): Likewise.
16964 (vsubq_u8): Likewise.
16965 (vsubq_u16): Likewise.
16966 (vsubq_u32): Likewise.
16967 (vsubq_u64): Likewise.
16968 (vand_s8): Likewise.
16969 (vand_s16): Likewise.
16970 (vand_s32): Likewise.
16971 (vand_u8): Likewise.
16972 (vand_u16): Likewise.
16973 (vand_u32): Likewise.
16974 (vand_s64): Likewise.
16975 (vand_u64): Likewise.
16976 (vandq_s8): Likewise.
16977 (vandq_s16): Likewise.
16978 (vandq_s32): Likewise.
16979 (vandq_s64): Likewise.
16980 (vandq_u8): Likewise.
16981 (vandq_u16): Likewise.
16982 (vandq_u32): Likewise.
16983 (vandq_u64): Likewise.
16984 (vorr_s8): Likewise.
16985 (vorr_s16): Likewise.
16986 (vorr_s32): Likewise.
16987 (vorr_u8): Likewise.
16988 (vorr_u16): Likewise.
16989 (vorr_u32): Likewise.
16990 (vorr_s64): Likewise.
16991 (vorr_u64): Likewise.
16992 (vorrq_s8): Likewise.
16993 (vorrq_s16): Likewise.
16994 (vorrq_s32): Likewise.
16995 (vorrq_s64): Likewise.
16996 (vorrq_u8): Likewise.
16997 (vorrq_u16): Likewise.
16998 (vorrq_u32): Likewise.
16999 (vorrq_u64): Likewise.
17000 (veor_s8): Likewise.
17001 (veor_s16): Likewise.
17002 (veor_s32): Likewise.
17003 (veor_u8): Likewise.
17004 (veor_u16): Likewise.
17005 (veor_u32): Likewise.
17006 (veor_s64): Likewise.
17007 (veor_u64): Likewise.
17008 (veorq_s8): Likewise.
17009 (veorq_s16): Likewise.
17010 (veorq_s32): Likewise.
17011 (veorq_s64): Likewise.
17012 (veorq_u8): Likewise.
17013 (veorq_u16): Likewise.
17014 (veorq_u32): Likewise.
17015 (veorq_u64): Likewise.
17016 (vbic_s8): Likewise.
17017 (vbic_s16): Likewise.
17018 (vbic_s32): Likewise.
17019 (vbic_u8): Likewise.
17020 (vbic_u16): Likewise.
17021 (vbic_u32): Likewise.
17022 (vbic_s64): Likewise.
17023 (vbic_u64): Likewise.
17024 (vbicq_s8): Likewise.
17025 (vbicq_s16): Likewise.
17026 (vbicq_s32): Likewise.
17027 (vbicq_s64): Likewise.
17028 (vbicq_u8): Likewise.
17029 (vbicq_u16): Likewise.
17030 (vbicq_u32): Likewise.
17031 (vbicq_u64): Likewise.
17032 (vorn_s8): Likewise.
17033 (vorn_s16): Likewise.
17034 (vorn_s32): Likewise.
17035 (vorn_u8): Likewise.
17036 (vorn_u16): Likewise.
17037 (vorn_u32): Likewise.
17038 (vorn_s64): Likewise.
17039 (vorn_u64): Likewise.
17040 (vornq_s8): Likewise.
17041 (vornq_s16): Likewise.
17042 (vornq_s32): Likewise.
17043 (vornq_s64): Likewise.
17044 (vornq_u8): Likewise.
17045 (vornq_u16): Likewise.
17046 (vornq_u32): Likewise.
17047 (vornq_u64): Likewise.
17049 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17051 * wide-int.cc (UTItype): Define.
17052 (UDWtype): Define for appropriate W_TYPE_SIZE.
17054 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17056 PR tree-optimization/59100
17057 * tree-ssa-phiopt.c: Include tree-inline.h.
17058 (neutral_element_p, absorbing_element_p): New functions.
17059 (value_replacement): Handle conditional binary operations with a
17060 neutral or absorbing element.
17062 2014-05-08 Richard Biener <rguenther@suse.de>
17064 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17065 folding the expression.
17066 (valueize_expr): Remove.
17067 (visit_reference_op_load): Do not valueize the result of
17069 (simplify_binary_expression): Likewise.
17070 (simplify_unary_expression): Likewise.
17072 2014-05-08 Richard Biener <rguenther@suse.de>
17074 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17075 looking at TYPE_ARG_TYPES.
17077 2014-05-08 Richard Biener <rguenther@suse.de>
17079 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17080 pointer propagation special-case.
17082 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17084 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17085 core part of address expressions.
17087 2014-05-08 Alan Modra <amodra@gmail.com>
17090 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17091 loads and stores when -mno-strict-align at any alignment.
17092 (expand_block_clear): Similarly. Also correct calculation of
17095 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17097 PR middle-end/39246
17098 * tree-complex.c (expand_complex_move): Keep line info when expanding
17100 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17101 of complex expression. Use new argument to display correct location
17102 for values coming from phi statement.
17103 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17104 (warn_uninitialized_phi): Pass location of phi argument to
17106 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17107 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17109 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17111 * config/rs6000/predicates.md (indexed_address_mem): New.
17112 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17113 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17114 fpstore_ux, fpstore_u.
17115 (sign_extend, indexed, update): New.
17116 (cell_micro): Adjust.
17117 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17118 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17119 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17120 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17121 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17122 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17123 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17124 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17125 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17126 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17127 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17128 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17129 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17130 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17131 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17133 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17134 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17135 *vsx_extract_<mode>_store): Adjust.
17136 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17137 is_cracked_insn, insn_must_be_first_in_group,
17138 insn_must_be_last_in_group): Adjust.
17140 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17142 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17143 ppc440-fpstore): Adjust.
17144 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17145 ppc476-fpstore): Adjust.
17146 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17147 ppc601-fpstore): Adjust.
17148 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17150 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17152 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17153 ppc7450-fpstore): Adjust.
17154 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17155 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17156 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17158 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17159 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17160 cell-fpstore, cell-fpstore-update): Adjust.
17161 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17162 ppce300c3_store, ppce300c3_fpstore): Adjust.
17163 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17164 e500mc_fpstore): Adjust.
17165 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17166 e500mc64_store, e500mc64_fpstore): Adjust.
17167 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17168 e5500_fpstore): Adjust.
17169 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17170 e6500_fpstore): Adjust.
17171 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17173 * config/rs6000/power4.md (power4-load, power4-load-ext,
17174 power4-load-ext-update, power4-load-ext-update-indexed,
17175 power4-load-update-indexed, power4-load-update, power4-fpload,
17176 power4-fpload-update, power4-store, power4-store-update,
17177 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17179 * config/rs6000/power5.md (power5-load, power5-load-ext,
17180 power5-load-ext-update, power5-load-ext-update-indexed,
17181 power5-load-update-indexed, power5-load-update, power5-fpload,
17182 power5-fpload-update, power5-store, power5-store-update,
17183 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17185 * config/rs6000/power6.md (power6-load, power6-load-ext,
17186 power6-load-update, power6-load-update-indexed,
17187 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17188 power6-fpload-update, power6-store, power6-store-update,
17189 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17191 * config/rs6000/power7.md (power7-load, power7-load-ext,
17192 power7-load-update, power7-load-update-indexed,
17193 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17194 power7-fpload-update, power7-store, power7-store-update,
17195 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17197 * config/rs6000/power8.md (power8-load, power8-load-update,
17198 power8-load-ext, power8-load-ext-update, power8-fpload,
17199 power8-fpload-update, power8-store, power8-store-update-indexed,
17200 power8-fpstore, power8-fpstore-update): Adjust.
17201 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17203 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17204 titan_lsu_store, titan_lsu_fpstore): Adjust.
17205 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17207 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17210 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17211 unrolled byte insns. Emit address increments after move insns.
17213 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17215 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17216 const_gimple, rather than a gimple.
17217 (gimple_call_builtin_p): Likewise, for the three variants.
17219 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17220 (gimple_call_builtin_p): Likewise, for the three variants.
17222 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17224 PR tree-optimization/61095
17225 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17227 2014-05-07 Richard Biener <rguenther@suse.de>
17229 PR tree-optimization/61034
17230 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17231 (maybe_skip_until): Use translate to take into account
17232 lattices when trying to do disambiguations.
17233 (get_continuation_for_phi_1): Likewise.
17234 (get_continuation_for_phi): Adjust for added translate arguments.
17235 (walk_non_aliased_vuses): Likewise.
17236 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17237 (walk_non_aliased_vuses): Likewise.
17238 (call_may_clobber_ref_p_1): Declare.
17239 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17240 calls. Stop early if we are only supposed to disambiguate.
17241 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17243 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17245 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17246 Emit an error when the function has arguments.
17248 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17250 * cfgloop.h (unswitch_loops): Remove.
17251 * doc/passes.texi: Remove references to loop-unswitch.c
17252 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17254 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17256 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17257 check for loads group of length 3.
17258 (vect_permute_load_chain): New permutations for loads group of
17260 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17261 of vec_perm_shuffle for the new permutations.
17263 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17265 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17266 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17267 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17268 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17269 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17270 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17271 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17272 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17274 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17276 * loop-unswitch.c: Delete.
17278 2014-05-07 Richard Biener <rguenther@suse.de>
17280 * config.gcc: Always set need_64bit_hwint to yes.
17282 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17284 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17285 of using optimize_size.
17287 2014-05-06 Mike Stump <mikestump@comcast.net>
17289 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17291 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17293 * config/i386/sse.md (*mov<mode>_internal)
17294 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17295 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17296 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17297 (*<code><mode>3, *andnot<mode>3<mask_name>)
17298 (<mask_codefor><code><mode>3<mask_name>): Only consider
17299 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17301 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17304 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17306 * lra-constraints.c (valid_address_p): Move earlier in file.
17307 Add a constraint argument to the address_info version.
17308 (satisfies_memory_constraint_p): New function.
17309 (satisfies_address_constraint_p): Likewise.
17310 (process_alt_operands, curr_insn_transform): Use them.
17311 (process_address): Pass the constraint to valid_address_p when
17312 checking address operands.
17314 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17316 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17317 to their respective blocks. Fix inadvertent use of "node".
17319 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17321 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17323 (init_emit_once): ...here.
17324 * rtl.h (init_derived_machine_modes): Declare.
17325 * toplev.c (do_compile): Call it even if no_backend.
17327 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17328 Mike Stump <mikestump@comcast.net>
17329 Richard Sandiford <rdsandiford@googlemail.com>
17330 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17332 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17333 (rtx_equal_for_memref_p): Update comment.
17334 (adjust_offset_for_component_ref): Use wide-int interfaces.
17335 * builtins.c (get_object_alignment_2): Likewise.
17336 (c_readstr): Likewise.
17337 (target_char_cast): Add comment.
17338 (determine_block_size): Use wide-int interfaces.
17339 (expand_builtin_signbit): Likewise.
17340 (fold_builtin_int_roundingfn): Likewise.
17341 (fold_builtin_bitop): Likewise.
17342 (fold_builtin_bswap): Likewise.
17343 (fold_builtin_logarithm): Use signop.
17344 (fold_builtin_pow): Likewise.
17345 (fold_builtin_memory_op): Use wide-int interfaces.
17346 (fold_builtin_object_size): Likewise.
17347 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17348 nb_iterations_estimate.
17349 (record_niter_bound): Use wide-int interfaces.
17350 (get_estimated_loop_iterations_int): Likewise.
17351 (get_estimated_loop_iterations): Likewise.
17352 (get_max_loop_iterations): Likewise.
17353 * cfgloop.h: Include wide-int.h.
17354 (struct nb_iter_bound): Change bound to widest_int.
17355 (struct loop): Change nb_iterations_upper_bound and
17356 nb_iterations_estimate to widest_int.
17357 (record_niter_bound): Switch to use widest_int.
17358 (get_estimated_loop_iterations): Likewise.
17359 (get_max_loop_iterations): Likewise.
17360 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17361 update for wide-int.
17362 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17363 * combine.c (try_combine): Likewise.
17364 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17365 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17367 (aarch64_float_const_representable_p): Likewise.
17368 * config/arc/arc.c: Include wide-int.h.
17369 (arc_can_use_doloop_p): Use wide-int interfaces.
17370 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17371 (vfp3_const_double_index): Likewise.
17372 * config/avr/avr.c (avr_out_round): Likewise.
17373 (avr_fold_builtin): Likewise.
17374 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17375 (bfin_can_use_doloop_p): Likewise.
17376 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17377 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17378 * config/i386/i386.c: Include wide-int.h.
17379 (ix86_data_alignment): Use wide-int interfaces.
17380 (ix86_local_alignment): Likewise.
17381 (ix86_emit_swsqrtsf): Update real_from_integer.
17382 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17383 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17384 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17385 (zero_constant): Likewise.
17386 (input_operand): Likewise.
17387 (splat_input_operand): Likewise.
17388 (non_logical_cint_operand): Change const_double to const_wide_int.
17389 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17390 (easy_altivec_constant): Remove comment.
17391 (paired_expand_vector_init): Use CONSTANT_P.
17392 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17393 (rs6000_emit_move): Update checks.
17394 (rs6000_aggregate_candidate): Use wide-int interfaces.
17395 (rs6000_expand_ternop_builtin): Likewise.
17396 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17397 (rs6000_assemble_integer): Likewise.
17398 (rs6000_hash_constant): Likewise.
17399 (output_toc): Likewise.
17400 (rs6000_rtx_costs): Likewise.
17401 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17402 * config/rs6000/rs6000-c.c: Include wide-int.h.
17403 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17404 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17405 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17406 Handle CONST_WIDE_INT.
17407 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17408 Use tree_fits_uhwi_p.
17409 * config/sparc/sparc.c: Include wide-int.h.
17410 (sparc_fold_builtin): Use wide-int interfaces.
17411 * config/vax/vax.c: Include wide-int.h.
17412 (vax_float_literal): Use real_from_integer.
17413 * coretypes.h (struct hwivec_def): New.
17415 (const_hwivec): New.
17416 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17417 (equiv_constant): Handle CONST_WIDE_INT.
17418 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17419 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17420 * dbxout.c (stabstr_U): Use wide-int interfaces.
17421 (dbxout_type): Update to use cst_fits_shwi_p.
17422 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17423 (TARGET_SUPPORTS_WIDE_INT): Add default.
17424 * dfp.c: Include wide-int.h.
17425 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17426 decimal_real_to_integer.
17427 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17428 decimal_real_to_integer.
17429 * doc/generic.texi (Constant expressions): Update for wide_int.
17430 * doc/rtl.texi (const_double): Likewise.
17431 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17432 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17433 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17434 (REAL_VALUE_FROM_INT): Remove.
17435 (TARGET_SUPPORTS_WIDE_INT): New.
17436 * doc/tm.texi: Regenerate.
17437 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17438 * double-int.h: Include wide-int.h.
17439 (struct wi::int_traits): New.
17440 * dwarf2out.c (get_full_len): New.
17441 (dw_val_equal_p): Add case dw_val_class_wide_int.
17442 (size_of_loc_descr): Likewise.
17443 (output_loc_operands): Likewise.
17444 (insert_double): Remove.
17445 (insert_wide_int): New.
17446 (add_AT_wide): New.
17447 (print_die): Add case dw_val_class_wide_int.
17448 (attr_checksum): Likewise.
17449 (attr_checksum_ordered): Likewise.
17450 (same_dw_val_p): Likewise.
17451 (size_of_die): Likewise.
17452 (value_format): Likewise.
17453 (output_die): Likewise.
17454 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17456 (clz_loc_descriptor): Use wide-int interfaces.
17457 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17458 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17459 (round_up_to_align): Use wide-int interfaces.
17460 (field_byte_offset): Likewise.
17461 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17462 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17463 CONST_DOUBLE handling. Use wide-int interfaces.
17464 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17465 (gen_enumeration_type_die): Use add_AT_wide.
17466 (hash_loc_operands): Add case dw_val_class_wide_int.
17467 (compare_loc_operands): Likewise.
17468 * dwarf2out.h: Include wide-int.h.
17469 (wide_int_ptr): New.
17470 (enum dw_val_class): Add dw_val_class_wide_int.
17471 (struct dw_val_struct): Add val_wide.
17472 * emit-rtl.c (const_wide_int_htab): New.
17473 (const_wide_int_htab_hash): New.
17474 (const_wide_int_htab_eq): New.
17475 (lookup_const_wide_int): New.
17476 (const_double_htab_hash): Use wide-int interfaces.
17477 (const_double_htab_eq): Likewise.
17478 (rtx_to_double_int): Conditionally compile for wide-int.
17479 (immed_double_int_const): Rename to immed_wide_int_const and
17480 update for wide-int.
17481 (immed_double_const): Conditionally compile for wide-int.
17482 (init_emit_once): Use wide-int interfaces.
17483 * explow.c (plus_constant): Likewise.
17484 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17485 (lshift_value): Use wide-int interfaces.
17486 (expand_mult): Likewise.
17487 (choose_multiplier): Likewise.
17488 (expand_smod_pow2): Likewise.
17489 (make_tree): Likewise.
17490 * expr.c (convert_modes): Consolidate handling of constants.
17491 Use wide-int interfaces.
17492 (emit_group_load_1): Add note.
17493 (store_expr): Update comment.
17494 (get_inner_reference): Use wide-int interfaces.
17495 (expand_constructor): Update comment.
17496 (expand_expr_real_2): Use wide-int interfaces.
17497 (expand_expr_real_1): Likewise.
17498 (reduce_to_bit_field_precision): Likewise.
17499 (const_vector_from_tree): Likewise.
17500 * final.c: Include wide-int-print.h.
17501 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17502 * fixed-value.c: Include wide-int.h.
17503 (fixed_from_string): Use wide-int interfaces.
17504 (fixed_to_decimal): Likewise.
17505 (fixed_convert_from_real): Likewise.
17506 (real_convert_from_fixed): Likewise.
17507 * fold-const.h (mem_ref_offset): Return an offset_int.
17508 (div_if_zero_remainder): Remove code parameter.
17509 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17510 Use wide-int interfaces.
17511 (may_negate_without_overflow_p): Use wide-int interfaces.
17512 (negate_expr_p): Likewise.
17513 (fold_negate_expr): Likewise.
17514 (int_const_binop_1): Likewise.
17515 (const_binop): Likewise.
17516 (fold_convert_const_int_from_int): Likewise.
17517 (fold_convert_const_int_from_real): Likewise.
17518 (fold_convert_const_int_from_fixed): Likewise.
17519 (fold_convert_const_fixed_from_int): Likewise.
17520 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17521 (sign_bit_p): Use wide-int interfaces.
17522 (make_range_step): Likewise.
17523 (build_range_check): Likewise. Pass an integer of the correct type
17524 instead of using integer_one_node.
17525 (range_predecessor): Pass an integer of the correct type instead
17526 of using integer_one_node.
17527 (range_successor): Likewise.
17528 (merge_ranges): Likewise.
17529 (unextend): Use wide-int interfaces.
17530 (extract_muldiv_1): Likewise.
17531 (fold_div_compare): Likewise.
17532 (fold_single_bit_test): Likewise.
17533 (fold_sign_changed_comparison): Likewise.
17534 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17535 (fold_plusminus_mult_expr): Use wide-int interfaces.
17536 (native_encode_int): Likewise.
17537 (native_interpret_int): Likewise.
17538 (fold_unary_loc): Likewise.
17539 (pointer_may_wrap_p): Likewise.
17540 (size_low_cst): Likewise.
17541 (mask_with_tz): Likewise.
17542 (fold_binary_loc): Likewise.
17543 (fold_ternary_loc): Likewise.
17544 (multiple_of_p): Likewise.
17545 (tree_call_nonnegative_warnv_p): Update calls to
17546 tree_int_cst_min_precision and real_from_integer.
17547 (fold_negate_const): Use wide-int interfaces.
17548 (fold_abs_const): Likewise.
17549 (fold_relational_const): Use tree_int_cst_lt.
17550 (round_up_loc): Use wide-int interfaces.
17551 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17552 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17553 * gengtype.c: Remove include of double-int.h.
17554 (do_typedef): Use wide-int interfaces.
17555 (open_base_files): Add wide-int.h.
17556 (main): Add offset_int and widest_int typedefs.
17557 * gengtype-lex.l: Handle "^".
17558 (CXX_KEYWORD): Add "static".
17559 * gengtype-parse.c (require3): New.
17560 (require_template_declaration): Handle constant template arguments
17561 and nested templates.
17562 * gengtype-state.c: Don't include "double-int.h".
17563 * genpreds.c (write_one_predicate_function): Update comment.
17564 (write_tm_constrs_h): Add check for hval and lval use in
17566 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17567 (add_to_sequence): Likewise.
17568 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17569 and const_double_operand.
17570 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17572 * gimple-fold.c (get_base_constructor): Likewise.
17573 (fold_array_ctor_reference): Likewise.
17574 (fold_nonarray_ctor_reference): Likewise.
17575 (fold_const_aggregate_ref_1): Likewise.
17576 (gimple_val_nonnegative_real_p): Likewise.
17577 (gimple_fold_indirect_ref): Likewise.
17578 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17579 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17580 (struct slsr_cand_d): Change index to be widest_int.
17581 (struct incr_info_d): Change incr to be widest_int.
17582 (alloc_cand_and_find_basis): Use wide-int interfaces.
17583 (slsr_process_phi): Likewise.
17584 (backtrace_base_for_ref): Likewise. Return a widest_int.
17585 (restructure_reference): Take a widest_int instead of a double_int.
17586 (slsr_process_ref): Use wide-int interfaces.
17587 (create_mul_ssa_cand): Likewise.
17588 (create_mul_imm_cand): Likewise.
17589 (create_add_ssa_cand): Likewise.
17590 (create_add_imm_cand): Take a widest_int instead of a double_int.
17591 (slsr_process_add): Use wide-int interfaces.
17592 (slsr_process_cast): Likewise.
17593 (slsr_process_copy): Likewise.
17594 (dump_candidate): Likewise.
17595 (dump_incr_vec): Likewise.
17596 (replace_ref): Likewise.
17597 (cand_increment): Likewise. Return a widest_int.
17598 (cand_abs_increment): Likewise.
17599 (replace_mult_candidate): Take a widest_int instead of a double_int.
17600 (replace_unconditional_candidate): Use wide-int interfaces.
17601 (incr_vec_index): Take a widest_int instead of a double_int.
17602 (create_add_on_incoming_edge): Likewise.
17603 (create_phi_basis): Use wide-int interfaces.
17604 (replace_conditional_candidate): Likewise.
17605 (record_increment): Take a widest_int instead of a double_int.
17606 (record_phi_increments): Use wide-int interfaces.
17607 (phi_incr_cost): Take a widest_int instead of a double_int.
17608 (lowest_cost_path): Likewise.
17609 (total_savings): Likewise.
17610 (analyze_increments): Use wide-int interfaces.
17611 (ncd_with_phi): Take a widest_int instead of a double_int.
17612 (ncd_of_cand_and_phis): Likewise.
17613 (nearest_common_dominator_for_cands): Likewise.
17614 (insert_initializers): Use wide-int interfaces.
17615 (all_phi_incrs_profitable): Likewise.
17616 (replace_one_candidate): Likewise.
17617 (replace_profitable_candidates): Likewise.
17618 * godump.c: Include wide-int-print.h.
17619 (go_output_typedef): Use wide-int interfaces.
17620 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17621 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17622 (build_loop_iteration_domains): Likewise.
17623 * hooks.h: Include wide-int.h rather than double-int.h.
17624 (hook_bool_dint_dint_uint_bool_true): Delete.
17625 (hook_bool_wint_wint_uint_bool_true): Declare.
17626 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17627 (hook_bool_wint_wint_uint_bool_true): New.
17628 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17630 (ubsan_expand_si_overflow_mul_check): Likewise.
17631 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17632 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17633 (get_ancestor_addr_info): Likewise.
17634 (ipa_modify_call_arguments): Likewise.
17635 * loop-doloop.c (doloop_modify): Likewise.
17636 (doloop_optimize): Likewise.
17637 * loop-iv.c (iv_number_of_iterations): Likewise.
17638 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17639 (unroll_loop_constant_iterations): Likewise.
17640 (decide_unroll_runtime_iterations): Likewise.
17641 (unroll_loop_runtime_iterations): Likewise.
17642 (decide_peel_simple): Likewise.
17643 (decide_unroll_stupid): Likewise.
17644 * lto-streamer-in.c (streamer_read_wi): Add.
17645 (input_cfg): Use wide-int interfaces.
17646 (lto_input_tree_1): Likewise.
17647 * lto-streamer-out.c (streamer_write_wi): Add.
17648 (hash_tree): Use wide-int interfaces.
17649 (output_cfg): Likewise.
17650 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17651 (GTFILES): Add wide-int.h and signop.h.
17652 (TAGS): Look for .cc files too.
17653 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17654 * optabs.c (expand_subword_shift): Likewise.
17655 (expand_doubleword_shift): Likewise.
17656 (expand_absneg_bit): Likewise.
17657 (expand_copysign_absneg): Likewise.
17658 (expand_copysign_bit): Likewise.
17659 * postreload.c (reload_cse_simplify_set): Likewise.
17660 * predict.c (predict_iv_comparison): Likewise.
17661 * pretty-print.h: Include wide-int-print.h.
17663 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17664 * print-tree.c: Include wide-int-print.h.
17665 (print_node_brief): Use wide-int interfaces.
17666 (print_node): Likewise.
17667 * read-rtl.c (validate_const_wide_int): New.
17668 (read_rtx_code): Add CONST_WIDE_INT case.
17669 * real.c: Include wide-int.h.
17670 (real_to_integer2): Delete.
17671 (real_to_integer): New function, returning a wide_int.
17672 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17673 (ten_to_ptwo): Update call to real_from_integer.
17674 (real_digit): Likewise.
17675 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17676 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17677 (REAL_VALUE_TO_INT): Delete.
17678 (real_to_integer): Declare a wide-int form.
17679 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17680 * recog.c (const_int_operand): Improve comment.
17681 (const_scalar_int_operand): New.
17682 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17683 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17684 (split_double): Likewise.
17685 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17686 (rtx_size): Likewise.
17687 (rtx_alloc_stat_v): New.
17688 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17689 (cwi_output_hex): New.
17690 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17691 (cwi_check_failed_bounds): New.
17692 * rtl.def (CONST_WIDE_INT): New.
17693 * rtl.h: Include <utility> and wide-int.h.
17694 (struct hwivec_def): New.
17695 (CWI_GET_NUM_ELEM): New.
17696 (CWI_PUT_NUM_ELEM): New.
17697 (struct rtx_def): Add num_elem and hwiv.
17698 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17699 (CASE_CONST_UNIQUE): Likewise.
17700 (CASE_CONST_ANY): Likewise.
17701 (CONST_SCALAR_INT_P): Likewise.
17702 (CONST_WIDE_INT_P): New.
17704 (HWIVEC_CHECK): New.
17705 (cwi_check_failed_bounds): New.
17707 (HWIVEC_CHECK): New.
17708 (CONST_WIDE_INT_VEC) New.
17709 (CONST_WIDE_INT_NUNITS) New.
17710 (CONST_WIDE_INT_ELT) New.
17711 (rtx_mode_t): New type.
17712 (wi::int_traits <rtx_mode_t>): New.
17714 (wi::min_value): New.
17715 (wi::max_value): New.
17717 (const_wide_int_alloc): New.
17718 (immed_wide_int_const): New.
17719 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17720 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17721 * signop.h: New file.
17722 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17723 (simplify_const_unary_operation): Use wide-int interfaces.
17724 (simplify_binary_operation_1): Likewise.
17725 (simplify_const_binary_operation): Likewise.
17726 (simplify_const_relational_operation): Likewise.
17727 (simplify_immed_subreg): Likewise.
17728 * stmt.c (expand_case): Likewise.
17729 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17730 signop rather than a bool.
17731 * stor-layout.c (layout_type): Use wide-int interfaces.
17732 (initialize_sizetypes): Update calls to
17733 set_min_and_max_values_for_integral_type.
17734 (set_min_and_max_values_for_integral_type): Take a signop rather
17735 than a bool. Use wide-int interfaces.
17736 (fixup_signed_type): Update accordingly. Remove
17737 HOST_BITS_PER_DOUBLE_INT limit.
17738 (fixup_unsigned_type): Likewise.
17739 * system.h (STATIC_CONSTANT_P): New.
17740 (STATIC_ASSERT): New.
17741 * target.def (can_use_doloop_p): Take widest_ints rather than
17743 * target.h: Include wide-int.h rather than double-int.h.
17744 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17746 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17747 rather than INT_CST_LT_UNSIGNED.
17748 (can_use_doloop_if_innermost): Take widest_ints rather than
17750 * tree-affine.c: Include wide-int-print.h.
17751 (double_int_ext_for_comb): Delete.
17752 (wide_int_ext_for_comb): New.
17753 (aff_combination_zero): Use wide-int interfaces.
17754 (aff_combination_const): Take a widest_int instead of a double_int.
17755 (aff_combination_elt): Use wide-int interfaces.
17756 (aff_combination_scale): Take a widest_int instead of a double_int.
17757 (aff_combination_add_elt): Likewise.
17758 (aff_combination_add_cst): Likewise.
17759 (aff_combination_add): Use wide-int interfaces.
17760 (aff_combination_convert): Likewise.
17761 (tree_to_aff_combination): Likewise.
17762 (add_elt_to_tree): Take a widest_int instead of a double_int.
17763 (aff_combination_to_tree): Use wide-int interfaces.
17764 (aff_combination_remove_elt): Likewise.
17765 (aff_combination_add_product): Take a widest_int instead of
17767 (aff_combination_mult): Use wide-int interfaces.
17768 (aff_combination_expand): Likewise.
17769 (double_int_constant_multiple_p): Delete.
17770 (wide_int_constant_multiple_p): New.
17771 (aff_combination_constant_multiple_p): Take a widest_int pointer
17772 instead of a double_int pointer.
17773 (print_aff): Use wide-int interfaces.
17774 (get_inner_reference_aff): Take a widest_int pointer
17775 instead of a double_int pointer.
17776 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17777 * tree-affine.h: Include wide-int.h.
17778 (struct aff_comb_elt): Change type of coef to widest_int.
17779 (struct affine_tree_combination): Change type of offset to widest_int.
17780 (double_int_ext_for_comb): Delete.
17781 (wide_int_ext_for_comb): New.
17782 (aff_combination_const): Use widest_int instead of double_int.
17783 (aff_combination_scale): Likewise.
17784 (aff_combination_add_elt): Likewise.
17785 (aff_combination_constant_multiple_p): Likewise.
17786 (get_inner_reference_aff): Likewise.
17787 (aff_comb_cannot_overlap_p): Likewise.
17788 (aff_combination_zero_p): Use wide-int interfaces.
17789 * tree.c: Include tree.h.
17790 (init_ttree): Use make_int_cst.
17791 (tree_code_size): Removed code for INTEGER_CST case.
17792 (tree_size): Add INTEGER_CST case.
17793 (make_node_stat): Update comment.
17794 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17795 (build_int_cst_type): Use wide-int interfaces.
17796 (double_int_to_tree): Likewise.
17797 (double_int_fits_to_tree_p): Delete.
17798 (force_fit_type_double): Delete.
17799 (force_fit_type): New.
17800 (int_cst_hash_hash): Use wide-int interfaces.
17801 (int_cst_hash_eq): Likewise.
17802 (build_int_cst_wide): Delete.
17803 (wide_int_to_tree): New.
17804 (cache_integer_cst): Use wide-int interfaces.
17805 (build_low_bits_mask): Likewise.
17806 (cst_and_fits_in_hwi): Likewise.
17807 (real_value_from_int_cst): Likewise.
17808 (make_int_cst_stat): New.
17809 (integer_zerop): Use wide_int interfaces.
17810 (integer_onep): Likewise.
17811 (integer_all_onesp): Likewise.
17812 (integer_pow2p): Likewise.
17813 (integer_nonzerop): Likewise.
17814 (tree_log2): Likewise.
17815 (tree_floor_log2): Likewise.
17816 (tree_ctz): Likewise.
17817 (int_size_in_bytes): Likewise.
17818 (mem_ref_offset): Return an offset_int rather than a double_int.
17819 (build_type_attribute_qual_variant): Use wide_int interfaces.
17820 (type_hash_eq): Likewise
17821 (tree_int_cst_equal): Likewise.
17822 (tree_int_cst_lt): Delete.
17823 (tree_int_cst_compare): Likewise.
17824 (tree_fits_shwi_p): Use wide_int interfaces.
17825 (tree_fits_uhwi_p): Likewise.
17826 (tree_int_cst_sign_bit): Likewise.
17827 (tree_int_cst_sgn): Likewise.
17828 (tree_int_cst_min_precision): Take a signop rather than a bool.
17829 (simple_cst_equal): Use wide_int interfaces.
17830 (compare_tree_int): Likewise.
17831 (iterative_hash_expr): Likewise.
17832 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17834 (get_type_static_bounds): Use wide_int interfaces.
17835 (tree_int_cst_elt_check_failed): New.
17836 (build_common_tree_nodes): Reordered to set prec before filling in
17838 (int_cst_value): Check cst_and_fits_in_hwi.
17839 (widest_int_cst_value): Use wide_int interfaces.
17840 (upper_bound_in_type): Likewise.
17841 (lower_bound_in_type): Likewise.
17842 (num_ending_zeros): Likewise.
17843 (drop_tree_overflow): Likewise.
17844 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17845 (gen_conditions_for_pow_cst_base): Likewise.
17846 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17847 (group_case_labels_stmt): Use wide-int interfaces.
17848 (verify_gimple_assign_binary): Likewise.
17849 (print_loop): Likewise.
17850 * tree-chrec.c (tree_fold_binomial): Likewise.
17851 * tree-core.h (struct tree_base): Add int_length.
17852 (struct tree_int_cst): Change rep of value.
17853 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17854 (dr_may_alias_p): Likewise.
17855 (max_stmt_executions_tree): Likewise.
17856 * tree.def (INTEGER_CST): Update comment.
17857 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17858 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17859 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17860 (dequeue_and_dump): Use wide-int interfaces.
17861 * tree.h: Include wide-int.h.
17862 (NULL_TREE): Moved to earlier loc in file.
17863 (TREE_INT_CST_ELT_CHECK): New.
17864 (tree_int_cst_elt_check_failed): New.
17866 (TREE_INT_CST): Delete.
17867 (TREE_INT_CST_LOW): Use wide-int interfaces.
17868 (TREE_INT_CST_HIGH): Delete.
17869 (TREE_INT_CST_NUNITS): New.
17870 (TREE_INT_CST_EXT_NUNITS): Likewise.
17871 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17872 (TREE_INT_CST_ELT): Likewise.
17873 (INT_CST_LT): Delete.
17874 (tree_int_cst_elt_check): New (two forms).
17875 (type_code_size): Update comment.
17876 (make_int_cst_stat, make_int_cst): New.
17877 (tree_to_double_int): Delete.
17878 (double_int_fits_to_tree_p): Delete.
17879 (force_fit_type_double): Delete.
17880 (build_int_cstu): Replace with out-of-line function.
17881 (build_int_cst_wide): Delete.
17882 (tree_int_cst_lt): Define inline.
17883 (tree_int_cst_le): New.
17884 (tree_int_cst_compare): Define inline.
17885 (tree_int_cst_min_precision): Take a signop rather than a bool.
17886 (wi::int_traits <const_tree>): New.
17887 (wi::int_traits <tree>): New.
17888 (wi::extended_tree): New.
17889 (wi::int_traits <wi::extended_tree>): New.
17890 (wi::to_widest): New.
17891 (wi::to_offset): New.
17892 (wi::fits_to_tree_p): New.
17893 (wi::min_value): New.
17894 (wi::max_value): New.
17895 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17896 (copy_tree_body_r): Likewise.
17897 * tree-object-size.c (compute_object_offset): Likewise.
17898 (addr_object_size): Likewise.
17899 * tree-predcom.c: Include wide-int-print.h.
17900 (struct dref_d): Change type of offset to widest_int.
17901 (dump_dref): Call wide-int printer.
17902 (aff_combination_dr_offset): Use wide-int interfaces.
17903 (determine_offset): Take a widest_int pointer rather than a
17904 double_int pointer.
17905 (split_data_refs_to_components): Use wide-int interfaces.
17906 (suitable_component_p): Likewise.
17907 (order_drefs): Likewise.
17908 (add_ref_to_chain): Likewise.
17909 (valid_initializer_p): Likewise.
17910 (determine_roots_comp): Likewise.
17911 * tree-pretty-print.c: Include wide-int-print.h.
17912 (dump_generic_node): Use wide-int interfaces.
17913 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17914 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17915 (move_fixed_address_to_symbol): Likewise.
17916 (move_hint_to_base): Likewise.
17917 (move_pointer_to_base): Likewise.
17918 (move_variant_to_index): Likewise.
17919 (most_expensive_mult_to_index): Likewise.
17920 (addr_to_parts): Likewise.
17921 (copy_ref_info): Likewise.
17922 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17923 (indirect_refs_may_alias_p): Likewise.
17924 (stmt_kills_ref_p_1): Likewise.
17925 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17926 * tree-ssa-ccp.c: Update comment at top of file. Include
17928 (struct prop_value_d): Change type of mask to widest_int.
17929 (extend_mask): New function.
17930 (dump_lattice_value): Use wide-int interfaces.
17931 (get_default_value): Likewise.
17932 (set_constant_value): Likewise.
17933 (set_value_varying): Likewise.
17934 (valid_lattice_transition): Likewise.
17935 (set_lattice_value): Likewise.
17936 (value_to_double_int): Delete.
17937 (value_to_wide_int): New.
17938 (get_value_from_alignment): Use wide-int interfaces.
17939 (get_value_for_expr): Likewise.
17940 (do_dbg_cnt): Likewise.
17941 (ccp_finalize): Likewise.
17942 (ccp_lattice_meet): Likewise.
17943 (bit_value_unop_1): Use widest_ints rather than double_ints.
17944 (bit_value_binop_1): Likewise.
17945 (bit_value_unop): Use wide-int interfaces.
17946 (bit_value_binop): Likewise.
17947 (bit_value_assume_aligned): Likewise.
17948 (evaluate_stmt): Likewise.
17949 (ccp_fold_stmt): Likewise.
17950 (visit_cond_stmt): Likewise.
17951 (ccp_visit_stmt): Likewise.
17952 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17953 (constant_pointer_difference): Likewise.
17954 (associate_pointerplus): Likewise.
17955 (combine_conversions): Likewise.
17956 * tree-ssa-loop.h: Include wide-int.h.
17957 (struct tree_niter_desc): Change type of max to widest_int.
17958 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17959 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17960 (remove_redundant_iv_tests): Likewise.
17961 (canonicalize_loop_induction_variables): Likewise.
17962 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17963 (constant_multiple_of): Take a widest_int pointer instead of
17964 a double_int pointer.
17965 (get_computation_aff): Use wide-int interfaces.
17966 (ptr_difference_cost): Likewise.
17967 (difference_cost): Likewise.
17968 (get_loop_invariant_expr_id): Likewise.
17969 (get_computation_cost_at): Likewise.
17970 (iv_elimination_compare_lt): Likewise.
17971 (may_eliminate_iv): Likewise.
17972 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17973 instead of double_int.
17974 (max_loop_iterations): Likewise.
17975 (max_stmt_executions): Likewise.
17976 (estimated_stmt_executions): Likewise.
17977 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17978 (split_to_var_and_offset): Use wide-int interfaces.
17979 (determine_value_range): Likewise.
17980 (bound_difference_of_offsetted_base): Likewise.
17981 (bounds_add): Take a widest_int instead of a double_int.
17982 (number_of_iterations_ne_max): Use wide-int interfaces.
17983 (number_of_iterations_ne): Likewise.
17984 (number_of_iterations_lt_to_ne): Likewise.
17985 (assert_loop_rolls_lt): Likewise.
17986 (number_of_iterations_lt): Likewise.
17987 (number_of_iterations_le): Likewise.
17988 (number_of_iterations_cond): Likewise.
17989 (number_of_iterations_exit): Likewise.
17990 (finite_loop_p): Likewise.
17991 (derive_constant_upper_bound_assign): Likewise.
17992 (derive_constant_upper_bound): Return a widest_int.
17993 (derive_constant_upper_bound_ops): Likewise.
17994 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17995 (record_estimate): Take a widest_int rather than a double_int.
17996 (record_nonwrapping_iv): Use wide-int interfaces.
17997 (double_int_cmp): Delete.
17998 (wide_int_cmp): New.
17999 (bound_index): Take a widest_int rather than a double_int.
18000 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18001 (maybe_lower_iteration_bound): Likewise.
18002 (estimate_numbers_of_iterations_loop): Likewise.
18003 (estimated_loop_iterations): Take a widest_int pointer than than
18004 a double_int pointer.
18005 (estimated_loop_iterations_int): Use wide-int interfaces.
18006 (max_loop_iterations): Take a widest_int pointer than than
18007 a double_int pointer.
18008 (max_loop_iterations_int): Use wide-int interfaces.
18009 (max_stmt_executions): Take a widest_int pointer than than
18010 a double_int pointer.
18011 (estimated_stmt_executions): Likewise.
18012 (n_of_executions_at_most): Use wide-int interfaces.
18013 (scev_probably_wraps_p): Likewise.
18014 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18015 to real_to_integer.
18016 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18018 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18019 double_ints. Adjust for trailing_wide_ints <3> representation.
18020 (set_nonzero_bits): Likewise.
18021 (get_range_info): Return wide_ints rather than double_ints.
18022 Adjust for trailing_wide_ints <3> representation.
18023 (get_nonzero_bits): Likewise.
18024 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18026 * tree-ssanames.h (struct range_info_def): Replace min, max and
18027 nonzero_bits with a trailing_wide_ints <3>.
18028 (set_range_info): Use wide_int_refs rather than double_ints.
18029 (set_nonzero_bits): Likewise.
18030 (get_range_info): Return wide_ints rather than double_ints.
18031 (get_nonzero_bits): Likewise.
18032 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18033 * tree-ssa-pre.c (phi_translate_1): Likewise.
18034 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18035 (acceptable_pow_call): Likewise.
18036 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18038 (vn_reference_fold_indirect): Likewise.
18039 (vn_reference_maybe_forwprop_address): Likewise.
18040 (valueize_refs_1): Likewise.
18041 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18042 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18043 tree_int_cst_lt and tree_int_cst_le.
18044 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18046 (streamer_alloc_tree): Likewise.
18047 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18048 (streamer_write_tree_header): Likewise.
18049 (streamer_write_integer_cst): Likewise.
18050 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18051 (build_constructors): Likewise.
18052 (array_value_type): Likewise.
18053 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18054 (vect_check_gather): Likewise.
18055 * tree-vect-generic.c (build_replicated_const): Likewise.
18056 (expand_vector_divmod): Likewise.
18057 * tree-vect-loop.c (vect_transform_loop): Likewise.
18058 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18059 (vect_do_peeling_for_alignment): Likewise.
18060 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18061 * tree-vrp.c: Include wide-int.h.
18062 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18063 (extract_range_from_assert): Use wide-int interfaces.
18064 (vrp_int_const_binop): Likewise.
18065 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18066 double_int pointers.
18067 (ranges_from_anti_range): Use wide-int interfaces.
18068 (quad_int_cmp): Delete.
18069 (quad_int_pair_sort): Likewise.
18070 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18071 (extract_range_from_unary_expr_1): Likewise.
18072 (adjust_range_with_scev): Likewise.
18073 (masked_increment): Take and return wide_ints rather than double_ints.
18074 (register_edge_assert_for_2): Use wide-int interfaces.
18075 (check_array_ref): Likewise.
18076 (search_for_addr_array): Likewise.
18077 (maybe_set_nonzero_bits): Likewise.
18078 (union_ranges): Pass an integer of the correct type instead of
18079 using integer_one_node.
18080 (intersect_ranges): Likewise.
18081 (simplify_truth_ops_using_ranges): Likewise.
18082 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18083 (range_fits_type_p): Likewise.
18084 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18086 (simplify_conversion_using_ranges): Use wide-int interfaces.
18087 (simplify_float_conversion_using_ranges): Likewise.
18088 (vrp_finalize): Likewise.
18089 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18090 (gimple_stringops_transform): Likewise.
18091 * varasm.c (decode_addr_const): Likewise.
18092 (const_hash_1): Likewise.
18093 (const_rtx_hash_1): Likewise
18094 (output_constant): Likewise.
18095 (array_size_for_constructor): Likewise.
18096 (output_constructor_regular_field): Likewise.
18097 (output_constructor_bitfield): Likewise.
18098 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18099 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18101 * gencheck.c: Define BITS_PER_UNIT.
18102 * wide-int.cc: New.
18104 * wide-int-print.cc: New.
18105 * wide-int-print.h: New.
18107 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18109 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18111 2014-05-06 Richard Biener <rguenther@suse.de>
18113 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18114 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18115 (TODO_verify_all): Adjust.
18116 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18117 TODO_verify_stmts and TODO_verify_rtl_sharing.
18118 * bb-reorder.c: Likewise.
18119 * cfgexpand.c: Likewise.
18120 * cprop.c: Likewise.
18122 * function.c: Likewise.
18123 * fwprop.c: Likewise.
18124 * gcse.c: Likewise.
18125 * gimple-ssa-isolate-paths.c: Likewise.
18126 * gimple-ssa-strength-reduction.c: Likewise.
18127 * ipa-split.c: Likewise.
18128 * loop-init.c: Likewise.
18129 * loop-unroll.c: Likewise.
18130 * lower-subreg.c: Likewise.
18131 * modulo-sched.c: Likewise.
18132 * postreload-gcse.c: Likewise.
18133 * predict.c: Likewise.
18134 * recog.c: Likewise.
18135 * sched-rgn.c: Likewise.
18136 * store-motion.c: Likewise.
18137 * tracer.c: Likewise.
18138 * trans-mem.c: Likewise.
18139 * tree-call-cdce.c: Likewise.
18140 * tree-cfg.c: Likewise.
18141 * tree-cfgcleanup.c: Likewise.
18142 * tree-complex.c: Likewise.
18143 * tree-eh.c: Likewise.
18144 * tree-emutls.c: Likewise.
18145 * tree-if-conv.c: Likewise.
18146 * tree-into-ssa.c: Likewise.
18147 * tree-loop-distribution.c: Likewise.
18148 * tree-object-size.c: Likewise.
18149 * tree-parloops.c: Likewise.
18150 * tree-pass.h: Likewise.
18151 * tree-sra.c: Likewise.
18152 * tree-ssa-ccp.c: Likewise.
18153 * tree-ssa-copy.c: Likewise.
18154 * tree-ssa-copyrename.c: Likewise.
18155 * tree-ssa-dce.c: Likewise.
18156 * tree-ssa-dom.c: Likewise.
18157 * tree-ssa-dse.c: Likewise.
18158 * tree-ssa-forwprop.c: Likewise.
18159 * tree-ssa-ifcombine.c: Likewise.
18160 * tree-ssa-loop-ch.c: Likewise.
18161 * tree-ssa-loop-ivcanon.c: Likewise.
18162 * tree-ssa-loop.c: Likewise.
18163 * tree-ssa-math-opts.c: Likewise.
18164 * tree-ssa-phiopt.c: Likewise.
18165 * tree-ssa-phiprop.c: Likewise.
18166 * tree-ssa-pre.c: Likewise.
18167 * tree-ssa-reassoc.c: Likewise.
18168 * tree-ssa-sink.c: Likewise.
18169 * tree-ssa-strlen.c: Likewise.
18170 * tree-ssa-tail-merge.c: Likewise.
18171 * tree-ssa-uncprop.c: Likewise.
18172 * tree-switch-conversion.c: Likewise.
18173 * tree-tailcall.c: Likewise.
18174 * tree-vect-generic.c: Likewise.
18175 * tree-vectorizer.c: Likewise.
18176 * tree-vrp.c: Likewise.
18177 * tsan.c: Likewise.
18178 * var-tracking.c: Likewise.
18179 * bt-load.c: Likewise.
18180 * cfgcleanup.c: Likewise.
18181 * combine-stack-adj.c: Likewise.
18182 * combine.c: Likewise.
18183 * compare-elim.c: Likewise.
18184 * config/epiphany/resolve-sw-modes.c: Likewise.
18185 * config/i386/i386.c: Likewise.
18186 * config/mips/mips.c: Likewise.
18187 * config/s390/s390.c: Likewise.
18188 * config/sh/sh_treg_combine.cc: Likewise.
18189 * config/sparc/sparc.c: Likewise.
18192 * final.c: Likewise.
18193 * ifcvt.c: Likewise.
18194 * mode-switching.c: Likewise.
18195 * passes.c: Likewise.
18196 * postreload.c: Likewise.
18198 * reg-stack.c: Likewise.
18199 * regcprop.c: Likewise.
18200 * regrename.c: Likewise.
18203 2014-05-06 Richard Biener <rguenther@suse.de>
18205 PR middle-end/61070
18206 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18207 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18209 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18212 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18214 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18215 Tom de Vries <tom@codesourcery.com>
18217 * target.def (call_fusage_contains_non_callee_clobbers): New
18219 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18221 (@node Miscellaneous Register Hooks): New node.
18222 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18223 * doc/tm.texi: Regenerate.
18225 2014-05-05 Marek Polacek <polacek@redhat.com>
18228 * opts.c (common_handle_option): Call error_at instead of warning_at.
18230 2014-05-05 Richard Biener <rguenther@suse.de>
18232 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18233 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18234 under the TODO_verify_il umbrella.
18236 2014-05-05 Richard Biener <rguenther@suse.de>
18238 * passes.c (execute_function_todo): Move TODO_verify_flow under
18239 the TODO_verify_ul umbrella.
18241 2014-05-05 Richard Biener <rguenther@suse.de>
18243 PR middle-end/61010
18244 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18245 X & CST away from a CST that is the mask of a mode.
18247 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18249 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18250 int argument to enum machine_mode.
18251 (picochip_class_max_nregs): Ditto.
18252 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18253 (picochip_class_max_nregs): Ditto.
18255 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18257 * target.def: Add new target hook.
18258 * doc/tm.texi: Regenerate.
18259 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18260 * targhooks.c (default_keep_leaf_when_profiled): New function.
18262 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18263 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18265 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18267 PR tree-optimization/60363
18268 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18269 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18270 (update_destination_phis): New parameter.
18271 (create_edge_and_update_destination_phis): Ditto.
18272 (ssa_fix_duplicate_block_edges): Pass new arguments.
18273 (thread_single_edge): Ditto.
18275 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18277 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18278 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18279 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18280 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18281 Use RS6000_BTM_HARD_FLOAT.
18282 (BU_MISC_2): Likewise.
18283 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18284 RS6000_BTM_HARD_FLOAT.
18285 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18286 is explicitly used.
18287 (rs6000_invalid_builtin): Add hard floating builtin support.
18288 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18289 hard float builtins.
18290 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18292 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18294 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18295 Add missing function* argument.
18297 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18299 * lra-constraints.c (valid_address_p): Move earlier in file.
18300 Add a constraint argument to the address_info version.
18301 (satisfies_memory_constraint_p): New function.
18302 (satisfies_address_constraint_p): Likewise.
18303 (process_alt_operands, curr_insn_transform): Use them.
18304 (process_address): Pass the constraint to valid_address_p when
18305 checking address operands.
18307 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18309 * config/mips/mips.c (mips_isa_rev): New variable.
18310 (mips_set_architecture): Set it.
18311 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18313 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18314 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18315 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18316 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18317 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18318 conditions in terms of mips_isa_rev.
18319 (mips_isa_rev): Declare.
18321 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18323 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18324 (prob_unlikely, prob_likely): Make variables const.
18326 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18328 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18330 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18332 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18334 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18336 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18337 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18338 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18340 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18341 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18343 Replace usage of ROUND_REG with sh_round_reg.
18344 Use CEIL instead of ROUND_ADVANCE.
18346 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18349 * config/sh/sh.c: Include stdlib headers before everything else.
18351 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18353 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18354 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18355 (gimplify_adjust_omp_clauses): Simd region is never
18356 directly nested in combined parallel. Instead, for linear
18357 with copyin/copyout, if in combined for simd loop, make decl
18358 firstprivate/lastprivate on OMP_FOR.
18359 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18360 expand_omp_for_static_chunk): When setting endvar, also set
18361 fd->loop.v to the same value.
18363 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18365 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18367 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18369 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18372 2014-05-02 Marek Polacek <polacek@redhat.com>
18374 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18376 2014-05-02 Kito Cheng <kito@0xlab.org>
18378 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18379 to a C expression marco.
18380 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18381 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18382 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18383 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18384 HONOR_REG_ALLOC_ORDER.
18385 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18387 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18389 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18391 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18393 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18395 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18397 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18398 (convert_scalar_cond_reduction): Likewise.
18399 (predicate_scalar_phi): Add recognition and transformation
18400 of simple conditioanl reduction to be vectorizable.
18402 2014-05-01 Marek Polacek <polacek@redhat.com>
18405 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18407 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18409 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18410 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18411 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18412 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18413 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18414 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18415 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18416 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18418 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18420 * config/arc/arc.opt (mlra): Move comment above option name
18421 to avoid mis-parsing as language options.
18423 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18425 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18426 * config/sol2.h: ... here.
18427 * config/sol2-10.h: Remove.
18429 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18430 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18431 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18432 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18433 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18434 * config/sol2.h: ... here.
18435 (SECTION_NAME_FORMAT): Don't redefine.
18436 (STARTFILE_ARCH32_SPEC): Rename to ...
18437 (STARTFILE_ARCH_SPEC): ... this.
18438 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18439 * config/sparc/sol2.h: ... here.
18440 (SECTION_NAME_FORMAT): Don't undef.
18441 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18442 (SUBTARGET_EXTRA_SPECS): Remove.
18443 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18445 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18446 (MD_STARTFILE_PREFIX): Remove.
18447 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18448 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18449 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18450 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18451 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18452 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18453 * config/i386/sol2.h: ... here.
18454 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18455 * config/i386/sol2-bi.h: Remove.
18456 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18457 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18459 * config/i386/t-sol2-64: Rename to ...
18460 * config/i386/t-sol2: ... this.
18461 * config/sparc/t-sol2-64: Rename to ...
18462 * config/sparc/t-sol2: ... this.
18464 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18465 sol2_tm_file_head, sol2_tm_file_tail.
18466 Include ${cpu_type}/sol2.h before sol2.h.
18468 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18469 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18470 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18471 Reflect i386/t-sol2-64 renaming.
18472 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18473 Reflect sparc/t-sol2-64 renaming.
18475 2014-04-30 Richard Biener <rguenther@suse.de>
18477 * passes.c (execute_function_todo): Move TODO_verify_stmts
18478 and TODO_verify_ssa under the TODO_verify_il umbrella.
18479 * tree-ssa.h (verify_ssa): Adjust prototype.
18480 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18481 we should verify SSA operands.
18482 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18483 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18484 whether we should verify whether not throwing stmts have EH info.
18485 * graphite-scop-detection.c (create_sese_edges): Adjust.
18486 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18487 * tree-eh.c (lower_try_finally_switch): Do not add the
18488 default case label twice.
18490 2014-04-30 Marek Polacek <polacek@redhat.com>
18492 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18493 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18494 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18495 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18497 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18499 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18500 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18501 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18502 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18503 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18504 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18505 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18506 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18508 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18510 * tree-cfg.c (dump_function_to_file): Dump the return type of
18511 functions, in a line to itself before the function body, mimicking
18512 the layout of a C function.
18514 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18516 PR tree-optimization/60971
18517 * tree-tailcall.c (process_assignment): Reject conversions which
18520 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18522 * calls.c (initialize_argument_information): Always treat
18523 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18524 (expand_call): Likewise.
18525 (emit_library_call_calue_1): Likewise.
18526 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18527 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18530 2014-04-29 Nick Clifton <nickc@redhat.com>
18532 * config/msp430/msp430.md (umulsidi): Fix typo.
18533 (mulhisi3): Enable even inside interrupt handlers.
18534 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18535 bigger return address pushed in large mode.
18537 2014-04-29 Nick Clifton <nickc@redhat.com>
18539 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18540 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18542 * config/m32r/m32r.c (init_reg_tables): Likewise.
18543 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18544 enum to hold the modes.
18546 2014-04-29 Richard Biener <rguenther@suse.de>
18548 * dominance.c (free_dominance_info): Add overload with
18549 function parameter.
18550 (dom_info_state): Likewise.
18551 (dom_info_available_p): Likewise.
18552 * basic-block.h (free_dominance_info, dom_info_state,
18553 dom_info_available_p): Declare overloads.
18554 * passes.c (execute_function_todo): Verify that verifiers
18555 don't change dominator info state. Drop dominator info
18556 for IPA pass invocations.
18557 * cgraph.c (release_function_body): Restore asserts that
18558 dominator information is released.
18560 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18562 * doc/invoke.texi: Fix typo.
18563 * tree-vrp.c: Fix typos.
18564 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18566 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18568 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18570 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18572 * config/aarch64/aarch64-builtins.c
18573 (aarch64_types_storestruct_lane_qualifiers): New.
18574 (TYPES_STORESTRUCT_LANE): Likewise.
18575 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18576 (st3_lane): Likewise.
18577 (st4_lane): Likewise.
18578 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18579 (vec_store_lanesci_lane<mode>): Likewise.
18580 (vec_store_lanesxi_lane<mode>): Likewise.
18581 (aarch64_st2_lane<VQ:mode>): Likewise.
18582 (aarch64_st3_lane<VQ:mode>): Likewise.
18583 (aarch64_st4_lane<VQ:mode>): Likewise.
18584 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18585 * config/aarch64/arm_neon.h
18586 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18587 use new macro arguments.
18588 (__ST3_LANE_FUNC): Likewise.
18589 (__ST4_LANE_FUNC): Likewise.
18590 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18591 (V_THREE_ELEM): Likewise.
18592 (V_FOUR_ELEM): Likewise.
18594 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18596 * doc/gimple.texi: Replace the description of the now-defunct
18597 union gimple_statement_d with a diagram showing the
18598 gimple_statement_base class hierarchy and its relationships to
18599 the GSS_ and GIMPLE_ enums.
18601 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18603 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18604 * config/aarch64/aarch64.c
18605 (aarch64_cannot_change_mode_class): Weaken conditions.
18606 (aarch64_modes_tieable_p): New.
18607 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18609 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18611 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18612 (loadsync_<mode>): Change mode.
18613 (load_quadpti, store_quadpti): New.
18614 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18615 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18617 2014-04-28 Martin Jambor <mjambor@suse.cz>
18619 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18620 same alias type as the original statement.
18621 (subreplacement_assignment_data): New type.
18622 (handle_unscalarized_data_in_subtree): New type of parameter,
18623 generate new memory accesses with same alias type as the original
18625 (load_assign_lhs_subreplacements): Likewise.
18626 (sra_modify_constructor_assign): Generate new memory accesses with
18627 same alias type as the original statement.
18629 2014-04-28 Richard Biener <rguenther@suse.de>
18631 * tree-pass.h (TODO_verify_il): Define.
18632 (TODO_verify_all): Complete properly.
18633 * passes.c (execute_function_todo): Move existing loop-closed
18634 SSA verification under TODO_verify_il.
18635 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18636 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18637 Fix tree sharing issue.
18639 2014-04-28 Richard Biener <rguenther@suse.de>
18641 PR middle-end/60092
18642 * builtins.def (DEF_C11_BUILTIN): Add.
18643 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18644 * coretypes.h (enum function_class): Add function_c11_misc.
18645 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18646 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18647 (call_may_clobber_ref_p_1): Likewise.
18648 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18649 (mark_all_reaching_defs_necessary_1): Likewise.
18650 (propagate_necessity): Likewise.
18651 (eliminate_unnecessary_stmts): Likewise.
18652 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18654 2014-04-28 Richard Biener <rguenther@suse.de>
18656 * tree-vrp.c (vrp_var_may_overflow): Remove.
18657 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18658 with overflow immediately bump to one before that value and
18659 let iteration figure out overflow status.
18661 2014-04-28 Richard Biener <rguenther@suse.de>
18663 * configure.ac: Do valgrind header checks unconditionally.
18664 Add --enable-valgrind-annotations.
18665 * system.h: Guard valgrind header inclusion with
18666 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18667 * alloc-pool.c (pool_alloc, pool_free): Use
18668 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18669 to guard possibly dead code.
18670 * config.in: Regenerated.
18671 * configure: Likewise.
18673 2014-04-28 Jeff Law <law@redhat.com>
18675 PR tree-optimization/60902
18676 * tree-ssa-threadedge.c
18677 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18678 over real defs when invalidating outputs from statements that do not
18679 produce useful outputs for threading.
18681 2014-04-28 Richard Biener <rguenther@suse.de>
18683 PR tree-optimization/60979
18684 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18685 SCOPs that end in a block with a successor with abnormal
18688 2014-04-28 Richard Biener <rguenther@suse.de>
18690 * tree-pass.h (execute_pass_list): Adjust prototype.
18691 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18692 (do_per_function): Change callback signature, push all actual
18693 work to the callbals.
18694 (do_per_function_toporder): Likewise.
18695 (execute_function_dump): Adjust.
18696 (execute_function_todo): Likewise.
18697 (clear_last_verified): Likewise.
18698 (verify_curr_properties): Likewise.
18699 (update_properties_after_pass): Likewise.
18700 (execute_pass_list_1): Split out from ...
18701 (execute_pass_list): ... here. Adjust.
18702 (execute_ipa_pass_list): Likewise.
18703 * cgraphunit.c (cgraph_add_new_function): Adjust.
18704 (analyze_function): Likewise.
18705 (expand_function): Likewise.
18706 * cgraph.c (release_function_body): Free dominance info
18707 here instead of asserting it was magically freed elsewhere.
18709 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18711 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18712 * configure: Regenerate.
18713 * config/sparc/sparc.opt (muser-mode): New option.
18714 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18716 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18717 * doc/invoke.texi (SPARC options): Document -muser-mode.
18719 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18721 * cselib.c (find_slot_memmode): Delete.
18722 (cselib_hasher): Change compare_type to a struct.
18723 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18725 (preserve_constants_and_equivs): Adjust for new compare_type.
18726 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18727 (wrap_constant): Delete.
18728 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18730 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18732 * doc/install.texi (Building with profile feedback): Remove
18735 2014-04-26 Tom de Vries <tom@codesourcery.com>
18737 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18740 2014-04-25 Cary Coutant <ccoutant@google.com>
18743 * dwarf2out.c (should_move_die_to_comdat): A type definition
18744 can contain a subprogram definition, but don't move it to a
18746 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18747 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18749 (clone_tree_hash): Rename to...
18750 (clone_tree_partial): ...this; change callers. Copy
18751 DW_TAG_subprogram DIEs as declarations.
18752 (copy_decls_walk): Don't copy children of a declaration into a
18755 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18758 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18761 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18763 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18764 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18766 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18769 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18771 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18773 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18775 PR tree-optimization/60930
18776 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18777 creating a multiply candidate by folding two constant
18778 multiplicands when the result overflows.
18780 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18782 PR tree-optimization/60960
18783 * tree-vect-generic.c (expand_vector_operation): Only call
18784 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18786 2014-04-25 Tom de Vries <tom@codesourcery.com>
18788 * expr.c (clobber_reg_mode): New function.
18789 * expr.h (clobber_reg): New function.
18791 2014-04-25 Tom de Vries <tom@codesourcery.com>
18793 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18796 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18797 Tom de Vries <tom@codesourcery.com>
18799 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18801 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18802 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18803 new argument to find_all_hard_reg_sets call.
18805 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18807 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18808 Use HOST_WIDE_INT_C for mask literal.
18809 (aarch_rev16_shleft_mask_imm_p): Likewise.
18811 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18814 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18816 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18818 PR preprocessor/56540
18819 * config/i386/i386-c.c (ix86_target_macros): Define
18820 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18822 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18824 * configure.ac (tga_func): Remove.
18825 (LIB_TLS_SPEC): Remove.
18826 * configure: Regenerate.
18827 * config.in: Regenerate.
18828 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18830 2014-04-25 Richard Biener <rguenther@suse.de>
18833 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18834 call stmt use/clobber sets during stmt walk instead of
18835 walking the possibly incomplete set of caller edges.
18837 2014-04-25 Richard Biener <rguenther@suse.de>
18840 * passes.c (apply_ipa_transforms): Inline into only caller ...
18841 (execute_one_pass): ... here. Properly bring in function
18842 bodies for nodes we want to apply IPA transforms to.
18844 2014-04-24 Cong Hou <congh@google.com>
18846 PR tree-optimization/60896
18847 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18848 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18849 (vect_mark_pattern_stmts): Set the def type of all statements in
18850 PATTERN_DEF_SEQ as vect_internal_def.
18852 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18854 * doc/extend.texi (PowerPC Built-in Functions): Document new
18855 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18856 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18858 * config/rs6000/predicates.md (const_0_to_3_operand): New
18859 predicate to match 0..3 integer constants.
18861 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18862 to support adding miscellaneous builtin functions.
18863 (BU_DFP_MISC_2): Likewise.
18864 (BU_P7_MISC_1): Likewise.
18865 (BU_P7_MISC_2): Likewise.
18866 (BU_P8V_MISC_3): Likewise.
18867 (BU_MISC_1): Likewise.
18868 (BU_MISC_2): Likewise.
18869 (DIVWE): Add extended divide builtin functions.
18870 (DIVWEO): Likewise.
18871 (DIVWEU): Likewise.
18872 (DIVWEUO): Likewise.
18874 (DIVDEO): Likewise.
18875 (DIVDEU): Likewise.
18876 (DIVDEUO): Likewise.
18877 (DXEX): Add decimal floating-point builtin functions.
18879 (DDEDPD): Likewise.
18880 (DDEDPDQ): Likewise.
18881 (DENBCD): Likewise.
18882 (DENBCDQ): Likewise.
18886 (DSCLIQ): Likewise.
18888 (DSCRIQ): Likewise.
18889 (CDTBCD): Add new BCD builtin functions.
18890 (CBCDTD): Likewise.
18891 (ADDG6S): Likewise.
18892 (BCDADD): Likewise.
18893 (BCDADD_LT): Likewise.
18894 (BCDADD_EQ): Likewise.
18895 (BCDADD_GT): Likewise.
18896 (BCDADD_OV): Likewise.
18897 (BCDSUB): Likewise.
18898 (BCDSUB_LT): Likewise.
18899 (BCDSUB_EQ): Likewise.
18900 (BCDSUB_GT): Likewise.
18901 (BCDSUB_OV): Likewise.
18902 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18903 (UNPACK_TD): Likewise.
18904 (PACK_TF): Likewise.
18905 (UNPACK_TF): Likewise.
18906 (UNPACK_TF_0): Likewise.
18907 (UNPACK_TF_1): Likewise.
18908 (PACK_V1TI): Likewise.
18909 (UNPACK_V1TI): Likewise.
18911 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18912 support for decimal floating point builtin functions.
18913 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18914 functions that take constant arguments.
18915 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18916 (rs6000_init_builtins): Setup long double, _Decimal64, and
18917 _Decimal128 types for new builtin functions.
18918 (builtin_function_type): Set the unsigned flags appropriately for
18919 the new builtin functions.
18920 (rs6000_opt_masks): Add support for decimal floating point builtin
18923 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18924 floating point builtin functions.
18925 (RS6000_BTM_COMMON): Likewise.
18926 (RS6000_BTI_long_double): Likewise.
18927 (RS6000_BTI_dfloat64): Likewise.
18928 (RS6000_BTI_dfloat128): Likewise.
18929 (long_double_type_internal_node): Likewise.
18930 (dfloat64_type_internal_node): Likewise.
18931 (dfloat128_type_internal_node): Likewise.
18933 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18934 2.07 bcd arithmetic instructions.
18935 (UNSPEC_BCDSUB): Likewise.
18936 (UNSPEC_BCD_OVERFLOW): Likewise.
18937 (UNSPEC_BCD_ADD_SUB): Likewise.
18938 (bcd_add_sub): Likewise.
18939 (BCD_TEST): Likewise.
18940 (bcd<bcd_add_sub>): Likewise.
18941 (bcd<bcd_add_sub>_test): Likewise.
18942 (bcd<bcd_add_sub>_test2): Likewise.
18943 (bcd<bcd_add_sub>_<code>): Likewise.
18944 (peephole2 for combined bcd ops): Likewise.
18946 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18947 decimal floating point builtin functions.
18948 (UNSPEC_DENBCD): Likewise.
18949 (UNSPEC_DXEX): Likewise.
18950 (UNSPEC_DIEX): Likewise.
18951 (UNSPEC_DSCLI): Likewise.
18952 (UNSPEC_DSCRI): Likewise.
18953 (D64_D128): Likewise.
18954 (dfp_suffix): Likewise.
18955 (dfp_ddedpd_<mode>): Likewise.
18956 (dfp_denbcd_<mode>): Likewise.
18957 (dfp_dxex_<mode>): Likewise.
18958 (dfp_diex_<mode>): Likewise.
18959 (dfp_dscli_<mode>): Likewise.
18960 (dfp_dscri_<mode>): Likewise.
18962 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18964 (UNSPEC_CDTBCD): Likewise.
18965 (UNSPEC_CBCDTD): Likewise.
18966 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18967 (UNSPEC_DIVEO): Likewise.
18968 (UNSPEC_DIVEU): Likewise.
18969 (UNSPEC_DIVEUO): Likewise.
18970 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18971 pack/unpack 128-bit types.
18972 (UNSPEC_PACK_128BIT): Likewise.
18973 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18974 (udiv<mode>3): Use idiv_ldiv mode attribute.
18975 (div<mode>3): Likewise.
18976 (addg6s): Add new BCD builtin functions.
18977 (cdtbcd): Likewise.
18978 (cbcdtd): Likewise.
18979 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18980 (div_extend): Likewise.
18981 (div<div_extend>_<mode>"): Likewise.
18982 (FP128_64): Add support for new builtin functions to pack/unpack
18984 (unpack<mode>): Likewise.
18985 (unpacktf_0): Likewise.
18986 (unpacktf_1): Likewise.
18987 (unpack<mode>_dm): Likewise.
18988 (unpack<mode>_nodm): Likewise.
18989 (pack<mode>): Likewise.
18990 (unpackv1ti): Likewise.
18991 (packv1ti): Likewise.
18993 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18995 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18998 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19000 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19001 * gimplify.c (omp_is_private): Change last argument's type to int.
19002 Only diagnose lastprivate if the simd argument is 1, only diagnose
19003 linear if the simd argument is 2.
19004 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19005 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19006 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19007 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19008 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19009 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19010 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19011 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19012 * tree-nested.c (convert_nonlocal_omp_clauses,
19013 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19015 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19018 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19021 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19023 * flag-types.h (enum ivar_visibility): Add.
19025 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19027 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19028 function * argument.
19030 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19032 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19034 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19035 Tom de Vries <tom@codesourcery.com>
19037 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19038 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19040 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19041 * emit-rtl.c (try_split): Same.
19043 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19044 Tom de Vries <tom@codesourcery.com>
19046 * common.opt (fuse-caller-save): New option.
19048 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19050 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19051 elements for big-endian.
19053 2014-04-24 Richard Biener <rguenther@suse.de>
19055 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19056 during TER and instead use the sepops interface for expanding
19057 non-GIMPLE_SINGLE_RHS.
19059 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19061 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19062 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19064 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19066 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19067 assembler 64-bit option.
19068 * configure: Regenerate.
19070 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19072 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19073 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19074 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19075 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19076 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19078 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19080 * config/aarch64/aarch64-builtins.c
19081 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19082 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19083 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19084 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19086 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19087 (Vrevsuff): New mode attribute.
19089 2014-04-24 Terry Guo <terry.guo@arm.com>
19091 * config/arm/arm.h (machine_function): Define variable
19092 after_arm_reorg here.
19093 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19094 (arm_split_constant): Update the way to access variable
19096 (arm_reorg): Ditto.
19097 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19099 2014-04-23 Tom de Vries <tom@codesourcery.com>
19101 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19103 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19105 * is-a.h: Update comments to reflect the following changes to the
19106 "pointerness" of the API, making the template parameter match the
19107 return type, allowing use of is-a.h with typedefs of pointers.
19108 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19109 that the return type matches the parameter to the is_a_helper.
19111 (dyn_cast): Likewise.
19113 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19114 pointer from the is-a.h API.
19116 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19117 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19119 (is_a_helper <varpool_node>::test): Likewise, convert to...
19120 (is_a_helper <varpool_node *>::test): ...this.
19122 (varpool_first_variable): Update for removal of implicit pointer
19123 from the is-a.h API.
19124 (varpool_next_variable): Likewise.
19125 (varpool_first_static_initializer): Likewise.
19126 (varpool_next_static_initializer): Likewise.
19127 (varpool_first_defined_variable): Likewise.
19128 (varpool_next_defined_variable): Likewise.
19129 (cgraph_first_defined_function): Likewise.
19130 (cgraph_next_defined_function): Likewise.
19131 (cgraph_first_function): Likewise.
19132 (cgraph_next_function): Likewise.
19133 (cgraph_first_function_with_gimple_body): Likewise.
19134 (cgraph_next_function_with_gimple_body): Likewise.
19135 (cgraph_alias_target): Likewise.
19136 (varpool_alias_target): Likewise.
19137 (cgraph_function_or_thunk_node): Likewise.
19138 (varpool_variable_node): Likewise.
19139 (symtab_real_symbol_p): Likewise.
19140 * cgraphunit.c (referred_to_p): Likewise.
19141 (analyze_functions): Likewise.
19142 (handle_alias_pairs): Likewise.
19143 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19144 * gimple-ssa.h (gimple_vuse_op): Likewise.
19145 (gimple_vdef_op): Likewise.
19146 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19147 * gimple.c (gimple_build_asm_1): Likewise.
19148 (gimple_build_try): Likewise.
19149 (gimple_build_resx): Likewise.
19150 (gimple_build_eh_dispatch): Likewise.
19151 (gimple_build_omp_for): Likewise.
19152 (gimple_omp_for_set_clauses): Likewise.
19154 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19155 (is_a_helper <gimple_statement_asm *>::test): ...this.
19156 (is_a_helper <gimple_statement_bind>::test): Convert to...
19157 (is_a_helper <gimple_statement_bind *>::test): ...this.
19158 (is_a_helper <gimple_statement_call>::test): Convert to...
19159 (is_a_helper <gimple_statement_call *>::test): ...this.
19160 (is_a_helper <gimple_statement_catch>::test): Convert to...
19161 (is_a_helper <gimple_statement_catch *>::test): ...this.
19162 (is_a_helper <gimple_statement_resx>::test): Convert to...
19163 (is_a_helper <gimple_statement_resx *>::test): ...this.
19164 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19165 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19166 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19167 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19168 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19169 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19170 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19171 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19172 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19173 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19174 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19175 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19176 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19177 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19178 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19179 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19180 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19181 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19182 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19183 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19184 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19185 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19186 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19187 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19188 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19189 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19190 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19191 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19192 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19193 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19194 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19195 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19196 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19197 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19198 (is_a_helper <gimple_statement_phi>::test): Convert to...
19199 (is_a_helper <gimple_statement_phi *>::test): ...this.
19200 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19201 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19202 (is_a_helper <gimple_statement_try>::test): Convert to...
19203 (is_a_helper <gimple_statement_try *>::test): ...this.
19204 (is_a_helper <gimple_statement_wce>::test): Convert to...
19205 (is_a_helper <gimple_statement_wce *>::test): ...this.
19206 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19207 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19208 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19209 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19210 (is_a_helper <const gimple_statement_call>::test): Convert to...
19211 (is_a_helper <const gimple_statement_call *>::test): ...this.
19212 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19213 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19214 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19215 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19216 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19217 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19218 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19219 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19220 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19222 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19224 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19226 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19228 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19229 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19230 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19232 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19233 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19235 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19236 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19237 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19238 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19239 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19240 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19242 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19243 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19244 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19245 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19247 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19248 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19249 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19250 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19251 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19252 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19253 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19254 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19255 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19256 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19257 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19258 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19259 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19260 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19261 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19262 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19264 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19266 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19267 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19269 (gimple_use_ops): Update for removal of implicit pointer from the
19271 (gimple_set_use_ops): Likewise.
19272 (gimple_vuse): Likewise.
19273 (gimple_vdef): Likewise.
19274 (gimple_vuse_ptr): Likewise.
19275 (gimple_vdef_ptr): Likewise.
19276 (gimple_set_vuse): Likewise.
19277 (gimple_set_vdef): Likewise.
19278 (gimple_omp_return_set_lhs): Likewise.
19279 (gimple_omp_return_lhs): Likewise.
19280 (gimple_omp_return_lhs_ptr): Likewise.
19281 (gimple_call_fntype): Likewise.
19282 (gimple_call_set_fntype): Likewise.
19283 (gimple_call_set_internal_fn): Likewise.
19284 (gimple_call_use_set): Likewise.
19285 (gimple_call_clobber_set): Likewise.
19286 (gimple_bind_vars): Likewise.
19287 (gimple_bind_set_vars): Likewise.
19288 (gimple_bind_body_ptr): Likewise.
19289 (gimple_bind_set_body): Likewise.
19290 (gimple_bind_add_stmt): Likewise.
19291 (gimple_bind_block): Likewise.
19292 (gimple_bind_set_block): Likewise.
19293 (gimple_asm_ninputs): Likewise.
19294 (gimple_asm_noutputs): Likewise.
19295 (gimple_asm_nclobbers): Likewise.
19296 (gimple_asm_nlabels): Likewise.
19297 (gimple_asm_input_op): Likewise.
19298 (gimple_asm_input_op_ptr): Likewise.
19299 (gimple_asm_output_op): Likewise.
19300 (gimple_asm_output_op_ptr): Likewise.
19301 (gimple_asm_set_output_op): Likewise.
19302 (gimple_asm_clobber_op): Likewise.
19303 (gimple_asm_set_clobber_op): Likewise.
19304 (gimple_asm_label_op): Likewise.
19305 (gimple_asm_set_label_op): Likewise.
19306 (gimple_asm_string): Likewise.
19307 (gimple_catch_types): Likewise.
19308 (gimple_catch_types_ptr): Likewise.
19309 (gimple_catch_handler_ptr): Likewise.
19310 (gimple_catch_set_types): Likewise.
19311 (gimple_catch_set_handler): Likewise.
19312 (gimple_eh_filter_types): Likewise.
19313 (gimple_eh_filter_types_ptr): Likewise.
19314 (gimple_eh_filter_failure_ptr): Likewise.
19315 (gimple_eh_filter_set_types): Likewise.
19316 (gimple_eh_filter_set_failure): Likewise.
19317 (gimple_eh_must_not_throw_fndecl): Likewise.
19318 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19319 (gimple_eh_else_n_body_ptr): Likewise.
19320 (gimple_eh_else_e_body_ptr): Likewise.
19321 (gimple_eh_else_set_n_body): Likewise.
19322 (gimple_eh_else_set_e_body): Likewise.
19323 (gimple_try_eval_ptr): Likewise.
19324 (gimple_try_cleanup_ptr): Likewise.
19325 (gimple_try_set_eval): Likewise.
19326 (gimple_try_set_cleanup): Likewise.
19327 (gimple_wce_cleanup_ptr): Likewise.
19328 (gimple_wce_set_cleanup): Likewise.
19329 (gimple_phi_capacity): Likewise.
19330 (gimple_phi_num_args): Likewise.
19331 (gimple_phi_result): Likewise.
19332 (gimple_phi_result_ptr): Likewise.
19333 (gimple_phi_set_result): Likewise.
19334 (gimple_phi_arg): Likewise.
19335 (gimple_phi_set_arg): Likewise.
19336 (gimple_resx_region): Likewise.
19337 (gimple_resx_set_region): Likewise.
19338 (gimple_eh_dispatch_region): Likewise.
19339 (gimple_eh_dispatch_set_region): Likewise.
19340 (gimple_omp_critical_name): Likewise.
19341 (gimple_omp_critical_name_ptr): Likewise.
19342 (gimple_omp_critical_set_name): Likewise.
19343 (gimple_omp_for_clauses): Likewise.
19344 (gimple_omp_for_clauses_ptr): Likewise.
19345 (gimple_omp_for_set_clauses): Likewise.
19346 (gimple_omp_for_collapse): Likewise.
19347 (gimple_omp_for_index): Likewise.
19348 (gimple_omp_for_index_ptr): Likewise.
19349 (gimple_omp_for_set_index): Likewise.
19350 (gimple_omp_for_initial): Likewise.
19351 (gimple_omp_for_initial_ptr): Likewise.
19352 (gimple_omp_for_set_initial): Likewise.
19353 (gimple_omp_for_final): Likewise.
19354 (gimple_omp_for_final_ptr): Likewise.
19355 (gimple_omp_for_set_final): Likewise.
19356 (gimple_omp_for_incr): Likewise.
19357 (gimple_omp_for_incr_ptr): Likewise.
19358 (gimple_omp_for_set_incr): Likewise.
19359 (gimple_omp_for_pre_body_ptr): Likewise.
19360 (gimple_omp_for_set_pre_body): Likewise.
19361 (gimple_omp_parallel_clauses): Likewise.
19362 (gimple_omp_parallel_clauses_ptr): Likewise.
19363 (gimple_omp_parallel_set_clauses): Likewise.
19364 (gimple_omp_parallel_child_fn): Likewise.
19365 (gimple_omp_parallel_child_fn_ptr): Likewise.
19366 (gimple_omp_parallel_set_child_fn): Likewise.
19367 (gimple_omp_parallel_data_arg): Likewise.
19368 (gimple_omp_parallel_data_arg_ptr): Likewise.
19369 (gimple_omp_parallel_set_data_arg): Likewise.
19370 (gimple_omp_task_clauses): Likewise.
19371 (gimple_omp_task_clauses_ptr): Likewise.
19372 (gimple_omp_task_set_clauses): Likewise.
19373 (gimple_omp_task_child_fn): Likewise.
19374 (gimple_omp_task_child_fn_ptr): Likewise.
19375 (gimple_omp_task_set_child_fn): Likewise.
19376 (gimple_omp_task_data_arg): Likewise.
19377 (gimple_omp_task_data_arg_ptr): Likewise.
19378 (gimple_omp_task_set_data_arg): Likewise.
19379 (gimple_omp_taskreg_clauses): Likewise.
19380 (gimple_omp_taskreg_clauses_ptr): Likewise.
19381 (gimple_omp_taskreg_set_clauses): Likewise.
19382 (gimple_omp_taskreg_child_fn): Likewise.
19383 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19384 (gimple_omp_taskreg_set_child_fn): Likewise.
19385 (gimple_omp_taskreg_data_arg): Likewise.
19386 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19387 (gimple_omp_taskreg_set_data_arg): Likewise.
19388 (gimple_omp_task_copy_fn): Likewise.
19389 (gimple_omp_task_copy_fn_ptr): Likewise.
19390 (gimple_omp_task_set_copy_fn): Likewise.
19391 (gimple_omp_task_arg_size): Likewise.
19392 (gimple_omp_task_arg_size_ptr): Likewise.
19393 (gimple_omp_task_set_arg_size): Likewise.
19394 (gimple_omp_task_arg_align): Likewise.
19395 (gimple_omp_task_arg_align_ptr): Likewise.
19396 (gimple_omp_task_set_arg_align): Likewise.
19397 (gimple_omp_single_clauses): Likewise.
19398 (gimple_omp_single_clauses_ptr): Likewise.
19399 (gimple_omp_single_set_clauses): Likewise.
19400 (gimple_omp_target_clauses): Likewise.
19401 (gimple_omp_target_clauses_ptr): Likewise.
19402 (gimple_omp_target_set_clauses): Likewise.
19403 (gimple_omp_target_child_fn): Likewise.
19404 (gimple_omp_target_child_fn_ptr): Likewise.
19405 (gimple_omp_target_set_child_fn): Likewise.
19406 (gimple_omp_target_data_arg): Likewise.
19407 (gimple_omp_target_data_arg_ptr): Likewise.
19408 (gimple_omp_target_set_data_arg): Likewise.
19409 (gimple_omp_teams_clauses): Likewise.
19410 (gimple_omp_teams_clauses_ptr): Likewise.
19411 (gimple_omp_teams_set_clauses): Likewise.
19412 (gimple_omp_sections_clauses): Likewise.
19413 (gimple_omp_sections_clauses_ptr): Likewise.
19414 (gimple_omp_sections_set_clauses): Likewise.
19415 (gimple_omp_sections_control): Likewise.
19416 (gimple_omp_sections_control_ptr): Likewise.
19417 (gimple_omp_sections_set_control): Likewise.
19418 (gimple_omp_for_set_cond): Likewise.
19419 (gimple_omp_for_cond): Likewise.
19420 (gimple_omp_atomic_store_set_val): Likewise.
19421 (gimple_omp_atomic_store_val): Likewise.
19422 (gimple_omp_atomic_store_val_ptr): Likewise.
19423 (gimple_omp_atomic_load_set_lhs): Likewise.
19424 (gimple_omp_atomic_load_lhs): Likewise.
19425 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19426 (gimple_omp_atomic_load_set_rhs): Likewise.
19427 (gimple_omp_atomic_load_rhs): Likewise.
19428 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19429 (gimple_omp_continue_control_def): Likewise.
19430 (gimple_omp_continue_control_def_ptr): Likewise.
19431 (gimple_omp_continue_set_control_def): Likewise.
19432 (gimple_omp_continue_control_use): Likewise.
19433 (gimple_omp_continue_control_use_ptr): Likewise.
19434 (gimple_omp_continue_set_control_use): Likewise.
19435 (gimple_transaction_body_ptr): Likewise.
19436 (gimple_transaction_label): Likewise.
19437 (gimple_transaction_label_ptr): Likewise.
19438 (gimple_transaction_set_body): Likewise.
19439 (gimple_transaction_set_label): Likewise.
19441 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19442 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19443 * ipa-ref.c (ipa_record_reference): Likewise.
19444 * ipa-reference.c (analyze_function): Likewise.
19445 (ipa_reference_write_optimization_summary): Likewise.
19446 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19447 (address_taken_from_non_vtable_p): Likewise.
19448 (comdat_can_be_unshared_p_1): Likewise.
19449 * lto-cgraph.c (lto_output_ref): Likewise.
19450 (add_references): Likewise.
19451 (compute_ltrans_boundary): Likewise.
19452 (output_symtab): Likewise.
19453 (input_ref): Likewise.
19454 (input_cgraph_1): Likewise.
19455 (output_cgraph_opt_summary): Likewise.
19456 * lto-streamer-out.c (lto_output): Likewise.
19457 (output_symbol_p): Likewise.
19458 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19459 (lsei_start_function_in_partition): Likewise.
19460 (lsei_next_variable_in_partition): Likewise.
19461 (lsei_start_variable_in_partition): Likewise.
19462 * symtab.c (insert_to_assembler_name_hash): Likewise.
19463 (unlink_from_assembler_name_hash): Likewise.
19464 (symtab_unregister_node): Likewise.
19465 (symtab_remove_node): Likewise.
19466 (dump_symtab_node): Likewise.
19467 (verify_symtab_base): Likewise.
19468 (verify_symtab_node): Likewise.
19469 (symtab_make_decl_local): Likewise.
19470 (symtab_alias_ultimate_target): Likewise.
19471 (symtab_resolve_alias): Likewise.
19472 (symtab_get_symbol_partitioning_class): Likewise.
19473 * tree-phinodes.c (allocate_phi_node): Likewise.
19474 (reserve_phi_args_for_new_edge): Likewise.
19475 (remove_phi_args): Likewise.
19476 * varpool.c (varpool_node_for_asm): Likewise.
19477 (varpool_remove_unreferenced_decls): Likewise.
19479 2014-04-23 Jeff Law <law@redhat.com>
19481 PR tree-optimization/60902
19482 * tree-ssa-threadedge.c
19483 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19484 invalidate outputs from statements that do not produce useful
19485 outputs for threading.
19487 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19489 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19490 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19491 machine descriptions for Stack Smashing Protector.
19493 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19495 * aarch64.md (<optab>_rol<mode>3): New pattern.
19496 (<optab>_rolsi3_uxtw): Likewise.
19497 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19499 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19501 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19502 (arm_cortex_a12_tune): Likewise.
19504 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19506 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19508 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19510 * config/arm/arm.md (arm_rev16si2): New pattern.
19511 (arm_rev16si2_alt): Likewise.
19512 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19514 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19516 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19517 (rev16<mode>2_alt): Likewise.
19518 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19519 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19520 (aarch_rev16_shleft_mask_imm_p): Likewise.
19521 (aarch_rev16_p_1): Likewise.
19522 (aarch_rev16_p): Likewise.
19523 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19524 (aarch_rev16_shright_mask_imm_p): Likewise.
19525 (aarch_rev16_shleft_mask_imm_p): Likewise.
19527 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19529 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19530 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19532 (cortex_a53_extra_costs): Likewise.
19533 (cortex_a57_extra_costs): Likewise.
19534 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19535 (cortexa7_extra_costs): Likewise.
19536 (cortexa8_extra_costs): Likewise.
19537 (cortexa12_extra_costs): Likewise.
19538 (cortexa15_extra_costs): Likewise.
19539 (v7m_extra_costs): Likewise.
19540 (arm_new_rtx_costs): Handle BSWAP.
19542 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19544 * config/arm/arm.c (cortexa8_extra_costs): New table.
19545 (arm_cortex_a8_tune): New tuning struct.
19546 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19548 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19550 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19552 2014-04-23 Richard Biener <rguenther@suse.de>
19554 * Makefile.in (OBJS): Remove loop-unswitch.o.
19555 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19556 * passes.def (pass_rtl_unswitch): Likewise.
19557 * loop-init.c (gate_rtl_unswitch): Likewise.
19558 (rtl_unswitch): Likewise.
19559 (pass_data_rtl_unswitch): Likewise.
19560 (pass_rtl_unswitch): Likewise.
19561 (make_pass_rtl_unswitch): Likewise.
19562 * rtl.h (reversed_condition): Likewise.
19563 (compare_and_jump_seq): Likewise.
19564 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19566 * loop-unroll.c (compare_and_jump_seq): Likewise.
19568 2014-04-23 Richard Biener <rguenther@suse.de>
19570 PR tree-optimization/60903
19571 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19572 commented code block.
19573 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19574 loop flags to newly created BBs and edges.
19576 2014-04-23 Nick Clifton <nickc@redhat.com>
19578 * config/msp430/msp430.c (msp430_handle_option): Move function
19580 (msp430_option_override): Simplify mcu and mcpu option handling.
19581 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19582 support for -mhwmult command line option.
19583 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19584 -mhwmult command line option.
19585 (msp430_hwmult_enabled): Delete.
19586 (msp43o_output_labelref): Add support for -mhwmult command line option.
19587 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19588 (umulsidi3): Likewise.
19589 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19590 (mcpu, mlarge, msmall): Likewise.
19591 (mhwmult): New option.
19592 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19594 (msp430_is_f5_mcu): Remove prototype.
19595 (msp430_use_f5_series_hwmult): Add prototype.
19596 * config/msp430/msp430-opts.h: New file.
19597 * common/config/msp430: New directory.
19598 * common/config/msp430/msp430-common.c: New file.
19599 * config.gcc (msp430): Remove target_has_targetm_common.
19600 * doc/invoke.texi: Document -mhwmult command line option.
19602 2014-04-23 Nick Clifton <nickc@redhat.com>
19604 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19605 default-manifest.o if it can be found in the search path.
19606 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19608 2014-04-23 Terry Guo <terry.guo@arm.com>
19610 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19612 2014-04-23 Richard Biener <rguenther@suse.de>
19614 PR middle-end/60895
19615 * tree-inline.c (declare_return_variable): Use mark_addressable.
19617 2014-04-23 Richard Biener <rguenther@suse.de>
19619 PR middle-end/60891
19620 * loop-init.c (loop_optimizer_init): Make sure to apply
19621 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19623 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19626 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19628 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19629 if flag_sanitize_undefined_trap_on_error.
19630 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19631 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19632 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19633 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19634 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19635 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19636 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19637 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19638 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19639 * ubsan.c (ubsan_instrument_unreachable): Return
19640 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19641 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19642 if flag_sanitize_undefined_trap_on_error and
19643 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19644 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19645 instrument_bool_enum_load): Emit __builtin_trap () if
19646 flag_sanitize_undefined_trap_on_error and
19647 __builtin_handle_*_abort () if !flag_sanitize_recover.
19648 * doc/invoke.texi (-fsanitize-recover,
19649 -fsanitize-undefined-trap-on-error): Document.
19651 2014-04-22 Christian Bruel <christian.bruel@st.com>
19653 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19654 Force immediates to SImode.
19656 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19658 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19659 (lroundsfsi2): New.
19660 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19661 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19662 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19663 (nios2_fpu_insn): Add entry for round.
19664 (N2FPU_NO_ERRNO_P): Define.
19665 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19667 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19669 2014-04-22 Richard Henderson <rth@redhat.com>
19671 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19672 (add<GPI>3_compare0): Remove leading * from name.
19673 (add<GPI>3_carryin): Likewise.
19674 (sub<GPI>3_compare0): Likewise.
19675 (sub<GPI>3_carryin): Likewise.
19676 (<su_optab>mulditi3): New expander.
19677 (multi3): New expander.
19678 (madd<GPI>): Remove leading * from name.
19680 2014-04-22 Martin Jambor <mjambor@suse.cz>
19682 * cgraphclones.c (cgraph_function_versioning): Copy
19683 ipa_transforms_to_apply instead of asserting it is empty.
19685 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19688 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19689 on count_exp to get mode.
19691 2014-04-22 Andrew Pinski <apinski@cavium.com>
19693 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19694 Handle TLS for ILP32.
19695 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19696 (tlsie_small_<mode>): this and handle PTR.
19697 (tlsie_small_sidi): New pattern.
19698 (tlsle_small): Change to an expand to handle ILP32.
19699 (tlsle_small_<mode>): New pattern.
19700 (tlsdesc_small): Rename to ...
19701 (tlsdesc_small_<mode>): this and handle PTR.
19703 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19705 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19707 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19709 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19710 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19711 (aarch64_types_signed_poly_qualifiers): Likewise.
19712 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19713 (aarch64_types_poly_signed_qualifiers): Likewise.
19714 (TYPES_REINTERP_SS): Type macro added.
19715 (TYPES_REINTERP_SU): Likewise.
19716 (TYPES_REINTERP_SP): Likewise.
19717 (TYPES_REINTERP_US): Likewise.
19718 (TYPES_REINTERP_PS): Likewise.
19719 (aarch64_fold_builtin): New expression folding added.
19720 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19721 Declarations removed.
19722 (REINTERP_SS): Declarations added.
19723 (REINTERP_US): Likewise.
19724 (REINTERP_PS): Likewise.
19725 (REINTERP_SU): Likewise.
19726 (REINTERP_SP): Likewise.
19727 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19728 (vreinterpretq_p8_f64): Likewise.
19729 (vreinterpret_p16_f64): Likewise.
19730 (vreinterpretq_p16_f64): Likewise.
19731 (vreinterpret_f32_f64): Likewise.
19732 (vreinterpretq_f32_f64): Likewise.
19733 (vreinterpret_f64_f32): Likewise.
19734 (vreinterpret_f64_p8): Likewise.
19735 (vreinterpret_f64_p16): Likewise.
19736 (vreinterpret_f64_s8): Likewise.
19737 (vreinterpret_f64_s16): Likewise.
19738 (vreinterpret_f64_s32): Likewise.
19739 (vreinterpret_f64_s64): Likewise.
19740 (vreinterpret_f64_u8): Likewise.
19741 (vreinterpret_f64_u16): Likewise.
19742 (vreinterpret_f64_u32): Likewise.
19743 (vreinterpret_f64_u64): Likewise.
19744 (vreinterpretq_f64_f32): Likewise.
19745 (vreinterpretq_f64_p8): Likewise.
19746 (vreinterpretq_f64_p16): Likewise.
19747 (vreinterpretq_f64_s8): Likewise.
19748 (vreinterpretq_f64_s16): Likewise.
19749 (vreinterpretq_f64_s32): Likewise.
19750 (vreinterpretq_f64_s64): Likewise.
19751 (vreinterpretq_f64_u8): Likewise.
19752 (vreinterpretq_f64_u16): Likewise.
19753 (vreinterpretq_f64_u32): Likewise.
19754 (vreinterpretq_f64_u64): Likewise.
19755 (vreinterpret_s64_f64): Likewise.
19756 (vreinterpretq_s64_f64): Likewise.
19757 (vreinterpret_u64_f64): Likewise.
19758 (vreinterpretq_u64_f64): Likewise.
19759 (vreinterpret_s8_f64): Likewise.
19760 (vreinterpretq_s8_f64): Likewise.
19761 (vreinterpret_s16_f64): Likewise.
19762 (vreinterpretq_s16_f64): Likewise.
19763 (vreinterpret_s32_f64): Likewise.
19764 (vreinterpretq_s32_f64): Likewise.
19765 (vreinterpret_u8_f64): Likewise.
19766 (vreinterpretq_u8_f64): Likewise.
19767 (vreinterpret_u16_f64): Likewise.
19768 (vreinterpretq_u16_f64): Likewise.
19769 (vreinterpret_u32_f64): Likewise.
19770 (vreinterpretq_u32_f64): Likewise.
19772 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19774 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19775 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19776 (vreinterpret_p8_s8): Likewise.
19777 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19778 (vreinterpret_p8_s16): Likewise.
19779 (vreinterpret_p8_s32): Likewise.
19780 (vreinterpret_p8_s64): Likewise.
19781 (vreinterpret_p8_f32): Likewise.
19782 (vreinterpret_p8_u8): Likewise.
19783 (vreinterpret_p8_u16): Likewise.
19784 (vreinterpret_p8_u32): Likewise.
19785 (vreinterpret_p8_u64): Likewise.
19786 (vreinterpret_p8_p16): Likewise.
19787 (vreinterpretq_p8_s8): Likewise.
19788 (vreinterpretq_p8_s16): Likewise.
19789 (vreinterpretq_p8_s32): Likewise.
19790 (vreinterpretq_p8_s64): Likewise.
19791 (vreinterpretq_p8_f32): Likewise.
19792 (vreinterpretq_p8_u8): Likewise.
19793 (vreinterpretq_p8_u16): Likewise.
19794 (vreinterpretq_p8_u32): Likewise.
19795 (vreinterpretq_p8_u64): Likewise.
19796 (vreinterpretq_p8_p16): Likewise.
19797 (vreinterpret_p16_s8): Likewise.
19798 (vreinterpret_p16_s16): Likewise.
19799 (vreinterpret_p16_s32): Likewise.
19800 (vreinterpret_p16_s64): Likewise.
19801 (vreinterpret_p16_f32): Likewise.
19802 (vreinterpret_p16_u8): Likewise.
19803 (vreinterpret_p16_u16): Likewise.
19804 (vreinterpret_p16_u32): Likewise.
19805 (vreinterpret_p16_u64): Likewise.
19806 (vreinterpret_p16_p8): Likewise.
19807 (vreinterpretq_p16_s8): Likewise.
19808 (vreinterpretq_p16_s16): Likewise.
19809 (vreinterpretq_p16_s32): Likewise.
19810 (vreinterpretq_p16_s64): Likewise.
19811 (vreinterpretq_p16_f32): Likewise.
19812 (vreinterpretq_p16_u8): Likewise.
19813 (vreinterpretq_p16_u16): Likewise.
19814 (vreinterpretq_p16_u32): Likewise.
19815 (vreinterpretq_p16_u64): Likewise.
19816 (vreinterpretq_p16_p8): Likewise.
19817 (vreinterpret_f32_s8): Likewise.
19818 (vreinterpret_f32_s16): Likewise.
19819 (vreinterpret_f32_s32): Likewise.
19820 (vreinterpret_f32_s64): Likewise.
19821 (vreinterpret_f32_u8): Likewise.
19822 (vreinterpret_f32_u16): Likewise.
19823 (vreinterpret_f32_u32): Likewise.
19824 (vreinterpret_f32_u64): Likewise.
19825 (vreinterpret_f32_p8): Likewise.
19826 (vreinterpret_f32_p16): Likewise.
19827 (vreinterpretq_f32_s8): Likewise.
19828 (vreinterpretq_f32_s16): Likewise.
19829 (vreinterpretq_f32_s32): Likewise.
19830 (vreinterpretq_f32_s64): Likewise.
19831 (vreinterpretq_f32_u8): Likewise.
19832 (vreinterpretq_f32_u16): Likewise.
19833 (vreinterpretq_f32_u32): Likewise.
19834 (vreinterpretq_f32_u64): Likewise.
19835 (vreinterpretq_f32_p8): Likewise.
19836 (vreinterpretq_f32_p16): Likewise.
19837 (vreinterpret_s64_s8): Likewise.
19838 (vreinterpret_s64_s16): Likewise.
19839 (vreinterpret_s64_s32): Likewise.
19840 (vreinterpret_s64_f32): Likewise.
19841 (vreinterpret_s64_u8): Likewise.
19842 (vreinterpret_s64_u16): Likewise.
19843 (vreinterpret_s64_u32): Likewise.
19844 (vreinterpret_s64_u64): Likewise.
19845 (vreinterpret_s64_p8): Likewise.
19846 (vreinterpret_s64_p16): Likewise.
19847 (vreinterpretq_s64_s8): Likewise.
19848 (vreinterpretq_s64_s16): Likewise.
19849 (vreinterpretq_s64_s32): Likewise.
19850 (vreinterpretq_s64_f32): Likewise.
19851 (vreinterpretq_s64_u8): Likewise.
19852 (vreinterpretq_s64_u16): Likewise.
19853 (vreinterpretq_s64_u32): Likewise.
19854 (vreinterpretq_s64_u64): Likewise.
19855 (vreinterpretq_s64_p8): Likewise.
19856 (vreinterpretq_s64_p16): Likewise.
19857 (vreinterpret_u64_s8): Likewise.
19858 (vreinterpret_u64_s16): Likewise.
19859 (vreinterpret_u64_s32): Likewise.
19860 (vreinterpret_u64_s64): Likewise.
19861 (vreinterpret_u64_f32): Likewise.
19862 (vreinterpret_u64_u8): Likewise.
19863 (vreinterpret_u64_u16): Likewise.
19864 (vreinterpret_u64_u32): Likewise.
19865 (vreinterpret_u64_p8): Likewise.
19866 (vreinterpret_u64_p16): Likewise.
19867 (vreinterpretq_u64_s8): Likewise.
19868 (vreinterpretq_u64_s16): Likewise.
19869 (vreinterpretq_u64_s32): Likewise.
19870 (vreinterpretq_u64_s64): Likewise.
19871 (vreinterpretq_u64_f32): Likewise.
19872 (vreinterpretq_u64_u8): Likewise.
19873 (vreinterpretq_u64_u16): Likewise.
19874 (vreinterpretq_u64_u32): Likewise.
19875 (vreinterpretq_u64_p8): Likewise.
19876 (vreinterpretq_u64_p16): Likewise.
19877 (vreinterpret_s8_s16): Likewise.
19878 (vreinterpret_s8_s32): Likewise.
19879 (vreinterpret_s8_s64): Likewise.
19880 (vreinterpret_s8_f32): Likewise.
19881 (vreinterpret_s8_u8): Likewise.
19882 (vreinterpret_s8_u16): Likewise.
19883 (vreinterpret_s8_u32): Likewise.
19884 (vreinterpret_s8_u64): Likewise.
19885 (vreinterpret_s8_p8): Likewise.
19886 (vreinterpret_s8_p16): Likewise.
19887 (vreinterpretq_s8_s16): Likewise.
19888 (vreinterpretq_s8_s32): Likewise.
19889 (vreinterpretq_s8_s64): Likewise.
19890 (vreinterpretq_s8_f32): Likewise.
19891 (vreinterpretq_s8_u8): Likewise.
19892 (vreinterpretq_s8_u16): Likewise.
19893 (vreinterpretq_s8_u32): Likewise.
19894 (vreinterpretq_s8_u64): Likewise.
19895 (vreinterpretq_s8_p8): Likewise.
19896 (vreinterpretq_s8_p16): Likewise.
19897 (vreinterpret_s16_s8): Likewise.
19898 (vreinterpret_s16_s32): Likewise.
19899 (vreinterpret_s16_s64): Likewise.
19900 (vreinterpret_s16_f32): Likewise.
19901 (vreinterpret_s16_u8): Likewise.
19902 (vreinterpret_s16_u16): Likewise.
19903 (vreinterpret_s16_u32): Likewise.
19904 (vreinterpret_s16_u64): Likewise.
19905 (vreinterpret_s16_p8): Likewise.
19906 (vreinterpret_s16_p16): Likewise.
19907 (vreinterpretq_s16_s8): Likewise.
19908 (vreinterpretq_s16_s32): Likewise.
19909 (vreinterpretq_s16_s64): Likewise.
19910 (vreinterpretq_s16_f32): Likewise.
19911 (vreinterpretq_s16_u8): Likewise.
19912 (vreinterpretq_s16_u16): Likewise.
19913 (vreinterpretq_s16_u32): Likewise.
19914 (vreinterpretq_s16_u64): Likewise.
19915 (vreinterpretq_s16_p8): Likewise.
19916 (vreinterpretq_s16_p16): Likewise.
19917 (vreinterpret_s32_s8): Likewise.
19918 (vreinterpret_s32_s16): Likewise.
19919 (vreinterpret_s32_s64): Likewise.
19920 (vreinterpret_s32_f32): Likewise.
19921 (vreinterpret_s32_u8): Likewise.
19922 (vreinterpret_s32_u16): Likewise.
19923 (vreinterpret_s32_u32): Likewise.
19924 (vreinterpret_s32_u64): Likewise.
19925 (vreinterpret_s32_p8): Likewise.
19926 (vreinterpret_s32_p16): Likewise.
19927 (vreinterpretq_s32_s8): Likewise.
19928 (vreinterpretq_s32_s16): Likewise.
19929 (vreinterpretq_s32_s64): Likewise.
19930 (vreinterpretq_s32_f32): Likewise.
19931 (vreinterpretq_s32_u8): Likewise.
19932 (vreinterpretq_s32_u16): Likewise.
19933 (vreinterpretq_s32_u32): Likewise.
19934 (vreinterpretq_s32_u64): Likewise.
19935 (vreinterpretq_s32_p8): Likewise.
19936 (vreinterpretq_s32_p16): Likewise.
19937 (vreinterpret_u8_s8): Likewise.
19938 (vreinterpret_u8_s16): Likewise.
19939 (vreinterpret_u8_s32): Likewise.
19940 (vreinterpret_u8_s64): Likewise.
19941 (vreinterpret_u8_f32): Likewise.
19942 (vreinterpret_u8_u16): Likewise.
19943 (vreinterpret_u8_u32): Likewise.
19944 (vreinterpret_u8_u64): Likewise.
19945 (vreinterpret_u8_p8): Likewise.
19946 (vreinterpret_u8_p16): Likewise.
19947 (vreinterpretq_u8_s8): Likewise.
19948 (vreinterpretq_u8_s16): Likewise.
19949 (vreinterpretq_u8_s32): Likewise.
19950 (vreinterpretq_u8_s64): Likewise.
19951 (vreinterpretq_u8_f32): Likewise.
19952 (vreinterpretq_u8_u16): Likewise.
19953 (vreinterpretq_u8_u32): Likewise.
19954 (vreinterpretq_u8_u64): Likewise.
19955 (vreinterpretq_u8_p8): Likewise.
19956 (vreinterpretq_u8_p16): Likewise.
19957 (vreinterpret_u16_s8): Likewise.
19958 (vreinterpret_u16_s16): Likewise.
19959 (vreinterpret_u16_s32): Likewise.
19960 (vreinterpret_u16_s64): Likewise.
19961 (vreinterpret_u16_f32): Likewise.
19962 (vreinterpret_u16_u8): Likewise.
19963 (vreinterpret_u16_u32): Likewise.
19964 (vreinterpret_u16_u64): Likewise.
19965 (vreinterpret_u16_p8): Likewise.
19966 (vreinterpret_u16_p16): Likewise.
19967 (vreinterpretq_u16_s8): Likewise.
19968 (vreinterpretq_u16_s16): Likewise.
19969 (vreinterpretq_u16_s32): Likewise.
19970 (vreinterpretq_u16_s64): Likewise.
19971 (vreinterpretq_u16_f32): Likewise.
19972 (vreinterpretq_u16_u8): Likewise.
19973 (vreinterpretq_u16_u32): Likewise.
19974 (vreinterpretq_u16_u64): Likewise.
19975 (vreinterpretq_u16_p8): Likewise.
19976 (vreinterpretq_u16_p16): Likewise.
19977 (vreinterpret_u32_s8): Likewise.
19978 (vreinterpret_u32_s16): Likewise.
19979 (vreinterpret_u32_s32): Likewise.
19980 (vreinterpret_u32_s64): Likewise.
19981 (vreinterpret_u32_f32): Likewise.
19982 (vreinterpret_u32_u8): Likewise.
19983 (vreinterpret_u32_u16): Likewise.
19984 (vreinterpret_u32_u64): Likewise.
19985 (vreinterpret_u32_p8): Likewise.
19986 (vreinterpret_u32_p16): Likewise.
19987 (vreinterpretq_u32_s8): Likewise.
19988 (vreinterpretq_u32_s16): Likewise.
19989 (vreinterpretq_u32_s32): Likewise.
19990 (vreinterpretq_u32_s64): Likewise.
19991 (vreinterpretq_u32_f32): Likewise.
19992 (vreinterpretq_u32_u8): Likewise.
19993 (vreinterpretq_u32_u16): Likewise.
19994 (vreinterpretq_u32_u64): Likewise.
19995 (vreinterpretq_u32_p8): Likewise.
19996 (vreinterpretq_u32_p16): Likewise.
19998 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20000 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20002 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20004 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20005 (vqnegd_s64): Likewise.
20006 (vqabs_s64): Likewise.
20007 (vqabsd_s64): Likewise.
20009 2014-04-22 Richard Henderson <rth@redhat.com>
20011 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20012 computation to the top of the loop.
20014 2014-04-22 Renlin <renlin.li@arm.com>
20015 Jiong Wang <jiong.wang@arm.com>
20017 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20018 * config/aarch64/aarch64.c (aarch64_layout_frame)
20019 (aarch64_initial_elimination_offset): Likewise.
20021 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20023 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20026 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20028 * machmode.h (bitwise_mode_for_mode): Declare.
20029 * stor-layout.h (bitwise_type_for_mode): Likewise.
20030 * stor-layout.c (bitwise_mode_for_mode): New function.
20031 (bitwise_type_for_mode): Likewise.
20032 * builtins.c (fold_builtin_memory_op): Use it instead of
20033 int_mode_for_mode and build_nonstandard_integer_type.
20035 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20037 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20038 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20039 (*-*-solaris2*): Simplify.
20040 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20041 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20042 *-*-solaris2.9* handling.
20044 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20046 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20047 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20048 handling, simplify.
20049 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20050 * configure: Regenerate.
20052 * config/i386/sol2-9.h: Remove.
20054 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20055 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20056 Remove Solaris 9 references.
20058 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20060 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20061 (floatuns<GPI:mode><GPF:mode>2): Remove.
20062 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20063 and floatuns conversions.
20064 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20065 and floatuns conversions.
20066 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20067 (w1,w2): New mode attributes for inequal width conversions.
20069 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20071 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20072 the output asm format.
20074 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20076 * config/aarch64/aarch64-simd.md
20077 (aarch64_cm<optab>di): Always split.
20078 (*aarch64_cm<optab>di): New.
20079 (aarch64_cmtstdi): Always split.
20080 (*aarch64_cmtstdi): New.
20082 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20084 PR tree-optimization/60823
20085 * omp-low.c (ipa_simd_modify_function_body): Go through
20086 all SSA_NAMEs and for those refering to vector arguments
20087 which are going to be replaced adjust SSA_NAME_VAR and,
20088 if it is a default definition, change it into a non-default
20089 definition assigned at the beginning of function from new_decl.
20090 (ipa_simd_modify_stmt_ops): Rewritten.
20091 * tree-dfa.c (set_ssa_default_def): When removing default def,
20092 check for NULL loc instead of NULL *loc.
20094 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20096 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20097 restrictions on core registers for DImode values in Thumb2.
20099 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20101 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20102 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20104 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20106 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20107 (*iordi_notzesidi_di): Likewise.
20108 (*iordi_notsesidi_di): Likewise.
20110 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20112 * config/arm/arm-protos.h (tune_params): New struct members.
20113 * config/arm/arm.c: Initialise tune_params per processor.
20114 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20115 for speed, based on new tune_params.
20117 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20119 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20120 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20121 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20122 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20123 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20124 (vrnda_f64): Likewise.
20125 (vrndi_f64): Likewise.
20126 (vrndm_f64): Likewise.
20127 (vrndn_f64): Likewise.
20128 (vrndp_f64): Likewise.
20129 (vrndx_f64): Likewise.
20131 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20133 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20134 GET_MODE_SIZE argument is enum machine_mode.
20136 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20139 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20140 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20142 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20144 PR middle-end/60281
20145 * asan.c (asan_emit_stack_protection): Force the base to align to
20146 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20147 appropriate bits if STRICT_ALIGNMENT.
20148 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20150 (expand_used_vars): Leave a space in the stack frame for alignment
20151 if STRICT_ALIGNMENT.
20153 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20155 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20157 (gimple_store_p): Likewise.
20158 (gimple_assign_load_p): Likewise.
20159 (gimple_assign_cast_p): Likewise.
20160 (gimple_clobber_p): Likewise.
20162 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20163 rather than a gimple.
20164 (gimple_assign_cast_p): Likewise.
20166 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20169 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20170 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20172 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20173 more debug information for E500 if -mdebug=reg.
20175 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20178 * config/i386/i386.c (ix86_expand_builtin)
20179 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20180 register for target RTX.
20181 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20183 2014-04-18 Cong Hou <congh@google.com>
20185 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20186 the widen-mult pattern by handling two operands with different sizes,
20187 and operands whose size is smaller than half of the result type.
20189 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20191 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20192 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20193 (do_estimate_edge_time): Compute it.
20194 * ipa-inline.c (want_inline_small_function_p): Bypass
20195 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20197 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20199 * ipa-inline.c (spec_rem): New static variable.
20200 (dump_overall_stats): New function.
20201 (dump_inline_stats): New function.
20203 2014-04-18 Richard Henderson <rth@redhat.com>
20205 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20206 to GET_MODE_SIZE, not a reg_class_t.
20208 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20210 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20211 (vsx_xxmrglw_<mode>): Likewise.
20213 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20216 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20217 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20218 (rs6000_init_hard_regno_mode_ok): Likewise.
20220 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20222 * ipa-inline.c (inline_small_functions): Account only non-cold
20224 * doc/invoke.texi (inline-unit-growth): Update documentation.
20226 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20228 * config/rs6000/rs6000.md (addti3, subti3): New.
20230 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20233 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20234 comment. Check optimize_insn_for_size_p instead of
20235 optimize_insn_for_speed_p.
20237 2014-04-17 Martin Jambor <mjambor@suse.cz>
20239 * gimple-iterator.c (gsi_start_edge): New function.
20240 * gimple-iterator.h (gsi_start_edge): Declare.
20241 * tree-sra.c (single_non_eh_succ): New function.
20242 (disqualify_ops_if_throwing_stmt): Renamed to
20243 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20244 having one non-EH successor BB.
20245 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20246 generate loads into replacements.
20247 (sra_modify_assign): Likewise and and also use the simple path for
20249 (sra_modify_function_body): Commit statements on edges.
20251 2014-04-17 Richard Biener <rguenther@suse.de>
20253 PR middle-end/60849
20254 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20255 comparison results and add clarifying comment.
20257 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20259 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20260 (blank_mode): Initialize it.
20261 (emit_mode_size_inline, emit_mode_nunits_inline,
20262 emit_mode_inner_inline): New functions.
20263 (emit_insn_modes_h): Call them and surround their output with
20264 #if GCC_VERSION >= 4001 ... #endif.
20265 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20266 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20267 mode_* arrays if the argument is __builtin_constant_p.
20268 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20269 is enum machine_mode.
20271 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20273 * passes.c (opt_pass::execute): Adjust.
20274 (pass_manager::execute_pass_mode_switching): Likewise.
20275 (early_local_passes::execute): Likewise.
20276 (execute_one_pass): Pass cfun to the pass's execute method.
20277 * tree-pass.h (opt_pass::execute): Add function * argument.
20278 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20279 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20280 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20281 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20282 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20283 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20284 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20285 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20286 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20287 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20288 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20289 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20290 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20291 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20292 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20293 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20294 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20295 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20296 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20297 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20298 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20299 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20300 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20301 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20302 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20303 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20304 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20305 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20306 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20309 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20311 * passes.c (opt_pass::gate): Take function * argument.
20312 (gate_all_early_local_passes): Merge into
20313 (early_local_passes::gate): this.
20314 (gate_all_early_optimizations): Merge into
20315 (all_early_optimizations::gate): this.
20316 (gate_all_optimizations): Mege into
20317 (all_optimizations::gate): this.
20318 (gate_all_optimizations_g): Merge into
20319 (all_optimizations_g::gate): this.
20320 (gate_rest_of_compilation): Mege into
20321 (rest_of_compilation::gate): this.
20322 (gate_postreload): Merge into
20323 (postreload::gate): this.
20324 (dump_one_pass): Pass cfun to the pass's gate method.
20325 (execute_ipa_summary_passes): Likewise.
20326 (execute_one_pass): Likewise.
20327 (ipa_write_summaries_2): Likewise.
20328 (ipa_write_optimization_summaries_1): Likewise.
20329 (ipa_read_summaries_1): Likewise.
20330 (ipa_read_optimization_summaries_1): Likewise.
20331 (execute_ipa_stmt_fixups): Likewise.
20332 * tree-pass.h (opt_pass::gate): Add function * argument.
20333 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20334 combine-stack-adj.c, combine.c, compare-elim.c,
20335 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20336 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20337 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20338 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20339 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20340 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20341 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20342 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20343 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20344 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20345 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20346 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20347 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20348 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20349 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20350 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20351 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20352 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20353 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20354 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20355 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20356 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20357 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20358 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20359 var-tracking.c, vtable-verify.c, web.c: Adjust.
20361 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20363 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20364 * configure: Regenerate.
20366 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20368 * passes.c (dump_one_pass): don't check pass->has_gate.
20369 (execute_ipa_summary_passes): Likewise.
20370 (execute_one_pass): Likewise.
20371 (ipa_write_summaries_2): Likewise.
20372 (ipa_write_optimization_summaries_1): Likewise.
20373 (ipa_read_optimization_summaries_1): Likewise.
20374 (execute_ipa_stmt_fixups): Likewise.
20375 * tree-pass.h (pass_data::has_gate): Remove.
20376 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20377 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20378 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20379 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20380 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20381 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20382 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20383 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20384 gimple-low.c, gimple-ssa-isolate-paths.c,
20385 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20386 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20387 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20388 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20389 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20390 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20391 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20392 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20393 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20394 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20395 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20396 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20397 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20398 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20399 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20400 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20401 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20402 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20403 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20404 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20405 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20406 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20409 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20411 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20413 * passes.c (pass_manager::register_dump_files_1): Merge into
20414 (pass_manager::register_dump_files): this, and remove its handling of
20415 properties since the pass always has the properties anyway.
20416 (pass_manager::pass_manager): Adjust.
20418 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20420 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20421 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20422 dealing with properties.
20423 (pass_manager::register_dump_files): Adjust.
20425 2014-03-20 Mark Wielaard <mjw@redhat.com>
20427 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20428 then represent the bound as normal constant value.
20430 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20433 Forward port from 4.8 branch
20434 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20436 * config/i386/bmiintrin.h (_blsi_u32): New.
20437 (_blsi_u64): Ditto.
20438 (_blsr_u32): Ditto.
20439 (_blsr_u64): Ditto.
20440 (_blsmsk_u32): Ditto.
20441 (_blsmsk_u64): Ditto.
20442 (_tzcnt_u32): Ditto.
20443 (_tzcnt_u64): Ditto.
20445 2014-04-17 Kito Cheng <kito@0xlab.org>
20447 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20449 2014-04-17 Richard Biener <rguenther@suse.de>
20451 PR middle-end/60849
20452 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20453 boolean results for comparisons.
20455 2014-04-17 Richard Biener <rguenther@suse.de>
20457 PR tree-optimization/60836
20458 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20459 initial PHI args to be gimple values.
20461 2014-04-17 Richard Biener <rguenther@suse.de>
20463 PR tree-optimization/60841
20464 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20465 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20466 of stmts to SLP build.
20467 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20468 (vect_analyze_slp): Likewise.
20469 (vect_analyze_slp_instance): Likewise.
20470 (vect_build_slp_tree): Limit overall SLP tree growth.
20471 * tree-vectorizer.h (vect_analyze_data_refs,
20472 vect_analyze_slp): Adjust prototypes.
20474 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20476 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20479 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20481 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20482 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20483 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20484 for TARGET_SLOW_PSHUFB
20486 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20488 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20489 * config/i386/i386.c (intel_cost): Ditto.
20491 2014-04-17 Joey Ye <joey.ye@arm.com>
20493 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20495 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20497 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20498 with -fuse-profile.
20500 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20502 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20503 (type_all_derivations_known_p): New predicate.
20504 (type_all_ctors_visible_p): New predicate.
20505 (type_possibly_instantiated_p): New predicate.
20506 (get_odr_type): Compute all_derivations_known.
20507 (dump_odr_type): Dump the flag.
20508 (maybe_record_type): Cleanup.
20509 (record_target_from_binfo): Add bases_to_consider array;
20510 record bases for types w/o instances and skip CXX destructor.
20511 (possible_polymorphic_call_targets_1): Add bases_to_consider
20512 and consider_construction parameters; check if type may have instance.
20513 (get_polymorphic_call_info): Set maybe_in_construction to true
20514 when we know nothing.
20515 (record_targets_from_bases): Skip CXX destructors; they are
20516 never called for types in construction.
20517 (possible_polymorphic_call_targets): Do not record target when
20518 type may not have instance.
20520 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20523 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20524 external aliases alive, too.
20526 2014-04-16 Andrew Pinski <apinski@cavium.com>
20528 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20531 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20533 * final.c (compute_alignments): Do not apply loop alignment to a block
20534 falling through to the exit.
20536 2014-04-16 Catherine Moore <clm@codesourcery.com>
20538 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20539 Adjust constraints for microMIPS store patterns.
20541 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20543 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20545 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20547 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20548 (append_use): Run at -O0.
20549 (append_vdef): Likewise.
20550 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20551 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20553 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20555 PR tree-optimization/60844
20556 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20557 (propagate_op_to_single_use, remove_visited_stmt_chain,
20558 linearize_expr, repropagate_negates, reassociate_bb): Use it
20559 instead of gsi_remove.
20561 2014-04-16 Martin Jambor <mjambor@suse.cz>
20563 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20564 ipa_transforms_to_apply.
20565 (cgraph_function_versioning): Assert that old_node has empty
20566 ipa_transforms_to_apply.
20567 * trans-mem.c (ipa_tm_create_version): Likewise.
20568 * tree-inline.c (tree_function_versioning): Do not duplicate
20569 ipa_transforms_to_apply.
20571 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20574 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20576 Pass necessary as flags on 64-bit Solaris/x86.
20577 Use lowercase relocs for x86_64-*-*.
20578 * configure: Regenerate.
20580 2014-04-15 Jan Hubicka <jh@suse.cz>
20582 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20583 (maybe_record_node, likely_target_p): Use it.
20585 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20588 Revert following patch
20590 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20593 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20594 software floating point or no floating point registers, do not
20595 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20596 in GPRs that occurs after we tested for GPRs that would never be
20599 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20600 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20601 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20602 specifically allow DDmode, since that does not use the SPE SIMD
20605 2014-03-21 Mark Wielaard <mjw@redhat.com>
20607 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20608 as unsigned or int depending on type and value used.
20610 2014-04-15 Richard Biener <rguenther@suse.de>
20612 PR rtl-optimization/56965
20613 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20614 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20616 * alias.c (true_dependence_1): Do not call
20617 nonoverlapping_component_refs_p.
20618 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20619 nonoverlapping_component_refs_p.
20620 (indirect_refs_may_alias_p): Likewise.
20622 2014-04-15 Teresa Johnson <tejohnson@google.com>
20624 * cfg.c (dump_bb_info): Fix flags check.
20625 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20627 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20629 PR rtl-optimization/60663
20630 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20633 2014-04-15 Richard Biener <rguenther@suse.de>
20635 * lto-streamer.h (LTO_major_version): Bump to 4.
20637 2014-04-15 Richard Biener <rguenther@suse.de>
20639 * common.opt (lto_partition_model): New enum.
20640 (flto-partition=): Merge separate options with a single with argument,
20641 add -flto-partition=one support.
20642 * flag-types.h (enum lto_partition_model): Declare.
20643 * opts.c (finish_options): Remove duplicate -flto-partition=
20645 * lto-wrapper.c (run_gcc): Adjust.
20647 2014-04-15 Richard Biener <rguenther@suse.de>
20649 * alias.c (ncr_compar): New function.
20650 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20652 2014-04-15 Richard Biener <rguenther@suse.de>
20654 * alias.c (record_component_aliases): Do not walk BINFOs.
20656 2014-04-15 Richard Biener <rguenther@suse.de>
20658 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20659 Add struct function argument and adjust.
20660 (find_func_aliases_for_call): Likewise.
20661 (find_func_aliases): Likewise.
20662 (find_func_clobbers): Likewise.
20663 (intra_create_variable_infos): Likewise.
20664 (compute_points_to_sets): Likewise.
20665 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20667 2014-04-15 Richard Biener <rguenther@suse.de>
20669 * tree.c (iterative_hash_expr): Use enum tree_code_class
20670 to store TREE_CODE_CLASS.
20671 (tree_block): Likewise.
20672 (tree_set_block): Likewise.
20673 * tree.h (fold_build_pointer_plus_loc): Use
20674 convert_to_ptrofftype_loc.
20676 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20679 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20682 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20684 * cfgloop.h (struct loop): Move force_vectorize down.
20685 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20686 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20687 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20688 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20689 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20690 * tree-core.h (enum annot_expr_kind): Add new kind values.
20691 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20692 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20694 * tree.def (ANNOTATE_EXPR): Tweak comment.
20696 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20698 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20701 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20703 * tree.h (TYPE_IDENTIFIER): Declare.
20704 * tree.c (subrange_type_for_debug_p): Use it.
20705 * godump.c (go_format_type): Likewise.
20706 * dwarf2out.c (is_cxx_auto, modified_type_die,
20707 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20708 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20710 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20713 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20715 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20717 * config/i386/i386.c (examine_argument): Return bool. Return true if
20718 parameter should be passed in memory.
20719 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20720 (construct_container): Update calls to examine_argument.
20721 (function_arg_advance_64): Ditto.
20722 (return_in_memory_32): Merge with ix86_return_in_memory.
20723 (return_in_memory_64): Ditto.
20724 (return_in_memory_ms_64): Ditto.
20726 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20728 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20729 * coverage.c (coverage_compute_profile_id): Handle externally visible
20732 2014-04-14 Martin Jambor <mjambor@suse.cz>
20734 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20735 DECL_DISREGARD_INLINE_LIMITS functions.
20737 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20740 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20742 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20745 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20746 optimize_insn_for_speed_p instead of
20747 optimize_function_for_speed_p.
20749 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20751 * doc/invoke.texi (free): Document AArch64.
20753 2014-04-14 Richard Biener <rguenther@suse.de>
20755 PR tree-optimization/60042
20756 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20757 (insert_into_preds_of_block): Do not prevent PHI insertion
20758 for REFERENCE exprs here ...
20759 (eliminate_dom_walker::before_dom_children): ... but prevent
20760 their use here under similar conditions when applied to the
20761 IL after PRE optimizations.
20763 2014-04-14 Richard Biener <rguenther@suse.de>
20765 * passes.def: Move early points-to after early SRA.
20767 2014-04-14 Richard Biener <rguenther@suse.de>
20769 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20770 check for which sign-changes we allow when forwarding
20771 a converted value into a switch.
20773 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20775 * stor-layout.c (place_field): Finalize non-constant offset for the
20778 2014-04-14 Richard Biener <rguenther@suse.de>
20780 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20782 (expand_switch_using_bit_tests_p): Likewise.
20783 (process_switch): Compute and pass on speed_p based on the
20785 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20786 optimize_bb_for_speed_p.
20788 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20790 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20791 * function.h (struct function): Rename has_force_vect_loops into
20792 has_force_vectorize_loops.
20793 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20794 (input_struct_function_base): Likewise.
20795 * lto-streamer-out.c (output_cfg): Likewise.
20796 (output_struct_function_base): Likewise.
20797 * omp-low.c (expand_omp_simd): Likewise.
20798 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20799 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20800 (version_loop_for_if_conversion): Likewise.
20801 (tree_if_conversion): Likewise.
20802 (main_tree_if_conversion): Likewise.
20803 (gate_tree_if_conversion): Likewise.
20804 * tree-inline.c (copy_loops): Likewise.
20805 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20806 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20807 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20808 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20809 * tree-vectorizer.c (vectorize_loops): Likewise.
20810 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20812 2014-04-14 Richard Biener <rguenther@suse.de>
20815 * lto-streamer-out.c (wrap_refs): New function.
20816 (lto_output): Wrap symbol references in global initializes in
20817 type-preserving MEM_REFs.
20819 2014-04-14 Christian Bruel <christian.bruel@st.com>
20821 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20823 2014-04-14 Christian Bruel <christian.bruel@st.com>
20825 * config/sh/sh.md (setmemqi): New expand pattern.
20826 * config/sh/sh.h (CLEAR_RATIO): Define.
20827 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20828 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20830 2014-04-14 Richard Biener <rguenther@suse.de>
20832 PR middle-end/55022
20833 * fold-const.c (negate_expr_p): Don't negate directional rounding
20835 (fold_negate_expr): Likewise.
20837 2014-04-14 Richard Biener <rguenther@suse.de>
20839 PR tree-optimization/59817
20840 PR tree-optimization/60453
20841 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20842 recursion to catch all CHRECs in the scalar evolution and restrict
20843 the predicate for the remains appropriately.
20845 2014-04-12 Catherine Moore <clm@codesourcery.com>
20847 * config/mips/constraints.md: Add new register constraint "kb".
20848 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20849 (*movhi_internal): Likewise.
20850 (*movqi_internal): Likewise.
20851 * config/mips/mips.h (M16_STORE_REGS): New register class.
20852 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20853 (REG_CLASS_CONTENTS): Likewise.
20854 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20856 2014-04-11 Tobias Burnus <burnus@net-b.de>
20859 * doc/invoke.texi (-Wformat-signedness): Document it.
20860 (Wformat=2): Mention that this enables -Wformat-signedness.
20862 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20864 * common/config/epiphany/epiphany-common.c
20865 (epiphany_option_optimization_table): Enable section anchors by
20866 default at -O1 or higher.
20867 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20868 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20869 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20870 carries no extra cost.
20871 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20872 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20873 * config/epiphany/predicates.md (memclob_operand): New predicate.
20874 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20875 Use memclob_operand predicate and X constraint for operand 3.
20877 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20879 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20880 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20883 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20885 PR rtl-optimization/60651
20886 * mode-switching.c (optimize_mode_switching): Make sure to emit
20887 sets of a lower numbered entity before sets of a higher numbered
20888 entity to a mode of the same or lower priority.
20889 When creating a seginfo for a basic block that starts with a code
20890 label, move the insertion point past the code label.
20891 (new_seginfo): Document and enforce requirement that
20892 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20893 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20894 * doc/tm.texi: Regenerate.
20896 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20899 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20901 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20903 * BASE-VER: Set to 4.10.0.
20905 2014-04-11 Tobias Burnus <burnus@net-b.de>
20908 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20909 * doc/gcc.texi (Service): Update description in the @menu
20910 * doc/invoke.texi (Option Summary): Remove misplaced and
20913 2014-04-11 Steve Ellcey <sellcey@mips.com>
20914 Jakub Jelinek <jakub@redhat.com>
20916 PR middle-end/60556
20917 * expr.c (convert_move): Use emit_store_flag_force instead of
20918 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20921 2014-04-11 Richard Biener <rguenther@suse.de>
20923 PR middle-end/60797
20924 * varasm.c (assemble_alias): Avoid endless error reporting
20925 recursion by setting TREE_ASM_WRITTEN.
20927 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20929 * config/s390/s390.md: Add a splitter for NOT rtx.
20931 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20933 PR rtl-optimization/60663
20934 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20936 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20937 Jakub Jelinek <jakub@redhat.com>
20940 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20941 flag from decl_node to node.
20943 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20946 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20947 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20948 ameliorating the cases where it can be.
20950 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20953 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20955 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20956 (loadsync_<mode>): Change mode.
20957 (load_quadpti, store_quadpti): New.
20958 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20959 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20960 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20962 2014-04-09 Cong Hou <congh@google.com>
20965 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20968 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20970 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20971 instead of vnor to exploit possible fusion opportunity in the
20973 (altivec_expand_vec_perm_const_le): Likewise.
20975 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20977 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20978 (loadsync_<mode>): Change mode.
20979 (load_quadpti, store_quadpti): New.
20980 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20981 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20983 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20986 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20987 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20988 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20990 2014-04-08 Richard Biener <rguenther@suse.de>
20992 PR middle-end/60706
20993 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20994 a 64bit widest int print double-int similar to on HWI64 hosts.
20996 2014-04-08 Richard Biener <rguenther@suse.de>
20998 PR tree-optimization/60785
20999 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21000 default defs properly.
21002 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21004 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21005 (Weffc++): Likewise.
21007 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21009 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21010 set completep to false rather than true.
21012 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21015 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21016 ARM_TARGET2_DWARF_FORMAT.
21018 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21021 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21022 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21025 2014-04-07 Richard Biener <rguenther@suse.de>
21027 PR tree-optimization/60766
21028 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21029 (may_eliminate_iv): Convert cand_value_at result to desired type.
21031 2014-04-07 Jason Merrill <jason@redhat.com>
21034 * common.opt (-fno-gnu-unique): Add.
21035 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21037 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21039 * haifa-sched.c: Fix outdated function reference and minor
21040 grammar errors in introductory comment.
21042 2014-04-07 Richard Biener <rguenther@suse.de>
21044 PR middle-end/60750
21045 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21046 for noreturn calls.
21047 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21049 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21052 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21053 size accounting for thunks.
21054 (pa_asm_output_mi_thunk): Use final_start_function() and
21055 final_end_function() to output function start and end directives.
21057 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21059 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21060 device specific ISA/ feature information. Remove short_sp and
21061 errata_skip ds. Add avr_device_specific_features enum to have device
21063 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21064 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21065 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21066 updated device specific info.
21067 * config/avr/avr-mcus.def: Merge device specific details to
21068 dev_attribute field.
21069 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21071 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21072 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21073 assembler if RMW isa supported by current device.
21074 * config/avr/genmultilib.awk: Update as device info structure changed.
21075 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21077 2014-04-04 Cong Hou <congh@google.com>
21079 PR tree-optimization/60656
21080 * tree-vect-stmts.c (supportable_widening_operation):
21081 Fix a bug that elements in a vector with vect_used_by_reduction
21082 property are incorrectly reordered when the operation on it is not
21083 consistant with the one in reduction operation.
21085 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21087 PR rtl-optimization/60155
21088 * gcse.c (record_set_data): New function.
21089 (single_set_gcse): New function.
21090 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21091 (hoist_code): Likewise.
21092 (get_pressure_class_and_nregs): Likewise.
21094 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21096 * explow.c (probe_stack_range): Emit a final optimization blockage.
21098 2014-04-04 Anthony Green <green@moxielogic.com>
21100 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21103 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21106 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21107 flags are set only during streaming.
21108 * ipa.c (process_references, walk_polymorphic_call_targets,
21109 symtab_remove_unreachable_nodes): Drop bodies of always inline
21110 after early inlining.
21111 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21113 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21114 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21117 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21120 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21123 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21125 (cortex_a53_fdivd): Likewise.
21127 2014-04-04 Martin Jambor <mjambor@suse.cz>
21130 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21131 Adjust all callers.
21132 * cgraph.c (clone_of_p): Also return true if thunks match.
21133 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21134 cgraph_function_or_thunk_node and an obsolete comment.
21135 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21137 (build_function_decl_skip_args): Likewise.
21138 (set_new_clone_decl_and_node_flags): New function.
21139 (duplicate_thunk_for_node): Likewise.
21140 (redirect_edge_duplicating_thunks): Likewise.
21141 (cgraph_clone_node): New parameter args_to_skip, pass it to
21142 redirect_edge_duplicating_thunks which is called instead of
21143 cgraph_redirect_edge_callee.
21144 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21145 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21147 2014-04-04 Jeff Law <law@redhat.com>
21150 * config/arm/predicates.md (const_int_I_operand): New predicate.
21151 (const_int_M_operand): Similarly.
21152 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21154 (insv_t2, extv_reg, extzv_t2): Likewise.
21155 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21156 (pop_multiple_with_writeback_and_return): Likewise.
21157 (vfp_pop_multiple_with_writeback): Likewise
21159 2014-04-04 Richard Biener <rguenther@suse.de>
21162 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21163 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21165 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21166 * gimplify.c (gimple_add_tmp_var_fn): New function.
21167 * gimple-expr.h (create_tmp_reg_fn): Declare.
21168 * gimple-expr.c (create_tmp_reg_fn): New function.
21169 * gimple-low.c (record_vars_into): Don't change cfun.
21170 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21171 code generation without cfun.
21173 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21176 * Makefile.in (install-driver): Fix shell scripting.
21178 2014-04-03 Cong Hou <congh@google.com>
21180 PR tree-optimization/60505
21181 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21182 threshold of number of iterations below which no vectorization
21184 * tree-vect-loop.c (new_loop_vec_info):
21185 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21186 * tree-vect-loop.c (vect_analyze_loop_operations):
21187 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21188 * tree-vect-loop.c (vect_transform_loop):
21189 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21190 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21191 of iterations of the loop and see if we should build the epilogue.
21193 2014-04-03 Richard Biener <rguenther@suse.de>
21195 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21196 (streamer_tree_cache_create): Adjust.
21197 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21198 to allow optional nodes array.
21199 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21200 (streamer_tree_cache_append): Likewise.
21201 (streamer_tree_cache_create): Create nodes array optionally
21202 as specified by parameter.
21203 * lto-streamer-out.c (create_output_block): Avoid maintaining
21204 the node array in the writer cache.
21205 (DFS_write_tree): Remove assertion.
21206 (produce_asm_for_decls): Free the out decl state hash table early.
21207 * lto-streamer-in.c (lto_data_in_create): Adjust for
21208 streamer_tree_cache_create prototype change.
21210 2014-04-03 Richard Biener <rguenther@suse.de>
21212 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21213 set TREE_CHAIN to NULL_TREE.
21215 2014-04-03 Richard Biener <rguenther@suse.de>
21217 PR tree-optimization/60740
21218 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21219 over all GIMPLE_COND operands.
21221 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21223 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21224 (Weffc++): Remove Scott's numbering, merge lists and reference
21227 2014-04-03 Nick Clifton <nickc@redhat.com>
21229 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21232 2014-04-03 Martin Jambor <mjambor@suse.cz>
21234 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21235 mention gcc_unreachable before failing.
21236 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21239 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21242 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21243 inconsistent code and instead mark the context inconsistent.
21244 (possible_polymorphic_call_targets): For inconsistent contexts
21245 return empty complete list.
21247 2014-04-02 Anthony Green <green@moxielogic.com>
21249 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21250 (extendqisi2, extendhisi2): Define.
21251 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21252 (WCHAR_TYPE): Change to unsigned int.
21254 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21256 PR tree-optimization/60733
21257 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21258 insertion point for PHI candidates to be the end of the feeding
21259 block for the PHI argument.
21261 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21263 PR rtl-optimization/60650
21264 * lra-constraints.c (process_alt_operands): Decrease reject for
21265 earlyclobber matching.
21267 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21269 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21271 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21273 * config/spu/spu.c (pad_bb): Do not crash when the last
21274 insn is CODE_FOR_blockage.
21276 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21278 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21279 lies outside the target mode.
21281 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21284 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21285 software floating point or no floating point registers, do not
21286 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21287 in GPRs that occurs after we tested for GPRs that would never be
21290 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21291 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21292 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21293 specifically allow DDmode, since that does not use the SPE SIMD
21296 2014-04-02 Richard Biener <rguenther@suse.de>
21298 PR middle-end/60729
21299 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21300 MODE_INTs. Properly use negv_optab.
21301 (expand_abs): Likewise.
21303 2014-04-02 Richard Biener <rguenther@suse.de>
21306 * Makefile.in (install-driver): Guard extra installs with special
21309 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21311 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21312 Document vec_vgbbd.
21314 2014-04-01 Richard Henderson <rth@redhat.com>
21317 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21318 alternative enabled before register allocation.
21320 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21322 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21323 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21325 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21326 (nios2_got_address): Update nios2_large_got_address call site.
21327 (nios2_delegitimize_address): New function.
21328 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21329 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21330 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21332 2014-04-01 Martin Husemann <martin@duskware.de>
21334 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21337 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21339 PR rtl-optimization/60604
21340 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21341 check from register_operand.
21342 (register_operand): Redefine in terms of general_operand.
21343 (nonmemory_operand): Use register_operand for the non-constant cases.
21345 2014-04-01 Richard Biener <rguenther@suse.de>
21347 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21349 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21351 * doc/invoke.texi (mapp-regs): Clarify.
21353 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21355 * config/i386/avx512fintrin.h (__v32hi): Define type.
21356 (__v64qi): Likewise.
21357 (_mm512_set1_epi8): Define.
21358 (_mm512_set1_epi16): Define.
21359 (_mm512_set4_epi32): Define.
21360 (_mm512_set4_epi64): Define.
21361 (_mm512_set4_pd): Define.
21362 (_mm512_set4_ps): Define.
21363 (_mm512_setr4_epi64): Define.
21364 (_mm512_setr4_epi32): Define.
21365 (_mm512_setr4_pd): Define.
21366 (_mm512_setr4_ps): Define.
21367 (_mm512_setzero_epi32): Define.
21369 2014-03-31 Martin Jambor <mjambor@suse.cz>
21371 PR middle-end/60647
21372 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21373 callsite_arguments_match_p. Updated all callers. Also check types of
21374 corresponding formal parameters and actual arguments.
21375 (not_all_callers_have_enough_arguments_p) Renamed to
21376 some_callers_have_mismatched_arguments_p.
21378 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21380 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21382 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21385 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21388 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21390 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21391 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21393 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21394 Use FMAMODE_NOVF512 mode iterator.
21395 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21396 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21397 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21398 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21400 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21401 Use VF_128_256 mode iterator.
21402 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21405 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21407 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21408 static chain if needed.
21410 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21413 * lra-constraints.c (index_part_to_reg): New.
21414 (process_address): Use it.
21416 2014-03-27 Jeff Law <law@redhat.com>
21417 Jakub Jelinek <jakub@redhat.com>
21420 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21421 gen_rtx_{PLUS,MULT} to build up the address expression.
21423 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21424 creating non-canonical RTL.
21426 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21429 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21430 functions; reorganize to make cheap checks first.
21431 (inline_small_functions): Do not estimate growth when dumping;
21433 * ipa-inline.h (inline_summary): Add min_size.
21434 (growth_likely_positive): New function.
21435 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21436 (set_cond_stmt_execution_predicate): Cleanup.
21437 (estimate_edge_size_and_time): Compute min_size.
21438 (estimate_calls_size_and_time): Likewise.
21439 (estimate_node_size_and_time): Likewise.
21440 (inline_update_overall_summary): Update min_size.
21441 (do_estimate_edge_time): Likewise.
21442 (do_estimate_edge_size): Update.
21443 (do_estimate_edge_hints): Update.
21444 (growth_likely_positive): New function.
21446 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21449 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21450 also if addr has VOIDmode.
21452 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21454 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21455 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21457 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21458 instructions as well as AdvancedSIMD loads.
21460 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21462 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21463 Use crypto_aese type.
21464 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21465 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21466 crypto_aese, crypto_aesmc. Move to types.md.
21467 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21469 * config/arm/iterators.md (crypto_type): Likewise.
21471 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21473 * cgraph.c: Include expr.h and tree-dfa.h.
21474 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21477 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21480 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21481 regs from checking multi-reg pseudos.
21483 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21485 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21487 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21489 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21490 if it would clobber the stack pointer, even temporarily.
21492 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21494 * mode-switching.c: Make small adjustments to the top comment.
21496 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21498 * config/rs6000/constraints.md (wD constraint): New constraint to
21499 match the constant integer to get the top DImode/DFmode out of a
21500 vector in a VSX register.
21502 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21503 match the constant integer to get the top DImode/DFmode out of a
21504 vector in a VSX register.
21506 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21509 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21512 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21513 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21515 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21516 Optimize vec_extract of 64-bit values, where the value being
21517 extracted is in the top word, where we can use scalar
21518 instructions. Add direct move and store support. Combine the big
21519 endian/little endian vector select load support into a single insn.
21520 (vsx_extract_<mode>_internal1): Likewise.
21521 (vsx_extract_<mode>_internal2): Likewise.
21522 (vsx_extract_<mode>_load): Likewise.
21523 (vsx_extract_<mode>_store): Likewise.
21524 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21525 combined into vsx_extract_<mode>_load.
21526 (vsx_extract_<mode>_one_le): Likewise.
21528 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21529 define the top 64-bit vector element.
21531 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21534 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21535 Document vec_vbpermq builtin.
21538 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21539 enable use of xxsldwi and xxpermdi builtin functions.
21540 (vec_xxpermdi): Likewise.
21542 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21543 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21545 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21547 PR rtl-optimization/60650
21548 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21550 (find_spills_for): New.
21551 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21552 Spill all pseudos on the second iteration.
21554 2014-03-27 Marek Polacek <polacek@redhat.com>
21557 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21560 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21562 * config/s390/s390.c (s390_can_use_return_insn): Check for
21563 call-saved FPRs on 31 bit.
21565 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21567 PR middle-end/60682
21568 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21569 if they need regimplification, just drop them instead of
21570 calling gimple_regimplify_operands on them.
21572 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21575 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21576 (aarch64_frame_pointer_required): Adjust logic.
21577 (aarch64_can_eliminate): Adjust logic.
21578 (aarch64_override_options_after_change): Adjust logic.
21580 2014-03-27 Dehao Chen <dehao@google.com>
21582 * ipa-inline.c (early_inliner): Update node's inline info.
21584 2014-03-26 Dehao Chen <dehao@google.com>
21586 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21587 compiler inserted conditional jumps for NAN float check.
21589 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21591 * ubsan.h (ubsan_create_data): Change second argument's type
21592 to const location_t *.
21593 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21595 (ubsan_create_data): Change second argument to const location_t *PLOC.
21596 Create Loc field whenever PLOC is non-NULL.
21597 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21598 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21602 * real.c (real_to_integer2): Change type of low to UHWI.
21604 2014-03-26 Tobias Burnus <burnus@net-b.de>
21606 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21607 (CILK_SELF_SPECS): New define.
21608 (driver_self_specs): Use it.
21610 2014-03-26 Richard Biener <rguenther@suse.de>
21612 * tree-pretty-print.c (percent_K_format): Implement special
21613 case for LTO and its stripped down BLOCK tree.
21615 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21618 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21620 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21621 one range is range_int_cst_p, but not both, at least optimize
21622 addition/subtraction of 0 and multiplication by 0 or 1.
21623 * gimple-fold.c (gimple_fold_call): Fold
21624 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21625 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21626 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21628 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21630 PR rtl-optimization/60452
21631 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21632 <case REG>: Return 1 for invalid offsets from the frame pointer.
21634 2014-03-26 Marek Polacek <polacek@redhat.com>
21637 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21640 2014-03-26 Marek Polacek <polacek@redhat.com>
21643 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21646 2014-03-26 Marek Polacek <polacek@redhat.com>
21649 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21650 multiplication in unsigned type.
21652 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21654 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21656 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21658 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21660 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21663 * cif-code.def (UNREACHABLE) New code.
21664 * ipa-inline.c (inline_small_functions): Skip edges to
21665 __builtlin_unreachable.
21666 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21667 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21668 predicate to __bulitin_unreachable.
21669 (set_cond_stmt_execution_predicate): Fix issue when
21670 invert_tree_comparison returns ERROR_MARK.
21671 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21672 propagate to inline clones.
21673 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21675 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21676 * cgraphclones.c (cgraph_clone_node): If call destination is already
21677 ureachable, do not redirect it back.
21678 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21681 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21683 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21684 Do not modify inline clones.
21686 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21688 * config/i386/i386.md (general_sext_operand): New mode attr.
21689 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21690 don't generate (sign_extend (const_int)).
21691 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21692 operands[2]. Use We constraint instead of <i> and
21693 <general_sext_operand> predicate instead of <general_operand>.
21694 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21695 * config/i386/constraints.md (We): New constraint.
21696 * config/i386/predicates.md (x86_64_sext_operand,
21697 sext_operand): New predicates.
21699 2014-03-25 Martin Jambor <mjambor@suse.cz>
21702 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21703 inconsistent devirtualizations to __builtin_unreachable.
21705 2014-03-25 Marek Polacek <polacek@redhat.com>
21708 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21710 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21712 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21713 order of elements for big-endian.
21715 2014-03-25 Richard Biener <rguenther@suse.de>
21717 PR middle-end/60635
21718 * gimplify-me.c (gimple_regimplify_operands): Update the
21721 2014-03-25 Martin Jambor <mjambor@suse.cz>
21724 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21725 (lto_output_varpool_node): Likewise.
21726 (input_overwrite_node): Likewise.
21727 (input_varpool_node): Likewise.
21729 2014-03-25 Richard Biener <rguenther@suse.de>
21731 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21732 (run_gcc): Likewise.
21734 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21736 * combine.c (simplify_compare_const): Add MODE argument.
21737 Handle mode_width 0 as very large mode_width.
21738 (try_combine, simplify_comparison): Adjust callers.
21740 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21741 type to avoid signed integer overflow.
21742 * explow.c (plus_constant): Likewise.
21744 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21746 * doc/generic.texi: Correct typos.
21748 2014-03-24 Tobias Burnus <burnus@net-b.de>
21750 * doc/invoke.texi (-flto): Expand section about
21751 using static libraries with LTO.
21753 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21755 PR rtl-optimization/60501
21756 * optabs.def (addptr3_optab): New optab.
21757 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21758 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21759 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21761 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21763 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21765 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21767 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21770 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21771 (_mm256_undefined_ps): Define.
21772 (_mm256_undefined_pd): Define.
21773 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21774 (_mm_undefined_pd): Define.
21775 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21776 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21777 (_mm512_undefined_ps): Define.
21778 (_mm512_undefined_pd): Define.
21779 Use _mm*_undefined_*.
21780 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21782 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21784 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21785 (lshr_simd): DI mode added.
21786 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21787 (aarch64_ushr_simddi): Likewise.
21788 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21789 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21790 (vshrd_n_u64): Likewise.
21792 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21794 * Makefile.in (s-macro_list): Depend on cc1.
21796 2014-03-23 Teresa Johnson <tejohnson@google.com>
21798 * ipa-utils.c (ipa_print_order): Use specified dump file.
21800 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21802 PR rtl-optimization/60601
21803 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21805 * gcc.c (eval_spec_function): Initialize save_growing_value.
21807 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21810 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21811 code == MINUS_EXPR, never swap op0 with op1.
21813 * toplev.c (init_local_tick): Avoid signed integer multiplication
21815 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21816 shift by first operand's bitsize.
21818 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21821 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21822 redefine to 1 or 0.
21823 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21824 TARGET_ISA_64BIT_P(x).
21826 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21828 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21829 pattern for vector nor instead of subtract from splat(-1).
21830 (altivec_expand_vec_perm_const_le): Likewise.
21832 2014-03-21 Richard Henderson <rth@twiddle.net>
21835 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21836 related insns after epilogue_completed.
21838 2014-03-21 Martin Jambor <mjambor@suse.cz>
21841 * cgraph.h (symtab_node): New flag body_removed.
21842 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21843 when removing bodies.
21844 * symtab.c (dump_symtab_base): Dump body_removed flag.
21845 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21846 had their bodies removed.
21848 2014-03-21 Martin Jambor <mjambor@suse.cz>
21851 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21854 2014-03-21 Richard Biener <rguenther@suse.de>
21856 PR tree-optimization/60577
21857 * tree-core.h (struct tree_base): Document nothrow_flag use
21858 in DECL_NONALIASED.
21859 * tree.h (DECL_NONALIASED): New.
21860 (may_be_aliased): Adjust.
21861 * coverage.c (build_var): Set DECL_NONALIASED.
21863 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21865 * expr.c (expand_expr_real_1): Remove outdated comment.
21867 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21869 PR middle-end/60597
21870 * ira.c (adjust_cleared_regs): Call copy_rtx on
21871 *reg_equiv[REGNO (loc)].src_p before passing it to
21872 simplify_replace_fn_rtx.
21875 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21876 into CONST, put pic register as first operand of PLUS. Use
21877 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21879 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21881 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21883 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21885 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21886 around for store forwarding issue in the FPU on the UT699.
21887 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21888 loads and operations if -mfix-ut699 is specified.
21889 (divtf3_hq): Tweak attribute.
21890 (sqrttf2_hq): Likewise.
21892 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21894 * calls.c (store_one_arg): Remove incorrect const qualification on the
21895 type of the temporary.
21896 * cfgexpand.c (expand_return): Likewise.
21897 * expr.c (expand_constructor): Likewise.
21898 (expand_expr_real_1): Likewise.
21900 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21902 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21905 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21908 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21910 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21912 * config/arm/aarch-common-protos.h
21913 (alu_cost_table): Fix spelling of "extend".
21914 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21916 2014-03-19 Richard Biener <rguenther@suse.de>
21918 PR middle-end/60553
21919 * tree-core.h (tree_type_common): Re-order pointer members
21920 to reduce recursion depth during GC walks.
21922 2014-03-19 Marek Polacek <polacek@redhat.com>
21925 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21926 before accessing it.
21928 2014-03-19 Richard Biener <rguenther@suse.de>
21931 * lto-streamer-in.c (input_function): In WPA stage do not drop
21934 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21936 PR tree-optimization/60559
21937 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21938 with build_zero_cst assignment.
21940 2014-03-18 Kai Tietz <ktietz@redhat.com>
21942 PR rtl-optimization/56356
21943 * sdbout.c (sdbout_parms): Verify that parms'
21944 incoming argument is valid.
21945 (sdbout_reg_parms): Likewise.
21947 2014-03-18 Richard Henderson <rth@redhat.com>
21950 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21951 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21952 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21954 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21956 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21957 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21958 Italicize plugin event names in description. Explain that
21959 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21960 Remind that no GCC functions should be called after PLUGIN_FINISH.
21961 Explain what pragmas with expansion are.
21963 2014-03-18 Martin Liska <mliska@suse.cz>
21965 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21966 gimple call statement is update.
21967 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21968 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21970 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21973 * ubsan.c (ubsan_instrument_unreachable): Call
21974 initialize_sanitizer_builtins.
21975 (ubsan_pass): Likewise.
21978 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21979 varpool_finalize_decl instead of rest_of_decl_compilation.
21981 2014-03-18 Richard Biener <rguenther@suse.de>
21983 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21984 by using bitmap_and_compl instead of bitmap_and_compl_into.
21985 (df_rd_transfer_function): Likewise.
21987 2014-03-18 Richard Biener <rguenther@suse.de>
21989 * doc/lto.texi (fresolution): Fix typo.
21991 2014-03-18 Richard Biener <rguenther@suse.de>
21993 * doc/invoke.texi (flto): Update for changes in 4.9.
21995 2014-03-18 Richard Biener <rguenther@suse.de>
21997 * doc/loop.texi: Remove section on the removed lambda framework.
21998 Update loop docs with recent changes in preserving loop structure.
22000 2014-03-18 Richard Biener <rguenther@suse.de>
22002 * doc/lto.texi (-fresolution): Document.
22004 2014-03-18 Richard Biener <rguenther@suse.de>
22006 * doc/contrib.texi: Adjust my name.
22008 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22011 * internal-fn.c: Include diagnostic-core.h.
22012 (expand_BUILTIN_EXPECT): New function.
22013 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22014 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22015 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22016 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22017 IFN_BUILTIN_EXPECT.
22018 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22019 Revert 3 argument __builtin_expect code.
22020 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22021 * gimple-fold.c (gimple_fold_call): Likewise.
22022 * tree.h (fold_builtin_expect): New prototype.
22023 * builtins.c (build_builtin_expect_predicate): Add predictor
22024 argument, if non-NULL, create 3 argument __builtin_expect.
22025 (fold_builtin_expect): No longer static. Add ARG2 argument,
22026 pass it through to build_builtin_expect_predicate.
22027 (fold_builtin_2): Adjust caller.
22028 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22029 * internal-fn.def (BUILTIN_EXPECT): New.
22031 2014-03-18 Tobias Burnus <burnus@net-b.de>
22034 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22035 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22036 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22038 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22041 * predict.c (combine_predictions_for_bb): Fix up formatting.
22042 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22043 fill what it points to if non-NULL.
22044 (tree_predict_by_opcode): Adjust caller, use the predictor.
22045 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22047 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22049 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22050 proper constant for the store mode.
22052 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22054 * symtab.c (change_decl_assembler_name): Fix transparent alias
22055 chain construction.
22057 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22059 * config/aarch64/aarch64.c: Correct the comments about the
22060 aarch64 stack layout.
22062 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22064 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22065 check for GF_OMP_FOR_KIND_FOR.
22067 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22069 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22070 ymm and zmm register names.
22072 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22075 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22076 note creation for the 2010-08-31 changes.
22078 2014-03-17 Marek Polacek <polacek@redhat.com>
22080 PR middle-end/60534
22081 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22082 as -fno-tree-loop-vectorize.
22083 (expand_omp_simd): Likewise.
22085 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22087 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22088 (eligible_for_call_delay): New prototype.
22089 * config/sparc/sparc.c (tls_call_delay): Rename into...
22090 (eligible_for_call_delay): ...this. Return false if the instruction
22091 cannot be put in the delay slot of a branch.
22092 (eligible_for_restore_insn): Simplify.
22093 (eligible_for_return_delay): Return false if the instruction cannot be
22094 put in the delay slot of a branch and simplify.
22095 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22096 put in the delay slot of a branch.
22097 * config/sparc/sparc.md (fix_ut699): New attribute.
22098 (tls_call_delay): Delete.
22099 (in_call_delay): Reimplement.
22100 (eligible_for_sibcall_delay): Rename into...
22101 (in_sibcall_delay): ...this.
22102 (eligible_for_return_delay): Rename into...
22103 (in_return_delay): ...this.
22104 (in_branch_delay): Reimplement.
22105 (in_uncond_branch_delay): Delete.
22106 (in_annul_branch_delay): Delete.
22108 2014-03-14 Richard Henderson <rth@redhat.com>
22111 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22112 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22113 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22114 (floathi splitters): Remove.
22115 (float<SWI48x>xf2): New pattern.
22116 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22117 code that tried to handle DImode for 32-bit, but which was excluded
22118 by the pattern's condition. Drop allocation of stack temporary.
22119 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22120 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22121 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22122 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22123 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22124 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22125 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22126 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22127 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22128 (*float<SWI48x><X87MODEF>2_i387): Remove.
22129 (all float _with_temp splitters): Remove.
22130 (*float<SWI48x><MODEF>2_i387): New pattern.
22131 (*float<SWI48><MODEF>2_sse): New pattern.
22132 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22133 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22135 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22136 Marek Polacek <polacek@redhat.com>
22138 PR middle-end/60484
22139 * common.opt (dump_base_name_prefixed): New Variable.
22140 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22141 if x_dump_base_name_prefixed is already set, set it at the end.
22143 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22145 PR rtl-optimization/60508
22146 * lra-constraints.c (get_reload_reg): Add new parameter
22148 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22149 Pass the new parameter values.
22151 2014-03-14 Richard Biener <rguenther@suse.de>
22153 * common.opt: Revert unintented changes from r205065.
22154 * opts.c: Likewise.
22156 2014-03-14 Richard Biener <rguenther@suse.de>
22158 PR middle-end/60518
22159 * cfghooks.c (split_block): Properly adjust all loops the
22160 block was a latch of.
22162 2014-03-14 Martin Jambor <mjambor@suse.cz>
22165 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22168 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22171 * config/avr/avr.c (avr_set_current_function): Pass function name
22172 through default_strip_name_encoding before sanity checking instead
22173 of skipping the first char of the assembler name.
22175 2014-03-13 Richard Henderson <rth@redhat.com>
22178 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22179 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22180 * config/i386/i386-protos.h: Likewise.
22181 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22182 in the expander instead of a splitter.
22183 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22184 any possibility of requiring a memory.
22185 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22186 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22187 (fp branch splitters): Update for ix86_split_fp_branch.
22188 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22189 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22190 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22191 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22192 (*fop_<MODEF>_3_i387): Likewise.
22193 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22194 (splitters for the fop_* register patterns): Remove.
22195 (fscalexf4_i387): Rename from *fscalexf4_i387.
22196 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22198 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22200 PR tree-optimization/59779
22201 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22202 type for bitsize and maxsize instead of HOST_WIDE_INT.
22204 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22206 PR rtl-optimization/57320
22207 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22208 the CFG after thread_prologue_and_epilogue_insns.
22210 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22212 PR rtl-optimization/57189
22213 * lra-constraints.c (process_alt_operands): Disfavor spilling
22216 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22218 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22220 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22222 PR tree-optimization/59025
22223 PR middle-end/60418
22224 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22225 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22227 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22230 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22231 calls of avr_out_plus_1.
22233 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22235 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22236 BB's single pred and update the father loop's latch info later.
22238 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22240 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22244 (VEC_base): Likewise.
22245 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22246 registers, we need to swap double words in little endian mode.
22248 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22249 to be a container mode for 128-bit integer operations added in ISA
22250 2.07. Unlike TImode and PTImode, the preferred register set is
22251 the Altivec/VMX registers for the 128-bit operations.
22253 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22255 (rs6000_split_128bit_ok_p): Likewise.
22257 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22258 macros for creating ISA 2.07 normal and overloaded builtin
22259 functions with 3 arguments.
22260 (BU_P8V_OVERLOAD_3): Likewise.
22261 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22262 for use as overloaded functions.
22263 (VPERM_1TI_UNS): Likewise.
22264 (VSEL_1TI): Likewise.
22265 (VSEL_1TI_UNS): Likewise.
22266 (ST_INTERNAL_1ti): Likewise.
22267 (LD_INTERNAL_1ti): Likewise.
22268 (XXSEL_1TI): Likewise.
22269 (XXSEL_1TI_UNS): Likewise.
22270 (VPERM_1TI): Likewise.
22271 (VPERM_1TI_UNS): Likewise.
22272 (XXPERMDI_1TI): Likewise.
22273 (SET_1TI): Likewise.
22274 (LXVD2X_V1TI): Likewise.
22275 (STXVD2X_V1TI): Likewise.
22276 (VEC_INIT_V1TI): Likewise.
22277 (VEC_SET_V1TI): Likewise.
22278 (VEC_EXT_V1TI): Likewise.
22279 (EQV_V1TI): Likewise.
22280 (NAND_V1TI): Likewise.
22281 (ORC_V1TI): Likewise.
22282 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22283 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22284 overloaded builtin.
22285 (VADDUQM): Likewise.
22286 (VSUBCUQ): Likewise.
22287 (VADDEUQM): Likewise.
22288 (VADDECUQ): Likewise.
22289 (VSUBEUQM): Likewise.
22290 (VSUBECUQ): Likewise.
22292 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22293 __int128_t and __uint128_t types.
22294 (__uint128_type): Likewise.
22295 (altivec_categorize_keyword): Add support for vector __int128_t,
22296 vector __uint128_t, vector __int128, and vector unsigned __int128
22297 as a container type for TImode operations that need to be done in
22298 VSX/Altivec registers.
22299 (rs6000_macro_to_expand): Likewise.
22300 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22301 to support 128-bit integer instructions vaddcuq, vadduqm,
22302 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22303 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22305 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22306 for V1TImode, and set up preferences to use VSX/Altivec registers.
22307 Setup VSX reload handlers.
22308 (rs6000_debug_reg_global): Likewise.
22309 (rs6000_init_hard_regno_mode_ok): Likewise.
22310 (rs6000_preferred_simd_mode): Likewise.
22311 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22312 (easy_altivec_constant): Likewise.
22313 (output_vec_const_move): Likewise.
22314 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22316 (rs6000_expand_vector_extract): Likewise.
22317 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22319 (rs6000_const_vec): Add support for V1TImode.
22320 (rs6000_emit_le_vsx_load): Swap double words when loading or
22321 storing TImode/V1TImode.
22322 (rs6000_emit_le_vsx_store): Likewise.
22323 (rs6000_emit_le_vsx_move): Likewise.
22324 (rs6000_emit_move): Add support for V1TImode.
22325 (altivec_expand_ld_builtin): Likewise.
22326 (altivec_expand_st_builtin): Likewise.
22327 (altivec_expand_vec_init_builtin): Likewise.
22328 (altivec_expand_builtin): Likewise.
22329 (rs6000_init_builtins): Add support for V1TImode type. Add
22330 support for ISA 2.07 128-bit integer builtins. Define type names
22331 for the VSX/Altivec vector types.
22332 (altivec_init_builtins): Add support for overloaded vector
22333 functions with V1TImode type.
22334 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22335 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22337 (rs6000_split_128bit_ok_p): Likewise.
22338 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22339 __int128_t and vector __uint128_t.
22341 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22342 and mode attributes.
22344 (VSX_M2): Likewise.
22349 (VS_scalar): Likewise.
22350 (VS_double): Likewise.
22351 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22353 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22354 we support the ISA 2.07 128-bit integer arithmetic instructions.
22355 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22356 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22357 and TImode types for use with the builtin functions.
22358 (V1TI_type_node): Likewise.
22359 (unsigned_V1TI_type_node): Likewise.
22360 (intTI_type_internal_node): Likewise.
22361 (uintTI_type_internal_node): Likewise.
22363 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22364 128-bit builtin functions.
22365 (UNSPEC_VADDEUQM): Likewise.
22366 (UNSPEC_VADDECUQ): Likewise.
22367 (UNSPEC_VSUBCUQ): Likewise.
22368 (UNSPEC_VSUBEUQM): Likewise.
22369 (UNSPEC_VSUBECUQ): Likewise.
22370 (VM): Add V1TImode to vector mode iterators.
22372 (VI_unit): Likewise.
22373 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22374 (altivec_vaddcuq): Likewise.
22375 (altivec_vsubuqm): Likewise.
22376 (altivec_vsubcuq): Likewise.
22377 (altivec_vaddeuqm): Likewise.
22378 (altivec_vaddecuq): Likewise.
22379 (altivec_vsubeuqm): Likewise.
22380 (altivec_vsubecuq): Likewise.
22382 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22384 (BOOL_128): Likewise.
22385 (BOOL_REGS_OUTPUT): Likewise.
22386 (BOOL_REGS_OP1): Likewise.
22387 (BOOL_REGS_OP2): Likewise.
22388 (BOOL_REGS_UNARY): Likewise.
22389 (BOOL_REGS_AND_CR0): Likewise.
22391 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22392 128-bit integer builtin support.
22393 (vec_vadduqm): Likewise.
22394 (vec_vaddecuq): Likewise.
22395 (vec_vaddeuqm): Likewise.
22396 (vec_vsubecuq): Likewise.
22397 (vec_vsubeuqm): Likewise.
22398 (vec_vsubcuq): Likewise.
22399 (vec_vsubuqm): Likewise.
22401 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22402 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22403 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22404 128-bit integer add/subtract to ISA 2.07.
22406 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22408 * config/arc/arc.c (arc_predicate_delay_insns):
22409 Fix third argument passed to conditionalize_nonjump.
22411 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22413 * config/aarch64/aarch64-builtins.c
22414 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22415 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22416 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22417 instead of __builtin_lfloor.
22418 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22420 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22422 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22423 (tree_ssa_ifcombine_bb_1): New function.
22424 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22425 is an empty forwarder block to then_bb or vice versa and then_bb
22426 and else_bb are effectively swapped.
22428 2014-03-12 Christian Bruel <christian.bruel@st.com>
22431 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22432 REG_CFA_DEF_CFA note.
22433 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22434 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22436 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22438 PR tree-optimization/60454
22439 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22441 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22443 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22444 Do not define target_cpu_default2 to generic.
22445 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22446 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22447 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22449 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22450 Marc Glisse <marc.glisse@inria.fr>
22452 PR tree-optimization/60502
22453 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22454 instead of build_low_bits_mask.
22456 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22458 PR middle-end/60482
22459 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22460 if there are multiple uses, but op doesn't live on E edge.
22461 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22462 clobber stmts before __builtin_unreachable.
22464 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22466 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22467 hard_frame_pointer_rtx.
22468 * cse.c (cse_insn): Remove volatile check.
22469 * cselib.c (cselib_process_insn): Likewise.
22470 * dse.c (scan_insn): Likewise.
22472 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22474 * config/arc/arc.c (conditionalize_nonjump): New function,
22476 (arc_ifcvt): ... this.
22477 (arc_predicate_delay_insns): Use it.
22479 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22481 * config/arc/predicates.md (extend_operand): During/after reload,
22482 allow const_int_operand.
22483 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22484 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22485 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22487 (umulsi3_highpart_i): Likewise.
22489 2014-03-11 Richard Biener <rguenther@suse.de>
22491 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22492 Add asserts to guard possible wrong-code bugs.
22494 2014-03-11 Richard Biener <rguenther@suse.de>
22496 PR tree-optimization/60429
22497 PR tree-optimization/60485
22498 * tree-ssa-structalias.c (set_union_with_increment): Properly
22499 take into account all fields that overlap the shifted vars.
22500 (do_sd_constraint): Likewise.
22501 (do_ds_constraint): Likewise.
22502 (get_constraint_for_ptr_offset): Likewise.
22504 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22506 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22507 (nios2_compute_frame_layout):
22508 Add calculation of cfun->machine->fp_save_offset.
22509 (nios2_expand_prologue): Correct setting of frame pointer register
22511 (nios2_expand_epilogue): Update recovery of stack pointer from
22512 frame pointer accordingly.
22513 (nios2_initial_elimination_offset): Update calculation of offset
22514 for eliminating to HARD_FRAME_POINTER_REGNUM.
22516 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22519 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22520 cgraph_get_create_node on VAR_DECLs.
22522 2014-03-10 Richard Biener <rguenther@suse.de>
22524 PR middle-end/60474
22525 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22527 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22529 * config/vms/vms.opt (vms_float_format): New variable.
22531 2014-03-08 Tobias Burnus <burnus@net-b.de>
22533 * doc/invoke.texi (-fcilkplus): Update implementation status.
22535 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22536 Richard Biener <rguenther@suse.de>
22538 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22539 consistently accross all TUs.
22540 (run_gcc): Enable -fshort-double automatically at link at link-time
22541 and disallow override.
22543 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22546 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22547 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22548 if they can't be used.
22550 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22552 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22553 for Solaris 11/x86 ld.
22554 * configure: Regenerate.
22556 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22558 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22559 (LIB_TLS_SPEC): Save as ld_tls_libs.
22560 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22561 (HAVE_AS_IX86_TLSLDM): New test.
22562 * configure, config.in: Regenerate.
22563 * config/i386/i386.c (legitimize_tls_address): Fall back to
22564 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22565 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22566 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22567 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22569 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22571 * common.opt (fira-loop-pressure): Mark as optimization.
22573 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22575 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22576 an OpenMP mappable type.
22578 2014-03-06 Matthias Klose <doko@ubuntu.com>
22580 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22581 MULTILIB_OSDIRNAMES is not defined.
22583 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22584 Meador Inge <meadori@codesourcery.com>
22587 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22588 (arm_legitimize_address): Call legitimize_tls_address for any
22589 arm_tls_referenced_p expression, handle constant addend. Call it
22590 before testing for !TARGET_ARM.
22591 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22593 2014-03-06 Richard Biener <rguenther@suse.de>
22595 PR middle-end/60445
22599 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22601 * tree-streamer.c (record_common_node): Assert we don't record
22602 nodes with type double.
22603 (preload_common_node): Skip type double, complex double and double
22604 pointer since it is now frontend dependent due to fshort-double option.
22606 2014-03-06 Richard Biener <rguenther@suse.de>
22608 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22609 or -fno-lto is specified and the linker has full plugin support.
22610 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22611 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22612 * lto-wrapper.c (merge_and_complain): Merge compile-time
22613 optimization levels.
22614 (run_gcc): And pass it through to the link options.
22616 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22620 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22622 * cselib.c (remove_useless_values): Skip to avoid quadratic
22623 behavior if the condition moved from...
22624 (cselib_process_insn): ... here holds.
22626 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22629 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22630 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22633 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22634 (TM_H): Add x86-tune.def.
22636 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22638 * config/aarch64/aarch64.c (generic_tunings):
22639 Use cortexa57_extra_costs.
22641 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22644 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22645 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22646 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22649 2014-03-04 Heiher <r@hev.cc>
22651 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22652 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22654 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22656 * config/i386/predicates.md (const2356_operand): Change to ...
22657 (const2367_operand): ... this.
22658 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22660 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22661 (*avx512pf_scatterpf<mode>sf): Ditto.
22662 (avx512pf_scatterpf<mode>df): Ditto.
22663 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22664 (*avx512pf_scatterpf<mode>df): Ditto.
22665 * config/i386/i386.c (ix86_expand_builtin): Update
22666 incorrect hint operand error message.
22668 2014-03-04 Richard Biener <rguenther@suse.de>
22670 * lto-section-in.c (lto_get_section_data): Fix const cast.
22672 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22674 * tree-streamer.c (record_common_node): Assert we don't record
22675 nodes with type double.
22676 (preload_common_node): Skip type double, complex double and double
22677 pointer since it is now frontend dependent due to fshort-double option.
22679 2014-03-04 Richard Biener <rguenther@suse.de>
22682 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22683 (lto_input_toplevel_asms): Likewise.
22684 * lto-section-in.c (lto_get_section_data): Instead do it here
22687 2014-03-04 Richard Biener <rguenther@suse.de>
22689 PR tree-optimization/60382
22690 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22691 dead PHIs a reduction.
22693 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22695 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22697 (_mm_prefetch): Move out of GCC target("sse") pragma.
22698 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22699 GCC target("prfchw") pragma.
22700 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22702 * config/i386/i386.c (ix86_option_override_internal): Enable
22703 -mprfchw with -mprefetchwt1.
22705 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22707 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22710 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22712 * opts.h (CL_PCH_IGNORE): Define.
22713 * targhooks.c (option_affects_pch_p):
22714 Return false for options that have CL_PCH_IGNORE set.
22715 * opt-functions.awk: Process PchIgnore.
22716 * doc/options.texi: Document PchIgnore.
22718 * config/arc/arc.opt (misize): Add PchIgnore property.
22720 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22722 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22723 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22724 constraint on constants to permit them being loaded into
22725 GENERAL_REGS or BASE_REGS.
22727 2014-03-03 Nick Clifton <nickc@redhat.com>
22729 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22730 anti-cacnonical alternatives.
22731 (negandhi3_real): New pattern.
22732 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22734 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22736 * config/avr/avr-mcus.def: Remove atxmega16x1.
22737 * config/avr/avr-tables.opt: Regenerate.
22738 * config/avr/t-multilib: Regenerate.
22739 * doc/avr-mmcu.texi: Regenerate.
22741 2014-03-03 Tobias Grosser <tobias@grosser.es>
22742 Mircea Namolaru <mircea.namolaru@inria.fr>
22744 PR tree-optimization/58028
22745 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22748 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22750 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22751 not handled by recognizers.
22753 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22755 PR middle-end/60175
22756 * function.c (expand_function_end): Don't emit
22757 clobber_return_register sequence if clobber_after is a BARRIER.
22758 * cfgexpand.c (construct_exit_block): Append instructions before
22759 return_label to prev_bb.
22761 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22763 * config/rs6000/constraints.md: Document reserved use of "wc".
22765 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22768 * ipa.c (function_and_variable_visibility): When dissolving comdat
22769 group, also set all symbols to local.
22771 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22776 2013-12-14 Jan Hubicka <jh@suse.cz>
22777 PR middle-end/58477
22778 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22780 2014-03-02 Jon Beniston <jon@beniston.com>
22786 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22787 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22788 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22789 (simple_return, *simple_return): New patterns
22790 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22791 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22793 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22795 * dwarf2out.c (gen_subprogram_die): Tidy.
22797 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22800 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22801 (*mov_t_msb_neg_negc): ... this new insn.
22803 2014-02-28 Jason Merrill <jason@redhat.com>
22806 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22809 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22812 * dwarf2out.c (decltype_auto_die): New static.
22813 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22814 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22815 (is_cxx_auto): Likewise.
22817 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22819 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22820 we are not using general regs only.
22822 2014-02-28 Richard Biener <rguenther@suse.de>
22825 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22826 previous fix and only allow to remove trivial pre-headers
22827 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22828 (remove_forwarder_block): Properly update the latch of a loop.
22830 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22833 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22834 (cselib_preserved_hash_table): New.
22835 (preserve_constants_and_equivs): Move preserved vals to it.
22836 (cselib_find_slot): Look it up first.
22837 (cselib_init): Initialize it.
22838 (cselib_finish): Release it.
22839 (dump_cselib_table): Dump it.
22841 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22844 * cselib.c (remove_useless_values): Skip to avoid quadratic
22845 behavior if the condition moved from...
22846 (cselib_process_insn): ... here holds.
22848 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22851 * var-tracking.c (vt_initialize): Apply the same condition to
22852 preserve the CFA base value.
22854 2014-02-28 Joey Ye <joey.ye@arm.com>
22857 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22858 if reload in progress or completed.
22860 2014-02-28 Tobias Burnus <burnus@net-b.de>
22862 PR middle-end/60147
22863 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22866 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22868 * doc/tm.texi.in (Condition Code Status): Update documention for
22869 relative locations of cc0-setter and cc0-user.
22871 2014-02-27 Jeff Law <law@redhat.com>
22873 PR rtl-optimization/52714
22874 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22875 into two independent simple sets, if I3 is a jump, ensure the
22876 pattern we place into I3 is a (set (pc) ...).
22878 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22879 Jeff Law <law@redhat.com>
22881 PR rtl-optimization/49847
22882 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22883 are in different blocks.
22884 * doc/tm.texi (Condition Code Status): Update documention for
22885 relative locations of cc0-setter and cc0-user.
22887 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22890 * lra.c (lra_emit_add): Check SUBREG too.
22892 2014-02-27 Andreas Schwab <schwab@suse.de>
22894 * config/m68k/m68k.c (m68k_option_override): Disable
22895 -flive-range-shrinkage for classic m68k.
22896 (m68k_override_options_after_change): Likewise.
22898 2014-02-27 Marek Polacek <polacek@redhat.com>
22900 PR middle-end/59223
22901 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22902 -Wmaybe-uninitialized.
22904 2014-02-27 Alan Modra <amodra@gmail.com>
22907 * reload1.c (emit_input_reload_insns): When reload_override_in,
22908 set old to rl->in_reg when rl->in_reg is a subreg.
22910 2014-02-26 Richard Biener <rguenther@suse.de>
22913 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22915 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22917 * common/config/i386/predicates.md (const1256_operand): Remove.
22918 (const2356_operand): New.
22919 (const_1_to_2_operand): Remove.
22920 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22921 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22922 (*avx512pf_gatherpf<mode>sf): Ditto.
22923 (avx512pf_gatherpf<mode>df): Ditto.
22924 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22925 (*avx512pf_gatherpf<mode>df): Ditto.
22926 (avx512pf_scatterpf<mode>sf): Ditto.
22927 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22928 (*avx512pf_scatterpf<mode>sf): Ditto.
22929 (avx512pf_scatterpf<mode>df): Ditto.
22930 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22931 (*avx512pf_scatterpf<mode>df): Ditto.
22932 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22934 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22936 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22937 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22938 (_mm512_mask_testn_epi64_mask): Move to ...
22939 * config/i386/avx512cdintrin.h: Here.
22940 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22941 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22942 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22943 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22944 TARGET_AVX512F from TARGET_AVX512CD.
22946 2014-02-26 Richard Biener <rguenther@suse.de>
22949 * ipa.c (walk_polymorphic_call_targets): Properly guard
22950 call to inline_update_overall_summary.
22952 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22955 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22956 and latches only if requested. Fix latch if it is removed.
22957 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22958 LOOPS_HAVE_PREHEADERS.
22960 2014-02-25 Andrew Pinski <apinski@cavium.com>
22962 * builtins.c (expand_builtin_thread_pointer): Create a new target
22963 when the target is NULL.
22965 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22967 PR rtl-optimization/60317
22968 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22969 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22970 * lra-assigns.c: Include params.h.
22971 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22972 other reload pseudos considerations.
22974 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22976 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22977 to use canonical form for nor<mode>3.
22979 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22982 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22985 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22987 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22988 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22989 (ix86_handle_option): Handle OPT_mprefetchwt1.
22990 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22991 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22993 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22994 OPTION_MASK_ISA_PREFETCHWT1.
22995 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22996 (PTA_PREFETCHWT1): New.
22997 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22998 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22999 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23000 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23001 (*prefetch_avx512pf_<mode>_: Change into ...
23002 (*prefetch_prefetchwt1_<mode>: This.
23003 * config/i386/i386.opt (mprefetchwt1): New.
23004 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23005 (_mm_prefetch): Handle intent to write.
23006 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23008 2014-02-25 Richard Biener <rguenther@suse.de>
23010 PR middle-end/60291
23011 * emit-rtl.c (mem_attrs_htab): Remove.
23012 (mem_attrs_htab_hash): Likewise.
23013 (mem_attrs_htab_eq): Likewise.
23014 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23015 (init_emit_once): Do not allocate mem_attrs_htab.
23017 2014-02-25 Richard Biener <rguenther@suse.de>
23020 * lto-opts.c (lto_write_options): Output non-explicit conservative
23021 -fwrapv, -fno-trapv and -fno-strict-overflow.
23022 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23023 (run_gcc): And pass them through.
23025 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23027 * sel-sched.c (calculate_new_fences): New parameter ptime.
23028 Calculate it as a maximum over all fence cycles.
23029 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23030 Print the final schedule timing when sched_verbose.
23032 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23034 PR rtl-optimization/60292
23035 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23036 bit fot the fence instruction.
23038 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23040 * calls.h: Fix typo in comment.
23042 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23044 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23045 adjusting offsetable addresses.
23047 2014-02-24 Guozhi Wei <carrot@google.com>
23049 * sparseset.h (sparseset_pop): Fix the wrong index.
23051 2014-02-24 Walter Lee <walt@tilera.com>
23053 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23054 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23056 * common/config/tilegx/tilegx-common.c
23057 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23058 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23059 (LINK_SPEC): Ditto.
23060 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23061 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23062 (tilegx_gimplify_va_arg_expr): Handle big endian.
23063 (tilegx_expand_unaligned_load): Ditto.
23064 (tilegx_expand_unaligned_store): Ditto.
23065 (TARGET_RETURN_IN_MSB): New.
23066 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23067 (TARGET_ENDIAN_DEFAULT): New.
23068 (TARGET_BIG_ENDIAN): Handle big endian.
23069 (BYTES_BIG_ENDIAN): Ditto.
23070 (WORDS_BIG_ENDIAN): Ditto.
23071 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23072 (ENDIAN_SPEC): New.
23073 (EXTRA_SPECS): New.
23074 * config/tilegx/tilegx.md (extv): Handle big endian.
23076 (insn_st<n>): Ditto.
23077 (insn_st<n>_add<bitsuffix>): Ditto.
23078 (insn_stnt<n>): Ditto.
23079 (insn_stnt<n>_add<bitsuffix>):Ditto.
23080 (vec_interleave_highv8qi): Handle big endian.
23081 (vec_interleave_highv8qi_be): New.
23082 (vec_interleave_highv8qi_le): New.
23083 (insn_v1int_h): Handle big endian.
23084 (vec_interleave_lowv8qi): Handle big endian.
23085 (vec_interleave_lowv8qi_be): New.
23086 (vec_interleave_lowv8qi_le): New.
23087 (insn_v1int_l): Handle big endian.
23088 (vec_interleave_highv4hi): Handle big endian.
23089 (vec_interleave_highv4hi_be): New.
23090 (vec_interleave_highv4hi_le): New.
23091 (insn_v2int_h): Handle big endian.
23092 (vec_interleave_lowv4hi): Handle big endian.
23093 (vec_interleave_lowv4hi_be): New.
23094 (vec_interleave_lowv4hi_le): New.
23095 (insn_v2int_l): Handle big endian.
23096 (vec_interleave_highv2si): Handle big endian.
23097 (vec_interleave_highv2si_be): New.
23098 (vec_interleave_highv2si_le): New.
23099 (insn_v4int_h): Handle big endian.
23100 (vec_interleave_lowv2si): Handle big endian.
23101 (vec_interleave_lowv2si_be): New.
23102 (vec_interleave_lowv2si_le): New.
23103 (insn_v4int_l): Handle big endian.
23104 * config/tilegx/tilegx.opt (mbig-endian): New option.
23105 (mlittle-endian): New option.
23106 * doc/install.texi: Document tilegxbe-linux.
23107 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23109 2014-02-24 Martin Jambor <mjambor@suse.cz>
23112 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23113 there are no parameter descriptors.
23115 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23117 PR rtl-optimization/60268
23118 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23119 initialization to ...
23120 (sched_rgn_init): ... here.
23121 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23123 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23125 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23128 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23130 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23133 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23135 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23136 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23138 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23140 * config/microblaze/predicates.md: Add cmp_op predicate.
23141 * config/microblaze/microblaze.md: Add branch_compare instruction
23142 which uses cmp_op predicate and emits cmp insn before branch.
23143 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23144 to microblaze_expand_conditional_branch and consolidate logic.
23145 (microblaze_expand_conditional_branch): emit branch_compare
23146 insn instead of handling cmp op separate from branch insn.
23148 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23150 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23153 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23155 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23156 define_insn with define_expand and new define_insn
23157 *altivec_lve<VI_char>x_internal.
23158 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23159 and new define_insn *altivec_stve<VI_char>x_internal.
23160 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23162 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23164 (altivec_expand_stvex_be): New function.
23166 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23168 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23169 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23170 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23171 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23173 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23176 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23177 instead of emit_move_insn.
23179 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23181 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23182 vspltw with vsldoi.
23183 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23184 gen_altivec_vsumsws.
23186 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23188 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23189 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23190 (altivec_lvxl_<mode>): New define_expand incorporating
23191 -maltivec=be semantics where needed.
23192 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23193 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23194 semantics where needed.
23195 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23196 (altivec_stvx_<mode>): New define_expand incorporating
23197 -maltivec=be semantics where needed.
23198 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23199 VM2 iterator instead of V4SI.
23200 (altivec_stvxl_<mode>): New define_expand incorporating
23201 -maltivec=be semantics where needed.
23202 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23203 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23204 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23205 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23206 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23207 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23208 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23209 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23210 ALTIVEC_BUILTIN_STVXL.
23211 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23212 (altivec_expand_stvx_be): Likewise.
23213 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23214 (altivec_expand_lvx_be): Likewise.
23215 (altivec_expand_stvx_be): Likewise.
23216 (altivec_expand_builtin): Add cases for
23217 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23218 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23219 (altivec_init_builtins): Add definitions for
23220 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23221 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23223 2014-02-21 Catherine Moore <clm@codesourcery.com>
23225 * doc/invoke.texi (mvirt, mno-virt): Document.
23226 * config/mips/mips.opt (mvirt): New option.
23227 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23229 2014-02-21 Richard Biener <rguenther@suse.de>
23231 PR tree-optimization/60276
23232 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23233 (STMT_VINFO_MIN_NEG_DIST): New macro.
23234 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23235 STMT_VINFO_MIN_NEG_DIST.
23236 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23237 made for negative dependence distances still hold.
23239 2014-02-21 Richard Biener <rguenther@suse.de>
23241 PR middle-end/60291
23242 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23243 DECL_INITIAL for globals not in the current function context.
23245 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23247 PR tree-optimization/56490
23248 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23249 * tree-ssa-uninit.c: Include params.h.
23250 (compute_control_dep_chain): Add num_calls argument, return false
23251 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23252 num_calls to recursive call.
23253 (find_predicates): Change dep_chain into normal array,
23254 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23255 variable and adjust compute_control_dep_chain caller.
23256 (find_def_preds): Likewise.
23258 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23260 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23261 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23263 2014-02-21 Nick Clifton <nickc@redhat.com>
23265 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23266 (pushhi1): Likewise.
23267 (popqi1): Add mode to pre_dec.
23268 (pophi1): Likewise.
23270 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23272 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23273 mode for mask of V8SFmode permutation.
23275 2014-02-20 Richard Henderson <rth@redhat.com>
23278 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23279 a new pseudo for OLDVAL.
23281 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23284 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23285 gen_reg_rtx if d->testing_p.
23286 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23287 if d->testing_p and we will certainly return true.
23288 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23291 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23293 * emit-rtl.c (gen_reg_rtx): Assert that
23294 crtl->emit.regno_pointer_align_length is non-zero.
23296 2014-02-20 Richard Henderson <rth@redhat.com>
23299 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23300 on failure the store back into EXPECT.
23302 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23303 Sandra Loosemore <sandra@codesourcery.com>
23305 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23306 * config/nios2/nios2.c (nios2_function_profiler): Add
23307 -fPIC (flag_pic == 2) support.
23308 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23309 (nios2_large_offset_p): New function.
23310 (nios2_unspec_reloc_p): Move up position, update to use
23311 nios2_large_offset_p.
23312 (nios2_unspec_address): Remove function.
23313 (nios2_unspec_offset): New function.
23314 (nios2_large_got_address): New function.
23315 (nios2_got_address): Add large offset support.
23316 (nios2_legitimize_tls_address): Update usage of removed and new
23318 (nios2_symbol_binds_local_p): New function.
23319 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23320 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23321 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23322 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23323 processing for (const (unspec ...)).
23324 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23326 2014-02-20 Richard Biener <rguenther@suse.de>
23328 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23329 doing the substitution.
23330 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23332 2014-02-20 Martin Jambor <mjambor@suse.cz>
23335 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23336 info when checking whether lattices are bottom.
23338 2014-02-20 Richard Biener <rguenther@suse.de>
23340 PR middle-end/60221
23341 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23344 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23347 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23348 parameter specifying the scaling.
23349 (inline_call): Update.
23350 (want_inline_recursively): Guard division by zero.
23351 (recursive_inlining): Update.
23352 * ipa-inline.h (clone_inlined_nodes): Update.
23354 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23357 * config/i386/i386.c (classify_argument): Pass structures of size
23358 64 bytes or less in register.
23360 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23361 Kirill Yukhin <kirill.yukhin@intel.com>
23363 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23364 (_mm_rcp28_round_ss): Ditto.
23365 (_mm_rsqrt28_round_sd): Ditto.
23366 (_mm_rsqrt28_round_ss): Ditto.
23367 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23368 (_mm_rcp14_round_ss): Ditto.
23369 (_mm_rsqrt14_round_sd): Ditto.
23370 (_mm_rsqrt14_round_ss): Ditto.
23371 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23372 the first input operand, get rid of match_dup.
23373 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23375 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23377 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23378 operand as the first input operand, set type attribute.
23379 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23380 Set type attribute.
23381 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23382 operand as the first input operand, set type attribute.
23384 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23386 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23389 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23392 * config/i386/i386.c (construct_container): Remove TFmode check
23393 for X86_64_INTEGER_CLASS.
23395 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23398 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23399 only when -Wpsabi is enabled.
23401 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23404 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23405 passing arrays in registers are the same as for structs, so remove the
23406 special case for them.
23408 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23410 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23411 destination type, extract only the valid bits if the source type is not
23412 integral and has a different mode.
23414 2014-02-19 Richard Biener <rguenther@suse.de>
23417 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23420 2014-02-19 Richard Biener <rguenther@suse.de>
23423 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23424 (ipa_modify_call_arguments): Emit an argument load explicitely and
23425 preserve virtual SSA form there and for the replacement call.
23426 Do not update SSA form nor free dominance info.
23428 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23430 * ipa.c (function_and_variable_visibility): Also clear WEAK
23431 flag when disolving COMDAT_GROUP.
23433 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23435 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23436 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23437 not devirtualizing.
23438 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23439 do more sanity checks.
23440 (detect_type_change): Return true when giving up early.
23441 (compute_complex_assign_jump_func): Fix type parameter of
23442 ipa_set_ancestor_jf.
23443 (compute_complex_ancestor_jump_func): Likewise.
23444 (update_jump_functions_after_inlining): Fix updating of
23446 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23448 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23450 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23451 inline clones when edge disappears.
23453 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23456 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23457 Split 64-bit moves into 2 patterns. Do not allow the use of
23458 direct move for TDmode in little endian, since the decimal value
23459 has little endian bytes within a word, but the 64-bit pieces are
23460 ordered in a big endian fashion, and normal subreg's of TDmode are
23462 (mov<mode>_64bit_dm): Likewise.
23463 (movtd_64bit_nodm): Likewise.
23465 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23467 PR tree-optimization/60174
23468 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23469 statement of an SSA_NAME that occurs in an abnormal PHI node.
23471 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23474 * final.c (SEEN_BB): Remove.
23475 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23476 (final_scan_insn): Don't force_source_line on second
23477 NOTE_INSN_BASIC_BLOCK.
23479 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23482 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23483 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23484 (type_natural_mode): Warn ABI change when %zmm register is not
23485 available for AVX512F vector value passing.
23487 2014-02-18 Kai Tietz <ktietz@redhat.com>
23490 * config/i386/i386.c (ix86_expand_prologue): Use value in
23491 rax register as displacement when restoring %r10 or %rax.
23492 Fix wrong offset when restoring both registers.
23494 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23496 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23497 assertion with conditional return.
23499 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23500 Uros Bizjak <ubizjak@gmail.com>
23503 * config/i386/driver-i386.c (host_detect_local_cpu): If
23504 YMM state is not saved by the OS, also clear has_f16c. Move
23505 CPUID 0x80000001 handling before YMM state saving checking.
23507 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23509 PR rtl-optimization/58960
23510 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23511 factored out from ...
23512 (sched_init): ... here.
23513 (free_global_sched_pressure_data): New, factored out from ...
23514 (sched_finish): ... here.
23515 * sched-int.h (free_global_sched_pressure_data): Declare.
23516 * sched-rgn.c (nr_regions_initial): New static global.
23517 (haifa_find_rgns): Initialize it.
23518 (schedule_region): Disable sched-pressure for the newly
23521 2014-02-17 Richard Biener <rguenther@suse.de>
23523 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23524 release SSA defs of pattern stmts.
23526 2014-02-17 Richard Biener <rguenther@suse.de>
23528 * tree-inline.c (expand_call_inline): Release the virtual
23529 operand defined by the call we are about to inline.
23531 2014-02-17 Richard Biener <rguenther@suse.de>
23533 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23535 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23536 Ilya Tocar <ilya.tocar@intel.com>
23538 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23539 arguments order in builtin.
23540 (_mm512_permutexvar_epi64): Ditto.
23541 (_mm512_mask_permutexvar_epi64): Ditto
23542 (_mm512_maskz_permutexvar_epi32): Ditto
23543 (_mm512_permutexvar_epi32): Ditto
23544 (_mm512_mask_permutexvar_epi32): Ditto
23546 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23548 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23549 (p8_vmrgow): Likewise.
23551 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23553 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23556 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23559 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23560 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23561 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23562 using direct move instructions on ISA 2.07. Also adjust
23563 instruction length for 64-bit.
23564 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23565 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23567 2014-02-15 Alan Modra <amodra@gmail.com>
23571 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23572 find_replacement on parts of insn rtl that might be reloaded.
23574 2014-02-15 Richard Biener <rguenther@suse.de>
23576 PR tree-optimization/60183
23577 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23578 (tree_ssa_phiprop): Calculate and free post-dominators.
23580 2014-02-14 Jeff Law <law@redhat.com>
23582 PR rtl-optimization/60131
23583 * ree.c (get_extended_src_reg): New function.
23584 (combine_reaching_defs): Use it rather than assuming location of REG.
23585 (find_and_remove_re): Verify first operand of extension is
23586 a REG before adding the insns to the copy list.
23588 2014-02-14 Roland McGrath <mcgrathr@google.com>
23590 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23591 * configure: Regenerated.
23592 * config.in: Regenerated.
23593 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23594 instead of ASM_SHORT.
23596 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23597 Richard Earnshaw <rearnsha@arm.com>
23599 PR rtl-optimization/59535
23600 * lra-constraints.c (process_alt_operands): Encourage alternative
23601 when unassigned pseudo class is superset of the alternative class.
23602 (inherit_reload_reg): Don't inherit when optimizing for code size.
23603 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23604 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23605 modes not less than 4 for Thumb1.
23607 2014-02-14 Kyle McMartin <kyle@redhat.com>
23610 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23612 2014-02-14 Richard Biener <rguenther@suse.de>
23614 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23615 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23616 Do not strip INDIRECT_REFs.
23618 2014-02-14 Richard Biener <rguenther@suse.de>
23621 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23622 DECL_FUNCTION_SPECIFIC_TARGET.
23623 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23624 * tree-streamer-out.c (pack_ts_target_option): Remove.
23625 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23626 (write_ts_function_decl_tree_pointers): Do not stream
23627 DECL_FUNCTION_SPECIFIC_TARGET.
23628 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23629 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23630 (lto_input_ts_function_decl_tree_pointers): Do not stream
23631 DECL_FUNCTION_SPECIFIC_TARGET.
23633 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23635 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23636 (get_initial_def_for_induction, vectorizable_induction): Ignore
23637 debug stmts when looking for exit_phi.
23638 (vectorizable_live_operation): Fix up condition.
23640 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23642 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23643 nreverse() because it changes the content of original tree list.
23645 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23647 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23648 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23650 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23652 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23653 GNU coding standards.
23655 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23658 * dwarf2out.c (gen_subprogram_die): Don't call
23659 add_calling_convention_attribute if subr_die is old_die.
23661 2014-02-13 Sharad Singhai <singhai@google.com>
23663 * doc/optinfo.texi: Fix order of nodes.
23665 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23667 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23668 operands[2], not operands[3].
23670 2014-02-13 Richard Biener <rguenther@suse.de>
23673 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23674 mention the possibility of an in-tree build.
23675 (CLooG): Update recommended version to 0.18.1, mention the
23676 possibility of an in-tree build and clarify that the ISL
23677 bundled with CLooG does not work.
23679 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23682 * expr.c (compress_float_constant): If x is a hard register,
23683 extend into a pseudo and then move to x.
23685 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23687 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23688 caused by bad second argument to warning_at() with -mhotpatch and
23689 nested functions (e.g. with gfortran).
23691 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23693 * opts.c (option_name): Remove "enabled by default" rider.
23695 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23697 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23699 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23700 Uros Bizjak <ubizjak@gmail.com>
23703 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23704 * configure: Regenerated.
23706 2014-02-12 Richard Biener <rguenther@suse.de>
23708 * vec.c (vec_prefix::calculate_allocation): Move as
23709 inline variant to vec.h.
23710 (vec_prefix::calculate_allocation_1): New out-of-line version.
23711 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23712 (vec_prefix::m_has_auto_buf): Rename to ...
23713 (vec_prefix::m_using_auto_storage): ... this.
23714 (vec_prefix::calculate_allocation): Inline the easy cases
23715 and dispatch to calculate_allocation_1 which doesn't need the
23717 (va_heap::reserve): Use gcc_checking_assert.
23718 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23719 m_using_auto_storage.
23720 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23722 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23723 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23724 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23726 2014-02-12 Richard Biener <rguenther@suse.de>
23728 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23729 when we found a dependence.
23731 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23733 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23735 (maybe_fold_stmt): ... into this new function.
23736 * omp-low.c (lower_omp): Update comment.
23738 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23741 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23744 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23746 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23747 identifiers in comments.
23748 (cortexa53_extra_costs): Likewise.
23749 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23750 (cortexa7_extra_costs): Likewise.
23751 (cortexa12_extra_costs): Likewise.
23752 (cortexa15_extra_costs): Likewise.
23753 (v7m_extra_costs): Likewise.
23755 2014-02-12 Richard Biener <rguenther@suse.de>
23757 PR middle-end/60092
23758 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23759 of posix_memalign being successful.
23760 (lower_stmt): Restrict lowering of posix_memalign to when
23761 -ftree-bit-ccp is enabled.
23763 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23765 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23767 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23769 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23771 PR rtl-optimization/60116
23772 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23773 other_insn once the combination has been validated.
23775 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23778 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23780 * ipa-devirt.c: Include demangle.h
23781 (odr_violation_reported): New static variable.
23782 (add_type_duplicate): Update odr_violations.
23783 (maybe_record_node): Add completep parameter; update it.
23784 (record_target_from_binfo): Add COMPLETEP parameter;
23785 update it as needed.
23786 (possible_polymorphic_call_targets_1): Likewise.
23787 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23788 rename FINAL to COMPLETE.
23789 (record_targets_from_bases): Sanity check we found the binfo;
23790 fix COMPLETEP updating.
23791 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23792 parameter, fix computing of COMPLETEP.
23793 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23794 at LTO time do demangling.
23795 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23796 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23798 (gimple_get_virt_method_for_binfo): Likewise.
23799 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23800 gimple_get_virt_method_for_vtable): Update prototypes.
23802 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23805 * genautomata.c (add_presence_absence): Fix typo with
23806 {final_}presence_list.
23808 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23811 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23812 for VSX/Altivec vectors that land in GPR registers.
23814 2014-02-11 Richard Henderson <rth@redhat.com>
23815 Jakub Jelinek <jakub@redhat.com>
23818 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23819 around drhs if type conversion to lacc->type is not useless.
23821 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23823 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23825 (cortex-a57.cortex-a53): Likewise.
23826 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23828 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23830 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23833 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23835 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23836 add_options_for_arm_vfp3.
23838 2014-02-11 Jeff Law <law@redhat.com>
23840 PR middle-end/54041
23841 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23842 object with an undesirable mode.
23844 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23847 * config/i386/sol2-9.h: New file.
23848 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23849 *-*-solaris2.9*): Use it.
23851 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23853 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23854 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23856 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23858 * config/microblaze/microblaze.c: Extend mcpu version format
23860 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23862 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23864 2014-02-10 Richard Henderson <rth@redhat.com>
23867 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23868 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23869 ms-abi vs -mno-accumulate-outgoing-args.
23870 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23871 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23874 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23876 PR middle-end/60080
23877 * cfgexpand.c (expand_asm_operands): Attach source location to
23878 ASM_INPUT rtx objects.
23879 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23881 2014-02-10 Nick Clifton <nickc@redhat.com>
23883 * config/mn10300/mn10300.c (popcount): New function.
23884 (mn10300_expand_prologue): Include saved registers in stack usage
23887 2014-02-10 Jeff Law <law@redhat.com>
23889 PR middle-end/52306
23890 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23891 when changing the SET_DEST of a prior insn to avoid an input reload.
23893 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23895 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23896 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23897 -mcall-openbsd, or -mcall-linux.
23898 (CC1_ENDIAN_BIG_SPEC): Remove.
23899 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23900 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23901 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23902 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23903 and %cc1_endian_default.
23904 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23906 2014-02-10 Richard Biener <rguenther@suse.de>
23908 PR tree-optimization/60115
23909 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23910 MEM_REF handling. Properly verify that the accesses are not
23911 out of the objects bound.
23913 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23915 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23918 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23920 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23921 proper constants and fix formatting.
23922 (possible_polymorphic_call_targets): Fix formatting.
23924 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23925 Ilya Tocar <ilya.tocar@intel.com>
23927 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23928 (_mm512_loadu_epi32): Renamed into...
23929 (_mm512_loadu_si512): This.
23930 (_mm512_storeu_epi32): Renamed into...
23931 (_mm512_storeu_si512): This.
23932 (_mm512_maskz_ceil_ps): Removed.
23933 (_mm512_maskz_ceil_pd): Ditto.
23934 (_mm512_maskz_floor_ps): Ditto.
23935 (_mm512_maskz_floor_pd): Ditto.
23936 (_mm512_floor_round_ps): Ditto.
23937 (_mm512_floor_round_pd): Ditto.
23938 (_mm512_ceil_round_ps): Ditto.
23939 (_mm512_ceil_round_pd): Ditto.
23940 (_mm512_mask_floor_round_ps): Ditto.
23941 (_mm512_mask_floor_round_pd): Ditto.
23942 (_mm512_mask_ceil_round_ps): Ditto.
23943 (_mm512_mask_ceil_round_pd): Ditto.
23944 (_mm512_maskz_floor_round_ps): Ditto.
23945 (_mm512_maskz_floor_round_pd): Ditto.
23946 (_mm512_maskz_ceil_round_ps): Ditto.
23947 (_mm512_maskz_ceil_round_pd): Ditto.
23948 (_mm512_expand_pd): Ditto.
23949 (_mm512_expand_ps): Ditto.
23950 * config/i386/i386.c (ix86_builtins): Remove
23951 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23952 (bdesc_args): Ditto.
23953 * config/i386/predicates.md (const1256_operand): New.
23954 (const_1_to_2_operand): Ditto.
23955 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23956 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23957 (*avx512pf_gatherpf<mode>sf): Ditto.
23958 (avx512pf_gatherpf<mode>df): Ditto.
23959 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23960 (*avx512pf_gatherpf<mode>df): Ditto.
23961 (avx512pf_scatterpf<mode>sf): Ditto.
23962 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23963 (*avx512pf_scatterpf<mode>sf): Ditto.
23964 (avx512pf_scatterpf<mode>df): Ditto.
23965 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23966 (*avx512pf_scatterpf<mode>df): Ditto.
23967 (avx512f_expand<mode>): Removed.
23968 (<shift_insn><mode>3<mask_name>): Change predicate type.
23970 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23972 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23973 not at the end of datarefs vector use ordered_remove to avoid
23974 reordering datarefs vector.
23977 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23978 mark local addressable non-static vars as GOVD_PRIVATE
23979 instead of GOVD_LOCAL.
23980 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23981 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23984 PR middle-end/60092
23985 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23986 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23987 assume_aligned or alloc_align attributes.
23988 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23989 arguments. Handle also assume_aligned and alloc_align attributes.
23990 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23991 calls to functions with assume_aligned or alloc_align attributes.
23992 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23994 2014-02-08 Terry Guo <terry.guo@arm.com>
23996 * doc/invoke.texi: Document ARM -march=armv7e-m.
23998 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24000 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24001 flag on __cilkrts_rethrow builtin.
24004 * ipa-cp.c (determine_versionability): Fail at -O0
24005 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24006 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24009 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24012 * tree-inline.c (copy_forbidden): Fail for
24013 __attribute__((optimize (0))) functions.
24015 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24017 * varpool.c: Include pointer-set.h.
24018 (varpool_remove_unreferenced_decls): Variables in other partitions
24019 will not be output; be however careful to not lose information
24020 about partitioning.
24022 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24024 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24025 lookup in the vtable constructor.
24027 2014-02-07 Jeff Law <law@redhat.com>
24030 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24031 define_insn_and_split.
24033 * ipa-inline.c (inline_small_functions): Fix typos.
24035 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24037 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24038 (s390_can_use_return_insn): Declare.
24039 * config/s390/s390.h (EPILOGUE_USES): Define.
24040 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24042 (s390_chunkify_start): Handle return JUMP_LABELs.
24043 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24044 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24045 (s390_can_use_return_insn): New functions.
24046 (s390_fix_long_loop_prediction): Handle conditional returns.
24047 (TARGET_SET_UP_BY_PROLOGUE): Define.
24048 * config/s390/s390.md (ANY_RETURN): New code iterator.
24049 (*creturn, *csimple_return, return, simple_return): New patterns.
24051 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24053 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24054 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24055 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24056 REG_CFA_RESTORE list when deciding not to restore a register.
24058 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24060 * config/s390/s390.c: Include tree-pass.h and context.h.
24061 (s390_early_mach): New function, split out from...
24062 (s390_emit_prologue): ...here.
24063 (pass_data_s390_early_mach): New pass structure.
24064 (pass_s390_early_mach): New class.
24065 (s390_option_override): Create and register early_mach pass.
24066 Move to end of file.
24068 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24070 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24071 to match for the exit block.
24073 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24075 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24076 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24077 Reject misaligned operands.
24079 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24081 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24083 2014-02-07 Richard Biener <rguenther@suse.de>
24085 PR middle-end/60092
24086 * gimple-low.c (lower_builtin_posix_memalign): New function.
24087 (lower_stmt): Call it to lower posix_memalign in a way
24088 to make alignment info accessible.
24090 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24093 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24094 __builtin_setjmp_receiver.
24096 2014-02-07 Richard Biener <rguenther@suse.de>
24098 PR middle-end/60092
24099 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24100 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24101 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24102 Handle BUILT_IN_POSIX_MEMALIGN.
24103 (find_func_clobbers): Likewise.
24104 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24105 (call_may_clobber_ref_p_1): Likewise.
24107 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24110 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24113 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24116 * lto-cgraph.c (lto_output_node): Use
24117 symtab_get_symbol_partitioning_class.
24118 (lto_output_varpool_node): likewise.
24119 (symtab_get_symbol_partitioning_class): Move here from
24120 lto/lto-partition.c
24121 * cgraph.h (symbol_partitioning_class): Likewise.
24122 (symtab_get_symbol_partitioning_class): Declare.
24124 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24126 * ggc.h (ggc_internal_cleared_alloc): New macro.
24127 * vec.h (vec_safe_copy): Handle memory stats.
24128 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24129 * target-globals.c (save_target_globals): Likewise.
24131 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24134 * expr.c (emit_move_resolve_push): Export; be bit more selective
24135 on when to clear alias set.
24136 * expr.h (emit_move_resolve_push): Declare.
24137 * function.h (struct function): Add tail_call_marked.
24138 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24139 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24140 * config/i386/i386.md (TImode move expander): De not call
24142 (FP push expanders): Preserve memory attributes.
24143 * config/i386/sse.md (push<mode>1): Remove.
24144 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24145 (ix86_expand_push): Remove.
24146 * config/i386/mmx.md (push<mode>1): Remove.
24148 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24150 PR rtl-optimization/60030
24151 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24152 lopart with paradoxical subreg before shifting it up by hprec.
24154 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24156 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24157 Remove extra newline at end of file.
24158 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24159 (arm_issue_rate): Handle cortexa57.
24160 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24161 (cortex-a57.cortex-a53): Likewise.
24163 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24166 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24167 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24169 (arm_expand_prologue): Adjust all callers.
24170 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24171 info, registers also at the lowest numbered registers side. Use
24172 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24176 * var-tracking.c (adjust_mems): Before adding a SET to
24177 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24179 2014-02-06 Alan Modra <amodra@gmail.com>
24182 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24183 change SDmode to DDmode when lra_in_progress.
24185 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24187 PR middle-end/59150
24188 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24189 free_data_ref on the dr first, and before goto again also set dr
24190 to the next dr. For simd_lane_access, free old datarefs[i] before
24191 overwriting it. For get_vectype_for_scalar_type failure, don't
24192 free_data_ref if simd_lane_access.
24194 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24197 * tree.h (opts_for_fn): New inline function.
24198 (opt_for_fn): Define.
24199 * config/i386/i386.c (ix86_function_regparm): Use
24200 opt_for_fn (decl, optimize) instead of optimize.
24202 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24204 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24205 for SYMBOL_REF in large memory model.
24207 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24209 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24210 and crypto support.
24211 (cortex-a57): Likewise.
24212 (cortex-a57.cortex-a53): Likewise.
24214 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24215 Kugan Vivekanandarajah <kuganv@linaro.org>
24217 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24219 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24221 2014-02-06 Richard Biener <rguenther@suse.de>
24223 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24224 set_loop_copy and initialize_original_copy_tables.
24226 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24228 * config/aarch64/aarch64-simd.md
24229 (aarch64_ashr_simddi): Change QI to SI.
24231 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24232 Jakub Jelinek <jakub@redhat.com>
24234 PR middle-end/60013
24235 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24238 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24240 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24241 CODE_FOR_altivec_vpku[hw]um to
24242 CODE_FOR_altivec_vpku[hw]um_direct.
24243 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24244 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24245 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24246 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24248 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24250 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24251 generation for -maltivec=be.
24252 (altivec_vsumsws): Simplify redundant test.
24254 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24256 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24257 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24258 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24259 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24260 gen_altivec_vpkuwum.
24261 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24263 (altivec_vpks<VI_char>ss): Likewise.
24264 (altivec_vpks<VI_char>us): Likewise.
24265 (altivec_vpku<VI_char>us): Likewise.
24266 (altivec_vpku<VI_char>um): Likewise.
24267 (altivec_vpku<VI_char>um_direct): New (copy of
24268 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24270 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24271 target is little endian and -maltivec=be is not specified.
24272 (*altivec_vupkhs<VU_char>_direct): New (copy of
24273 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24274 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24275 target is little endian and -maltivec=be is not specified.
24276 (*altivec_vupkls<VU_char>_direct): New (copy of
24277 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24278 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24279 little endian and -maltivec=be is not specified.
24280 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24281 little endian and -maltivec=be is not specified.
24283 2014-02-05 Richard Henderson <rth@redhat.com>
24286 * combine-stack-adj.c: Revert r206943.
24287 * sched-int.h (struct deps_desc): Add last_args_size.
24288 * sched-deps.c (init_deps): Initialize it.
24289 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24290 contain REG_ARGS_SIZE notes.
24292 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24294 * lto-cgraph.c (asm_nodes_output): Make global.
24295 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24296 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24297 (driver_handle_option): Handle OPT_fwpa.
24299 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24302 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24303 a comment typo and formatting issue. If odr_hash hasn't been
24304 created, return vNULL and set *completep to false.
24306 PR middle-end/57499
24307 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24308 bb with no successors.
24310 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24313 * doc/invoke.texi (-march): Clarify documentation for ARM.
24314 (-mtune): Likewise.
24317 2014-02-05 Richard Biener <rguenther@suse.de>
24319 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24320 when not vectorizing because of too many alias checks.
24321 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24322 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24324 2014-02-05 Nick Clifton <nickc@redhat.com>
24326 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24327 accept extended registers in any mode when compiling for the MN10300.
24329 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24331 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24332 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24333 sanitization attributes.
24334 (can_inline_edge_p): Likewise.
24335 (sanitize_attrs_match_for_inline_p): New function.
24337 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24339 * ipa-prop.c (detect_type_change): Shor circuit testing of
24340 type changes on THIS pointer.
24342 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24345 * config/pa/pa.c (legitimize_tls_address): Return original address
24346 if not passed a SYMBOL_REF rtx.
24347 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24349 (pa_emit_move_sequence): Simplify TLS source operands.
24350 (pa_legitimate_constant_p): Reject all TLS constants.
24351 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24352 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24354 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24356 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24357 groups when we know they are controlled by LTO.
24358 * varasm.c (default_binds_local_p_1): If object is in other partition,
24359 it will be resolved locally.
24361 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24363 * config/host-linux.c (linux_gt_pch_use_address): Don't
24364 use SSIZE_MAX because it is not always defined.
24366 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24369 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24370 threshold for pseudo splitting.
24371 (update_ebb_live_info): Process call argument hard registers and
24372 hard registers from insn definition too.
24373 (max_small_class_regs_num): New constant.
24374 (inherit_in_ebb): Update live hard regs through EBBs. Update
24375 reloads_num only for small register classes. Don't split for
24378 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24381 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24384 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24386 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24387 visibility is safe.
24389 2014-02-04 Marek Polacek <polacek@redhat.com>
24391 * gdbinit.in (pel): Define.
24393 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24395 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24398 2014-02-04 Richard Biener <rguenther@suse.de>
24401 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24402 in function context local.
24403 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24404 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24405 similar to LTO_imported_decl_ref.
24407 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24409 PR tree-optimization/60002
24410 * cgraphclones.c (build_function_decl_skip_args): Clear
24411 DECL_LANG_SPECIFIC.
24413 PR tree-optimization/60023
24414 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24415 false to gsi_replace.
24416 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24417 has been in some EH region and vec_stmt could throw, add
24418 vec_stmt into the same EH region.
24419 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24420 has no lhs, ignore it.
24421 * internal-fn.c (expand_MASK_LOAD): Likewise.
24424 * tree-inline.c (copy_forbidden): Fail for
24425 __attribute__((optimize (0))) functions.
24428 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24429 is set, copy one less argument.
24430 (expand_simd_clones): Don't subtract clone_info->inbranch
24431 from simd_clone_struct_alloc argument.
24433 PR rtl-optimization/57915
24434 * recog.c (simplify_while_replacing): If all unary/binary/relational
24435 operation arguments are constant, attempt to simplify those.
24437 PR middle-end/59261
24438 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24439 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24441 2014-02-04 Richard Biener <rguenther@suse.de>
24443 PR tree-optimization/60012
24444 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24445 TBAA disambiguation to all DDRs.
24447 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24450 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24451 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24453 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24456 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24458 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24460 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24461 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24463 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24466 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24467 to figure out targets of polymorphic calls with known decl.
24468 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24469 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24470 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24471 (get_polymorphic_call_info): ... here.
24472 (get_polymorphic_call_info_from_invariant): New function.
24474 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24476 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24477 lookup via vtable pointer; check for type consistency
24478 and turn inconsitent facts into UNREACHABLE.
24479 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24480 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24481 type inconsistent querries; return UNREACHABLE instead.
24483 2014-02-03 Richard Henderson <rth@twiddle.net>
24486 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24487 already processed this node.
24488 (normalize_one_pred_1): Pass along mark_set.
24489 (normalize_one_pred): Create and destroy a pointer_set_t.
24490 (normalize_one_pred_chain): Likewise.
24492 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24494 PR gcov-profile/58602
24495 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24497 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24500 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24501 -fno-devirtualize; try to devirtualize by the knowledge of
24502 virtual table pointer given by aggregate propagation.
24503 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24504 (ipa_print_node_jump_functions): Dump also offset that
24505 is relevant for polymorphic calls.
24506 (determine_known_aggregate_parts): Add arg_type parameter; use it
24507 instead of determining the type from pointer type.
24508 (ipa_compute_jump_functions_for_edge): Update call of
24509 determine_known_aggregate_parts.
24510 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24511 (gimple_get_virt_method_for_binfo): ... here; simplify using
24512 vtable_pointer_value_to_vtable.
24513 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24514 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24515 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24516 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24518 (vtable_pointer_value_to_binfo): ... here.
24519 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24521 2014-02-03 Teresa Johnson <tejohnson@google.com>
24523 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24524 redef of outer loop index variable.
24526 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24530 * doc/extend.texi (Function Attributes): Typo.
24532 2014-02-03 Cong Hou <congh@google.com>
24534 PR tree-optimization/60000
24535 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24536 if the vectorized statement is a store. A store statement can only
24537 appear at the end of pattern statements.
24539 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24541 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24542 (ix86_option_override_internal): Default long double to 64-bit for
24543 32-bit Bionic and to 128-bit for 64-bit Bionic.
24545 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24546 TARGET_LONG_DOUBLE_128 is true.
24547 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24549 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24550 (mlong-double-64): Negate -mlong-double-128.
24551 (mlong-double-128): New option.
24553 * config/i386/i386-c.c (ix86_target_macros): Define
24554 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24556 * doc/invoke.texi: Document -mlong-double-128.
24558 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24560 PR rtl-optimization/60024
24561 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24563 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24565 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24567 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24569 PR rtl-optimization/57662
24570 * sel-sched.c (code_motion_path_driver): Do not mark already not
24571 existing blocks in the visiting bitmap.
24573 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24575 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24576 on the insn being emitted.
24578 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24579 Will Deacon <will.deacon@arm.com>
24581 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24583 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24585 * config/arm/arm-tables.opt: Regenerate.
24587 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24589 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24590 for vector types other than V16QImode.
24591 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24592 define_expand, and call altivec_expand_vec_perm_le when producing
24593 code with little endian element order.
24594 (*altivec_vperm_<mode>_internal): New insn having previous
24595 behavior of altivec_vperm_<mode>.
24596 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24597 altivec_expand_vec_perm_le when producing code with little endian
24599 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24600 behavior of altivec_vperm_<mode>_uns.
24602 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24604 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24605 (altivec_vsumsws): Add handling for -maltivec=be with a little
24607 (altivec_vsumsws_direct): New.
24608 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24609 gen_altivec_vsumsws.
24611 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24613 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24614 vtable_pointer_value_to_binfo): New functions.
24615 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24616 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24618 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24620 * config/nios2/nios2.md (load_got_register): Initialize GOT
24621 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24622 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24624 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24626 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24627 preserverd by passthrough, do not propagate the type.
24629 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24631 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24632 (mips_atomic_assign_expand_fenv): New function.
24633 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24635 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24637 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24638 (__builtin_mips_set_fcsr): Likewise.
24639 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24640 MIPS_USI_FTYPE_VOID.
24641 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24642 (mips16_expand_set_fcsr): Likewise.
24643 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24644 (mips16_set_fcsr_stub): Likewise.
24645 (mips16_get_fcsr_one_only_stub): New class.
24646 (mips16_set_fcsr_one_only_stub): Likewise.
24647 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24648 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24649 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24650 (hard_float): New availability predicate.
24651 (mips_builtins): Add get_fcsr and set_fcsr.
24652 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24653 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24654 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24655 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24656 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24659 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24661 * config/mips/mips.c (mips_one_only_stub): New class.
24662 (mips_need_mips16_rdhwr_p): Replace with...
24663 (mips16_rdhwr_stub): ...this new variable.
24664 (mips16_stub_call_address): New function.
24665 (mips16_rdhwr_one_only_stub): New class.
24666 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24667 (mips_output_mips16_rdhwr): Delete.
24668 (mips_finish_stub): New function.
24669 (mips_code_end): Use it to handle rdhwr stubs.
24671 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24674 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24675 when calculating size of integer atomic types.
24677 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24679 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24681 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24683 PR tree-optimization/60003
24684 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24685 * profile.c (branch_prob): Use gimple_call_builtin_p
24686 to check for BUILT_IN_SETJMP_RECEIVER.
24687 * tree-inline.c (copy_bb): Call notice_special_calls.
24689 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24692 * lra-constraints.c (process_alt_operands): Update reload_sum only
24695 2014-01-31 Richard Henderson <rth@redhat.com>
24697 PR middle-end/60004
24698 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24699 until after else_eh is processed.
24701 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24703 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24704 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24705 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24706 in smmintrin.h, remove them.
24707 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24708 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24709 * config/i386/i386.md (ROUND_SAE): Fix value.
24710 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24711 (const48_operand): New.
24712 * config/i386/subst.md (round), (round_expand): Use
24713 const_4_or_8_to_11_operand.
24714 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24716 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24718 * config/i386/constraints.md (Yk): Swap meaning with k.
24719 * config/i386/i386.md (movhi_internal): Change Yk to k.
24720 (movqi_internal): Ditto.
24721 (*k<logic><mode>): Ditto.
24724 (kandn<mode>): Ditto.
24725 (*<code>hi_1): Ditto.
24726 (*<code>qi_1): Ditto.
24727 (kxnor<mode>): Ditto.
24728 (kortestzhi): Ditto.
24729 (kortestchi): Ditto.
24731 (*one_cmplhi2_1): Ditto.
24732 (*one_cmplqi2_1): Ditto.
24733 * config/i386/sse.md (): Change k to Yk.
24734 (avx512f_load<mode>_mask): Ditto.
24735 (avx512f_blendm<mode>): Ditto.
24736 (avx512f_store<mode>_mask): Ditto.
24737 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24738 (avx512f_storedqu<mode>_mask): Ditto.
24739 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24741 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24742 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24743 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24744 (avx512f_maskcmp<mode>3): Ditto.
24745 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24746 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24747 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24748 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24749 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24750 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24751 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24752 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24753 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24754 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24755 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24756 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24757 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24758 (vec_extract_lo_<mode>_maskm): Ditto.
24759 (vec_extract_hi_<mode>_maskm): Ditto.
24760 (avx512f_vternlog<mode>_mask): Ditto.
24761 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24762 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24763 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24764 (avx512f_<code>v8div16qi2_mask): Ditto.
24765 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24766 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24767 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24768 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24769 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24770 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24771 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24772 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24773 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24774 (avx512cd_maskb_vec_dupv8di): Ditto.
24775 (avx512cd_maskw_vec_dupv16si): Ditto.
24776 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24777 (avx512f_vpermi2var<mode>3_mask): Ditto.
24778 (avx512f_vpermi2var<mode>3_mask): Ditto.
24779 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24780 (*avx512f_gathersi<mode>): Ditto.
24781 (*avx512f_gathersi<mode>_2): Ditto.
24782 (*avx512f_gatherdi<mode>): Ditto.
24783 (*avx512f_gatherdi<mode>_2): Ditto.
24784 (*avx512f_scattersi<mode>): Ditto.
24785 (*avx512f_scatterdi<mode>): Ditto.
24786 (avx512f_compress<mode>_mask): Ditto.
24787 (avx512f_compressstore<mode>_mask): Ditto.
24788 (avx512f_expand<mode>_mask): Ditto.
24789 * config/i386/subst.md (mask): Change k to Yk.
24790 (mask_scalar_merge): Ditto.
24793 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24795 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24797 2014-01-31 Richard Biener <rguenther@suse.de>
24799 PR middle-end/59990
24800 * builtins.c (fold_builtin_memory_op): Make sure to not
24801 use a floating-point mode or a boolean or enumeral type for
24802 the copy operation.
24804 2014-01-30 DJ Delorie <dj@redhat.com>
24806 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24807 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24808 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24809 whenever main() has an epilogue.
24811 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24813 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24814 unused variable "field".
24815 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24816 (vsx_mergeh_<mode>): Likewise.
24817 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24818 (altivec_vmrghh): Likewise.
24819 (altivec_vmrghw): Likewise.
24820 (altivec_vmrglb): Likewise.
24821 (altivec_vmrglh): Likewise.
24822 (altivec_vmrglw): Likewise.
24823 (altivec_vspltb): Add missing uses.
24824 (altivec_vsplth): Likewise.
24825 (altivec_vspltw): Likewise.
24826 (altivec_vspltsf): Likewise.
24828 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24831 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24832 frame related instructions.
24834 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24836 PR rtl-optimization/59959
24837 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24838 any reload of register whose subreg is invalid.
24840 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24842 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24843 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24844 Add missing return type - void.
24846 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24848 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24849 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24850 remove element index adjustment for endian (now handled in vsx.md
24852 (altivec_expand_vec_perm_const): Use
24853 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24854 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24855 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24856 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24857 define_expand and a new define_insn *altivec_vspltb_internal;
24858 adjust for -maltivec=be on a little endian target.
24859 (altivec_vspltb_direct): New.
24860 (altivec_vsplth): Divide into a define_expand and a new
24861 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24862 little endian target.
24863 (altivec_vsplth_direct): New.
24864 (altivec_vspltw): Divide into a define_expand and a new
24865 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24866 little endian target.
24867 (altivec_vspltw_direct): New.
24868 (altivec_vspltsf): Divide into a define_expand and a new
24869 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24870 a little endian target.
24872 2014-01-30 Richard Biener <rguenther@suse.de>
24874 PR tree-optimization/59993
24875 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24876 can propagate form the earlier stmt and avoid the transform
24877 when the intermediate result is needed.
24879 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24881 * README.Portability: Fix typo.
24883 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24885 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24886 comparison_operator with ordered_comparison_operator.
24888 2014-01-30 Nick Clifton <nickc@redhat.com>
24890 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24891 Rename to mn10300_store_multiple_regs.
24892 * config/mn10300/mn10300.c: Likewise.
24893 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24894 store_multiple_regs.
24895 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24896 Call mn10300_store_multiple_regs.
24898 2014-01-30 Nick Clifton <nickc@redhat.com>
24899 DJ Delorie <dj@redhat.com>
24901 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24902 %fp 2 to keep registers after it properly word-aligned.
24903 (rl78_alloc_physical_registers_umul): Handle the case where both
24904 input operands are the same.
24906 2014-01-30 Richard Biener <rguenther@suse.de>
24908 PR tree-optimization/59903
24909 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24912 2014-01-30 Jason Merrill <jason@redhat.com>
24915 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24918 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24920 2014-01-30 Richard Biener <rguenther@suse.de>
24922 PR tree-optimization/59951
24923 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24925 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24928 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24929 SFmode to DFmode case.
24931 2014-01-29 DJ Delorie <dj@redhat.com>
24933 * config/msp430/msp430.opt (-minrt): New.
24934 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24936 (ENDFILE_SPEC): Likewise.
24938 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24940 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24941 (estimate_function_body_sizes): Use it.
24943 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24946 * dwarf2out.c (is_cxx_auto): New.
24947 (is_base_type): Use it.
24948 (gen_type_die_with_usage): Likewise.
24950 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24952 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24953 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24954 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24955 -maltivec=be with LE targets.
24956 (vsx_mergeh_<mode>): Likewise.
24957 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24958 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24959 (altivec_vmrghb): Replace with define_expand and new
24960 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24961 (altivec_vmrghb_direct): New define_insn.
24962 (altivec_vmrghh): Replace with define_expand and new
24963 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24964 (altivec_vmrghh_direct): New define_insn.
24965 (altivec_vmrghw): Replace with define_expand and new
24966 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24967 (altivec_vmrghw_direct): New define_insn.
24968 (*altivec_vmrghsf): Adjust for endianness.
24969 (altivec_vmrglb): Replace with define_expand and new
24970 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24971 (altivec_vmrglb_direct): New define_insn.
24972 (altivec_vmrglh): Replace with define_expand and new
24973 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24974 (altivec_vmrglh_direct): New define_insn.
24975 (altivec_vmrglw): Replace with define_expand and new
24976 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24977 (altivec_vmrglw_direct): New define_insn.
24978 (*altivec_vmrglsf): Adjust for endianness.
24979 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24980 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24981 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24982 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24983 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24984 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24985 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24986 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24988 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24990 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24991 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24994 2014-01-29 Richard Biener <rguenther@suse.de>
24996 PR tree-optimization/58742
24997 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24998 associate_pointerplus_align.
24999 (associate_pointerplus_diff): New function.
25000 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25001 and associate_pointerplus_diff.
25003 2014-01-29 Richard Biener <rguenther@suse.de>
25005 * lto-streamer.h (LTO_major_version): Bump to 3.
25006 (LTO_minor_version): Reset to 0.
25008 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25010 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25011 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25012 (arm_file_start): Generate correct asm header for armv7ve.
25013 * config/arm/bpabi.h: Add multilib support for armv7ve.
25014 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25015 and cortex-a15 to armv7ve.
25016 * config/arm/t-aprofile: Add multilib support for armv7ve.
25017 * doc/invoke.texi: Document -march=armv7ve.
25019 2014-01-29 Richard Biener <rguenther@suse.de>
25021 PR tree-optimization/58742
25022 * tree-ssa-forwprop.c (associate_plusminus): Return true
25023 if we changed sth, defer EH cleanup to ...
25024 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25025 (simplify_mult): New function.
25027 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25029 PR middle-end/59917
25030 PR tree-optimization/59920
25031 * tree.c (build_common_builtin_nodes): Remove
25032 __builtin_setjmp_dispatcher initialization.
25033 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25034 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25035 instead of gsi_after_labels + manually skipping debug stmts.
25036 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25037 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25038 * tree-inline.c (copy_edges_for_bb): Remove
25039 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25040 argument. Ignore computed_goto_p stmts. Don't call
25041 make_abnormal_goto_edges. If a call might need abnormal edges
25042 for non-local gotos, see if it already has an edge to
25043 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25044 with true argument, don't do anything then, otherwise add
25045 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25046 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25048 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25049 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25050 (lower_stmt): Don't set data->calls_builtin_setjmp.
25051 (lower_builtin_setjmp): Adjust comment.
25052 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25053 * tree-cfg.c (found_computed_goto): Remove.
25054 (factor_computed_gotos): Remove.
25055 (make_goto_expr_edges): Return bool, true for computed gotos.
25056 Don't call make_abnormal_goto_edges.
25057 (build_gimple_cfg): Don't set found_computed_goto, don't call
25058 factor_computed_gotos.
25059 (computed_goto_p): No longer static.
25060 (make_blocks): Don't set found_computed_goto.
25061 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25062 (make_edges): If make_goto_expr_edges returns true, push bb
25063 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25064 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25065 vector. Record mapping between bbs and OpenMP regions if there
25066 are any, adjust make_gimple_omp_edges caller. Call
25067 handle_abnormal_edges.
25068 (make_abnormal_goto_edges): Remove.
25069 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25070 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25071 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25072 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25073 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25074 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25075 filling *region also set *region_idx to (*region)->entry->index.
25078 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25079 For REGs set ORIGINAL_REGNO.
25081 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25083 * doc/md.texi: Mention that a target shouldn't implement
25084 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25087 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25089 PR tree-optimization/59594
25090 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25091 a copy of the datarefs vector rather than the vector itself.
25093 2014-01-28 Jason Merrill <jason@redhat.com>
25096 * dwarf2out.c (auto_die): New static.
25097 (gen_type_die_with_usage): Handle C++1y 'auto'.
25098 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25101 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25104 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25105 (SPEC_X32): Likewise.
25106 (SPEC_64): Likewise.
25107 * config/i386/i386.c (ix86_option_override_internal): Turn off
25108 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25110 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25111 * config/i386/i386.h (TARGET_16BIT): New macro.
25112 (TARGET_16BIT_P): Likewise.
25113 * config/i386/i386.opt: Add m16.
25114 * doc/invoke.texi: Document -m16.
25116 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25118 PR preprocessor/59935
25119 * input.c (location_get_source_line): Bail out on when line number
25120 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25122 2014-01-28 Richard Biener <rguenther@suse.de>
25124 PR tree-optimization/58742
25125 * tree-ssa-forwprop.c (associate_plusminus): Handle
25126 pointer subtraction of the form (T)(P + A) - (T)P.
25128 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25130 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25133 2014-01-28 Richard Biener <rguenther@suse.de>
25136 2014-01-28 Richard Biener <rguenther@suse.de>
25138 PR rtl-optimization/45364
25139 PR rtl-optimization/59890
25140 * var-tracking.c (local_get_addr_clear_given_value): Handle
25141 already cleared slot.
25142 (val_reset): Handle not allocated local_get_addr_cache.
25143 (vt_find_locations): Use post-order on the inverted CFG.
25145 2014-01-28 Richard Biener <rguenther@suse.de>
25147 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25149 2014-01-28 Richard Biener <rguenther@suse.de>
25151 PR rtl-optimization/45364
25152 PR rtl-optimization/59890
25153 * var-tracking.c (local_get_addr_clear_given_value): Handle
25154 already cleared slot.
25155 (val_reset): Handle not allocated local_get_addr_cache.
25156 (vt_find_locations): Use post-order on the inverted CFG.
25158 2014-01-28 Alan Modra <amodra@gmail.com>
25160 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25161 * configure.ac <recursive call for build != host>: Define
25162 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25163 and LD_FOR_BUILD too.
25164 * configure: Regenerate.
25166 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25168 * config/i386/i386.c (get_builtin_code_for_version): Separate
25169 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25170 Broadwell from Haswell.
25172 2014-01-27 Steve Ellcey <sellcey@mips.com>
25174 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25175 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25176 * config/mips/mips.c (mips_option_override): Change setting
25178 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25179 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25180 Change from Mask to Var.
25182 2014-01-27 Jeff Law <law@redhat.com>
25184 * ipa-inline.c (inline_small_functions): Fix typo.
25186 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25188 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25189 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25190 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25191 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25192 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25193 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25194 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25195 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25196 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25197 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25198 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25199 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25200 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25201 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25202 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25203 (_mm512_storeu_epi64): Ditto.
25204 (_mm512_cmpge_epi32_mask): Ditto.
25205 (_mm512_cmpge_epu32_mask): Ditto.
25206 (_mm512_cmpge_epi64_mask): Ditto.
25207 (_mm512_cmpge_epu64_mask): Ditto.
25208 (_mm512_cmple_epi32_mask): Ditto.
25209 (_mm512_cmple_epu32_mask): Ditto.
25210 (_mm512_cmple_epi64_mask): Ditto.
25211 (_mm512_cmple_epu64_mask): Ditto.
25212 (_mm512_cmplt_epi32_mask): Ditto.
25213 (_mm512_cmplt_epu32_mask): Ditto.
25214 (_mm512_cmplt_epi64_mask): Ditto.
25215 (_mm512_cmplt_epu64_mask): Ditto.
25216 (_mm512_cmpneq_epi32_mask): Ditto.
25217 (_mm512_cmpneq_epu32_mask): Ditto.
25218 (_mm512_cmpneq_epi64_mask): Ditto.
25219 (_mm512_cmpneq_epu64_mask): Ditto.
25220 (_mm512_expand_pd): Ditto.
25221 (_mm512_expand_ps): Ditto.
25222 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25223 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25224 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25225 * config/i386/i386.c (ix86_builtins): Add
25226 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25227 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25228 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25229 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25230 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25231 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25232 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25233 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25234 IX86_BUILTIN_PMOVUSQW512_MEM.
25235 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25236 __builtin_ia32_pmovsqd512mem_mask,
25237 __builtin_ia32_pmovqd512mem_mask,
25238 __builtin_ia32_pmovusqw512mem_mask,
25239 __builtin_ia32_pmovsqw512mem_mask,
25240 __builtin_ia32_pmovqw512mem_mask,
25241 __builtin_ia32_pmovusdw512mem_mask,
25242 __builtin_ia32_pmovsdw512mem_mask,
25243 __builtin_ia32_pmovdw512mem_mask,
25244 __builtin_ia32_pmovqb512mem_mask,
25245 __builtin_ia32_pmovusqb512mem_mask,
25246 __builtin_ia32_pmovsqb512mem_mask,
25247 __builtin_ia32_pmovusdb512mem_mask,
25248 __builtin_ia32_pmovsdb512mem_mask,
25249 __builtin_ia32_pmovdb512mem_mask.
25250 (bdesc_args): Add __builtin_ia32_expanddf512,
25251 __builtin_ia32_expandsf512.
25252 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25253 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25254 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25255 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25256 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25257 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25258 (avx512f_<code>v8div16qi2_mask_store): This.
25259 (avx512f_expand<mode>): New.
25261 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25263 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25265 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25266 (_mm512_prefetch_i32scatter_pd): Ditto.
25267 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25268 (_mm512_prefetch_i64scatter_pd): Ditto.
25269 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25270 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25271 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25272 (_mm512_prefetch_i32scatter_ps): Ditto.
25273 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25274 (_mm512_prefetch_i64scatter_ps): Ditto.
25275 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25276 * config/i386/i386-builtin-types.def: Define
25277 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25278 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25279 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25280 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25281 IX86_BUILTIN_SCATTERPFQPD.
25282 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25283 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25284 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25285 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25286 __builtin_ia32_scatterpfqps.
25287 (ix86_expand_builtin): Expand new built-ins.
25288 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25289 fix memory access data type.
25290 (*avx512pf_gatherpf<mode>_mask): Ditto.
25291 (*avx512pf_gatherpf<mode>): Ditto.
25292 (avx512pf_scatterpf<mode>): Ditto.
25293 (*avx512pf_scatterpf<mode>_mask): Ditto.
25294 (*avx512pf_scatterpf<mode>): Ditto.
25295 (GATHER_SCATTER_SF_MEM_MODE): New.
25296 (avx512pf_gatherpf<mode>df): Ditto.
25297 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25298 (*avx512pf_scatterpf<mode>df): Ditto.
25300 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25303 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25304 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25307 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25309 * common/config/arm/arm-common.c
25310 (arm_rewrite_mcpu): Handle multiple names.
25312 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25314 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25316 * gimple-builder.h (create_gimple_tmp): Delete.
25318 2014-01-27 Christian Bruel <christian.bruel@st.com>
25320 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25323 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25325 * config/pa/pa.md (call): Generate indirect long calls to non-local
25326 functions when outputing 32-bit code.
25327 (call_value): Likewise except for special call to buggy powf function.
25329 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25330 portable runtime and PIC indirect calls.
25331 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25332 and PIC call sequences. Use ldo instead of blr to set return register
25333 in PIC call sequence.
25335 2014-01-25 Walter Lee <walt@tilera.com>
25337 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25338 avoid clobbering a live register.
25340 2014-01-25 Walter Lee <walt@tilera.com>
25342 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25343 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25344 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25345 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25347 2014-01-25 Walter Lee <walt@tilera.com>
25349 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25350 arguments on even registers.
25351 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25353 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25354 (BIGGEST_ALIGNMENT): Ditto.
25355 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25357 2014-01-25 Walter Lee <walt@tilera.com>
25359 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25360 insns before bundling.
25361 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25363 2014-01-25 Walter Lee <walt@tilera.com>
25365 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25366 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25367 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25369 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25371 * config/mips/constraints.md (kl): Delete.
25372 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25373 define expands, using...
25374 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25375 instructions for MIPS16.
25376 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25377 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25379 2014-01-25 Walter Lee <walt@tilera.com>
25381 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25385 2014-01-25 Walter Lee <walt@tilera.com>
25387 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25388 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25390 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25392 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25395 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25397 * print-rtl.c (in_call_function_usage): New var.
25398 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25399 EXPR_LIST mode as mode and not as reg note name.
25401 PR middle-end/59561
25402 * cfgloopmanip.c (copy_loop_info): If
25403 loop->warned_aggressive_loop_optimizations, make sure
25404 the flag is set in target loop too.
25406 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25408 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25410 * builtins.def: Likewise.
25411 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25412 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25413 * ira.c (ira_setup_eliminable_regset): Likewise.
25414 * omp-low.c (gate_expand_omp): Likewise.
25415 (execute_lower_omp): Likewise.
25416 (diagnose_sb_0): Likewise.
25417 (gate_diagnose_omp_blocks): Likewise.
25418 (simd_clone_clauses_extract): Likewise.
25421 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25423 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25424 correction for little endian...
25425 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25428 2014-01-24 Jeff Law <law@redhat.com>
25430 PR tree-optimization/59919
25431 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25432 for non-returning calls.
25434 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25436 * common/config/aarch64/aarch64-common.c
25437 (aarch64_rewrite_mcpu): Handle multiple names.
25438 * config/aarch64/aarch64.h
25439 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25441 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25443 * input.c (add_file_to_cache_tab): Handle the case where fopen
25446 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25449 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25450 from push operand if code of push isn't PRE_DEC.
25452 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25455 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25456 -mquad-memory-atomic. Update -mquad-memory documentation to say
25457 it is only used for non-atomic loads/stores.
25459 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25460 -mquad-memory or -mquad-memory-atomic switches.
25462 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25463 -mquad-memory-atomic to ISA 2.07 support.
25465 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25466 to separate support of normal quad word memory operations (ldq, stq)
25467 from the atomic quad word memory operations.
25469 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25470 support to separate non-atomic quad word operations from atomic
25471 quad word operations. Disable non-atomic quad word operations in
25472 little endian mode so that we don't have to swap words after the
25473 load and before the store.
25474 (quad_load_store_p): Add comment about atomic quad word support.
25475 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25476 options printed with -mdebug=reg.
25478 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25479 -mquad-memory-atomic as the test for whether we have quad word
25480 atomic instructions.
25481 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25482 or -mp8-vector are used, allow byte/half-word atomic operations.
25484 * config/rs6000/sync.md (load_lockedti): Insure that the address
25485 is a proper indexed or indirect address for the lqarx instruction.
25486 On little endian systems, swap the hi/lo registers after the lqarx
25488 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25489 insure the address is valid for the lqarx instruction.
25490 (store_conditionalti): Insure that the address is a proper indexed
25491 or indirect address for the stqcrx. instruction. On little endian
25492 systems, swap the hi/lo registers before doing the stqcrx.
25494 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25495 insure the address is valid for the stqcrx. instruction.
25497 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25498 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25499 type of quad memory support is available.
25501 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25503 PR regression/59915
25504 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25505 there is a danger of looping.
25507 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25509 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25510 force flag_ira_loop_pressure if set via command line.
25512 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25514 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25515 (ashr_simd): New builtin handling DI mode.
25516 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25517 (aarch64_sshr_simddi): New match pattern.
25518 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25519 (vshrd_n_s64): Likewise.
25520 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25522 2014-01-23 Nick Clifton <nickc@redhat.com>
25524 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25525 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25526 favour of mcu specific scripts.
25527 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25530 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25531 Alex Velenko <Alex.Velenko@arm.com>
25533 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25534 (vaddv_s16): Likewise.
25535 (vaddv_s32): Likewise.
25536 (vaddv_u8): Likewise.
25537 (vaddv_u16): Likewise.
25538 (vaddv_u32): Likewise.
25539 (vaddvq_s8): Likewise.
25540 (vaddvq_s16): Likewise.
25541 (vaddvq_s32): Likewise.
25542 (vaddvq_s64): Likewise.
25543 (vaddvq_u8): Likewise.
25544 (vaddvq_u16): Likewise.
25545 (vaddvq_u32): Likewise.
25546 (vaddvq_u64): Likewise.
25547 (vaddv_f32): Likewise.
25548 (vaddvq_f32): Likewise.
25549 (vaddvq_f64): Likewise.
25550 (vmaxv_f32): Likewise.
25551 (vmaxv_s8): Likewise.
25552 (vmaxv_s16): Likewise.
25553 (vmaxv_s32): Likewise.
25554 (vmaxv_u8): Likewise.
25555 (vmaxv_u16): Likewise.
25556 (vmaxv_u32): Likewise.
25557 (vmaxvq_f32): Likewise.
25558 (vmaxvq_f64): Likewise.
25559 (vmaxvq_s8): Likewise.
25560 (vmaxvq_s16): Likewise.
25561 (vmaxvq_s32): Likewise.
25562 (vmaxvq_u8): Likewise.
25563 (vmaxvq_u16): Likewise.
25564 (vmaxvq_u32): Likewise.
25565 (vmaxnmv_f32): Likewise.
25566 (vmaxnmvq_f32): Likewise.
25567 (vmaxnmvq_f64): Likewise.
25568 (vminv_f32): Likewise.
25569 (vminv_s8): Likewise.
25570 (vminv_s16): Likewise.
25571 (vminv_s32): Likewise.
25572 (vminv_u8): Likewise.
25573 (vminv_u16): Likewise.
25574 (vminv_u32): Likewise.
25575 (vminvq_f32): Likewise.
25576 (vminvq_f64): Likewise.
25577 (vminvq_s8): Likewise.
25578 (vminvq_s16): Likewise.
25579 (vminvq_s32): Likewise.
25580 (vminvq_u8): Likewise.
25581 (vminvq_u16): Likewise.
25582 (vminvq_u32): Likewise.
25583 (vminnmv_f32): Likewise.
25584 (vminnmvq_f32): Likewise.
25585 (vminnmvq_f64): Likewise.
25587 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25589 * config/aarch64/aarch64-simd.md
25590 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25591 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25592 (*aarch64_mul3_elt<mode>): Likewise.
25593 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25594 (*aarch64_mul3_elt_to_64v2df): Likewise.
25595 (*aarch64_mla_elt<mode>): Likewise.
25596 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25597 (*aarch64_mls_elt<mode>): Likewise.
25598 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25599 (*aarch64_fma4_elt<mode>): Likewise.
25600 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25601 (*aarch64_fma4_elt_to_64v2df): Likewise.
25602 (*aarch64_fnma4_elt<mode>): Likewise.
25603 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25604 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25605 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25606 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25607 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25608 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25609 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25610 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25611 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25613 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25615 * config/aarch64/aarch64-simd.md
25616 (aarch64_be_checked_get_lane<mode>): New define_expand.
25617 * config/aarch64/aarch64-simd-builtins.def
25618 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25619 New builtin definition.
25620 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25621 Use new safe be builtin.
25623 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25625 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25627 (aarch64_be_st1<mode>): Likewise.
25628 (aarch_ld1<VALL:mode>): Define_expand modified.
25629 (aarch_st1<VALL:mode>): Likewise.
25630 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25631 (UNSPEC_ST1): Likewise.
25633 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25635 * config/microblaze/microblaze.md: Add trap insn and attribute
25637 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25639 PR preprocessor/58580
25640 * input.h (location_get_source_line): Take an additional line_size
25642 (void diagnostics_file_cache_fini): Declare new function.
25643 * input.c (struct fcache): New type.
25644 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25645 New static constants.
25646 (diagnostic_file_cache_init, total_lines_num)
25647 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25648 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25649 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25650 (get_next_line, read_next_line, goto_next_line, read_line_num):
25651 New static function definitions.
25652 (diagnostic_file_cache_fini): New function.
25653 (location_get_source_line): Take an additional output line_len
25654 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25656 * diagnostic.c (diagnostic_finish): Call
25657 diagnostic_file_cache_fini.
25658 (adjust_line): Take an additional input parameter for the length
25659 of the line, rather than calculating it with strlen.
25660 (diagnostic_show_locus): Adjust the use of
25661 location_get_source_line and adjust_line with respect to their new
25662 signature. While displaying a line now, do not stop at the first
25663 null byte. Rather, display the zero byte as a space and keep
25664 going until we reach the size of the line.
25665 * Makefile.in: Add vec.o to OBJS-libcommon
25667 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25668 Ilya Tocar <ilya.tocar@intel.com>
25670 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25671 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25672 (__builtin_ia32_kmov16): Ditto.
25673 * config/i386/i386.md (UNSPEC_KMOV): New.
25676 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25678 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25679 (_mm512_storeu_si512): Ditto.
25681 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25684 * rtl.h (get_referenced_operands): Declare.
25685 * recog.c (get_referenced_operands): New function.
25686 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25687 operands have been referenced when recording LO_SUM references.
25689 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25691 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25693 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25695 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25696 Enable for generic and recent AMD targets.
25698 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25700 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25701 ARG_SIZE note when adjustment was eliminated.
25703 2014-01-22 Jeff Law <law@redhat.com>
25705 PR tree-optimization/59597
25706 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25707 in file. Accept new argument REGISTERING and use it to modify
25708 dump output appropriately.
25709 (register_jump_thread): Corresponding changes.
25710 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25711 thread paths involving joiner blocks. Add code to dump cancelled
25712 jump threading paths.
25714 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25716 PR rtl-optimization/59477
25717 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25718 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25720 2014-01-22 Tom Tromey <tromey@redhat.com>
25722 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25724 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25726 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25728 PR rtl-optimization/59896
25729 * lra-constraints.c (process_alt_operands): Check unused note for
25730 matched operands of insn with no output reloads.
25732 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25734 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25735 (mips_move_from_gpr_cost): Likewise.
25737 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25739 PR rtl-optimization/59858
25740 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25741 ira_class_hard_regs_num.
25742 (process_alt_operands): Increase reject for dying matched operand.
25744 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25747 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25748 smaller than size, perform several stores or loads and stores
25749 at dst + count - size to store or copy all of size bytes, rather
25750 than just last modesize bytes.
25752 2014-01-20 DJ Delorie <dj@redhat.com>
25754 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25755 that CLOBBERs are REGs before propogating their values.
25757 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25759 PR middle-end/59789
25760 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25761 (cgraph_inline_failed_type): New function.
25762 * cgraph.h (DEFCIFCODE): Add type.
25763 (cgraph_inline_failed_type_t): New enum.
25764 (cgraph_inline_failed_type): New prototype.
25765 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25766 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25767 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25768 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25769 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25770 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25771 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25772 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25773 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25774 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25775 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25776 OPTIMIZATION_MISMATCH.
25777 * tree-inline.c (expand_call_inline): Emit errors during
25778 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25780 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25783 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25784 mode attribute in insn output.
25786 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25788 * output.h (output_constant): Delete.
25789 * varasm.c (output_constant): Make private.
25791 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25793 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25795 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25797 PR middle-end/59860
25798 * tree.h (fold_builtin_strcat): New prototype.
25799 * builtins.c (fold_builtin_strcat): No longer static. Add len
25800 argument, if non-NULL, don't call c_strlen. Optimize
25801 directly into __builtin_memcpy instead of __builtin_strcpy.
25802 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25803 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25805 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25807 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25808 for SImode_address_operand operands, having only a REG argument.
25810 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25812 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25813 loader name using mbig-endian.
25814 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25816 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25818 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25819 (-mtune): Likewise.
25822 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25824 * config/aarch64/aarch64-protos.h
25825 (aarch64_cannot_change_mode_class_ptr): Declare.
25826 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25827 aarch64_cannot_change_mode_class_ptr): New.
25828 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25829 backend hook aarch64_cannot_change_mode_class.
25831 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25833 * common/config/aarch64/aarch64-common.c
25834 (aarch64_handle_option): Don't handle any option order logic here.
25835 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25836 selected_cpu, warn on architecture version mismatch.
25837 (aarch64_override_options): Fix parsing order for option strings.
25839 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25840 Iain Sandoe <iain@codesourcery.com>
25843 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25844 warning. Amend comment to reflect current functionality.
25846 2014-01-20 Richard Biener <rguenther@suse.de>
25848 PR middle-end/59860
25849 * builtins.c (fold_builtin_strcat): Remove case better handled
25850 by tree-ssa-strlen.c.
25852 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25854 * config/aarch64/aarch64.opt
25855 (mcpu, march, mtune): Make case-insensitive.
25857 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25860 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25861 if operands[1] is a REG or ZERO_EXTEND of a REG.
25863 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25865 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25867 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25869 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25870 long non-pic millicode calls.
25872 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25874 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25876 2014-01-19 Kito Cheng <kito@0xlab.org>
25878 * builtins.c (expand_movstr): Check movstr expand done or fail.
25880 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25881 H.J. Lu <hongjiu.lu@intel.com>
25884 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25885 to DImode for zero-extended addresses.
25887 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25889 PR rtl-optimization/57763
25890 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25891 on the new indirect jump_insn and increment LABEL_NUSES (label).
25893 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25897 * config.gcc (x86_archs): New variable.
25898 (x86_64_archs): Likewise.
25899 (x86_cpus): Likewise.
25900 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25901 --with-arch/--with-cpu= options.
25902 Support --with-arch=/--with-cpu={nehalem,westmere,
25903 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25905 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25907 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25908 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25910 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25912 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25914 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25917 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25918 clear cpp_get_options (parse_in)->warn_unused_macros for
25919 ix86_target_macros_internal with cpp_define.
25921 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25923 * jump.c (delete_related_insns): Keep (use (insn))s.
25924 * reorg.c (redundant_insn): Check for barriers too.
25926 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25928 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25930 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25932 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25933 call to $$dyncall when TARGET_LONG_CALLS is true.
25935 2014-01-17 Jeff Law <law@redhat.com>
25937 * ree.c (combine_set_extension): Temporarily disable test for
25938 changing number of hard registers.
25940 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25942 PR middle-end/58125
25943 * ipa-inline-analysis.c (inline_free_summary):
25944 Do not free summary of aliases.
25946 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25948 PR middle-end/59706
25949 * gimplify.c (gimplify_expr): Use create_tmp_var
25950 instead of create_tmp_var_raw. If cond doesn't have
25951 integral type, don't add the IFN_ANNOTATE builtin at all.
25953 2014-01-17 Martin Jambor <mjambor@suse.cz>
25956 * ipa-cp.c (prev_edge_clone): New variable.
25957 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25958 Also resize prev_edge_clone vector.
25959 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25960 (ipcp_edge_removal_hook): New function.
25961 (ipcp_driver): Register ipcp_edge_removal_hook.
25963 2014-01-17 Andrew Pinski <apinski@cavium.com>
25964 Steve Ellcey <sellcey@mips.com>
25967 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25970 2014-01-17 Jeff Law <law@redhat.com>
25972 PR middle-end/57904
25973 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25974 so that pass_ccp runs first.
25976 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25978 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25979 (ix86_adjust_cost): Use !TARGET_XXX.
25980 (do_reorder_for_imul): Likewise.
25981 (swap_top_of_ready_list): Likewise.
25982 (ix86_sched_reorder): Likewise.
25984 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25986 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25987 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25988 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25989 (intel_memset): New. Duplicate slm_memset.
25990 (intel_cost): New. Duplicate slm_cost.
25991 (m_INTEL): New macro.
25992 (processor_target_table): Add "intel".
25993 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25994 with PROCESSOR_INTEL for "intel".
25995 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25996 PROCESSOR_SILVERMONT.
25997 (ix86_issue_rate): Likewise.
25998 (ix86_adjust_cost): Likewise.
25999 (ia32_multipass_dfa_lookahead): Likewise.
26000 (swap_top_of_ready_list): Likewise.
26001 (ix86_sched_reorder): Likewise.
26002 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26003 instead of TARGET_OPT_AGU.
26004 * config/i386/i386.h (TARGET_INTEL): New.
26005 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26006 (processor_type): Add PROCESSOR_INTEL.
26007 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26008 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26010 2014-01-17 Marek Polacek <polacek@redhat.com>
26013 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26016 2014-01-17 Richard Biener <rguenther@suse.de>
26018 PR tree-optimization/46590
26019 * opts.c (default_options_table): Add entries for
26020 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26021 all enabled at -O1 but not for -Og.
26022 * common.opt (fbranch-count-reg): Remove Init(1).
26023 (fmove-loop-invariants): Likewise.
26024 (ftree-pta): Likewise.
26026 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26028 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26029 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26030 decls to at least the GCC 4.8 used alignments.
26033 * tree-nested.c (convert_nonlocal_reference_stmt,
26034 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26035 of GIMPLE_BIND stmts, adjust associated decls.
26037 2014-01-17 Richard Biener <rguenther@suse.de>
26039 PR tree-optimization/46590
26040 * vec.h (vec<>::bseach): New member function implementing
26041 binary search according to C89 bsearch.
26042 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26043 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26044 bitmap pointer again. Make accesses_in_loop a flat array.
26045 (mem_ref_obstack): New global.
26046 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26047 (mark_ref_stored): Likewise.
26048 (ref_indep_loop_p_2): Likewise.
26049 (set_ref_stored_in_loop): New helper function.
26050 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26051 (memref_free): Adjust.
26052 (record_mem_ref_loc): Simplify.
26053 (gather_mem_refs_stmt): Adjust.
26054 (sort_locs_in_loop_postorder_cmp): New function.
26055 (analyze_memory_references): Sort accesses_in_loop after
26056 loop postorder number.
26057 (find_ref_loc_in_loop_cmp): New function.
26058 (for_all_locs_in_loop): Find relevant cluster of locs in
26059 accesses_in_loop and iterate without recursion.
26060 (execute_sm): Avoid uninit warning.
26061 (struct ref_always_accessed): Simplify.
26062 (ref_always_accessed::operator ()): Likewise.
26063 (ref_always_accessed_p): Likewise.
26064 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26065 loop postorder numbers here.
26066 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26069 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26072 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26073 on decls for which assemble_alias has been called.
26075 2014-01-17 Nick Clifton <nickc@redhat.com>
26077 * config/msp430/msp430.opt: (mcpu): New option.
26078 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26079 (msp430_option_override): Parse target_cpu. If the MCU name
26080 matches a generic string, clear target_mcu.
26081 (msp430_attr): Allow numeric interrupt values up to 63.
26082 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26083 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26085 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26087 * config/msp430/msp430.md (popm): Use %J rather than %I.
26088 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26089 (addhi_cy_i): Use immediate_operand for operand 2.
26090 * doc/invoke.texi: Document -mcpu option.
26092 2014-01-17 Richard Biener <rguenther@suse.de>
26094 PR rtl-optimization/38518
26095 * df.h (df_analyze_loop): Declare.
26096 * df-core.c: Include cfgloop.h.
26097 (df_analyze_1): Split out main part of df_analyze.
26098 (df_analyze): Adjust.
26099 (loop_inverted_post_order_compute): New function.
26100 (loop_post_order_compute): Likewise.
26101 (df_analyze_loop): New function avoiding whole-function
26102 postorder computes.
26103 * loop-invariant.c (find_defs): Use df_analyze_loop.
26104 (find_invariants): Adjust.
26105 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26107 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26109 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26110 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26112 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26114 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26115 traversal when removing references.
26117 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26120 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26122 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26124 PR middle-end/56791
26125 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26126 pushing a reload for an autoinc when we had previously reloaded an
26127 inner part of the address.
26129 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26131 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26133 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26134 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26135 when not giving up or versioning for alias only because of
26137 (vect_analyze_data_ref_dependences): Set to true.
26138 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26140 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26141 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26144 PR middle-end/58344
26145 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26148 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26149 operand 0 predicate for gathers, use a new pseudo as subtarget.
26151 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26153 PR middle-end/59609
26154 * lra-constraints.c (process_alt_operands): Add printing debug info.
26155 Check absence of input/output reloads for matched operands too.
26157 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26159 PR rtl-optimization/59835
26160 * ira.c (ira_init_register_move_cost): Increase cost for
26163 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26165 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26167 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26170 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26171 non-register objects. Use gen_(high/low)part more consistently.
26174 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26177 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26178 endian support, remove tests for WORDS_BIG_ENDIAN.
26179 (p8_mfvsrd_3_<mode>): Likewise.
26180 (reload_gpr_from_vsx<mode>): Likewise.
26181 (reload_gpr_from_vsxsf): Likewise.
26182 (p8_mfvsrd_4_disf): Likewise.
26184 2014-01-16 Richard Biener <rguenther@suse.de>
26186 PR rtl-optimization/46590
26187 * lcm.c (compute_antinout_edge): Use postorder iteration.
26188 (compute_laterin): Use inverted postorder iteration.
26190 2014-01-16 Nick Clifton <nickc@redhat.com>
26192 PR middle-end/28865
26193 * varasm.c (output_constant): Return the number of bytes actually
26195 (output_constructor_array_range): Update the field size with the
26196 number of bytes emitted by output_constant.
26197 (output_constructor_regular_field): Likewise. Also do not
26198 complain if the total number of bytes emitted is now greater
26199 than the expected fieldpos.
26200 * output.h (output_constant): Update prototype and descriptive comment.
26202 2014-01-16 Marek Polacek <polacek@redhat.com>
26204 PR middle-end/59827
26205 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26206 it is error_mark_node.
26208 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26210 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26211 VALID_AVX256_REG_OR_OI_MODE.
26213 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26215 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26216 current procedure should be profiled.
26218 2014-01-15 Andrew Pinski <apinski@cavium.com>
26220 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26221 of moving from/to the STACK_REG register class.
26223 2014-01-15 Richard Henderson <rth@redhat.com>
26226 * reginfo.c (global_regs_decl): Globalize.
26227 * rtl.h (global_regs_decl): Declare.
26228 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26229 reserved via global_regs.
26231 2014-01-15 Teresa Johnson <tejohnson@google.com>
26233 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26235 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26237 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26238 and vmulosh rather than call gen_vec_widen_smult_*.
26239 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26240 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26241 (vec_widen_smult_even_v16qi): Likewise.
26242 (vec_widen_umult_even_v8hi): Likewise.
26243 (vec_widen_smult_even_v8hi): Likewise.
26244 (vec_widen_umult_odd_v16qi): Likewise.
26245 (vec_widen_smult_odd_v16qi): Likewise.
26246 (vec_widen_umult_odd_v8hi): Likewise.
26247 (vec_widen_smult_odd_v8hi): Likewise.
26248 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26249 vmuloub rather than call gen_vec_widen_umult_*.
26250 (vec_widen_umult_lo_v16qi): Likewise.
26251 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26252 vmulosb rather than call gen_vec_widen_smult_*.
26253 (vec_widen_smult_lo_v16qi): Likewise.
26254 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26255 rather than call gen_vec_widen_umult_*.
26256 (vec_widen_umult_lo_v8hi): Likewise.
26257 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26258 rather than call gen_vec_widen_smult_*.
26259 (vec_widen_smult_lo_v8hi): Likewise.
26261 2014-01-15 Jeff Law <law@redhat.com>
26263 PR tree-optimization/59747
26264 * ree.c (find_and_remove_re): Properly handle case where a second
26265 eliminated extension requires widening a copy created for elimination
26266 of a prior extension.
26267 (combine_set_extension): Ensure that the number of hard regs needed
26268 for a destination register does not change when we widen it.
26270 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26272 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26273 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26274 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26275 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26276 (avr-*-rtems*): Likewise.
26277 (bfin*-rtems*): Likewise.
26278 (moxie-*-rtems*): Likewise.
26279 (h8300-*-rtems*): Likewise.
26280 (i[34567]86-*-rtems*): Likewise.
26281 (lm32-*-rtems*): Likewise.
26282 (m32r-*-rtems*): Likewise.
26283 (m68k-*-rtems*): Likewise.
26284 (microblaze*-*-rtems*): Likewise.
26285 (mips*-*-rtems*): Likewise.
26286 (powerpc-*-rtems*): Likewise.
26287 (sh-*-rtems*): Likewise.
26288 (sparc-*-rtems*): Likewise.
26289 (sparc64-*-rtems*): Likewise.
26290 (v850-*-rtems*): Likewise.
26291 (m32c-*-rtems*): Likewise.
26293 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26295 PR rtl-optimization/59511
26296 * ira.c (ira_init_register_move_cost): Use memory costs for some
26297 cases of register move cost calculations.
26298 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26299 instead of BB frequency.
26300 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26301 * lra-assigns.c (find_hard_regno_for): Ditto.
26303 2014-01-15 Richard Biener <rguenther@suse.de>
26305 PR tree-optimization/59822
26306 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26307 (vectorizable_load): Use it to hoist defs of uses of invariant
26308 loads out of the loop.
26310 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26311 Kugan Vivekanandarajah <kuganv@linaro.org>
26314 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26317 2014-01-15 Richard Biener <rguenther@suse.de>
26319 PR rtl-optimization/59802
26320 * lcm.c (compute_available): Use inverted postorder to seed
26321 the initial worklist.
26323 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26326 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26327 ADDR_REGS for invalid symrefs in non-PIC code.
26329 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26332 * builtins.c (determine_block_size): Initialize *probable_max_size
26333 even if len_rtx is CONST_INT.
26335 2014-01-14 Andrew Pinski <apinski@cavium.com>
26337 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26338 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26339 (cortexa53_tunings): Likewise.
26340 (aarch64_sched_issue_rate): New function.
26341 (TARGET_SCHED_ISSUE_RATE): Define.
26343 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26345 * ira-costs.c (find_costs_and_classes): Add missed
26346 ira_init_register_move_cost_if_necessary.
26348 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26351 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26353 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26356 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26357 to indicate if type is used for function return value. Warn ABI
26358 change if the vector mode isn't available for function return value.
26359 (ix86_function_arg_advance): Pass false to type_natural_mode.
26360 (ix86_function_arg): Likewise.
26361 (ix86_gimplify_va_arg): Likewise.
26362 (function_arg_32): Don't warn ABI change.
26363 (ix86_function_value): Pass true to type_natural_mode.
26364 (ix86_return_in_memory): Likewise.
26365 (ix86_struct_value_rtx): Removed.
26366 (TARGET_STRUCT_VALUE_RTX): Likewise.
26368 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26370 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26371 converting a conditional jump into a conditional return.
26373 2014-01-14 Richard Biener <rguenther@suse.de>
26375 PR tree-optimization/58921
26376 PR tree-optimization/59006
26377 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26378 hoisting invariant stmts.
26379 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26380 invariant loads on the preheader edge if possible.
26382 2014-01-14 Joey Ye <joey.ye@arm.com>
26384 * doc/plugin.texi (Building GCC plugins): Update to C++.
26386 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26388 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26389 (_mm_rcp28_round_ss): Ditto.
26390 (_mm_rsqrt28_round_sd): Ditto.
26391 (_mm_rsqrt28_round_ss): Ditto.
26392 (_mm_rcp28_sd): Ditto.
26393 (_mm_rcp28_ss): Ditto.
26394 (_mm_rsqrt28_sd): Ditto.
26395 (_mm_rsqrt28_ss): Ditto.
26396 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26397 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26398 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26399 (IX86_BUILTIN_RCP28SD): Ditto.
26400 (IX86_BUILTIN_RCP28SS): Ditto.
26401 (IX86_BUILTIN_RSQRT28SD): Ditto.
26402 (IX86_BUILTIN_RSQRT28SS): Ditto.
26403 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26404 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26405 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26406 (ix86_expand_special_args_builtin): Expand new FTYPE.
26407 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26408 (srcp14<mode>): Make insn unary.
26409 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26410 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26411 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26412 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26413 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26414 Fix rounding: make it SAE only.
26415 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26417 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26419 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26420 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26421 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26422 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26423 (round_saeonly_mask_scalar_operand4): Ditto.
26424 (round_saeonly_mask_scalar_op3): Ditto.
26425 (round_saeonly_mask_scalar_op4): Ditto.
26427 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26429 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26430 Implement -maltivec=be for vec_insert and vec_extract.
26432 2014-01-10 DJ Delorie <dj@redhat.com>
26434 * config/msp430/msp430.md (call_internal): Don't allow memory
26435 references with SP as the base register.
26436 (call_value_internal): Likewise.
26437 * config/msp430/constraints.md (Yc): New. For memory references
26438 that don't use SP as a base register.
26440 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26441 "an integer without a # prefix"
26442 * config/msp430/msp430.md (epilogue_helper): Use it.
26444 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26447 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26448 AVX512F gather builtins.
26449 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26450 on gather decls with INTEGER_TYPE masktype.
26451 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26452 directly into the builtin rather than hoisting it before loop.
26454 PR tree-optimization/59387
26455 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26456 (scev_const_prop): If folded_casts and type has undefined overflow,
26457 use force_gimple_operand instead of force_gimple_operand_gsi and
26458 for each added stmt if it is assign with
26459 arith_code_with_undefined_signed_overflow, call
26460 rewrite_to_defined_overflow.
26461 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26462 gimple-fold.h instead.
26463 (arith_code_with_undefined_signed_overflow,
26464 rewrite_to_defined_overflow): Moved to ...
26465 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26466 rewrite_to_defined_overflow): ... here. No longer static.
26467 Include gimplify-me.h.
26468 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26469 rewrite_to_defined_overflow): New prototypes.
26471 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26473 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26475 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26477 * builtins.c (get_object_alignment_2): Minor tweak.
26478 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26480 2014-01-13 Christian Bruel <christian.bruel@st.com>
26482 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26483 optimized non constant lengths.
26485 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26488 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26489 load as __atomic_load_N if possible.
26491 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26493 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26495 (rs6000_expand_builtin): Adjust call.
26497 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26500 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26501 * config/rs6000/rs6000.c: Include target-globals.h.
26502 (rs6000_set_current_function): Instead of doing target_reinit
26503 unconditionally, use save_target_globals_default_opts and
26504 restore_target_globals.
26506 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26508 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26509 (rs6000_expand_builtin): Handle mffs and mtfsf.
26510 (rs6000_init_builtins): Define mffs and mtfsf.
26511 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26512 (rs6000_mffs): New pattern.
26513 (rs6000_mtfsf): New pattern.
26515 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26517 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26518 Start narrowing with START. Apply candidate-use pair
26519 and check overall cost in narrowing.
26520 (iv_ca_prune): Pass new argument.
26522 2014-01-10 Jeff Law <law@redhat.com>
26524 PR middle-end/59743
26525 * ree.c (combine_reaching_defs): Ensure the defining statement
26526 occurs before the extension when optimizing extensions with
26527 different source and destination hard registers.
26529 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26532 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26533 vtables into the type inheritance graph.
26535 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26537 PR rtl-optimization/59754
26538 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26539 modes in the REGNO != REGNO case.
26541 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26543 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26545 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26547 PR tree-optimization/59745
26548 * tree-predcom.c (tree_predictive_commoning_loop): Call
26549 free_affine_expand_cache if giving up because components is NULL.
26551 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26552 GC in payload of target_globals struct instead of allocating them on
26553 the heap and the larger structs separately using GC.
26554 * target-globals.h (struct target_globals): Make regs, hard_regs,
26555 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26556 of GTY((skip)) and change type to void *.
26557 (reset_target_globals): Cast loads from those fields to corresponding
26560 2014-01-10 Steve Ellcey <sellcey@mips.com>
26563 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26564 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26565 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26567 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26570 * aarch64-modes.def (CC_Zmode): New flags mode.
26571 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26572 represents an equality.
26573 (aarch64_get_condition_code): Handle CC_Zmode.
26574 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26576 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26578 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26579 extraction in good case.
26581 2014-01-10 Richard Biener <rguenther@suse.de>
26583 PR tree-optimization/59374
26584 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26585 checking after SLP discovery. Mark stmts not participating
26586 in any SLP instance properly.
26588 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26590 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26591 when handling a SET rtx.
26593 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26595 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26596 (cortex-a57): Likewise.
26597 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26599 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26601 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26602 non-iwmmxt builtins.
26604 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26608 * ipa-devirt.c record_target_from_binfo): Take as argument
26609 stack of binfos and lookup matching one for virtual inheritance.
26610 (possible_polymorphic_call_targets_1): Update.
26612 2014-01-10 Huacai Chen <chenhc@lemote.com>
26614 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26615 kernel strings for Loongson-2E/2F/3A.
26617 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26619 PR middle-end/59670
26620 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26621 is_gimple_call before calling gimple_call_internal_p.
26623 2014-01-09 Steve Ellcey <sellcey@mips.com>
26625 * Makefile.in (TREE_FLOW_H): Remove.
26626 (TREE_SSA_H): Add file names from tree-flow.h.
26627 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26628 * tree.h: Remove tree-flow.h reference.
26629 * hash-table.h: Remove tree-flow.h reference.
26630 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26631 reference with tree-ssa-loop.h.
26633 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26635 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26636 default element-order behavior for -maltivec.
26637 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26638 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26639 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26640 when targeting big endian, at least for now.
26641 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26643 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26645 PR middle-end/47735
26646 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26647 var satisfies use_register_for_decl, just take into account type
26648 alignment, rather than decl alignment.
26650 PR tree-optimization/59622
26651 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26652 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26653 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26654 Don't devirtualize for inplace at all. For targets.length () == 1,
26655 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26657 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26659 * config/i386/i386.md (cpu): Remove the unused btver1.
26661 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26663 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26665 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26668 * tree-core.h (struct target_globals): New forward declaration.
26669 (struct tree_target_option): Add globals field.
26670 * tree.h (TREE_TARGET_GLOBALS): Define.
26671 (prepare_target_option_nodes_for_pch): New prototype.
26672 * target-globals.h (struct target_globals): Define even if
26673 !SWITCHABLE_TARGET.
26674 * tree.c (prepare_target_option_node_for_pch,
26675 prepare_target_option_nodes_for_pch): New functions.
26676 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26677 * config/i386/i386.c: Include target-globals.h.
26678 (ix86_set_current_function): Instead of doing target_reinit
26679 unconditionally, use save_target_globals_default_opts and
26680 restore_target_globals.
26682 2014-01-09 Richard Biener <rguenther@suse.de>
26684 PR tree-optimization/59715
26685 * tree-cfg.h (split_critical_edges): Declare.
26686 * tree-cfg.c (split_critical_edges): Export.
26687 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26689 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26691 * cfgexpand.c (expand_stack_vars): Optionally disable
26692 asan stack protection.
26693 (expand_used_vars): Likewise.
26694 (partition_stack_vars): Likewise.
26695 * asan.c (asan_emit_stack_protection): Optionally disable
26696 after return stack usage.
26697 (instrument_derefs): Optionally disable memory access instrumentation.
26698 (instrument_builtin_call): Likewise.
26699 (instrument_strlen_call): Likewise.
26700 (asan_protect_global): Optionally disable global variables protection.
26701 * doc/invoke.texi: Added doc for new options.
26702 * params.def: Added new options.
26703 * params.h: Likewise.
26705 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26707 PR rtl-optimization/59724
26708 * ifcvt.c (cond_exec_process_if_block): Don't call
26709 flow_find_head_matching_sequence with 0 longest_match.
26710 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26711 non-active insns if !stop_after.
26712 (try_head_merge_bb): Revert 2014-01-07 changes.
26714 2014-01-08 Jeff Law <law@redhat.com>
26716 * ree.c (get_sub_rtx): New function, extracted from...
26717 (merge_def_and_ext): Here.
26718 (combine_reaching_defs): Use get_sub_rtx.
26720 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26722 * cgraph.h (varpool_variable_node): Do not choke on null node.
26724 2014-01-08 Catherine Moore <clm@codesourcery.com>
26726 * config/mips/mips.md (simple_return): Attempt to use JRC
26728 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26730 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26732 PR rtl-optimization/59137
26733 * reorg.c (steal_delay_list_from_target): Call update_block for
26735 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26737 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26739 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26740 two duplicate entries.
26742 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26745 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26747 * config/mips/mips.c (mips_truncated_op_cost): New function.
26748 (mips_rtx_costs): Adjust test for BADDU.
26749 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26751 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26753 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26754 (*baddu_si): ...this new pattern.
26756 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26759 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26761 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26763 PR middle-end/57748
26764 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26766 (expand_expr, expand_normal): Adjust.
26767 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26768 inner_reference_p. Use inner_reference_p to expand inner references.
26769 (store_expr): Adjust.
26770 * cfgexpand.c (expand_call_stmt): Adjust.
26772 2014-01-08 Rong Xu <xur@google.com>
26774 * gcov-io.c (gcov_var): Move from gcov-io.h.
26775 (gcov_position): Ditto.
26776 (gcov_is_error): Ditto.
26777 (gcov_rewrite): Ditto.
26778 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26779 only part to libgcc/libgcov.h.
26781 2014-01-08 Marek Polacek <polacek@redhat.com>
26783 PR middle-end/59669
26784 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26786 2014-01-08 Marek Polacek <polacek@redhat.com>
26789 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26791 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26793 PR rtl-optimization/59649
26794 * stor-layout.c (get_mode_bounds): For BImode return
26795 0 and STORE_FLAG_VALUE.
26797 2014-01-08 Richard Biener <rguenther@suse.de>
26799 PR middle-end/59630
26800 * gimple.h (is_gimple_builtin_call): Remove.
26801 (gimple_builtin_call_types_compatible_p): New.
26802 (gimple_call_builtin_p): New overload.
26803 * gimple.c (is_gimple_builtin_call): Remove.
26804 (validate_call): Rename to ...
26805 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26806 check return types.
26807 (validate_type): New static function.
26808 (gimple_call_builtin_p): New overload and adjust.
26809 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26810 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26811 (gimple_fold_stmt_to_constant_1): Likewise.
26812 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26814 2014-01-08 Richard Biener <rguenther@suse.de>
26816 PR middle-end/59471
26817 * gimplify.c (gimplify_expr): Gimplify register-register type
26818 VIEW_CONVERT_EXPRs to separate stmts.
26820 2014-01-07 Jeff Law <law@redhat.com>
26822 PR middle-end/53623
26823 * ree.c (combine_set_extension): Handle case where source
26824 and destination registers in an extension insn are different.
26825 (combine_reaching_defs): Allow source and destination registers
26826 in extension to be different under limited circumstances.
26827 (add_removable_extension): Remove restriction that the
26828 source and destination registers in the extension are the same.
26829 (find_and_remove_re): Emit a copy from the extension's
26830 destination to its source after the defining insn if
26831 the source and destination registers are different.
26833 PR middle-end/59285
26834 * ifcvt.c (merge_if_block): If we are merging a block with more than
26835 one successor with a block with no successors, remove any BARRIER
26836 after the second block.
26838 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26840 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26842 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26845 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26846 for 14-bit register offsets when INT14_OK_STRICT is false.
26848 2014-01-07 Roland Stigge <stigge@antcom.de>
26849 Michael Meissner <meissner@linux.vnet.ibm.com>
26852 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26853 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26855 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26857 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26860 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26862 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26863 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26864 rtx is const0_rtx or not.
26866 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26869 * target-globals.c (save_target_globals): Remove this_fn_optab
26871 * toplev.c: Include optabs.h.
26872 (target_reinit): Temporarily restore the global options if another
26873 set of options are in force.
26875 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26877 PR rtl-optimization/58668
26878 * cfgcleanup.c (flow_find_cross_jump): Don't count
26879 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26880 to determine what is counted.
26881 (flow_find_head_matching_sequence): Use active_insn_p to determine
26883 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26885 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26886 determine what is counted.
26888 PR tree-optimization/59643
26889 * tree-predcom.c (split_data_refs_to_components): If one dr is
26890 read and one write, determine_offset fails and the write isn't
26891 in the bad component, just put the read into the bad component.
26893 2014-01-07 Mike Stump <mikestump@comcast.net>
26894 Jakub Jelinek <jakub@redhat.com>
26897 * tree-core.h (struct tree_optimization_option): Change optabs
26898 type from unsigned char * to void *.
26899 * optabs.c (init_tree_optimization_optabs): Adjust
26900 TREE_OPTIMIZATION_OPTABS initialization.
26902 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26905 * config/i386/i386.h (struct machine_function): Add
26906 no_drap_save_restore field.
26907 * config/i386/i386.c (ix86_save_reg): Use
26908 !cfun->machine->no_drap_save_restore instead of
26909 crtl->stack_realign_needed.
26910 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26911 this function clears frame_pointer_needed. Set
26912 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26913 and DRAP reg is needed.
26915 2014-01-06 Marek Polacek <polacek@redhat.com>
26918 * doc/implement-c.texi: Mention that other integer types are
26919 permitted as bit-field types in strictly conforming mode.
26921 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26923 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26924 is newly allocated.
26926 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26928 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26930 2014-01-06 Martin Jambor <mjambor@suse.cz>
26933 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26935 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26937 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26941 * var-tracking.c (add_stores): Preserve the value of the source even if
26942 we don't record the store.
26944 2014-01-06 Terry Guo <terry.guo@arm.com>
26946 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26948 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26951 * config/darwin.c (darwin_function_section): Adjust return values to
26952 correspond to optimisation changes made in r206070.
26954 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26956 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26957 from prefetch_block tune setting.
26958 (nocona_cost): Correct size of prefetch block to 64.
26960 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26962 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26963 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26964 used to save the static chain register in the computation of the offset
26965 from which the FP registers need to be restored.
26967 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26969 PR tree-optimization/59519
26970 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26971 ICE if get_current_def (current_new_name) is already non-NULL, as long
26972 as it is a phi result of some other phi in *new_exit_bb that has
26975 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26976 or vmovdqu* for misaligned_operand.
26977 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26978 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26979 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26980 aligned_mem for AVX512F masked aligned load and store builtins and for
26981 non-temporal moves.
26983 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26985 PR tree-optimization/59651
26986 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26987 Address range for negative step should be added by TYPE_SIZE_UNIT.
26989 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26991 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26992 overlapping registers also for registers other than the stack pointer.
26994 2014-01-03 Marek Polacek <polacek@redhat.com>
26997 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27000 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27003 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27006 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27007 (push splitter): Use <P:MODE_SIZE> instead of
27008 GET_MODE_SIZE (<P:MODE>mode).
27009 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27010 (mov -1, reg peephole2): Likewise.
27011 * config/i386/sse.md (*mov<mode>_internal,
27012 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27013 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27014 *<code><mode>3, *andnot<mode>3<mask_name>,
27015 <mask_codefor><code><mode>3<mask_name>): Likewise.
27016 * config/i386/subst.md (mask_mode512bit_condition,
27017 sd_mask_mode512bit_condition): Likewise.
27019 2014-01-02 Xinliang David Li <davidxl@google.com>
27021 PR tree-optimization/59303
27022 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27023 (dump_predicates): Better output format.
27024 (pred_equal_p): New function.
27025 (is_neq_relop_p): Ditto.
27026 (is_neq_zero_form_p): Ditto.
27027 (pred_expr_equal_p): Ditto.
27028 (pred_neg_p): Ditto.
27029 (simplify_pred): Ditto.
27030 (simplify_preds_2): Ditto.
27031 (simplify_preds_3): Ditto.
27032 (simplify_preds_4): Ditto.
27033 (simplify_preds): Ditto.
27034 (push_pred): Ditto.
27035 (push_to_worklist): Ditto.
27036 (get_pred_info_from_cmp): Ditto.
27037 (is_degenerated_phi): Ditto.
27038 (normalize_one_pred_1): Ditto.
27039 (normalize_one_pred): Ditto.
27040 (normalize_one_pred_chain): Ditto.
27041 (normalize_preds): Ditto.
27042 (normalize_cond_1): Remove function.
27043 (normalize_cond): Ditto.
27044 (is_gcond_subset_of): Ditto.
27045 (is_subset_of_any): Ditto.
27046 (is_or_set_subset_of): Ditto.
27047 (is_and_set_subset_of): Ditto.
27048 (is_norm_cond_subset_of): Ditto.
27049 (pred_chain_length_cmp): Ditto.
27050 (convert_control_dep_chain_into_preds): Type change.
27051 (find_predicates): Ditto.
27052 (find_def_preds): Ditto.
27053 (destroy_predicates_vecs): Ditto.
27054 (find_matching_predicates_in_rest_chains): Ditto.
27055 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27056 (is_pred_expr_subset): Ditto.
27057 (is_pred_chain_subset_of): Ditto.
27058 (is_included_in): Ditto.
27059 (is_superset_of): Ditto.
27061 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27063 Update copyright years.
27065 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27067 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27068 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27069 config/arc/arc.md, config/arc/arc.opt,
27070 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27071 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27072 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27073 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27074 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27075 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27076 vtable-verify.c, vtable-verify.h: Use the standard form for the
27079 2014-01-02 Tobias Burnus <burnus@net-b.de>
27081 * gcc.c (process_command): Update copyright notice dates.
27082 * gcov-dump.c: Ditto.
27084 * doc/cpp.texi: Bump @copying's copyright year.
27085 * doc/cppinternals.texi: Ditto.
27086 * doc/gcc.texi: Ditto.
27087 * doc/gccint.texi: Ditto.
27088 * doc/gcov.texi: Ditto.
27089 * doc/install.texi: Ditto.
27090 * doc/invoke.texi: Ditto.
27092 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27094 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27096 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27098 * config/i386/sse.md (*mov<mode>_internal): Guard
27099 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27101 PR rtl-optimization/59647
27102 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27103 new_rtx into UNSIGNED_FLOAT rtxes.
27105 Copyright (C) 2014 Free Software Foundation, Inc.
27107 Copying and distribution of this file, with or without modification,
27108 are permitted in any medium without royalty provided the copyright
27109 notice and this notice are preserved.