1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * loop-iv.c: Include rtl-iter.h.
4 (find_single_def_src): New function.
5 (replace_single_def_regs): Turn from being a for_each_rtx callback
6 to being a function that examines each subrtx itself.
7 (replace_in_expr, simplify_using_initial_values): Update accordingly.
9 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
11 * jump.c (eh_returnjump_p_1): Delete.
12 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
13 Remove handling of null rtxes.
15 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17 * jump.c: Include rtl-iter.h.
18 (returnjump_p_1): Delete.
19 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
20 Remove handling of null rtxes.
22 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
24 * ira.c: Include rtl-iter.h.
25 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
26 to being a function that examines each subrtx itself. Remove
27 handling of null rtxes.
28 (update_equiv_regs): Update call accordingly.
30 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
32 * fwprop.c: Include rtl-iter.h.
33 (varying_mem_p): Turn from being a for_each_rtx callback to being
34 a function that examines each subrtx itself.
35 (propagate_rtx): Update accordingly.
37 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
39 * function.c: Include rtl-iter.h
40 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
41 callback to being a function that examines each subrtx itself.
42 Return the changed flag.
43 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
44 (instantiate_virtual_regs): Update calls accordingly.
46 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
48 * final.c: Include rtl-iter.h.
49 (mark_symbol_ref_as_used): Delete.
50 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
53 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
55 * emit-rtl.c: Include rtl-iter.h.
56 (find_auto_inc): Turn from being a for_each_rtx callback to being
57 a function that examines each subrtx itself. Assume the first operand
58 to an RTX_AUTOINC is the automodified register.
59 (try_split): Update call accordingly.
61 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
63 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
64 Return a bool, inverting the result so that 0/false means "not ok".
65 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
67 (mem_loc_descriptor, add_const_value_attribute)
68 (resolve_addr_in_expr): Update calls accordingly.
70 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
72 * dwarf2out.c: Include rtl-iter.h.
73 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
74 Remove unused data parameter. Return a bool, inverting the result
75 so that 0/false means "not ok".
76 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
77 instead of for_each_rtx.
79 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
81 * dse.c: Include rtl-iter.h.
82 (check_mem_read_rtx): Change void * parameter to real type.
84 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
85 for_each_rtx. Don't handle null rtxes.
87 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
89 * df-problems.c: Include rtl-iter.h.
90 (find_memory): Turn from being a for_each_rtx callback to being
91 a function that examines each subrtx itself. Continue to look for
92 volatile references even after a nonvolatile one has been found.
93 (can_move_insns_across): Update calls accordingly.
95 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
97 * ddg.c (walk_mems_2, walk_mems_1): Delete.
98 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
99 to iterate over subrtxes. Return a bool rather than an int.
101 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
103 * ddg.c: Include rtl-iter.h.
104 (mark_mem_use_1): Rename to...
105 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
106 instead of for_each_rtx.
107 (mem_read_insn_p): Update accordingly.
109 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
111 * cse.c (change_cc_mode_args): Delete.
112 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
113 a function that examines each subrtx itself. Take the fields of
114 change_cc_mode_args as argument and return void.
115 (cse_change_cc_mode_insn): Update calls accordingly.
117 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
119 * cse.c (is_dead_reg): Change argument to const_rtx.
120 (dead_debug_insn_data): Delete.
121 (is_dead_debug_insn): Expand commentary. Turn from being a
122 for_each_rtx callback to being a function that examines
123 each subrtx itself. Take the fields of dead_debug_insn_data
125 (delete_trivially_dead_insns): Update call accordingly.
127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
129 * cse.c (check_for_label_ref): Move earlier in file. Turn from
130 being a for_each_rtx callback to being a function that examines
132 (cse_extended_basic_block): Update call accordingly.
134 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
136 * cse.c (check_dependence_data): Delete.
137 (check_dependence): Change from being a for_each_rtx callback to being
138 a function that examines all subrtxes itself. Don't handle null rtxes.
139 (invalidate): Update call accordingly.
141 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
143 * cse.c: Include rtl-iter.h.
144 (approx_reg_cost_1): Delete.
145 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
146 Don't handle null rtxes.
148 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
150 * cfgcleanup.c: Include rtl-iter.h.
151 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
152 to being a function that examines each subrtx itself.
153 (thread_jump): Update accordingly.
155 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
157 * combine-stack-adj.c: Include rtl-iter.h.
158 (record_stack_refs_data): Delete.
159 (record_stack_refs): Turn from being a for_each_rtx callback
160 to being a function that examines each subrtx itself.
161 Take a pointer to the reflist. Invert sense of return value
162 so that true means success and false means failure. Don't
164 (combine_stack_adjustments_for_block): Update accordingly.
166 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
168 * combine.c (record_truncated_value): Turn from being a for_each_rtx
169 callback to a function that takes an rtx and returns a bool
170 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
175 * combine.c: Include rtl-iter.h.
176 (unmentioned_reg_p_1): Delete.
177 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
178 Don't handle null rtxes.
180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
182 * calls.c: Include rtl-iter.h.
183 (internal_arg_pointer_based_exp_1): Delete.
184 (internal_arg_pointer_based_exp): Take a const_rtx.
185 Use FOR_EACH_SUBRTX to iterate over subrtxes.
187 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
189 * caller-save.c: Include rtl-iter.h.
190 (add_used_regs_1): Delete.
191 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
192 to iterate over subrtxes. Assert that any remaining pseudos
195 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
197 * bt-load.c: Include rtl-iter.h.
198 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
199 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
200 to iterate over subrtxes.
201 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
202 find_btr_use rather than btr_referenced_p.
204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
206 * alias.c: Include rtl-iter.h.
207 (refs_newer_value_cb): Delete.
208 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
210 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
212 * rtl-iter.h: New file.
213 * rtlanal.c: Include it.
214 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
215 (generic_subrtx_iterator <T>::add_single_to_queue)
216 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
217 (generic_subrtx_iterator <T>::free_array): New functions.
218 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
219 (generic_subrtx_iterator <const_rtx_accessor>)
220 (generic_subrtx_iterator <rtx_var_accessor>
221 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
222 (setup_reg_subrtx_bounds): New function.
223 (init_rtlanal): Call it.
225 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
228 * config/sh/sh.md (ashlsi3): Handle negative shift count for
230 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
232 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
234 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
236 2014-08-27 David Malcolm <dmalcolm@redhat.com>
238 * rtl.h (JUMP_LABEL_AS_INSN): New.
240 2014-08-27 David Malcolm <dmalcolm@redhat.com>
242 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
244 (alloc_EXPR_LIST): Strengthen return type from rtx to
246 (remove_free_EXPR_LIST_node): Likewise for param.
247 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
248 from rtx to rtx_expr_list *.
249 * sched-int.h (struct deps_desc): Strengthen fields
250 "pending_read_mems" and "pending_write_mems" from rtx to
253 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
254 rtx to rtx_expr_list *.
255 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
256 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
258 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
259 from rtx to rtx_expr_list *.
260 * loop-iv.c (simplify_using_initial_values): Strengthen local
261 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
262 "pnote_next" from rtx * to rtx_expr_list **.
263 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
264 param "exprp" from rtx * to rtx_expr_list **.
265 (add_insn_mem_dependence): Strengthen local "mem_list" from
266 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
268 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
269 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
270 param "old_mems_p" from rtx * to rtx_expr_list **.
271 * var-tracking.c (struct adjust_mem_data): Strengthen field
272 "side_effects" from rtx to rtx_expr_list *.
273 (adjust_insn): Replace NULL_RTX with NULL when assigning to
275 (prepare_call_arguments): Likewise.
277 2014-08-27 David Malcolm <dmalcolm@redhat.com>
279 * function.h (struct rtl_data): Strengthen field
280 "x_stack_slot_list" from rtx to rtx_expr_list *.
282 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
283 when assigning to stack_slot_list.
285 2014-08-27 David Malcolm <dmalcolm@redhat.com>
287 * function.h (struct rtl_data): Strengthen field
288 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
289 * rtl.h (remove_node_from_expr_list): Strengthen second param from
290 rtx * to rtx_expr_list **.
292 * cfgbuild.c (make_edges): In loop over
293 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
294 rtx_expr_list *, and use methods of the latter class to clarify
296 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
297 rtx_expr_list *, and use methods of the latter class to clarify
299 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
300 * reload1.c (set_initial_label_offsets): Likewise for local "x".
301 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
302 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
303 to rtx_expr_list *. Use methods of the latter class to clarify
306 2014-08-27 David Malcolm <dmalcolm@redhat.com>
308 * function.h (struct expr_status): Strengthen field
309 "x_forced_labels" from rtx to rtx_expr_list *.
311 * cfgbuild.c (make_edges): Split local "x" into two locals,
312 strengthening one from rtx to rtx_expr_list *, and using methods
314 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
315 loop over forced_labels, introduce strengthen it from rtx to
316 rtx_expr_list *, using methods to clarify the code.
317 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
318 to rtx_expr_list *, using methods of said class to clarify the
320 * reload1.c (set_initial_label_offsets): Split local "x" into two
321 per-loop variables, strengthening the first from rtx to
322 rtx_expr_list * and using methods.
324 2014-08-27 David Malcolm <dmalcolm@redhat.com>
326 * coretypes.h (class rtx_expr_list): Add forward declaration.
327 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
328 * gengenrtl.c (special_rtx): Add EXPR_LIST.
329 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
330 invariant: GET_CODE (X) == EXPR_LIST.
331 (is_a_helper <rtx_expr_list *>::test): New.
332 (rtx_expr_list::next): New.
333 (rtx_expr_list::element): New.
334 (gen_rtx_EXPR_LIST): New.
336 2014-08-27 David Malcolm <dmalcolm@redhat.com>
338 * varasm.c (mark_constants): Convert a GET_CODE check into a
339 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
340 Use methods of rtx_sequence to clarify the code.
342 2014-08-27 David Malcolm <dmalcolm@redhat.com>
344 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
345 local "seq" via a checked cast, and use methods of rtx_sequence
346 to simplify the code.
348 2014-08-27 David Malcolm <dmalcolm@redhat.com>
350 * resource.c (mark_referenced_resources): Strengthen local
351 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
352 using methods of rtx_sequence to clarify the code.
353 (find_dead_or_set_registers): Within the switch statement, convert
354 a GET_CODE check to a dyn_cast, introducing local "seq". Within
355 the JUMP_P handling, introduce another local "seq", adding a
356 checked cast to rtx_sequence *. In both cases, use methods of
357 rtx_sequence to clarify the code.
358 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
359 via a checked cast, and use methods of rtx_sequence to simplify
362 2014-08-27 David Malcolm <dmalcolm@redhat.com>
364 * reorg.c (redundant_insn): In two places in the function, replace
365 a check of GET_CODE with a dyn_cast, introducing local "seq", and
366 usings methods of rtx_sequence to clarify the code.
368 2014-08-27 David Malcolm <dmalcolm@redhat.com>
370 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
371 local "seq" with a checked cast, and use methods of rtx_sequence
374 2014-08-27 David Malcolm <dmalcolm@redhat.com>
376 * function.c (contains): Introduce local "seq" for PATTERN (insn),
377 with a checked cast, in the region for where we know it's a
378 SEQUENCE. Use methods of rtx_sequence.
380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
382 * final.c (get_attr_length_1): Replace GET_CODE check with a
383 dyn_cast, introducing local "seq" and the use of methods of
385 (shorten_branches): Likewise, introducing local "body_seq".
386 Strengthen local "inner_insn" from rtx to rtx_insn *.
387 (reemit_insn_block_notes): Replace GET_CODE check with a
388 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
389 Use methods of rtx_sequence.
390 (final_scan_insn): Likewise, introducing local "seq" for when
391 "body" is known to be a SEQUENCE, using its methods.
393 2014-08-27 David Malcolm <dmalcolm@redhat.com>
395 * except.c (can_throw_external): Strengthen local "seq" from rtx
396 to rtx_sequence *. Use methods of rtx_sequence.
397 (insn_nothrow_p): Likewise.
399 2014-08-27 David Malcolm <dmalcolm@redhat.com>
401 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
402 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
403 Use methods of rtx_sequence.
404 (scan_trace): Likewise for local "pat".
406 2014-08-27 David Malcolm <dmalcolm@redhat.com>
408 * coretypes.h (class rtx_sequence): Add forward declaration.
409 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
410 invariant: GET_CODE (X) == SEQUENCE.
411 (is_a_helper <rtx_sequence *>::test): New.
412 (is_a_helper <const rtx_sequence *>::test): New.
413 (rtx_sequence::len): New.
414 (rtx_sequence::element): New.
415 (rtx_sequence::insn): New.
417 2014-08-27 David Malcolm <dmalcolm@redhat.com>
419 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
421 (alloc_INSN_LIST): Strengthen return type from rtx to
423 (copy_INSN_LIST): Likewise for return type and param.
424 (concat_INSN_LIST): Likewise for both params and return type.
425 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
426 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
427 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
428 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
430 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
431 "implicit_sets", "control_uses", "clobbers" from rtx to
433 (struct deps_desc): Likewise for fields "pending_read_insns",
434 "pending_write_insns", "pending_jump_insns",
435 "last_pending_memory_flush", "last_function_call",
436 "last_function_call_may_noreturn", "sched_before_next_call",
437 "sched_before_next_jump".
438 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
439 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
441 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
442 from rtx to rtx_insn_list *.
443 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
446 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
448 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
450 (queue_insn): Likewise for local "link".
451 (struct haifa_saved_data): Strengthen field "insn_queue" from
452 rtx * to rtx_insn_list **.
453 (save_backtrack_point): Update allocation of save->insn_queue to
454 reflect the strengthening of elements from rtx to rtx_insn_list *.
455 (queue_to_ready): Strengthen local "link" from rtx to
456 rtx_insn_list *; use methods "next" and "insn" when traversing the
458 (early_queue_to_ready): Likewise for locals "link", "next_link",
460 (schedule_block): Update allocation of insn_queue to reflect the
461 strengthening of elements from rtx to rtx_insn_list *. Strengthen
462 local "link" from rtx to rtx_insn_list *, and use methods when
464 (add_to_speculative_block): Strengthen locals "twins" and
465 "next_node" from rtx to rtx_insn_list *, and use methods when
466 working with them. Strengthen local "twin" from rtx to
467 rtx_insn *, eliminating a checked cast.
468 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
469 from rtx to rtx_insn_list *, and use methods when working with
472 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
473 from rtx to rtx_insn_list *, adding a checked cast.
474 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
476 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
477 "newlink" from rtx to rtx_insn_list *. Strengthen local
478 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
479 from rtx to rtx_insn *.
480 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
481 from rtx to rtx_insn_list *. Use methods of the latter class.
482 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
483 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
484 (remove_free_INSN_LIST_node): Strengthen return type and local
485 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
486 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
487 rtx_insn_list *, using "insn" method.
489 * sched-deps.c (add_dependence_list): Strengthen param "list"
490 from rtx to rtx_insn_list *, and use methods when working with it.
491 (add_dependence_list_and_free): Strengthen param "listp" from
492 rtx * to rtx_insn_list **.
493 (remove_from_dependence_list): Strenghten param "listp" from rtx *
494 to rtx_insn_list **, and use methods when working with *listp.
495 (remove_from_both_dependence_lists): Strengthen param "listp" from
496 rtx * to rtx_insn_list **
497 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
498 to rtx_insn_list **. Eliminate local "link", in favor of two new
499 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
501 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
502 by introducing local "cond_deps".
503 (remove_from_deps): Strengthen param "insn" from rtx to
506 * sched-rgn.c (concat_insn_mem_list): Strengthen param
507 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
508 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
509 Use methods of rtx_insn_list.
511 * store-motion.c (struct st_expr): Strengthen fields
512 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
513 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
515 (find_moveable_store): Split out "tmp" into multiple more-tightly
516 scoped locals. Use methods of rtx_insn_list *.
517 (compute_store_table): Strengthen local "tmp" from rtx to
518 rtx_insn *. Use methods of rtx_insn_list *.
520 2014-08-27 David Malcolm <dmalcolm@redhat.com>
522 * coretypes.h (class rtx_insn_list): Add forward declaration.
523 * rtl.h (class rtx_insn_list): New subclass of rtx_def
524 (is_a_helper <rtx_insn_list *>::test): New.
525 (rtx_insn_list::next): New.
526 (rtx_insn_list::insn): New.
527 (gen_rtx_INSN_LIST): Add prototype.
528 * emit-rtl.c (gen_rtx_INSN_LIST): New.
529 * gengenrtl.c (special_rtx): Add INSN_LIST.
531 2014-08-27 David Malcolm <dmalcolm@redhat.com>
533 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
534 "prev" from rtx to rtx_insn *.
536 2014-08-27 David Malcolm <dmalcolm@redhat.com>
538 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
539 functions. Require merely an rtx for now, not an rtx_insn *.
540 (BLOCK_FOR_INSN): Likewise.
541 (INSN_LOCATION): Likewise.
542 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
544 2014-08-27 David Malcolm <dmalcolm@redhat.com>
546 * rtl.h (PATTERN): Convert this macro into a pair of inline
547 functions, for now, requiring const_rtx and rtx.
549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
551 * target.def (unwind_emit): Strengthen param "insn" from rtx to
553 (final_postscan_insn): Likewise.
554 (adjust_cost): Likewise.
555 (adjust_priority): Likewise.
556 (variable_issue): Likewise.
557 (macro_fusion_pair_p): Likewise.
558 (dfa_post_cycle_insn): Likewise.
559 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
560 (first_cycle_multipass_issue): Likewise.
561 (dfa_new_cycle): Likewise.
562 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
563 (speculate_insn): Likewise for param "insn".
564 (gen_spec_check): Likewise for params "insn" and "label".
565 (get_insn_spec_ds): Likewise for param "insn".
566 (get_insn_checked_ds): Likewise.
567 (dispatch_do): Likewise.
568 (dispatch): Likewise.
569 (cannot_copy_insn_p): Likewise.
570 (invalid_within_doloop): Likewise.
571 (legitimate_combined_insn): Likewise.
575 * doc/tm.texi: Automatically updated to reflect changes to
578 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
580 (schedule_block): Likewise.
581 (sched_init): Likewise.
582 (sched_speculate_insn): Strengthen param "insn" from rtx to
584 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
586 * hooks.c (hook_bool_rtx_true): Rename to...
587 hook_bool_rtx_insn_true): ...this, and strengthen first param from
589 (hook_constcharptr_const_rtx_null): Rename to...
590 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
591 first param from const_rtx to const rtx_insn *.
592 (hook_bool_rtx_int_false): Rename to...
593 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
594 param from rtx to rtx_insn *.
595 (hook_void_rtx_int): Rename to...
596 (hook_void_rtx_insn_int): ...this, and strengthen first param from
599 * hooks.h (hook_bool_rtx_true): Rename to...
600 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
602 (hook_bool_rtx_int_false): Rename to...
603 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
604 param from rtx to rtx_insn *.
605 (hook_void_rtx_int): Rename to...
606 (hook_void_rtx_insn_int): ...this, and strengthen first param from
608 (hook_constcharptr_const_rtx_null): Rename to...
609 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
610 first param from const_rtx to const rtx_insn *.
612 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
613 and local "prev" from rtx to rtx_insn *.
615 * sched-int.h (sched_speculate_insn): Strengthen first param from
618 * sel-sched.c (create_speculation_check): Likewise for local "label".
619 * targhooks.c (default_invalid_within_doloop): Strengthen param
620 "insn" from const_rtx to const rtx_insn *.
621 * targhooks.h (default_invalid_within_doloop): Strengthen param
622 from const_rtx to const rtx_insn *.
624 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
625 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
627 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
629 (arc_invalid_within_doloop): Likewise, with const.
631 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
632 (arm_cannot_copy_insn_p): Likewise for param "insn".
633 (arm_unwind_emit): Likewise.
635 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
638 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
639 (c6x_variable_issue): Likewise. Removed now-redundant checked
641 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
643 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
644 Likewise for param "insn".
645 (epiphany_mode_after): Likewise.
646 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
647 params "insn", "dep_insn".
648 (epiphany_mode_needed): Likewise for param "insn".
649 (epiphany_mode_after): Likewise.
651 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
652 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
653 (ix86_avx_u128_mode_needed): Likewise.
654 (ix86_i387_mode_needed): Likewise.
655 (ix86_mode_needed): Likewise.
656 (ix86_avx_u128_mode_after): Likewise.
657 (ix86_mode_after): Likewise.
658 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
659 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
660 (ix86_adjust_priority): Likewise for param "insn".
661 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
662 (do_dispatch): Likewise.
663 (has_dispatch): Likewise.
664 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
666 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
667 reflect renaming of default hook implementation from
668 hook_constcharptr_const_rtx_null to
669 hook_constcharptr_const_rtx_insn_null.
670 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
672 (ia64_variable_issue): Likewise for param "insn".
673 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
674 (ia64_dfa_new_cycle): Likewise.
675 (ia64_get_insn_spec_ds): Likewise.
676 (ia64_get_insn_checked_ds): Likewise.
677 (ia64_speculate_insn): Likewise.
678 (ia64_gen_spec_check): Likewise for params "insn", "label".
679 (ia64_asm_unwind_emit): Likewise for param "insn".
681 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
683 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
685 (m68k_sched_variable_issue): Likewise for param "insn".
687 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
690 * config/microblaze/microblaze.c (microblaze_adjust_cost):
691 Likewise for params "insn", "dep".
693 * config/mips/mips.c (mips_adjust_cost): Likewise.
694 (mips_variable_issue): Likewise for param "insn".
695 (mips_final_postscan_insn): Likewise.
697 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
698 for params "insn", "dep".
700 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
702 (pa_adjust_priority): Likewise for param "insn".
704 * config/picochip/picochip.c (picochip_sched_adjust_cost):
705 Likewise for params "insn", "dep_insn".
707 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
709 (rs6000_variable_issue): Likewise.
710 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
711 (rs6000_debug_adjust_cost): Likewise.
712 (rs6000_adjust_priority): Likewise for param "insn".
713 (rs6000_use_sched_lookahead_guard): Likewise.
714 (get_next_active_insn): Likewise for return type and both params.
715 (redefine_groups): Likewise for params "prev_head_insn", "tail"
716 and locals "insn", "next_insn".
717 (pad_groups): Likewise.
719 * config/s390/s390.c (s390_adjust_priority): Likewise for param
721 (s390_cannot_copy_insn_p): Likewise.
722 (s390_sched_variable_issue): Likewise for third param, eliminating
724 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
725 default hook implementation from hook_constcharptr_const_rtx_null
726 to hook_constcharptr_const_rtx_insn_null.
728 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
729 from rtx to rtx_insn *.
730 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
731 (sh_variable_issue): Likewise for param "insn".
732 (sh_dfa_new_cycle): Likewise.
733 (sh_mode_needed): Likewise.
734 (sh_mode_after): Likewise.
736 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
737 params "insn", "dep_insn".
738 (hypersparc_adjust_cost): Likewise.
739 (sparc_adjust_cost): Likewise.
741 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
742 param, eliminated checked cast.
743 (spu_sched_adjust_cost): Likewise for first and third params.
745 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
746 params "insn" and "dep_insn" from rtx to rtx_insn *.
748 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
750 2014-08-27 David Malcolm <dmalcolm@redhat.com>
752 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
753 (set_is_load_p): ...this, updating to work on a SET pattern rather
755 (is_store_insn): Rename to...
756 (set_is_store_p): ...this, updating to work on a SET pattern
758 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
759 top of function to where it is needed. Rewrite the bogus
760 condition that checks for "insn" and "dep" being PARALLEL to
761 instead use single_set, introducing locals "insn_set" and
762 "dep_set". Given that we only ever returned "cost" for a non-pair
763 of SETs, bail out early if we don't have a pair of SET.
764 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
765 use the new locals "insn_set" and "dep_set", and update calls to
766 is_load_insn and is_store_insn to be calls to set_is_load_p and
769 2014-08-27 Guozhi Wei <carrot@google.com>
772 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
773 amount before using it.
775 2014-08-27 Richard Biener <rguenther@suse.de>
777 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
778 get_maxval_strlen inside a more useful API.
779 (gimple_fold_builtin_with_strlen): Remove and fold into ...
780 (gimple_fold_builtin): ... caller.
781 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
782 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
783 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
784 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
785 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
786 gimple_fold_builtin_sprintf): Adjust to compute maxval
789 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
792 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
794 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
795 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
796 Anna Tikhonova <anna.tikhonova@intel.com>
797 Ilya Tocar <ilya.tocar@intel.com>
798 Andrey Turetskiy <andrey.turetskiy@intel.com>
799 Ilya Verbin <ilya.verbin@intel.com>
800 Kirill Yukhin <kirill.yukhin@intel.com>
801 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
804 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
805 Use `concat_tg_mode' attribute to determine asm register size.
807 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
809 Anna Tikhonova <anna.tikhonova@intel.com>
810 Ilya Tocar <ilya.tocar@intel.com>
811 Andrey Turetskiy <andrey.turetskiy@intel.com>
812 Ilya Verbin <ilya.verbin@intel.com>
813 Kirill Yukhin <kirill.yukhin@intel.com>
814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
817 (define_mode_iterator VI48_AVX512VL): New.
818 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
819 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
820 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
821 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
822 with VI1): Change mode iterator.
823 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
824 with VI_ULOADSTORE_BW_AVX512VL): New.
825 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
826 with VI_ULOADSTORE_F_AVX512VL): Ditto.
827 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
828 with VI1): Change mode iterator.
829 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
830 with VI_ULOADSTORE_BW_AVX512VL): New.
831 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
832 with VI_ULOADSTORE_F_AVX512VL): Ditto.
833 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
834 with VI1): Change mode iterator.
835 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
836 with VI_ULOADSTORE_BW_AVX512VL): New.
837 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
838 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
839 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
840 (define_insn "<avx512>_storedqu<mode>_mask" with
842 (define_insn "<avx512>_storedqu<mode>_mask" with
843 VI12_AVX512VL): Ditto.
845 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
847 Anna Tikhonova <anna.tikhonova@intel.com>
848 Ilya Tocar <ilya.tocar@intel.com>
849 Andrey Turetskiy <andrey.turetskiy@intel.com>
850 Ilya Verbin <ilya.verbin@intel.com>
851 Kirill Yukhin <kirill.yukhin@intel.com>
852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
855 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
856 (define_mode_iterator VI48_AVX512BW): New.
857 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
858 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
859 with VI48_AVX2_48_AVX512F): New.
860 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
861 with VI2_AVX512VL): Ditto.
863 2014-08-27 Richard Biener <rguenther@suse.de>
866 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
867 (fold_builtin_3): Do not fold strcat_chk here.
868 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
870 (gimple_fold_builtin): Fold strcat_chk here.
872 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
874 * dwarf2out.h (dwarf2out_decl): Remove prototype.
875 * dwarf2out.c (dwarf2out_decl): Make static.
877 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
879 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
881 2014-08-26 David Malcolm <dmalcolm@redhat.com>
883 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
884 from rtx to rtx_insn *.
885 (cselib_lookup_from_insn): Likewise for final param.
886 (cselib_subst_to_values_from_insn): Likewise.
887 (cselib_add_permanent_equiv): Likewise.
889 * cselib.c (cselib_current_insn): Likewise for this variable.
890 (cselib_subst_to_values_from_insn): Likewise for param "insn".
891 (cselib_lookup_from_insn): Likewise.
892 (cselib_add_permanent_equiv): Likewise for param "insn" and local
893 "save_cselib_current_insn".
894 (cselib_process_insn): Replace use of NULL_RTX with NULL.
896 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
897 from rtx to rtx_insn *.
899 2014-08-26 David Malcolm <dmalcolm@redhat.com>
901 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
904 2014-08-26 David Malcolm <dmalcolm@redhat.com>
906 * df.h (df_dump_insn_problem_function): Strengthen first param of
907 this callback from const_rtx to const rtx_insn *.
908 (struct df_insn_info): Strengthen field "insn" from rtx to
910 (DF_REF_INSN): Eliminate this function, reinstating the older
912 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
913 (df_reg_defined): Likewise.
914 (df_find_use): Likewise.
915 (df_reg_used): Likewise.
916 (df_dump_insn_top): Strengthen param 1 from const_rtx to
918 (df_dump_insn_bottom): Likewise.
919 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
920 (df_insn_debug_regno): Likewise.
921 (debug_df_insn): Likewise.
922 (df_rd_simulate_one_insn): Likewise for param 2.
923 (df_word_lr_simulate_defs): Likewise for param 1.
924 (df_word_lr_simulate_uses): Likewise.
925 (df_md_simulate_one_insn): Likewise for param 2.
926 (df_simulate_find_noclobber_defs): Likewise for param 1.
927 (df_simulate_find_defs): Likewise.
928 (df_simulate_defs): Likewise.
929 (df_simulate_uses): Likewise.
930 (df_simulate_one_insn_backwards): Likewise for param 2.
931 (df_simulate_one_insn_forwards): Likewise.
932 (df_uses_create): Likewise for param 2.
933 (df_insn_create_insn_record): Likewise for param 1.
934 (df_insn_delete): Likewise.
935 (df_insn_rescan): Likewise.
936 (df_insn_rescan_debug_internal): Likewise.
937 (df_insn_change_bb): Likewise.
938 (df_notes_rescan): Likewise.
939 * rtl.h (remove_death): Likewise for param 2.
940 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
942 * sched-int.h (reemit_notes): Strengthen param from rtx to
944 * valtrack.h (propagate_for_debug): Likewise for param 1.
946 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
947 local "tmp_rtx" from const_rtx to const rtx_insn *.
948 * combine.c (remove_death): Strengthen param "insn" from rtx to
950 (move_deaths): Likewise for local "where_dead".
951 * cse.c (delete_trivially_dead_insns): Introduce local
952 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
953 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
955 (df_reg_defined): Likewise.
956 (df_find_use): Likewise.
957 (df_reg_used): Likewise.
958 (df_dump_insn_problem_data): Strengthen param "insn" from
959 const_rtx to const rtx_insn *.
960 (df_dump_insn_top): Likewise.
961 (df_dump_insn_bottom): Likewise.
962 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
963 (df_insn_debug_regno): Likewise.
964 (debug_df_insn): Likewise.
965 (DF_REF_INSN): Delete.
966 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
967 from rtx to rtx_insn *.
968 (df_chain_insn_top_dump): Strengthen param "insn" from
969 const_rtx to const rtx_insn *.
970 (df_chain_insn_bottom_dump): Likewise.
971 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
973 (df_word_lr_simulate_uses): Likewise.
974 (df_print_note): Likewise.
975 (df_remove_dead_and_unused_notes): Likewise.
976 (df_set_unused_notes_for_mw): Likewise.
977 (df_set_dead_notes_for_mw): Likewise.
978 (df_create_unused_note): Likewise.
979 (df_simulate_find_defs): Likewise.
980 (df_simulate_find_uses): Likewise.
981 (df_simulate_find_noclobber_defs): Likewise.
982 (df_simulate_defs): Likewise.
983 (df_simulate_uses): Likewise.
984 (df_simulate_one_insn_backwards): Likewise.
985 (df_simulate_one_insn_forwards): Likewise.
986 (df_md_simulate_one_insn): Likewise.
987 * df-scan.c (df_uses_create): Likewise.
988 (df_insn_create_insn_record): Likewise.
989 (df_insn_delete): Likewise.
990 (df_insn_rescan): Likewise.
991 (df_insn_rescan_debug_internal): Likewise.
992 (df_insn_change_bb): Likewise.
993 (df_notes_rescan): Likewise.
994 (df_refs_add_to_chains): Likewise.
995 (df_insn_refs_verify): Likewise.
996 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
997 when invoking df_insn_delete.
998 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
999 (set_unique_reg_note): Add checked cast.
1000 * final.c (cleanup_subreg_operands): Likewise.
1001 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1002 "insn" from rtx to rtx_insn *.
1003 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1004 "last" from rtx to rtx_insn *.
1005 * ira-emit.c (change_regs_in_insn): New function.
1006 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1007 Invoke change_regs_in_insn rather than change_regs.
1008 * ira.c (update_equiv_regs): Strengthen locals "insn",
1009 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1010 for_each_rtx_in_insn rather than for_each_rtx.
1011 * recog.c (confirm_change_group): Add checked casts.
1012 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1014 (peep2_fill_buffer): Add checked cast.
1015 * rtlanal.c (remove_note): Likewise.
1016 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1017 locals "next" "end" from rtx to rtx_insn *.
1019 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1021 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1023 (struct reg_use_data): Likewise for field "insn".
1024 (insn_cost): Likewise for param.
1025 (real_insn_for_shadow): Likewise for return type and param.
1026 (increase_insn_priority): Likewise for param 1.
1027 (debug_dependencies): Likewise for both params.
1029 * haifa-sched.c (insn_delay): Likewise for param "insn".
1030 (real_insn_for_shadow): Likewise for return type and param "insn".
1031 (update_insn_after_change): Likewise for param "insn".
1032 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1034 (insn_cost): Likewise for param "insn".
1035 (increase_insn_priority): Likewise.
1036 (calculate_reg_deaths): Likewise.
1037 (setup_insn_reg_pressure_info): Likewise.
1038 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1039 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1040 (model_recompute): Likewise.
1041 (must_restore_pattern_p): Likewise for param "next".
1042 (model_excess_cost): Likewise for param "insn".
1043 (queue_remove): Likewise.
1044 (adjust_priority): Likewise for param "prev".
1045 (update_register_pressure): Likewise for param "insn".
1046 (setup_insn_max_reg_pressure): Likewise for local "insn".
1047 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1048 (model_add_to_schedule): Likewise.
1049 (model_reset_queue_indices): Likewise for local "insn".
1050 (unschedule_insns_until): Strengthen local "recompute_vec" from
1051 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1052 "con" from rtx to rtx_insn *.
1053 (restore_last_backtrack_point): Likewise for both locals "x". Add
1055 (estimate_insn_tick): Likewise for param "insn".
1056 (commit_schedule): Likewise for params "prev_head", "tail" and
1058 (verify_shadows): Likewise for locals "i1", "i2".
1059 (dump_insn_stream): Likewise for params "head", "tail" and locals
1060 "next_tail", "insn".
1061 (schedule_block): Likewise for locals "insn", "x". Add a checked
1063 (fix_inter_tick): Likewise for params "head", "tail".
1064 (create_check_block_twin): Likewise for local "jump".
1065 (haifa_change_pattern): Likewise for param "insn".
1066 (haifa_speculate_insn): Likewise.
1067 (dump_new_block_header): Likewise for params "head", "tail".
1068 (fix_jump_move): Likewise for param "jump".
1069 (move_block_after_check): Likewise.
1070 (sched_init_insn_luid): Likewise for param "insn".
1071 (sched_init_luids): Likewise for local "insn".
1072 (insn_luid): Likewise for param "insn".
1073 (init_h_i_d): Likewise.
1074 (haifa_init_h_i_d): Likewise for local "insn".
1075 (haifa_init_insn): Likewise for param "insn".
1076 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1078 (create_insn_reg_use): Likewise for param "insn".
1079 (setup_insn_reg_uses): Likewise. Add a checked cast.
1080 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1081 "tail" from rtx to rtx_insn *.
1082 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1083 "insn", "next_tail".
1085 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1087 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1088 from rtx to rtx_insn *.
1089 (model_add_to_schedule): Likewise for locals "start", "end",
1092 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1094 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1096 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1097 "to" and locals "insn", "next", "copy". Remove now-redundant
1100 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1102 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1103 rtx_insn * and param 4 from rtx * to rtx_insn **.
1104 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1105 param 2 from rtx * to rtx_insn **.
1107 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1108 rtx_insn * and final param from rtx * to rtx_insn **.
1110 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1111 from rtx to rtx_insn *.
1112 (try_head_merge_bb): Likewise for both locals named "move_upto".
1113 * df-problems.c (can_move_insns_across): Likewise for params
1114 "from", "to", "across_from", "across_to" and locals "insn",
1115 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1117 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1118 from rtx to rtx_insn *.
1119 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1120 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1121 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1123 (noce_try_abs): Likewise.
1124 (noce_get_condition): Likewise for param "jump". Strengthen param
1125 "earliest" from rtx * to rtx_insn **.
1126 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1128 (find_cond_trap): Likewise.
1129 (dead_or_predicable): Likewise for local "earliest".
1130 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1132 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1133 and local "prev". Strengthen param "earliest" from rtx * to
1135 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1136 Strengthen param "earliest" from rtx * to rtx_insn **.
1138 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1140 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1141 "to" and local "insn" from rtx to rtx_insn *.
1143 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1145 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1146 from rtx to rtx_insn *.
1147 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1148 (code_motion_path_driver): Likewise for local "last_insn".
1149 (simplify_changed_insns): Likewise for local "insn".
1151 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1153 * rtl.h (push_to_sequence): Strengthen param from rtx to
1155 (push_to_sequence2): Likewise for both params.
1156 (delete_insns_since): Likewise for param.
1157 (reorder_insns_nobb): Likewise for all three params.
1158 (set_new_first_and_last_insn): Likewise for both params.
1160 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1161 rtx_insn *. Remove now-redundant cast.
1162 (set_last_insn): Likewise.
1164 * builtins.c (expand_builtin_return): Strengthen local
1165 "call_fusage" from rtx to rtx_insn *.
1166 * cfgrtl.c (create_basic_block_structure): Likewise for local
1168 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1169 "first", "last" and local "insn".
1170 (delete_insns_since): Likewise for param "from".
1171 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1173 (push_to_sequence): Likewise for param "first" and local "last".
1174 (push_to_sequence2): Likewise for params "first" and "last".
1175 * lra.c (emit_add3_insn): Likewise for local "last".
1176 (lra_emit_add): Likewise.
1177 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1179 (process_address_1): Likewise for locals "insn", last".
1180 * modulo-sched.c (ps_first_note): Likewise for return type.
1181 * optabs.c (expand_binop_directly): Likewise for param "last".
1183 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1185 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1187 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1189 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1191 * function.h (struct sequence_stack): Strengthen fields "first"
1192 and "last" from rtx to rtx_insn *.
1193 (struct emit_status): Likewise for fields "x_first_insn" and
1196 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1197 (set_first_insn): Add checked cast.
1198 (get_last_insn): Remove now-redundant checked cast.
1199 (set_last_insn): Add checked cast.
1201 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1202 "saved_first" and "saved_last" from rtx to rtx_insn *.
1204 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1206 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1207 (unlink_insn_chain): Strengthen both params from rtx to
1210 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1212 (unlink_insn_chain): Likewise for params "first" and "last".
1213 Remove now-redundant checked cast.
1214 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1215 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1217 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1219 (add_insn): Likewise for param "insn" and local "prev".
1220 (add_insn_after_nobb): Likewise for both params and local "next".
1221 (add_insn_before_nobb): Likewise for both params and local "prev".
1222 (add_insn_after): Rename param "after" to "uncast_after",
1223 introducing local "after" with another checked cast.
1224 (add_insn_before): Rename params "insn" and "before", giving them
1225 "uncast_" prefixes, adding the old names back using checked casts.
1226 (emit_note_after): Likewise for param "after".
1227 (emit_note_before): Likewise for param "before".
1228 (emit_label): Add a checked cast.
1230 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1232 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1233 "insn" from rtx to rtx_insn *.
1235 * cselib.c (cselib_record_sets_hook): Likewise.
1237 * var-tracking.c (add_with_sets): Likewise, renaming back from
1238 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1241 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1243 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1244 and "header_" from rtx to rtx_insn *.
1245 (struct basic_block_d): Likewise for field "head_" within "x"
1246 field of union basic_block_il_dependent.
1247 (BB_HEAD): Drop function...
1248 (SET_BB_HEAD): ...and this function in favor of...
1249 (BB_HEAD): ...reinstate macro.
1250 (BB_END): Drop function...
1251 (SET_BB_END): ...and this function in favor of...
1252 (BB_END): ...reinstate macro.
1253 (BB_HEADER): Drop function...
1254 (SET_BB_HEADER): ...and this function in favor of...
1255 (BB_HEADER): ...reinstate macro.
1257 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1258 (fix_crossing_unconditional_branches): Likewise.
1259 * caller-save.c (save_call_clobbered_regs): Likewise.
1260 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1261 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1262 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1263 (merge_blocks_move_successor_nojumps): Likewise.
1264 (outgoing_edges_match): Update use of for_each_rtx to
1265 for_each_rtx_in_insn.
1266 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1267 (expand_gimple_cond): Likewise.
1268 (expand_gimple_tailcall): Likewise.
1269 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1271 (construct_exit_block): Drop use of SET_BB_END.
1272 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1274 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1275 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1276 SET_BB_HEAD and SET_BB_END.
1277 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1279 (rtl_delete_block): Drop use of SET_BB_HEAD.
1280 (rtl_split_block): Drop use of SET_BB_END.
1281 (emit_nop_for_unique_locus_between): Likewise.
1282 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1283 (block_label): Drop use of SET_BB_HEAD.
1284 (fixup_abnormal_edges): Drop use of SET_BB_END.
1285 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1286 (relink_block_chain): Likewise.
1287 (fixup_reorder_chain): Drop use of SET_BB_END.
1288 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1289 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1290 rtx_insn **. Drop use of SET_BB_HEADER.
1291 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1293 (BB_HEAD): Delete this function.
1294 (SET_BB_HEAD): Likewise.
1296 (SET_BB_END): Likewise.
1297 (BB_HEADER): Likewise.
1298 (SET_BB_HEADER): Likewise.
1299 * emit-rtl.c (add_insn_after): Rename param "insn" to
1300 "uncast_insn", adding a new local "insn" and a checked cast to
1301 rtx_insn *. Drop use of SET_BB_END.
1302 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1303 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1304 (reorder_insns): Drop use of SET_BB_END.
1305 (emit_insn_after_1): Strengthen param "first" and locals "last",
1306 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1307 (emit_pattern_after_noloc): Add checked cast.
1308 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1309 (restore_other_notes): Likewise.
1310 (move_insn): Likewise.
1311 (sched_extend_bb): Likewise.
1312 (fix_jump_move): Likewise.
1313 * ifcvt.c (noce_process_if_block): Likewise.
1314 (dead_or_predicable): Likewise.
1315 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1316 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1317 * sel-sched-ir.c (sel_move_insn): Likewise.
1318 * sel-sched.c (move_nop_to_previous_block): Likewise.
1320 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1322 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1324 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1326 * basic-block.h (create_basic_block_structure): Strengthen params
1327 1 "head" and 2 "end" from rtx to rtx_insn *.
1328 * cfgrtl.c (create_basic_block_structure): Likewise.
1329 (rtl_create_basic_block): Update casts from void * to rtx to
1330 rtx_insn *, so that we can pass them as rtx_insn * to
1331 create_basic_block_structure.
1332 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1334 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1336 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1338 (check_for_inc_dec): Strengthen param "insn" from rtx to
1341 * cselib.h (cselib_process_insn): Likewise.
1343 * cselib.c (cselib_record_sets): Likewise.
1344 (cselib_process_insn): Likewise.
1346 * dse.c (struct insn_info): Likewise for field "insn".
1347 (check_for_inc_dec_1): Likewise for local "insn".
1348 (check_for_inc_dec): Likewise for param "insn".
1349 (scan_insn): Likewise.
1350 (dse_step1): Likewise for local "insn".
1352 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1353 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1355 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1357 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1358 from rtx to rtx_insn *.
1359 (DEP_PRO): Delete this function and...
1360 (SET_DEP_PRO): ...this function in favor of...
1361 (DEP_PRO): ...reinstate this macro.
1362 (DEP_CON): Delete this function and...
1363 (SET_DEP_CON): ...this function in favor of...
1364 (DEP_CON): ...reinstate this old macro.
1365 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1366 (init_dep): Likewise.
1367 (set_priorities): Likewise for both params.
1368 (sd_copy_back_deps): Likewise for params 1 and 2.
1370 * haifa-sched.c (priority): Likewise for param "insn" and local
1372 (set_priorities): Likewise for params "head" and "tail" and local
1374 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1376 (add_to_speculative_block): Add a checked cast.
1377 (create_check_block_twin): Drop use of SET_DEP_CON.
1378 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1381 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1382 Drop use of SET_DEP_PRO
1383 (init_dep): Strengthen params "pro" and "con" from rtx to
1385 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1389 (SET_DEP_PRO): Delete.
1390 (SET_DEP_CON): Delete.
1392 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1394 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1395 from rtx to rtx_insn *.
1396 (VINSN_INSN_RTX): Eliminate rvalue function and...
1397 (SET_VINSN_INSN): ...lvalue function in favor of...
1398 (VINSN_INSN_RTX): reinstate this old macro.
1400 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1401 in favor of VINSN_INSN_RTX.
1402 (VINSN_INSN_RTX): Delete this function.
1403 (SET_VINSN_INSN_RTX): Likewise.
1405 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1407 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1408 (BND_TO): Delete this function and...
1409 (SET_BND_TO): ...this functions in favor of...
1410 (BND_TO): ...reinstating this macro.
1411 (struct _fence): Strengthen field "executing_insns" from
1412 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1413 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1414 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1415 and param "insn" from rtx to insn_t.
1416 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1419 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1421 (rtx_vec_t): Likewise.
1422 (struct sched_deps_info_def): Strengthen param of "start_insn"
1423 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1424 "note_mem_dep" callback and first param of "note_dep" callback.
1426 * haifa-sched.c (add_to_speculative_block): Strengthen param
1427 "insn" from rtx to rtx_insn *.
1428 (clear_priorities): Likewise.
1429 (calc_priorities): Likewise for local "insn".
1431 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1432 Remove redundant checked cast.
1433 (haifa_note_mem_dep): Likewise for param "pending_insn".
1434 (haifa_note_dep): Likewise for param "elem".
1435 (note_mem_dep): Likewise for param "e".
1436 (sched_analyze_1): Add checked casts.
1437 (sched_analyze_2): Likewise.
1439 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1440 from rtx to rtx_insn *.
1441 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1442 from vec<rtx> * to vec<rtx_insn *> *.
1444 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1446 (flist_add): Strengthen param "executing_insns" from
1447 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1448 (advance_deps_context): Remove now-redundant checked cast.
1449 (init_fences): Replace uses of NULL_RTX with NULL.
1450 (merge_fences): Strengthen params "last_scheduled_insn" and
1451 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1452 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1453 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1454 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1455 an instruction, rather than doing double-duty as a pattern.
1456 (return_nop_to_pool): Update for change of insn_t.
1457 (deps_init_id): Remove now-redundant checked cast.
1458 (struct sched_scan_info_def): Strengthen param of "init_insn"
1459 callback from rtx to insn_t.
1460 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1461 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1463 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1464 "end" from rtx to rtx_insn *.
1465 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1466 (rtx insn_rtx, bool force_unique_p)
1467 (BND_TO): Delete function.
1468 (SET_BND_TO): Delete function.
1470 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1472 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1473 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1475 (undo_transformations): Likewise for param "insn".
1476 (update_liveness_on_insn): Likewise.
1477 (compute_live_below_insn): Likewise for param "insn" and local
1479 (update_data_sets): Likewise for param "insn".
1480 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1481 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1482 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1484 (move_cond_jump): Likewise for param "insn".
1485 (move_cond_jump): Drop use of SET_BND_TO.
1486 (compute_av_set_on_boundaries): Likewise.
1487 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1488 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1489 from rtx to rtx_insn *.
1490 (maybe_emit_renaming_copy): Likewise for param "insn".
1491 (maybe_emit_speculative_check): Likewise.
1492 (handle_emitting_transformations): Likewise.
1493 (remove_insn_from_stream): Likewise.
1494 (code_motion_process_successors): Strengthen local "succ" from rtx
1497 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1499 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1500 ilist_t, not _xlist_t;
1501 (ILIST_INSN): Define in terms of new union field "insn".
1502 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1504 (struct _list_node): Add new field "insn" to the union, of type
1506 (ilist_add): Replace macro with an inline function, requiring an
1508 (ilist_remove): Define this macro directly in terms of
1509 _list_remove, rather than indirectly via _xlist_remove.
1510 (ilist_clear): Likewise, in terms of _list_clear rather than
1512 (ilist_is_in_p): Replace macro with an inline function, requiring
1514 (_list_iter_cond_insn): New function.
1515 (ilist_iter_remove): Define this macro directly in terms of
1516 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1517 (ilist_iterator): Define directly in terms of _list_iterator
1518 rather than indirectly through _xlist_iterator.
1519 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1520 than in terms of _FOR_EACH_X.
1521 (FOR_EACH_INSN_1): Likewise.
1523 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1527 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1528 DECL_HARD_REGISTER and return for invalid register specifications.
1529 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1530 DECL_HARD_REGISTER, call expand_one_error_var.
1531 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1532 CC_REGNUM with non-MODE_CC modes.
1533 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1535 2014-08-26 Marek Polacek <polacek@redhat.com>
1538 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1540 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1542 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1543 qi cost; add di cost.
1544 (cortexa57_addrcost_table): Likewise.
1546 2014-08-26 Marek Polacek <polacek@redhat.com>
1549 * expr.c (is_aligning_offset): Remove logical not.
1551 2014-08-26 Marek Polacek <polacek@redhat.com>
1554 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1555 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1557 2014-08-26 Richard Biener <rguenther@suse.de>
1559 PR tree-optimization/62175
1560 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1561 expand possibly trapping operations.
1563 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1565 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1566 "insn" from rtx to rtx_insn *.
1567 (permute_load): Likewise for param "insn".
1568 (permute_store): Likewise.
1569 (handle_special_swappables): Likewise for local "insn".
1570 (replace_swap_with_copy): Likewise for locals "insn" and
1572 (rs6000_analyze_swaps): Likewise for local "insn".
1574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1576 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1579 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1581 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1582 "note_list" from rtx to rtx_insn *.
1583 (BB_NOTE_LIST): Replace this function and...
1584 (SET_BB_NOTE_LIST): ...this function with...
1585 (BB_NOTE_LIST): ...the former macro implementation.
1587 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1588 local "from_start" from rtx to rtx_insn *. Strengthen param
1589 "to_endp" from rtx * to rtx_insn **.
1591 * haifa-sched.c (concat_note_lists): Likewise.
1592 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1594 (sel_restore_notes): Likewise.
1595 (move_bb_info): Likewise.
1596 (BB_NOTE_LIST): Delete this function.
1597 (SET_BB_NOTE_LIST): Delete this function.
1598 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1599 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1603 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1604 from rtx * to rtx_insn **.
1605 (reorder2): Likewise.
1606 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1607 from rtx to rtx_insn *.
1609 * doc/tm.texi: Update mechanically for above change to target.def.
1611 * sched-int.h (note_list): Strengthen this variable from rtx to
1613 (remove_notes): Likewise for both params.
1614 (restore_other_notes): Likewise for return type and first param.
1615 (struct ready_list): Strengthen field "vec" from rtx * to
1617 (struct dep_replacement): Strenghten field "insn" from rtx to
1619 (struct deps_desc): Likewise for fields "last_debug_insn",
1621 (struct haifa_sched_info): Likewise for callback field
1622 "can_schedule_ready_p"'s param, for first param of "new_ready"
1623 callback field, for both params of "rank" callback field, for
1624 first field of "print_insn" callback field (with a const), for
1625 both params of "contributes_to_priority" callback, for param
1626 of "insn_finishes_block_p" callback, for fields "prev_head",
1627 "next_tail", "head", "tail", for first param of "add_remove_insn"
1628 callback, for first param of "begin_schedule_ready" callback, for
1629 both params of "begin_move_insn" callback, and for second param
1630 of "advance_target_bb" callback.
1631 (add_dependence): Likewise for params 1 and 2.
1632 (sched_analyze): Likewise for params 2 and 3.
1633 (deps_analyze_insn): Likewise for param 2.
1634 (ready_element): Likewise for return type.
1635 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1636 (try_ready): Strenghten param from rtx to rtx_insn *.
1637 (sched_emit_insn): Likewise for return type.
1638 (record_delay_slot_pair): Likewise for params 1 and 2.
1639 (add_delay_dependencies): Likewise for param.
1640 (contributes_to_priority): Likewise for both params.
1641 (find_modifiable_mems): Likewise.
1643 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1644 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1645 "first_older_only_insn" from rtx to rtx_insn *.
1646 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1649 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1650 "last_scheduled_iter0" from rtx to rtx_insn *.
1651 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1652 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1653 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1654 "insn" from rtx to rtx_insn *.
1655 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1657 (c6x_sched_reorder2): Strengthen param "ready" and locals
1658 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1659 "insn" from rtx to rtx_insn *.
1660 (c6x_variable_issue): Add a checked cast when assigning from insn
1661 to ss.last_scheduled_iter0.
1662 (split_delayed_branch): Strengthen param "insn" and local "i1"
1663 from rtx to rtx_insn *.
1664 (split_delayed_nonbranch): Likewise.
1665 (undo_split_delayed_nonbranch): Likewise for local "insn".
1666 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1667 "entry_after", "end_packet", "head_insn", "tail_insn",
1668 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1669 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1670 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1671 but add a checked cast on loop->start_label. Consolidate calls to
1672 avoid assigning result of gen_spkernel to "insn", now an
1675 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1676 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1678 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1679 rtx_insn **. Strengthen locals "top", "next" from rtx to
1681 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1682 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1683 (add_parameter_dependencies): Strengthen params "call", "head" and
1684 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1685 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1686 (add_dependee_for_func_arg): Likewise for param "arg" and local
1688 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1689 "tail" and locals "insn", "first_arg".
1691 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1692 for params "head", "tail" and locals "insn", "next", "next_tail".
1693 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1694 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1695 "insn", "lowest", "highest" from rtx to rtx_insn *.
1696 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1698 (ia64_sched_reorder2): Likewise.
1700 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1701 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1702 from rtx * to rtx_insn **.
1703 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1705 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1707 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1708 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1711 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1712 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1714 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1715 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1716 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1718 (vr4130_reorder): Likewise.
1719 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1721 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1723 (mips_sched_reorder): Likewise.
1724 (mips_sched_reorder2): Likewise.
1726 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1728 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1729 Strengthen local "tmp" from rtx to rtx_insn *.
1730 (rs6000_sched_reorder2): Likewise.
1732 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1733 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1734 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1735 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1737 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1738 "tmp2" from rtx to rtx_insn *.
1739 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1740 Strengthen local "insn" from rtx to rtx_insn *.
1741 (ready_reorder): Strengthen param "ready" from rtx * to
1742 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1743 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1744 (sh_reorder2): Likewise.
1746 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1747 local "insn" from rtx to rtx_insn *.
1749 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1751 (scheduled_insns): Strengthen this variable from vec<rtx> to
1753 (set_modulo_params): Likewise for locals "i1", "i2".
1754 (record_delay_slot_pair): Likewise for params "i1", "i2".
1755 (add_delay_dependencies): Likewise for param "insn".
1756 (cond_clobbered_p): Likewise.
1757 (recompute_todo_spec): Likewise for local "prev".
1758 (last_scheduled_insn): Likewise for this variable.
1759 (nonscheduled_insns_begin): Likewise.
1760 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1762 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1764 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1765 Strengthen local "insn" from rtx to rtx_insn *.
1766 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1767 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1768 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1769 (ready_remove_first): Likewise for return type and local "t".
1770 (ready_element): Likewise for return type.
1771 (ready_remove): Likewise for return type and local "t".
1772 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1773 (check_clobbered_conditions): Strengthen local "x" from rtx to
1774 rtx_insn *, adding a checked cast.
1775 (schedule_insn): Likewise for param "insn".
1776 (remove_notes): Likewise for params "head", "tail" and locals
1777 "next_tail", "insn", "next".
1778 (struct haifa_saved_data): Likewise for fields
1779 "last_scheduled_insn", "nonscheduled_insns_begin".
1780 (save_backtrack_point): Update for change to field "vec" of
1782 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1784 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1785 from rtx to rtx_insn *
1786 (resolve_dependencies): Strengthen param "insn" from rtx to
1788 (restore_other_notes): Likewise for return type, for param "head"
1789 and local "note_head".
1790 (undo_all_replacements): Likewise for local "insn".
1791 (first_nonscheduled_insn): Likewise for return type and local "insn".
1792 (queue_to_ready): Likewise for local "insn", adding checked casts.
1793 (early_queue_to_ready): Likewise for local "insn".
1794 (debug_ready_list_1): Strengthen local "p" from rtx * to
1796 (move_insn): Strengthen param "insn" and local "note" from rtx to
1798 (insn_finishes_cycle_p): Likewise for param "insn".
1799 (max_issue): Likewise for local "insn".
1800 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1802 (commit_schedule): Strengthen param "prev_head" and local "insn"
1803 from rtx to rtx_insn *
1804 (prune_ready_list): Likewise for local "insn".
1805 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1806 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1807 (set_priorities): Likewise for local "prev_head".
1808 (try_ready): Likewise for param "next".
1809 (fix_tick_ready): Likewise.
1810 (change_queue_index): Likewise.
1811 (sched_extend_ready_list): Update for change to field "vec" of
1813 (generate_recovery_code): Strengthen param "insn" from rtx to
1815 (begin_speculative_block): Likewise.
1816 (create_check_block_twin): Likewise for param "insn" and locals
1817 "label", "check", "twin". Introduce local "check_pat" to avoid
1818 "check" being used as a plain rtx before being used as an insn.
1819 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1820 extracting elements from ready_list.
1821 (sched_remove_insn): Strengthen param "insn" from rtx to
1823 (sched_emit_insn): Likewise for return type.
1824 (ready_remove_first_dispatch): Likewise for return type and local
1827 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1829 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1832 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1833 from rtx to rtx_insn *.
1834 (add_dependence_list): Likewise for param "insn". Add a checked
1836 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1837 to rtx_insn *. Strengthen param "list_p" from rtx * to
1839 (chain_to_prev_insn): Strengthen param "insn" and locals
1840 "prec_nonnote", "i" from rtx to rtx_insn *.
1841 (flush_pending_lists): Likewise for param "insn".
1842 (cur_insn): Likewise for this variable.
1843 (haifa_start_insn): Add a checked cast.
1844 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1845 (sched_analyze_reg): Likewise for param "insn".
1846 (sched_analyze_1): Likewise.
1847 (sched_analyze_2): Likewise. Add checked casts.
1848 (sched_analyze_insn): Likewise. Also for local "prev".
1849 (deps_analyze_insn): Likewise for param "insn".
1850 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1851 (add_dependence_1): Likewise for params "insn", "elem".
1852 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1853 (parse_add_or_inc): Likewise for param "insn".
1854 (find_inc): Likewise for local "inc_cand".
1855 (find_modifiable_mems): Likewise for params "head", "tail" and
1856 locals "insn", "next_tail".
1858 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1859 (begin_schedule_ready): Likewise for param "insn".
1860 (begin_move_insn): Likewise for params "insn" and "last".
1861 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1863 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1864 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1865 (ebb_add_remove_insn): Likewise for param "insn".
1866 (advance_target_bb): Likewise.
1868 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1870 (check_live): Likewise for param "insn".
1871 (init_ready_list): Likewise for local "insn".
1872 (can_schedule_ready_p): Likewise for param "insn".
1873 (begin_schedule_ready): Likewise.
1874 (new_ready): Likewise for param "next".
1875 (rgn_print_insn): Likewise for param "insn".
1876 (rgn_rank): Likewise for params "insn1", "insn2".
1877 (contributes_to_priority): Likewise for params "next", "insn".
1878 (rgn_insn_finishes_block_p): Likewise for param "insn".
1879 (add_branch_dependences): Likewise for params "head", "tail" and
1880 locals "insn", "last".
1881 (rgn_add_remove_insn): Likewise for param "insn".
1882 (advance_target_bb): Likewise.
1884 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1885 const_rtx to const rtx_insn *.
1887 * sel-sched-dump.h (sel_print_insn): Likewise.
1889 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1890 (deps_init_id): Likewise.
1892 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1893 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1896 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1898 * output.h (final_start_function): Strengthen param 1 from rtx to
1901 * final.c (final_start_function): Likewise, renaming back from
1902 "uncast_first" to "first", and dropping the checked cast from rtx
1905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1907 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1908 * final.c (final): Likewise. Rename param back from
1909 "uncast_first" to "first" and eliminate the checked cast from rtx
1912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1914 * output.h (shorten_branches): Strengthen param from rtx to
1917 * final.c (shorten_branches): Likewise, renaming param back from
1918 "uncast_first" to "first", and dropping the checked cast from rtx
1921 * genattr.c (gen_attr): Likewise when writing out the prototype of
1924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1926 * sched-int.h (struct haifa_sched_info): Strengthen fields
1927 "prev_head" and "next_tail" from rtx to rtx_insn *.
1929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1931 * rtl.h (rtx_jump_table_data::get_labels): New method.
1932 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1933 with use of the new rtx_jump_table_data::get_labels method.
1934 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1935 to rtx_jump_table_data *. Simplify by using get_labels method.
1936 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1937 a dyn_cast, introducing local "table", using it to replace
1938 label-lookup logic with a get_labels method call.
1939 (patch_jump_insn): Simplify using get_labels method.
1940 * dwarf2cfi.c (create_trace_edges): Likewise.
1941 * rtlanal.c (label_is_jump_target_p): Likewise.
1943 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1945 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1948 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1949 (unshare_all_rtl_again): Likewise, also for local "p".
1951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1953 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1955 * cfgrtl.c (delete_insn_and_edges): Likewise.
1957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1959 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1960 from rtx to rtx_insn *.
1962 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1966 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1967 locals "returnjump", "epilogue_end", "insn", "next".
1969 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1970 "returnjump" from rtx * to rtx_insn **.
1971 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1975 * basic-block.h (struct edge_def). Strengthen "r" within
1976 union edge_def_insns from rtx to rtx_insn *.
1978 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1979 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1981 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1982 from rtx to rtx_insn *.
1983 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1985 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1986 (reg_used_on_edge): Likewise.
1987 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1988 (gt_pch_nx): New overload for rtx_insn *&.
1989 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1990 from rtx to rtx_insn *.
1992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1994 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1995 from rtx to rtx_insn *.
1996 (BB_FOOTER): Replace function with access macro.
1997 (SET_BB_FOOTER): Delete.
1999 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2001 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2002 (emit_barrier_after_bb): Likewise.
2003 (record_effective_endpoints): Likewise.
2004 (relink_block_chain): Likewise.
2005 (fixup_fallthru_exit_predecessor): Likewise.
2006 (cfg_layout_duplicate_bb): Likewise.
2007 (cfg_layout_split_block): Likewise.
2008 (cfg_layout_delete_block): Likewise.
2009 (cfg_layout_merge_blocks): Likewise.
2010 (BB_FOOTER): Delete function.
2011 (SET_BB_FOOTER): Delete function.
2012 * combine.c (update_cfg_for_uncondjump): Replace uses of
2013 SET_BB_FOOTER with BB_FOOTER.
2015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2017 * except.h (struct eh_landing_pad_d): Strengthen field
2018 "landing_pad" from rtx to rtx_code_label *.
2020 * except.c (sjlj_emit_dispatch_table): Likewise for param
2022 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2024 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2026 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2027 first param from rtx to rtx_insn *.
2028 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2029 field "set_frame_ptr_insn".
2030 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2031 "csend" from rtx to rtx_code_label *.
2032 (xtensa_expand_atomic): Likewise for local "csloop".
2033 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2035 (xtensa_call_tls_desc): Likewise for return type and locals
2036 "call_insn", "insns".
2037 (xtensa_legitimize_tls_address): Likewise for local "insns".
2038 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2042 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2043 first param from rtx to rtx_insn *.
2044 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2049 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2050 Strengthen param 1 from rtx to rtx_insn *.
2051 (tilepro_output_cbranch): Likewise.
2052 (tilepro_adjust_insn_length): Likewise.
2053 (tilepro_final_prescan_insn): Likewise for sole param.
2055 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2056 Likewise for local "last".
2057 (cbranch_predicted_p): Likewise for param "insn".
2058 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2059 (tilepro_output_cbranch_with_opcode): Likewise.
2060 (tilepro_output_cbranch): Likewise.
2061 (frame_emit_load): Likewise for return type and locals "seq",
2063 (emit_sp_adjust): Likewise for return type and local "insn".
2064 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2066 (tilepro_adjust_insn_length): Likewise for param "insn".
2067 (next_insn_to_bundle): Likewise for return type and params
2069 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2070 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2072 (match_addli_pcrel): Likewise for param "insn".
2073 (replace_addli_pcrel): Likewise.
2074 (match_auli_pcrel): Likewise.
2075 (replace_auli_pcrel): Likewise.
2076 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2078 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2079 "queue", "next_queue", "prev".
2080 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2081 (tilepro_final_prescan_insn): Likewise for param "insn".
2083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2085 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2086 Strengthen param 1 from rtx to rtx_insn *.
2087 (tilegx_output_cbranch): Likewise.
2088 (tilegx_adjust_insn_length): Likewise.
2089 (tilegx_final_prescan_insn): Likewise for sole param.
2091 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2093 (cbranch_predicted_p): Likewise for param "insn".
2094 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2095 (tilegx_output_cbranch_with_opcode): Likewise.
2096 (tilegx_output_cbranch): Likewise.
2097 (frame_emit_load): Likewise for return type.
2098 (set_frame_related_p): Likewise for locals "seq", "insn".
2099 (emit_sp_adjust): Likewise for return type, and for local "insn".
2100 Introduce local "pat" for use in place of "insn" where the latter
2101 isn't an instruction.
2102 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2103 from rtx to rtx_insn *.
2104 (tilegx_adjust_insn_length): Likewise for param "insn".
2105 (next_insn_to_bundle): Likewise for return type and params "r" and
2107 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2109 (replace_insns): Likewise for params "old_insn", "new_insns".
2110 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2112 (replace_mov_pcrel_step2): Likewise.
2113 (replace_mov_pcrel_step3): Likewise.
2114 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2116 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2117 "queue", "next_queue", "prev".
2118 (tilegx_output_mi_thunk): Likewise for local "insn".
2119 (tilegx_final_prescan_insn): Likewise for param "insn".
2121 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2123 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2125 (frame_emit_load): Likewise.
2126 (frame_emit_add_imm): Likewise, also for local "insn".
2127 (spu_expand_prologue): Likewise for local "insn".
2128 (struct spu_bb_info): Likewise for field "prop_jump".
2129 (emit_nop_for_insn): Likewise for param "insn" and local
2131 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2133 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2134 locals "hint", "insn".
2135 (get_branch_target): Likewise for param "branch".
2136 (insn_clobbers_hbr): Likewise for param "insn".
2137 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2138 locals "insn", "before_4", "before_16".
2139 (insert_hbrp): Likewise for local "insn".
2140 (spu_machine_dependent_reorg): Likewise for locals "branch",
2141 "insn", "next", "bbend".
2142 (uses_ls_unit): Likewise for param "insn".
2143 (get_pipe): Likewise.
2144 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2145 introducing a checked cast.
2146 (spu_sched_adjust_cost): Likewise for params "insn" and
2148 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2149 (spu_sms_res_mii): Likewise.
2151 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2153 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2154 from rtx to rtx_insn *.
2155 (output_cbranch): Likewise for param 6.
2156 (output_return): Likewise for param 1.
2157 (output_sibcall): Likewise.
2158 (output_v8plus_shift): Likewise.
2159 (output_v8plus_mult): Likewise.
2160 (output_v9branch): Likewise for param 7.
2161 (output_cbcond): Likewise for param 3.
2163 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2165 (sparc_legitimize_pic_address): Likewise.
2166 (sparc_emit_call_insn): Likewise.
2167 (emit_save_or_restore_regs): Likewise.
2168 (emit_window_save): Likewise for return type and local "insn".
2169 (sparc_expand_prologue): Likewise for local "insn".
2170 (sparc_flat_expand_prologue): Likewise.
2171 (output_return): Likewise for param "insn".
2172 (output_sibcall): Likewise for param "insn" and local "delay".
2173 (output_ubranch): Likewise for param "insn".
2174 (output_cbranch): Likewise.
2175 (output_cbcond): Likewise.
2176 (output_v9branch): Likewise.
2177 (output_v8plus_shift): Likewise.
2178 (sparc_output_mi_thunk): Likewise for local "insn".
2179 (get_some_local_dynamic_name): Likewise.
2180 (output_v8plus_mult): Likewise for param "insn".
2182 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2184 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2185 from rtx to rtx_insn *.
2186 (output_branchy_insn): Likewise for param 3.
2187 (output_far_jump): Likewise for param 1.
2188 (final_prescan_insn): Likewise.
2189 (sh_insn_length_adjustment): Likewise for sole param.
2191 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2192 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2194 (sh_emit_compare_and_set): Likewise for local "lab".
2195 (output_far_jump): Strengthen param "insn" and local "prev" from
2197 (output_branchy_insn): Likewise for param "insn" and local
2199 (output_ieee_ccmpeq): Likewise for param "insn".
2200 (struct label_ref_list_d): Strengthen field "label" from rtx to
2202 (pool_node): Likewise.
2203 (pool_window_label): Likewise for this global.
2204 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2205 (dump_table): Strengthen params "start", "barrier" and local
2206 "scan" from rtx to rtx_insn *.
2207 (broken_move): Likewise for param "insn".
2208 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2209 Strengthen param "first_mova" from rtx * to rtx_insn **.
2210 (mova_p): Likewise for param "insn".
2211 (fixup_mova): Likewise for param "mova".
2212 (find_barrier): Likewise for return type, params "mova" and
2213 "from", and locals "barrier_before_mova", "found_barrier",
2214 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2215 "label" from rtx to rtx_code_label *.
2216 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2218 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2219 (split_branches): Likewise for param "first" and local "insn".
2220 (final_prescan_insn): Likewise for param "insn".
2221 (sequence_insn_p): Likewise for locals "prev", "next".
2222 (sh_insn_length_adjustment): Likewise for param "insn".
2223 (sh_can_redirect_branch): Likewise for local "insn".
2224 (find_r0_life_regions): Likewise for locals "end", "insn".
2225 (sh_output_mi_thunk): Likewise for local "insns".
2227 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2229 * config/score/score.c (score_output_mi_thunk): Strengthen local
2230 "insn" from rtx to rtx_insn *.
2231 (score_prologue): Likewise.
2233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2235 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2236 1 from rtx to rtx_insn *.
2237 (s390_emit_jump): Likewise for return type.
2238 (s390_emit_call): Likewise.
2239 (s390_load_got): Likewise.
2241 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2243 (s390_match_ccmode): Likewise for param "insn".
2244 (s390_emit_jump): Likewise for return type.
2245 (s390_split_branches): Likewise for local "label".
2246 (struct constant): Strengthen field "label" from rtx to
2248 (struct constant_pool): Likewise for field "label". Strengthen
2249 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2251 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2253 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2254 (s390_end_pool): Likewise.
2255 (s390_dump_pool): Likewise for local "insn".
2256 (s390_mainpool_start): Likewise.
2257 (s390_chunkify_start): Likewise.
2258 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2259 with insns. Strengthen locals "label", "jump", "barrier", "next",
2260 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2261 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2263 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2264 "jump", "label", "next_insn".
2265 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2266 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2268 (s390_load_got): Likewise for return type and local "insns".
2269 (s390_save_gprs_to_fprs): Likewise for local "insn".
2270 (s390_restore_gprs_from_fprs): Likewise.
2271 (pass_s390_early_mach::execute): Likewise.
2272 (s390_emit_prologue): Likewise for local "insns".
2273 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2275 (s390_emit_call): Strengthen return type and local "insn" from
2277 (s390_emit_tpf_eh_return): Likewise for local "insn".
2278 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2279 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2280 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2282 (s390_non_addr_reg_read_p): Likewise for param "insn".
2283 (find_cond_jump): Likewise for return type and param "insn".
2284 (s390_swap_cmp): Likewise for param "insn".
2285 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2286 "prev_insn", "next_insn".
2287 (s390_reorg): Likewise for locals "insn", "target".
2288 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2289 (s390_sched_variable_issue): For now, rename param "insn" to
2290 "uncast_insn", introducing a checked cast.
2291 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2293 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2294 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2298 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2299 param from rtx to rtx_insn *.
2300 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2302 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2304 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2305 4 from rtx to rtx_insn *.
2306 (rs6000_final_prescan_insn): Likewise for first param.
2307 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2309 (rs6000_get_some_local_dynamic_name): Likewise.
2310 (output_cbranch): Likewise for param "insn".
2311 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2312 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2313 (rs6000_emit_allocate_stack): Likewise for local "insn".
2314 (load_cr_save): Likewise.
2315 (restore_saved_cr): Likewise.
2316 (restore_saved_lr): Likewise.
2317 (emit_cfa_restores): Likewise.
2318 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2319 "deleted_debug_label".
2320 (rs6000_output_mi_thunk): Likewise for local "insn".
2321 (rs6000_final_prescan_insn): Likewise for param "insn".
2323 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2325 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2326 Strengthen param "insn" from rtx to rtx_insn *.
2327 * config/picochip/picochip.c (picochip_current_prescan_insn):
2328 Likewise for this variable.
2329 (picochip_final_prescan_insn): Likewise for param "insn".
2331 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2333 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2334 from rtx to rtx_insn *.
2335 (pa_output_indirect_call): Likewise.
2336 (pa_adjust_insn_length): Likewise.
2337 (pa_attr_length_millicode_call): Likewise.
2338 (pa_attr_length_call): Likewise.
2339 (pa_attr_length_indirect_call): Likewise.
2341 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2343 (pa_attr_length_millicode_call): Likewise.
2344 (pa_attr_length_call): Likewise.
2345 (pa_output_call): Likewise.
2346 (pa_attr_length_indirect_call): Likewise.
2347 (pa_output_indirect_call): Likewise.
2349 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2351 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2352 Strengthen first param from rtx to rtx_insn *.
2353 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2356 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2358 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2359 type from rtx to rtx_insn *.
2360 (mips_expand_call): Likewise.
2361 (mips_adjust_insn_length): Likewise for first param.
2362 (mips_output_conditional_branch): Likewise.
2363 (mips_output_order_conditional_branch): Likewise.
2364 (mips_final_prescan_insn): Likewise.
2366 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2367 rtx_insn * for the SEQUENCE case.
2368 (SEQ_END): Likewise.
2369 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2370 (mips_emit_call_insn): Likewise, also for local "insn".
2371 (mips16_gp_pseudo_reg): Likewise for local "scan".
2372 (mips16_build_call_stub): Likewise for return type and for local
2373 "insn". Introduce a new local "pattern" so that "insn" can indeed
2375 (mips_expand_call): Strengthen return type and local "insn" from
2377 (mips_block_move_loop): Strengthen local "label" from rtx to
2379 (mips_expand_synci_loop): Likewise for locals "label",
2381 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2383 (mips16e_collect_argument_saves): Likewise for locals "insn",
2385 (mips_find_gp_ref): Likewise for param of callback for "pred"
2386 param, and for local "insn".
2387 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2388 (mips_insn_has_flexible_gp_ref_p): Likewise.
2389 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2391 (mips_epilogue_set_cfa): Likewise for local "insn".
2392 (mips_expand_epilogue): Likewise.
2393 (mips_adjust_insn_length): Likewise for param "insn".
2394 (mips_output_conditional_branch): Likewise.
2395 (mips_output_order_conditional_branch): Likewise.
2396 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2397 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2398 "falu2_turn_enabled_insn".
2399 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2400 "done_label" from rtx to rtx_code_label *.
2401 (struct mips16_constant): Likewise for field "label".
2402 (mips16_add_constant): Likewise for return type.
2403 (mips16_emit_constants_1): Strengthen return type and param "insn"
2404 from rtx to rtx_insn *.
2405 (mips16_emit_constants): Likewise for param "insn".
2406 (mips16_insn_length): Likewise.
2407 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2408 to rtx_code_label *.
2409 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2410 from rtx to rtx_insn *.
2411 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2412 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2413 (r10k_simplify_address): Strengthen param "insn" and local
2414 "def_insn" from rtx to rtx_insn *.
2415 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2417 (r10k_needs_protection_p_1): Update target type of cast of data
2418 from to rtx to rtx_insn *.
2419 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2420 rtx * to rtx_insn **.
2421 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2423 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2424 (mips_call_expr_from_insn): Likewise for param "insn".
2425 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2426 (mips_find_pic_call_symbol): Likewise for param "insn".
2427 (mips_annotate_pic_calls): Likewise for local "insn".
2428 (mips_sim_insn): Likewise for this variable.
2429 (struct mips_sim): Likewise for field "insn" within elements of
2431 (mips_sim_wait_reg): Likewise for param "insn".
2432 (mips_sim_wait_regs): Likewise.
2433 (mips_sim_wait_units): Likewise.
2434 (mips_sim_wait_insn): Likewise.
2435 (mips_sim_issue_insn): Likewise.
2436 (mips_sim_finish_insn): Likewise.
2437 (mips_seq_time): Likewise for param "seq" and local "insn".
2438 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2439 locals "first", "second".
2440 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2441 "last", "last2", "next".
2442 (mips_avoid_hazard): Likewise for params "after", "insn".
2443 (mips_reorg_process_insns): Likewise for locals "insn",
2444 "last_insn", "subinsn", "next_insn".
2445 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2446 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2448 (mips_output_mi_thunk): Likewise for local "insn".
2449 (mips_final_prescan_insn): Likewise for param "insn".
2451 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2453 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2454 Strengthen return type and local "insns" from rtx to rtx_insn *.
2455 (microblaze_legitimize_tls_address): Likewise for local "insns".
2456 (microblaze_block_move_loop): Strengthen local "label" from rtx
2457 to rtx_code_label *.
2458 (microblaze_expand_prologue): Strengthen two locals named "insn"
2459 from rtx to rtx_insn *.
2460 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2461 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2462 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2463 to rtx_code_label *.
2465 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2467 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2468 param from rtx to rtx_insn *.
2469 (mep_reuse_lo): Likewise for third param.
2470 (mep_use_post_modify_p): Likewise for first param.
2471 (mep_core_address_length): Likewise.
2472 (mep_cop_address_length): Likewise.
2473 (mep_final_prescan_insn): Likewise.
2474 (mep_store_data_bypass_p): Likewise for both params.
2475 (mep_mul_hilo_bypass_p): Likewise.
2476 (mep_ipipe_ldc_p): Likewise for param.
2478 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2479 (mep_rewrite_mult): Likewise.
2480 (mep_rewrite_mulsi3): Likewise.
2481 (mep_rewrite_maddsi3): Likewise.
2482 (mep_reuse_lo_p_1): Likewise.
2483 (mep_reuse_lo_p): Likewise.
2484 (mep_frame_expr): Likewise.
2485 (mep_make_parallel): Likewise for both params.
2486 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2488 (mep_use_post_modify_p): Likewise for param "insn".
2489 (mep_core_address_length): Likewise.
2490 (mep_cop_address_length): Likewise.
2491 (mep_reg_set_in_function): Likewise for local "insn".
2492 (mep_asm_without_operands_p): Likewise.
2493 (F): Likewise for return type and param "x".
2494 (add_constant): Likewise for local "insn".
2495 (maybe_dead_move): Likewise for return type and local "insn".
2496 (mep_expand_prologue): Likewise for local "insn".
2497 (mep_final_prescan_insn): Likewise for param "insn".
2498 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2499 "next", "follow", "x".
2500 (mep_insert_repeat_label_last): Likewise for return type, param
2501 "last_insn", and locals "next", "prev". Strengthen param "label"
2502 from rtx to rtx_code_label *.
2503 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2505 (struct mep_doloop_end): Likewise for fields "insn" and
2507 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2508 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2509 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2511 (mep_invert_branch): Likewise for params "insn" and "after".
2512 (mep_reorg_erepeat): Likewise for param "insns" and locals
2513 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2514 "l" from rtx to rtx_code_label *.
2515 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2516 from rtx to rtx_insn *.
2517 (mep_reorg_addcombine): Likewise for param "insns" and locals
2519 (add_sp_insn_p): Likewise for param "insn".
2520 (mep_reorg_noframe): Likewise for param "insns" and locals
2521 "start_frame_insn", "end_frame_insn", "next".
2522 (mep_reorg): Likewise for local "insns".
2523 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2525 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2526 (mep_mul_hilo_bypass_p): Likewise.
2527 (mep_ipipe_ldc_p): Likewise for param "insn".
2528 (mep_make_bundle): Likewise for return type, param "cop" and local
2529 "insn", splitting out the latter into a new local "seq" for when it
2530 is a SEQUENCE rather than an insn.
2531 (core_insn_p): Likewise for param "insn".
2532 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2533 "last", "first", "note", "prev", "core_insn".
2535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2537 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2539 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2540 (m68k_final_prescan_insn): Likewise for first param.
2542 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2543 (m68k_set_frame_related): Likewise for param "insn".
2544 (output_btst): Likewise for param "insn".
2545 (m68k_final_prescan_insn): Likewise.
2546 (m68k_move_to_reg): Likewise for local "insn".
2547 (m68k_call_tls_get_addr): Likewise for local "insns".
2548 (m68k_call_m68k_read_tp): Likewise.
2549 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2550 (m68k_output_mi_thunk): Likewise for local "insn".
2552 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2554 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2555 first param from rtx to rtx_insn *.
2556 (iq2000_adjust_insn_length): Likewise.
2557 (iq2000_output_conditional_branch): Likewise.
2558 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2559 "insn" and local "nop_insn".
2560 (iq2000_annotate_frame_insn): Likewise for param "insn".
2561 (iq2000_expand_prologue): Likewise for both locals "insn".
2562 (iq2000_adjust_insn_length): Likewise for param "insn".
2563 (iq2000_output_conditional_branch): Likewise.
2565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2567 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2568 "insns" from rtx to rtx_insn *.
2569 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2570 (struct spill_fill_data): Likewise for field "init_after" and for
2571 elements of array field "prev_insn".
2572 (spill_restore_mem): Likewise for locals "insn", "first".
2573 (do_spill): Likewise for local "insn".
2574 (do_restore): Likewise.
2575 (ia64_expand_prologue): Likewise.
2576 (ia64_expand_epilogue): Likewise.
2577 (emit_insn_group_barriers): Likewise for locals "insn",
2579 (emit_all_insn_group_barriers): Likewise for locals "insn",
2581 (dfa_stop_insn): Likewise for this global.
2582 (dfa_pre_cycle_insn): Likewise.
2583 (ia64_nop): Likewise.
2584 (final_emit_insn_group_barriers): Likewise for locals "insn",
2586 (emit_predicate_relation_info): Likewise for locals "head", "n",
2588 (ia64_reorg): Likewise for local "insn".
2589 (ia64_output_mi_thunk): Likewise.
2590 (expand_vec_perm_interleave_2): Likewise for local "seq".
2592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2594 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2595 param 1 "insn" from rtx to rtx_insn *.
2596 (ix86_use_lea_for_mov): Likewise.
2597 (ix86_avoid_lea_for_addr): Likewise.
2598 (ix86_split_lea_for_addr): Likewise.
2599 (ix86_lea_for_add_ok): Likewise.
2600 (ix86_output_call_insn): Likewise.
2602 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2603 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2604 (ix86_output_function_epilogue): Likewise for locals "insn",
2605 "deleted_debug_label".
2606 (legitimize_tls_address): Likewise for local "insn".
2607 (get_some_local_dynamic_name): Likewise.
2608 (increase_distance): Likewise for params "prev", "next".
2609 (distance_non_agu_define_in_bb): Likewise for params "insn",
2610 "start" and locals "prev", "next".
2611 (distance_non_agu_define): Likewise for param "insn".
2612 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2613 locals "next", "prev".
2614 (distance_agu_use): Likewise for param "insn".
2615 (ix86_lea_outperforms): Likewise.
2616 (ix86_ok_to_clobber_flags): Likewise.
2617 (ix86_avoid_lea_for_add): Likewise.
2618 (ix86_use_lea_for_mov): Likewise.
2619 (ix86_avoid_lea_for_addr): Likewise.
2620 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2621 (ix86_split_lea_for_addr): Likewise for param "insn".
2622 (ix86_lea_for_add_ok): Likewise for param "insn".
2623 (ix86_expand_carry_flag_compare): Likewise for local
2625 (ix86_expand_int_movcc): Likewise.
2626 (ix86_output_call_insn): Likewise for param "insn".
2627 (ix86_output_call_insn): Likewise for local "i".
2628 (x86_output_mi_thunk): Introduce local "insn", using it in place
2629 of "tmp" when dealing with insns.
2630 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2632 (ix86_pad_returns): Likewise for locals "ret", "prev".
2633 (ix86_count_insn_bb): Likewise for local "insn".
2634 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2635 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2636 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2637 (expand_vec_perm_interleave2): Likewise for local "seq".
2638 (expand_vec_perm_vperm2f128_vblend): Likewise.
2639 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2640 call to for_each_rtx with for_each_rtx_in_insn.
2642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2644 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2645 "label" from rtx to rtx_code_label *.
2646 (ix86_expand_prologue): Likewise.
2647 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2649 (ix86_split_idivmod): Likewise for locals "end_label" and
2651 (ix86_expand_branch): Likewise for local "label2".
2652 (ix86_expand_aligntest): Likewise for return type and local "label".
2653 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2655 (expand_movmem_epilogue): Likewise for the various locals named
2657 (expand_setmem_epilogue): Likewise.
2658 (expand_small_movmem_or_setmem): Likewise for local "label".
2659 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2660 Strengthen param "done_label" from rtx * to rtx_code_label **.
2661 Strengthen locals "loop_label" and "label" from rtx to
2663 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2664 Likewise for locals "loop_label", "label".
2665 (ix86_expand_set_or_movmem): Likewise for locals "label",
2666 "jump_around_label", "hot_label".
2667 (ix86_expand_strlensi_unroll_1): Likewise for locals
2668 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2670 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2671 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2672 "label2", "jump_label".
2673 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2675 (ix86_expand_lfloorceil): Likewise for local "label".
2676 (ix86_expand_rint): Likewise.
2677 (ix86_expand_floorceildf_32): Likewise.
2678 (ix86_expand_floorceil): Likewise.
2679 (ix86_expand_rounddf_32): Likewise.
2680 (ix86_expand_trunc): Likewise.
2681 (ix86_expand_truncdf_32): Likewise.
2682 (ix86_expand_round): Likewise.
2684 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2686 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2687 first param from rtx to rtx_insn *.
2688 (h8300_insn_length_from_table): Likewise.
2689 * config/h8300/h8300.c (F): Likewise for return type and param
2691 (Fpa): Add a checked cast to rtx_insn *.
2692 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2694 (final_prescan_insn): Likewise for param "insn".
2695 (h8300_binary_length): Likewise.
2696 (h8300_insn_length_from_table): Likewise.
2698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2700 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2701 Strengthen first param "insn" from rtx to rtx_insn *.
2703 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2705 (frame_insn): Likewise for return type. Introduce local "insn"
2706 for use in place of local "x" for use as an rtx_insn *.
2707 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2708 (epiphany_expand_prologue): Likewise for local "insn".
2709 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2710 * config/epiphany/resolve-sw-modes.c
2711 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2716 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2717 param from rtx to rtx_insn *.
2718 (c6x_final_prescan_insn): Likewise for first param.
2720 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2721 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2722 (c6x_expand_compare): Strengthen local "insns" from rtx to
2724 (c6x_get_unit_specifier): Likewise for param "insn".
2725 (c6x_print_unit_specifier_field): Likewise.
2726 (c6x_final_prescan_insn): Likewise.
2727 (emit_add_sp_const): Likewise for local "insn".
2728 (c6x_expand_prologue): Likewise.
2730 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2732 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2733 param 1 from rtx to rtx_insn *.
2734 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2735 the various locals named "insn".
2736 (expand_epilogue_reg_restore): Likewise.
2737 (frame_related_constant_load): Likewise.
2738 (add_to_reg): Likewise.
2739 (emit_link_insn): Likewise.
2740 (do_link): Likewise.
2741 (expand_interrupt_handler_prologue): Likewise.
2742 (branch_dest): Likewise for param "branch".
2743 (asm_conditional_branch): Likewise for param "insn".
2744 (gen_one_bundle): Likewise for elements of param "slot" and local
2746 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2747 elements of local "slot".
2748 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2749 "queue", "next_queue", "prev".
2750 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2751 (add_sched_insns_for_speculation): Likewise for local "insn".
2753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2755 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2756 from rtx to rtx_insn *.
2757 (output_movhi): Likewise.
2758 (output_movsisf): Likewise.
2759 (avr_out_tstsi): Likewise.
2760 (avr_out_tsthi): Likewise.
2761 (avr_out_tstpsi): Likewise.
2762 (avr_out_compare): Likewise.
2763 (avr_out_compare64): Likewise.
2764 (avr_out_movpsi): Likewise.
2765 (ashlqi3_out): Likewise.
2766 (ashlhi3_out): Likewise.
2767 (ashlsi3_out): Likewise.
2768 (ashrqi3_out): Likewise.
2769 (ashrhi3_out): Likewise.
2770 (ashrsi3_out): Likewise.
2771 (lshrqi3_out): Likewise.
2772 (lshrhi3_out): Likewise.
2773 (lshrsi3_out): Likewise.
2774 (avr_out_ashlpsi3): Likewise.
2775 (avr_out_ashrpsi3): Likewise.
2776 (avr_out_lshrpsi3): Likewise.
2777 (avr_out_fract): Likewise.
2778 (avr_out_sbxx_branch): Likewise.
2779 (avr_out_round): Likewise.
2780 (avr_out_xload): Likewise.
2781 (avr_out_movmem): Likewise.
2782 (adjust_insn_length): Likewise.
2783 (avr_out_lpm): Likewise.
2784 (reg_unused_after): Likewise.
2785 (_reg_unused_after): Likewise.
2786 (avr_jump_mode): Likewise for second param.
2787 (jump_over_one_insn): Likewise for first param.
2788 (avr_final_prescan_insn): Likewise.
2789 (out_shift_with_cnt): Likewise for second param.
2791 * config/avr/avr.c (get_sequence_length): Likewise for param
2792 "insns" and local "insn".
2793 (emit_push_byte): Likewise for local "insn".
2794 (emit_push_sfr): Likewise.
2795 (avr_prologue_setup_frame): Likewise for locals "insn",
2796 "fp_plus_insns", "sp_plus_insns".
2797 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2799 (avr_jump_mode): Likewise for param "insn".
2800 (avr_final_prescan_insn): Likewise.
2801 (avr_find_unused_d_reg): Likewise.
2802 (avr_out_lpm_no_lpmx): Likewise.
2803 (avr_out_lpm): Likewise.
2804 (avr_out_xload): Likewise.
2805 (output_movqi): Likewise.
2806 (output_movhi): Likewise.
2807 (out_movqi_r_mr): Likewise.
2808 (out_movhi_r_mr): Likewise.
2809 (out_movsi_r_mr): Likewise.
2810 (out_movsi_mr_r): Likewise.
2811 (output_movsisf): Likewise.
2812 (avr_out_load_psi): Likewise.
2813 (avr_out_store_psi): Likewise.
2814 (avr_out_movpsi): Likewise.
2815 (out_movqi_mr_r): Likewise.
2816 (avr_out_movhi_mr_r_xmega): Likewise.
2817 (out_movhi_mr_r): Likewise.
2818 (compare_condition): Likewise for param "insn" and local "next".
2819 (compare_sign_p): Likewise for param "insn".
2820 (compare_diff_p): Likewise.
2821 (compare_eq_p): Likewise.
2822 (avr_out_compare): Likewise.
2823 (avr_out_compare64): Likewise.
2824 (avr_out_tsthi): Likewise.
2825 (avr_out_tstpsi): Likewise.
2826 (avr_out_tstsi): Likewise.
2827 (out_shift_with_cnt): Likewise.
2828 (ashlqi3_out): Likewise.
2829 (ashlhi3_out): Likewise.
2830 (avr_out_ashlpsi3): Likewise.
2831 (ashlsi3_out): Likewise.
2832 (ashrqi3_out): Likewise.
2833 (ashrhi3_out): Likewise.
2834 (avr_out_ashrpsi3): Likewise.
2835 (ashrsi3_out): Likewise.
2836 (lshrqi3_out): Likewise.
2837 (lshrhi3_out): Likewise.
2838 (avr_out_lshrpsi3): Likewise.
2839 (lshrsi3_out): Likewise.
2840 (avr_out_fract): Likewise.
2841 (avr_out_round): Likewise.
2842 (avr_adjust_insn_length): Likewise.
2843 (reg_unused_after): Likewise.
2844 (_reg_unused_after): Likewise.
2845 (avr_compare_pattern): Likewise.
2846 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2847 and locals "branch1", "branch2", "insn2", "jump".
2848 (avr_reorg): Likewise for local "insn".
2849 (avr_2word_insn_p): Likewise for param "insn".
2850 (jump_over_one_insn_p): Likewise.
2851 (avr_out_sbxx_branch): Likewise.
2852 (avr_out_movmem): Likewise.
2854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2856 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2857 param from rtx to rtx_insn *.
2858 (thumb1_final_prescan_insn): Likewise.
2859 (thumb2_final_prescan_insn): Likewise.
2861 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2863 (struct minipool_node): Likewise for field "insn".
2864 (dump_minipool): Likewise for param "scan".
2865 (create_fix_barrier): Likewise for local "from". Strengthen local
2866 "label" from rtx to rtx_code_label *.
2867 (push_minipool_barrier): Strengthen param "insn" from rtx to
2869 (push_minipool_fix): Likewise.
2870 (note_invalid_constants): Likewise.
2871 (thumb2_reorg): Likewise for local "insn".
2872 (arm_reorg): Likewise.
2873 (thumb2_final_prescan_insn): Likewise for param
2874 "insn" and local "first_insn".
2875 (arm_final_prescan_insn): Likewise for param "insn" and locals
2876 "start_insn", "this_insn".
2877 (arm_debugger_arg_offset): Likewise for param "insn".
2878 (thumb1_emit_multi_reg_push): Likewise for return type and local
2880 (thumb1_final_prescan_insn): Likewise for param "insn".
2881 (thumb_far_jump_used_p): Likewise for local "insn".
2882 (thumb1_expand_prologue): Likewise.
2883 (arm_expand_epilogue_apcs_frame): Likewise.
2884 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2885 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2886 from rtx to rtx_code_label *.
2887 (arm_split_atomic_op): Likewise for local "label".
2888 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2892 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2893 first param from rtx to rtx_insn *.
2894 (arc_verify_short): Likewise.
2895 (arc_short_long): Likewise.
2896 (arc_need_delay): Likewise.
2898 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2900 (arc_ccfsm_advance): Likewise for param "insn" and locals
2901 "start_insn", "this_insn".
2902 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2903 (arc_ccfsm_post_advance): Likewise for param "insn".
2904 (arc_next_active_insn): Likewise for return type and param "insn".
2905 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2906 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2907 (output_short_suffix): Likewise for local "insn".
2908 (arc_final_prescan_insn): Likewise for param "insn". Remove
2909 now-redundant checked cast.
2910 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2911 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2912 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2913 for use where lc_set became an insn.
2914 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2916 (arc_get_insn_variants): Likewise for local "prev".
2917 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2919 (arc_predicate_delay_insns): Likewise for local "insn".
2920 (arc_pad_return): Likewise for local "prev". For now, add a
2921 checked cast when extracting the insn from "final_sequence".
2922 (arc_short_long): Likewise for param "insn".
2923 (arc_need_delay): Likewise for param "insn" and local "next".
2924 (arc_label_align): Likewise for locals "prev", "next".
2926 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2928 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2929 "insn" from rtx to rtx_insn *.
2930 (alpha_gp_save_rtx): Likewise for local "seq".
2931 (alpha_instantiate_decls): Likewise for local "top".
2932 (get_some_local_dynamic_name): Likewise for local "insn".
2933 (alpha_does_function_need_gp): Likewise.
2934 (set_frame_related_p): Likewise for return type and for locals
2936 (emit_frame_store_1): Likewise for local "insn".
2937 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2938 (alpha_end_function): Likewise for local "insn".
2939 (alpha_output_mi_thunk_osf): Likewise.
2940 (alphaev4_insn_pipe): Likewise for param "insn".
2941 (alphaev5_insn_pipe): Likewise.
2942 (alphaev4_next_group): Likewise for return type and param 1
2944 (alphaev5_next_group): Likewise.
2945 (alpha_align_insns_1): Likewise for return type and param 1 of
2946 callback param "next_group", and for locals "i", "next", "prev",
2947 "where", "where2", "insn".
2949 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2951 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2952 rather than modifying the stmt.
2954 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2956 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2957 cgraph_state conversion.
2959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2961 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2962 Strengthen local "insns" from rtx to rtx_insn *.
2963 (aarch64_set_frame_expr): Likewise for local "insn".
2964 (aarch64_save_or_restore_fprs): Likewise.
2965 (aarch64_save_or_restore_callee_save_registers): Likewise.
2966 (aarch64_expand_prologue): Likewise.
2967 (aarch64_expand_epilogue): Likewise.
2968 (aarch64_output_mi_thunk): Likewise.
2969 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2970 "label2" from rtx to rtx_code_label *.
2971 (aarch64_split_atomic_op): Likewise for local "label".
2973 2014-08-25 Martin Liska <mliska@suse.cz>
2975 * cgraph.h (symtab_node):
2976 (bool needed_p (void)): created from decide_is_symbol_needed
2977 (bool referred_to_p (void)): created from referred_to_p
2978 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2979 * cgraph.h (cgraph_node):
2980 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2981 (void expand (void)): created from expand_function
2982 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2983 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2984 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2985 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2986 * cgraph.h (varpool_node):
2987 (static void add (tree decl): created from varpool_add_new_variable
2988 * cgraph.h (cgraph_edge):
2990 (void remove_caller (void)): created from cgraph_edge_remove_caller
2991 (void remove_callee (void)): created from cgraph_edge_remove_callee
2992 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2993 created from cgraph_set_call_stmt
2994 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2995 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2996 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2997 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2998 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2999 created from cgraph_speculative_call_info
3000 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3001 int freq_scale, bool update_original)): created from cgraph_clone_edge
3002 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3003 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3004 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3005 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3006 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3007 (static void rebuild_references (void)): created from cgraph_rebuild_references
3008 * cgraph.h (symbol_table):
3009 (create_reference): renamed from add_reference
3010 (maybe_create_reference): renamed from maybe_add_reference
3011 (void register_symbol (symtab_node *node)): new function
3012 (void clear_asm_symbols (void)): new function
3013 (void unregister (symtab_node *node)): new function
3014 (void release_symbol (cgraph_node *node, int uid)): new function
3015 (cgraph_node * allocate_cgraph_symbol (void)): new function
3016 (void initialize (void)): created from cgraph_init
3017 (symtab_node *first_symbol (void)):new function
3018 (asm_node *first_asm_symbol (void)):new function
3019 (symtab_node *first_defined_symbol (void)):new function
3020 (varpool_node *first_variable (void)):new function
3021 (varpool_node *next_variable (varpool_node *node)):new function
3022 (varpool_node *first_static_initializer (void)):new function
3023 (varpool_node *next_static_initializer (varpool_node *node)):new function
3024 (varpool_node *first_defined_variable (void)):new function
3025 (varpool_node *next_defined_variable (varpool_node *node)):new function
3026 (cgraph_node *first_defined_function (void)):new function
3027 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3028 (cgraph_node *first_function (void)):new function
3029 (cgraph_node *next_function (cgraph_node *node)):new function
3030 (cgraph_node *first_function_with_gimple_body (void)):new function
3031 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3032 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3033 created from symtab_remove_unreachable_nodes
3034 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3035 (void process_new_functions (void)): created from cgraph_process_new_functions
3036 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3037 (bool output_variables (void)): created from varpool_node::output_variables
3038 (void output_asm_statements (void)): created from output_asm_statements
3039 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3040 (void compile (void)): created from compile
3041 (void output_weakrefs (void)): created from output_weakrefs
3042 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3043 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3044 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3045 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3046 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3047 created from cgraph_next_function_with_gimple_body
3048 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3049 created from cgraph_remove_edge_removal_hook
3050 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3051 created from cgraph_add_node_removal_hook
3052 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3053 created from cgraph_remove_node_removal_hook
3054 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3055 created from varpool_add_node_removal_hook
3056 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3057 created from varpool_remove_node_removal_hook
3058 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3059 created from cgraph_add_function_insertion_hook
3060 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3061 created from cgraph_remove_function_insertion_hook
3062 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3063 created from varpool_add_variable_insertion_hook
3064 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3065 created from varpool_remove_variable_insertion_hook
3066 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3067 created from cgraph_add_edge_duplication_hook
3068 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3069 created from cgraph_remove_edge_duplication_hook
3070 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3071 created from cgraph_add_node_duplication_hook
3072 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3073 created from cgraph_remove_node_duplication_hook
3074 (void call_edge_removal_hooks (cgraph_edge *e)):
3075 created from cgraph_call_edge_removal_hooks
3076 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3077 created from call_function_insertion_hooks
3078 (void call_cgraph_removal_hooks (cgraph_node *node)):
3079 created from cgraph_call_node_removal_hooks
3080 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3081 created from cgraph_node::call_duplication_hooks
3082 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3083 created from cgraph_call_edge_duplication_hooks
3084 (void call_varpool_removal_hooks (varpool_node *node)):
3085 created from varpool_call_node_removal_hooks
3086 (void call_varpool_insertion_hooks (varpool_node *node)):
3087 created from varpool_call_variable_insertion_hooks
3088 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3089 created from insert_to_assembler_name_hash
3090 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3091 created from unlink_from_assembler_name_hash
3092 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3093 created from symtab_prevail_in_asm_name_hash
3094 (void symtab_initialize_asm_name_hash (void)):
3095 created from symtab_initialize_asm_name_hash
3096 (void change_decl_assembler_name (tree decl, tree name)):
3097 created from change_decl_assembler_name
3098 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3099 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3100 created from decl_assembler_name_hash
3101 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3102 created from decl_assembler_name_equal
3103 (static hashval_t hash_node_by_assembler_name (const void *p)):
3104 created from hash_node_by_assembler_name
3105 (static int eq_assembler_name (const void *p1, const void *p2)):
3106 created from eq_assembler_name
3108 2014-08-25 Marek Polacek <polacek@redhat.com>
3110 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3112 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3114 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3115 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3116 SWI1248_AVX512BW mode iterator.
3118 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3121 * config/sh/predicates.md (general_extend_operand): Disable
3122 TRUNCATE before reload completes.
3124 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3126 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3128 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3131 * config/sh/sh.opt (musermode): Allow negative form.
3132 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3133 targets that don't support it.
3134 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3135 Document -mno-usermode option.
3137 2014-08-24 Kito Cheng <kito@0xlab.org>
3139 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3140 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3141 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3142 * doc/tm.texi: Regenerate.
3144 2014-08-24 Kito Cheng <kito@0xlab.org>
3146 * ira.c: Fix typo in comment.
3148 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3150 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3151 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3153 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3156 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3157 last_address when the current function is a thunk.
3158 (pa_asm_output_mi_thunk): When we don't have named sections or they
3159 are not being used, check that thunk can reach the stub table with a
3162 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3164 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3166 (pass_web::execute): Likewise for local "insn".
3168 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3170 * var-tracking.c (struct micro_operation_def): Strengthen field
3171 "insn" from rtx to rtx_insn *.
3172 (struct emit_note_data_def): Likewise.
3173 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3174 (vt_stack_adjustments): Likewise for local "insn".
3175 (adjust_insn): Likewise for param "insn".
3176 (val_store): Likewise.
3177 (val_resolve): Likewise.
3178 (struct count_use_info): Likewise for field "insn".
3179 (log_op_type): Likewise for param "insn".
3180 (reverse_op): Likewise.
3181 (prepare_call_arguments): Likewise.
3182 (add_with_sets): The initial param takes an insn, but we can't
3183 yet strengthen it from rtx to rtx_insn * since it's used as a
3184 cselib_record_sets_hook callback. For now rename initial param
3185 from "insn" to "uncast_insn", and introduce a local "insn" of
3186 the stronger rtx_insn * type, with a checked cast.
3187 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3189 (emit_note_insn_var_location): Likewise.
3190 (emit_notes_for_changes): Likewise.
3191 (emit_notes_for_differences): Likewise.
3192 (next_non_note_insn_var_location): Likewise for return type and
3194 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3195 (vt_initialize): Likewise for local "insn".
3196 (delete_debug_insns): Likewise for locals "insn" and "next".
3198 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3200 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3202 (mark_constant_pool): Likewise for local "insn".
3204 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3206 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3208 (dead_debug_promote_uses): Likewise.
3209 (dead_debug_insert_temp): Likewise.
3211 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3213 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3214 from const_rtx to const rtx_insn *.
3215 (store_killed_after): Likewise. Strengthen locals "last", "act"
3216 from rtx to rtx_insn *.
3217 (store_killed_before): Strengthen param "insn" from const_rtx to
3218 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3219 (find_moveable_store): Strengthen param "insn" from rtx to
3221 (compute_store_table): Likewise for local "insn".
3222 (insert_insn_start_basic_block): Likewise for param "insn" and
3223 locals "prev", "before", "insn".
3224 (insert_store): For now, add a checked cast to rtx_insn * on the
3225 result of gen_move_insn.
3226 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3228 (replace_store_insn): Likewise. For now, add a checked cast to
3229 rtx_insn * on the result of gen_move_insn.
3231 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3233 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3235 (expand_sjlj_dispatch_table): Likewise.
3237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3239 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3240 "insn" from rtx to rtx_insn *.
3242 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3244 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3245 "insn" from rtx to rtx_insn *.
3246 (dup_block_and_redirect): Likewise for param 3 "before".
3248 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3249 from rtx to rtx_insn *.
3250 (move_insn_for_shrink_wrap): Likewise.
3251 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3252 (dup_block_and_redirect): Likewise for param "before" and local
3254 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3256 (convert_to_simple_return): Likewise for local "start".
3258 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3259 Strengthen local "insn" from rtx to rtx_insn *, for use when
3260 invoking requires_stack_frame_p.
3262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3264 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3266 (speculate_expr): Likewise for locals "orig_insn_rtx",
3268 (eq_transformed_insns): Likewise for locals "i1", "i2".
3269 (check_for_new_jump): Likewise for return type and local "end".
3270 (find_new_jump): Likewise for return type and local "jump".
3271 (sel_split_edge): Likewise for local "jump".
3272 (sel_create_recovery_block): Likewise.
3273 (sel_redirect_edge_and_branch_force): Likewise.
3274 (sel_redirect_edge_and_branch): Likewise.
3276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3278 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3279 "new_insn" from rtx to rtx_insn *.
3280 (create_insn_rtx_with_rhs): Likewise for return type and for local
3282 (create_insn_rtx_with_lhs): Likewise.
3283 (create_speculation_check): Likewise for local "insn_rtx".
3284 (implicit_clobber_conflict_p): Likewise for local "insn".
3285 (get_expr_cost): Likewise.
3286 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3287 (move_cond_jump): Likewise for locals "next", "prev", "link",
3288 "head", "from", "to".
3290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3292 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3293 "next" from rtx to rtx_insn *.
3294 (find_conditional_protection): Likewise for local "next".
3295 (is_conditionally_protected): Likewise for local "insn1".
3296 (is_pfree): Likewise for locals "insn1", "insn2".
3298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3300 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3301 from rtx to rtx_insn *.
3303 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3304 locals "insn1", "insn2" from rtx to rtx_insn *.
3305 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3306 locals "insn", "prev", "last_jump", "next_tail".
3307 (schedule_ebb): Likewise for params "head", "tail".
3308 (schedule_ebbs): Likewise for locals "tail", "head".
3310 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3311 to rtx_insn on "last_insn" in one of the invocations of
3314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3316 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3317 "elem", "insn" from rtx to rtx_insn *.
3318 (change_spec_dep_to_hard): Likewise.
3319 (get_back_and_forw_lists): Likewise for local "con".
3320 (sd_add_dep): Likewise for locals "elem", "insn".
3321 (sd_resolve_dep): Likewise for locals "pro", "con".
3322 (sd_unresolve_dep): Likewise.
3323 (sd_delete_dep): Likewise.
3324 (chain_to_prev_insn): Likewise for local "pro".
3325 (find_inc): Likewise for locals "pro", "con".
3327 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3329 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3331 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3333 (modified_between_p): Strengthen local "insn" from rtx to
3335 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3336 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3339 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3341 * resource.c (next_insn_no_annul): Strengthen local "next" from
3343 (mark_referenced_resources): Likewise for local "insn".
3345 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3347 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3349 (find_reloads): Likewise for param 1.
3350 (subst_reloads): Likewise for sole param.
3351 (find_equiv_reg): Likwise for param 2.
3352 (regno_clobbered_p): Likwise for param 2.
3353 (reload): Likewise for param 1.
3355 * caller-save.c (save_call_clobbered_regs): Strengthen local
3356 "insn" from rtx to rtx_insn *.
3357 (insert_one_insn): Likewise for local "insn".
3359 * reload.c (this_insn): Likewise for this global.
3360 (find_reloads): Likewise for param "insn".
3361 (find_reloads_toplev): Likewise.
3362 (find_reloads_address): Likewise.
3363 (subst_reg_equivs): Likewise.
3364 (update_auto_inc_notes): Likewise.
3365 (find_reloads_address_1): Likewise.
3366 (find_reloads_subreg_address): Likewise.
3367 (subst_reloads): Likewise.
3368 (find_equiv_reg): Likewise, also for local "p".
3369 (regno_clobbered_p): Likewise for param "insn".
3371 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3373 (spill_reg_store): Likewise for the elements of this array.
3374 (remove_init_insns): Likewise for local "equiv_insn".
3375 (will_delete_init_insn_p): Likewise for param "insn".
3376 (reload): Likewise for param ""first" and local "insn".
3377 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3379 (calculate_elim_costs_all_insns): Likewise.
3380 (delete_caller_save_insns): Likewise.
3381 (spill_failure): Likewise for param "insn".
3382 (delete_dead_insn): Likewise.
3383 (set_label_offsets): Likewise.
3384 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3386 (elimination_costs_in_insn): Likewise for param "insn".
3387 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3388 when referring to an insn.
3389 (set_initial_label_offsets): Likewise.
3390 (set_offsets_for_label): Strengthen param "insn" from rtx to
3392 (init_eliminable_invariants): Likewise for param "first" and local
3394 (fixup_eh_region_note): Likewise for param "insn".
3395 (reload_as_needed): Likewise for locals "prev", "insn",
3396 "old_next", "old_prev", "next".
3397 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3399 (reload_inheritance_insn): Strengthen elements of this array from
3401 (failed_reload): Likewise for param "insn".
3402 (choose_reload_regs): Likewise for local "insn". Replace use of
3403 NULL_RTX with NULL when referring to an insn.
3404 (input_reload_insns): Strengthen elements of this array from rtx
3406 (other_input_address_reload_insns): Likewise for this global.
3407 (other_input_reload_insns): Likewise for this global.
3408 (input_address_reload_insns): Likwise for the elements of this
3410 (inpaddr_address_reload_insns): Likwise for the elements of this
3412 (output_reload_insns): Likewise for the elements of this array.
3413 (output_address_reload_insns): Likewise for the elements of this
3415 (outaddr_address_reload_insns): Likewise for the elements of this
3417 (operand_reload_insns): Likewise for this global.
3418 (other_operand_reload_insns): Likewise for this global.
3419 (other_output_reload_insns): Likewise for the elements of this
3421 (new_spill_reg_store): Likewise for the elements of this
3423 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3424 Strengthen local "where" from rtx * to rtx_insn **.
3425 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3426 from rtx to rtx_insn *.
3427 (do_input_reload): Likewise for local "insn".
3428 (do_output_reload): Likewise for local "insn".
3429 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3430 (emit_insn_if_valid_for_reload): Likewise for return type and local
3431 "last". Add checked cast to rtx_insn when returning "insn" since
3432 this has been through emit_insn.
3433 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3434 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3435 returning "insn" since it's been through
3436 emit_insn_if_valid_for_reload at this point.
3437 (delete_output_reload): Strengthen param "insn" and locals
3438 "output_reload_insn", "i2" from rtx to rtx_insn *.
3439 (delete_address_reloads): Likewise for params "dead_insn",
3440 "current_insn" and locals "prev", "next".
3441 (delete_address_reloads_1): Likewise for params "dead_insn",
3442 "current_insn" and locals "prev", "i2".
3443 (inc_for_reload): Likewise for locals "last", "add_insn".
3444 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3447 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3448 param of this duplicate of the prototype from reload.h
3450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3452 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3454 (regstat_bb_compute_calls_crossed): Likewise.
3456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3458 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3460 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3462 (regrename_analyze): Strengthen local "insn" from rtx to
3464 (scan_rtx_reg): Likewise for param "insn".
3465 (scan_rtx_address): Likewise.
3466 (scan_rtx): Likewise.
3467 (restore_operands): Likewise.
3468 (record_out_operands): Likewise.
3469 (build_def_use): Likewise for local "insn". Replace use of
3470 NULL_RTX with NULL when dealing with an insn.
3472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3474 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3475 * reginfo.c (reg_scan): Likewise, also for local "insn".
3476 (reg_scan_mark_refs): Likewise for param "insn".
3477 (init_subregs_of_mode): Likewise for local "insn".
3479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3481 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3482 "insn" from rtx to rtx_insn *.
3483 (replace_oldest_value_reg): Likewise for param "insn".
3484 (replace_oldest_value_addr): Likewise.
3485 (replace_oldest_value_mem): Likewise.
3486 (apply_debug_insn_changes): Likewise for local "last_insn".
3487 (copyprop_hardreg_forward_1): Likewise for local "insn".
3489 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3491 * reg-stack.c (next_flags_user): Strengthen return type and param
3492 "insn" from rtx to rtx_insn *.
3493 (straighten_stack): Likewise for param "insn".
3494 (check_asm_stack_operands): Likewise.
3495 (remove_regno_note): Likewise.
3496 (emit_pop_insn): Likewise for return type, param "insn", local
3498 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3499 "limit" from rtx to rtx_insn *.
3500 (swap_to_top): Likewise for param "insn".
3501 (move_for_stack_reg): Likewise.
3502 (move_nan_for_stack_reg): Likewise.
3503 (swap_rtx_condition): Likewise.
3504 (compare_for_stack_reg): Likewise.
3505 (subst_all_stack_regs_in_debug_insn): Likewise.
3506 (subst_stack_regs_pat): Likewise, and local "insn2".
3507 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3509 (subst_stack_regs): Likewise.
3510 (change_stack): Likewise.
3511 (convert_regs_1): Likewise for locals "insn", "next".
3513 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3515 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3517 (combine_set_extension): Likewise for param "curr_insn".
3518 (transform_ifelse): Likewise for param "def_insn".
3519 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3520 from vec<rtx> * to vec<rtx_insn *> *.
3521 (is_cond_copy_insn): Likewise for param "insn".
3522 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3524 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3525 local "def_insn" from rtx to rtx_insn *.
3526 (get_sub_rtx): Likewise for param "def_insn".
3527 (merge_def_and_ext): Likewise.
3528 (combine_reaching_defs): Likewise.
3529 (add_removable_extension): Likewise for param "insn".
3530 (find_removable_extensions): Likewise for local "insn".
3531 (find_and_remove_re): Likewise for locals "curr_insn" and
3532 "def_insn". Strengthen locals "reinsn_del_list" and
3533 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3537 * recog.c (split_insn): Strengthen param "insn" and locals
3538 "first", "last" from rtx to rtx_insn *.
3539 (split_all_insns): Likewise for locals "insn", "next".
3540 (split_all_insns_noflow): Likewise.
3542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3544 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3546 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3547 (debug_rtx_find): Likewise for param 1 "x".
3549 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3550 const_rtx to const rtx_insn *. Likewise for local "insn".
3551 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3552 (debug_rtx_find): Likewise for param 1 "x".
3553 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3554 from const_rtx to const rtx_insn * within the appropriate cases of
3555 the switch statement.
3557 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3558 Strengthen local "insns" from rtx to rtx_insn * since this is
3559 passed to a call to debug_rtx_list.
3561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3563 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3566 * function.c (stack_protect_epilogue): Add checked cast to
3567 rtx_insn for now when invoking predict_insn_def.
3569 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3571 (predict_insn_def): Likewise.
3572 (rtl_predict_edge): Likewise for local "last_insn".
3573 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3575 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3577 (bb_estimate_probability_locally): Likewise for local "last_insn".
3578 (expensive_function_p): Likewise for local "insn".
3580 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3581 local "jmp", since this is used when invoking predict_insn_def.
3583 2014-08-22 Marek Polacek <polacek@redhat.com>
3586 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3588 2014-08-22 Marek Polacek <polacek@redhat.com>
3591 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3592 a comparison in parens.
3593 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3598 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3601 * cprop.c (fis_get_condition): Likewise.
3603 * postreload.c (reload_cse_regs): Likewise for param "first".
3604 (reload_cse_simplify): Likewise for param "insn".
3605 (reload_cse_regs_1): Likewise for local "insn".
3606 (reload_cse_simplify_set): Likewise for param "insn".
3607 (reload_cse_simplify_operands): Likewise.
3608 (struct reg_use): Likewise for field "insn".
3609 (reload_combine_purge_insn_uses): Likewise for param "insn".
3610 (fixup_debug_insns): Likewise for params "from", "to" and local
3612 (try_replace_in_use): Likewise for local "use_insn".
3613 (reload_combine_recognize_const_pattern): Likewise for param
3614 "insn" and locals "add_moved_after_insn", "use_insn".
3615 (reload_combine_recognize_pattern): Likewise for param "insn" and
3617 (reload_combine): Likewise for locals "insn", "prev".
3618 (reload_combine_note_use): Likewise for param "insn".
3619 (move2add_use_add2_insn): Likewise.
3620 (move2add_use_add3_insn): Likewise.
3621 (reload_cse_move2add): Likewise, also for local "next".
3622 (move2add_note_store): Likewise for local "insn".
3624 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3626 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3628 (struct unoccr): Likewise.
3629 (struct modifies_mem): Likewise.
3630 (alloc_mem): Likewise for local "insn".
3631 (insert_expr_in_table): Likewise for param "insn".
3632 (dump_expr_hash_table_entry): Likewise for local "insn".
3633 (oprs_unchanged_p): Likewise for param "insn".
3634 (load_killed_in_block_p): Likewise for local "setter".
3635 (record_last_reg_set_info): Likewise for param "insn".
3636 (record_last_reg_set_info_regno): Likewise.
3637 (record_last_mem_set_info): Likewise.
3638 (record_last_set_info): Likewise for local "last_set_insn".
3639 (record_opr_changes): Likewise for param "insn".
3640 (hash_scan_set): Likewise.
3641 (compute_hash_table): Likewise for local "insn".
3642 (get_avail_load_store_reg): Likewise for param "insn".
3643 (eliminate_partially_redundant_load): Likewise, also for locals
3644 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3646 (eliminate_partially_redundant_loads): Likewise for local "insn".
3648 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3650 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3652 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3653 (expand_twoval_unop): Likewise for locals entry_last", "last".
3654 (expand_twoval_binop): Likewise.
3655 (expand_twoval_binop_libfunc): Likewise for local "insns".
3656 (widen_leading): Likewise for local "last".
3657 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3658 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3659 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3660 (expand_parity): Likewise for locals "last" and "seq".
3661 (expand_ffs): Likewise for local "seq". Strengthen local
3662 "nonzero_label" from rtx to rtx_code_label *.
3663 (expand_absneg_bit): Strengthen local "insns" from rtx to
3665 (expand_unop_direct): Likewise for local "last".
3666 (expand_unop): Likewise for locals "last", "insns".
3667 (expand_abs_nojump): Likewise for local "last".
3668 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3669 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3671 (expand_copysign_absneg): Strengthen local "label" from rtx to
3673 (expand_copysign_bit): Strengthen local "insns" from rtx to
3675 (struct no_conflict_data): Likewise for fields "first", "insn".
3676 (emit_libcall_block_1): Likewise for param "insns" and locals
3677 "next", "last", "insn".
3678 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3679 on "insns" when invoking emit_libcall_block_1. Ultimately we
3680 want to strengthen insns itself.
3681 (prepare_cmp_insn): Strengthen local "last" from rtx to
3683 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3684 (prepare_float_lib_cmp): Likewise for local "insns".
3685 (emit_conditional_move): Likewise for local "last".
3686 (emit_conditional_add): Likewise.
3687 (have_sub2_insn): Likewise for local "seq".
3688 (expand_float): Likewise for local "insns". Strengthen locals
3689 "label", "neglabel" from rtx to rtx_code_label *.
3690 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3691 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3692 (expand_fixed_convert): Likewise for local "insns" (to
3694 (expand_sfix_optab): Likewise for local "last".
3695 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3696 to rtx_code_label *.
3697 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3698 from rtx to rtx_insn *.
3699 (expand_atomic_fetch_op): Likewise for local "insn".
3700 (maybe_legitimize_operand_same_code): Likewise for local "last".
3701 (maybe_legitimize_operands): Likewise.
3703 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3705 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3706 "insn" from rtx to rtx_insn *.
3707 (ps_rtl_insn): Likewise for return type.
3708 (doloop_register_get): Likewise for params "head", "tail" and
3709 locals "insn", "first_insn_not_to_check".
3710 (schedule_reg_move): Likewise for local "this_insn".
3711 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3712 of gen_move_insn for now.
3713 (reset_sched_times): Strengthen local "insn" from rtx to
3715 (permute_partial_schedule): Likewise.
3716 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3717 (dump_insn_location): Likewise for param "insn".
3718 (loop_canon_p): Likewise for local "insn".
3719 (sms_schedule): Likewise.
3720 (print_partial_schedule): Likewise.
3721 (ps_has_conflicts): Likewise.
3723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3725 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3726 "tailp" from rtx * to rtx_insn **.
3728 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3729 from rtx to rtx_insn *.
3730 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3731 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3732 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3734 * modulo-sched.c (const_iteration_count): Strengthen return type
3735 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3736 use of NULL_RTX with NULL when working with insns.
3737 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3739 (sms_schedule): Likewise.
3740 * sched-rgn.c (init_ready_list): Likewise, also for locals
3741 "src_head" and "src_next_tail".
3742 (compute_block_dependences): Likewise.
3743 (free_block_dependencies): Likewise.
3744 (debug_rgn_dependencies): Likewise.
3745 (free_rgn_deps): Likewise.
3746 (compute_priorities): Likewise.
3747 (schedule_region): Likewise.
3748 * sel-sched.c (find_ebb_boundaries): Likewise.
3750 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3751 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3755 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3756 from rtx to rtx_insn *.
3757 (new_seginfo): Likewise for param "insn".
3758 (create_pre_exit): Likewise for locals "last_insn",
3759 "before_return_copy", "return_copy".
3760 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3763 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3765 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3766 from rtx to rtx_insn *.
3767 (lra_push_insn): Likewise for 1st param.
3768 (lra_push_insn_and_update_insn_regno_info): Likewise.
3769 (lra_pop_insn): Likewise for return type.
3770 (lra_invalidate_insn_data): Likewise for 1st param.
3771 (lra_set_insn_deleted): Likewise.
3772 (lra_delete_dead_insn): Likewise.
3773 (lra_process_new_insns): Likewise for first 3 params.
3774 (lra_set_insn_recog_data): Likewise for 1st param.
3775 (lra_update_insn_recog_data): Likewise.
3776 (lra_set_used_insn_alternative): Likewise.
3777 (lra_invalidate_insn_regno_info): Likewise.
3778 (lra_update_insn_regno_info): Likewise.
3779 (lra_former_scratch_operand_p): Likewise.
3780 (lra_eliminate_regs_1): Likewise.
3781 (lra_get_insn_recog_data): Likewise.
3783 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3786 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3788 (substitute_within_insn): New.
3789 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3790 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3791 Replace call to "substitute" with call to substitute_within_insn.
3793 * lra-constraints.c (curr_insn): Strengthen from rtx to
3795 (get_equiv_with_elimination): Likewise for param "insn".
3796 (match_reload): Strengthen params "before" and "after" from rtx *
3798 (emit_spill_move): Likewise for return type. Add a checked cast
3799 to rtx_insn * on result of gen_move_insn for now.
3800 (check_and_process_move): Likewise for local "before". Replace
3801 NULL_RTX with NULL when referring to insns.
3802 (process_addr_reg): Strengthen params "before" and "after" from
3803 rtx * to rtx_insn **.
3804 (insert_move_for_subreg): Likewise.
3805 (simplify_operand_subreg): Strengthen locals "before" and "after"
3806 from rtx to rtx_insn *.
3807 (process_address_1): Strengthen params "before" and "after" from
3808 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3810 (process_address): Strengthen params "before" and "after" from
3811 rtx * to rtx_insn **.
3812 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3813 (curr_insn_transform): Strengthen locals "before" and "after"
3814 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3816 (loc_equivalence_callback): Update cast of "data", changing
3817 resulting type from rtx to rtx_insn *.
3818 (substitute_pseudo_within_insn): New.
3819 (inherit_reload_reg): Strengthen param "insn" from rtx to
3820 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3821 NULL when referring to insns. Add a checked cast to rtx_insn *
3822 when using usage_insn to invoke lra_update_insn_regno_info.
3823 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3824 likewise for locals "restore", "save". Add checked casts to
3825 rtx_insn * when using usage_insn to invoke
3826 lra_update_insn_regno_info and lra_process_new_insns. Replace
3827 NULL_RTX with NULL when referring to insns.
3828 (split_if_necessary): Strengthen param "insn" from rtx to
3830 (update_ebb_live_info): Likewise for params "head", "tail" and local
3832 (get_last_insertion_point): Likewise for return type and local "insn".
3833 (get_live_on_other_edges): Likewise for local "last".
3834 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3835 "prev_insn", "next_insn", "restore".
3836 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3837 (undo_optional_reloads): Likewise for local "insn".
3839 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3841 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3843 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3845 (spill_pseudos): Likewise for local "insn".
3846 (init_elimination): Likewise.
3847 (process_insn_for_elimination): Likewise for param "insn".
3849 * lra-lives.c (curr_insn): Likewise.;
3851 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3852 (remove_pseudos): Likewise for param "insn".
3853 (spill_pseudos): Likewise for local "insn".
3854 (lra_final_code_change): Likewise for locals "insn", "curr".
3856 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3857 (lra_set_insn_deleted): Likewise.
3858 (lra_delete_dead_insn): Likewise, and for local "prev".
3859 (new_insn_reg): Likewise for param "insn".
3860 (lra_set_insn_recog_data): Likewise.
3861 (lra_update_insn_recog_data): Likewise.
3862 (lra_set_used_insn_alternative): Likewise.
3863 (get_insn_freq): Likewise.
3864 (invalidate_insn_data_regno_info): Likewise.
3865 (lra_invalidate_insn_regno_info): Likewise.
3866 (lra_update_insn_regno_info): Likewise.
3867 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3869 (lra_push_insn_1): Strengthen param "insn" from rtx to
3871 (lra_push_insn): Likewise.
3872 (lra_push_insn_and_update_insn_regno_info): Likewise.
3873 (lra_pop_insn): Likewise for return type and local "insn".
3874 (push_insns): Likewise for params "from", "to", and local "insn".
3875 (setup_sp_offset): Likewise for params "from", "last" and locals
3877 (lra_process_new_insns): Likewise for params "insn", "before",
3878 "after" and local "last".
3879 (struct sloc): Likewise for field "insn".
3880 (lra_former_scratch_operand_p): Likewise for param "insn".
3881 (remove_scratches): Likewise for locals "insn", "last".
3882 (check_rtl): Likewise for local "insn".
3883 (add_auto_inc_notes): Likewise for param "insn".
3884 (update_inc_notes): Likewise for local "insn".
3885 (lra): Replace NULL_RTX with NULL when referring to insn.
3887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3889 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3891 (resolve_reg_notes): Likewise.
3892 (resolve_simple_move): Likewise for return type, param "insn", and
3893 locals "insns", "minsn".
3894 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3895 (resolve_use): Likewise.
3896 (resolve_debug): Likewise.
3897 (find_decomposable_shift_zext): Likewise.
3898 (resolve_shift_zext): Likewise for return type, param "insn", and
3899 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3900 (decompose_multiword_subregs): Likewise for local "insn",
3901 "orig_insn", "decomposed_shift", "end".
3903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3905 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3906 param "insns" from rtx to rtx_insn *.
3908 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3910 (struct iv_to_split): Likewise.
3911 (loop_exit_at_end_p): Likewise for local "insn".
3912 (split_edge_and_insert): Likewise for param "insns".
3913 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3914 and locals "seq", "jump".
3915 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3916 "branch_code"; update invocations of compare_and_jump_seq to
3917 eliminate NULL_RTX in favor of NULL.
3918 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3920 (reset_debug_uses_in_loop): Likewise.
3921 (analyze_insn_to_expand_var): Likewise for param "insn".
3922 (analyze_iv_to_split_insn): Likewise.
3923 (analyze_insns_in_loop): Likewise for local "insn".
3924 (insert_base_initialization): Likewise for param
3925 "insn" and local "seq".
3926 (split_iv): Likewise for param "insn" and local "seq".
3927 (expand_var_during_unrolling): Likewise for param "insn".
3928 (insert_var_expansion_initialization): Likewise for local "seq".
3929 (combine_var_copies_in_loop_exit): Likewise.
3930 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3932 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3933 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3938 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3940 (iv_analyze_result): Likewise.
3941 (iv_analyze_expr): Likewise.
3944 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3945 local "def_insn" from rtx to rtx_insn *.
3946 (get_biv_step_1): Likewise for local "insn".
3947 (iv_analyze_expr): Likewise for param "insn".
3948 (iv_analyze_def): Likewise for local "insn".
3949 (iv_analyze_op): Likewise for param "insn".
3950 (iv_analyze): Likewise.
3951 (iv_analyze_result): Likewise.
3953 (suitable_set_for_replacement): Likewise.
3954 (simplify_using_initial_values): Likewise for local "insn".
3955 (iv_number_of_iterations): Likewise for param "insn".
3956 (check_simple_exit): Add checked cast to rtx_insn when invoking
3957 iv_number_of_iterations for now (until get_condition is
3960 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3961 "insn" from rtx to rtx_insn *.
3962 (analyze_insns_in_loop): Likewise for local "insn".
3964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3966 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3968 (struct invariant): Likewise.
3969 (hash_invariant_expr_1): Likewise for param "insn".
3970 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3971 (find_exits): Likewise for local "insn".
3972 (create_new_invariant): Likewise for param "insn".
3973 (check_dependencies): Likewise.
3974 (find_invariant_insn): Likewise.
3975 (record_uses): Likewise.
3976 (find_invariants_insn): Likewise.
3977 (find_invariants_bb): Likewise for local "insn".
3978 (get_pressure_class_and_nregs): Likewise for param "insn".
3979 (calculate_loop_reg_pressure): Likewise for local "insn".
3981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3983 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3985 (add_test): Likewise for locals "seq", "jump".
3986 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3988 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3990 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3992 (rebuild_jump_labels_chain): Likewise for param "chain".
3994 * cfgexpand.c (pass_expand::execute): Add checked cast to
3995 rtx_insn * when calling rebuild_jump_labels_chain in region where
3996 we know e->insns.r is non-NULL.
3998 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4000 (rebuild_jump_labels): Likewise.
4001 (rebuild_jump_labels_chain): Likewise for param "chain".
4002 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4003 (init_label_info): Likewise for param "f".
4004 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4005 "prev_nonjump_insn".
4006 (mark_all_labels): Likewise for param "f" and locals "insn",
4007 "prev_nonjump_insn".
4009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4011 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4012 from rtx to rtx_insn *insn.
4013 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4014 (ira_add_allocno_copy): Likewise.
4015 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4017 (ira_create_copy): Likewise.
4018 (ira_add_allocno_copy): Likewise.
4019 (create_bb_allocnos): Likewise for local "insn".
4020 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4021 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4022 process_regs_for_copy for rtx_insn * param.
4023 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4024 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4025 process_regs_for_copy for rtx_insn * param.
4026 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4027 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4028 (record_operand_costs): Likewise.
4029 (scan_one_insn): Likewise for return type, and for param "insn".
4030 (process_bb_for_costs): Likewise for local "insn".
4031 (process_bb_node_for_hard_reg_moves): Likewise.
4032 * ira-emit.c (struct move): Likewise for field "insn".
4033 (create_move): Eliminate use of NULL_RTX when dealing with an
4035 (emit_move_list): Strengthen return type and locals "result",
4036 "insn" from rtx to rtx_insn *insn.
4037 (emit_moves): Likewise for locals "insns", "tmp".
4038 (ira_emit): Likewise for local "insn".
4039 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4041 (find_call_crossed_cheap_reg): Likewise.
4042 (process_bb_node_lives): Likewise for local "insn".
4043 * ira.c (decrease_live_ranges_number): Likewise.
4044 (compute_regs_asm_clobbered): Likewise.
4045 (build_insn_chain): Likewise.
4046 (find_moveable_pseudos): Likewise, also locals "def_insn",
4047 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4048 to rtx_insn **. Add a checked cast when assigning from
4049 "closest_use" into closest_uses array in a region where we know
4050 it's a non-NULL insn.
4051 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4053 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4054 "last_interesting_insn", "uin".
4055 (move_unallocated_pseudos): Likewise for locals "def_insn",
4056 "move_insn", "newinsn".
4058 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4060 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4061 Strengthen locals "done_label", "do_error" from rtx to
4063 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4064 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4066 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4067 "done_label", "do_error" to rtx_code_label * and local "last" to
4069 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4070 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4071 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4072 "after_lopart_neg", "do_overflow", "hipart_different" to
4073 rtx_code_label * and local "last" to rtx_insn *.
4075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4077 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4078 "insn" and "move_insn" from rtx to rtx_insn *.
4080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4082 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4084 (cheap_bb_rtx_cost_p): Likewise.
4085 (first_active_insn): Likewise for return type and local "insn".
4086 (last_active_insn): Likewise for return type and locals "insn",
4088 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4090 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4092 (noce_try_move): Likewise for local "seq".
4093 (noce_try_store_flag): Likewise.
4094 (noce_try_store_flag_constants): Likewise.
4095 (noce_try_addcc): Likewise.
4096 (noce_try_store_flag_mask): Likewise.
4097 (noce_try_cmove): Likewise.
4098 (noce_try_minmax): Likewise.
4099 (noce_try_abs): Likewise.
4100 (noce_try_sign_mask): Likewise.
4101 (noce_try_bitop): Likewise.
4102 (noce_can_store_speculate_p): Likewise for local "insn".
4103 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4105 (check_cond_move_block): Likewise for local "insn".
4106 (cond_move_convert_if_block): Likewise.
4107 (cond_move_process_if_block): Likewise for locals "seq",
4109 (noce_find_if_block): Likewise for local "jump".
4110 (merge_if_block): Likewise for local "last".
4111 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4112 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4113 (block_has_only_trap): Likewise for return type and local "trap".
4114 (find_if_case_1): Likewise for local "jump".
4115 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4118 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4120 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4121 "last_insn", "loop_end" from rtx to rtx_insn *.
4123 * hw-doloop.c (scan_loop): Likewise for local "insn".
4124 (discover_loop): Likewise for param "tail_insn".
4125 (discover_loops): Likewise for local "tail".
4127 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4128 cast to rtx_insn * when assigning from an rtx local to a
4129 hwloop_info's "last_insn" field.
4131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4133 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4134 (add_delay_dependencies): Strengthen local "pro" from rtx to
4136 (recompute_todo_spec): Likewise.
4137 (dep_cost_1): Likewise for locals "insn", "used".
4138 (schedule_insn): Likewise for local "dbg".
4139 (schedule_insn): Likewise for locals "pro", "next".
4140 (unschedule_insns_until): Likewise for local "con".
4141 (restore_pattern): Likewise for local "next".
4142 (estimate_insn_tick): Likewise for local "pro".
4143 (resolve_dependencies): Likewise for local "next".
4144 (fix_inter_tick): Likewise.
4145 (fix_tick_ready): Likewise for local "pro".
4146 (add_to_speculative_block): Likewise for locals "check", "twin",
4148 (sched_extend_bb): Likewise for locals "end", "insn".
4149 (init_before_recovery): Likewise for local "x".
4150 (sched_create_recovery_block): Likewise for local "barrier".
4151 (create_check_block_twin): Likewise for local "pro".
4152 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4154 (unlink_bb_notes): Update for change to type of bb_header.
4155 Strengthen locals "prev", "label", "note", "next" from rtx to
4157 (clear_priorities): Likewise for local "pro".
4159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4161 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4163 (test_insn): Likewise for this global.
4164 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4166 (oprs_anticipatable_p): Likewise.
4167 (oprs_available_p): Likewise.
4168 (insert_expr_in_table): Strengthen param "insn" from rtx to
4170 (hash_scan_set): Likewise.
4171 (hash_scan_clobber): Likewise.
4172 (hash_scan_call): Likewise.
4173 (hash_scan_insn): Likewise.
4174 (compute_hash_table_work): Likewise for local "insn".
4175 (process_insert_insn): Likewise for return type and local "pat".
4176 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4177 "pat", "pat_end", "maybe_cc0_setter".
4178 (pre_edge_insert): Likewise for local "insn".
4179 (pre_insert_copy_insn): Likewise for param "insn".
4180 (pre_insert_copies): Likewise for local "insn".
4181 (struct set_data): Likewise for field "insn".
4182 (single_set_gcse): Likewise for param "insn".
4183 (gcse_emit_move_after): Likewise.
4184 (pre_delete): Likewise for local "insn".
4185 (update_bb_reg_pressure): Likewise for param "from" and local
4187 (should_hoist_expr_to_dom): Likewise for param "from".
4188 (hoist_code): Likewise for local "insn".
4189 (get_pressure_class_and_nregs): Likewise for param "insn".
4190 (calculate_bb_reg_pressure): Likewise for local "insn".
4191 (compute_ld_motion_mems): Likewise.
4193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4195 * genpeep.c (main): Rename param back from "uncast_ins1" to
4196 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4199 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4201 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4204 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4205 documentation to state it is only for VSX operations.
4207 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4208 constraint only active if VSX.
4210 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4211 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4214 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4216 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4217 Strengthen local "insn" from rtx to rtx_insn *.
4218 (use_killed_between): Likewise for param "target_insn".
4219 (all_uses_available_at): Likewise for param "target_insn" and
4221 (update_df_init): Likewise for params "def_insn", "insn".
4222 (update_df): Likewise for param "insn".
4223 (try_fwprop_subst): Likewise for param "def_insn" and local
4225 (free_load_extend): Likewise for param "insn".
4226 (forward_propagate_subreg): Likewise for param "def_insn" and
4228 (forward_propagate_asm): Likewise for param "def_insn" and local
4230 (forward_propagate_and_simplify): Likewise for param "def_insn"
4231 and local "use_insn".
4232 (forward_propagate_into): Likewise for locals "def_insn" and
4235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4237 * function.c (emit_initial_value_sets): Strengthen local "seq"
4238 from rtx to rtx_insn *.
4239 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4241 (instantiate_virtual_regs): Likewise for local "insn".
4242 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4243 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4244 (expand_function_end): Likewise for locals "insn" and "seq".
4245 (epilogue_done): Likewise for local "insn".
4246 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4248 (reposition_prologue_and_epilogue_notes): Likewise for locals
4249 "insn", "last", "note", "first".
4250 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4251 (pass_match_asm_constraints::execute): Likewise for local "insn".
4253 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4255 * output.h (final_scan_insn): Strengthen return type from rtx to
4257 (final_forward_branch_p): Likewise for param.
4258 (current_output_insn): Likewise for this global.
4260 * final.c (rtx debug_insn): Likewise for this variable.
4261 (current_output_insn): Likewise.
4262 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4263 adding "insn" back in as an rtx_insn * with a checked cast, so
4264 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4266 (compute_alignments): Strengthen local "label" from rtx to
4268 (shorten_branches): Rename param from "first" to "uncast_first",
4269 introducing a new local rtx_insn * "first" using a checked cast to
4270 effectively strengthen "first" from rtx to rtx_insn * without
4271 affecting the type signature. Strengthen locals "insn", "seq",
4272 "next", "label" from rtx to rtx_insn *.
4273 (change_scope): Strengthen param "orig_insn" and local "insn" from
4275 (final_start_function): Rename param from "first" to "uncast_first",
4276 introducing a new local rtx_insn * "first" using a checked cast to
4277 effectively strengthen "first" from rtx to rtx_insn * without
4278 affecting the type signature. Strengthen local "insn" from rtx to
4280 (dump_basic_block_info): Strengthen param "insn" from rtx to
4282 (final): Rename param from "first" to "uncast_first",
4283 introducing a new local rtx_insn * "first" using a checked cast to
4284 effectively strengthen "first" from rtx to rtx_insn * without
4285 affecting the type signature. Strengthen locals "insn", "next"
4286 from rtx to rtx_insn *.
4287 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4289 (call_from_call_insn): Strengthen param "insn" from rtx to
4291 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4292 introducing a new local rtx_insn * "insn" using a checked cast to
4293 effectively strengthen "insn" from rtx to rtx_insn * without
4294 affecting the type signature. Strengthen return type and locals
4295 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4296 now-redundant checked cast to rtx_insn * from both invocations of
4297 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4298 introducing a local "call_insn" for use when invoking
4299 call_from_call_insn.
4300 (notice_source_line): Strengthen param "insn" from rtx to
4302 (leaf_function_p): Likewise for local "insn".
4303 (final_forward_branch_p): Likewise.
4304 (leaf_renumber_regs): Likewise for param "first".
4305 (rest_of_clean_state): Likewise for locals "insn" and "next".
4306 (self_recursive_call_p): Likewise for param "insn".
4307 (collect_fn_hard_reg_usage): Likewise for local "insn".
4308 (get_call_fndecl): Likewise for param "insn".
4309 (get_call_cgraph_rtl_info): Likewise.
4310 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4311 introducing a new local rtx_insn * "insn" using a checked cast to
4312 effectively strengthen "insn" from rtx to rtx_insn * without
4313 affecting the type signature.
4315 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4316 cast when assigning from param "insn" to current_output_insn.
4317 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4318 so that we can assign it back to current_output_insn.
4320 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4322 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4323 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4324 atmxt540s and atmxt540sreva devices.
4325 * config/avr/avr-tables.opt: Regenerate.
4326 * config/avr/t-multilib: Regenerate.
4327 * doc/avr-mmcu.texi: Regenerate.
4329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4331 * expr.c (convert_move): Strengthen local "insns" from rtx to
4333 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4334 "top_label" from rtx to rtx_code_label *.
4335 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4337 (emit_single_push_insn): Likewise for locals "prev", "last".
4338 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4339 to rtx_code_label *.
4340 (store_constructor): Likewise for locals "loop_start", "loop_end".
4341 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4343 (expand_expr_real_2): Likewise.
4344 (expand_expr_real_1): Strengthen local "label" from rtx to
4347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4349 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4350 from rtx to rtx_insn *.
4351 (store_bit_field_1): Likewise.
4352 (extract_bit_field_1): Likewise.
4353 (expand_mult_const): Likewise for local "insns".
4354 (expmed_mult_highpart): Strengthen local "label" from rtx to
4356 (expand_smod_pow2): Likewise.
4357 (expand_sdiv_pow2): Likewise.
4358 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4359 rtx_insn *. Strengthen locals "label", "label1", "label2",
4360 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4361 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4362 (emit_store_flag): Likewise.
4363 (emit_store_flag_force): Strengthen local "label" from rtx to
4365 (do_cmp_and_jump): Likewise for param "label".
4367 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4369 * explow.c (force_reg): Strengthen local "insn" from rtx to
4371 (adjust_stack_1): Likewise.
4372 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4373 "final_label", "available_label", "space_available" from rtx to
4375 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4376 (anti_adjust_stack_and_probe): Likewise.
4378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4380 * except.h (sjlj_emit_function_exit_after): Strengthen param
4381 "after" from rtx to rtx_insn *. This is only called with
4382 result of get_last_insn (in function.c) so type-change should be
4385 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4386 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4387 to rtx_insn *. These fields are only used from except.c so this
4388 type-change should be self-contained to this patch.
4390 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4391 local "last" from rtx to rtx_insn *.
4392 (dw2_build_landing_pads): Likewise for local "seq".
4393 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4394 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4395 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4397 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4399 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4400 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4401 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4402 referring to an insn. Strengthen local "dispatch_label" from
4403 rtx to rtx_code_label *.
4404 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4406 (expand_eh_return): Strengthen local "around_label" from
4407 rtx to rtx_code_label *.
4408 (convert_to_eh_region_ranges): Strengthen locals "iter",
4409 "last_action_insn", "first_no_action_insn",
4410 "first_no_action_insn_before_switch",
4411 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4415 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4416 from rtx to rtx_insn *.
4417 (cached_next_real_insn): Likewise.
4418 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4420 (dwarf2out_var_location): Strengthen locals "next_real",
4421 "next_note", "expected_next_loc_note", "last_start", "insn" from
4424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4426 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4427 from rtx to rtx_insn *.
4428 (create_pseudo_cfg): Likewise for local "insn".
4430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4432 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4433 from rtx to rtx_insn *.
4434 (df_bb_regno_last_def_find): Likewise.
4436 * df-problems.c (df_rd_bb_local_compute): Likewise.
4437 (df_lr_bb_local_compute): Likewise.
4438 (df_live_bb_local_compute): Likewise.
4439 (df_chain_remove_problem): Likewise.
4440 (df_chain_create_bb): Likewise.
4441 (df_word_lr_bb_local_compute): Likewise.
4442 (df_remove_dead_eq_notes): Likewise for param "insn".
4443 (df_note_bb_compute): Likewise for local "insn".
4444 (simulate_backwards_to_point): Likewise.
4445 (df_md_bb_local_compute): Likewise.
4447 * df-scan.c (df_scan_free_bb_info): Likewise.
4448 (df_scan_start_dump): Likewise.
4449 (df_scan_start_block): Likewise.
4450 (df_install_ref_incremental): Likewise for local "insn".
4451 (df_insn_rescan_all): Likewise.
4452 (df_reorganize_refs_by_reg_by_insn): Likewise.
4453 (df_reorganize_refs_by_insn_bb): Likewise.
4454 (df_recompute_luids): Likewise.
4455 (df_bb_refs_record): Likewise.
4456 (df_update_entry_exit_and_calls): Likewise.
4457 (df_bb_verify): Likewise.
4459 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4461 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4462 "first_note" from rtx to rtx_insn *.
4463 (get_node_of_insn): Likewise for param 2 "insn".
4464 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4466 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4468 (mem_write_insn_p): Likewise.
4469 (mem_access_insn_p): Likewise.
4470 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4471 (def_has_ccmode_p): Likewise for param "insn".
4472 (add_cross_iteration_register_deps): Likewise for locals
4473 "def_insn" and "use_insn".
4474 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4475 (build_intra_loop_deps): Likewise for local "src_insn".
4476 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4478 (get_node_of_insn): Likewise for param "insn".
4480 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4482 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4483 (deletable_insn_p): Strengthen param "insn" from rtx to
4484 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4485 find_call_stack_args, since this is guarded by CALL_P (insn).
4486 (marked_insn_p): Strengthen param "insn" from rtx to
4488 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4489 invoking find_call_stack_args, since this is guarded by
4491 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4492 rtx_insn *; we know this is an insn since this was called by
4494 (mark_nonreg_stores_2): Likewise.
4495 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4497 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4498 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4500 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4501 from rtx to rtx_insn *.
4502 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4504 (delete_unmarked_insns): Likewise for locals "insn", "next".
4505 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4506 (mark_reg_dependencies): Likewise for param "insn".
4507 (rest_of_handle_ud_dce): Likewise for local "insn".
4508 (word_dce_process_block): Likewise.
4509 (dce_process_block): Likewise.
4511 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4513 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4514 from rtx to rtx_insn *.
4515 (struct change_cc_mode_args): Likewise for field "insn".
4516 (this_insn): Strengthen from rtx to rtx_insn *.
4517 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4519 (validate_canon_reg): Strengthen param "insn" from rtx to
4521 (canon_reg): Likewise.
4522 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4524 (record_jump_equiv): Strengthen param "insn" from rtx to
4526 (try_back_substitute_reg): Likewise, also for locals "prev",
4528 (find_sets_in_insn): Likewise for param "insn".
4529 (canonicalize_insn): Likewise.
4530 (cse_insn): Likewise. Add a checked cast.
4531 (invalidate_from_clobbers): Likewise for param "insn".
4532 (invalidate_from_sets_and_clobbers): Likewise.
4533 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4535 (cse_prescan_path): Strengthen local "insn" from rtx to
4537 (cse_extended_basic_block): Likewise for locals "insn" and
4539 (cse_main): Likewise for param "f".
4540 (check_for_label_ref): Likewise for local "insn".
4541 (set_live_p): Likewise for second param ("insn").
4542 (insn_live_p): Likewise for first param ("insn") and for local
4544 (cse_change_cc_mode_insn): Likewise for first param "insn".
4545 (cse_change_cc_mode_insns): Likewise for first and second params
4547 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4549 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4552 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4553 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4554 Anna Tikhonova <anna.tikhonova@intel.com>
4555 Ilya Tocar <ilya.tocar@intel.com>
4556 Andrey Turetskiy <andrey.turetskiy@intel.com>
4557 Ilya Verbin <ilya.verbin@intel.com>
4558 Kirill Yukhin <kirill.yukhin@intel.com>
4559 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4561 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4563 * config/i386/sse.md
4564 (define_mode_iterator VI248_AVX2): Delete.
4565 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4566 (define_mode_iterator VI48_AVX2): Ditto.
4567 (define_insn <shift_insn><mode>3): Delete.
4568 (define_insn "<shift_insn><mode>3<mask_name>" with
4569 VI2_AVX2_AVX512BW): New.
4570 (define_insn "<shift_insn><mode>3<mask_name>" with
4573 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4574 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4575 Anna Tikhonova <anna.tikhonova@intel.com>
4576 Ilya Tocar <ilya.tocar@intel.com>
4577 Andrey Turetskiy <andrey.turetskiy@intel.com>
4578 Ilya Verbin <ilya.verbin@intel.com>
4579 Kirill Yukhin <kirill.yukhin@intel.com>
4580 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4582 * config/i386/sse.md
4583 (define_mode_iterator VI4F_BRCST32x2): New.
4584 (define_mode_attr 64x2_mode): Ditto.
4585 (define_mode_attr 32x2mode): Ditto.
4586 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4587 with VI4F_BRCST32x2): Ditto.
4588 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4589 with V16FI mode iterator): Ditto.
4590 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4592 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4593 with VI8F_BRCST64x2): Ditto.
4595 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4596 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4597 Anna Tikhonova <anna.tikhonova@intel.com>
4598 Ilya Tocar <ilya.tocar@intel.com>
4599 Andrey Turetskiy <andrey.turetskiy@intel.com>
4600 Ilya Verbin <ilya.verbin@intel.com>
4601 Kirill Yukhin <kirill.yukhin@intel.com>
4602 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4604 * config/i386/sse.md
4605 (define_mode_iterator VI8_AVX512VL): New.
4606 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4608 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4610 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4611 (define_mode_iterator V48_AVX512VL): New.
4612 (define_mode_iterator V12_AVX512VL): Ditto.
4613 (define_insn <avx512>_load<mode>_mask): Split into two similar
4614 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4615 Refactor output template.
4616 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4620 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4622 (reg_available_p): Likewise for param "insn".
4623 (insert_set_in_table): Likewise.
4624 (hash_scan_set): Likewise.
4625 (hash_scan_insn): Likewise.
4626 (make_set_regs_unavailable): Likewise.
4627 (compute_hash_table_work): Likewise for local "insn".
4628 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4630 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4631 (try_replace_reg): Likewise.
4632 (find_avail_set): Likewise.
4633 (cprop_jump): Likewise for params "setcc", "jump".
4634 (constprop_register): Likewise for param "insn".
4635 (cprop_insn): Likewise.
4636 (do_local_cprop): Likewise.
4637 (local_cprop_pass): Likewise for local "insn".
4638 (bypass_block): Likewise for params "setcc" and "jump".
4639 (bypass_conditional_jumps): Likewise for locals "setcc" and
4641 (one_cprop_pass): Likewise for local "insn".
4643 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4645 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4646 from rtx to rtx_insn *.
4647 (struct comparison): Likewise, also for field "prev_clobber".
4648 (conforming_compare): Likewise for param "insn".
4649 (arithmetic_flags_clobber_p): Likewise.
4650 (find_flags_uses_in_insn): Likewise.
4651 (find_comparison_dom_walker::before_dom_children): Likewise for
4652 locals "insn", "next", "last_clobber".
4653 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4657 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4658 "insn" from rtx to rtx_insn *.
4659 (single_set_for_csa): Likewise for param "insn".
4660 (record_one_stack_ref): Likewise.
4661 (try_apply_stack_adjustment): Likewise.
4662 (struct record_stack_refs_data): Likewise for field "insn".
4663 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4664 (prev_active_insn_bb): Likewise for return type and param "insn".
4665 (next_active_insn_bb): Likewise.
4666 (force_move_args_size_note): Likewise for params "prev" and "last"
4667 and locals "test", "next_candidate", "prev_candidate".
4668 (combine_stack_adjustments_for_block): Strengthen locals
4669 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4674 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4675 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4676 (subst_insn): Likewise for this variable.
4677 (added_links_insn): Likewise.
4678 (struct insn_link): Likewise for field "insn".
4679 (alloc_insn_link): Likewise for param "insn".
4680 (struct undobuf): Likewise for field "other_insn".
4681 (find_single_use): Likewise for param "insn" and local "next".
4682 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4683 (delete_noop_moves): Likewise for locals "insn", "next".
4684 (create_log_links): Likewise for locals "insn", "use_insn".
4685 Strengthen local "next_use" from rtx * to rtx_insn **.
4686 (insn_a_feeds_b): Likewise for params "a", "b".
4687 (combine_instructions): Likewise for param "f" and locals "insn",
4688 "next", "prev", "first", "last_combined_insn", "link", "link1",
4689 "temp". Replace use of NULL_RTX with NULL when referring to
4691 (setup_incoming_promotions): Likewise for param "first"
4692 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4693 (can_combine_p): Likewise for params "insn", "i3", "pred",
4694 "pred2", "succ", "succ2" and for local "p".
4695 (combinable_i3pat): Likewise for param "i3".
4696 (cant_combine_insn_p): Likewise for param "insn".
4697 (likely_spilled_retval_p): Likewise.
4698 (adjust_for_new_dest): Likewise.
4699 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4700 (try_combine): Likewise for return type and for params "i3", "i2",
4701 "i1", "i0", "last_combined_insn", and for locals "insn",
4702 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4703 "i0_insn". Eliminate local "tem" in favor of new locals
4704 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4705 checked cast for now to rtx_insn * on the return type of
4706 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4708 (find_split_point): Strengthen param "insn" from rtx to
4710 (simplify_set): Likewise for local "other_insn".
4711 (recog_for_combine): Likewise for param "insn".
4712 (record_value_for_reg): Likewise.
4713 (record_dead_and_set_regs_1): Likewise for local
4715 (record_dead_and_set_regs): Likewise for param "insn".
4716 (record_promoted_value): Likewise.
4717 (check_promoted_subreg): Likewise.
4718 (get_last_value_validate): Likewise.
4719 (reg_dead_at_p): Likewise.
4720 (move_deaths): Likewise for param "to_insn".
4721 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4722 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4723 in favor of new locals "tem_note" and "tem_insn", the latter being
4725 (distribute_links): Strengthen locals "place", "insn" from rtx to
4728 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4730 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4732 (can_delete_label_p): Require a const rtx_code_label * rather than
4734 (delete_insn): Add checked cast to rtx_code_label * when we know
4735 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4737 (delete_insn_chain): Strengthen locals "prev" and "current" from
4738 rtx to rtx_insn *. Add a checked cast when assigning from
4739 "finish" (strengthening the params will come later). Add a
4740 checked cast to rtx_note * in region where we know
4742 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4744 (compute_bb_for_insn): Likewise.
4745 (free_bb_for_insn): Likewise for local "insn".
4746 (compute_bb_for_insn): Likewise.
4747 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4748 local "insn" from rtx to rtx_insn *
4749 (flow_active_insn_p): Require a const rtx_insn * rather than a
4751 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4753 (can_fallthru): Likewise for locals "insn" and "insn2".
4754 (bb_note): Likewise for local "note".
4755 (first_insn_after_basic_block_note): Likewise for local "note" and
4757 (rtl_split_block): Likewise for locals "insn" and "next".
4758 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4760 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4761 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4763 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4764 them), "kill_from", "barrier", "new_insn".
4765 (patch_jump_insn): Likewise for params "insn", "old_label".
4766 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4767 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4768 "old_label", "new_label".
4769 (rtl_tidy_fallthru_edge): Likewise for local "q".
4770 (rtl_split_edge): Likewise for locals "before", "last".
4771 (commit_one_edge_insertion): Likewise for locals "before",
4772 "after", "insns", "tmp", "last", adding a checked cast where
4773 currently necessary.
4774 (commit_edge_insertions): Likewise.
4775 (rtl_dump_bb): Likewise for locals "insn", "last".
4776 (print_rtl_with_bb): Likewise for local "x".
4777 (rtl_verify_bb_insns): Likewise for local "x".
4778 (rtl_verify_bb_pointers): Likewise for local "insn".
4779 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4781 (rtl_verify_fallthru): Likewise for local "insn".
4782 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4783 (purge_dead_edges): Likewise for local "insn".
4784 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4785 (skip_insns_after_block): Likewise for return type and for locals
4786 "insn", "last_insn", "next_head", "prev".
4787 (record_effective_endpoints): Likewise for locals "next_insn",
4789 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4790 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4791 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4792 (duplicate_insn_chain): For now, add checked cast from rtx to
4793 rtx_insn * when returning insn.
4794 (cfg_layout_duplicate_bb): Likewise for local "insn".
4795 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4797 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4798 (rtl_block_empty_p): Likewise.
4799 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4800 "split_point", "last".
4801 (rtl_block_ends_with_call_p): Likewise for local "insn".
4802 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4804 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4805 "split_at_insn" from rtx to rtx_insn *.
4806 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4807 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4808 to const rtx_insn *.
4809 (rtl_account_profile_record): Likewise.
4811 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4813 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4815 (average_num_loop_insns): Likewise.
4816 (init_set_costs): Likewise for local "seq".
4817 (seq_cost): Likewise for param "seq", from const_rtx to const
4820 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4822 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4827 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4828 "f1" and "f2" from rtx * to rtx_insn **.
4829 (flow_find_head_matching_sequence): Likewise.
4831 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4832 "cbranch_insn" from rtx to rtx_insn *.
4833 (thread_jump): Likewise for local "insn".
4834 (try_forward_edges): Likewise for local "last".
4835 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4836 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4838 (can_replace_by): Likewise for params "i1", "i2".
4839 (old_insns_match_p): Likewise.
4840 (merge_notes): Likewise.
4841 (walk_to_nondebug_insn): Likewise for param "i1".
4842 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4843 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4844 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4845 (flow_find_head_matching_sequence): Strengthen params "f1" and
4846 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4847 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4849 (outgoing_edges_match): Likewise for locals "last1", "last2".
4850 (try_crossjump_to_edge): Likewise for local "insn".
4851 Replace call to for_each_rtx with for_each_rtx_in_insn.
4853 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4854 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4855 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4856 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4857 (try_optimize_cfg): Strengthen local "last" from rtx to
4859 (delete_dead_jumptables): Likewise for locals "insn", "next",
4862 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4863 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4864 "rtx else_first_tail", to reflect the basic-block.h changes above.
4866 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4868 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4870 (purge_dead_tablejump_edges): Likewise.
4871 (find_bb_boundaries): Likewise for locals "insn", "end",
4872 "flow_transfer_insn".
4874 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4876 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4877 "ins" and "prev" from rtx to rtx_insn *.
4879 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4881 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4883 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4884 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4886 (load_register_parameters): Likewise for local "before_arg".
4887 (check_sibcall_argument_overlap): Likewise for param "insn".
4888 (expand_call): Likewise for locals "normal_call_insns",
4889 "tail_call_insns", "insns", "before_call", "after_args",
4890 "before_arg", "last", "prev". Strengthen one of the "last" from
4891 rtx to rtx_call_insn *.
4892 (fixup_tail_calls): Strengthen local "insn" from rtx to
4894 (emit_library_call_value_1): Likewise for locals "before_call" and
4897 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4899 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4900 and "last" from rtx to rtx_insn *.
4901 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4902 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4904 (expand_errno_check): Strengthen local "lab" from rtx to
4906 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4908 (expand_builtin_mathfn_2): Likewise.
4909 (expand_builtin_mathfn_ternary): Likewise.
4910 (expand_builtin_mathfn_3): Likewise.
4911 (expand_builtin_interclass_mathfn): Likewise for local "last".
4912 (expand_builtin_int_roundingfn): Likewise for local "insns".
4913 (expand_builtin_int_roundingfn_2): Likewise.
4914 (expand_builtin_strlen): Likewise for local "before_strlen".
4915 (expand_builtin_strncmp): Likewise for local "seq".
4916 (expand_builtin_signbit): Likewise for local "last".
4917 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4918 from rtx to rtx_code_label *.
4919 (expand_stack_restore): Strengthen local "prev" from rtx to
4922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4924 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4926 (struct btr_def_s): Likewise.
4927 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4929 (add_btr_def): Likewise.
4930 (new_btr_user): Likewise.
4931 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4933 (link_btr_uses): Likewise.
4934 (move_btr_def): Likewise for locals "insp", "old_insn",
4935 "new_insn". Add checked cast to rtx_insn * for now on result of
4937 (can_move_up): Strengthen param "insn" from const_rtx to
4940 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4942 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4944 (get_uncond_jump_length): Likewise for locals "label", "jump".
4945 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4947 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4948 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4949 (find_jump_block): Likewise for local "insn".
4950 (fix_crossing_conditional_branches): Likewise for locals
4951 "old_jump", "new_jump".
4952 (fix_crossing_unconditional_branches): Likewise for locals
4953 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4954 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4956 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4958 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4960 (struct mem_insn): Likewise for field "insn".
4961 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4962 (reg_next_inc_use): Likewise.
4963 (reg_next_def): Likewise.
4964 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4965 from rtx to rtx_insn *.
4966 (move_insn_before): Likewise for param "next_insn" and local "insns".
4967 (attempt_change): Likewise for local "mov_insn".
4968 (try_merge): Likewise for param "last_insn".
4969 (get_next_ref): Likewise for return type and local "insn".
4970 Strengthen param "next_array" from rtx * to rtx_insn **.
4971 (parse_add_or_inc): Strengthen param "insn" from rtx to
4973 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4975 (merge_in_block): Likewise for locals "insn", "curr",
4977 (pass_inc_dec::execute): Update allocations of the arrays to
4978 reflect the stronger types.
4980 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4982 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4983 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4984 from rtx to rtx_code_label *.
4986 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4988 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4991 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4993 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4994 generated a warning and prevented bootstrapping the compiler.
4996 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4998 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5001 * jump.c (delete_related_insns): Likewise, also for locals "next"
5004 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5006 * genautomata.c (output_internal_insn_latency_func): When writing
5007 the function "internal_insn_latency" to insn-automata.c,
5008 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5009 allowing the optional guard function of (define_bypass) clauses to
5010 expect a pair of rtx_insn *, rather than a pair of rtx.
5011 (output_insn_latency_func): When writing the function
5012 "insn_latency", add an "uncast_" prefix to params "insn" and
5013 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5014 using checked casts from the params, thus enabling the above
5015 change to the generated "internal_insn_latency" function.
5017 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5019 PR tree-optimization/62091
5020 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5021 handle correctly arrays.
5022 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5024 (record_known_type): Walk into inner type.
5025 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5026 condition on no type changes.
5028 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5030 * genattrtab.c (write_attr_get): Within the generated get_attr_
5031 functions, rename param "insn" to "uncast_insn" and reintroduce
5032 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5033 is an rtx_insn * within insn-attrtab.c
5035 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5037 * output.h (peephole): Strengthen return type from rtx to
5039 * rtl.h (delete_for_peephole): Likewise for both params.
5040 * genpeep.c (main): In generated "peephole" function, strengthen
5041 return type and local "insn" from rtx to rtx_insn *. For now,
5042 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5043 rtx_insn *, with a checked cast.
5044 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5045 locals "insn", "next", "prev" from rtx to rtx_insn *.
5047 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5049 PR tree-optimization/62112
5050 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5051 * gimple-iterator.h (gsi_replace): Return bool.
5052 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5053 moved from ref_may_alias_global_p.
5054 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5056 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5057 (stmt_kills_ref_p_1): Rename...
5058 (stmt_kills_ref_p): ... to this.
5059 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5060 stmt_kills_ref_p): Declare.
5061 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5062 Move the self-assignment case...
5063 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5065 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5067 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5069 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5070 "after". For now, don't strengthen param "trial", which requires
5071 adding checked casts when returning it.
5073 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5075 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5076 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5077 "var_location" hook from rtx to rtx_insn *.
5078 (debug_nothing_rtx): Delete in favor of...
5079 (debug_nothing_rtx_code_label): New prototype.
5080 (debug_nothing_rtx_rtx): Delete unused prototype.
5081 (debug_nothing_rtx_insn): New prototype.
5083 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5084 invoking debug_hooks->var_location (in two places, one in a NOTE
5085 case of a switch statement, the other guarded by a CALL_P
5086 conditional. Add checked cast to rtx_code_label * when invoking
5087 debug_hooks->label (within CODE_LABEL case of switch statement).
5089 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5090 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5091 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5092 (xcoff_debug_hooks): Likewise.
5093 * debug.c (do_nothing_debug_hooks): Likewise.
5094 (debug_nothing_rtx): Delete in favor of...
5095 (debug_nothing_rtx_insn): New function.
5096 (debug_nothing_rtx_rtx): Delete unused function.
5097 (debug_nothing_rtx_code_label): New function.
5098 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5099 debug_nothing_rtx to debug_nothing_rtx_code_label.
5100 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5102 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5103 debug_nothing_rtx to debug_nothing_rtx_insn.
5104 (sdbout_label): Strengthen param "insn" from rtx to
5106 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5107 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5108 "var_location" hook from debug_nothing_rtx to
5109 debug_nothing_rtx_insn.
5111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5113 * recog.h (insn_output_fn): Update this function typedef to match
5114 the changes below to the generated output functions, strengthening
5115 the 2nd param from rtx to rtx_insn *.
5117 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5118 insn when invoking an output function, to match the new signature
5119 of insn_output_fn with a stronger second param.
5121 * genconditions.c (write_header): In the generated code for
5122 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5123 to match the other changes in this patch.
5125 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5126 the generated "gen_" functions from rtx to rtx_insn * within their
5129 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5130 the subfunctions within the generated "recog_", "split", "peephole2"
5131 function trees from rtx to rtx_insn *. For now, the top-level
5132 generated functions ("recog", "split", "peephole2") continue to
5133 take a plain rtx for "insn", to avoid introducing dependencies on
5134 other patches. Rename this 2nd param from "insn" to
5135 "uncast_insn", and reintroduce "insn" as a local variable of type
5136 rtx_insn *, initialized at the top of the generated function with
5137 a checked cast on "uncast_insn".
5138 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5139 the generated "gen_" functions from rtx to rtx_insn * within their
5142 * genoutput.c (process_template): Strengthen the 2nd param within
5143 the generated "output_" functions "insn" from rtx to rtx_insn *.
5145 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5147 * tree-profile.c (tree_profiling): Skip external functions
5148 when doing coverage instrumentation.
5149 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5151 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5153 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5154 (vec_mergee): Likewise.
5155 (vec_mergeo): Likewise.
5156 (vec_cntlz): Likewise.
5157 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5158 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5159 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5161 * doc/extend.texi: Document various forms of vec_cpsgn,
5162 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5163 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5164 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5165 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5166 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5168 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5170 * config/rs6000/rs6000.c (context.h): New include.
5171 (tree-pass.h): Likewise.
5172 (make_pass_analyze_swaps): New decl.
5173 (rs6000_option_override): Register pass_analyze_swaps.
5174 (swap_web_entry): New subsclass of web_entry_base (df.h).
5175 (special_handling_values): New enum.
5176 (union_defs): New function.
5177 (union_uses): Likewise.
5178 (insn_is_load_p): Likewise.
5179 (insn_is_store_p): Likewise.
5180 (insn_is_swap_p): Likewise.
5181 (rtx_is_swappable_p): Likewise.
5182 (insn_is_swappable_p): Likewise.
5183 (chain_purpose): New enum.
5184 (chain_contains_only_swaps): New function.
5185 (mark_swaps_for_removal): Likewise.
5186 (swap_const_vector_halves): Likewise.
5187 (adjust_subreg_index): Likewise.
5188 (permute_load): Likewise.
5189 (permute_store): Likewise.
5190 (handle_special_swappables): Likewise.
5191 (replace_swap_with_copy): Likewise.
5192 (dump_swap_insn_table): Likewise.
5193 (rs6000_analyze_swaps): Likewise.
5194 (pass_data_analyze_swaps): New pass_data.
5195 (pass_analyze_swaps): New rtl_opt_pass.
5196 (make_pass_analyze_swaps): New function.
5197 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5199 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5201 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5202 type from rtx to rtx_insn *.
5203 (create_copy_of_insn_rtx): Likewise.
5204 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5205 (create_copy_of_insn_rtx): Likewise, also for local "res".
5207 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5209 * rtl.h (find_first_parameter_load): Strengthen return type from
5211 * rtlanal.c (find_first_parameter_load): Strengthen return type
5212 from rtx to rtx_insn *. Add checked cast for now, to postpone
5213 strengthening the params.
5215 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5218 * diagnostic.c: Set default caret.
5219 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5221 * diagnostic.h (struct diagnostic_context):
5223 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5225 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5226 (sel_bb_head): Strengthen return type insn_t (currently just an
5228 (sel_bb_end): Likewise.
5230 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5231 (sel_bb_head): Strengthen return type and local "head" from
5232 insn_t (currently just an rtx) to rtx_insn *.
5233 (sel_bb_end): Likewise for return type.
5234 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5237 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5239 * basic-block.h (get_last_bb_insn): Strengthen return type from
5241 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5244 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5247 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5249 (diagnostic_report_diagnostic): ... from here.
5250 * toplev.c (general_init): Move code to c-family.
5252 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5254 * df.h (web_entry_base): Replace existing struct web_entry with a
5255 new class web_entry_base with only the predecessor member.
5256 (unionfind_root): Remove declaration and move to class member.
5257 (unionfind_union): Remove declaration and move to friend
5259 (union_defs): Remove declaration.
5260 * web.c (web_entry_base::unionfind_root): Modify to be member
5261 function and adjust accessors.
5262 (unionfind_union): Modify to be friend function and adjust
5264 (web_entry): New subclass of web_entry_base containing the reg
5266 (union_match_dups): Modify for struct -> class changes.
5267 (union_defs): Likewise.
5268 (entry_register): Likewise.
5269 (pass_web::execute): Likewise.
5271 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5273 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5274 builtin define __VEC_ELEMENT_REG_ORDER__.
5276 2014-08-20 Martin Jambor <mjambor@suse.cz>
5277 Wei Mi <wmi@google.com>
5281 * tree-ssa-operands.c (update_stmt_operands): Remove
5282 MODIFIED_NORETURN_CALLS.
5283 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5284 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5285 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5286 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5287 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5288 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5289 (gimple_call_set_ctrl_altering): New func.
5290 (gimple_call_ctrl_altering_p): Ditto.
5291 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5292 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5293 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5294 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5295 remove MODIFIED_NORETURN_CALLS.
5297 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5299 * coverage.c (coverage_compute_profile_id): Return non-0;
5300 also handle symbols with unique name.
5301 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5303 2014-08-20 Steve Ellcey <sellcey@mips.com>
5306 * doc/sourcebuild.texi (non_strict_align): New.
5308 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5310 * cgraphunit.c (ipa_passes, compile): Reshedule
5311 symtab_remove_unreachable_nodes passes; update comments.
5312 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5313 TODO_remove_functions before the pass; the functions ought to be
5315 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5316 TODO_remove_functions.
5317 * passes.c (pass_data_early_local_passes): Do not schedule function
5319 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5321 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5324 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5325 before setting the option.
5326 * diagnostic.c (diagnostic_classify_diagnostic): Record
5327 command-line status.
5329 2014-08-20 Richard Biener <rguenther@suse.de>
5332 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5333 to build uint{16,32,64}_type_node.
5335 2014-08-20 Terry Guo <terry.guo@arm.com>
5337 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5338 with immediate_operand.
5340 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5342 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5343 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5346 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5348 PR preprocessor/51303
5349 * incpath.c (remove_duplicates): Use cpp_warning.
5351 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5355 * doc/options.texi (CPP): Document it.
5356 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5357 * optc-gen.awk: Handle CPP.
5358 * opth-gen.awk: Likewise.
5360 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5362 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5364 (duplicate_insn_chain): Likewise.
5365 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5366 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5367 checked cast for now (until we can strengthen the params in the
5369 (duplicate_insn_chain): Likewise.
5371 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5373 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5375 (prev_cc0_setter): Likewise.
5377 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5378 rtx_insn *, adding checked casts for now as necessary.
5379 (prev_cc0_setter): Likewise.
5381 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5383 * expr.h (emit_move_insn): Strengthen return type from rtx to
5385 (emit_move_insn_1): Likewise.
5386 (emit_move_complex_push): Likewise.
5387 (emit_move_complex_parts): Likewise.
5389 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5390 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5392 (emit_move_complex_push): Strengthen return type from rtx to
5394 (emit_move_complex): Likewise, also for local "ret".
5395 (emit_move_ccmode): Likewise.
5396 (emit_move_multi_word): Likewise for return type and locals
5398 (emit_move_insn_1): Likewise for return type and locals "result",
5400 (emit_move_insn): Likewise for return type and local "last_insn".
5401 (compress_float_constant): Likewise.
5403 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5405 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5406 from rtx to rtx_insn *.
5408 * rtl.h (emit_insn_before): Likewise.
5409 (emit_insn_before_noloc): Likewise.
5410 (emit_insn_before_setloc): Likewise.
5411 (emit_jump_insn_before): Likewise.
5412 (emit_jump_insn_before_noloc): Likewise.
5413 (emit_jump_insn_before_setloc): Likewise.
5414 (emit_call_insn_before): Likewise.
5415 (emit_call_insn_before_noloc): Likewise.
5416 (emit_call_insn_before_setloc): Likewise.
5417 (emit_debug_insn_before): Likewise.
5418 (emit_debug_insn_before_noloc): Likewise.
5419 (emit_debug_insn_before_setloc): Likewise.
5420 (emit_label_before): Likewise.
5421 (emit_insn_after): Likewise.
5422 (emit_insn_after_noloc): Likewise.
5423 (emit_insn_after_setloc): Likewise.
5424 (emit_jump_insn_after): Likewise.
5425 (emit_jump_insn_after_noloc): Likewise.
5426 (emit_jump_insn_after_setloc): Likewise.
5427 (emit_call_insn_after): Likewise.
5428 (emit_call_insn_after_noloc): Likewise.
5429 (emit_call_insn_after_setloc): Likewise.
5430 (emit_debug_insn_after): Likewise.
5431 (emit_debug_insn_after_noloc): Likewise.
5432 (emit_debug_insn_after_setloc): Likewise.
5433 (emit_label_after): Likewise.
5434 (emit_insn): Likewise.
5435 (emit_debug_insn): Likewise.
5436 (emit_jump_insn): Likewise.
5437 (emit_call_insn): Likewise.
5438 (emit_label): Likewise.
5439 (gen_clobber): Likewise.
5440 (emit_clobber): Likewise.
5441 (gen_use): Likewise.
5442 (emit_use): Likewise.
5445 (emit_barrier_before): Strengthen return type from rtx to
5447 (emit_barrier_after): Likewise.
5448 (emit_barrier): Likewise.
5450 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5451 from rtx to rtx_insn *. Add checked casts for now when converting
5452 "last" from rtx to rtx_insn *.
5453 (emit_insn_before_noloc): Likewise for return type.
5454 (emit_jump_insn_before_noloc): Likewise.
5455 (emit_call_insn_before_noloc): Likewise.
5456 (emit_debug_insn_before_noloc): Likewise.
5457 (emit_barrier_before): Strengthen return type and local "insn"
5458 from rtx to rtx_barrier *.
5459 (emit_label_before): Strengthen return type from rtx to
5460 rtx_insn *. Add checked cast for now when returning param
5461 (emit_pattern_after_noloc): Strengthen return type from rtx to
5462 rtx_insn *. Add checked casts for now when converting "last" from
5464 (emit_insn_after_noloc): Strengthen return type from rtx to
5466 (emit_jump_insn_after_noloc): Likewise.
5467 (emit_call_insn_after_noloc): Likewise.
5468 (emit_debug_insn_after_noloc): Likewise.
5469 (emit_barrier_after): Strengthen return type from rtx to
5471 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5472 Add checked cast for now when converting "label" from rtx to
5474 (emit_pattern_after_setloc): Strengthen return type from rtx to
5475 rtx_insn *. Add checked casts for now when converting "last" from
5477 (emit_pattern_after): Strengthen return type from rtx to
5479 (emit_insn_after_setloc): Likewise.
5480 (emit_insn_after): Likewise.
5481 (emit_jump_insn_after_setloc): Likewise.
5482 (emit_jump_insn_after): Likewise.
5483 (emit_call_insn_after_setloc): Likewise.
5484 (emit_call_insn_after): Likewise.
5485 (emit_debug_insn_after_setloc): Likewise.
5486 (emit_debug_insn_after): Likewise.
5487 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5488 when converting "last" from rtx to rtx_insn *.
5489 (emit_pattern_before): Strengthen return type from rtx to
5491 (emit_insn_before_setloc): Likewise.
5492 (emit_insn_before): Likewise.
5493 (emit_jump_insn_before_setloc): Likewise.
5494 (emit_jump_insn_before): Likewise.
5495 (emit_call_insn_before_setloc): Likewise.
5496 (emit_call_insn_before): Likewise.
5497 (emit_debug_insn_before_setloc): Likewise.
5498 (emit_debug_insn_before): Likewise.
5499 (emit_insn): Strengthen return type and locals "last", "insn",
5500 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5501 within cases where we know we have an insn.
5502 (emit_debug_insn): Likewise.
5503 (emit_jump_insn): Likewise.
5504 (emit_call_insn): Strengthen return type and local "insn" from rtx
5506 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5507 a checked cast to rtx_insn * for now on "label".
5508 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5509 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5510 (emit_use): Likewise.
5511 (gen_use): Likewise, also for local "seq".
5512 (emit): Likewise for return type and local "insn".
5513 (rtx_insn): Likewise for return type and local "new_rtx".
5515 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5516 from rtx to rtx_barrier *.
5518 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5519 changed return type from rtx to rtx_insn *, we must update
5520 "emit_fn" type, and this in turn means updating...
5521 (frame_insn): ...this. Strengthen return type from rtx to
5522 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5524 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5526 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5527 rtx to rtx_jump_table_data *. Also for local.
5528 * rtl.h (emit_jump_table_data): Likewise.
5530 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5532 * basic-block.h (create_basic_block_structure): Strengthen third
5533 param "bb_note" from rtx to rtx_note *.
5534 * rtl.h (emit_note_before): Strengthen return type from rtx to
5536 (emit_note_after): Likewise.
5537 (emit_note): Likewise.
5538 (emit_note_copy): Likewise. Also, strengthen param similarly.
5539 * function.h (struct rtl_data): Strengthen field
5540 "x_stack_check_probe_note" from rtx to rtx_note *.
5542 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5543 from rtx to rtx_note *.
5544 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5545 "bb_note" from rtx to rtx_note *.
5546 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5547 when calling emit_note_copy.
5548 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5550 (emit_note_after): Likewise.
5551 (emit_note_before): Likewise.
5552 (emit_note_copy): Likewise. Also, strengthen param similarly.
5553 (emit_note): Likewise.
5554 * except.c (emit_note_eh_region_end): Likewise for return type.
5555 Strengthen local "next" from rtx to rtx_insn *.
5556 (convert_to_eh_region_ranges): Strengthen local "note"
5557 from rtx to rtx_note *.
5558 * final.c (change_scope): Likewise.
5559 (reemit_insn_block_notes): Likewise, for both locals named "note".
5560 Also, strengthen local "insn" from rtx to rtx_insn *.
5561 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5563 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5564 strengthen local "seq" from rtx to rtx_insn *.
5565 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5567 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5569 (get_bb_note_from_pool): Strengthen return type from rtx to
5571 (sel_create_basic_block): Strengthen local "new_bb_note" from
5572 insn_t to rtx_note *.
5573 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5574 "note" from rtx to rtx_note *.
5575 (emit_notes_in_bb): Likewise.
5577 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5579 * function.h (struct rtl_data): Strengthen field
5580 "x_parm_birth_insn" from rtx to rtx_insn *.
5581 * function.c (struct assign_parm_data_all): Strengthen fields
5582 "first_conversion_insn" and "last_conversion_insn" from rtx to
5585 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5587 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5588 to rtx_insn *; also for local "var_end_seq".
5589 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5590 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5592 (expand_gimple_cond): Likewise for locals "last2" and "last".
5593 (mark_transaction_restart_calls): Likewise for local "insn".
5594 (expand_gimple_stmt): Likewise for return type and locals "last"
5596 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5597 (avoid_complex_debug_insns): Likewise for param "insn".
5598 (expand_debug_locations): Likewise for locals "insn", "last",
5599 "prev_insn" and "insn2".
5600 (expand_gimple_basic_block): Likewise for local "last".
5601 (construct_exit_block): Likewise for locals "head", "end",
5603 (pass_expand::execute): Likewise for locals "var_seq",
5604 "var_ret_seq", "next".
5606 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5608 * asan.h (asan_emit_stack_protection): Strengthen return type from
5610 * asan.c (asan_emit_stack_protection): Likewise. Add local
5611 "insns" to hold the return value.
5613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5615 * basic-block.h (bb_note): Strengthen return type from rtx to
5617 * sched-int.h (bb_note): Likewise.
5618 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5620 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5622 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5625 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5626 "insn" from rtx to rtx_insn *.
5627 (make_debug_insn_raw): Strengthen return type from rtx to
5628 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5629 (make_jump_insn_raw): Strengthen return type from rtx to
5630 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5631 (make_call_insn_raw): Strengthen return type from rtx to
5632 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5633 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5634 callback from rtx to rtx_insn *; likewise for local "insn" and
5635 "next", adding a checked cast to rtx_insn in the relevant cases of
5636 the switch statement.
5637 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5638 callback from rtx to rtx_insn *.
5639 (emit_pattern_after_setloc): Likewise.
5640 (emit_pattern_after): Likewise.
5641 (emit_pattern_before_setloc): Likewise.
5642 (emit_pattern_before): Likewise.
5644 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5646 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5648 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5649 accepting an rtx_insn *.
5650 (last_call_insn): Strengthen return type from rtx to
5653 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5655 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5656 "insns" from rtx to rtx_insn *.
5657 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5658 locals "insn" and "prev".
5660 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5662 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5663 rtx_jump_table_data **.
5665 * cfgbuild.c (make_edges): Introduce local "table", using it in
5666 place of "tmp" for jump table data.
5667 (find_bb_boundaries): Strengthen local "table" from rtx to
5668 rtx_jump_table_data *.
5669 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5670 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5671 (try_crossjump_to_edge): Likewise.
5672 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5674 (patch_jump_insn): Introduce local "table", using it in place of
5675 "tmp" for jump table data.
5676 (force_nonfallthru_and_redirect): Introduce local "table", so that
5677 call to tablejump_p can receive an rtx_jump_table_data **. Update
5678 logic around the call to overwrite "note" appropriately if
5679 tablejump_p returns non-zero.
5680 (get_last_bb_insn): Introduce local "table", using it in place of
5681 "tmp" for jump table data.
5682 * dwarf2cfi.c (create_trace_edges): Likewise.
5684 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5685 from rtx to rtx_jump_table_data *.
5686 (create_fix_barrier): Strengthen local "tmp" from rtx to
5687 rtx_jump_table_data *.
5688 (arm_reorg): Likewise for local "table".
5690 * config/s390/s390.c (s390_chunkify_start): Likewise.
5692 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5694 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5695 rtx to rtx_jump_table_data *.
5697 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5698 rtx_jump_table_data **. Add a checked cast when writing through
5699 the pointer: we know there that local "table" is non-NULL and that
5700 JUMP_TABLE_DATA_P (table) holds.
5701 (label_is_jump_target_p): Introduce local "table", using it in
5702 place of "tmp" for jump table data.
5704 2014-08-19 Marek Polacek <polacek@redhat.com>
5707 * doc/invoke.texi: Document -Wbool-compare.
5709 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5711 * rtl.h (entry_of_function): Strengthen return type from rtx to
5713 * cfgrtl.c (entry_of_function): Likewise.
5715 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5717 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5718 rtx_insn *, adding a checked cast for now.
5719 (get_last_insn): Likewise.
5721 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5723 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5726 * emit-rtl.c (gen_label_rtx): Likewise.
5728 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5730 * rtl.h (previous_insn): Strengthen return type from rtx to
5732 (next_insn): Likewise.
5733 (prev_nonnote_insn): Likewise.
5734 (prev_nonnote_insn_bb): Likewise.
5735 (next_nonnote_insn): Likewise.
5736 (next_nonnote_insn_bb): Likewise.
5737 (prev_nondebug_insn): Likewise.
5738 (next_nondebug_insn): Likewise.
5739 (prev_nonnote_nondebug_insn): Likewise.
5740 (next_nonnote_nondebug_insn): Likewise.
5741 (prev_real_insn): Likewise.
5742 (next_real_insn): Likewise.
5743 (prev_active_insn): Likewise.
5744 (next_active_insn): Likewise.
5746 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5747 rtx_insn *, adding a checked cast.
5748 (previous_insn): Likewise.
5749 (next_nonnote_insn): Likewise.
5750 (next_nonnote_insn_bb): Likewise.
5751 (prev_nonnote_insn): Likewise.
5752 (prev_nonnote_insn_bb): Likewise.
5753 (next_nondebug_insn): Likewise.
5754 (prev_nondebug_insn): Likewise.
5755 (next_nonnote_nondebug_insn): Likewise.
5756 (prev_nonnote_nondebug_insn): Likewise.
5757 (next_real_insn): Likewise.
5758 (prev_real_insn): Likewise.
5759 (next_active_insn): Likewise.
5760 (prev_active_insn): Likewise.
5762 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5763 param "stepfunc" so that it returns an rtx_insn * rather than an
5764 rtx, to track the change to prev_nonnote_insn_bb, which is the
5765 only function this is called with.
5766 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5768 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5770 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5775 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5776 (class rtx_nonjump_insn): Likewise.
5777 (class rtx_jump_insn): Likewise.
5778 (class rtx_call_insn): Likewise.
5779 (class rtx_jump_table_data): Likewise.
5780 (class rtx_barrier): Likewise.
5781 (class rtx_code_label): Likewise.
5782 (class rtx_note): Likewise.
5784 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5785 adding the invariant DEBUG_INSN_P (X).
5786 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5787 the invariant NONJUMP_INSN_P (X).
5788 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5789 the invariant JUMP_P (X).
5790 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5791 the invariant CALL_P (X).
5792 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5793 invariant JUMP_TABLE_DATA_P (X).
5794 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5795 invariant BARRIER_P (X).
5796 (class rtx_code_label): New, a subclass of rtx_insn, adding
5797 the invariant LABEL_P (X).
5798 (class rtx_note): New, a subclass of rtx_insn, adding
5799 the invariant NOTE_P(X).
5800 (is_a_helper <rtx_debug_insn *>::test): New.
5801 (is_a_helper <rtx_nonjump_insn *>::test): New.
5802 (is_a_helper <rtx_jump_insn *>::test): New.
5803 (is_a_helper <rtx_call_insn *>::test): New.
5804 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5805 overloaded for both rtx and rtx_insn *.
5806 (is_a_helper <rtx_barrier *>::test): New.
5807 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5808 for both rtx and rtx_insn *.
5809 (is_a_helper <rtx_note *>::test): New.
5811 2014-08-19 Marek Polacek <polacek@redhat.com>
5813 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5814 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5815 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5816 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5820 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5821 rtx_insn *. To help with transition, for now, convert from an
5822 access macro into a pair of functions: BND_TO, returning an
5824 (SET_BND_TO): New function, for use where BND_TO is used as an
5827 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5829 (BND_TO): New function, adding a checked cast.
5830 (SET_BND_TO): New function.
5832 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5834 (compute_av_set_on_boundaries): Likewise.
5836 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5838 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5839 destination if it is used in source.
5840 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5841 (*popcount<mode>2_falsedep_1): Likewise.
5843 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5846 * configure.ac: Set install_gold_as_default to no first.
5847 * configure: Regenerated.
5849 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5851 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5852 "note_list" field will eventually be an rtx_insn *. To help with
5853 transition, for now, convert from an access macro into a pair of
5854 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5855 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5858 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5859 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5861 * sel-sched-ir.c (init_bb): Likewise.
5862 (sel_restore_notes): Likewise.
5863 (move_bb_info): Likewise.
5864 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5865 (SET_BB_NOTE_LIST): New function.
5867 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5869 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5870 field will eventually be an rtx_insn *. To help with transition,
5871 for now, convert from an access macro into a pair of functions:
5872 VINSN_INSN_RTX, returning an rtx_insn *, and...
5873 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5874 is used as an lvalue.
5876 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5877 SET_VINSN_INSN_RTX where it's used as an lvalue.
5878 (VINSN_INSN_RTX): New function.
5879 (SET_VINSN_INSN_RTX): New function.
5881 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5883 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5884 eventually be rtx_insn *, but to help with transition, for now,
5885 convert from an access macro into a pair of functions: DEP_PRO
5886 returning an rtx_insn * and...
5887 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5888 lvalue, returning an rtx&.
5889 (DEP_CON): Analogous changes to DEP_PRO above.
5890 (SET_DEP_CON): Likewise.
5892 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5893 an lvalue to SET_DEP_CON.
5894 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5895 (sd_copy_back_deps): Likewise for DEP_CON.
5896 (DEP_PRO): New function, adding a checked cast for now.
5897 (DEP_CON): Likewise.
5898 (SET_DEP_PRO): New function.
5899 (SET_DEP_CON): Likewise.
5901 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5903 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5904 (extra_options): Add i386/cygwin.opt.
5905 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5906 (CPP_SPEC): Accept -pthread.
5908 (GOMP_SELF_SPECS): Update comment.
5909 * config/i386/cygwin.opt: New file for -pthread flag.
5911 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5913 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5914 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5915 that we can return an rtx_insn *.
5917 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5919 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5920 when building executables, not DLLs. Add --large-address-aware
5921 under the same conditions.
5922 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5923 when building executables, not DLLs. Add --large-address-aware
5924 under the same conditions when using -m32.
5926 * config/i386/cygwin-stdint.h: Throughout, make type
5927 definitions dependent on target architecture, not host.
5929 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5931 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5932 the return type from rtx to rtx_insn *, which will enable various
5933 conversions in followup patches. For now this is is done by a
5935 (NEXT_INSN): Likewise.
5936 (SET_PREV_INSN): Convert to an inline function. This is intended
5937 for use as an lvalue, and so returns an rtx& to allow in-place
5939 (SET_NEXT_INSN): Likewise.
5941 2014-07-08 Mark Wielaard <mjw@redhat.com>
5944 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5946 2014-08-19 Marek Polacek <polacek@redhat.com>
5949 * cgraphunit.c (handle_alias_pairs): Fix condition.
5951 2014-08-19 Richard Biener <rguenther@suse.de>
5953 * gimple-fold.c (fold_gimple_assign): Properly build a
5954 null-pointer constant when devirtualizing addresses.
5956 2014-07-07 Mark Wielaard <mjw@redhat.com>
5958 * dwarf2out.c (decl_quals): New function.
5959 (modified_type_die): Take one cv_quals argument instead of two,
5960 one for const and one for volatile.
5961 (add_type_attribute): Likewise.
5962 (generic_parameter_die): Call add_type_attribute with one modifier
5964 (base_type_for_mode): Likewise.
5965 (add_bounds_info): Likewise.
5966 (add_subscript_info): Likewise.
5967 (gen_array_type_die): Likewise.
5968 (gen_descr_array_type_die): Likewise.
5969 (gen_entry_point_die): Likewise.
5970 (gen_enumeration_type_die): Likewise.
5971 (gen_formal_parameter_die): Likewise.
5972 (gen_subprogram_die): Likewise.
5973 (gen_variable_die): Likewise.
5974 (gen_const_die): Likewise.
5975 (gen_field_die): Likewise.
5976 (gen_pointer_type_die): Likewise.
5977 (gen_reference_type_die): Likewise.
5978 (gen_ptr_to_mbr_type_die): Likewise.
5979 (gen_inheritance_die): Likewise.
5980 (gen_subroutine_type_die): Likewise.
5981 (gen_typedef_die): Likewise.
5982 (force_type_die): Likewise.
5984 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5986 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5988 * configure: Regenerate.
5990 2014-08-19 Richard Biener <rguenther@suse.de>
5992 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5993 DECL_EXTERNALs in BLOCKs as non-references.
5994 * tree-streamer-out.c (streamer_write_chain): Likewise.
5996 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5997 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5998 Anna Tikhonova <anna.tikhonova@intel.com>
5999 Ilya Tocar <ilya.tocar@intel.com>
6000 Andrey Turetskiy <andrey.turetskiy@intel.com>
6001 Ilya Verbin <ilya.verbin@intel.com>
6002 Kirill Yukhin <kirill.yukhin@intel.com>
6003 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6005 * config/i386/sse.md
6006 (define_mode_iterator VI48_AVX512F): Delete.
6007 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6008 (define_mode_iterator VI2_AVX512VL): Ditto.
6009 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6012 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6014 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6015 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6016 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6017 with VI48_AVX512F_AVX512VL): New.
6018 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6019 with VI2_AVX512VL): Ditto.
6021 2014-08-19 Marek Polacek <polacek@redhat.com>
6023 * doc/invoke.texi: Document -Wc99-c11-compat.
6025 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6027 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6029 (SET_PREV_INSN): New macro, for use as an lvalue.
6030 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6032 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6033 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6034 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6035 (fixup_abnormal_edges): Likewise.
6036 (unlink_insn_chain): Likewise.
6037 (fixup_reorder_chain): Likewise.
6038 (cfg_layout_delete_block): Likewise.
6039 (cfg_layout_merge_blocks): Likewise.
6040 * combine.c (update_cfg_for_uncondjump): Likewise.
6041 * emit-rtl.c (link_insn_into_chain): Likewise.
6042 (remove_insn): Likewise.
6043 (delete_insns_since): Likewise.
6044 (reorder_insns_nobb): Likewise.
6045 (emit_insn_after_1): Likewise.
6046 * final.c (rest_of_clean_state): Likewise.
6047 (final_scan_insn): Likewise.
6048 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6049 * haifa-sched.c (concat_note_lists): Likewise.
6050 (remove_notes): Likewise.
6051 (restore_other_notes): Likewise.
6052 (move_insn): Likewise.
6053 (unlink_bb_notes): Likewise.
6054 (restore_bb_notes): Likewise.
6055 * jump.c (delete_for_peephole): Likewise.
6056 * optabs.c (emit_libcall_block_1): Likewise.
6057 * reorg.c (emit_delay_sequence): Likewise.
6058 (fill_simple_delay_slots): Likewise.
6059 * sel-sched-ir.c (sel_move_insn): Likewise.
6060 (sel_remove_insn): Likewise.
6061 (get_bb_note_from_pool): Likewise.
6062 * sel-sched.c (move_nop_to_previous_block): Likewise.
6064 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6065 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6066 (c6x_gen_bundles): Likewise.
6067 (hwloop_optimize): Likewise.
6068 * config/frv/frv.c (frv_function_prologue): Likewise.
6069 (frv_register_nop): Likewise.
6070 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6071 (ia64_reorg): Likewise.
6072 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6073 (mep_make_bundle): Likewise.
6074 (mep_bundle_insns): Likewise.
6075 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6076 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6077 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6079 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6081 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6082 return type from rtx to rtx_insn *.
6084 (BB_HEADER): Likewise.
6085 (BB_FOOTER): Likewise.
6086 (SET_BB_HEAD): Convert to a function.
6087 (SET_BB_END): Likewise.
6088 (SET_BB_HEADER): Likewise.
6089 (SET_BB_FOOTER): Likewise.
6091 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6092 Strengthen the return type from rtx to rtx_insn *. For now, this
6093 is done by adding a checked cast, but this will eventually
6094 become a field lookup.
6096 (BB_HEADER): Likewise.
6097 (BB_FOOTER): Likewise.
6098 (SET_BB_HEAD): New function, from macro of same name. This is
6099 intended for use as an lvalue, and so returns an rtx& to allow
6100 in-place modification.
6101 (SET_BB_END): Likewise.
6102 (SET_BB_HEADER): Likewise.
6103 (SET_BB_FOOTER): Likewise.
6105 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6107 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6109 (SET_BB_HEAD): New macro, for use as a lvalue.
6110 (BB_END, SET_BB_END): Likewise.
6111 (BB_HEADER, SET_BB_HEADER): Likewise.
6112 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6114 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6115 of BB_* macros into SET_BB_* macros.
6116 (fix_crossing_unconditional_branches): Likewise.
6117 * caller-save.c (save_call_clobbered_regs): Likewise.
6118 (insert_one_insn): Likewise.
6119 * cfgbuild.c (find_bb_boundaries): Likewise.
6120 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6121 (outgoing_edges_match): Likewise.
6122 (try_optimize_cfg): Likewise.
6123 * cfgexpand.c (expand_gimple_cond): Likewise.
6124 (expand_gimple_tailcall): Likewise.
6125 (expand_gimple_basic_block): Likewise.
6126 (construct_exit_block): Likewise.
6127 * cfgrtl.c (delete_insn): Likewise.
6128 (create_basic_block_structure): Likewise.
6129 (rtl_delete_block): Likewise.
6130 (rtl_split_block): Likewise.
6131 (emit_nop_for_unique_locus_between): Likewise.
6132 (rtl_merge_blocks): Likewise.
6133 (block_label): Likewise.
6134 (try_redirect_by_replacing_jump): Likewise.
6135 (emit_barrier_after_bb): Likewise.
6136 (fixup_abnormal_edges): Likewise.
6137 (record_effective_endpoints): Likewise.
6138 (relink_block_chain): Likewise.
6139 (fixup_reorder_chain): Likewise.
6140 (fixup_fallthru_exit_predecessor): Likewise.
6141 (cfg_layout_duplicate_bb): Likewise.
6142 (cfg_layout_split_block): Likewise.
6143 (cfg_layout_delete_block): Likewise.
6144 (cfg_layout_merge_blocks): Likewise.
6145 * combine.c (update_cfg_for_uncondjump): Likewise.
6146 * emit-rtl.c (add_insn_after): Likewise.
6147 (remove_insn): Likewise.
6148 (reorder_insns): Likewise.
6149 (emit_insn_after_1): Likewise.
6150 * haifa-sched.c (get_ebb_head_tail): Likewise.
6151 (restore_other_notes): Likewise.
6152 (move_insn): Likewise.
6153 (sched_extend_bb): Likewise.
6154 (fix_jump_move): Likewise.
6155 * ifcvt.c (noce_process_if_block): Likewise.
6156 (dead_or_predicable): Likewise.
6157 * ira.c (update_equiv_regs): Likewise.
6158 * reg-stack.c (change_stack): Likewise.
6159 * sel-sched-ir.c (sel_move_insn): Likewise.
6160 * sel-sched.c (move_nop_to_previous_block): Likewise.
6162 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6163 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6165 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6167 * rtl.h (for_each_rtx_in_insn): New function.
6168 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6170 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6172 * coretypes.h (class rtx_insn): Add forward declaration.
6174 * rtl.h: Include is-a.h.
6175 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6176 workaround to ensure gengtype knows inheritance is occurring,
6177 whilst continuing to use the pre-existing special-casing for
6179 (class rtx_insn): New subclass of rtx_def, adding the
6180 invariant that we're dealing with something we can sanely use
6181 INSN_UID, NEXT_INSN, PREV_INSN on.
6182 (is_a_helper <rtx_insn *>::test): New.
6183 (is_a_helper <const rtx_insn *>::test): New.
6185 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6187 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6189 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6191 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6194 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6196 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6197 to BUILT_IN_UNREACHABLE.
6199 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6202 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6204 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6205 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6206 (ffs<mode>2): Do not expand with tzcnt for
6207 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6208 (ffssi2_no_cmove): Ditto.
6209 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6210 (ctz<mode>2): New expander.
6211 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6212 (*ctz<mode>2_falsedep): New insn.
6213 (*ctz<mode>2): Rename from ctz<mode>2.
6214 (clz<mode>2_lzcnt): New expander.
6215 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6216 (*clz<mode>2_lzcnt_falsedep): New insn.
6217 (*clz<mode>2): Rename from ctz<mode>2.
6218 (popcount<mode>2): New expander.
6219 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6220 (*popcount<mode>2_falsedep): New insn.
6221 (*popcount<mode>2): Rename from ctz<mode>2.
6222 (*popcount<mode>2_cmp): Remove.
6223 (*popcountsi2_cmp_zext): Ditto.
6225 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6227 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6228 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6229 * config/microblaze/microblaze.h
6230 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6232 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6235 * configure.ac: Set install_gold_as_default to no for
6237 * configure: Regenerated.
6239 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6241 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6242 * config.in: Add undef of HAVE_isl.
6243 * configure: Regenerate.
6244 * configure.ac: Add definition of HAVE_isl.
6245 * graphite-blocking.c: Add checking of HAVE_isl.
6246 * graphite-dependences.c: Likewise.
6247 * graphite-interchange.c: Likewise.
6248 * graphite-isl-ast-to-gimple.c: Likewise.
6249 * graphite-optimize-isl.c: Likewise.
6250 * graphite-poly.c: Likewise.
6251 * graphite-scop-detection.c: Likewise.
6252 * graphite-sese-to-poly.c: Likewise.
6253 * graphite.c: Likewise.
6254 * toplev.c: Replace the checking of HAVE_cloog with the checking
6257 2014-08-18 Richard Biener <rguenther@suse.de>
6259 PR tree-optimization/62090
6260 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6261 (fold_builtin_3): Do not fold snprintf.
6262 (fold_builtin_4): Likewise.
6263 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6264 moved from builtins.c.
6265 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6266 (gimple_fold_builtin): Do not fold sprintf here.
6268 2014-08-18 Richard Biener <rguenther@suse.de>
6270 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6272 (maybe_canonicalize_mem_ref_addr): ... this function.
6273 (fold_stmt_1): Apply it here before all simplification.
6275 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6278 * cgraph.h (cgraph_node::create_indirect_edge): Add
6279 compute_indirect_info param.
6280 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6281 indirect_info only when it is required.
6282 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6283 indirect_info fore cloned indirect edge.
6285 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6286 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6287 Anna Tikhonova <anna.tikhonova@intel.com>
6288 Ilya Tocar <ilya.tocar@intel.com>
6289 Andrey Turetskiy <andrey.turetskiy@intel.com>
6290 Ilya Verbin <ilya.verbin@intel.com>
6291 Kirill Yukhin <kirill.yukhin@intel.com>
6292 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6294 * config/i386/sse.md
6295 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6296 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6298 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6299 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6300 Anna Tikhonova <anna.tikhonova@intel.com>
6301 Ilya Tocar <ilya.tocar@intel.com>
6302 Andrey Turetskiy <andrey.turetskiy@intel.com>
6303 Ilya Verbin <ilya.verbin@intel.com>
6304 Kirill Yukhin <kirill.yukhin@intel.com>
6305 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6307 * config/i386/sse.md
6308 (define_mode_iterator VF1_AVX512VL): New.
6309 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6310 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6313 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6315 Anna Tikhonova <anna.tikhonova@intel.com>
6316 Ilya Tocar <ilya.tocar@intel.com>
6317 Andrey Turetskiy <andrey.turetskiy@intel.com>
6318 Ilya Verbin <ilya.verbin@intel.com>
6319 Kirill Yukhin <kirill.yukhin@intel.com>
6320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6322 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6323 * config/i386/i386.md
6324 (define_code_iterator any_float): New.
6325 (define_code_attr floatsuffix): New.
6326 * config/i386/sse.md
6327 (define_mode_iterator VF1_128_256VL): New.
6328 (define_mode_iterator VF2_512_256VL): New.
6329 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6331 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6332 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6334 (define_mode_attr qq2pssuff): New.
6335 (define_mode_attr sselongvecmode): New.
6336 (define_mode_attr sselongvecmodelower): New.
6337 (define_mode_attr sseintvecmode3): New.
6338 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6340 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6341 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6342 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6343 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6345 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6346 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6347 Anna Tikhonova <anna.tikhonova@intel.com>
6348 Ilya Tocar <ilya.tocar@intel.com>
6349 Andrey Turetskiy <andrey.turetskiy@intel.com>
6350 Ilya Verbin <ilya.verbin@intel.com>
6351 Kirill Yukhin <kirill.yukhin@intel.com>
6352 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6354 * config/i386/sse.md
6355 (define_mode_iterator VF2_AVX512VL): New.
6356 (define_mode_attr sseintvecmode2): New.
6357 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6358 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6359 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6361 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6363 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6365 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6368 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6369 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6370 Anna Tikhonova <anna.tikhonova@intel.com>
6371 Ilya Tocar <ilya.tocar@intel.com>
6372 Andrey Turetskiy <andrey.turetskiy@intel.com>
6373 Ilya Verbin <ilya.verbin@intel.com>
6374 Kirill Yukhin <kirill.yukhin@intel.com>
6375 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6377 * config/i386/i386.md
6378 (define_insn "*movoi_internal_avx"): Add evex version.
6379 (define_insn "*movti_internal"): Ditto.
6381 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6383 Anna Tikhonova <anna.tikhonova@intel.com>
6384 Ilya Tocar <ilya.tocar@intel.com>
6385 Andrey Turetskiy <andrey.turetskiy@intel.com>
6386 Ilya Verbin <ilya.verbin@intel.com>
6387 Kirill Yukhin <kirill.yukhin@intel.com>
6388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6390 * config/i386/i386.md
6391 (define_attr "isa"): Add avx512dq, noavx512dq.
6392 (define_attr "enabled"): Ditto.
6393 * config/i386/sse.md
6394 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6396 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6398 Anna Tikhonova <anna.tikhonova@intel.com>
6399 Ilya Tocar <ilya.tocar@intel.com>
6400 Andrey Turetskiy <andrey.turetskiy@intel.com>
6401 Ilya Verbin <ilya.verbin@intel.com>
6402 Kirill Yukhin <kirill.yukhin@intel.com>
6403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6405 * config/i386/i386.c
6406 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6407 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6408 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6409 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6410 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6411 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6412 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6413 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6414 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6415 * config/i386/sse.md
6416 (define_mode_iterator VMOVE): Allow V4TI mode.
6417 (define_mode_iterator V_AVX512VL): New.
6418 (define_mode_iterator V): New handling for AVX512VL.
6419 (define_insn "avx512f_load<mode>_mask"): Delete.
6420 (define_insn "<avx512>_load<mode>_mask"): New.
6421 (define_insn "avx512f_store<mode>_mask"): Delete.
6422 (define_insn "<avx512>_store<mode>_mask"): New.
6425 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6428 * asan.c (instrument_derefs): Fix bitfield check.
6430 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6432 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6433 * config/rs6000/htm.md (ttest): Remove clobber.
6434 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6435 (and_operand): Reformat.
6436 (and_2rld_operand): New predicate.
6437 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6439 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6440 parameter. Handle AND directly.
6441 (rs6000_split_logical_di): Remove last parameter.
6442 (rs6000_split_logical): Remove last parameter. Remove obsolete
6444 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6445 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6446 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6447 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6448 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6449 and 5 anonymous splitters): Delete.
6450 (and<mode>3): New expander.
6451 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6452 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6453 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6454 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6455 (floatdisf2_internal1): Remove clobbers.
6456 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6457 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6458 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6459 (and<mode>3 for BOOL_128): Remove clobber.
6460 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6461 rs6000_split_logical.
6462 (*bool<mode>3_internal for BOOL_128): Adjust call of
6463 rs6000_split_logical.
6464 (*boolc<mode>3_internal1 for BOOL_128,
6465 *boolc<mode>3_internal2 for BOOL_128,
6466 *boolcc<mode>3_internal1 for BOOL_128,
6467 *boolcc<mode>3_internal2 for BOOL_128,
6468 *eqv<mode>3_internal1 for BOOL_128,
6469 *eqv<mode>3_internal2 for BOOL_128,
6470 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6471 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6473 (*vec_reload_and_reg_<mptrsize>): Delete.
6475 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6477 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6478 and split, *boolccsi3_internal3 and split): Delete.
6479 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6480 *boolccdi3_internal3 and split): Delete.
6481 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6482 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6484 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6486 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6487 and split, *boolcsi3_internal3 and split): Delete.
6488 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6489 *boolcdi3_internal3 and split): Delete.
6490 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6492 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6494 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6495 <'u'>: Also support printing the low-order 16 bits.
6496 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6497 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6498 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6499 *booldi3_internal3 and split): Delete.
6500 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6501 *bool<mode>3_dot2): New.
6502 (two anonymous define_splits for non_logical_cint_operand): Merge.
6504 2014-08-17 Marek Polacek <polacek@redhat.com>
6505 Manuel López-Ibáñez <manu@gcc.gnu.org>
6508 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6509 (diagnostic_show_locus): Don't print caret diagnostic
6510 if a column is larger than the line_width.
6512 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6514 * common.opt: Make the ISL AST generator to be the main code generator
6517 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6519 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6521 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6524 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6526 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6527 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6528 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6530 * config/pa/pa.md (begin_brtab): Delete insn.
6531 (end_brtab): Likewise.
6533 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6535 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6537 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6539 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6540 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6541 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6542 (get_dynamic_type): Remove.
6543 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6544 (clear_speculation): Bring to ipa-deivrt.h
6545 (get_class_context): Rename to ...
6546 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6547 (contains_type_p): Update.
6548 (get_dynamic_type): Rename to ...
6549 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6550 (possible_polymorphic_call_targets): UPdate.
6551 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6552 * ipa-prop.c (ipa_analyze_call_uses): Update.
6554 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6556 * doc/invoke.texi (SH options): Document missing processor variant
6557 options. Remove references to Hitachi. Undocument deprecated mspace
6560 2014-08-15 Jason Merrill <jason@redhat.com>
6562 * tree.c (type_hash_canon): Uncomment assert.
6564 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6566 * input.h (in_system_header_at): Add comment.
6568 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6571 * diagnostic.c (build_message_string): Make it extern.
6572 * diagnostic.h (build_message_string): Make it extern.
6574 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6576 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6577 load/store from/to non-floating class pseudo.
6579 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6581 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6583 2014-08-15 Richard Biener <rguenther@suse.de>
6585 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6586 (get_constraint_for_ssa_var): Remove dead code.
6587 (get_constraint_for_1): Adjust.
6588 (find_what_var_points_to): Likewise.
6589 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6591 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6594 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6595 (_mm512_mask_cmpge_epu32_mask): Ditto.
6596 (_mm512_cmpge_epu32_mask): Ditto.
6597 (_mm512_mask_cmpge_epi64_mask): Ditto.
6598 (_mm512_cmpge_epi64_mask): Ditto.
6599 (_mm512_mask_cmpge_epu64_mask): Ditto.
6600 (_mm512_cmpge_epu64_mask): Ditto.
6601 (_mm512_mask_cmple_epi32_mask): Ditto.
6602 (_mm512_cmple_epi32_mask): Ditto.
6603 (_mm512_mask_cmple_epu32_mask): Ditto.
6604 (_mm512_cmple_epu32_mask): Ditto.
6605 (_mm512_mask_cmple_epi64_mask): Ditto.
6606 (_mm512_cmple_epi64_mask): Ditto.
6607 (_mm512_mask_cmple_epu64_mask): Ditto.
6608 (_mm512_cmple_epu64_mask): Ditto.
6609 (_mm512_mask_cmplt_epi32_mask): Ditto.
6610 (_mm512_cmplt_epi32_mask): Ditto.
6611 (_mm512_mask_cmplt_epu32_mask): Ditto.
6612 (_mm512_cmplt_epu32_mask): Ditto.
6613 (_mm512_mask_cmplt_epi64_mask): Ditto.
6614 (_mm512_cmplt_epi64_mask): Ditto.
6615 (_mm512_mask_cmplt_epu64_mask): Ditto.
6616 (_mm512_cmplt_epu64_mask): Ditto.
6617 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6618 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6619 (_mm512_cmpneq_epu32_mask): Ditto.
6620 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6621 (_mm512_cmpneq_epi64_mask): Ditto.
6622 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6623 (_mm512_cmpneq_epu64_mask): Ditto.
6624 (_mm512_castpd_ps): Ditto.
6625 (_mm512_castpd_si512): Ditto.
6626 (_mm512_castps_pd): Ditto.
6627 (_mm512_castps_si512): Ditto.
6628 (_mm512_castsi512_ps): Ditto.
6629 (_mm512_castsi512_pd): Ditto.
6630 (_mm512_castpd512_pd128): Ditto.
6631 (_mm512_castps512_ps128): Ditto.
6632 (_mm512_castsi512_si128): Ditto.
6633 (_mm512_castpd512_pd256): Ditto.
6634 (_mm512_castps512_ps256): Ditto.
6635 (_mm512_castsi512_si256): Ditto.
6636 (_mm512_castpd128_pd512): Ditto.
6637 (_mm512_castps128_ps512): Ditto.
6638 (_mm512_castsi128_si512): Ditto.
6639 (_mm512_castpd256_pd512): Ditto.
6640 (_mm512_castps256_ps512): Ditto.
6641 (_mm512_castsi256_si512): Ditto.
6642 (_mm512_cmpeq_epu32_mask): Ditto.
6643 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6644 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6645 (_mm512_cmpeq_epu64_mask): Ditto.
6646 (_mm512_cmpgt_epu32_mask): Ditto.
6647 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6648 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6649 (_mm512_cmpgt_epu64_mask): Ditto.
6650 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6651 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6652 * config/i386/i386.c (enum ix86_builtins): Add
6653 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6654 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6655 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6656 (bdesc_args): Add __builtin_ia32_si512_256si,
6657 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6658 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6659 __builtin_ia32_pd512_pd.
6660 (ix86_expand_args_builtin): Handle new FTYPEs.
6661 * config/i386/sse.md (castmode): Add 512-bit modes.
6662 (AVX512MODE2P): New.
6663 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6664 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6666 2014-08-15 Richard Biener <rguenther@suse.de>
6668 * fold-const.c (tree_swap_operands_p): Put all constants
6669 last, also strip sign-changing NOPs when considering further
6670 canonicalization. Canonicalize also when optimizing for size.
6672 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6674 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6675 one_match > zero_match case to just before simple_sequence.
6677 2014-08-15 Richard Biener <rguenther@suse.de>
6679 * data-streamer.h (streamer_string_index, string_for_index):
6681 * data-streamer-out.c (streamer_string_index): Make static.
6682 * data-streamer-in.c (string_for_index): Likewise.
6683 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6684 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6686 2014-08-15 Richard Biener <rguenther@suse.de>
6688 PR tree-optimization/62031
6689 * tree-data-ref.c (dr_analyze_indices): Do not set
6690 DR_UNCONSTRAINED_BASE.
6691 (dr_may_alias_p): All indirect accesses have to go the
6692 formerly DR_UNCONSTRAINED_BASE path.
6693 * tree-data-ref.h (struct indices): Remove
6694 unconstrained_base member.
6695 (DR_UNCONSTRAINED_BASE): Remove.
6697 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6700 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6701 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6702 in OMP_CLAUSE_MAP in some outer target region.
6704 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6706 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6707 name_expansion_cache.
6708 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6709 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6710 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6711 (difference_cannot_overflow_p): New parameter. Use affine
6712 expansion for equality check.
6713 (iv_elimination_compare_lt): Pass new argument.
6715 2014-08-14 DJ Delorie <dj@redhat.com>
6717 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6718 variables to the accumulator.
6720 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6721 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6722 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6725 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6726 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6727 (umulqihi3_virt): Likewise.
6728 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6729 (umulqihi3_real): Likewise.
6731 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6733 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6735 PR tree-optimization/62091
6736 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6737 function_entry_reached.
6738 (walk_aliased_vdefs): Clear it here.
6739 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6741 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6743 * ipa-utils.h (compare_virtual_tables): Declare.
6744 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6746 2014-08-14 Marek Polacek <polacek@redhat.com>
6749 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6750 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6752 2014-08-14 Tom de Vries <tom@codesourcery.com>
6754 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6756 2014-08-14 Tom de Vries <tom@codesourcery.com>
6758 PR rtl-optimization/62004
6759 PR rtl-optimization/62030
6760 * ifcvt.c (rtx_interchangeable_p): New function.
6761 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6762 * emit-rtl.h (mem_attrs_eq_p): Declare.
6764 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6766 * graphite-scop-detection.c:
6767 Add inclusion of cp-tree.h.
6768 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6769 in case they are pointers to object types
6771 2014-08-14 Richard Biener <rguenther@suse.de>
6773 * BASE-VER: Change to 5.0.0
6775 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6776 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6777 Anna Tikhonova <anna.tikhonova@intel.com>
6778 Ilya Tocar <ilya.tocar@intel.com>
6779 Andrey Turetskiy <andrey.turetskiy@intel.com>
6780 Ilya Verbin <ilya.verbin@intel.com>
6781 Kirill Yukhin <kirill.yukhin@intel.com>
6782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6784 * config/i386/sse.md (define_mode_attr avx512): New.
6785 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6787 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6788 (define_mode_attr ssse3_avx2): Ditto.
6789 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6790 (define_mode_attr avx2_avx512bw): New.
6791 (define_mode_attr ssedoublemodelower): New.
6792 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6794 (define_mode_attr ssebytemode): Allow V8DI modes.
6795 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6796 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6797 (define_mode_attr ssePSmode2): New.
6798 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6800 (define_mode_attr dbpsadbwmode): New.
6801 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6802 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6803 (vi8_sse4_1_avx2_avx512): New.
6804 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6806 (define_mode_attr blendbits): Move before its immediate use.
6808 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6810 Anna Tikhonova <anna.tikhonova@intel.com>
6811 Ilya Tocar <ilya.tocar@intel.com>
6812 Andrey Turetskiy <andrey.turetskiy@intel.com>
6813 Ilya Verbin <ilya.verbin@intel.com>
6814 Kirill Yukhin <kirill.yukhin@intel.com>
6815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6817 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6818 * config/i386/subst.md
6819 (define_mode_iterator SUBST_V): Update.
6820 (define_mode_iterator SUBST_A): Ditto.
6821 (define_subst_attr "mask_operand7"): New.
6822 (define_subst_attr "mask_operand10"): New.
6823 (define_subst_attr "mask_operand_arg34") : New.
6824 (define_subst_attr "mask_expand_op3"): New.
6825 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6826 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6827 (define_subst_attr "mask_avx512vl_condition"): New.
6828 (define_subst_attr "round_mask_operand4"): Ditto.
6829 (define_subst_attr "round_mask_scalar_op3"): Delete.
6830 (define_subst_attr "round_mask_op4"): New.
6831 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6833 (define_subst_attr "round_modev8sf_condition"): New.
6834 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6836 (define_subst_attr "round_saeonly_mask_operand4"): New.
6837 (define_subst_attr "round_saeonly_mask_op4"): New.
6838 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6839 V8DImode, V16SImode.
6840 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6841 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6842 (define_subst_attr "mask_expand4_args"): New.
6843 (define_subst "mask_expand4"): New.
6845 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6847 Anna Tikhonova <anna.tikhonova@intel.com>
6848 Ilya Tocar <ilya.tocar@intel.com>
6849 Andrey Turetskiy <andrey.turetskiy@intel.com>
6850 Ilya Verbin <ilya.verbin@intel.com>
6851 Kirill Yukhin <kirill.yukhin@intel.com>
6852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6854 * config/i386/i386.md
6855 (define_attr "isa"): Add avx512bw,noavx512bw.
6856 (define_attr "enabled"): Ditto.
6857 (define_split): Add 32/64-bit mask logic.
6858 (define_insn "*k<logic>qi"): New.
6859 (define_insn "*k<logic>hi"): New.
6860 (define_insn "*anddi_1"): Add mask version.
6861 (define_insn "*andsi_1"): Ditto.
6862 (define_insn "*<code><mode>_1"): Ditto.
6863 (define_insn "*<code>hi_1"): Ditto.
6864 (define_insn "kxnor<mode>"): New.
6865 (define_insn "kunpcksi"): New.
6866 (define_insn "kunpckdi"): New.
6867 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6868 (define_insn "*one_cmplhi2_1"): Ditto.
6870 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6871 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6872 Anna Tikhonova <anna.tikhonova@intel.com>
6873 Ilya Tocar <ilya.tocar@intel.com>
6874 Andrey Turetskiy <andrey.turetskiy@intel.com>
6875 Ilya Verbin <ilya.verbin@intel.com>
6876 Kirill Yukhin <kirill.yukhin@intel.com>
6877 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6879 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6882 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6883 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6884 Anna Tikhonova <anna.tikhonova@intel.com>
6885 Ilya Tocar <ilya.tocar@intel.com>
6886 Andrey Turetskiy <andrey.turetskiy@intel.com>
6887 Ilya Verbin <ilya.verbin@intel.com>
6888 Kirill Yukhin <kirill.yukhin@intel.com>
6889 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6891 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6893 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6894 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6895 xmm/ymm16+ when availble.
6896 * config/i386/i386.h
6897 (HARD_REGNO_NREGS): Add mask regs.
6898 (VALID_AVX512F_REG_MODE): Ditto.
6899 (VALID_AVX512F_REG_MODE) : Define.
6900 (VALID_MASK_AVX512BW_MODE): Ditto.
6901 (reg_class) (MASK_REG_P(X)): Define.
6902 * config/i386/i386.md: Do not split long moves with mask register,
6903 use kmovb if avx512bw is availible.
6904 (movdi_internal): Handle mask registers.
6906 2014-08-14 Richard Biener <rguenther@suse.de>
6908 PR tree-optimization/62081
6909 * tree-ssa-loop.c (pass_fix_loops): New pass.
6910 (pass_tree_loop::gate): Do not fixup loops here.
6911 * tree-pass.h (make_pass_fix_loops): Declare.
6912 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6914 2014-08-14 Richard Biener <rguenther@suse.de>
6916 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6917 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6919 2014-08-14 Richard Biener <rguenther@suse.de>
6921 PR tree-optimization/62090
6922 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6923 (fold_builtin_2): Do not fold sprintf.
6924 (fold_builtin_3): Likewise.
6925 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6926 moved from builtins.c.
6927 (gimple_fold_builtin): Fold sprintf.
6929 2014-08-14 Richard Biener <rguenther@suse.de>
6931 PR rtl-optimization/62079
6932 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6935 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6937 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6938 current_function_decl.
6940 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6942 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6943 cgraph_function_node to cgraph_node::function_symbol
6946 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6948 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6949 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6951 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6953 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6956 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6958 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6961 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6964 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6965 any registers that are used in mem_insn.
6967 2014-08-12 Steve Ellcey <sellcey@mips.com>
6969 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6971 2014-08-12 Steve Ellcey <sellcey@mips.com>
6973 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6974 (MULTILIB_DIRNAMES): Ditto.
6975 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6976 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6977 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6978 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6979 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6980 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6982 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6985 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6986 of __ARM_SIZEOF_WCHAR_T.
6988 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6991 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6992 Remove unnecessary attributes.
6994 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6996 * internal-fn.c (init_internal_fns): Fix off-by-one.
6998 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7000 Anna Tikhonova <anna.tikhonova@intel.com>
7001 Ilya Tocar <ilya.tocar@intel.com>
7002 Andrey Turetskiy <andrey.turetskiy@intel.com>
7003 Ilya Verbin <ilya.verbin@intel.com>
7004 Kirill Yukhin <kirill.yukhin@intel.com>
7005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7007 * config/i386/i386.c (standard_sse_constant_opcode): Use
7008 vpxord/vpternlog if avx512 is availible.
7010 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7013 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7014 bitfields, that is when size doesn't match the size of type or the
7015 size of the constructor.
7017 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7019 * config/rs6000/constraints.md (wh constraint): New constraint,
7020 for FP registers if direct move is available.
7021 (wi constraint): New constraint, for VSX/FP registers that can
7022 handle 64-bit integers.
7023 (wj constraint): New constraint for VSX/FP registers that can
7024 handle 64-bit integers for direct moves.
7025 (wk constraint): New constraint for VSX/FP registers that can
7026 handle 64-bit doubles for direct moves.
7027 (wy constraint): Make documentation match implementation.
7029 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7030 scalar_in_vmx_p field to simplify tests of whether SFmode or
7031 DFmode can go in the Altivec registers.
7032 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7033 (rs6000_setup_reg_addr_masks): Likewise.
7034 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7035 field, and wh/wi/wj/wk constraints.
7036 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7037 the wh/wi/wj/wk constraints.
7038 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7039 upper registers, prefer VSX registers unless the operation is a
7040 memory operation with REG+OFFSET addressing.
7042 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7043 DImode. Change SFmode to use ww constraint instead of d to allow
7044 SF registers in the upper registers.
7047 (VSr5): Fix thinko in comment.
7048 (VSa): New mode attribute that is an alternative to wa, that
7049 returns the VSX register class that a mode can go in, but may not
7050 be the preferred register class.
7051 (VS_64dm): New mode attribute for appropriate register classes for
7052 referencing 64-bit elements of vectors for direct moves and normal
7054 (VS_64reg): Likewise.
7055 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7056 register allocator to only registers the data type can handle.
7057 (vsx_le_perm_load_<mode>): Likewise.
7058 (vsx_le_perm_store_<mode>): Likewise.
7059 (vsx_xxpermdi2_le_<mode>): Likewise.
7060 (vsx_xxpermdi4_le_<mode>): Likewise.
7061 (vsx_lxvd2x2_le_<mode>): Likewise.
7062 (vsx_lxvd2x4_le_<mode>): Likewise.
7063 (vsx_stxvd2x2_le_<mode>): Likewise.
7064 (vsx_add<mode>3): Likewise.
7065 (vsx_sub<mode>3): Likewise.
7066 (vsx_mul<mode>3): Likewise.
7067 (vsx_div<mode>3): Likewise.
7068 (vsx_tdiv<mode>3_internal): Likewise.
7069 (vsx_fre<mode>2): Likewise.
7070 (vsx_neg<mode>2): Likewise.
7071 (vsx_abs<mode>2): Likewise.
7072 (vsx_nabs<mode>2): Likewise.
7073 (vsx_smax<mode>3): Likewise.
7074 (vsx_smin<mode>3): Likewise.
7075 (vsx_sqrt<mode>2): Likewise.
7076 (vsx_rsqrte<mode>2): Likewise.
7077 (vsx_tsqrt<mode>2_internal): Likewise.
7078 (vsx_fms<mode>4): Likewise.
7079 (vsx_nfma<mode>4): Likewise.
7080 (vsx_eq<mode>): Likewise.
7081 (vsx_gt<mode>): Likewise.
7082 (vsx_ge<mode>): Likewise.
7083 (vsx_eq<mode>_p): Likewise.
7084 (vsx_gt<mode>_p): Likewise.
7085 (vsx_ge<mode>_p): Likewise.
7086 (vsx_xxsel<mode>): Likewise.
7087 (vsx_xxsel<mode>_uns): Likewise.
7088 (vsx_copysign<mode>3): Likewise.
7089 (vsx_float<VSi><mode>2): Likewise.
7090 (vsx_floatuns<VSi><mode>2): Likewise.
7091 (vsx_fix_trunc<mode><VSi>2): Likewise.
7092 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7093 (vsx_x<VSv>r<VSs>i): Likewise.
7094 (vsx_x<VSv>r<VSs>ic): Likewise.
7095 (vsx_btrunc<mode>2): Likewise.
7096 (vsx_b2trunc<mode>2): Likewise.
7097 (vsx_floor<mode>2): Likewise.
7098 (vsx_ceil<mode>2): Likewise.
7099 (vsx_<VS_spdp_insn>): Likewise.
7100 (vsx_xscvspdp): Likewise.
7101 (vsx_xvcvspuxds): Likewise.
7102 (vsx_float_fix_<mode>2): Likewise.
7103 (vsx_set_<mode>): Likewise.
7104 (vsx_extract_<mode>_internal1): Likewise.
7105 (vsx_extract_<mode>_internal2): Likewise.
7106 (vsx_extract_<mode>_load): Likewise.
7107 (vsx_extract_<mode>_store): Likewise.
7108 (vsx_splat_<mode>): Likewise.
7109 (vsx_xxspltw_<mode>): Likewise.
7110 (vsx_xxspltw_<mode>_direct): Likewise.
7111 (vsx_xxmrghw_<mode>): Likewise.
7112 (vsx_xxmrglw_<mode>): Likewise.
7113 (vsx_xxsldwi_<mode>): Likewise.
7114 (vsx_xscvdpspn): Tighten constraints to only use register classes
7116 (vsx_xscvspdpn): Likewise.
7117 (vsx_xscvdpspn_scalar): Likewise.
7119 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7120 wj, and wk constraints.
7121 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7122 general purpose registers.
7124 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7126 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7127 DImode instead of wm. Use wk constraint for direct move of DFmode
7129 (extendsidi2_lfiwax): Likewise.
7132 (movdi_internal64): Likewise.
7134 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7135 wk constraints. Make the wy constraint documentation match them
7138 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7140 Replacement of isl_int by isl_val
7141 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7142 (compute_bounds_for_param): use isl_val instead of isl_int
7143 (compute_bounds_for_loop): likewise
7144 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7145 (build_linearized_memory_access): use isl_val instead of isl_int
7146 (pdr_stride_in_loop): likewise
7147 * graphite-optimize-isl.c:
7148 (getPrevectorMap): use isl_val instead of isl_int
7150 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7151 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7152 (extern the_isl_ctx): declare
7153 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7154 (extract_affine_gmp): likewise
7156 (build_loop_iteration_domains): likewise
7157 (add_param_constraints): likewise
7159 2014-08-11 Richard Biener <rguenther@suse.de>
7161 PR tree-optimization/62075
7162 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7163 handle uses in patterns.
7165 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7166 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7167 Anna Tikhonova <anna.tikhonova@intel.com>
7168 Ilya Tocar <ilya.tocar@intel.com>
7169 Andrey Turetskiy <andrey.turetskiy@intel.com>
7170 Ilya Verbin <ilya.verbin@intel.com>
7171 Kirill Yukhin <kirill.yukhin@intel.com>
7172 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7174 * common/config/i386/i386-common.c
7175 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7176 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7177 (ix86_handle_option): Handle OPT_mavx512vl.
7178 * config/i386/cpuid.h (bit_AVX512VL): Define.
7179 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7180 set -mavx512vl accordingly.
7181 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7182 OPTION_MASK_ISA_AVX512VL.
7183 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7184 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7185 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7186 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7187 * config/i386/i386.h (TARGET_AVX512VL): Define.
7188 (TARGET_AVX512VL_P(x)): Ditto.
7189 * config/i386/i386.opt: Add mavx512vl.
7191 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7193 PR tree-optimization/62073
7194 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7197 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7199 Anna Tikhonova <anna.tikhonova@intel.com>
7200 Ilya Tocar <ilya.tocar@intel.com>
7201 Andrey Turetskiy <andrey.turetskiy@intel.com>
7202 Ilya Verbin <ilya.verbin@intel.com>
7203 Kirill Yukhin <kirill.yukhin@intel.com>
7204 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7206 * common/config/i386/i386-common.c
7207 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7208 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7209 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7210 (ix86_handle_option): Handle OPT_mavx512bw.
7211 * config/i386/cpuid.h (bit_AVX512BW): Define.
7212 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7213 set -mavx512bw accordingly.
7214 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7215 OPTION_MASK_ISA_AVX512BW.
7216 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7217 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7218 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7219 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7220 * config/i386/i386.h (TARGET_AVX512BW): Define.
7221 (TARGET_AVX512BW_P(x)): Ditto.
7222 * config/i386/i386.opt: Add mavx512bw.
7224 2014-08-11 Richard Biener <rguenther@suse.de>
7226 PR tree-optimization/62070
7227 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7228 Remove SSA checking.
7230 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7232 * asan.c (asan_check_flags): New enum.
7233 (build_check_stmt_with_calls): Removed function.
7234 (build_check_stmt): Split inlining logic to
7235 asan_expand_check_ifn.
7236 (instrument_derefs): Rename parameter.
7237 (instrument_mem_region_access): Rename parameter.
7238 (instrument_strlen_call): Likewise.
7239 (asan_expand_check_ifn): New function.
7240 (asan_instrument): Remove old code.
7241 (pass_sanopt::execute): Change handling of
7242 asan-instrumentation-with-call-threshold.
7243 (asan_clear_shadow): Fix formatting.
7244 (asan_function_start): Likewise.
7245 (asan_emit_stack_protection): Likewise.
7246 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7248 * internal-fn.c (expand_ASAN_CHECK): New function.
7249 * internal-fn.def (ASAN_CHECK): New internal function.
7250 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7252 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7253 * tree.c: Small comment fix.
7255 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7257 * gimple.c (gimple_call_fnspec): Support internal functions.
7258 (gimple_call_return_flags): Use const.
7259 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7260 * internal-fn.def: Add fnspec information.
7261 * internal-fn.h (internal_fn_fnspec): New function.
7262 (init_internal_fns): Declare new function.
7263 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7264 (init_internal_fns): New function.
7265 * tree-core.h: Update macro call.
7266 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7268 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7270 * lto-streamer.h (struct output_block::symbol): Change from
7271 struct symtab_node to plain symtab_node.
7272 (referenced_from_this_partition_p): Change first parameter
7273 from struct symtab_node to plain symtab_node.
7275 2014-08-10 Marek Polacek <polacek@redhat.com>
7278 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7280 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7282 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7283 DECL correctly; do not give up on types in static storage.
7285 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7287 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7289 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7291 * graphite-isl-ast-to-gimple.c:
7292 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7294 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7296 2014-08-08 Guozhi Wei <carrot@google.com>
7298 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7300 2014-08-08 Cary Coutant <ccoutant@google.com>
7302 * dwarf2out.c (get_skeleton_type_unit): Remove.
7303 (output_skeleton_debug_sections): Remove skeleton type units.
7304 (output_comdat_type_unit): Likewise.
7305 (dwarf2out_finish): Likewise.
7307 2014-08-07 Yi Yang <ahyangyi@google.com>
7309 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7311 2014-08-08 Richard Biener <rguenther@suse.de>
7313 * lto-streamer.h (struct lto_input_block): Make it a class
7315 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7316 (struct lto_function_header, struct lto_simple_header,
7317 struct lto_simple_header_with_strings,
7318 struct lto_decl_header, struct lto_function_header): Make
7319 a simple inheritance hieararchy. Remove unused fields.
7320 (struct lto_asm_header): Remove.
7321 * lto-streamer-out.c (produce_asm): Adjust.
7322 (lto_output_toplevel_asms): Likewise.
7323 (produce_asm_for_decls): Likewise.
7324 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7325 * data-streamer-in.c (string_for_index): Likewise.
7326 * ipa-inline-analysis.c (inline_read_section): Likewise.
7327 * ipa-prop.c (ipa_prop_read_section): Likewise.
7328 (read_replacements_section): Likewise.
7329 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7330 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7331 (lto_destroy_simple_input_block): Likewise.
7332 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7333 (lto_input_toplevel_asms): Likewise.
7335 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7337 Anna Tikhonova <anna.tikhonova@intel.com>
7338 Ilya Tocar <ilya.tocar@intel.com>
7339 Andrey Turetskiy <andrey.turetskiy@intel.com>
7340 Ilya Verbin <ilya.verbin@intel.com>
7341 Kirill Yukhin <kirill.yukhin@intel.com>
7342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7344 * common/config/i386/i386-common.c
7345 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7346 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7347 (ix86_handle_option): Handle OPT_mavx512dq.
7348 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7349 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7350 set -mavx512dq accordingly.
7351 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7352 OPTION_MASK_ISA_AVX512DQ.
7353 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7354 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7355 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7356 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7357 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7358 (TARGET_AVX512DQ_P(x)): Ditto.
7359 * config/i386/i386.opt: Add mavx512dq.
7361 2014-08-08 Richard Biener <rguenther@suse.de>
7363 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7364 target_percent, target_percent_s): Export.
7365 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7366 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7367 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7368 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7369 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7370 Move to gimple-fold.c.
7371 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7373 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7374 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7375 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7376 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7377 (rewrite_call_expr_array): Remove.
7378 (fold_builtin_sprintf_chk): Likewise.
7379 (fold_builtin_snprintf_chk): Likewise.
7380 (fold_builtin_varargs): Remove handling of sprintf_chk,
7381 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7382 (gimple_fold_builtin_sprintf_chk): Remove.
7383 (gimple_fold_builtin_snprintf_chk): Likewise.
7384 (gimple_fold_builtin_varargs): Likewise.
7385 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7386 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7387 * gimple.c (gimple_seq_add_seq_without_update): New function.
7388 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7389 * gimple-fold.c: Include output.h.
7390 (gsi_replace_with_seq_vops): New function, split out from ...
7391 (gimplify_and_update_call_from_tree): ... here.
7392 (replace_call_with_value): New function.
7393 (replace_call_with_call_and_fold): Likewise.
7394 (var_decl_component_p): Moved from builtins.c.
7395 (gimple_fold_builtin_memory_op): Moved from builtins.c
7396 fold_builtin_memory_op and rewritten to GIMPLE.
7397 (gimple_fold_builtin_memset): Likewise.
7398 (gimple_fold_builtin_strcpy): Likewise.
7399 (gimple_fold_builtin_strncpy): Likewise.
7400 (gimple_fold_builtin_strcat): Likewise.
7401 (gimple_fold_builtin_fputs): Likewise.
7402 (gimple_fold_builtin_memory_chk): Likewise.
7403 (gimple_fold_builtin_stxcpy_chk): Likewise.
7404 (gimple_fold_builtin_stxncpy_chk): Likewise.
7405 (gimple_fold_builtin_snprintf_chk): Likewise.
7406 (gimple_fold_builtin_sprintf_chk): Likewise.
7407 (gimple_fold_builtin_strlen): New function.
7408 (gimple_fold_builtin_with_strlen): New function split out from
7409 gimple_fold_builtin.
7410 (gimple_fold_builtin): Change signature and handle
7411 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7412 here. Call gimple_fold_builtin_with_strlen.
7413 (gimple_fold_call): Adjust.
7415 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7417 * calls.c (precompute_arguments): Check
7418 promoted_for_signed_and_unsigned_p and set the promoted mode.
7419 (promoted_for_signed_and_unsigned_p): New function.
7420 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7421 and set the promoted mode.
7422 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7423 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7424 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7427 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7429 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7430 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7431 (expand_call): Likewise.
7432 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7433 to get promoted mode.
7434 * combine.c (record_promoted_value): Skip > 0 comparison with
7435 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7436 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7437 of SUBREG_PROMOTED_UNSIGNED_P.
7438 (convert_modes): Likewise.
7439 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7440 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7441 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7442 SUBREG_PROMOTED_UNSIGNED_SET.
7443 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7444 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7445 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7446 SUBREG_PROMOTED_SET.
7447 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7448 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7449 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7450 of SUBREG_PROMOTED_UNSIGNED_P.
7451 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7452 (SUBREG_PROMOTED_SET): New define.
7453 (SUBREG_PROMOTED_GET): Likewise.
7454 (SUBREG_PROMOTED_SIGN): Likewise.
7455 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7456 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7457 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7458 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7459 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7460 (nonzero_bits1): Skip > 0 comparison with the results as
7461 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7462 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7463 of !SUBREG_PROMOTED_UNSIGNED_P.
7464 * simplify-rtx.c (simplify_unary_operation_1): Use new
7465 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7466 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7467 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7468 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7470 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7472 * ipa-devirt.c: Include gimple-pretty-print.h
7473 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7475 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7476 (get_polymorphic_call_info): Fix return value
7477 (type_change_info): New sturcture based on ipa-prop
7479 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7480 based on ipa-prop variant.
7481 (extr_type_from_vtbl_ptr_store): New function
7482 based on ipa-prop variant.
7483 (record_known_type): New function.
7484 (check_stmt_for_type_change): New function.
7485 (get_dynamic_type): New function.
7486 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7487 * tree-ssa-pre.c: ipa-utils.h
7488 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7489 machinery; sanity check with ipa-prop devirtualization.
7490 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7493 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7495 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7496 * alias.c, cfgexpand.c, cgraphbuild.c,
7497 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7498 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7499 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7500 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7501 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7502 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7503 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7504 dse.c, except.c, gengtype.c, gimple-expr.c,
7505 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7506 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7507 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7508 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7509 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7510 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7512 * pointer-set.c: Remove file.
7513 * pointer-set.h: Remove file.
7515 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7517 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7518 * config/arm/types.md (f_sels, f_seld): Delete.
7520 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7522 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7523 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7524 (aarch64_movdi_<mode>high): Likewise.
7525 (aarch64_mov<mode>high_di): Likewise.
7526 (aarch64_movdi_<mode>low): Likewise.
7527 (aarch64_mov<mode>low_di): Likewise.
7528 (aarch64_movtilow_tilow): Likewise.
7529 Add comment explaining usage of fp,simd attributes and of
7530 TARGET_FLOAT and TARGET_SIMD.
7532 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7533 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7535 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7536 Use MOVN when one of the half-words is 0xffff.
7538 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7540 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7542 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7544 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7545 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7546 (rfs_str): String corresponding to RFS_* constants.
7547 (rank_for_schedule_stats_t): New typedef.
7548 (rank_for_schedule_stats): New static variable.
7549 (rfs_result): New static function.
7550 (rank_for_schedule): Track statistics for deciding heuristics.
7551 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7553 (ready_sort): Use them for debug printouts.
7554 (schedule_block): Init statistics state. Print statistics on
7555 rank_for_schedule decisions.
7557 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7559 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7561 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7563 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7566 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7568 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7569 function to not conflict.
7570 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7571 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7572 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7573 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7574 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7577 2014-08-07 Marek Polacek <polacek@redhat.com>
7579 * fold-const.c (fold_binary_loc): Add folding of
7580 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7582 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7584 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7585 instead of type size.
7586 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7588 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7590 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7591 (*thumb1_movqi_insn): Likewise.
7592 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7594 2014-08-07 Tom de Vries <tom@codesourcery.com>
7596 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7597 (glibc_2_11_or_earlier): Remove effective-target keywords.
7599 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7601 * config/arm/arm.c (bdesc_2arg): Fix typo.
7602 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7604 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7606 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7608 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7611 * haifa-sched.c (advance_one_cycle): Fix dump.
7612 (schedule_block): Don't advance cycle if we are already at the
7613 beginning of the cycle.
7615 2014-08-06 Martin Jambor <mjambor@suse.cz>
7618 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7620 2014-08-06 Richard Biener <rguenther@suse.de>
7623 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7625 (lto_input_tree): Pop SCCs here.
7627 2014-08-06 Richard Biener <rguenther@suse.de>
7629 PR tree-optimization/61320
7630 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7631 handle misaligned loads.
7633 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7635 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7636 (aarch64_expand_vec_perm_const): Check for dup before zip.
7638 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7640 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7641 CONST_INT_P instead of GET_CODE and compare.
7642 (aarch64_select_cc_mode): Likewise.
7643 (aarch64_print_operand): Likewise.
7644 (aarch64_rtx_costs): Likewise.
7645 (aarch64_simd_valid_immediate): Likewise.
7646 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7647 (aarch64_simd_emit_pair_result_insn): Likewise.
7649 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7651 * gdbhooks.py (find_gcc_source_dir): New helper function.
7652 (class PassNames): New class, locating and parsing passes.def.
7653 (class BreakOnPass): New command "break-on-pass".
7655 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7657 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7660 2014-08-05 Richard Biener <rguenther@suse.de>
7662 PR rtl-optimization/61672
7663 * emit-rtl.h (mem_attrs_eq_p): Declare.
7664 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7665 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7666 * cfgcleanup.c (merge_memattrs): Likewise.
7669 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7671 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7672 rather than singleton vectors.
7673 (vqdmlsls_lane_s32): Likewise.
7675 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7677 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7678 Use VSDQ_HSI mode iterator.
7679 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7680 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7681 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7682 Use BUILTIN_VDQHS macro.
7683 (sqrdmulh_laneq): Likewise.
7684 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7685 (vqdmlals_laneq_s32): Likewise.
7686 (vqdmlslh_laneq_s16): Likewise.
7687 (vqdmlsls_laneq_s32): Likewise.
7688 (vqdmulhh_laneq_s16): Likewise.
7689 (vqdmulhs_laneq_s32): Likewise.
7690 (vqrdmulhh_laneq_s16): Likewise.
7691 (vqrdmulhs_laneq_s32): Likewise.
7693 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7695 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7696 (vmuld_laneq_f64): Likewise.
7697 (vmuls_laneq_f32): Likewise.
7698 (vmul_n_f64): Likewise.
7699 (vmuld_lane_f64): Reimplement in C.
7700 (vmuls_lane_f32): Likewise.
7702 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7704 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7706 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7708 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7710 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7711 (rbitsi2): Likewise.
7712 (*arm_rev): Set predicable and predicable_short_it attributes.
7714 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7716 * convert.c (convert_to_integer): Guard transformation to lrint by
7719 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7721 * config/aarch64/aarch64-builtins.c
7722 (aarch64_simd_builtin_type_mode): Delete.
7723 (v8qi_UP): Remap to V8QImode.
7724 (v4hi_UP): Remap to V4HImode.
7725 (v2si_UP): Remap to V2SImode.
7726 (v2sf_UP): Remap to V2SFmode.
7727 (v1df_UP): Remap to V1DFmode.
7728 (di_UP): Remap to DImode.
7729 (df_UP): Remap to DFmode.
7730 (v16qi_UP):V16QImode.
7731 (v8hi_UP): Remap to V8HImode.
7732 (v4si_UP): Remap to V4SImode.
7733 (v4sf_UP): Remap to V4SFmode.
7734 (v2di_UP): Remap to V2DImode.
7735 (v2df_UP): Remap to V2DFmode.
7736 (ti_UP): Remap to TImode.
7737 (ei_UP): Remap to EImode.
7738 (oi_UP): Remap to OImode.
7739 (ci_UP): Map to CImode.
7740 (xi_UP): Remap to XImode.
7741 (si_UP): Remap to SImode.
7742 (sf_UP): Remap to SFmode.
7743 (hi_UP): Remap to HImode.
7744 (qi_UP): Remap to QImode.
7745 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7746 (VAR1): Build builtin name.
7747 (aarch64_init_simd_builtins): Remove dead code.
7749 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7751 * graphite-isl-ast-to-gimple.c:
7752 (set_options): New function.
7753 (scop_to_isl_ast): Add calling of set_options.
7755 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7757 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7758 (analyze_iv_to_split_insn): Don't initialize them.
7759 (get_ivts_expr): Removed.
7760 (allocate_basic_variable, insert_base_initialization): Use
7761 SET_SRC instead of *get_ivts_expr.
7762 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7764 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7766 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7767 (translate_isl_ast_for_loop): Add checking of the
7768 flag_loop_parallelize_all.
7769 (ast_build_before_for): New function.
7770 (scop_to_isl_ast): Add checking of the
7771 flag_loop_parallelize_all.
7772 * graphite-dependences.c: Move the defenition of the
7773 scop_get_dependences from graphite-optimize-isl.c to this file.
7774 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7775 (carries_deps): Add checking of the x's value.
7776 * graphite-optimize-isl.c: Move the defenition of the
7777 scop_get_dependences to graphite-dependences.c.
7778 * graphite-poly.h: Add declarations of scop_get_dependences
7781 2014-08-04 Rohit <rohitarulraj@freescale.com>
7784 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7786 (alt_reg_names): Likewise.
7787 (rs6000_dwarf_register_span): For SPE high registers, replace
7788 dwarf register numbers with GCC hard register numbers.
7789 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7790 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7791 register number for the corresponding GCC hard register number.
7792 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7793 newly added GCC hard register numbers for SPE high registers.
7794 (DWARF_FRAME_REGISTERS): Likewise.
7795 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7796 (DWARF_FRAME_REGNUM): Likewise.
7797 (FIXED_REGISTERS): Likewise.
7798 (CALL_USED_REGISTERS): Likewise.
7799 (CALL_REALLY_USED_REGISTERS): Likewise.
7800 (REG_ALLOC_ORDER): Likewise.
7801 (enum reg_class): Likewise.
7802 (REG_CLASS_NAMES): Likewise.
7803 (REG_CLASS_CONTENTS): Likewise.
7804 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7806 2014-08-04 Richard Biener <rguenther@suse.de>
7808 * gimple-fold.h (gimple_fold_builtin): Remove.
7809 * gimple-fold.c (gimple_fold_builtin): Make static.
7810 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7811 fold_stmt, not gimple_fold_builtin.
7813 2014-08-04 Martin Liska <mliska@suse.cz>
7815 * cgraph.h (csi_end_p): Removed.
7816 (csi_next): Likewise.
7817 (csi_node): Likewise.
7818 (csi_start): Likewise.
7819 (cgraph_node_in_set_p): Likewise.
7820 (cgraph_node_set_size): Likewise.
7821 (vsi_end_p): Likewise.
7822 (vsi_next): Likewise.
7823 (vsi_node): Likewise.
7824 (vsi_start): Likewise.
7825 (varpool_node_set_size): Likewise.
7826 (cgraph_node_set_nonempty_p): Likewise.
7827 (varpool_node_set_nonempty_p): Likewise.
7828 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7830 * ipa-inline-transform.c: Likewise.
7831 * ipa-utils.c (cgraph_node_set_new): Removed.
7832 (cgraph_node_set_add): Likewise.
7833 (cgraph_node_set_remove): Likewise.
7834 (cgraph_node_set_find): Likewise.
7835 (dump_cgraph_node_set): Likewise.
7836 (debug_cgraph_node_set): Likewise.
7837 (free_cgraph_node_set): Likewise.
7838 (varpool_node_set_new): Likewise.
7839 (varpool_node_set_add): Likewise.
7840 (varpool_node_set_remove): Likewise.
7841 (varpool_node_set_find): Likewise.
7842 (dump_varpool_node_set): Likewise.
7843 (free_varpool_node_set): Likewise.
7844 (debug_varpool_node_set): Likewise.
7845 * tree-emutls.c (struct tls_var_data):
7846 (emutls_index): Removed.
7847 (emutls_decl): Likewise.
7848 (gen_emutls_addr): Function implementation uses newly added
7849 hash_map<varpool_node *, tls_var_data>.
7850 (clear_access_vars): Likewise.
7851 (create_emultls_var): Likewise.
7852 (ipa_lower_emutls): Likewise.
7853 (reset_access): New function.
7855 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7857 * config/i386/i386.c (ix86_option_override_internal): Add
7858 PTA_RDRND and PTA_MOVBE for bdver4.
7860 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7861 James Greenhalgh <james.greenhalgh@arm.com>
7863 * doc/md.texi (clrsb): Document.
7864 (clz): Change reference to x into operand 1.
7866 (popcount): Likewise.
7868 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7871 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7872 move to subtarget in serial version if result is ignored.
7874 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7875 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7877 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7878 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7879 (sched_analyze_insn): Update use of try_group_insn to
7880 sched_macro_fuse_insns.
7881 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7882 arguments that are not conditional jumps.
7884 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7886 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7887 family information. Handle BTVER2 cpu with cpuid family value.
7889 2014-08-04 Tom de Vries <tom@codesourcery.com>
7891 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7892 (glibc_2_11_or_earlier): Document effective-target keywords.
7894 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7896 * ipa-devirt.c (odr_type_warn_count): Add type.
7897 (possible_polymorphic_call_targets): Set it.
7898 (ipa_devirt): Use it.
7900 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7902 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7904 * ipa-devirt.c: Include hash-map.h
7905 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7906 (clear_speculation): Break out of ...
7907 (get_class_context): ... here; speed up handling obviously useless
7909 (odr_type_warn_count, decl_warn_count): New structures.
7910 (final_warning_record): New structure.
7911 (final_warning_records): New static variable.
7912 (possible_polymorphic_call_targets): Cleanup handling of
7913 speculative info; do not build speculation when user do not care;
7914 record info about warnings when asked for.
7915 (add_decl_warning): New function.
7916 (type_warning_cmp): New function.
7917 (decl_warning_cmp): New function.
7918 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7919 (gate): Enable pass when warnings are requested.
7920 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7923 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7925 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7927 (hash_map::remove): New method.
7928 (hash_map::traverse): New method.
7929 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7930 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7931 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7932 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7933 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7934 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7937 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7939 * hash-set.h: new File.
7940 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7941 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7942 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7943 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7944 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7945 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7946 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7947 varpool.c: Use hash_set instead of pointer_set.
7949 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7951 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7953 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7955 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7956 for frame access when strict_p is false.
7958 2014-08-01 Renlin Li <renlin.li@arm.com>
7959 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7961 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7962 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7963 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7965 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7967 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7968 aarch64_mem_pair_offset.
7970 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7972 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7974 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7975 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7977 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7979 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7981 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7984 * cgraphunit.c (analyze_functions): Use get_create rather than get
7985 for decls which are clones of abstract functions.
7987 2014-08-01 Martin Liska <mliska@suse.cz>
7989 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7990 * ipa-prop.h (count_formal_params): Global function created from static.
7991 * ipa-prop.c (count_formal_params): Likewise.
7992 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7993 profiles for semantically equivalent functions.
7994 * passes.c (do_per_function): If we load body of a function
7995 during WPA, this condition should behave same.
7996 * varpool.c (ctor_for_folding): More tolerant assert for variable
7997 aliases created during WPA.
7999 2014-08-01 Martin Liska <mliska@suse.cz>
8001 * doc/invoke.texi (Options That Control Optimization): Documentation
8002 for -foptimize-strlen introduced. Optimization levels default options
8005 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8007 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8008 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8009 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8011 * stor-layout.h (min_align_of_type): New prototype.
8012 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8013 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8015 * ubsan.c: Include builtins.h.
8016 (ubsan_expand_bounds_ifn): Change return type to bool,
8018 (ubsan_expand_null_ifn): Change return type to bool, change
8019 argument to gimple_stmt_iterator *. Handle both null and alignment
8020 sanitization, take type from ckind argument's type rather than
8022 (instrument_member_call): Removed.
8023 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8024 Handle both null and alignment sanitization, don't say whole
8025 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8026 call instead of 2 argument.
8027 (instrument_null): Adjust instrument_mem_ref caller. Don't
8028 instrument calls here.
8029 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8031 * stor-layout.c (min_align_of_type): New function.
8032 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8033 Or it into SANITIZE_UNDEFINED.
8034 * doc/invoke.texi (-fsanitize=alignment): Document.
8036 2014-07-31 Andi Kleen <ak@linux.intel.com>
8038 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8040 2014-07-31 Andi Kleen <ak@linux.intel.com>
8042 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8044 (vn_reference_compute_hash): Dito.
8045 (vn_nary_op_compute_hash): Dito.
8046 (vn_phi_compute_hash): Dito.
8047 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8049 2014-07-31 Andi Kleen <ak@linux.intel.com>
8051 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8052 Rename to inchash:add_expr_commutative. Convert to inchash.
8053 (iterative_hash_hashable_expr): Rename to
8054 inchash:add_hashable_expr. Convert to inchash.
8055 (avail_expr_hash): Dito.
8057 2014-07-31 Andi Kleen <ak@linux.intel.com>
8059 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8062 2014-07-31 Andi Kleen <ak@linux.intel.com>
8064 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8066 2014-07-31 Andi Kleen <ak@linux.intel.com>
8068 * Makefile.in (OBJS): Add rtlhash.o
8069 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8070 (loc_checksum): Dito.
8071 (loc_checksum_ordered): Dito.
8072 (hash_loc_operands): Dito.
8074 (hash_loc_list): Dito.
8075 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8076 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8077 * rtlhash.c: New file.
8078 * rtlhash.h: New file.
8080 2014-07-31 Andi Kleen <ak@linux.intel.com>
8082 * inchash.h (inchash): Change inchash class to namespace.
8083 (class hash): ... Rename from inchash.
8084 (add_object): Move from macro to class template.
8085 * lto-streamer-out.c (hash_tree): Change inchash
8087 * tree.c (build_type_attribute_qual_variant): Dito.
8088 (type_hash_list): Dito.
8089 (attribute_hash_list): Dito.
8090 (iterative_hstate_expr): Rename to inchash::add_expr
8091 (build_range_type_1): Change inchash to inchash::hash
8092 and use hash::add_expr.
8093 (build_array_type_1): Dito.
8094 (build_function_type): Dito
8095 (build_method_type_directly): Dito.
8096 (build_offset_type): Dito.
8097 (build_complex_type): Dito.
8098 (make_vector_type): Dito.
8099 * tree.h (iterative_hash_expr): Dito.
8101 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8103 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8105 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8107 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8108 correct alphabetical position.
8109 (vpaddd_f64): Rewrite using builtins.
8110 (vpaddd_s64): Move to correct alphabetical position.
8113 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8116 * config/sh/sh.c (sh_legitimate_address_p,
8117 sh_legitimize_reload_address): Handle reg+reg address modes when
8118 ALLOW_INDEXED_ADDRESS is false.
8119 * config/sh/predicates.md (general_movsrc_operand,
8120 general_movdst_operand): Likewise.
8122 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8124 * config/aarch64/aarch64-builtins.c
8125 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8128 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8130 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8131 the generated mask based on BYTES_BIG_ENDIAN.
8132 (aarch64_simd_check_vect_par_cnst_half): New.
8133 * config/aarch64/aarch64-protos.h
8134 (aarch64_simd_check_vect_par_cnst_half): New.
8135 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8136 the check out to aarch64_simd_check_vect_par_cnst_half.
8137 (vect_par_cnst_lo_half): Likewise.
8138 * config/aarch64/aarch64-simd.md
8139 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8140 (move_hi_quad_<mode>): Always generate a low mask.
8142 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8144 * doc/invoke.texi (AVR Options): Add documentation about
8145 __AVR_DEVICE_NAME__ built-in macro.
8147 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8150 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8151 constraints are satisfied.
8152 (<shift>di3_neon): Likewise.
8154 2014-07-31 Richard Biener <rguenther@suse.de>
8156 PR tree-optimization/61964
8157 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8158 by structural equality.
8160 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8162 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8163 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8164 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8166 * gcc.c (sanitize_spec_function): Support new option.
8167 (SANITIZER_SPEC): Remove now redundant check.
8168 * opts.c (common_handle_option): Support new option.
8169 (finish_options): Check for incompatibilities.
8170 * toplev.c (process_options): Split userspace-specific checks.
8172 2014-07-31 Richard Biener <rguenther@suse.de>
8174 * lto-streamer.h (struct output_block): Remove global.
8175 (struct data_in): Remove labels, num_named_labels and
8177 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8178 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8180 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8183 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8184 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8185 (isolate_path): New argument to avoid inserting a trap.
8186 (find_implicit_erroneous_behaviour): Handle returning the address
8187 of a local variable.
8188 (find_explicit_erroneous_behaviour): Likewise.
8190 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8193 * toplev.c (init_random_seed): Move piece of code never called to
8195 (set_random_seed): see above.
8197 2014-07-31 Tom de Vries <tom@codesourcery.com>
8199 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8201 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8203 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8204 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8206 2014-07-31 Richard Biener <rguenther@suse.de>
8208 * data-streamer.h (streamer_write_data_stream): Declare here,
8210 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8211 * lto-cgraph.c (lto_output_node): Adjust.
8212 (lto_output_varpool_node): Likewise.
8213 * data-streamer-out.c (streamer_string_index): Likewise.
8214 (streamer_write_data_stream, lto_append_block): Move from ...
8215 * lto-section-out.c (lto_output_data_stream,
8216 lto_append_block): ... here.
8218 2014-07-30 Mike Stump <mikestump@comcast.net>
8220 * configure.ac: Also check for popen.
8221 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8222 * configure: Regenerate.
8223 * config.in: Regenerate.
8225 2014-07-30 Martin Jambor <mjambor@suse.cz>
8227 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8228 parameter to gimple.
8230 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8232 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8233 address as second parameter to __tpf_eh_return routine.
8235 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8237 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8240 2014-07-30 Tom Tromey <tromey@redhat.com>
8243 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8244 * doc/extend.texi (Type Attributes): Document designated_init
8247 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8249 * graphite-isl-ast-to-gimple.c:
8250 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8251 (gcc_expression_from_isl_expression): Pass type to
8252 gcc_expression_from_isl_ast_expr_id.
8254 2014-07-30 Richard Biener <rguenther@suse.de>
8256 * lto-streamer.h (lto_write_data): New function.
8257 * langhooks.c (lhd_append_data): Do not free block.
8258 * lto-section-out.c (lto_write_data): New function writing
8259 raw data to the current section.
8260 (lto_write_stream): Adjust for langhook semantic change.
8261 (lto_destroy_simple_output_block): Write header directly.
8262 * lto-opts.c (lto_write_options): Write options directly.
8263 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8264 (lto_output_toplevel_asms): Likewise.
8265 (copy_function_or_variable): Copy data directly.
8266 (write_global_references): Output index table directly.
8267 (lto_output_decl_state_refs): Likewise.
8268 (write_symbol): Write data directly.
8269 (produce_symtab): Adjust.
8270 (produce_asm_for_decls): Output header and refs directly.
8272 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8274 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8275 to speculative_targets
8276 (get_class_context): Fix handling of contextes without outer type;
8277 avoid matching non-polymorphic types in LTO.
8278 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8279 parameter to speculative_targetsp; handle speculation.
8280 (dump_possible_polymorphic_call_targets): Update dumping.
8282 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8284 * common.opt (Wodr): Enable by default.
8286 2014-07-29 Olivier Hainque <hainque@adacore.com>
8288 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8290 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8293 * gengtype.c (strtoken): New function.
8294 (create_user_defined_type): Replace strtok with strtoken.
8296 2014-07-29 Nathan Sidwell <nathan@acm.org>
8298 * gcov-io.c (gcov_var): Make hidden.
8299 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8300 (gcov_do_dump): Declare.
8301 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8303 2014-07-29 Martin Jambor <mjambor@suse.cz>
8305 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8306 parameter to gimple.
8307 (sra_modify_assign): Likewise.
8309 2014-07-29 Richard Biener <rguenther@suse.de>
8312 * expr.c (expand_expr_real_2): Revert last change.
8314 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8316 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8317 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8318 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8320 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8321 (contains_type_p): Forward declare.
8322 (polymorphic_call_target_hasher::hash): Hash speculative info.
8323 (polymorphic_call_target_hasher::equal): Compare speculative info.
8324 (get_class_context): Handle speuclation.
8325 (contains_type_p): Update.
8326 (get_polymorphic_call_info_for_decl): Update.
8327 (walk_ssa_copies): Break out from ...
8328 (get_polymorphic_call_info): ... here; set speculative context
8330 * ipa-prop.c (ipa_write_indirect_edge_info,
8331 ipa_read_indirect_edge_info): Stream speculative context.
8332 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8333 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8334 SPECULATIVE_MAYBE_DERIVED_TYPE).
8335 (possible_polymorphic_call_targets overriders): Update.
8336 (dump_possible_polymorphic_call_targets overriders): Update.
8337 (dump_possible_polymorphic_call_target_p overriders): Update.
8339 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8341 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8342 ipa-devirt path; fix thinko there.
8344 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8346 * config/i386/i386.c (ix86_return_in_memory): Replace one
8347 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8349 2014-07-28 Marek Polacek <polacek@redhat.com>
8351 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8353 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8355 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8356 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8357 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8358 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8359 (USE_LD_AS_NEEDED): Likewise.
8360 (ASM_APP_ON): Likewise.
8361 (ASM_APP_OFF): Likewise.
8362 (TARGET_POSIX_IO): Likewise.
8363 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8364 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8365 (USE_LD_AS_NEEDED): Likewise.
8366 (ASM_APP_ON): Likewise.
8367 (ASM_APP_OFF): Likewise.
8368 (TARGET_POSIX_IO): Likewise.
8370 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8373 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8374 operators other than the equality operators.
8376 2014-07-28 Richard Biener <rguenther@suse.de>
8379 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8380 sure to register SImode ones, not only >= word_mode ones.
8381 * expr.c (expand_expr_real_2): When expanding -ftrapv
8382 binops do not use OPTAB_LIB_WIDEN.
8384 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8387 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8388 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8389 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8390 inserting them in the insn stream.
8392 2014-07-28 Marek Polacek <polacek@redhat.com>
8395 * common.opt (Wodr): Add Var.
8397 2014-07-28 Richard Biener <rguenther@suse.de>
8399 PR tree-optimization/61921
8400 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8401 if there is a varpool node before dereferencing it.
8403 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8405 * graphite-sese-to-poly.c:
8406 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8407 id of the pbb), which contains pointer to the pbb1.
8409 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8411 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8413 * graphite-isl-ast-to-gimple.c:
8414 (graphite_create_new_guard): New function.
8415 (translate_isl_ast_node_if): New function.
8416 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8418 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8420 2014-07-27 Anthony Green <green@moxielogic.com>
8422 * config.gcc: Add moxie-*-moxiebox* configuration.
8423 * config/moxie/moxiebox.h: New file.
8425 2014-07-26 Andrew Pinski <apinski@cavium.com>
8427 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8428 from the read only register.
8430 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8432 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8433 as the allocation class if it isn't likely to be spilled.
8435 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8437 * rtl.h (tls_referenced_p): Declare.
8438 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8439 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8440 (mips_cannot_force_const_mem): Use tls_referenced_p.
8441 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8442 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8443 instead of pa_tls_referenced_p.
8444 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8445 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8446 (pa_legitimate_constant_p): Likewise.
8447 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8448 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8449 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8450 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8451 rs6000_tls_referenced_p.
8452 (rs6000_tls_symbol_ref_1): Delete.
8454 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8457 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8458 Optimize inverse of a VEC_CONCAT.
8460 2014-07-25 Xinliang David Li <davidxl@google.com>
8462 * params.def: New parameter.
8463 * coverage.c (get_coverage_counts): Check new flag.
8464 (coverage_compute_profile_id): Check new flag.
8465 (coverage_begin_function): Check new flag.
8466 (coverage_end_function): Check new flag.
8467 * value-prof.c (coverage_node_map_initialized_p): New function.
8468 (init_node_map): Populate map with all functions.
8469 * doc/invoke.texi: Document new parameter.
8471 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8472 Richard Biener <rguenther@suse.de>
8474 * lto-streamer-out.c (struct sccs): Turn to ...
8475 (class DFS): ... this one; refactor the DFS walk so it can
8476 be re-done on per-SCC basis.
8477 (DFS::DFS): New constructor.
8478 (DFS::~DFS): New destructor.
8479 (hash_tree): Add new MAP argument holding in-SCC hash values;
8480 remove POINTER_TYPE hashing hack.
8481 (scc_entry_compare): Rename to ...
8482 (DFS::scc_entry_compare): ... this one.
8483 (hash_scc): Rename to ...
8484 (DFS::hash_scc): ... this one; pass output_block instead
8485 of streamer_cache; work harder to get unique and stable SCC
8487 (DFS_write_tree): Rename to ...
8488 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8489 (lto_output_tree): Update.
8491 2014-07-25 Andi Kleen <ak@linux.intel.com>
8493 * lto-streamer-out.c (hash_tree): Convert to inchash.
8495 2014-07-25 Andi Kleen <ak@linux.intel.com>
8497 * tree.c (build_type_attribute_qual_variant): Use inchash.
8498 (type_hash_list): Dito.
8499 (attribute_hash_list): Dito
8500 (iterative_hstate_expr): Dito.
8501 (iterative_hash_expr): Dito.
8502 (build_range_type_1): Dito.
8503 (build_array_type_1): Dito.
8504 (build_function_type): Dito.
8505 (build_method_type_directly): Dito.
8506 (build_offset_type): Dito.
8507 (build_complex_type): Dito.
8508 (make_vector_type): Dito.
8509 * tree.h (iterative_hash_expr): Add compat wrapper.
8510 (iterative_hstate_expr): Add.
8512 2014-07-25 Andi Kleen <ak@linux.intel.com>
8514 * Makefile.in (OBJS): Add inchash.o.
8515 (PLUGIN_HEADERS): Add inchash.h.
8516 * ipa-devirt.c: Include inchash.h.
8517 * lto-streamer-out.c: Dito.
8518 * tree-ssa-dom.c: Dito.
8519 * tree-ssa-pre.c: Dito.
8520 * tree-ssa-sccvn.c: Dito.
8521 * tree-ssa-tail-merge.c: Dito.
8523 * tree.c (iterative_hash_hashval_t): Move to ...
8524 (iterative_hash_host_wide_int): Move to ...
8525 * inchash.c: Here. New file.
8526 * tree.h (iterative_hash_hashval_t): Move to ...
8527 (iterative_hash_host_wide_int): Move to ...
8528 * inchash.h: Here. New file.
8530 2014-07-25 Richard Biener <rguenther@suse.de>
8534 * fold-const.c (native_encode_int): Add and handle offset
8535 parameter to do partial encodings of expr.
8536 (native_encode_fixed): Likewise.
8537 (native_encode_real): Likewise.
8538 (native_encode_complex): Likewise.
8539 (native_encode_vector): Likewise.
8540 (native_encode_string): Likewise.
8541 (native_encode_expr): Likewise.
8542 * fold-const.c (native_encode_expr): Add offset parameter
8544 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8545 (fold_ctor_reference): Handle all reads from tcc_constant
8548 2014-07-25 Richard Biener <rguenther@suse.de>
8550 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8553 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8555 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8557 2014-07-24 Kyle McMartin <kyle@redhat.com>
8559 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8561 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8563 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8565 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8567 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8568 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8569 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8571 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8573 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8574 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8575 aggregate types. Instead, *all* aggregate types, except for single-
8576 element or homogeneous float/vector aggregates, are quadword-aligned
8577 if required by their type alignment. Issue -Wpsabi note when a type
8578 is now treated differently than before.
8580 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8582 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8583 does not fit fully into floating-point registers, and there is still
8584 space in the register parameter area, use GPRs to pass those parts
8585 of the argument. Issue -Wpsabi note if any parameter is now treated
8586 differently than before.
8587 (rs6000_arg_partial_bytes): Update.
8589 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8591 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8593 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8595 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8596 * toplev.c (initialize_rtl): Don't use it. Move previously
8597 "language-dependent" calls to...
8598 (backend_init): ...here.
8599 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8600 Assert that RTL initialization hasn't happend yet.
8602 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8604 PR rtl-optimization/61629
8605 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8606 they have already been initialized.
8608 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8611 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8612 DECL_INCOMING_RTL and entry_parm.
8613 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8614 * calls.c (load_register_parameters): Likewise argument values.
8615 (emit_library_call_value_1, store_one_arg): Likewise argument
8617 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8619 * explow.c (validize_mem): Modify the argument in-place.
8621 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8623 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8624 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8626 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8628 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8629 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8631 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8633 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8634 (aarch64_save_callee_saves): New parameter "skip_wb".
8635 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8637 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8639 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8641 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8643 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8645 * graphite-isl-ast-to-gimple.c:
8646 (graphite_create_new_loop): Add calling of isl_id_free to properly
8647 decrement reference counts.
8649 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8651 2014-07-24 Martin Liska <mliska@suse.cz>
8652 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8654 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8655 (rs6000_code_end): Likewise.
8657 2014-07-24 Martin Liska <mliska@suse.cz>
8659 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8660 symtab_node funtion used.
8661 (rs6000_xcoff_declare_object_name): Likewise.
8663 2014-07-24 Martin Liska <mliska@suse.cz>
8665 * cgraphunit.c (compile): Correct function used.
8667 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8669 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8672 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8675 * varasm.c (bss_initializer_p): Handle offlined ctors.
8676 (align_variable, get_variable_align): Likewise.
8677 (make_decl_one_only): Likewise.
8678 (default_binds_local_p_1): Likewise.
8679 (decl_binds_to_current_def_p): Likewise.
8680 (get_variable_section): Get constructor if it is offlined.
8681 (assemble_variable_contents): Sanity check that the caller
8682 streamed in the ctor in LTO.
8684 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8686 * graphite-isl-ast-to-gimple.c:
8687 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8688 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8689 isl_ast_op_pdiv_r to the different case.
8691 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8693 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8696 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8697 when flag_errno_math is on.
8699 2014-07-24 Martin Liska <mliska@suse.cz>
8701 * cgraph.h (varpool_node):
8702 (availability get_availability (void)):
8703 created from cgraph_variable_initializer_availability
8704 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8705 created from: cgraph_variable_initializer_availability
8706 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8707 (void finalize_named_section_flags (void)):
8708 created from varpool_finalize_named_section_flags
8709 (bool assemble_decl (void)): created from varpool_assemble_decl
8710 (void analyze (void)): created from varpool_analyze_node
8711 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8712 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8713 (void remove_initializer (void)): created from varpool_remove_initializer
8714 (tree get_constructor (void)): created from varpool_get_constructor
8715 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8716 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8717 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8718 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8719 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8720 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8721 (static bool output_variables (void)): created from varpool_output_variables
8722 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8723 created from varpool_extra_name_alias
8724 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8725 (static void dump_varpool (FILE *f)): created from dump_varpool
8726 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8727 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8728 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8729 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8730 (void assemble_aliases (void)): created from assemble_aliases
8732 2014-07-24 Martin Liska <mliska@suse.cz>
8734 * cgraph.h (symtab_node):
8735 (void register_symbol (void)): created from symtab_register_node
8736 (void remove (void)): created from symtab_remove_node
8737 (void dump (FILE *f)): created from dump_symtab_node
8738 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8739 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8740 (struct ipa_ref *add_reference (symtab_node *referred_node,
8741 enum ipa_ref_use use_type)): created from add_reference
8742 (struct ipa_ref *add_reference (symtab_node *referred_node,
8743 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8744 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8745 gimple stmt)): created from maybe_add_reference
8746 (bool semantically_equivalent_p (symtab_node *target)): created from
8747 symtab_semantically_equivalent_p
8748 (void remove_from_same_comdat_group (void)): created from
8749 remove_from_same_comdat_group
8750 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8751 symtab_add_to_same_comdat_group
8752 (void dissolve_same_comdat_group_list (void)): created from
8753 symtab_dissolve_same_comdat_group_list
8754 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8755 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8756 created from symtab_alias_ultimate_target
8757 (inline symtab_node *next_defined_symbol (void)): created from
8758 symtab_next_defined_symbol
8759 (bool resolve_alias (symtab_node *target)): created from
8760 symtab_resolve_alias
8761 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8762 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8763 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8764 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8765 (void set_section (const char *section)): created from set_section_1
8766 (enum availability get_availability (void)): created from symtab_node_availability
8767 (void make_decl_local (void)): created from symtab_make_decl_local
8768 (bool real_symbol_p (void)): created from symtab_read_node
8769 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8770 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8771 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8772 symtab_in_same_comdat_p;
8773 (bool address_taken_from_non_vtable_p (void)): created from
8774 address_taken_from_non_vtable_p
8775 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8776 (static void dump_table (FILE *)): created from dump_symtab
8777 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8778 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8779 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8780 symtab_used_from_object_file_p
8781 (void dump_base (FILE *)): created from dump_symtab_base
8782 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8783 (void unregister (void)): created from symtab_unregister_node
8784 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8785 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8786 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8787 symtab_nonoverwritable_alias_1
8788 * cgraph.h (cgraph_node):
8789 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8790 created from cgraph_remove_node_and_inline_clones
8791 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8792 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8793 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8794 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8795 created from cgraph_function_node
8796 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8797 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8798 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8799 created from cgraph_create_clone
8800 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8801 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8802 created from cgraph_create_virtual_clone
8803 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8804 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8805 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8806 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8807 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8808 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8809 created from cgraph_function_version_info
8810 (struct cgraph_function_version_info *insert_new_function_version (void)):
8811 created from insert_new_cgraph_node_version
8812 (struct cgraph_function_version_info *function_version (void)): created from
8813 get_cgraph_node_version
8814 (void analyze (void)): created from analyze_function
8815 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8816 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8817 tree real_alias) cgraph_add_thunk
8818 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8819 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8820 created from cgraph_function_or_thunk_node
8821 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8822 created from expand_thunk
8823 (void reset (void)): created from cgraph_reset_node
8824 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8825 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8826 (void remove (void)): created from cgraph_remove_node
8827 (void dump (FILE *f)): created from dump_cgraph_node
8828 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8829 (bool get_body (void)): created from cgraph_get_body
8830 (void release_body (void)): created from cgraph_release_function_body
8831 (void unnest (void)): created from cgraph_unnest_node
8832 (void make_local (void)): created from cgraph_make_node_local
8833 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8834 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8835 gcov_type count, int freq)): created from cgraph_create_edge
8836 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8837 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8838 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8839 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8840 created from cgraph_create_edge_including_clones
8841 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8842 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8843 (void remove_callers (void)): created from cgraph_node_remove_callers
8844 (void remove_callees (void)): created from cgraph_node_remove_callees
8845 (enum availability get_availability (void)): created from cgraph_function_body_availability
8846 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8847 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8848 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8849 (void call_duplication_hooks (cgraph_node *node2)): created from
8850 cgraph_call_node_duplication_hooks
8851 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8852 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8853 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8854 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8855 (void call_function_insertion_hooks (void)):
8856 created from cgraph_call_function_insertion_hooks
8857 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8858 (bool local_p (void)): created from cgraph_local_node
8859 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8860 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8861 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8862 (inline bool only_called_directly_or_aliased_p (void)):
8863 created from cgraph_only_called_directly_or_aliased_p
8864 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8865 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8866 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8867 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8868 (bool can_remove_if_no_direct_calls_p (void)):
8869 created from cgraph_can_remove_if_no_direct_calls_p
8870 (inline bool has_gimple_body_p (void)):
8871 created from cgraph_function_with_gimple_body_p
8872 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8873 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8874 (static inline void debug_cgraph (void)): created from debug_cgraph
8875 (static void record_function_versions (tree decl1, tree decl2)):
8876 created from record_function_versions
8877 (static void delete_function_version (tree decl)):
8878 created from delete_function_version
8879 (static void add_new_function (tree fndecl, bool lowered)):
8880 created from cgraph_add_new_function
8881 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8882 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8883 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8884 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8885 (static cgraph_node *get_for_asmname (tree asmname)):
8886 created from cgraph_node_for_asm
8887 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8888 created from cgraph_same_body_alias
8889 (static bool used_from_object_file_p_worker (cgraph_node *node,
8890 void *): new function
8891 (static bool non_local_p (cgraph_node *node, void *)):
8892 created from cgraph_non_local_node_p_1
8893 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8894 created from verify_cgraph
8895 (static bool make_local (cgraph_node *node, void *)):
8896 created from cgraph_make_node_local
8897 (static cgraph_node *create_alias (tree alias, tree target)):
8898 created from cgraph_create_function_alias
8899 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8900 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8901 created from cgraph_create_edge_1
8902 * cgraph.h (varpool_node):
8903 (void remove (void)): created from varpool_remove_node
8904 (void dump (FILE *f)): created from dump_varpool_node
8906 2014-07-24 Richard Biener <rguenther@suse.de>
8909 * tree-ssa-structalias.c (create_variable_info_for_1):
8910 Use varpool_get_constructor.
8911 (create_variable_info_for): Likewise.
8913 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8915 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8916 subtract outgoing area size when restoring stack_pointer_rtx.
8918 2014-07-24 Nick Clifton <nickc@redhat.com>
8920 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8921 that operations are taking place in parallel.
8922 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8924 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8926 * omp-low.c (extract_omp_for_data): Add missing break statement.
8928 2014-07-24 Richard Biener <rguenther@suse.de>
8930 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8931 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8932 and adjust MOVE_RATIO query accordingly.
8933 (estimate_num_insns): Adjust callers.
8934 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8935 * ipa-cp.c (gather_context_independent_values,
8936 estimate_local_effects): Likewise.
8937 * ipa-split.c (consider_split): Likewise.
8939 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8941 * config/i386/driver-i386.c: Remove names of unused arguments and
8942 unnecessary unused attributes.
8943 * config/i386/host-mingw32.c: Likewise.
8944 * config/i386/i386.c: Likewise.
8945 * config/i386/winnt-stubs.c: Likewise.
8946 * config/i386/winnt.c: Likewise.
8948 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8950 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8951 (aarch64_gen_loadwb_pair): New helper function.
8952 (aarch64_expand_epilogue): Simplify code using new helper functions.
8953 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8957 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8958 (aarch64_gen_storewb_pair): New helper function.
8959 (aarch64_expand_prologue): Simplify code using new helper functions.
8960 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8962 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8964 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8965 Rename to aarch64_save_callee_saves, remove restore code.
8966 (aarch64_restore_callee_saves): New function.
8968 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8970 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8971 (aarch64_save_callee_saves): New function to handle reg save
8972 for both core and vectore regs.
8974 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8976 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8977 (aarch64_gen_store_pair): New helper function.
8978 (aarch64_save_or_restore_callee_save_registers)
8979 (aarch64_save_or_restore_fprs): Use new helper functions.
8981 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8983 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8984 (aarch64_save_or_restore_callee_save_registers)
8985 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8987 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8989 * config/aarch64/aarch64.c
8990 (aarch64_save_or_restore_callee_save_registers)
8991 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8993 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8995 * config/aarch64/aarch64.c
8996 (aarch64_save_or_restore_callee_save_registers)
8997 (aarch64_save_or_restore_fprs): Remove 'increment'.
8999 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9001 * config/aarch64/aarch64.c
9002 (aarch64_save_or_restore_callee_save_registers)
9003 (aarch64_save_or_restore_fprs): Use register offset in
9004 cfun->machine->frame.reg_offset.
9006 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9008 * config/aarch64/aarch64.c
9009 (aarch64_save_or_restore_callee_save_registers)
9010 (aarch64_save_or_restore_fprs): Remove base_rtx.
9012 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9014 * config/aarch64/aarch64.c
9015 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9016 to 'start_offset'. Remove local variable 'start_offset'.
9018 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9020 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9021 type to HOST_WIDE_INT.
9023 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9025 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9026 (aarch64_save_or_restore_fprs)
9027 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9029 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9031 * config/arm/t-rtems-eabi: Add
9032 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9033 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9034 mbig-endian/mthumb/march=armv7-r, and
9035 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9038 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9039 Chris Johns <chrisj@rtems.org>
9040 Joel Sherrill <joel.sherrill@oarcorp.com>
9042 * config.gcc: Add nios2-*-rtems*.
9043 * config/nios2/rtems.h: New file.
9044 * gcc/config/nios2/t-rtems: New file.
9046 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9049 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9050 constant numbers, not general constants.
9051 (rs6000_expand_vector_init): Ditto.
9053 2014-07-23 Nathan Sidwell <nathan@acm.org>
9055 * gcov-tool.c (gcov_list): Declare here.
9056 (set_gcov_list): Remove.
9057 (gcov_output_files): Set gcov_list directly.
9059 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9061 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9063 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9065 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9066 callee-saved registers are available for padding purpose
9067 and r3 is not mandatory, then prefer use those callee-saved
9070 2014-07-23 Richard Biener <rguenther@suse.de>
9072 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9073 * combine.c: Include statistics.h and params.h.
9074 (combine_instructions): Guard three and four insn combines
9075 with max-combine-insns value. Record statistics for combines
9077 * doc/invoke.texi (max-combine-insns): Document new param.
9079 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9081 * graphite-isl-ast-to-gimple.c:
9082 (translate_isl_ast_node_block): New function.
9083 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9085 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9086 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9088 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9090 * graphite-isl-ast-to-gimple.c:
9091 (get_max_schedule_dimensions): New function.
9092 (extend_schedule): Likewise.
9093 (generate_isl_schedule): Add calling of extend_schedule and
9094 get_max_schedule_dimensions.
9096 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9099 (case UNSPEC): Handle UNSPEC_RBIT.
9101 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9103 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9104 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9106 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9108 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9110 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9112 * graphite-isl-ast-to-gimple.c:
9113 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9115 (build_iv_mapping): New function.
9116 (translate_isl_ast_node_user): Likewise.
9117 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9119 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9120 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9121 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9123 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9126 * config/arm/arm.md (setmem): New pattern.
9127 * config/arm/arm-protos.h (struct tune_params): New fields.
9128 (arm_gen_setmem): New prototype.
9129 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9130 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9131 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9132 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9133 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9134 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9135 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9136 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9137 (arm_const_inline_cost): New function.
9138 (arm_block_set_max_insns): New function.
9139 (arm_block_set_non_vect_profit_p): New function.
9140 (arm_block_set_vect_profit_p): New function.
9141 (arm_block_set_unaligned_vect): New function.
9142 (arm_block_set_aligned_vect): New function.
9143 (arm_block_set_unaligned_non_vect): New function.
9144 (arm_block_set_aligned_non_vect): New function.
9145 (arm_block_set_vect, arm_gen_setmem): New functions.
9147 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9149 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9151 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9154 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9155 out of #ifdef __OPTIMIZE__.
9157 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9159 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9160 different trapping status if -fnon-call-exceptions is enabled.
9162 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9164 * expr.c (store_field): Handle VOIDmode for calls that return values
9165 in multiple locations.
9167 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9169 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9170 (altivec_vsldoi_<mode>): Likewise.
9172 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9174 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9175 to the number of characters in the line.
9177 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9179 * graphite-isl-ast-to-gimple.c: Add using of
9180 build_nonstandard_integer_type instead of int128_integer_type_node.
9182 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9184 * toplev.c (output_stack_usage): Adjust the location of the warning.
9186 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9188 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9189 (*membar_storeload): Disable for LEON3.
9191 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9193 PR rtl-optimization/61461
9194 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9196 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9199 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9200 Fix instruction constraint.
9201 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9203 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9205 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9207 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9209 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9210 GNU coding standards.
9211 (nds32_register_move_cost): Likewise.
9212 (nds32_memory_move_cost): Likewise.
9213 (nds32_address_cost): Likewise.
9215 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9217 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9219 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9221 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9222 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9223 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9224 (HAVE_sync_compare_and_swapqi): Define.
9225 (HAVE_sync_compare_and_swaphi): Likewise.
9226 (HAVE_sync_compare_and_swapsi): Likewise.
9228 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9230 * config/mips/p5600.md: Add missing cpu tests.
9232 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9234 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9235 (vmla_f64): Likewise.
9236 (vfms_f64): Likewise.
9237 (vmls_f64): Likewise.
9239 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9241 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9242 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9244 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9246 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9247 (vmlal_high_lane_s32): Likewise.
9248 (vmlal_high_lane_u16): Likewise.
9249 (vmlal_high_lane_u32): Likewise.
9250 (vmlsl_high_lane_s16): Likewise.
9251 (vmlsl_high_lane_s32): Likewise.
9252 (vmlsl_high_lane_u16): Likewise.
9253 (vmlsl_high_lane_u32): Likewise.
9255 2014-07-17 Terry Guo <terry.guo@arm.com>
9257 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9258 (alus_reg): Renamed to alus_sreg.
9259 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9260 from alu_reg to alu_sreg. Change type of dsp instructions from
9261 alu_reg to alu_dsp_reg.
9262 * config/arm/thumb1.md: Likewise.
9263 * config/arm/thumb2.md: Likewise.
9264 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9265 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9266 with alu_sreg and alus_sreg.
9267 * config/arm/arm1026ejs.md (alu_op): Likewise.
9268 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9269 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9270 * config/arm/fa526.md (526_alu_op): Likewise.
9271 * config/arm/fa606te.md (606te_alu_op): Likewise.
9272 * config/arm/fa626te.md (626te_alu_op): Likewise.
9273 * config/arm/fa726te.md (726te_alu_op): Likewise.
9274 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9275 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9276 alu_sreg, alu_dsp_reg and alus_sreg.
9277 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9278 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9279 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9280 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9281 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9282 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9283 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9284 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9285 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9286 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9287 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9288 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9289 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9290 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9291 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9292 alus_reg to alus_sreg.
9294 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9296 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9299 2014-07-17 Richard Biener <rguenther@suse.de>
9301 PR rtl-optimization/61801
9302 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9303 don't set reg_pending_barrier if it appears in a debug-insn.
9305 2014-07-16 DJ Delorie <dj@redhat.com>
9307 * config/rx/rx.c (rx_option_override): Fix alignment values.
9308 (rx_align_for_label): Likewise.
9310 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9313 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9314 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9315 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9317 (cris_print_index, cris_print_operand, cris_constant_index_p)
9318 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9319 (cris_address_cost): Ditto last CONSTANT_P.
9320 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9321 callers changed. Yield cris_offsettable_symbol for non-PIC
9322 constant symbolic expressions including labels. Yield cris_unspec
9324 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9325 target to pic_offset_table_rtx for calls that will likely go
9326 through PLT, const0_rtx when they can't. All callers changed.
9327 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9328 symbolic expressions to be PICified. Remove second, redundant,
9329 assert on can_create_pseudo_p returning non-zero. Use
9330 replace_equiv_address_nv, not replace_equiv_address, for final
9332 * config/cris/cris.md ("movsi"): Move variable t to pattern
9333 toplevel. Adjust assert for new cris_symbol_type member. Use
9334 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9335 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9337 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9338 ("call", "call_value"): Use second incoming operand as a marker
9339 for pic-offset-table-register being used.
9340 ("*expanded_call_non_v32", "*expanded_call_v32")
9341 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9342 second incoming operand to CALL, match cris_call_type_marker.
9343 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9344 ("*expanded_call_side"): Ditto. Fix typo in comment.
9345 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9347 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9348 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9349 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9350 users changed. Add members cris_offsettable_symbol and cris_unspec.
9351 (cris_symbol_type): Rename from cris_pic_symbol_type.
9352 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9354 * config/cris/cris-protos.h (cris_symbol_type_of,
9355 cris_expand_pic_call_address): Adjust prototypes.
9356 (cris_legitimate_constant_p): New prototype.
9358 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9359 an existing tmake_file. Don't add t-slibgcc and t-linux.
9361 2014-07-17 Jason Merrill <jason@redhat.com>
9364 * symtab.c (symtab_remove_from_same_comdat_group): Also
9365 set_comdat_group to NULL_TREE.
9366 (verify_symtab): Fix diagnostic.
9368 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9371 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9373 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9375 Support location tracking for built-in macro tokens
9376 * input.h (is_location_from_builtin_token): New function declaration.
9377 * input.c (is_location_from_builtin_token): New function definition.
9378 * toplev.c (general_init): Tell libcpp what the pre-defined
9379 spelling location for built-in tokens is.
9381 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9383 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9384 on the FUNCTION_DECL.
9386 2014-07-16 Richard Biener <rguenther@suse.de>
9389 * doc/extend.texi (always_inline): Clarify.
9391 2014-07-15 Eric Christopher <echristo@gmail.com>
9393 * doc/invoke.texi (Link Options): Document -z option.
9395 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9397 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9398 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9400 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9402 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9404 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9406 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9407 varpool_assemble_decl.
9408 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9411 2014-07-15 Michael Matz <matz@suse.de>
9413 PR rtl-optimization/61772
9414 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9416 2014-07-15 Richard Biener <rguenther@suse.de>
9418 * opts.c (default_options_table): Disable bit-ccp at -Og.
9420 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9422 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9424 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9426 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9427 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9428 call langhook for unknown declaration.
9429 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9430 * tree.h (DECL_ARGUMENTS): Update.
9431 * print-tree.c (print_node): Update.
9432 * tree-core.h (tree_decl_non_common): Remove arguments.
9433 (tree_function_decl): Add arguments.
9435 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9437 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9439 2014-07-14 Richard Biener <rguenther@suse.de>
9441 PR tree-optimization/61779
9442 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9443 simplifying a condition.
9445 2014-07-14 Richard Biener <rguenther@suse.de>
9447 * builtins.c (c_strlen): Make only_value == 2 really only
9448 affect warning generation.
9450 2014-07-14 Richard Biener <rguenther@suse.de>
9452 PR tree-optimization/61757
9453 PR tree-optimization/61783
9454 PR tree-optimization/61787
9455 * tree-ssa-dom.c (record_equality): Revert canonicalization
9456 change and add comment.
9457 (propagate_rhs_into_lhs): Revert previous fix, removing
9458 loop depth restriction again.
9460 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9462 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9463 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9464 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9465 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9466 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9467 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9468 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9470 2014-07-14 Richard Biener <rguenther@suse.de>
9472 * cgraph.h (decl_in_symtab_p): Make inline.
9474 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9477 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9480 * config/i386/i386.c (classify_argument): Don't merge classes above
9483 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9485 * cgraph.h (symtab_node): Add nonzero_address.
9486 (decl_in_symtab_p): Break out from ...
9487 (symtab_get_node): ... here.
9488 * fold-const.c: Include cgraph.h
9489 (tree_single_nonzero_warnv_p): Use symtab to determine
9490 if symbol is non-zero.
9491 * symtab.c (symtab_node::nonzero_address): New method.
9493 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9495 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9496 forgotten in previous commit.
9498 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9500 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9502 * ipa-devirt.c: Include stor-layout.h and intl.h
9503 (odr_subtypes_equivalent_p): New function.
9504 (warn_odr): New function.
9505 (warn_type_mismatch): New function.
9506 (odr_types_equivalent_p): New function.
9507 (add_type_duplicate): Use it.
9508 * common.opt (Wodr): New flag.
9509 * doc/invoke.texi (Wodr): Document new warning.
9511 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9513 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9514 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9515 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9516 (varpool_get_constructor): Push CTORS_IN timevar.
9517 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9519 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9521 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9522 Remove VOID_FTYPE_PUSHORT.
9523 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9524 Change code to USHORT_FTYPE_VOID.
9525 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9526 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9527 (ix86_atomic_assign_expand_fenv): Update for
9528 __builtin_ia32_fnstsw changes.
9529 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9530 (fnstsw): Change operand 0 to nonimmediate operand.
9532 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9534 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9535 (varpool_get_constructor): New function.
9536 (varpool_ctor_useable_for_folding_p): Break out from ...
9537 (ctor_for_folding): ... here; use varpool_get_constructor.
9538 (varpool_assemble_decl): Likewise.
9539 * lto-streamer.h (struct output_block): Turn cgraph_node
9541 (lto_input_variable_constructor): Declare.
9542 * ipa-visibility.c (function_and_variable_visibility): Use
9543 varpool_get_constructor.
9544 * cgraph.h (varpool_get_constructor): Declare.
9545 (varpool_ctor_useable_for_folding_p): New function.
9546 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9547 parameter; return error_mark_node for non-trivial constructors.
9548 (lto_write_tree_1, DFS_write_tree): Update use of
9549 get_symbol_initial_value.
9550 (output_function): Update initialization of symbol.
9551 (output_constructor): New function.
9552 (copy_function): Rename to ..
9553 (copy_function_or_variable): ... this one; handle vars too.
9554 (lto_output): Output variable sections.
9555 * lto-streamer-in.c (input_constructor): New function.
9556 (lto_read_body): Rename from ...
9557 (lto_read_body_or_constructor): ... this one; handle vars too.
9558 (lto_input_variable_constructor): New function.
9559 * ipa-prop.c (ipa_prop_write_jump_functions,
9560 ipa_prop_write_all_agg_replacement): Update.
9561 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9562 (output_cgraph_opt_summary): Set symbol to NULL.
9564 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9566 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9567 non-polymorphic types.
9568 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9569 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9570 of types is not polymorphic.
9572 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9574 * lra-constraints.c (remove_inheritance_pseudos): Process
9575 destination pseudo too.
9577 2014-07-11 Rong Xu <xur@google.com>
9579 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9582 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9584 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9585 * config/avr/avr-devices.c (AVR_MCU): Same.
9586 (avr_mcu_types): add text start value to end of device list.
9587 * config/avr/avr-mcus.def: Add text section start for all devices.
9588 (ata5782): Add new avr5 device.
9590 * config/avr/avr-tables.opt: Regenerate.
9591 * config/avr/avr.h: Add declaration for text section start handler.
9592 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9594 (LINK_SPEC): Include text section start handler to linker spec.
9595 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9596 pass -Ttext option to linker if the text section start for the device
9598 * config/avr/t-multilib: Regenerate.
9599 * doc/avr-mmcu.texi: Regenerate.
9601 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9603 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9604 * config/rs6000/aix52.h (LINK_SPEC): Same.
9605 * config/rs6000/aix53.h (LINK_SPEC): Same.
9606 * config/rs6000/aix61.h (LINK_SPEC): Same.
9607 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9609 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9611 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9612 (graphite_verify): New function.
9613 (ivs_params_clear): New function.
9614 (gcc_expression_from_isl_ast_expr_id): New function.
9615 (gcc_expression_from_isl_expr_int): New function.
9616 (binary_op_to_tree): New function.
9617 (ternary_op_to_tree): New function.
9618 (unary_op_to_tree): New function.
9619 (nary_op_to_tree): New function.
9620 (gcc_expression_from_isl_expr_op): New function.
9621 (gcc_expression_from_isl_expression): New function.
9622 (graphite_create_new_loop): New function.
9623 (translate_isl_ast_for_loop): New function.
9624 (get_upper_bound): New function.
9625 (graphite_create_new_loop_guard): New function.
9626 (translate_isl_ast_node_for): New function.
9627 (translate_isl_ast): New function.
9628 (add_parameters_to_ivs_params): New function.
9629 (scop_to_isl_ast): New parameter ip.
9630 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9632 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9634 * config/xtensa/predicates.md (call expander): Update for
9635 DECL_SECTION_NAME being string.
9637 2014-07-11 Richard Biener <rguenther@suse.de>
9640 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9641 can be implemented with a single load followed by a single store.
9642 (c_strlen): Only warn when only_value is not 2.
9644 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9646 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9648 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9651 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9652 (*movhi_bytes): Likewise.
9653 (*arm_movqi_insn): Likewise.
9655 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9658 * config/alpha/alpha.c: Include tree-pass.h, context.h
9660 (pass_data_handle_trap_shadows): New pass.
9661 (pass_handle_trap_shadows::gate): New pass gate function.
9662 (make_pass_handle_trap_shadows): New function.
9663 (rest_of_handle_trap_shadows): Ditto.
9665 (alpha_align_insns_1): Rename from alpha_align_insns.
9666 (pass_data_align_insns): New pass.
9667 (pass_align_insns::gate): New pass gate function.
9668 (make_pass_aling_insns): New function.
9669 (rest_of_align_insns): Ditto.
9670 (alpha_align_insns): Ditto.
9672 (alpha_option_override): Declare handle_trap_shadows info
9673 and align_insns_info. Register handle_trap_shadows and align_insns
9675 (alpha_reorg): Do not call alpha_trap_shadows and
9676 alpha_align_insn from here.
9678 (alpha_pad_function_end): Do not skip BARRIERs.
9680 2014-07-10 Rong Xu <xur@google.com>
9682 Add gcov-tool: an offline gcda profile processing tool support.
9683 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9684 (gcov_is_error): Ditto.
9685 (gcov_read_string): Ditto.
9686 (gcov_read_sync): Ditto.
9687 * gcov-io.h: Move counter defines to gcov-counter.def.
9688 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9689 * coverage.c: Ditto.
9690 * gcov-tool.c: Offline gcda profile processing tool.
9691 (unlink_gcda_file): Remove one gcda file.
9692 (unlink_profile_dir): Remove gcda files from the profile path.
9693 (gcov_output_files): Output gcda files to an output dir.
9694 (profile_merge): Merge two profiles in directory.
9695 (print_merge_usage_message): Print merge usage.
9696 (merge_usage): Print merge usage and exit.
9697 (do_merge): Driver for profile merge sub-command.
9698 (profile_rewrite): Rewrite profile.
9699 (print_rewrite_usage_message): Print rewrite usage.
9700 (rewrite_usage): Print rewrite usage and exit.
9701 (do_rewrite): Driver for profile rewrite sub-command.
9702 (print_usage): Print gcov-info usage and exit.
9703 (print_version): Print gcov-info version.
9704 (process_args): Process arguments.
9705 (main): Main routine for gcov-tool.
9706 * Makefile.in: Build and install gcov-tool.
9707 * gcov-counter.def: New file split from gcov-io.h.
9708 * doc/gcc.texi: Include gcov-tool.texi.
9709 * doc/gcov-tool.texi: Document for gcov-tool.
9711 2014-07-10 Richard Biener <rguenther@suse.de>
9713 PR tree-optimization/61757
9714 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9715 (propagate_rhs_into_lhs): Revert part of last change.
9717 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9719 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9722 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9725 * function.c (allocate_struct_function): Revert r188667 change.
9727 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9729 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9731 * doc/install.texi: Remove links to defunct package providers for
9734 2014-07-09 Tom de Vries <tom@codesourcery.com>
9736 * final.c (get_call_fndecl): Declare.
9737 (self_recursive_call_p): New function.
9738 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9740 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9742 * ipa-devirt.c (record_node): Walk through aliases.
9744 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9746 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9748 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9751 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9753 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9755 * ipa-visibility.c (function_and_variable_visibility): Remove
9756 temporary hack disabling local aliases on AIX.
9758 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9760 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9761 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9763 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9765 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9766 * rs6000/rs6000.c: Inline output of .set instruction.
9767 (declare_alias_data): New struct.
9768 (rs6000_declare_alias): New function.
9769 (rs6000_xcoff_declare_function_name): Use it.
9770 (rs6000_xcoff_declare_object_name): New function.
9771 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9772 (ASM_OUTPUT_DEF): Turn to empty definition.
9774 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9777 * hash-table.h: use hash_table::value_type instead of
9778 Descriptor::value_type in the return types of several methods.
9780 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9782 * tree-pass.h (pass_data): Remove has_execute member.
9783 * passes.c (execute_one_pass): Don't check pass->has_execute.
9784 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9785 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9786 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9787 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9788 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9789 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9790 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9791 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9792 gimple-low.c, gimple-ssa-isolate-paths.c,
9793 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9794 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9795 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9796 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9797 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9798 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9799 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9800 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9801 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9802 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9803 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9804 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9805 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9806 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9807 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9808 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9809 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9810 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9811 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9812 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9813 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9814 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9815 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9816 web.c: Remove initializer for pass_data::has_execute.
9818 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9820 * graphite-htab.h: Use hash_map instead of hash_table.
9821 * graphite-clast-to-gimple.c: Adjust.
9822 * passes.c: Use hash_map instead of hash_table.
9824 * sese.h: Remove now unused code.
9826 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9829 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9832 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9834 PR rtl-optimization/61673
9835 * combine.c (simplify_comparison): Test just mode's sign bit
9836 in tmode rather than the sign bit and any bits above it.
9838 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9840 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9841 Add __isl_give to the declaration.
9842 (generate_isl_schedule): Likewise.
9843 (scop_to_isl_ast): Likewise.
9845 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9847 * config/arm/arm.c (cortexa5_extra_costs): New table.
9848 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9850 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9852 PR tree-optimization/61725
9853 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9854 range, use range_includes_zerop_p instead of integer_zerop on
9855 vr0->min, only use log2 of max if min is not negative.
9857 2014-07-08 Richard Biener <rguenther@suse.de>
9859 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9860 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9861 restriction on loop depth difference.
9862 (record_equality): Likewise.
9863 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9864 (loop_depth_of_name): Remove.
9865 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9866 restriction on loop depth difference.
9867 (init_copy_prop): Likewise.
9869 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9871 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9873 (walk_aliased_vdefs): Likewise.
9874 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9875 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9876 (detect_type_change_from_memory_writes): Check if entry was reached.
9878 2014-07-08 Richard Biener <rguenther@suse.de>
9880 PR tree-optimization/61681
9881 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9882 NONLOCAL inside ESCAPED.
9884 2014-07-08 Richard Biener <rguenther@suse.de>
9886 PR tree-optimization/61680
9887 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9888 Handle properly all read-write dependences with group accesses.
9890 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9892 PR tree-optimization/61576
9893 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9894 block containing reduction statement is predecessor of phi basi block.
9896 2014-07-08 Marek Polacek <polacek@redhat.com>
9899 * fold-const.c (round_up_loc): Change the parameter type.
9901 * fold-const.h (round_up_loc): Adjust declaration.
9902 * stor-layout.c (finalize_record_size): Check for too large types.
9904 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9906 * symtab.c: Include calls.h.
9907 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9909 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9911 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9912 little-endian code generation.
9913 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9914 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9915 (spe_evmergehilo): Rename to...
9916 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9917 (spe_evmergelo): Rename to...
9918 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9919 (spe_evmergelohi): Rename to...
9920 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9921 (spe_evmergehi, spe_evmergehilo): New expanders.
9922 (spe_evmergelo, spe_evmergelohi): Likewise.
9923 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9924 (*frob_tf_ti): Likewise.
9925 (*frob_<mode>_di_2): Likewise.
9926 (*frob_tf_di_8_2): Likewise.
9927 (*frob_di_<mode>): Likewise.
9928 (*frob_ti_tf): Likewise.
9929 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9930 (*frob_ti_<mode>_8_2): Likewise.
9931 (*frob_ti_tf_2): Likewise.
9932 (mov_si<mode>_e500_subreg0): Rename to...
9933 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9935 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9936 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9937 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9938 the big endianness only.
9939 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9940 (*mov_si<mode>_e500_subreg0_2): Rename to...
9941 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9942 big big endianness only.
9943 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9944 (*mov_si<mode>_e500_subreg4): Rename to...
9945 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9947 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9948 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9949 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9950 the big endianness only.
9951 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9953 (*mov_si<mode>_e500_subreg4_2): Rename to...
9954 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9956 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9957 (*mov_sitf_e500_subreg8): Rename to...
9958 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9960 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9961 (*mov_sitf_e500_subreg8_2): Rename to...
9962 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9964 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9965 (*mov_sitf_e500_subreg12): Rename to...
9966 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9968 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9969 (*mov_sitf_e500_subreg12_2): Rename to...
9970 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9972 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9974 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9976 * asan.c (instrument_strlen_call): Do not instrument first byte
9977 in strlen if already instrumented.
9979 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9981 * config/arm/arm.opt (mwords-little-endian): Delete.
9982 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9983 of TARGET_LITTLE_WORDS.
9984 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9985 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9987 * doc/invoke.texi: Remove references to -mwords-little-endian.
9989 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9991 * expmed.c (struct init_expmed_rtl): Change all fields but
9992 pow2 and cint from struct rtx_def to rtx.
9993 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9994 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9997 2014-07-06 Marek Polacek <polacek@redhat.com>
10000 * doc/invoke.texi: Document -Wsizeof-array-argument.
10002 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10004 * wide-int.h (wide_int_storage): Change declaration from struct
10007 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10009 * cgraph.c (cgraph_create_indirect_edge): Update call of
10010 get_polymorphic_call_info.
10011 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10012 (possible_polymorphic_call_targets): Add parameter call.
10013 (decl_maybe_in_construction_p): New predicate.
10014 (get_polymorphic_call_info): Add parameter call;
10015 use decl_maybe_in_construction_p.
10016 * gimple-fold.c (fold_gimple_assign): Update use of
10017 possible_polymorphic_call_targets.
10018 (gimple_fold_call): Likewise.
10019 * ipa-prop.c: Inlcude calls.h
10020 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10021 (param_type_may_change_p): New predicate.
10022 (detect_type_change_from_memory_writes): Break out from ...
10023 (detect_type_change): ... this one; use param_type_may_change_p.
10024 (detect_type_change_ssa): Use param_type_may_change_p.
10025 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10027 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10030 * config/arm/arm-protos.h (arm_legitimate_address_p,
10031 arm_is_constant_pool_ref): Add prototypes.
10032 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10033 (arm_is_constant_pool_ref) New function.
10034 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10035 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10036 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10037 operand. Remove pool_range and neg_pool_range attributes.
10038 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10039 pool_range and neg_pool_range attributes.
10040 * config/arm/constraints.md (Uh): New constraint.
10041 (Uq): Don't allow constant pool references.
10043 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10045 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10046 (move_lo_quad_internal_be_<mode>): Likewise.
10047 (move_lo_quad_<mode>): Convert to define_expand.
10048 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10049 (aarch64_simd_move_hi_quad_be_<mode>): New.
10050 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10051 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10052 (aarch64_combinez_be<mode>): New.
10053 (aarch64_combine<mode>): Convert to define_expand.
10054 (aarch64_combine_internal<mode>): New.
10055 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10057 2014-07-04 Tom de Vries <tom@codesourcery.com>
10059 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10060 combination of earlyclobber and read/write modifiers.
10062 2014-07-04 Tom de Vries <tom@codesourcery.com>
10064 * config/aarch64/aarch64-simd.md
10065 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10067 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10070 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10072 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10074 PR middle-end/61654
10075 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10077 PR tree-optimization/61684
10078 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10079 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10081 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10082 Kito Cheng <kito@0xlab.org>
10083 Monk Chiang <sh.chiang04@gmail.com>
10085 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10086 (nds32_symbol_load_store_p): Move to ...
10087 (nds32_fp_as_gp_check_available): Move to ...
10088 * config/nds32/nds32-fp-as-gp.c: ... here.
10089 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10090 extern declaration.
10092 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10093 Kito Cheng <kito@0xlab.org>
10094 Monk Chiang <sh.chiang04@gmail.com>
10096 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10097 (nds32_expand_store_multiple): Move to ...
10098 (nds32_expand_movmemqi): Move to ...
10099 * config/nds32/nds32-memory-manipulation.c: ... here.
10101 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10102 Kito Cheng <kito@0xlab.org>
10103 Monk Chiang <sh.chiang04@gmail.com>
10105 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10106 (nds32_output_casesi_pc_relative): Move to ...
10107 (nds32_output_casesi): Move to ...
10108 (nds32_mem_format): Move to ...
10109 (nds32_output_16bit_store): Move to ...
10110 (nds32_output_16bit_load): Move to ...
10111 (nds32_output_32bit_store): Move to ...
10112 (nds32_output_32bit_load): Move to ...
10113 (nds32_output_32bit_load_s): Move to ...
10114 (nds32_output_stack_push): Move to ...
10115 (nds32_output_stack_pop): Move to ...
10116 * config/nds32/nds32-md-auxiliary.c: ... here.
10118 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10119 Ling-Hua Tseng <uranus@tinlans.org>
10121 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10122 the purpose of this file.
10124 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10125 Kito Cheng <kito@0xlab.org>
10126 Monk Chiang <sh.chiang04@gmail.com>
10128 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10129 (nds32_address_cost): Move implementation to ...
10130 * config/nds32/nds32-cost.c: ... here.
10131 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10132 (nds32_address_cost_impl): Declare.
10134 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10135 Kito Cheng <kito@0xlab.org>
10136 Monk Chiang <sh.chiang04@gmail.com>
10138 * config/nds32/nds32.c
10139 (nds32_consecutive_registers_load_store_p): Move to ...
10140 (nds32_valid_multiple_load_store): Move to ...
10141 (nds32_valid_stack_push_pop): Move to ...
10142 (nds32_can_use_bclr_p): Move to ...
10143 (nds32_can_use_bset_p): Move to ...
10144 (nds32_can_use_btgl_p): Move to ...
10145 (nds32_can_use_bitci_p): Move to ...
10146 * config/nds32/nds32-predicates.c: ... here.
10148 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10149 Kito Cheng <kito@0xlab.org>
10150 Monk Chiang <sh.chiang04@gmail.com>
10152 * config/nds32/nds32.c
10153 (nds32_expand_builtin_null_ftype_reg): Move to ...
10154 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10155 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10156 (nds32_init_builtins): Move implementation to ...
10157 (nds32_expand_builtin): Move implementation to ...
10158 * config/nds32/nds32-intrinsic.c: ... here.
10159 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10160 (nds32_expand_builtin_impl): Declare.
10162 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10163 Kito Cheng <kito@0xlab.org>
10164 Monk Chiang <sh.chiang04@gmail.com>
10166 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10167 (nds32_emit_section_tail_template): Move to ...
10168 (nds32_emit_isr_jmptbl_section): Move to ...
10169 (nds32_emit_isr_vector_section): Move to ...
10170 (nds32_emit_isr_reset_conten): Move to ...
10171 (nds32_check_isr_attrs_conflict): Move to ...
10172 (nds32_construct_isr_vectors_information): Move to ...
10173 (nds32_asm_file_start): Move implementation to ...
10174 (nds32_asm_file_end): Move implementation to ...
10175 * config/nds32/nds32-isr.c: ... here.
10176 * config/nds32/nds32-protos.h
10177 (nds32_check_isr_attrs_conflict): Declare.
10178 (nds32_construct_isr_vectors_information): Declare.
10179 (nds32_asm_file_start_for_isr): Declare.
10180 (nds32_asm_file_end_for_isr): Declare.
10182 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10183 Kito Cheng <kito@0xlab.org>
10184 Monk Chiang <sh.chiang04@gmail.com>
10186 * config.gcc (nds32*): Add new modules to extra_objs.
10187 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10188 (nds32be-*-*): Likewise.
10189 * config/nds32/nds32-cost.c: New file.
10190 * config/nds32/nds32-fp-as-gp.c: New file.
10191 * config/nds32/nds32-intrinsic.c: New file.
10192 * config/nds32/nds32-isr.c: New file.
10193 * config/nds32/nds32-md-auxiliary.c: New file.
10194 * config/nds32/nds32-memory-manipulation.c: New file.
10195 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10196 * config/nds32/nds32-predicates.c: New file.
10197 * config/nds32/t-nds32: New file.
10199 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10201 PR tree-optimization/61682
10202 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10203 using cases and when one of the operands is equal to 1.
10205 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10207 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10208 ashr<mode>3): Correct mode of operands[2].
10209 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10210 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10211 Correct mode of operands[2]. Fix split condition.
10213 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10215 * arm.md (arch): Add armv6_or_vfpv3.
10216 (arch_enabled): Add test for the above.
10217 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10219 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10221 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10223 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10224 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10225 HWI 1 and negate the unsigned value.
10226 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10227 use AND instead of shift.
10228 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10230 2014-07-03 Marek Polacek <polacek@redhat.com>
10232 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10233 (-fsanitize=float-divide-by-zero): Move to the table with
10234 -fsanitize=undefined suboptions.
10235 (-fsanitize=float-cast-overflow): Likewise.
10237 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10239 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10240 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10243 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10245 * loop-invariant.c (struct invariant): Add a new member: eqno;
10246 (find_identical_invariants): Update eqno;
10247 (create_new_invariant): Init eqno;
10248 (get_inv_cost): Compute comp_cost with eqno;
10250 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10252 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10253 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10254 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10255 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10256 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10258 2014-07-02 Christian Bruel <christian.bruel@st.com>
10262 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10263 (make_preds_opaque): Delete.
10264 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10265 (commit_mode_sets): New function.
10266 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10267 Process all modes at once.
10268 * basic-block.h (pre_edge_lcm_avs): Declare.
10269 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10270 Call clear_aux_for_edges. Fix comments.
10271 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10272 (pre_edge_rev_lcm): Idem.
10273 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10275 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10276 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10278 * config/i386/i386.c (x96_emit_mode_set): Idem.
10279 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10280 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10281 (fpscr_toggle) Disallow from delay slot.
10282 * target.def (emit_mode_set): Add prev_mode parameter.
10283 * doc/tm.texi: Regenerate.
10285 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10287 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10290 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10292 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10293 vtable_pointer_value_to_vtable): Constify.
10294 (contains_polymorphic_type_p): Declare.
10295 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10296 vtable_pointer_value_to_vtable): Constify.
10297 (contains_polymorphic_type_p): New predicate.
10298 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10300 (ipa_set_ancestor_jf): Likewise.
10301 (detect_type_change): Return false in easy cases.
10302 (compute_complex_assign_jump_func): Require type to contain
10304 (compute_known_type_jump_func): Likewise.
10306 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10308 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10310 (type_in_anonymous_namespace_p): Constify argument.
10311 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10312 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10313 (main_odr_variant): New function.
10314 (hash_type_name): Make static; update assert; do not ICE on
10316 (types_same_for_odr): Bring here from tree.c; simplify and remove
10317 old structural comparing code that doesn't work for templates.
10318 (odr_hasher::equal): Update assert.
10319 (add_type_duplicate): Return true when bases should be computed;
10320 replace incomplete loader by complete; do not output duplicated
10321 warnings; do not ICE on non-records; set odr_violated flag.
10322 (get_odr_type): Be ready to replace incomplete type by complete
10323 one; work on ODR variants instead of main variants; reorder item
10324 in array so bases have still smaller indexes.
10325 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10326 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10328 2014-07-01 Cary Coutant <ccoutant@google.com>
10330 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10332 (resolve_addr_in_expr): When replacing the rtx in a location list
10333 entry, get a new address table entry.
10334 (dwarf2out_finish): Call index_location_lists even if there are no
10335 addr_index_table entries yet.
10337 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10339 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10340 change for not being obvious.
10342 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10344 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10347 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10349 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10350 (vcagt_f64): Likewise.
10351 (vcale_f64): Likewise.
10352 (vcaled_f64): Likewise.
10353 (vcales_f32): Likewise.
10354 (vcalt_f64): Likewise.
10355 (vcaltd_f64): Likewise.
10356 (vcalts_f32): Likewise.
10358 2014-07-01 Marek Polacek <polacek@redhat.com>
10360 * doc/invoke.texi: Document -Wint-conversion.
10362 2014-07-01 Marek Polacek <polacek@redhat.com>
10365 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10367 2014-07-01 Martin Liska <mliska@suse.cz>
10369 IPA REF alias refactoring
10370 * cgraph.h (iterate_direct_aliases): New function.
10371 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10372 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10373 FOR_EACH_ALIAS added.
10374 (cgraph_for_node_and_aliases): Likewise.
10375 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10376 * ipa-inline.c (reset_edge_caches): Likewise.
10377 (update_caller_keys): Likewise.
10378 * trans-mem.c (ipa_tm_execute): Likewise.
10379 *varpool.c (varpool_analyze_node): Likewise.
10380 (varpool_for_node_and_aliases): Likewise.
10381 * ipa-ref.h (first_alias): New function.
10382 (last_alias): Likewise.
10383 (has_aliases_p): Likewise.
10384 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10385 is sensitive to IPA_REF_ALIASes.
10386 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10387 are put at the beginning of the list.
10388 (symtab_node::iterate_direct_aliases): New function.
10390 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10393 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10395 (write_ts_type_common_tree_pointers): Do not stream fields not set
10396 for incomplete types; do not stream duplicated fields for variants;
10397 sanity check that variant and type match.
10398 (write_ts_type_non_common_tree_pointers): Likewise.
10399 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10400 TYPE_SIZE whether type is complete.
10401 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10402 write_ts_type_common_tree_pointers
10403 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10405 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10407 * var-tracking.c (add_stores): Return instead of asserting if old
10408 and new values for conditional store are the same.
10410 2014-06-30 Richard Henderson <rth@redhat.com>
10414 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10415 the cfg if there were any changes.
10416 * passes.def: Revert move of peephole2 after reorder_blocks;
10417 move duplicate_computed_gotos before peephole2.
10419 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10421 * except.c (emit_note_eh_region_end): New helper function.
10422 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10423 emit EH_REGION_END note.
10424 * jump.c (cleanup_barriers): Do not split a call and its
10425 corresponding CALL_ARG_LOCATION note.
10427 2014-06-30 Jeff Law <law@redhat.com>
10429 PR tree-optimization/61607
10430 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10431 deeper into the SSA_NAME_VALUE chain.
10433 2014-06-30 Marek Polacek <polacek@redhat.com>
10435 * convert.c (convert_to_integer): Don't instrument conversions if the
10436 function has no_sanitize_undefined attribute.
10437 * ubsan.c: Don't run the ubsan pass if the function has
10438 no_sanitize_undefined attribute.
10440 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10442 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10443 -fsanitize=undefined suboptions.
10445 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10447 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10448 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10449 against bigendian and adjust indices.
10451 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10453 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10455 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10458 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10459 Add alternative; make early clobber. Adjust both split patterns
10460 to use operand 0 as the working register.
10462 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10464 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10465 as ira_object_id_map might be NULL, or 1.
10467 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10469 * loop-invariant.c (get_inv_cost): Handle register class.
10470 (gain_for_invariant): Check the register pressure of the inv
10471 and its overlapped register class, other than all.
10473 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10475 * doc/invoke.texi (Optimize Options): Fix descriptions of
10476 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10478 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10480 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10483 2014-06-29 Tobias Grosser <tobias@grosser.es>
10486 * graphite-isl-ast-to-gimple.c: Add missing guards.
10488 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10490 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10491 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10492 * flag-types.h: Add new enum fgraphite_generator.
10493 * graphite-isl-ast-to-gimple.c: New.
10494 * graphite-isl-ast-to-gimple.h: New.
10495 * graphite.c (graphite_transform_loops): Add choice of Graphite
10496 code generator, which depends on flag_graphite_code_gen.
10498 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10500 * graphite-dependences.c (subtract_commutative_associative_deps):
10501 Add NULL checking of the following variables: must_raw_no_source,
10502 may_raw_no_source, must_war_no_source, may_war_no_source,
10503 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10504 must_war, may_war, must_waw, may_waw.
10506 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10508 * graphite-clast-to-gimple.c: gloog is renamed to
10509 graphite_regenerate_ast_cloog. gloog_error is renamed to
10510 graphite_regenerate_error.
10511 * graphite-clast-to-gimple.h: The definition of the struct
10512 bb_pbb_def is moved to graphite-htab.h.
10513 Add inclusion of the hash-table.h.
10514 * graphite-htab.h: The declaration of the function gloog is moved
10515 to graphite-clast-to-gimple.h and renamed to
10516 graphite_regenerate_ast_cloog.
10517 * graphite.c (graphite_transform_loops): gloog is renamed
10518 to graphite_regenerate_ast_cloog.
10520 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10522 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10524 (write_ts_type_common_tree_pointers): Do not stream fields not set
10525 for incomplete types; do not stream duplicated fields for variants;
10526 sanity check that variant and type match.
10527 (write_ts_type_non_common_tree_pointers): Likewise.
10528 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10529 TYPE_SIZE whether type is complete.
10530 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10531 write_ts_type_common_tree_pointers
10532 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10534 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10536 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10538 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10540 * tree-inline.c (remap_type_1): Do not duplicate fields
10541 that are shared in between type and its main variant.
10543 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10545 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10547 (ipa_set_ancestor_jf) Likewise.
10548 (check_stmt_for_type_change): Check that we work on main variant.
10549 (detect_type_change): Look into main variant.
10550 (compute_known_type_jump_func): Check that main variant has BINFO.
10552 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10554 * ipa-devirt.c (set_type_binfo): New function.
10555 (add_type_duplicate): Use it.
10556 (get_odr_type): Sanity check that binfos points to main variants.
10557 (get_class_context): Be sure the context's outer_type is main variant.
10558 (contains_type_p): Walk main variant.
10559 (get_polymorphic_call_info_for_decl): Set outer_type to be
10561 (get_polymorphic_call_info): Likewise.
10562 (possible_polymorphic_call_targets): Sanity check that we operate
10565 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10567 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10569 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10571 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10572 accidental change due to wide-int branch merge.
10574 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10576 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10577 compressed debug support.
10578 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10579 * configure: Regenerate.
10580 * config.in: Regenerate.
10581 * common.opt (compressed_debug_sections): New enum.
10582 (gz, gz=): New options.
10583 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10584 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10585 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10586 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10587 LINK_COMPRESS_DEBUG_SPEC.
10588 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10589 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10590 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10591 (Debugging Options): Document -gz[=type].
10593 2014-06-27 Martin Jambor <mjambor@suse.cz>
10596 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10597 args_to_skip, use those from node instead. Copy args_to_skip and
10598 combined_args_to_skip from node to the new thunk.
10599 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10600 (cgraph_create_virtual_clone): Moved computation of
10601 combined_args_to_skip...
10602 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10604 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10606 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10607 redundant diagnostic machinary.
10609 2014-06-27 Richard Biener <rguenther@suse.de>
10611 * tree-ssa-math-opts.c (bswap_replace): Fix
10612 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10614 2014-06-27 Martin Liska <mliska@suse.cz>
10616 * gimple.h (gimple_location_safe): New function introduced.
10617 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10618 of gimple_location_safe replaces gimple_location.
10619 (gimple_fold_call): Likewise.
10620 * ipa-devirt.c (ipa_devirt): Likewise.
10621 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10622 * ipa.c (walk_polymorphic_call_targets): Likewise.
10623 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10625 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10627 PR tree-optimization/57233
10628 PR tree-optimization/61299
10629 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10631 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10632 would be lowered to scalar shifts, check if corresponding
10633 shifts and vector BIT_IOR_EXPR are supported and don't lower
10634 or lower just to narrower vector type in that case.
10635 * expmed.c (expand_shift_1): Fix up handling of vector
10636 shifts and rotates.
10638 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10641 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10643 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10645 * doc/invoke.texi (-fsemantic-interposition): Document.
10646 * common.opt (fsemantic-interposition): New flag.
10647 * varasm.c (decl_replaceable_p): Use it.
10649 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10652 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10653 extraction other than index 3.
10655 2014-06-26 Teresa Johnson <tejohnson@google.com>
10657 * doc/invoke.texi: Fix typo.
10658 * dumpfile.c: Add support for documented -fdump-* options
10659 optimized/missed/note/optall.
10661 2014-06-26 Martin Jambor <mjambor@suse.cz>
10663 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10664 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10665 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10666 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10667 * opts.c (default_options_optimization): Set
10668 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10669 * doc/invoke.texi (allow-load-data-races)
10670 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10671 (allow-store-data-races): Document the new default.
10673 2014-06-26 Martin Jambor <mjambor@suse.cz>
10675 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10676 renamed to ipa_impossible_devirt_target. Fix typo.
10677 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10678 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10679 ipa_impossible_devirt_target.
10681 2014-06-26 Richard Biener <rguenther@suse.de>
10683 PR tree-optimization/61607
10684 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10685 explaining why we restrict copies on loop depth.
10686 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10688 (record_equivalences_from_phis): Instead add it here.
10690 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10692 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10693 (LTO_WRAPPER_OBJS): New variable.
10694 (lto-wrapper$(exeext)): Use it.
10695 * collect2.c: Include "collect-utils.h".
10696 (verbose, debug): Remove variables.
10697 (at_file_supplied): No longer static.
10698 (tool_name): New variable.
10699 (do_wait, fork_execute, maybe_unlink): Don't declare.
10700 (tool_cleanup): No longer static.
10701 (notice): Remove function.
10702 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10703 fork_execute calls.
10704 (collect_wait, do_wait, collect_execute): Remove functions.
10705 (maybe_unlink): No longer static.
10706 * collect2.h (verbose, debug): Don't declare.
10707 (at_file_supplied): Declare.
10708 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10710 (collect_execute): Replace with implementation from collect2, plus a
10711 new arg use_atfile. All callers changed.
10712 (collect_wait): Replace with implementation from collect2.
10713 (maybe_unlink_file): Remove function.
10714 (fork_execute): Replace with implementation from collect2, plus a
10715 new arg use_atfile. All callers changed.
10716 (do_wait): Add call to utils_cleanup to the error path.
10717 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10718 (tool_cleanup): Adjust declarations.
10719 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10720 * tlink.c: Include "collect-utils.h".
10721 (tlink_execute): New arg use_atfile. All callers changed.
10722 (tlink_init, tlink_execute): Remove declarations.
10724 * collect-utils.c (save_temps): New variable.
10725 (do_wait): Use it instead of debug. Use fatal_error.
10726 * collect-utils.h (save_temps): Declare.
10727 * collect2.c (verbose): Rename from vflag. All uses changed.
10728 (tool_cleanup): New function, copied from collect_atexit.
10729 (collect_atexit, handler): Just call it.
10730 * collect2.h (verbose): Declaration renamed from vflag.
10731 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10734 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10735 (lto-wrapper$(exeext)): Link with collect-utils.o.
10736 * collect-utils.c: New file.
10737 * collect-utils.h: New file.
10738 * lto-wrapper.c: Include "collect-utils.h".
10739 (args_name): Delete variable.
10740 (tool_name): New variable.
10741 (tool_cleanup): New function.
10742 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10743 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10744 (fork_execute): Remove functions.
10746 2014-06-26 Nick Clifton <nickc@redhat.com>
10748 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10750 * doc/extend.texi (Function Attributes): Fix typo in description
10751 of RX vector attribute.
10753 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10755 * config.gcc (supported_defaults): Error when passing either
10756 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10758 2014-06-26 Richard Biener <rguenther@suse.de>
10760 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10761 propagating volatile pointers.
10763 2014-06-26 Richard Biener <rguenther@suse.de>
10765 PR tree-optimization/61607
10766 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10767 loop if we redirected its latch edge.
10768 (thread_block_1): Do not cancel loops prematurely.
10770 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10772 * toplev.c (backend_init_target): Move init_emit_regs and
10774 (backend_init) ... here; skip ira_init_once and backend_init_target.
10775 (target_reinit) ... and here; clear
10776 this_target_rtl->lang_dependent_initialized.
10777 (lang_dependent_init_target): Clear
10778 this_target_rtl->lang_dependent_initialized;
10779 break out rtl initialization to ...
10780 (initialize_rtl): ... here; call also backend_init_target
10782 * toplev.h (initialize_rtl): New function.
10783 * function.c: Include toplev.h
10784 (init_function_start): Call initialize_rtl.
10785 * rtl.h (target_rtl): Add target_specific_initialized,
10786 lang_dependent_initialized.
10788 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10789 Jakub Jelinek <jakub@redhat.com>
10791 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10793 2014-06-25 Tom de Vries <tom@codesourcery.com>
10795 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10797 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10799 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10800 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10801 Issue a strict overflow warning if appropriate.
10803 2014-06-25 Martin Liska <mliska@suse.cz>
10805 IPA REF refactoring
10806 * Makefile.in: Removed header file (ipa-ref-inline.h).
10807 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10809 (cgraph_speculative_call_info): Likewise.
10810 (cgraph_for_node_thunks_and_aliases): Likewise.
10811 (cgraph_for_node_and_aliases): Likewise.
10812 (verify_cgraph_node): Likewise.
10813 * cgraph.h: Batch of IPA REF functions become member functions of
10814 symtab_node: add_reference, maybe_add_reference, clone_references,
10815 clone_referring, clone_reference, find_reference,
10816 remove_stmt_references, remove_all_references,
10817 remove_all_referring, dump_references, dump_referring,
10818 has_alias_p, iterate_reference, iterate_referring.
10819 * cgraphbuild.c (record_reference): New IPA REF function used.
10820 (record_type_list): Likewise.
10821 (record_eh_tables): Likewise.
10822 (mark_address): Likewise.
10823 (mark_load): Likewise.
10824 (mark_store): Likewise.
10825 (pass_build_cgraph_edges): Likewise.
10826 (rebuild_cgraph_edge): Likewise.
10827 (cgraph_rebuild_references): Likewise.
10828 (pass_remove_cgraph_callee_edges): Likewise.
10829 * cgraphclones.c (cgraph_clone_node): Likewise.
10830 (cgraph_create_virtual_clone): Likewise.
10831 (cgraph_materialize_clone): Likewise.
10832 (cgraph_materialize_all_clones): Likewise.
10833 * cgraphunit.c (cgraph_reset_node): Likewise.
10834 (cgraph_reset_node): Likewise.
10835 (analyze_function): Likewise.
10836 (assemble_thunks_and_aliases): Likewise.
10837 (expand_function): Likewise.
10838 * ipa-comdats.c (propagate_comdat_group): Likewise.
10839 (enqueue_references): Likewise.
10840 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10841 (create_specialized_node): Likewise.
10842 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10843 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10844 * ipa-inline.c (reset_edge_caches): Likewise.
10845 (update_caller_keys): Likewise.
10846 (execute): Likewise.
10847 * ipa-prop.c (remove_described_reference): Likewise.
10848 (propagate_controlled_uses): Likewise.
10849 (ipa_edge_duplication_hook): Likewise.
10850 (ipa_modify_call_arguments): Likewise.
10851 * ipa-pure-const.c (propagate_pure_const): Likewise.
10852 * ipa-ref-inline.h: Header file removed, functions moved
10853 to symtab_node class.
10854 * ipa-ref.c (remove_reference): New class member function.
10855 (cannot_lead_to_return): New class member function.
10856 (referring_ref_list): Likewise.
10857 (referred_ref_list): Likewise.
10858 Rest of functions moved to symtab_node class.
10859 * ipa-ref.h: New member functions remove_reference,
10860 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10862 ipa_ref_list class has new member functions: first_reference,
10863 first_referring, clear, nreferences.
10864 * ipa-reference.c (analyze_function): New IPA REF function used.
10865 (write_node_summary_p): Likewise.
10866 (ipa_reference_write_optimization_summary): Likewise.
10867 * ipa-split.c (split_function): Likewise.
10868 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10869 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10870 (function_and_variable_visibility): Likewise.
10871 * ipa.c (has_addr_references_p): Likewise.
10872 (process_references): Argument type changed.
10873 (symtab_remove_unreachable_nodes): New IPA REF function used.
10874 (process_references): Likewise.
10875 (set_writeonly_bit): Likewise.
10876 * lto-cgraph.c: Implementation of new symtab_node member functions
10877 that uses new IPA REF functions.
10878 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10880 * lto-streamer-out.c (output_symbol_p): Likewise.
10881 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10883 * symtab.c: Implementation of new IPA REF API.
10884 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10885 (ipa_tm_create_version): Likewise.
10886 (ipa_tm_execute): Likewise.
10887 * tree-emutls.c (gen_emutls_addr): Likewise.
10888 * tree-inline.c (copy_bb): Likewise.
10889 (delete_unreachable_blocks_update_callgraph): Likewise.
10890 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10891 (varpool_for_node_and_aliases): Likewise.
10893 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10895 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10897 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10900 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10901 tree_node * instead of tree_node *.
10903 (print_fold_checksum): Likewise.
10904 (fold_check_failed): Likewise.
10905 (debug_fold_checksum): Likewise.
10906 (fold_build1_stat_loc): Likewise.
10907 (fold_build2_stat_loc): Likewise.
10908 (fold_build3_stat_loc): Likewise.
10909 (fold_build_call_array_loc): Likewise.
10911 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10913 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10914 implementation with call to...
10915 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10917 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10920 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10922 PR tree-optimization/57742
10923 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10924 after replacing the statement.
10926 2014-06-25 Nick Clifton <nickc@redhat.com>
10928 * config/v850/v850.c (GHS_default_section_names): Change to const
10930 (GHS_current_section_names): Likewise.
10931 (v850_insert_attributes): Do not build strings, just assign the
10932 names directly. Change the type of 'chosen_section' to const
10934 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10935 directly to the array entry.
10936 * config/v850/v850.h (GHS_default_section_names): Change to const
10938 (GHS_current_section_names): Likewise.
10940 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10942 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10943 (LANG_HOOKS_DECLS): Add it.
10944 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10946 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10947 * langhooks.h (struct lang_hooks_for_decls): Add
10948 omp_clause_linear_ctor hook.
10949 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10950 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10951 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10952 combined simd loop use omp_clause_linear_ctor hook.
10954 2014-06-24 Cong Hou <congh@google.com>
10956 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10957 pattern recognition.
10958 (type_conversion_p): PROMOTION is true if it's a type promotion
10959 conversion, and false otherwise. Return true if the given expression
10960 is a type conversion one.
10961 * tree-vectorizer.h: Adjust the number of patterns.
10962 * tree.def: Add SAD_EXPR.
10963 * optabs.def: Add sad_optab.
10964 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10965 * expr.c (expand_expr_real_2): Likewise.
10966 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10967 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10968 * optabs.c (optab_for_tree_code): Likewise.
10969 * tree-cfg.c (estimate_operator_cost): Likewise.
10970 * tree-ssa-operands.c (get_expr_operands): Likewise.
10971 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10972 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10973 * doc/generic.texi: Add document for SAD_EXPR.
10974 * doc/md.texi: Add document for ssad and usad.
10976 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10978 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10979 qualification in cast.
10981 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10983 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10984 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10985 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10986 (tree_function_decl): ... here.
10987 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10988 streaming of vindex to ...
10989 (write_ts_function_decl_tree_pointers): ... here.
10990 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10991 Do not stream DECL_VINDEX.
10992 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10994 2014-06-24 Catherine Moore <clm@codesourcery.com>
10995 Sandra Loosemore <sandra@codesourcery.com>
10997 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10998 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10999 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11001 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11003 * doc/invoke.texi (Warning Options): Remove duplicated
11004 -Wmaybe-uninitialized.
11006 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11008 PR tree-optimization/57742
11009 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11010 (handle_builtin_malloc, handle_builtin_memset): New functions.
11011 (strlen_optimize_stmt): Call them.
11012 * passes.def: Move strlen after loop+dom but before vrp.
11014 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11017 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11018 model family 6 CPU with has_longmode never use a CPU without
11021 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11024 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11027 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11029 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11030 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11032 * hash-map.h: New file.
11033 * ipa-comdats.c: Use hash_map instead of pointer_map.
11035 * lto-section-out.c: Adjust.
11036 * lto-streamer.h: Replace pointer_map with hash_map.
11037 * symtab.c (verify_symtab): Likewise.
11038 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11039 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11040 * tree-streamer.h: Likewise.
11041 * tree-streamer.c: Adjust.
11042 * pointer-set.h: Remove pointer_map.
11044 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11046 * hash-table.h: Add a template arg to choose between storing values
11047 and storing pointers to values, and then provide partial
11048 specializations for both.
11049 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11050 should store, not the type values should point to.
11051 * tree-into-ssa.c (var_info_hasher): Likewise.
11052 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11053 * tree-complex.c: Adjust.
11054 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11055 table instead of int_tree_map *.
11056 * tree-parloops.c: Adjust.
11057 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11058 type is being stored.
11059 * tree-vectorizer.c: Adjust.
11061 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11063 * hash-table.h: Remove a layer of indirection from hash_table so that
11064 it contains the hash table's data instead of a pointer to the data.
11065 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11066 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11067 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11068 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11069 fold-const.c, gcse.c, ggc-common.c,
11070 gimple-ssa-strength-reduction.c, gimplify.c,
11071 graphite-clast-to-gimple.c, graphite-dependences.c,
11072 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11073 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11074 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11075 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11076 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11077 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11078 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11079 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11080 tree-ssa-live.c, tree-ssa-loop-im.c,
11081 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11082 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11083 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11084 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11085 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11086 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11087 vtable-verify.c, vtable-verify.h: Adjust.
11089 2014-06-24 Richard Biener <rguenther@suse.de>
11091 PR tree-optimization/61572
11092 * tree-ssa-sink.c (statement_sink_location): Do not sink
11093 loads from hard registers.
11095 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11097 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11098 not mentioned in clauses use private clause if the iterator is
11099 declared in #pragma omp for simd, and when adding lastprivate
11100 instead, add it to the outer #pragma omp for too. Diagnose
11101 if the variable is private in outer context. For simd collapse > 1
11102 loops, replace all iterators with temporaries.
11103 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11104 same even in collapse > 1 loops.
11106 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11107 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11109 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11110 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11112 (gimplify_adjust_omp_clauses): Likewise.
11113 * omp-low.c (lower_rec_simd_input_clauses,
11114 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11115 safelen the same as safelen(1).
11116 * tree-nested.c (convert_nonlocal_omp_clauses,
11117 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11118 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11119 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11120 Fixup handling of GIMPLE_OMP_TARGET.
11121 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11124 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11126 PR tree-optimization/61554
11127 * tree-ssa-propagate.c: Include "bitmap.h".
11128 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11129 properly update constructor/destructor.
11130 (substitute_and_fold_dom_walker::before_dom_children):
11131 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11132 need_eh_cleaup instead.
11133 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11136 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11138 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11139 * tree-pass.h (make_pass_ipa_single_use): New pass.
11140 * cgraph.h (used_by_single_function): New flag.
11141 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11143 * passes.def (pass_ipa_single_use): Scedule.
11144 * ipa.c (BOTTOM): New macro.
11145 (meet): New function
11146 (propagate_single_user): New function.
11147 (ipa_single_use): New function.
11148 (pass_data_ipa_single_use): New pass.
11149 (pass_ipa_single_use): New pass.
11150 (pass_ipa_single_use::gate): New gate.
11151 (make_pass_ipa_single_use): New function.
11153 2014-06-23 Kai Tietz <ktietz@redhat.com>
11156 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11157 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11159 2014-06-23 Richard Biener <rguenther@suse.de>
11161 * tree-ssa-loop.c (gate_loop): New function.
11162 (pass_tree_loop::gate): Call it.
11163 (pass_data_tree_no_loop, pass_tree_no_loop,
11164 make_pass_tree_no_loop): New.
11165 * tree-vectorizer.c: Include tree-scalar-evolution.c
11166 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11168 (pass_slp_vectorize::clone): New method.
11169 * timevar.def (TV_TREE_NOLOOP): New.
11170 * tree-pass.h (make_pass_tree_no_loop): Declare.
11171 * passes.def (pass_tree_no_loop): New pass group with
11174 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11177 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11178 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11180 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11182 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11183 "yes" where needed.
11185 2014-06-23 Alan Modra <amodra@gmail.com>
11188 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11189 to zero on debug statements.
11191 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11194 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11195 Ignore third operand if present by marking qualifier_internal.
11197 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11199 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11201 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11202 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11203 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11204 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11205 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11206 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11207 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11208 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11209 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11210 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11211 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11212 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11213 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11214 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11215 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11216 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11217 logic in GCC vector extensions
11219 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11220 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11221 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11222 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11223 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11224 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11225 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11226 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11227 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11228 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11230 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11232 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11235 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11236 (vget_low_s64): Use __GET_LOW macro.
11237 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11238 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11239 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11240 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11241 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11243 (vcombine_s64): Use GCC vector extensions; remove cast.
11244 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11245 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11246 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11247 Fix type signature; remove cast.
11249 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11252 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11254 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11256 (BUILTIN_VD1): New.
11257 (BUILTIN_VD_RE): Remove.
11258 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11259 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11260 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11261 variant but not df.
11262 (vreinterpretv1df*, vreinterpret*v1df): New.
11263 (vreinterpretdf*, vreinterpret*df): Remove.
11264 * config/aarch64/aarch64-simd.md (aarch64_create,
11265 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11266 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11268 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11269 (vcreate_f64): Remove cast, use v1df builtin.
11270 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11271 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11272 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11273 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11274 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11275 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11276 add range check using __builtin_aarch64_im_lane_boundsi.
11277 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11278 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11279 type signature, use gcc vector extensions.
11280 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11281 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11282 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11283 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11284 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11285 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11286 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11287 vreinterpret_u64_f64): Use v1df builtin not df.
11289 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11291 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11294 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11296 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11299 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11301 * loop-invariant.c (pre_check_invariant_p): New function.
11302 (find_invariant_insn): Call pre_check_invariant_p.
11304 2014-06-22 Richard Henderson <rth@redhat.com>
11307 * compare-elim.c (struct comparison): Add eh_note.
11308 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11309 a redundant comparison in a different EH region. Purge EH edges if
11312 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11314 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11315 (var_shift): Use it.
11316 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11317 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11318 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11319 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11320 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11321 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11322 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11323 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11324 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11325 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11326 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11327 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11328 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11329 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11330 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11331 *rotldi3_internal15be): Use the new attribute. Merge register and
11332 integer alternatives.
11334 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11336 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11337 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11338 split, *ashrdi3_internal3 and split): Delete, merge into...
11339 (ashr<mode>3): New expander.
11340 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11341 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11343 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11345 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11346 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11347 *rotldi3_internal3 and split): Delete, merge into...
11348 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11349 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11350 Use "rotlw" extended mnemonic.
11352 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11354 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11355 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11356 and split, *ashldi3_internal3 and split): Delete, merge into...
11357 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11358 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11360 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11362 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11363 (lshrsi3, two anonymous define_insns and define_splits,
11364 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11365 *lshrdi3_internal3 and split): Delete, merge into...
11366 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11367 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11369 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11371 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11372 Remove "O" alternative.
11374 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11376 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11377 (mips_move_from_gpr_cost): Likewise.
11378 (mips_register_move_cost): Update accordingly.
11379 (mips_secondary_reload_class): Remove name of in_p.
11381 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11384 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11385 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11387 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11389 * config/nios2/nios2.c: Include "builtins.h".
11391 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11393 * cgraph.h (tls_model_names): New variable.
11394 * print-tree.c (print_node): Simplify.
11395 * varpool.c (tls_model_names): New variable.
11396 (dump_varpool_node): Output tls model.
11398 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11400 * ipa-visibility.c (function_and_variable_visibility): Disable
11401 temporarily local aliases for some targets.
11403 2014-06-20 Marek Polacek <polacek@redhat.com>
11405 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11406 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11407 into SANITIZE_UNDEFINED.
11408 * doc/invoke.texi: Describe -fsanitize=bounds.
11409 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11410 functions created in the FEs.
11411 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11412 (expand_UBSAN_BOUNDS): New function.
11413 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11414 * internal-fn.h: Don't define internal functions here.
11415 * opts.c (common_handle_option): Add -fsanitize=bounds.
11416 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11417 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11418 * tree-core.h: Define internal functions here.
11419 (struct tree_base): Add ifn field.
11420 * tree-pretty-print.c: Include "internal-fn.h".
11421 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11422 * tree.c (get_callee_fndecl): Likewise.
11423 (build_call_expr_internal_loc): New function.
11424 * tree.def (CALL_EXPR): Update description.
11425 * tree.h (CALL_EXPR_IFN): Define.
11426 (build_call_expr_internal_loc): Declare.
11427 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11429 (ubsan_type_descriptor): Change bool parameter to enum
11430 ubsan_print_style. Adjust the code. Add handling of
11432 (ubsan_expand_bounds_ifn): New function.
11433 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11434 (ubsan_build_overflow_builtin): Likewise.
11435 (instrument_bool_enum_load): Likewise.
11436 (ubsan_instrument_float_cast): Likewise.
11437 * ubsan.h (enum ubsan_print_style): New enum.
11438 (ubsan_expand_bounds_ifn): Declare.
11439 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11441 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11443 * config/rs6000/rs6000.md: Append `DONE' to preparation
11444 statements of `bswap' pattern splitters.
11446 2014-06-20 Tom de Vries <tom@codesourcery.com>
11448 * target.def (call_fusage_contains_non_callee_clobbers): Update
11450 * doc/tm.texi: Regenerate.
11452 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11453 Max Ostapenko <m.ostapenko@partner.samsung.com>
11456 * asan.c (instrument_strlen_call): Fixed instrumentation of
11459 2014-06-20 Martin Jambor <mjambor@suse.cz>
11462 * ipa-prop.c (impossible_devirt_target): New function.
11463 (try_make_edge_direct_virtual_call): Use it, also instead of
11466 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11467 Max Ostapenko <m.ostapenko@partner.samsung.com>
11470 * asan.c (build_check_stmt): Add condition.
11472 2014-06-20 Martin Jambor <mjambor@suse.cz>
11475 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11478 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11480 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11482 (VCONQ): Make comment more helpful.
11484 * config/aarch64/aarch64-simd.md
11485 (aarch64_sqdmulh_lane<mode>):
11486 Use VCOND for operands 2. Update lane checking and flipping logic.
11487 (aarch64_sqrdmulh_lane<mode>): Likewise.
11488 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11489 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11490 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11491 attribute of operand 3 to VCOND.
11492 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11493 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11494 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11495 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11496 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11497 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11499 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11500 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11501 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11502 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11503 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11504 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11505 operand to VCOND. Update lane flipping and bounds checking logic.
11506 (aarch64_sqdmlal2_lane<mode>): Likewise.
11507 (aarch64_sqdmlsl_lane<mode>): Likewise.
11508 (aarch64_sqdmull_lane<mode>): Likewise.
11509 (aarch64_sqdmull2_lane<mode>): Likewise.
11510 (aarch64_sqdmlal_laneq<mode>):
11511 Replace VCON usage with VCONQ.
11512 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11513 (aarch64_sqdmlal2_laneq<mode>): Emit
11514 aarch64_sqdmlal2_laneq<mode>_internal insn.
11515 Replace VCON with VCONQ.
11516 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11517 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11518 (aarch64_sqdmull_laneq<mode>): Emit
11519 aarch64_sqdmull_laneq<mode>_internal insn.
11520 Replace VCON with VCONQ.
11521 (aarch64_sqdmull2_laneq<mode>): Emit
11522 aarch64_sqdmull2_laneq<mode>_internal insn.
11523 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11524 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11525 of 3rd argument to int16x4_t.
11526 (vqdmlalh_lane_s16): Likewise.
11527 (vqdmlslh_lane_s16): Likewise.
11528 (vqdmull_high_lane_s16): Likewise.
11529 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11530 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11531 (vqdmlsl_lane_s16): Likewise.
11532 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11533 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11534 (vqdmlals_lane_s32): Likewise.
11535 (vqdmlsls_lane_s32): Likewise.
11536 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11537 (vqdmulls_lane_s32): Likewise.
11538 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11539 (vqdmlsl_lane_s32): Likewise.
11540 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11541 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11542 (vqrdmulhh_lane_s16): Likewise.
11543 (vqdmlsl_high_lane_s16): Likewise.
11544 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11545 (vqdmlsl_high_lane_s32): Likewise.
11546 (vqrdmulhs_lane_s32): Likewise.
11548 2014-06-20 Tom de Vries <tom@codesourcery.com>
11550 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11551 get_call_reg_set_usage.
11553 2014-06-20 Tom de Vries <tom@codesourcery.com>
11555 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11556 it contains all call_used_regs.
11558 2014-06-20 Tom de Vries <tom@codesourcery.com>
11560 * final.c (collect_fn_hard_reg_usage): Add and use variable
11561 function_used_regs.
11563 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11565 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11566 (set_init_priority, get_init_priority, set_fini_priority,
11567 get_fini_priority): New methods.
11568 * tree.c (init_priority_for_decl): Remove.
11569 (init_ttree): Do not initialize init priority.
11570 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11571 (decl_priority_info): Remove.
11572 (decl_init_priority_insert): Rewrite.
11573 (decl_fini_priority_insert): Rewrite.
11574 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11575 tree_priority_map_marked_p): Remove.
11576 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11577 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11578 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11579 not output priorities.
11580 (pack_ts_function_decl_value_fields): Likewise.
11581 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11582 not input priorities.
11583 (unpack_ts_function_decl_value_fields): Likewise.
11584 * symtab.c (symbol_priority_map): Declare.
11585 (init_priority_hash): Declare.
11586 (symtab_unregister_node): Unregister from priority hash, too.
11587 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11589 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11590 (symbol_priority_info): New function.
11591 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11593 * tree-core.h (tree_priority_map): Remove.
11595 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11597 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11598 0xff to uint64_t before shifting it up.
11600 2014-06-20 Julian Brown <julian@codesourcery.com>
11601 Chung-Lin Tang <cltang@codesourcery.com>
11603 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11604 TARGET_THUMB1_ONLY. Add comments.
11606 2014-06-19 Tom de Vries <tom@codesourcery.com>
11608 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11609 return type to void.
11610 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11612 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11614 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11615 as "move", from depends_on.
11617 2014-06-19 Terry Guo <terry.guo@arm.com>
11619 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11622 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11624 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11626 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11628 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11631 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11632 addresses here if reload in progress or completed.
11634 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11636 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11637 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11638 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11639 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11640 (mips_register_priority): New function that implements the target
11641 hook TARGET_REGISTER_PRIORITY.
11642 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11643 (mips_lra_p): Likewise for TARGET_LRA_P.
11644 (TARGET_REGISTER_PRIORITY): Define macro.
11645 (TARGET_SPILL_CLASS): Likewise.
11646 (TARGET_LRA_P): Likewise.
11647 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11649 (REG_CLASS_NAMES): Likewise.
11650 (REG_CLASS_CONTENTS): Likewise.
11651 (BASE_REG_CLASS): Use M16_SP_REGS.
11652 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11653 New set attribute to enable alternatives depending on the register
11655 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11656 (*lea64): Disable pattern for MIPS16.
11657 * config/mips/mips.opt (mlra): New option.
11659 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11661 * lra-constraints.c (base_to_reg): New function.
11662 (process_address): Use new function.
11664 2014-06-18 Tom de Vries <tom@codesourcery.com>
11666 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11667 * config/aarch64/aarch64.c
11668 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11669 (aarch64_emit_call_insn): New function.
11670 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11672 * config/aarch64/aarch64.md (define_expand "call_internal")
11673 (define_expand "call_value_internal", define_expand "sibcall_internal")
11674 (define_expand "sibcall_value_internal"): New.
11675 (define_expand "call", define_expand "call_value")
11676 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11677 expand variant and aarch64_emit_call_insn.
11679 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11680 Tom de Vries <tom@codesourcery.com>
11682 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11683 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11685 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11686 clobbers to CALL_INSN_FUNCTION_USAGE.
11687 (define_expand "sibcall_internal")
11688 (define_expand "sibcall_value_internal"): New.
11689 (define_expand "call", define_expand "call_value"): Add argument to
11690 arm_emit_call_insn.
11691 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11692 (define_expand "sibcall_value"): Use sibcall_value_internal and
11693 arm_emit_call_insn.
11695 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11697 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11699 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11701 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11704 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11706 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11707 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11708 annotations. Fix DWARF information.
11710 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11712 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11713 __udivmoddi4, and fixups for negative operands.
11715 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11717 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11719 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11721 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11724 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11726 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11729 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11731 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11732 describing register usage on function entry and exit.
11734 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11736 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11737 (__aeabi_ldivmod): Fix whitespace.
11739 2014-06-18 Andreas Schwab <schwab@suse.de>
11741 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11742 Remove blank line after @item.
11744 2014-06-18 Richard Henderson <rth@redhat.com>
11747 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11749 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11751 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11752 POST_MODIFY for neon loads and stores.
11753 (arm_print_operand): Output post-index register for neon loads and
11756 2014-06-18 Richard Biener <rguenther@suse.de>
11758 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11760 2014-06-18 Richard Biener <rguenther@suse.de>
11762 * tree-pass.h (make_pass_dce_loop): Remove.
11763 * passes.def: Replace pass_dce_loop with pass_dce.
11764 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11765 changed free niter estimates and reset the scev cache.
11766 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11767 make_pass_dce_loop): Remove.
11768 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11769 (fini_copy_prop): Return whether something changed. Always
11770 let substitute_and_fold perform DCE and free niter estimates
11771 and reset the scev cache if so.
11772 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11773 (pass_data_copy_prop): Do not unconditionally schedule
11774 cleanup-cfg or update-ssa.
11776 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11778 PR tree-optimization/61518
11779 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11780 reduction var is used in reduction stmt or phi-function only.
11782 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11784 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11786 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11788 PR tree-optimization/61517
11789 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11790 whose rhs's first tree is the source expression instead of the
11792 (find_bswap_or_nop): Likewise.
11793 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11794 gimple stmt whose rhs's first tree is the source. In the memory source
11795 case, move the stmt to be replaced close to one of the original load to
11796 avoid the problem of a store between the load and the stmt's original
11798 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11801 2014-06-18 Andreas Schwab <schwab@suse.de>
11803 PR rtl-optimization/54555
11804 * postreload.c (move2add_use_add2_insn): Substitute
11805 STRICT_LOW_PART only if it is cheaper.
11807 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11809 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11810 Do not use unspec as call operand. Use memory_operand instead of
11811 memory_nox32_operand and add "m" operand constraint. Disable
11812 pattern for TARGET_X32.
11813 (*sibcall_pop_memory): Ditto.
11814 (*sibcall_value_memory): Ditto.
11815 (*sibcall_value_pop_memory): Ditto.
11816 (sibcall peepholes): Merge SImode and DImode patterns using
11817 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11818 Disable pattern for TARGET_X32. Check if eliminated register is
11819 really dead after call insn. Generate call RTX without unspec operand.
11820 (sibcall_value peepholes): Ditto.
11821 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11822 instead of memory_nox32_operand. Check if eliminated register is
11823 really dead after call insn. Generate call RTX without unspec operand.
11824 (sibcall_value_pop peepholes): Ditto.
11825 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11827 2014-06-18 Terry Guo <terry.guo@arm.com>
11830 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11833 2014-06-18 Olivier Hainque <hainque@adacore.com>
11835 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11836 memorization of the end of block source location.
11837 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11838 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11839 end source location info we have on the block entry/exit code we
11842 2014-06-18 Richard Biener <rguenther@suse.de>
11844 * common.opt (fssa-phiopt): New option.
11845 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11847 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11848 * doc/invoke.texi (-fssa-phiopt): Document.
11850 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11852 * genattrtab.c (n_bypassed): New variable.
11853 (process_bypasses): Initialise n_bypassed.
11854 Count number of bypassed reservations.
11855 (make_automaton_attrs): Allocate space for bypassed reservations
11856 rather than number of bypasses.
11858 2014-06-18 Richard Biener <rguenther@suse.de>
11860 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11861 we propagated anything.
11862 (substitute_and_fold_dom_walker::before_dom_children): Something
11863 changed if we propagated into PHI arguments.
11864 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11867 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11869 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11871 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11872 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11873 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11874 Introduces alternative way of loads group permutaions.
11875 (vect_transform_grouped_load): Try alternative way of permutations.
11877 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11879 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11880 changed in ORT_TARGET region, don't jump to do_outer.
11881 (struct gimplify_adjust_omp_clauses_data): New type.
11882 (gimplify_adjust_omp_clauses_1): Adjust for data being
11883 a struct gimplify_adjust_omp_clauses_data pointer instead
11884 of tree *. Pass pre_p as a new argument to
11885 lang_hooks.decls.omp_finish_clause hook.
11886 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11887 splay_tree_foreach to pass both list_p and pre_p.
11888 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11889 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11890 gimplify_adjust_omp_clauses callers.
11891 * langhooks.c (lhd_omp_finish_clause): New function.
11892 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11893 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11894 * langhooks.h (struct lang_hooks_for_decls): Add a new
11895 gimple_seq * argument to omp_finish_clause hook.
11896 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11897 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11898 (scan_omp_parallel, lower_omp_for): When adding
11899 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11900 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11901 * tree-nested.c (convert_nonlocal_omp_clauses,
11902 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11903 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11905 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11907 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11908 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11910 2014-06-17 Xinliang David Li <davidxl@google.com>
11912 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11913 * passes.c (pass_init_dump_file): Do not set initialize
11914 flag to false unconditionally.
11916 2014-06-17 Richard Biener <rguenther@suse.de>
11918 * genopinit.c (main): Use vec<>::qsort method.
11919 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11921 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11923 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11925 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11926 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11927 (mips_move_to_gpr_cost): Remove ST_REGS case.
11928 (mips_move_from_gpr_cost): Likewise.
11929 (mips_register_move_cost): Likewise.
11930 (mips_secondary_reload_class): Likewise.
11932 2014-06-17 Richard Biener <rguenther@suse.de>
11934 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11935 (pass_all_optimizations): Move 3rd copy-prop pass from after
11936 fre to before ifcombine/phiopt.
11938 2014-06-17 Richard Biener <rguenther@suse.de>
11940 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11941 and allow all blocks to be forwarders.
11943 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11946 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11947 variable 'size'; calculate 'size' right in the front; use
11948 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11949 pcum->aapcs_stack_words.
11951 2014-06-17 Nick Clifton <nickc@redhat.com>
11953 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11954 (umulhi3, mulsidi3, umulsidi3): Likewise.
11956 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11958 PR middle-end/61508
11959 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11960 check for section name.
11962 2014-06-17 Richard Biener <rguenther@suse.de>
11964 * tree-ssa-propagate.c: Include domwalk.h.
11965 (substitute_and_fold): Outline main worker into a domwalker ...
11966 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11967 Schedule stmts we can fully propagate for removal. Remove
11969 (substitute_and_fold): Apply a dominator walk to perform
11970 substitution. Process stmts scheduled for removal here.
11972 2014-06-17 Richard Biener <rguenther@suse.de>
11974 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11975 of PHI node moving.
11977 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11979 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11980 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11981 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11982 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11983 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11985 (get_fpscr) : Likewise.
11987 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11989 PR rtl-optimization/61325
11990 * lra-constraints.c (valid_address_p): Add forward declaration.
11991 (simplify_operand_subreg): Check address validity before and after
11992 alter_reg of memory subreg.
11994 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11996 * config/i386/i386.c (decide_alg): Correctly handle
11997 maximum size of stringop algorithm.
11999 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12001 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12003 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12005 PR rtl-optimization/61522
12006 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12008 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12011 * symtab.c (symtab_node::reset_section): New method.
12012 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12014 * cgraph.h (reset_section): Declare.
12015 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12016 do not consider comdat locals.
12017 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12019 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12020 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12021 reset sections of symbols dragged out of the comdats.
12022 (function_and_variable_visibility): Reset sections of
12025 2014-06-16 Richard Biener <rguenther@suse.de>
12027 PR tree-optimization/61482
12028 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12029 [-INF(OVF), +INF(OVF)] range.
12031 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12033 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12034 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12035 handling 32-bit multiplication.
12037 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12039 PR middle-end/61430
12040 * lra-lives.c (process_bb_lives): Skip creating copy during
12041 insn scan when src/dest has constrained to same regno.
12043 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12045 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12046 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12048 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12050 * asan.c (check_func): New function.
12051 (maybe_create_ssa_name): Likewise.
12052 (build_check_stmt_with_calls): Likewise.
12053 (use_calls_p): Likewise.
12054 (report_error_func): Change interface.
12055 (build_check_stmt): Allow non-integer lengths; add support
12057 (asan_instrument): Likewise.
12058 (instrument_mem_region_access): Moved code to build_check_stmt.
12059 (instrument_derefs): Likewise.
12060 (instrument_strlen_call): Likewise.
12061 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12062 * doc/invoke.texi: Describe new parameter.
12063 * params.def: Define new parameter.
12064 * params.h: Likewise.
12065 * sanitizer.def: Describe new builtins.
12067 2014-06-16 Richard Biener <rguenther@suse.de>
12069 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12070 Make all defs available at the end.
12071 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12073 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12076 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12078 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12081 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12082 initialization. Replace remaining use of uid.
12084 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12086 * c-family/c-common.c (handle_tls_model_attribute): Use
12087 set_decl_tls_model.
12088 * c-family/c-common.c (handle_tls_model_attribute): Use
12089 set_decl_tls_model.
12090 * cgraph.h (struct varpool_node): Add tls_model.
12091 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12092 * tree.h (DECL_TLS_MODEL): Update.
12093 (DECL_THREAD_LOCAL_P): Check that variable is static.
12094 (decl_tls_model): Declare.
12095 (set_decl_tls_model): Declare.
12096 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12097 set symbol prorperties.
12098 (get_emutls_init_templ_addr): Cleanup.
12099 (new_emutls_decl): Update.
12100 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12101 (lto_input_varpool_node): Likewise.
12102 * lto-streamer-out.c (hash_tree): Likewise.
12103 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12104 not stream DECL_TLS_MODEL.
12105 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12106 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12108 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12110 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12112 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12114 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12115 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12117 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12118 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12119 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12120 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12121 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12122 (df_get_artificial_defs, df_get_artificial_uses)
12123 (df_single_def, df_single_use): Update accordingly.
12124 (df_refs_chain_dump): Take the first element in a linked list as
12125 parameter, rather than a pointer to an array of pointers.
12126 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12127 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12128 (df_chain_create_bb_process_use): Likewise.
12129 (df_md_bb_local_compute_process_def): Likewise.
12130 * fwprop.c (process_defs, process_uses): Likewise.
12131 (register_active_defs, update_uses): Likewise.
12132 (forward_propagate_asm): Update for new df_ref linking.
12133 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12134 (df_null_ref_rec, df_null_mw_rec): Likewise.
12135 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12137 (df_scan_free_bb_info): Remove check for null artificial_defs.
12138 (df_install_ref_incremental): Adjust for new df_ref linking.
12139 Use a single-element insertion rather than a full sort.
12140 (df_ref_chain_delete_du_chain): Take the first element
12141 in a linked list as parameter, rather than a pointer to an array of
12143 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12144 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12145 (df_insn_info_delete): Remove check for null defs and call to
12146 df_scan_free_mws_vec.
12147 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12148 null rather than df_null_*_rec.
12149 (df_insn_rescan_debug_internal): Likewise, and update null
12150 checks in the same way. Remove check for null defs.
12151 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12152 Move a single element rather doing a full sort.
12153 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12155 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12156 Initialize df_ref and df_mw_hardreg lists to null rather than
12158 (df_ref_compare): Take df_refs as parameter, transferring the
12159 old interface to...
12160 (df_ref_ptr_compare): ...this new function.
12161 (df_sort_and_compress_refs): Update accordingly.
12162 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12163 old interface to...
12164 (df_mw_ptr_compare): ...this new function.
12165 (df_sort_and_compress_mws): Update accordingly.
12166 (df_install_refs, df_install_mws): Return a linked list rather than
12167 an array of pointers.
12168 (df_refs_add_to_chains): Assert that old lists are empty rather
12170 (df_insn_refs_verify): Don't handle null defs speciailly.
12171 * web.c (union_match_dups): Update for new df_ref linking.
12173 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12175 * df.h (df_ref_create, df_ref_remove): Delete.
12176 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12177 (df_ref_remove): Likewise.
12179 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12181 * df.h (df_single_def, df_single_use): New functions.
12182 * ira.c (find_moveable_pseudos): Use them.
12184 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12186 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12187 * df-problems.c (df_note_bb_compute): Use it.
12188 * regstat.c (regstat_bb_compute_ri): Likewise.
12190 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12192 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12193 * cse.c (cse_extended_basic_block): Use them.
12194 * dce.c (mark_artificial_use): Likewise.
12195 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12196 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12197 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12198 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12199 (df_simulate_initialize_backwards): Likewise.
12200 (df_simulate_finalize_backwards): Likewise.
12201 (df_simulate_initialize_forwards): Likewise.
12202 (df_md_simulate_artificial_defs_at_top): Likewise.
12203 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12204 * regrename.c (init_rename_info): Likewise.
12205 * regstat.c (regstat_bb_compute_ri): Likewise.
12206 (regstat_bb_compute_calls_crossed): Likewise.
12208 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12210 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12211 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12212 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12213 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12214 * combine.c (create_log_links): Likewise.
12215 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12216 (try_eliminate_compare): Likewise.
12217 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12218 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12219 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12220 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12221 (word_dce_process_block, dce_process_block): Likewise.
12222 * ddg.c (def_has_ccmode_p): Likewise.
12223 * df-core.c (df_bb_regno_first_def_find): Likewise.
12224 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12225 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12226 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12227 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12228 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12229 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12230 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12231 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12232 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12233 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12234 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12235 * fwprop.c (local_ref_killed_between_p): Likewise.
12236 (all_uses_available_at, free_load_extend): Likewise.
12237 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12238 * hw-doloop.c (scan_loop): Likewise.
12239 * ifcvt.c (dead_or_predicable): Likewise.
12240 * init-regs.c (initialize_uninitialized_regs): Likewise.
12241 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12242 (process_bb_node_lives): Likewise.
12243 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12244 (find_moveable_pseudos): Likewise.
12245 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12246 * recog.c (peep2_find_free_register): Likewise.
12247 * ree.c (get_defs): Likewise.
12248 * regstat.c (regstat_bb_compute_ri): Likewise.
12249 (regstat_bb_compute_calls_crossed): Likewise.
12250 * sched-deps.c (find_inc, find_mem): Likewise.
12251 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12252 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12253 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12254 (prepare_shrink_wrap): Likewise.
12255 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12256 * web.c (union_defs, pass_web::execute): Likewise.
12257 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12258 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12260 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12262 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12263 to inheritance pseudos.
12264 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12266 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12269 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12270 (BU_MISC_2): Rename to ...
12271 (BU_LDBL128_2): ... this.
12272 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12273 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12274 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12275 RS6000_BTM_LDBL128.
12276 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12277 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12278 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12279 (unpacktf_1): Likewise.
12280 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12281 (__builtin_longdouble_dw1): Likewise.
12282 * doc/sourcebuild.texi (longdouble128): Document.
12284 2014-06-13 Jeff Law <law@redhat.com>
12286 PR rtl-optimization/61094
12287 PR rtl-optimization/61446
12288 * ree.c (combine_reaching_defs): Get the mode for the copy from
12289 the extension insn rather than the defining insn.
12291 2014-06-13 Dehao Chen <dehao@google.com>
12293 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12295 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12297 * doc/install.texi (--enable-linker-plugin-configure-flags)
12298 (--enable-linker-plugin-flags): Document new flags.
12300 2014-06-13 Martin Jambor <mjambor@suse.cz>
12303 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12304 cache_token if returning early.
12306 2014-06-13 Nick Clifton <nickc@redhat.com>
12308 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12309 requested alignment is active.
12310 (LABEL_ALIGN): Likewise.
12311 (LOOP_ALIGN): Likewise.
12313 2014-06-13 Richard Biener <rguenther@suse.de>
12315 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12316 Rewrite to propagate the VN result into all uses where
12317 possible and to remove stmts becoming dead because of that.
12318 (eliminate): Generalize stmt removal handling, remove in
12319 reverse dominator order to support proper debug stmt
12320 generation. Update stmts before removing stmts.
12321 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12323 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12325 PR tree-optimization/61375
12326 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12327 symbolic number cannot be represented in an uint64_t.
12328 (find_bswap_or_nop_1): Likewise.
12330 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12332 * symtab.c (symtab_node::reset_section): New method.
12333 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12335 * cgraph.h (reset_section): Declare.
12336 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12337 do not consider comdat locals.
12338 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12340 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12341 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12342 reset sections of symbols dragged out of the comdats.
12343 (function_and_variable_visibility): Reset sections of
12346 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12348 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12349 to use symtab and decl_binds_to_current_def_p
12350 * tree-vectorizer.c (increase_alignment): Increase alignment
12351 of alias target, too.
12353 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12355 PR middle-end/61486
12356 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12357 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12358 if outer combined construct is distribute.
12359 (gimplify_omp_for): For OMP_DISTRIBUTE set
12360 gimplify_omp_ctxp->distribute.
12361 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12362 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12363 mapping into decl map.
12365 2014-06-12 Jason Merrill <jason@redhat.com>
12367 * common.opt (fabi-version): Change default to 0.
12369 2014-06-12 Jason Merrill <jason@redhat.com>
12371 * toplev.c (process_options): Reject -fabi-version=1.
12373 2014-06-12 Jeff Law <law@redhat.com>
12375 PR tree-optimization/61009
12376 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12377 value when we stop processing a block due to problematic PHIs.
12379 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12381 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12382 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12383 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12384 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12385 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12386 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12387 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12388 are not in the spec.
12390 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12393 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12394 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12397 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12399 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12401 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12404 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12405 loading from address spaces.
12407 2014-06-12 Martin Liska <mliska@suse.cz>
12410 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12411 statement is reachable.
12413 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12415 * symtab.c (section_hash): New hash.
12416 (symtab_unregister_node): Clear section before freeing.
12417 (hash_section_hash_entry): New haser.
12418 (eq_sections): New function.
12419 (symtab_node::set_section_for_node): New method.
12420 (set_section_1): Update.
12421 (symtab_node::set_section): Take string instead of tree as parameter.
12422 (symtab_resolve_alias): Update.
12423 * cgraph.h (section_hash_entry_d): New structure.
12424 (section_hash_entry): New typedef.
12425 (cgraph_node): Change comdat_group_ to x_comdat_group,
12426 change section_ to x_section and turn into section_hash_entry;
12427 update accestors; put set_section_for_node offline.
12428 * tree.c (decl_section_name): Turn into string.
12429 (set_decl_section_name): Change parameter to be string.
12430 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12431 * sdbout.c (sdbout_one_type): Update.
12432 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12433 * varasm.c (IN_NAMED_SECTION, get_named_section,
12434 resolve_unique_section, hot_function_section, get_named_text_section,
12435 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12436 make_decl_rtl, default_unique_section): Update.
12437 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12438 (c6x_elf_unique_section): Update.
12439 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12440 * config/pa/pa.c (pa_function_section): Update.
12441 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12442 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12443 * config/arc/arc.c (arc_in_small_data_p): Update.
12444 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12445 * config/mcore/mcore.c (mcore_unique_section): Update.
12446 * config/mips/mips.c (mips16_build_function_stub): Update.
12447 (mips16_build_call_stub): Update.
12448 (mips_function_rodata_section): Update.
12449 (mips_in_small_data_p): Update.
12450 * config/score/score.c (score_in_small_data_p): Update.
12451 * config/rx/rx.c (rx_in_small_data): Update.
12452 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12453 (rs6000_xcoff_asm_named_section): Update.
12454 (rs6000_xcoff_unique_section): Update.
12455 * config/frv/frv.c (frv_string_begins_with): Update.
12456 (frv_in_small_data_p): Update.
12457 * config/v850/v850.c (v850_encode_data_area): Update.
12458 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12459 (bfin_handle_l1_data_attribute): Update.
12460 (bfin_handle_l2_attribute): Update.
12461 * config/mep/mep.c (mep_unique_section): Update.
12462 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12464 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12465 (h8300_handle_tiny_data_attribute): Update.
12466 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12467 (m32r_in_small_data_p): Update.
12468 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12469 * config/i386/i386.c (ix86_in_large_data_p): Update.
12470 * config/i386/winnt.c (i386_pe_unique_section): Update.
12471 * config/darwin.c (darwin_function_section): Update.
12472 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12473 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12474 (new_emutls_decl): Update.
12475 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12476 input_varpool_node): Update.
12477 (ead_string_cst): Turn to ...
12478 (read_string): ... this one.
12479 * dwarf2out.c (secname_for_decl): Update.
12480 * asan.c (asan_protect_global): Update.
12482 2014-06-11 DJ Delorie <dj@redhat.com>
12484 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12486 * config/rx/rx.c (rx_option_override): Likewise.
12487 (rx_align_for_label): Likewise.
12489 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12491 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12493 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12496 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12498 * common.md: New file.
12499 * doc/md.texi: Update description of generic, machine-independent
12501 * config/s390/constraints.md (e): Delete.
12502 * Makefile.in (md_file): Include common.md.
12503 * config/m32c/t-m32c (md_file): Likewise.
12504 * genpreds.c (general_mem): New array.
12505 (generic_constraint_letters): Remove constraints now defined by
12507 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12508 Allow the first character to be '<' or '>' as well.
12509 * genoutput.c (general_mem): New array.
12510 (indep_constraints): Remove constraints now defined by common.md.
12511 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12512 Remove special handling of 'm'.
12513 * ira-costs.c (record_reg_classes): Remove special handling of
12514 constraints now defined by common.md.
12515 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12516 * ira-lives.c (single_reg_class): Likewise.
12517 (ira_implicitly_set_insn_hard_regs): Likewise.
12518 * lra-constraints.c (reg_class_from_constraints): Likewise.
12519 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12520 * postreload.c (reload_cse_simplify_operands): Likewise.
12521 * reload.c (push_secondary_reload, scratch_reload_class)
12522 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12523 * reload1.c (maybe_fix_stack_asms): Likewise.
12524 * targhooks.c (default_secondary_reload): Likewise.
12525 * stmt.c (parse_output_constraint): Likewise.
12526 * recog.c (preprocess_constraints): Likewise.
12527 (constrain_operands, peep2_find_free_register): Likewise.
12528 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12529 must be handled specially.
12531 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12533 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12534 * genpreds.c (have_const_dbl_constraints): Delete.
12535 (add_constraint): Don't set it.
12536 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12537 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12538 constraints using the lookup_constraint logic.
12539 * ira-lives.c (single_reg_class): Likewise.
12540 * ira.c (ira_setup_alts): Likewise.
12541 * lra-constraints.c (process_alt_operands): Likewise.
12542 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12543 * reload.c (find_reloads): Likewise.
12545 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12547 * genpreds.c (const_int_start, const_int_end): New variables.
12548 (choose_enum_order): Output CONST_INT constraints before memory
12550 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12552 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12553 * ira.c (ira_setup_alts): Likewise.
12554 * lra-constraints.c (process_alt_operands): Likewise.
12555 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12556 * reload.c (find_reloads): Likewise.
12558 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12560 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12561 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12562 * recog.c (preprocess_constraints): Update accordingly.
12564 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12566 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12567 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12568 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12569 * genpreds.c (print_type_tree): New function.
12570 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12571 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12572 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12573 Write out enum constraint_type and get_constraint_type.
12574 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12575 constraint_num rather than a constraint string.
12576 (satisfies_address_constraint_p): Likewise.
12577 (reg_class_from_constraints): Avoid old constraint macros.
12578 (process_alt_operands, process_address_1): Likewise.
12579 (curr_insn_transform): Likewise.
12580 * ira-costs.c (record_reg_classes): Likewise.
12581 (record_operand_costs): Likewise.
12582 * ira-lives.c (single_reg_class): Likewise.
12583 (ira_implicitly_set_insn_hard_regs): Likewise.
12584 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12585 * postreload.c (reload_cse_simplify_operands): Likewise.
12586 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12587 (constrain_operands, peep2_find_free_register): Likewise.
12588 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12589 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12590 * reload1.c (maybe_fix_stack_asms): Likewise.
12591 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12592 * targhooks.c (default_secondary_reload): Likewise.
12593 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12594 to EXTRA_CONSTRAINT_STR.
12595 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12597 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12599 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12600 (write_constraint_satisfied_p_array): ...this new function.
12601 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12603 (write_insn_preds_c): Update accordingly.
12605 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12607 * genpreds.c (write_lookup_constraint): Rename to...
12608 (write_lookup_constraint_1): ...this.
12609 (write_lookup_constraint_array): New function.
12610 (write_tm_preds_h): Define lookup_constraint as an inline function
12611 that uses write_lookup_constraint_array where possible.
12612 (write_insn_preds_c): Update for the changes above.
12614 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12616 * doc/md.texi (regclass_for_constraint): Rename to...
12617 (reg_class_for_constraint): ...this.
12618 * genpreds.c (num_constraints, enum_order, register_start)
12619 (register_end, satisfied_start, memory_start, memory_end)
12620 (address_start, address_end): New variables.
12621 (add_constraint): Count the number of constraints.
12622 (choose_enum_order): New function.
12623 (write_enum_constraint_num): Iterate over enum_order.
12624 (write_regclass_for_constraint): Rename to...
12625 (write_reg_class_for_constraint_1): ...this and update output
12627 (write_constraint_satisfied_p): Rename to...
12628 (write_constraint_satisfied_p_1): ...this and update output
12629 accordingly. Do nothing if all extra constraints are register
12631 (write_insn_extra_memory_constraint): Delete.
12632 (write_insn_extra_address_constraint): Delete.
12633 (write_range_function): New function.
12634 (write_tm_preds_h): Define constraint_satisfied_p and
12635 reg_class_for_constraint as inline functions that do a range check
12636 before calling the out-of-line function. Use write_range_function
12637 to implement insn_extra_{register,memory,address}_constraint,
12638 the first of which is new.
12639 (write_insn_preds_c): Update after above changes to write_* functions.
12640 (main): Call choose_enum_order.
12642 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12644 PR tree-optimization/61306
12645 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12646 expression instead of its size.
12647 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12648 false to prevent optimization when the result is unpredictable due to
12649 arithmetic right shift of signed type with highest byte is set.
12650 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12651 (init_symbolic_number): Likewise.
12652 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12653 when the result is unpredictable due to sign extension.
12655 2014-06-11 Terry Guo <terry.guo@arm.com>
12657 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12658 (*thumb1_addsi3): Ditto.
12659 (*thumb_subdi3): Ditto.
12660 (thumb1_subsi3_insn): Ditto.
12661 (*thumb_mulsi3): Ditto.
12662 (*thumb_mulsi3_v6): Ditto.
12663 (*thumb1_andsi3_insn): Ditto.
12664 (thumb1_bicsi3): Ditto.
12665 (*thumb1_iorsi3_insn): Ditto.
12666 (*thumb1_xorsi3_insn): Ditto.
12667 (*thumb1_ashlsi3): Ditto.
12668 (*thumb1_ashrsi3): Ditto.
12669 (*thumb1_lshrsi3): Ditto.
12670 (*thumb1_rotrsi3): Ditto.
12671 (*thumb1_negdi2): Ditto.
12672 (*thumb1_negsi2): Ditto.
12673 (*thumb1_abssi2): Ditto.
12674 (*thumb1_neg_abssi2): Ditto.
12675 (*thumb1_one_cmplsi2): Ditto.
12676 (*thumb1_zero_extendhisi2): Ditto.
12677 (*thumb1_zero_extendqisi2): Ditto.
12678 (*thumb1_zero_extendqisi2_v6): Ditto.
12679 (thumb1_extendhisi2): Ditto.
12680 (thumb1_extendqisi2): Ditto.
12681 (*thumb1_movdi_insn): Ditto.
12682 (*thumb1_movsi_insn): Ditto.
12683 (*thumb1_movhi_insn): Ditto.
12684 (thumb_movhi_clobber): Ditto.
12685 (*thumb1_movqi_insn): Ditto.
12686 (*thumb1_movhf): Ditto.
12687 (*thumb1_movsf_insn): Ditto.
12688 (*thumb_movdf_insn): Ditto.
12689 (movmem12b): Ditto.
12691 (cbranchqi4): Ditto.
12692 (cbranchsi4_insn): Ditto.
12693 (cbranchsi4_scratch): Ditto.
12694 (*negated_cbranchsi4): Ditto.
12695 (*tbit_cbranch): Ditto.
12696 (*tlobits_cbranch): Ditto.
12697 (*tstsi3_cbranch): Ditto.
12698 (*cbranchne_decr1): Ditto.
12699 (*addsi3_cbranch): Ditto.
12700 (*addsi3_cbranch_scratch): Ditto.
12701 (*thumb_cmpdi_zero): Ditto.
12702 (cstoresi_eq0_thumb1): Ditto.
12703 (cstoresi_ne0_thumb1): Ditto.
12704 (*cstoresi_eq0_thumb1_insn): Ditto.
12705 (*cstoresi_ne0_thumb1_insn): Ditto.
12706 (cstoresi_nltu_thumb1): Ditto.
12707 (cstoresi_ltu_thumb1): Ditto.
12708 (thumb1_addsi3_addgeu): Ditto.
12709 (*thumb_jump): Ditto.
12710 (*call_reg_thumb1_v5): Ditto.
12711 (*call_reg_thumb1): Ditto.
12712 (*call_value_reg_thumb1_v5): Ditto.
12713 (*call_value_reg_thumb1): Ditto.
12714 (*call_insn): Ditto.
12715 (*call_value_insn): Ditto.
12716 (thumb1_casesi_internal_pic): Ditto.
12717 (thumb1_casesi_dispatch): Ditto.
12718 (*thumb1_indirect_jump): Ditto.
12719 (prologue_thumb1_interwork): Ditto.
12720 (*epilogue_insns): Ditto.
12721 (consttable_1): Ditto.
12722 (consttable_2): Ditto.
12723 (tablejump): Ditto.
12724 (*thumb1_tablejump): Ditto.
12725 (thumb_eh_return): Ditto.
12726 (define_peephole2): Two of them are thumb1 only and got moved into
12727 new file thumb1.md.
12728 (define_split): Six of them are thumb1 only and got moved into new
12730 * config/arm/thumb1.md: New file comprised of above thumb1 only
12733 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12735 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12736 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12738 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12739 (aarch64_crc_builtin_datum): New struct.
12740 (aarch64_crc_builtin_data): New.
12741 (aarch64_init_crc32_builtins): New function.
12742 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12743 (aarch64_crc32_expand_builtin): New.
12744 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12745 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12746 __ARM_FEATURE_CRC32 when appropriate.
12747 (TARGET_CRC32): Define.
12748 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12749 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12750 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12751 (aarch64_<crc_variant>): New pattern.
12752 * config/aarch64/arm_acle.h: New file.
12753 * config/aarch64/iterators.md (CRC): New int iterator.
12754 (crc_variant, crc_mode): New int attributes.
12755 * doc/aarch64-acle-intrinsics.texi: New file.
12756 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12757 Include aarch64-acle-intrinsics.texi.
12759 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12761 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12762 check for stores group of length 3.
12763 (vect_permute_store_chain): New permutations for stores group of
12765 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12766 of vec_perm_shuffle for the new permutations.
12768 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12770 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12771 table rewriting temporarily on targets not supporting ONE_ONLY.
12773 2014-06-11 Richard Biener <rguenther@suse.de>
12775 PR middle-end/61437
12777 2014-06-04 Richard Biener <rguenther@suse.de>
12779 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12780 TREE_PUBLIC and DECL_EXTERNAL decls.
12782 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12784 * varasm.c (set_implicit_section): New function.
12785 (resolve_unique_section): Use it to set implicit section
12787 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12788 (default_function_section): Likewise.
12789 (decl_binds_to_current_def_p): Constify argument.
12790 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12791 * asan.c (asan_protect_global): Use
12792 symtab_get_node (decl)->implicit_section.
12793 * symtab.c (dump_symtab_base): Dump implicit sections.
12794 (verify_symtab_base): Verify sanity of sectoins and comdats.
12795 (symtab_resolve_alias): Alias share the section of its target.
12796 (set_section_1): New function.
12797 (symtab_node::set_section): Move here, recurse to aliases.
12798 (verify_symtab): Check for duplicated symtab lists.
12799 * tree-core.h (implicit_section_name_p): Remove.
12800 * tree-vect-data-refs.c: Include varasm.h.
12801 (vect_can_force_dr_alignment_p): Fix conditional on when
12802 decl bints to current definition; use
12803 symtab_get_node (decl)->implicit_section.
12804 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12805 * cgraph.h (struct symtab_node): Add implicit_section.
12806 (set_section): Rename to ...
12807 (set_section_for_node): ... this one.
12808 (set_section): Declare.
12809 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12810 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12811 input_overwrite_node, input_varpool_node): Stream implicit_section.
12812 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12813 removal; it will fail in LTO.
12815 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12817 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12818 Change second alternative type to f_mcr.
12819 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12820 and 12th alternatives' types to f_mcr and f_mrc.
12821 (*movdi_aarch64): Same for 12th and 13th alternatives.
12822 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12823 (aarch64_movtilow_tilow): Change type to fmov.
12825 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12827 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12828 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12830 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12832 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12834 (aarch64_sqrdmulh_lane<mode>): Likewise.
12835 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12836 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12837 (aarch64_sqdmulh_laneq<mode>): New expander.
12838 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12839 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12840 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12841 (aarch64_sqdmulh_lane<mode>): New expander.
12842 (aarch64_sqrdmulh_lane<mode>): Likewise.
12843 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12844 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12845 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12846 (aarch64_sqdmlal_laneq<mode>): Likewise.
12847 (aarch64_sqdmlsl_lane<mode>): Likewise.
12848 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12849 (aarch64_sqdmlal2_lane<mode>): Likewise.
12850 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12851 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12852 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12853 (aarch64_sqdmull_lane<mode>): Likewise.
12854 (aarch64_sqdmull_laneq<mode>): Likewise.
12855 (aarch64_sqdmull2_lane<mode>): Likewise.
12856 (aarch64_sqdmull2_laneq<mode>): Likewise.
12858 2014-06-10 Richard Biener <rguenther@suse.de>
12860 PR tree-optimization/61438
12861 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12862 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12863 insertion of IVs if running PRE.
12864 (eliminate): Adjust.
12865 (pass_pre::execute): Likewise.
12866 (pass_fre::execute): Likewise.
12868 2014-06-10 Richard Biener <rguenther@suse.de>
12870 PR middle-end/61456
12871 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12872 Do not use the main variant for the type comparison.
12873 (ncr_compar): Likewise.
12874 (nonoverlapping_component_refs_p): Likewise.
12876 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12878 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12879 REG_CFA_RESTORE mode.
12881 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12883 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12884 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12885 expand_vec_perm_pblendv.
12887 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12889 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12891 Simplify description of __crc32d and __crc32cd intrinsics.
12892 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12895 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12898 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12899 * config.in: Regenerate.
12900 * configure: Likewise.
12902 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12904 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12906 (intersect_static_var_sets): Remove.
12907 (propagate): Do not prune local statics.
12909 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12912 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12913 Set lastprivate_firstprivate even if omp_private_outer_ref
12914 langhook returns true.
12915 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12916 langhook, call unshare_expr on new_var and call
12917 build_outer_var_ref to get the last argument.
12919 2014-06-10 Marek Polacek <polacek@redhat.com>
12922 * doc/extend.texi: Add cindex for transparent_union.
12924 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12926 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12927 init_symbolic_number ().
12929 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12931 PR middle-end/61141
12932 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12933 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12934 (verify_rtl_sharing): Likewise.
12936 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12939 * tree.c (build_qualified_type): Use a canonical type for
12942 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12944 * config/arm/arm-modes.def: Remove XFmode.
12946 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12949 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12950 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12951 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12952 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12953 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12954 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12955 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12956 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12957 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12959 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12961 * tree-core.h (tree_decl_with_vis): Remove section_name.
12963 2014-06-09 Kito Cheng <kito@0xlab.org>
12965 * ira.c (ira): Don't call init_caller_save if LRA enabled
12966 since LRA use its own infrastructure to handle that.
12968 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12970 * symtab.c (dump_symtab_base): Update dumping.
12971 (symtab_make_decl_local): Clear only DECL_COMDAT.
12972 * tree-vect-data-refs.c (Check that variable is static before
12973 tampering with sections.
12974 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12975 (cgraph_create_virtual_clone): Likewise.
12976 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12977 (decl_section_name, set_decl_section_name): New accessors.
12978 (find_decls_types_r): Do not walk section name
12979 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12980 (decl_comdat_group, decl_comdat_group_id): Constify.
12981 (decl_section_name, set_decl_section_name): Update.
12982 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12983 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12984 (cgraph_make_node_local_1): Clear section and comdat group.
12985 * cgraph.h (set_comdat_group): Sanity check.
12986 (get_section, set_section): New.
12987 * ipa-comdats.c (ipa_comdats): Use get_section.
12988 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12989 * lto-streamer-out.c: Do not follow section names.
12990 * c-family/c-common.c (handle_section_attribute): Update.
12991 * lto-cgraph.c (lto_output_node): Output section.
12992 (lto_output_varpool_node): Likewise.
12993 (read_comdat_group): Rename to ...
12994 (read_identifier): ... this one.
12995 (read_string_cst): New function.
12996 (input_node, input_varpool_node): Input section names.
12997 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12998 (new_emutls_decl): Update.
12999 (secname_for_decl): Check section names only of static vars.
13000 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13001 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13002 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13003 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13004 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13005 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13006 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13007 * config/v850/v850.c (v850_insert_attributes): Likewise.
13008 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13010 (h8300_handle_tiny_data_attribute): Likewise.
13011 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13012 (bfin_handle_l2_attribute): Likewise.
13014 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13016 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13017 remove static initializer.
13019 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13021 * varasm.c (use_blocks_for_decl_p): Check symbol table
13022 instead of alias attribute.
13023 (place_block_symbol): Recurse on aliases.
13025 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13027 * ipa-visibility.c: Include varasm.h
13028 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13030 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13032 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13033 outputting aliases.
13035 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13037 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13038 from test_insn into GGC space escape via SET_SRC.
13040 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13042 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13043 call statement, if any.
13044 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13045 statements, if any. Tidy up.
13047 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13050 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13051 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13052 handles swapping the two 64-bit double words on little endian
13053 systems. Include V1TImode and optionally TImode in VSX_LE so that
13054 these types are properly swapped. Change all of the insns and
13055 splits that do the 64-bit swaps to use VSX_LE.
13056 (vsx_le_perm_load_<mode>): Likewise.
13057 (vsx_le_perm_store_<mode>): Likewise.
13058 (splitters for little endian memory operations): Likewise.
13059 (vsx_xxpermdi2_le_<mode>): Likewise.
13060 (vsx_lxvd2x2_le_<mode>): Likewise.
13061 (vsx_stxvd2x2_le_<mode>): Likewise.
13063 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13066 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13067 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13068 and corresponding splitters. Zero extend general register
13069 or memory input operand to XMM temporary. Enable for
13070 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13071 (floatunssi<mode>2): Update expander predicate.
13073 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13075 PR rtl-optimization/61325
13076 * lra-constraints.c (process_address_1): Check scale equal to one
13077 to prevent transformation: base + scale * index => base + new_reg.
13079 2014-06-06 Richard Biener <rguenther@suse.de>
13081 PR tree-optimization/59299
13082 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13084 (nearest_common_dominator_of_uses): Likewise.
13085 (statement_sink_location): Adjust. Support sinking loads.
13087 2014-06-06 Martin Jambor <mjambor@suse.cz>
13089 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13090 (build_agg_jump_func_from_list): Likewise.
13091 (determine_known_aggregate_parts): Renamed to
13092 determine_locally_known_aggregate_parts. Moved some functionality
13093 to the two functions above, removed bound checks.
13095 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13097 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13098 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13099 (aarch64_progress_pointer): Likewise.
13100 (aarch64_copy_one_part_and_move_pointers): Likewise.
13101 (aarch64_expand_movmen): Likewise.
13102 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13103 * config/aarch64/aarch64.md (movmem<mode>): New.
13105 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13107 * targhooks.c (default_add_stmt_cost): Call target specific
13108 hook instead of default one.
13110 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13112 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13113 endianness instead of host endianness.
13114 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13117 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13120 * function.c (instantiate_decls): Process the saved static chain.
13121 (expand_function_start): If not optimizing, save the static chain
13123 * tree-nested.c (convert_all_function_calls): Always create the static
13124 chain for nested functions if not optimizing.
13126 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13128 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13130 2014-06-06 Richard Biener <rguenther@suse.de>
13132 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13133 (construct_init_block): Likewise.
13134 (construct_exit_block): Likewise.
13135 (pass_expand::execute): Likewise.
13136 * graphite.c (graphite_transforms): Replace check for current_loops
13137 with a check for > 1 loops.
13138 (pass_graphite_transforms::execute): Adjust.
13139 * ipa-split.c (split_function): Remove check for current_loops.
13140 * omp-low.c (expand_parallel_call): Likewise.
13141 (expand_omp_for_init_counts): Likewise.
13142 (extract_omp_for_update_vars): Likewise.
13143 (expand_omp_for_generic): Likewise.
13144 (expand_omp_sections): Likewise.
13145 (expand_omp_target): Likewise.
13146 * tracer.c (tail_duplicate): Likewise.
13147 (pass_tracer::execute): Likewise.
13148 * trans-mem.c (expand_transaction): Likewise.
13149 * tree-complex.c (expand_complex_div_wide): Likewise.
13150 * tree-eh.c (lower_resx): Likewise.
13151 (cleanup_empty_eh_merge_phis): Likewise.
13152 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13153 current_loops with a check for > 1 loops.
13154 (pass_predcom::execute): Adjust.
13155 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13156 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13157 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13158 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13159 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13160 * tree-switch-conversion.c (process_switch): Likewise.
13161 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13162 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13163 (execute_vrp): Likewise.
13164 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13166 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13168 * rtl.h (insn_location): Declare.
13169 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13170 with UNKNOWN_LOCATION.
13171 * emit-rtl.c (insn_location): New function.
13172 * final.c (notice_source_line): Check that the instruction has a
13173 location before retrieving it and use insn_location.
13174 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13175 * print-rtl.c (print_rtx): Likewise.
13177 2014-06-06 Richard Biener <rguenther@suse.de>
13179 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13181 2014-06-06 Christian Bruel <christian.bruel@st.com>
13183 PR tree-optimization/43934
13184 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13187 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13189 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13190 return NO_REGS for extra address and memory constraints. Handle
13191 operands that match (or are equivalent to something that matches)
13192 extra constant constraints. Ignore other non-register operands.
13194 2014-06-06 Alan Modra <amodra@gmail.com>
13197 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13198 * doc/tm.texi: Regenerate.
13199 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13200 Use throughout in place of REG_PARM_STACK_SPACE.
13201 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13202 "incoming" param. Pass to rs6000_function_parms_need_stack.
13203 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13204 prototype_p when incoming. Use function decl when incoming
13205 to handle K&R style functions.
13206 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13207 (INCOMING_REG_PARM_STACK_SPACE): Define.
13209 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13212 * cfgexpand.c (expand_debug_expr): Use address space of nested
13213 TREE_TYPE for ADDR_EXPR and MEM_REF.
13215 2014-06-05 Jeff Law <law@redhat.com>
13217 PR tree-optimization/61289
13218 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13219 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13220 looking for those which match LHS. All callers changed.
13221 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13222 parameters and code which manipulated them. All callers changed.
13223 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13224 and DST_MAP parameters. Simplify invalidation code by just calling
13225 invalidate_equivalences. All callers changed.
13226 (thread_across_edge): Simplify now that we don't need to maintain
13227 the map of equivalences to invalidate.
13229 2014-06-05 Kai Tietz <ktietz@redhat.com>
13230 Richard Henderson <rth@redhat.com>
13233 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13234 checking for !TARGET_X32.
13235 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13236 (sibcall_intern): New define_insn, plus required peepholes.
13237 (sibcall_pop_intern): Likewise.
13238 (sibcall_value_intern): Likewise.
13239 (sibcall_value_pop_intern): Likewise.
13241 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13243 * tree-inline.c (tree_function_versioning): Check DF info existence
13244 before accessing it.
13246 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13248 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13250 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13251 aarch64_frame hard_fp_offset and frame_size.
13252 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13253 frame_size; remove original_frame_size.
13254 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13255 (aarch64_initial_elimination_offset): Remove frame_size and
13256 offset. Use aarch64_frame frame_size.
13258 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13259 Jiong Wang <jiong.wang@arm.com>
13260 Renlin <renlin.li@arm.com>
13262 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13263 initialization of R30 offset. Update offset. Iterate core
13264 regisers upto X30. Remove X29, X30 specific code.
13266 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13267 Jiong Wang <jiong.wang@arm.com>
13269 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13270 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13271 (aarch64_register_saved_on_entry): Adjust test.
13273 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13275 * config/aarch64/aarch64.h (machine_function): Move
13276 saved_varargs_size from here...
13277 (aarch64_frame): ... to here.
13279 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13280 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13281 (aarch64_initial_elimination_offset)
13282 (aarch64_setup_incoming_varargs): Adjust location of
13283 saved_varargs_size.
13285 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13287 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13290 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13291 Prachi Godbole <Prachi.Godbole@imgtec.com>
13293 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13294 mips32r5 entry to use PROCESSOR_P5600.
13295 * config/mips/mips-tables.opt: Regenerate.
13296 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13297 * config/mips/mips.c (mips_fmadd_bypass): New function.
13298 (mips_rtx_cost_data): Add costs for p5600.
13299 (mips_issue_rate): Add support for p5600.
13300 (mips_multipass_dfa_lookahead): Likewise.
13301 * config/mips/mips.h (TUNE_P5600): New define.
13302 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13303 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13304 * config/mips/mips.md: Include p5600.md.
13305 (processor): Add p5600.
13306 * config/mips/p5600.md: New file.
13308 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13310 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13311 * config/i386/predicates.md (palignr_operand): New.
13312 Indicates if permutation is suitable for palignr instruction.
13314 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13316 PR tree-optimization/61319
13317 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13318 stmt belongs to loop.
13320 2014-06-05 Richard Biener <rguenther@suse.de>
13322 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13323 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13324 (lookup_tmp_var): Adjust.
13325 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13327 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13329 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13331 2014-06-05 Marek Polacek <polacek@redhat.com>
13334 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13336 2014-06-04 Tom de Vries <tom@codesourcery.com>
13338 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13341 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13343 PR tree-optimization/61385
13344 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13346 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13348 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13349 changed to use fatal_error.
13350 (main): Ensure lto_wrapper_cleanup is run atexit.
13352 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13354 * lra-constraints.c (valid_address_p): Move earlier in file.
13355 (address_eliminator): New structure.
13356 (satisfies_memory_constraint_p): New function.
13357 (satisfies_address_constraint_p): Likewise.
13358 (process_alt_operands, process_address, curr_insn_transform): Use them.
13360 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13362 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13364 (target_lra_int, default_target_lra_int, this_target_lra_int)
13365 (op_alt_data): Delete.
13366 * lra.h (lra_init): Delete.
13367 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13368 (init_insn_code_data_once): Remove op_alt_data handling.
13369 (finish_insn_code_data_once): Likewise.
13370 (init_op_alt_data): Delete.
13371 (get_static_insn_data): Initialize operand_alternative to null.
13372 (free_insn_recog_data): Cast operand_alternative before freeing it.
13373 (setup_operand_alternative): Take the operand_alternative as
13374 parameter and assume it isn't already cached in the static
13376 (lra_set_insn_recog_data): Update accordingly.
13377 (lra_init): Delete.
13378 * ira.c (ira_init): Don't call lra_init.
13379 * target-globals.h (this_target_lra_int): Declare.
13380 (target_globals): Remove lra_int.
13381 (restore_target_globals): Update accordingly.
13382 * target-globals.c: Don't include lra-int.h.
13383 (default_target_globals, save_target_globals): Remove lra_int.
13385 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13387 * recog.h (operand_alternative): Convert reg_class, reject,
13388 matched and matches into bitfields.
13389 (preprocess_constraints): New overload.
13390 (preprocess_insn_constraints): New function.
13391 (preprocess_constraints): Take the insn as parameter.
13392 (recog_op_alt): Change into a pointer.
13393 (target_recog): Add x_op_alt.
13394 * recog.c (asm_op_alt): New variable.
13395 (recog_op_alt): Change into a pointer.
13396 (preprocess_constraints): New overload, replacing the old function
13397 definition with one that doesn't use global state.
13398 (preprocess_insn_constraints): New function.
13399 (preprocess_constraints): Use them. Take the insn as parameter.
13400 Use asm_op_alt for asms.
13401 (recog_init): Free existing x_op_alt entries.
13402 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13404 (make_early_clobber_and_input_conflicts): Likewise.
13405 (process_bb_node_lives): Pass the insn to process_constraints.
13406 * reg-stack.c (check_asm_stack_operands): Likewise.
13407 (subst_asm_stack_regs): Likewise.
13408 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13409 * regrename.c (build_def_use): Likewise.
13410 * sched-deps.c (sched_analyze_insn): Likewise.
13411 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13412 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13413 (note_invalid_constants): Likewise.
13414 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13415 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13418 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13420 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13421 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13423 (make_early_clobber_and_input_conflicts): Likewise.
13424 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13426 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13428 * recog.h (alternative_class): New function.
13429 (which_op_alt): Return a const recog_op_alt.
13430 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13431 (subst_asm_stack_regs): Likewise.
13432 * config/arm/arm.c (note_invalid_constants): Likewise.
13433 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13434 the operand_alternative; use alternative class instead.
13435 * sel-sched.c (get_reg_class): Likewise.
13436 * regrename.c (build_def_use): Likewise.
13437 (hide_operands, restore_operands, record_out_operands): Update type
13440 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13442 * recog.h (recog_op_alt): Convert to a flat array.
13443 (which_op_alt): New function.
13444 * recog.c (recog_op_alt): Convert to a flat array.
13445 (preprocess_constraints): Update accordingly, grouping all
13446 operands of the same alternative together, rather than the
13448 * ira-lives.c (check_and_make_def_conflict): Likewise.
13449 (make_early_clobber_and_input_conflicts): Likewise.
13450 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13451 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13452 (subst_asm_stack_regs): Likewise.
13453 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13454 * regrename.c (hide_operands, record_out_operands): Likewise.
13455 (build_def_use): Likewise.
13456 * sel-sched.c (get_reg_class): Likewise.
13457 * config/arm/arm.c (note_invalid_constants): Likewise.
13459 2014-06-04 Jason Merrill <jason@redhat.com>
13463 * gimplify.c (gimplify_arg): Non-static.
13464 * gimplify.h: Declare it.
13466 2014-06-04 Richard Biener <rguenther@suse.de>
13468 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13469 TREE_PUBLIC and DECL_EXTERNAL decls.
13471 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13473 * regcprop.c (copyprop_hardreg_forward_1): Account for
13474 HARD_REGNO_CALL_PART_CLOBBERED.
13476 2014-06-04 Richard Biener <rguenther@suse.de>
13478 * configure.ac: Check whether the underlying type of int64_t
13479 is long or long long.
13480 * configure: Regenerate.
13481 * config.in: Likewise.
13482 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13483 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13485 2014-06-04 Richard Biener <rguenther@suse.de>
13487 PR tree-optimization/60098
13488 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13490 (dse_optimize_stmt): Simplify, now that we found a kill
13493 2014-06-04 Richard Biener <rguenther@suse.de>
13495 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13496 of accesses with non-invariant address.
13498 2014-06-04 Martin Liska <mliska@suse.cz>
13500 * cgraph.h (cgraph_make_wrapper): New function introduced.
13501 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13502 * ipa-inline.h (inline_analyze_function): The function is global.
13503 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13505 2014-06-04 Martin Liska <mliska@suse.cz>
13507 * tree.h (private_lookup_attribute_starting): New function.
13508 (lookup_attribute_starting): Likewise.
13509 * tree.c (private_lookup_attribute_starting): Likewise.
13511 2014-06-04 Martin Liska <mliska@suse.cz>
13513 * cgraph.h (expand_thunk): New argument added.
13514 (address_taken_from_non_vtable_p): New global function.
13515 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13516 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13517 * cgraphunit.c (analyze_function): Likewise.
13518 (assemble_thunks_and_aliases): Argument added to call.
13519 (expand_thunk): New argument forces to produce GIMPLE thunk.
13521 2014-06-04 Martin Liska <mliska@suse.cz>
13523 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13524 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13525 * profile.c (branch_prob): Likewise.
13527 2014-06-04 Martin Jambor <mjambor@suse.cz>
13530 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13531 handler for switch on an ipa_ref_use enum.
13532 * ipa-reference.c (analyze_function): Likewise.
13534 2014-06-04 Kai Tietz <ktietz@redhat.com>
13536 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13537 from old call-instruction.
13539 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13541 * config/aarch64/aarch64.c (aarch64_classify_address)
13542 (aarch64_legitimize_reload_address): Support full addressing modes
13544 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13545 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13547 2014-06-03 Andrew Pinski <apinski@cavium.com>
13549 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13552 2014-06-03 Andrew Pinski <apinski@cavium.com>
13554 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13555 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13557 2014-06-03 Kai Tietz <ktietz@redhat.com>
13559 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13562 2014-06-03 Dehao Chen <dehao@google.com>
13564 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13567 2014-06-03 Marek Polacek <polacek@redhat.com>
13570 * doc/invoke.texi: Document -Wswitch-bool.
13571 * function.c (stack_protect_epilogue): Cast controlling expression of
13573 * gengtype.c (walk_type): Generate switch expression with its
13574 controlling expression cast to int.
13576 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13578 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13580 * config/avr/avr-tables.opt: Regenerate.
13581 * config/avr/t-multilib: Regenerate.
13582 * doc/avr-mmcu.texi: Regenerate.
13584 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13585 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13587 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13588 (ata6617c, ata664251): Add new avr35 devices.
13589 (ata6612c): Add new avr4 device.
13590 (ata6613c, ata6614q): Add new avr5 devices.
13591 * config/avr/avr-tables.opt: Regenerate.
13592 * config/avr/t-multilib: Regenerate.
13593 * doc/avr-mmcu.texi: Regenerate.
13595 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13597 * gcc/config/aarch64/aarch64-builtins.c
13598 (aarch64_types_binop_ssu_qualifiers): New static data.
13599 (TYPES_BINOP_SSU): Define.
13600 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13601 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13602 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13603 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13604 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13605 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13606 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13607 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13608 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13609 suffix to builtin function name, remove cast.
13610 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13611 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13612 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13614 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13616 * gcc/config/aarch64/aarch64-builtins.c
13617 (aarch64_types_binop_uus_qualifiers,
13618 aarch64_types_shift_to_unsigned_qualifiers,
13619 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13620 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13621 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13622 sqshlu_n, uqshl_n): Update qualifiers.
13623 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13624 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13625 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13626 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13627 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13628 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13629 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13630 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13631 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13632 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13633 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13634 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13635 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13636 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13637 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13638 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13639 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13640 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13641 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13642 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13643 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13644 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13645 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13646 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13647 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13648 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13649 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13651 2014-06-03 Teresa Johnson <tejohnson@google.com>
13653 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13655 2014-06-02 Jason Merrill <jason@redhat.com>
13658 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13660 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13662 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13665 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13667 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13669 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13670 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13671 * config/aarch64/iterators.md (REVERSE): New iterator.
13672 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13673 (rev_op): New int_attribute.
13674 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13675 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13676 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13677 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13678 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13679 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13680 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13681 Replace temporary __asm__ with __builtin_shuffle.
13683 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13685 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13687 * config/mips/mips-tables.opt: Regenerate.
13688 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13689 to use mips_isa_rev rather than ISA_MIPS32R2.
13690 * config/mips/mips.h (ISA_MIPS32R3): New define.
13691 (ISA_MIPS32R5): New define.
13692 (ISA_MIPS64R3): New define.
13693 (ISA_MIPS64R5): New define.
13694 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13695 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13696 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13698 (MIPS_ISA_SYNCI_SPEC): Likewise.
13699 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13700 (LINK_SPEC): Added mips32r3 and mips32r5.
13701 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13702 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13703 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13704 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13705 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13706 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13707 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13709 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13711 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13713 * config/mips/mips.opt (mxpa): New option.
13714 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13717 2014-06-03 Martin Jambor <mjambor@suse.cz>
13720 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13723 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13725 PR tree-optimization/61328
13726 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13727 initialization from find_bswap_or_nop_1.
13728 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13729 in source_expr2 before using the size value the function sets. Also
13730 make use of init_symbolic_number () in both the old place and
13731 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13732 doing recursion in the GIMPLE_BINARY_RHS case.
13734 2014-06-03 Richard Biener <rguenther@suse.de>
13736 PR tree-optimization/61383
13737 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13740 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13742 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13743 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13744 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13745 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13747 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13748 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13749 * system.h: ...here and make it unconditional.
13750 * target.def (conditional_register_usage): Mention
13751 define_register_constraint instead of old-style constraint macros.
13752 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13753 * doc/tm.texi: Regenerate.
13754 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13755 protected by !USE_MD_CONSTRAINTS.
13756 * config/frv/frv.md: Remove quote from old version of documentation.
13757 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13758 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13759 CONST_DOUBLE_OK_FOR_LETTER.
13760 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13762 2014-06-02 Andrew Pinski <apinski@cavium.com>
13764 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13765 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13766 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13767 file whose name depends on -mabi= and -mbig-endian.
13768 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13769 Handle LP64 better and handle ilp32 too.
13770 (MULTILIB_OPTIONS): Delete.
13771 (MULTILIB_DIRNAMES): Delete.
13773 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13775 * expr.h: Remove prototypes of functions defined in builtins.c.
13776 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13777 Remove prototypes of functions defined in builtins.c.
13778 * builtins.h: Update prototype list to include all exported functions.
13779 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13780 no_c99_libc_has_function): Move to targhooks.c
13781 (build_string_literal, build_call_expr_loc_array,
13782 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13784 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13785 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13786 no_c99_libc_has_function): Relocate from builtins.c.
13787 * tree.c: Include builtins.h.
13788 (build_call_expr_loc_array, build_call_expr_loc_vec,
13789 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13791 * fold-const.h (fold_fma): Move prototype to builtins.h.
13792 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13793 * asan.c: Include builtins.h.
13794 * cfgexpand.c: Likewise.
13795 * convert.c: Likewise.
13796 * emit-rtl.c: Likewise.
13797 * except.c: Likewise.
13798 * expr.c: Likewise.
13799 * fold-const.c: Likewise.
13800 * gimple-fold.c: Likewise.
13801 * gimple-ssa-strength-reduction.c: Likewise.
13802 * gimplify.c: Likewise.
13803 * ipa-inline.c: Likewise.
13804 * ipa-prop.c: Likewise.
13805 * lto-streamer-out.c: Likewise.
13806 * stmt.c: Likewise.
13807 * tree-inline.c: Likewise.
13808 * tree-object-size.c: Likewise.
13809 * tree-sra.c: Likewise.
13810 * tree-ssa-ccp.c: Likewise.
13811 * tree-ssa-forwprop.c: Likewise.
13812 * tree-ssa-loop-ivcanon.c: Likewise.
13813 * tree-ssa-loop-ivopts.c: Likewise.
13814 * tree-ssa-math-opts.c: Likewise.
13815 * tree-ssa-reassoc.c: Likewise.
13816 * tree-ssa-threadedge.c: Likewise.
13817 * tree-streamer-in.c: Likewise.
13818 * tree-vect-data-refs.c: Likewise.
13819 * tree-vect-patterns.c: Likewise.
13820 * tree-vect-stmts.c: Likewise.
13821 * config/aarch64/aarch64.c: Likewise.
13822 * config/alpha/alpha.c: Likewise.
13823 * config/arc/arc.c: Likewise.
13824 * config/arm/arm.c: Likewise.
13825 * config/avr/avr.c: Likewise.
13826 * config/bfin/bfin.c: Likewise.
13827 * config/c6x/c6x.c: Likewise.
13828 * config/cr16/cr16.c: Likewise.
13829 * config/cris/cris.c: Likewise.
13830 * config/epiphany/epiphany.c: Likewise.
13831 * config/fr30/fr30.c: Likewise.
13832 * config/frv/frv.c: Likewise.
13833 * config/h8300/h8300.c: Likewise.
13834 * config/i386/i386.c: Likewise.
13835 * config/i386/winnt.c: Likewise.
13836 * config/ia64/ia64.c: Likewise.
13837 * config/iq2000/iq2000.c: Likewise.
13838 * config/lm32/lm32.c: Likewise.
13839 * config/m32c/m32c.c: Likewise.
13840 * config/m32r/m32r.c: Likewise.
13841 * config/m68k/m68k.c: Likewise.
13842 * config/mcore/mcore.c: Likewise.
13843 * config/mep/mep.c: Likewise.
13844 * config/microblaze/microblaze.c: Likewise.
13845 * config/mips/mips.c: Likewise.
13846 * config/mmix/mmix.c: Likewise.
13847 * config/mn10300/mn10300.c: Likewise.
13848 * config/moxie/moxie.c: Likewise.
13849 * config/msp430/msp430.c: Likewise.
13850 * config/nds32/nds32.c: Likewise.
13851 * config/pa/pa.c: Likewise.
13852 * config/pdp11/pdp11.c: Likewise.
13853 * config/picochip/picochip.c: Likewise.
13854 * config/rl78/rl78.c: Likewise.
13855 * config/rs6000/rs6000.c: Likewise.
13856 * config/rx/rx.c: Likewise.
13857 * config/s390/s390.c: Likewise.
13858 * config/score/score.c: Likewise.
13859 * config/sh/sh.c: Likewise.
13860 * config/sparc/sparc.c: Likewise.
13861 * config/spu/spu.c: Likewise.
13862 * config/stormy16/stormy16.c: Likewise.
13863 * config/tilegx/tilegx.c: Likewise.
13864 * config/tilepro/tilepro.c: Likewise.
13865 * config/v850/v850.c: Likewise.
13866 * config/vax/vax.c: Likewise.
13867 * config/xtensa/xtensa.c: Likewise.
13869 2014-06-02 Jeff Law <law@redhat.com>
13871 PR rtl-optimization/61094
13872 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13873 was marked as do_no_reextend. If a copy is needed to eliminate
13874 an extension, then mark it as do_not_reextend.
13876 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13878 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13880 2014-06-02 Richard Henderson <rth@redhat.com>
13883 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13884 addresses inside asms. Use output_operand_lossage instead of
13887 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13890 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13891 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13893 2014-06-02 Tom de Vries <tom@codesourcery.com>
13895 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13896 case that x has VOIDmode.
13898 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13900 * varasm.c (copy_constant): Delete function.
13901 (build_constant_desc): Don't call it.
13903 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13906 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13907 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13908 with immediate_operand.
13910 2014-06-02 Andreas Schwab <schwab@suse.de>
13912 * config/ia64/ia64.c
13913 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13914 pending_data_specs first.
13916 2014-06-02 Richard Biener <rguenther@suse.de>
13918 PR tree-optimization/61378
13919 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13920 valueized_anything.
13922 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13924 * config/i386/constraints.md (Bw): Rename from 'w'.
13925 (Bz): Rename from 'z'.
13926 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13928 2014-06-01 Kai Tietz <ktietz@redhat.com>
13931 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13932 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13933 instead of m constraint.
13935 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13937 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13938 a separate alternative where the scratch operand 2 is marked as
13941 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13943 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13944 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13945 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13946 and __builtins_arm_get_fpscr.
13947 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13948 __builtins_arm_get_fpscr.
13949 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13950 __builtins_arm_ldfpscr.
13951 (arm_atomic_assign_expand_fenv): New function.
13952 * config/arm/vfp.md (set_fpscr): New pattern.
13953 (get_fpscr) : Likewise.
13954 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13956 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13957 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13959 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13961 * asan.c (report_error_func): Add SLOW_P argument, use
13962 BUILT_IN_ASAN_*_N if set.
13963 (build_check_stmt): Likewise.
13964 (instrument_derefs): If T has insufficient alignment,
13965 force same handling as for odd sizes.
13967 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13968 BUILT_IN_ASAN_REPORT_STORE_N): New.
13969 * asan.c (struct asan_mem_ref): Change access_size type to
13971 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13972 update_mem_ref_hash_table): Likewise.
13973 (asan_mem_ref_hasher::hash): Hash in a HWI.
13974 (report_error_func): Change size_in_bytes argument to HWI.
13975 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13977 (build_shadow_mem_access): New function.
13978 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13979 Handle size_in_bytes not power of two or larger than 16.
13980 (instrument_derefs): Don't give up if size_in_bytes is not
13981 power of two or is larger than 16.
13983 2014-05-30 Kai Tietz <ktietz@redhat.com>
13986 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13987 for sibling-tail-calls.
13988 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13990 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13991 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13993 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13995 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13996 * config/avr/avr-tables.opt: Regenerate.
13997 * config/avr/t-multilib: Regenerate.
13998 * doc/avr-mmcu.texi: Regenerate.
14000 2014-05-30 Ian Lance Taylor <iant@google.com>
14002 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14005 2014-05-30 Tom de Vries <tom@codesourcery.com>
14007 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14010 2014-05-30 Tom de Vries <tom@codesourcery.com>
14012 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14013 * lra.c (initialize_lra_reg_info_element): Add init of
14014 actual_call_used_reg_set field.
14015 (lra): Call lra_create_live_ranges before lra_inheritance for
14017 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14019 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14020 instead of call_used_reg_set for -fuse-caller-save.
14021 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14023 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14025 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14027 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14029 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14031 * ira.c (ira_get_dup_out_num): Check for output operands at
14032 the start of the loop. Handle cases where an included alternative
14033 follows an excluded one.
14035 2014-05-29 Mike Stump <mikestump@comcast.net>
14038 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14039 post ld passes when lto is used.
14041 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14043 PR rtl-optimization/61325
14044 * lra-constraints.c (process_address): Rename to process_address_1.
14045 (process_address): New function.
14047 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14049 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14050 TYPES_BINOPV): New static data.
14051 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14053 * config/aarch64/aarch64-simd.md (aarch64_ext,
14054 aarch64_im_lane_boundsi): New patterns.
14055 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14057 (aarch64_evpc_ext): New function.
14059 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14061 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14062 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14063 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14064 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14065 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14067 2014-05-29 Tom de Vries <tom@codesourcery.com>
14069 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14071 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14072 Richard Sandiford <rdsandiford@googlemail.com>
14074 * arm/iterators.md (shiftable_ops): New code iterator.
14075 (t2_binop0, arith_shift_insn): New code attributes.
14076 * arm/predicates.md (shift_nomul_operator): New predicate.
14077 * arm/arm.md (insn_enabled): Delete.
14078 (enabled): Remove insn_enabled test.
14079 (*arith_shiftsi): Delete. Replace with ...
14080 (*<arith_shift_insn>_multsi): ... new pattern.
14081 (*<arith_shift_insn>_shiftsi): ... new pattern.
14082 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14084 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14085 Tom de Vries <tom@codesourcery.com>
14087 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14088 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14090 (mips_split_call): Use POST_CALL_TMP_REG.
14091 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14093 2014-05-29 Tom de Vries <tom@codesourcery.com>
14095 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14096 with #ifdef STACK_REGS.
14098 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14100 * varasm.c (get_variable_section): Walk aliases.
14101 (place_block_symbol): Walk aliases.
14103 2014-05-28 Tom de Vries <tom@codesourcery.com>
14106 2014-05-28 Tom de Vries <tom@codesourcery.com>
14108 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14109 * lra.c (initialize_lra_reg_info_element): Add init of
14110 actual_call_used_reg_set field.
14111 (lra): Call lra_create_live_ranges before lra_inheritance for
14113 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14115 * lra-constraints.c (need_for_call_save_p): Use
14116 actual_call_used_reg_set instead of call_used_reg_set for
14118 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14120 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14122 * doc/md.texi: Document that the % constraint character must
14123 be at the beginning of the string.
14124 * genoutput.c (validate_insn_alternatives): Check that '=',
14125 '+' and '%' only appear at the beginning of a constraint.
14126 * ira.c (commutative_constraint_p): Delete.
14127 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14128 at the start of the string.
14129 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14131 * config/arm/neon.md (bicdi3_neon): Likewise.
14132 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14133 (slt_si, sltu_si): Likewise.
14134 * config/vax/vax.md (sbcdi3): Likewise.
14135 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14136 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14137 (mul64): Move '%' to beginning of constraint.
14138 * config/arm/arm.md (*xordi3_insn): Likewise.
14139 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14140 (xorsi3): Likewise.
14142 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14144 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14146 2014-05-28 Jason Merrill <jason@redhat.com>
14149 * cgraph.h (symtab_node::get_comdat_group_id): New.
14150 * cgraphunit.c (analyze_functions): Call it.
14151 * symtab.c (dump_symtab_node): Likewise.
14152 * tree.c (decl_comdat_group_id): New.
14153 * tree.h: Declare it.
14154 * lto-streamer-out.c (write_symbol): Use it.
14155 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14157 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14159 PR bootstrap/PR61146
14160 * wide-int.cc: Do not include longlong.h when compiling with clang.
14162 2014-05-28 Richard Biener <rguenther@suse.de>
14164 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14165 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14166 (vrp_visit_assignment_or_call): Print less vertical space.
14167 (vrp_visit_stmt): Likewise.
14168 (vrp_visit_phi_node): Likewise. For a PHI argument with
14169 VR_VARYING range consider recording it as copy.
14171 2014-05-28 Richard Biener <rguenther@suse.de>
14174 2014-05-28 Richard Biener <rguenther@suse.de>
14176 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14178 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14180 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14181 sufficiently aligned and an offset is used at the same time.
14182 (expand_expr_real_1): Likewise.
14184 2014-05-28 Richard Biener <rguenther@suse.de>
14186 PR middle-end/61045
14187 * fold-const.c (fold_comparison): When folding
14188 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14189 the sign of the remaining constant operand stays the same.
14191 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14193 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14194 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14195 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14197 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14198 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14199 (m32bit-doubles) Likewise.
14200 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14201 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14204 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14206 * configure.ac ($gcc_cv_ld_clearcap): New test.
14207 * configure: Regenerate.
14208 * config.in: Regenerate.
14209 * config/sol2.opt (mclear-hwcap): New option.
14210 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14211 * config/sol2-clearcap.map: Moved here from
14212 testsuite/gcc.target/i386/clearcap.map.
14213 * config/sol2-clearcapv2.map: Move here from
14214 gcc.target/i386/clearcapv2.map.
14215 * config/t-sol2 (install): Depend on install-clearcap-map.
14216 (install-clearcap-map): New target.
14217 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14220 2014-05-28 Richard Biener <rguenther@suse.de>
14222 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14223 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14224 ... here and remove the rest.
14225 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14227 2014-05-28 Richard Biener <rguenther@suse.de>
14229 PR tree-optimization/61335
14230 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14231 new range fails, drop to varying.
14233 2014-05-28 Olivier Hainque <hainque@adacore.com>
14235 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14236 (CPP_SPEC): Add entry for -mcpu=8548.
14237 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14238 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14240 2014-05-28 Tom de Vries <tom@codesourcery.com>
14242 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14243 * lra.c (initialize_lra_reg_info_element): Add init of
14244 actual_call_used_reg_set field.
14245 (lra): Call lra_create_live_ranges before lra_inheritance for
14247 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14249 * lra-constraints.c (need_for_call_save_p): Use
14250 actual_call_used_reg_set instead of call_used_reg_set for
14252 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14254 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14255 Tom de Vries <tom@codesourcery.com>
14257 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14259 (@item -fuse-caller-save): New item.
14261 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14262 Tom de Vries <tom@codesourcery.com>
14264 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14265 OPT_fuse_caller_save.
14267 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14268 Tom de Vries <tom@codesourcery.com>
14270 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14271 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14272 get_call_reg_set_usage.
14273 * resource.c (mark_set_resources, mark_target_live_regs): Use
14274 get_call_reg_set_usage.
14275 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14277 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14278 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14279 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14280 * ira-build.c (ira_create_allocno): Init
14281 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14282 (create_cap_allocno, propagate_allocno_info)
14283 (propagate_some_info_from_allocno)
14284 (copy_info_to_removed_store_destinations): Handle
14285 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14286 * ira-costs.c (ira_tune_allocno_costs): Use
14287 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14289 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14290 Tom de Vries <tom@codesourcery.com>
14292 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14293 and function_used_regs_valid fields.
14294 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14295 find_all_hard_reg_sets.
14296 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14297 (get_call_reg_set_usage): New function.
14298 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14299 * regs.h (get_call_reg_set_usage): Declare.
14301 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14304 * config/dbx.h (License): Add Runtime Library Exception.
14305 * config/newlib-stdint.h (License): Same.
14306 * config/rtems.h (License): Same
14307 * config/initfini-array.h (License): Same
14308 * config/v850/v850.h (License): Same.
14309 * config/v850/v850-opts.h (License): Same
14310 * config/v850/rtems.h (License): Same.
14312 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14315 * doc/extend.texi (Local Labels): Note that label differences are
14316 not supported for AVR.
14318 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14319 Olivier Hainque <hainque@adacore.com>
14321 * rtl.h (set_for_reg_notes): Declare.
14322 * emit-rtl.c (set_for_reg_notes): New function.
14323 (set_unique_reg_note): Use it.
14324 * optabs.c (add_equal_note): Likewise
14326 2014-05-27 Andrew Pinski <apinski@cavium.com>
14328 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14329 Use <w> for the register in assembly template.
14330 (stack_protect_test): Use the mode of operands[0] for the result.
14331 (stack_protect_test_<mode>): Use <w> for the register
14332 in assembly template.
14334 2014-05-27 DJ Delorie <dj@redhat.com>
14336 * config/rx/rx.c (add_vector_labels): New.
14337 (rx_output_function_prologue): Call it.
14338 (rx_handle_func_attribute): Don't require empty arguments.
14339 (rx_handle_vector_attribute): New.
14340 (rx_attribute_table): Add "vector" attribute.
14341 * doc/extend.texi (interrupt, vector): Document new/changed
14342 RX-specific attributes.
14344 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14346 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14348 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14349 predicate to detect a negative quotient.
14351 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14353 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14354 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14355 Add X - Y CMP 0 to X CMP Y transformation.
14356 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14358 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14360 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14363 2014-05-27 Steve Ellcey <sellcey@mips.com>
14365 * config/mips/mips.c: Add include of cgraph.h.
14367 2014-05-27 Richard Biener <rguenther@suse.de>
14369 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14371 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14374 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14375 * config/arm/arm-cores.def (License): Same.
14376 * config/arm/arm-opts.h (License): Same.
14377 * config/arm/aout.h (License): Same.
14378 * config/arm/bpabi.h (License): Same.
14379 * config/arm/elf.h (License): Same.
14380 * config/arm/linux-elf.h (License): Same.
14381 * config/arm/linux-gas.h (License): Same.
14382 * config/arm/netbsd-elf.h (License): Same.
14383 * config/arm/uclinux-eabi.h (License): Same.
14384 * config/arm/uclinux-elf.h (License): Same.
14385 * config/arm/vxworks.h (License): Same.
14387 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14389 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14390 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14391 (arm_init_neon_builtins): Handle NEON_BSWAP.
14392 Define required type nodes.
14393 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14394 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14395 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14396 * config/arm/iterators.md (VDQHSD): New mode iterator.
14398 2014-05-27 Richard Biener <rguenther@suse.de>
14400 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14401 Try using literal operands when comparing value-ranges failed.
14403 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14405 * ira.c (commutative_operand): Adjust for change to recog_data.
14406 [Missing from previous commit.]
14408 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14410 * system.h (TEST_BIT): New macro.
14411 * recog.h (alternative_mask): New type.
14412 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14413 (recog_data_d): Replace alternative_enabled_p array with
14414 enabled_alternatives.
14415 (target_recog): New structure.
14416 (default_target_recog, this_target_recog): Declare.
14417 (get_enabled_alternatives, recog_init): Likewise.
14418 * recog.c (default_target_recog, this_target_recog): New variables.
14419 (get_enabled_alternatives): New function.
14420 (extract_insn): Use it.
14421 (recog_init): New function.
14422 (preprocess_constraints, constrain_operands): Adjust for change to
14424 * postreload.c (reload_cse_simplify_operands): Likewise.
14425 * reload.c (find_reloads): Likewise.
14426 * ira-costs.c (record_reg_classes): Likewise.
14427 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14428 all alternatives after a disabled one would be skipped.
14429 (ira_implicitly_set_insn_hard_regs): Likewise.
14430 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14431 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14432 with enabled_alternatives.
14433 * lra.c (free_insn_recog_data): Update accordingly.
14434 (lra_update_insn_recog_data): Likewise.
14435 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14436 * lra-constraints.c (process_alt_operands): Likewise. Handle
14437 only_alternative as part of the enabled mask.
14438 * target-globals.h (this_target_recog): Declare.
14439 (target_globals): Add a recog field.
14440 (restore_target_globals): Restore this_target_recog.
14441 * target-globals.c: Include recog.h.
14442 (default_target_globals): Initialize recog field.
14443 (save_target_globals): Likewise.
14444 * reginfo.c (reinit_regs): Call recog_init.
14445 * toplev.c (backend_init_target): Likewise.
14447 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14449 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14450 rather than any named insn's code.
14452 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14455 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14456 * config/arm/arm-cores.def (License): Same.
14458 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14460 * tree.h (decl_comdat_group): Declare.
14461 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14462 * tree.c (decl_comdat_group): Here.
14464 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14466 PR rtl-optimization/61222
14467 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14468 the shift, truncate the PLUS operand to the result mode.
14470 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14473 * config/i386/i386.c (ix86_rtx_costs)
14474 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14477 2014-05-26 Martin Jambor <mjambor@suse.cz>
14479 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14482 2014-05-26 Richard Biener <rguenther@suse.de>
14484 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14485 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14486 Provide specializations.
14487 (wi::int_traits <HOST_WIDE_INT>,
14488 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14490 2014-05-26 Alan Modra <amodra@gmail.com>
14493 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14494 params and return a bool. Remove dead code. Update comment.
14495 Assert we have a const_int source. Remove bogus code from
14496 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14497 handling of constants > 2G and reg_equal note, from..
14498 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14499 return value. Update comment. If we can, use a new pseudo
14500 for intermediate calculations.
14501 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14503 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14504 call to rs6000_emit_set_const in splitter.
14505 (movdi_internal64+2, +3): Likewise.
14507 2014-05-26 Richard Biener <rguenther@suse.de>
14509 * system.h: Define __STDC_FORMAT_MACROS before
14510 including inttypes.h.
14511 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14512 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14513 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14514 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14515 HOST_WIDEST_INT_C): Remove.
14516 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14517 if C99 inttypes.h is not available.
14518 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14519 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14520 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14521 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14522 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14523 (struct output_info): Likewise.
14524 (print_statistics): Adjust.
14525 (dump_bitmap_statistics): Likewise.
14526 * bt-load.c (migrate_btr_defs): Print with PRId64.
14527 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14528 (MAX_SAFE_MULTIPLIER): Adjust.
14529 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14530 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14531 dump_cgraph_node): Likewise.
14532 * final.c (dump_basic_block_info): Likewise.
14533 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14534 * gcov.c (format_gcov): Likewise.
14535 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14537 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14538 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14539 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14540 Use PRId64 for dumping.
14541 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14542 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14543 (add_allocno_hard_regs): Adjust.
14544 * loop-doloop.c (doloop_modify): Print using PRId64.
14545 * loop-iv.c (inverse): Compute in uint64_t.
14546 (determine_max_iter, iv_number_of_iterations): Likewise.
14547 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14548 Print using PRId64.
14549 * lto-streamer-out.c (write_symbol): Use uint64_t.
14550 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14551 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14552 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14553 * modulo-sched.c (const_iteration_count): Use int64_t.
14554 (sms_schedule): Dump using PRId64.
14555 * predict.c (dump_prediction): Likewise.
14556 * pretty-print.h (pp_widest_integer): Remove.
14557 * profile.c (get_working_sets, is_edge_inconsistent,
14558 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14559 * tree-pretty-print.c (pp_double_int): Remove case handling
14560 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14561 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14563 (pass_optimize_bswap::execute): Remove restriction on hosts.
14564 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14565 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14566 * tree.c (widest_int_cst_value): Remove.
14567 * tree.h (widest_int_cst_value): Likewise.
14568 * value-prof.c (dump_histogram_value): Print using PRId64.
14569 * gengtype.c (main): Also inject int64_t.
14570 * ggc-page.c (struct max_alignment): Use int64_t.
14571 * alloc-pool.c (struct allocation_object_def): Likewise.
14572 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14574 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14575 * doc/tm.texi: Regenerated.
14576 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14577 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14578 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14579 mmix_output_register_setting): Use [u]int64_t in prototypes.
14580 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14581 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14582 mmix_output_octa, mmix_output_shifted_value): Adjust.
14583 (mmix_intval): Adjust. Remove unreachable case.
14584 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14586 2014-05-26 Richard Biener <rguenther@suse.de>
14588 * configure.ac: Drop __int64 type check. Insist that we
14589 found uint64_t and int64_t.
14590 * hwint.h (HOST_BITS_PER___INT64): Remove.
14591 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14592 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14593 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14594 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14595 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14596 for dst_q_src_df_rms_cdt.
14597 * configure: Regenerate.
14598 * config.in: Likewise.
14600 2014-05-26 Michael Tautschnig <mt@debian.org>
14603 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14604 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14606 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14608 PR rtl-optimization/61278
14609 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14611 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14613 PR rtl-optimization/61220
14614 Part of PR rtl-optimization/61225
14615 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14616 insn; skip split_edge for a block with only one successor.
14618 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14620 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14623 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14625 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14626 (update_vtable_references): New function.
14627 (function_and_variable_visibility): Rewrite also vtable initializers.
14628 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14630 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14632 * ggc.h (ggc_grow): New function.
14633 * ggc-none.c (ggc_grow): New function.
14634 * ggc-page.c (ggc_grow): Likewise.
14636 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14638 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14639 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14640 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14641 varpool_externally_visible_p, can_replace_by_local_alias,
14642 update_visibility_by_resolution_info, function_and_variable_visibility,
14643 pass_data_ipa_function_and_variable_visibility,
14644 make_pass_ipa_function_and_variable_visibility,
14645 whole_program_function_and_variable_visibility,
14646 pass_data_ipa_whole_program_visibility,
14647 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14648 * cgraph.h (cgraph_local_node_p): Declare.
14649 * ipa-visibility.c: New file.
14650 * Makefile.in (OBJS): Add ipa-visiblity.o
14652 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14654 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14655 that var decl is available.
14657 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14659 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14660 symtab_node pointer.
14661 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14662 (find_decls_types_r): Do not walk COMDAT_GROUP.
14663 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14664 * varasm.c (make_decl_one_only): Use set_comdat_group;
14665 create node if needed.
14666 * ipa-inline-transform.c (save_inline_function_body): Update
14667 way we decl->symtab mapping.
14668 * symtab.c (symtab_hash, hash_node, eq_node
14669 symtab_insert_node_to_hashtable): Remove.
14670 (symtab_register_node): Update.
14671 (symtab_unregister_node): Update.
14672 (symtab_get_node): Reimplement as inline function.
14673 (symtab_add_to_same_comdat_group): Update.
14674 (symtab_dissolve_same_comdat_group_list): Update.
14675 (dump_symtab_base): Update.
14676 (verify_symtab_base): Update.
14677 (symtab_make_decl_local): Update.
14678 (fixup_same_cpp_alias_visibility): Update.
14679 (symtab_nonoverwritable_alias): Update.
14680 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14681 * ipa.c (update_visibility_by_resolution_info): UPdate.
14682 * bb-reorder.c: Include cgraph.h
14683 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14684 with comdat groups.
14685 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14686 * cgraph.c (cgraph_get_create_node): Update.
14687 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14689 (symtab_get_node): Make inline.
14690 (symtab_insert_node_to_hashtable): Remove.
14691 (symtab_can_be_discarded): Update.
14692 (decl_comdat_group): New function.
14693 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14695 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14697 (read_comdat_group): New function.
14698 (input_node, input_varpool_node): Use it.
14699 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14701 * mips.c (mips_start_unique_function): Likewise.
14702 (ix86_code_end): Likewise.
14703 (rs6000_code_end): Likweise.
14704 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14706 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14708 * gengtype-state.c (fatal_reading_state): Bring offline.
14709 * optabs.c (widening_optab_handler): Bring offline.
14710 * optabs.h (widening_optab_handler): Likewise.
14711 * final.c (get_attr_length_1): Likewise.
14713 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14715 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14717 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14719 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14720 (ppc440-compare): Include shift with dot.
14721 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14722 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14724 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14726 (e6500_sfx2): Include it.
14727 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14728 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14729 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14730 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14731 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14732 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14733 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14734 *lshiftrt_internal1le, *lshiftrt_internal1be,
14735 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14736 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14737 *rotldi3_internal10le, *rotldi3_internal10be,
14738 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14739 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14740 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14741 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14742 define_insns): Use type "shift" in the appropriate alternatives.
14744 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14746 * config/rs6000/rs6000.md (type): Add "logical". Delete
14748 (dot): Adjust comment.
14749 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14750 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14751 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14752 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14753 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14754 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14755 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14756 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14758 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14759 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14760 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14761 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14762 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14763 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14764 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14765 * config/rs6000/8540.md (ppc8540_su): Adjust.
14766 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14767 cell-cmp-microcoded): Adjust.
14768 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14769 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14770 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14771 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14772 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14773 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14774 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14775 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14776 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14778 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14779 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14780 Adjust. Adjust comment.
14781 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14782 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14784 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14786 * config/rs6000/rs6000.md (type): Add "add".
14787 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14788 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14789 define_insns): Use it.
14790 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14792 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14793 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14794 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14795 * config/rs6000/601.md (ppc601-integer): Adjust.
14796 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14797 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14798 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14799 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14800 * config/rs6000/8540.md (ppc8540_su): Adjust.
14801 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14802 cell-cmp-microcoded): Adjust.
14803 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14804 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14805 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14806 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14807 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14808 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14809 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14810 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14811 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14813 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14814 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14815 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14816 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14818 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14820 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14821 "delayed_compare", "var_delayed_compare".
14822 (var_shift): New attribute.
14823 (cell_micro): Adjust.
14824 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14825 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14826 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14827 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14828 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14829 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14830 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14831 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14832 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14833 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14834 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14835 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14836 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14837 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14838 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14839 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14840 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14841 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14842 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14843 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14844 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14845 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14846 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14847 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14848 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14850 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14851 * config/rs6000/440.md (ppc440-integer): Adjust.
14852 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14853 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14854 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14855 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14856 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14857 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14858 * config/rs6000/8540.md (ppc8540_su): Adjust.
14859 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14860 cell-cmp-microcoded): Adjust.
14861 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14862 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14863 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14864 e500mc64_delayed): Adjust.
14865 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14866 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14867 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14868 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14869 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14870 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14871 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14872 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14873 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14875 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14876 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14878 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14880 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14881 (bits): New mode_attr.
14882 (idiv_ldiv): Delete mode_attr.
14883 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14884 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14885 rs6000_adjust_priority, is_nonpipeline_insn,
14886 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14888 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14889 * config/rs6000/440.md (ppc440-idiv): Adjust.
14890 * config/rs6000/476.md (ppc476-idiv): Adjust.
14891 * config/rs6000/601.md (ppc601-idiv): Adjust.
14892 * config/rs6000/603.md (ppc603-idiv): Adjust.
14893 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14894 ppc620-ldiv): Adjust.
14895 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14896 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14897 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14898 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14899 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14900 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14901 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14902 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14903 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14904 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14905 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14906 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14907 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14908 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14909 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14910 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14911 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14912 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14914 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14916 * config/rs6000/rs6000.md (type): Delete "insert_word",
14917 "insert_dword". Add "insert".
14918 (size): Update comment.
14919 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14920 insn_must_be_first_in_group): Adjust.
14921 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14922 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14923 *insvsi_internal6, insvdi_internal): Adjust.
14925 * config/rs6000/40x.md (ppc403-integer): Adjust.
14926 * config/rs6000/440.md (ppc440-integer): Adjust.
14927 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14928 * config/rs6000/601.md (ppc601-integer): Adjust.
14929 * config/rs6000/603.md (ppc603-integer): Adjust.
14930 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14931 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14932 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14933 * config/rs6000/8540.md (ppc8540_su): Adjust.
14934 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14935 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14936 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14937 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14938 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14939 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14940 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14941 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14942 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14943 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14944 * config/rs6000/power7.md (power7-integer): Adjust.
14945 * config/rs6000/power8.md (power8-1cyc): Adjust.
14946 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14947 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14949 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14951 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14952 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14953 (size): New attribute.
14954 (dot): New attribute.
14955 (cell_micro): Adjust.
14956 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14957 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14958 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14959 umuldi3_highpart): Adjust.
14960 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14961 rs6000_adjust_priority, is_nonpipeline_insn,
14962 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14964 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14965 ppc405-imul3): Adjust.
14966 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14967 * config/rs6000/476.md (ppc476-imul): Adjust.
14968 * config/rs6000/601.md (ppc601-imul): Adjust.
14969 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14970 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14971 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14972 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14973 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14975 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14976 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14977 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14978 cell-imul): Adjust.
14979 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14980 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14981 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14982 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14983 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14984 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14985 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14986 power4-lmul, power4-imul, power4-imul3): Adjust.
14987 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14988 power5-lmul, power5-imul, power5-imul3): Adjust.
14989 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14990 power6-lmul, power6-imul, power6-imul3): Adjust.
14991 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14992 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14994 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14995 rs64a-lmul): Adjust.
14996 * config/rs6000/titan.md (titan_imul): Adjust.
14998 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15000 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15001 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15002 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15003 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15004 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15005 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15006 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15007 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15008 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15009 * config/rs6000/titan.md: Delete nonsensical comment.
15010 (titan_imul): Add type imul3.
15011 (titan_mulhw): Remove type imul3; add type halfmul.
15013 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15015 * config/rs6000/rs6000.md (type): Reorder, reformat.
15017 2014-05-23 Martin Jambor <mjambor@suse.cz>
15019 PR tree-optimization/53787
15020 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15021 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15022 analysis_done, update all uses.
15023 * ipa-prop.c: Include domwalk.h
15024 (param_analysis_info): Removed.
15025 (param_aa_status): New type.
15026 (ipa_bb_info): Likewise.
15027 (func_body_info): Likewise.
15028 (ipa_get_bb_info): New function.
15029 (aa_overwalked): Likewise.
15030 (find_dominating_aa_status): Likewise.
15031 (parm_bb_aa_status_for_bb): Likewise.
15032 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15033 (load_from_unmodified_param): Accept func_body_info as a parameter
15034 instead of parms_ainfo.
15035 (parm_ref_data_preserved_p): Changed to use new param AA info.
15036 (parm_ref_data_pass_through_p): Likewise.
15037 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15038 (compute_complex_assign_jump_func): Changed to use new param AA info.
15039 (compute_complex_ancestor_jump_func): Likewise.
15040 (ipa_compute_jump_functions_for_edge): Likewise.
15041 (ipa_compute_jump_functions): Removed.
15042 (ipa_compute_jump_functions_for_bb): New function.
15043 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15045 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15046 and info, moved variable declarations down.
15047 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15049 (ipa_analyze_stmt_uses): Likewise.
15050 (ipa_analyze_params_uses): Removed.
15051 (ipa_analyze_params_uses_in_bb): New function.
15052 (ipa_analyze_controlled_uses): Likewise.
15053 (free_ipa_bb_info): Likewise.
15054 (analysis_dom_walker): New class.
15055 (ipa_analyze_node): Handle node-specific forbidden analysis,
15056 initialize and free func_body_info, use dominator walker.
15057 (ipcp_modif_dom_walker): New class.
15058 (ipcp_transform_function): Create and free func_body_info, use
15059 ipcp_modif_dom_walker, moved a lot of functionality there.
15061 2014-05-23 Marek Polacek <polacek@redhat.com>
15062 Jakub Jelinek <jakub@redhat.com>
15064 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15065 * gcc.c (sanitize_spec_function): Likewise.
15066 * convert.c (convert_to_integer): Include "ubsan.h". Add
15067 floating-point to integer instrumentation.
15068 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15069 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15070 SANITIZE_NONDEFAULT.
15071 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15072 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15073 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15074 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15075 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15076 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15077 float/double/long double.
15078 (ubsan_instrument_float_cast): New function.
15079 * ubsan.h (ubsan_instrument_float_cast): Declare.
15081 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15083 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15085 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15086 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15087 Adjust for tailcalling through registers.
15088 * config/aarch64/aarch64.h (enum reg_class): New caller save
15090 (REG_CLASS_NAMES): Likewise.
15091 (REG_CLASS_CONTENTS): Likewise.
15092 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15093 Allow tailcalling without decls.
15095 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15097 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15098 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15100 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15101 gsi, and variables v_* to v*.
15103 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15105 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15107 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15109 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15110 * omp-low.c: Update accordingly.
15112 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15113 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15114 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15115 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15116 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15117 GF_OMP_TARGET_KIND_UPDATE.
15119 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15120 Explicitly enumerate the expected region types.
15122 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15125 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15126 documentation; the old documentation didn't clearly state the
15127 constraints on the contents of the pointed-to storage.
15129 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15131 Fix bootstrap error on ia64
15132 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15133 Return default value.
15135 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15137 PR tree-optimization/54733
15138 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15140 (find_bswap_or_nop_load): New.
15141 (find_bswap_1): Renamed to ...
15142 (find_bswap_or_nop_1): This. Also add support for memory source.
15143 (find_bswap): Renamed to ...
15144 (find_bswap_or_nop): This. Also add support for memory source and
15145 detection of bitwise operations equivalent to load in target
15147 (execute_optimize_bswap): Likewise. Also move its leading comment back
15148 in place and split statement transformation into ...
15149 (bswap_replace): This.
15151 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15153 PR rtl-optimization/61215
15154 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15155 simplify_gen_subreg until final substitution.
15157 2014-05-23 Alan Modra <amodra@gmail.com>
15160 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15161 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15162 Use "Y" constraint rather than "m".
15164 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15166 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15168 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15169 New function declaration.
15170 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15171 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15172 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15173 (aarch64_init_builtins) : Initialize builtins
15174 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15175 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15176 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15177 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15178 and __builtins_aarch64_set_fpsr.
15179 (aarch64_atomic_assign_expand_fenv): New function.
15180 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15181 (get_fpcr) : Likewise.
15182 (set_fpsr) : Likewise.
15183 (get_fpsr) : Likewise.
15184 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15185 and UNSPECV_SET_FPSR.
15186 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15187 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15188 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15190 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15192 PR rtl-optimization/60969
15193 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15194 constraints. Set up mem cost for NO_REGS case.
15196 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15198 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15200 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15202 * config/darwin.c: Include "lto-section-names.h".
15203 (LTO_SEGMENT_NAME): Don't define.
15204 * config/i386/winnt.c: Include "lto-section-names.h".
15205 * lto-streamer.c: Include "lto-section-names.h".
15206 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15207 * lto-wrapper.c: Include "lto-section-names.h".
15208 (LTO_SECTION_NAME_PREFIX): Don't define.
15209 * lto-section-names.h: New file.
15210 * cgraphunit.c: Include "lto-section-names.h".
15212 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15214 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15216 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15219 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15221 2014-05-22 Nick Clifton <nickc@redhat.com>
15223 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15225 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15227 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15228 -> (T)A transformation to integer types.
15230 2014-05-22 Teresa Johnson <tejohnson@google.com>
15232 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15233 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15234 (gcov_rewrite): Use gcov_nonruntime_assert.
15235 (gcov_open): Ditto.
15236 (gcov_write_words): Ditto.
15237 (gcov_write_length): Ditto.
15238 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15239 gcc_assert from IN_LIBGCOV code.
15240 (gcov_read_summary): Use gcov_error to flag profile corruption.
15241 (gcov_sync): Use gcov_nonruntime_assert.
15242 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15243 (gcov_histo_index): Use gcov_nonruntime_assert.
15244 (static void gcov_histogram_merge): Ditto.
15245 (compute_working_sets): Ditto.
15246 * gcov-io.h (gcov_nonruntime_assert): Define.
15247 (gcov_error): Define for !IN_LIBGCOV
15249 2014-05-22 Richard Biener <rguenther@suse.de>
15251 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15252 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15253 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15254 and deallocation site.
15255 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15256 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15257 passing through the incoming points-to set.
15258 (handle_lhs_call): Use flags argument instead of recomputing it.
15259 (find_func_aliases_for_call): Call handle_lhs_call with proper
15262 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15264 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15265 all padding bits in REAL_VALUE_TYPE are cleared.
15267 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15269 Cleanup and improve multipass_dfa_lookahead_guard
15270 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15271 (core2i7_first_cycle_multipass_begin,)
15272 (core2i7_first_cycle_multipass_issue,)
15273 (core2i7_first_cycle_multipass_backtrack): Update signature.
15274 * config/ia64/ia64.c
15275 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15276 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15277 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15279 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15280 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15282 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15284 * doc/tm.texi: Regenerate.
15286 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15287 * haifa-sched.c (ready_try): Make signed to allow negative values.
15288 (rebug_ready_list_1): Update.
15289 (choose_ready): Simplify.
15290 (sched_extend_ready_list): Update.
15292 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15294 Remove IA64 speculation tweaking flags
15295 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15296 speculation tuning flags.
15297 (msched-prefer-non-data-spec-insns,)
15298 (msched-prefer-non-control-spec-insns): Obsolete options.
15299 * haifa-sched.c (choose_ready): Remove handling of
15300 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15301 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15302 and PREFER_NON_DATA_SPEC.
15303 * sel-sched.c (process_spec_exprs): Remove handling of
15304 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15306 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15308 Improve scheduling debug output
15309 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15310 (advance_one_cycle): Update.
15311 (schedule_insn, queue_to_ready): Add debug printouts.
15312 (debug_ready_list_1): New static function.
15313 (debug_ready_list): Update.
15314 (max_issue): Add debug printouts.
15315 (dump_insn_stream): New static function.
15316 (schedule_block): Use it. Also better indent printouts.
15318 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15320 Fix sched_insn debug counter
15321 * haifa-sched.c (schedule_insn): Update.
15322 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15323 (save_backtrack_point, restore_backtrack_point): Update.
15324 (first_nonscheduled_insn): New static function.
15325 (queue_to_ready, choose_ready): Use it.
15326 (schedule_block): Init nonscheduled_insns_begin.
15327 (sched_emit_insn): Update.
15330 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15332 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15334 (aarch64_secondary_reload) : LikeWise.
15335 (aarch64_class_max_nregs) : Remove CORE_REGS.
15336 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15337 (REG_CLASS_NAMES) : Likewise.
15338 (REG_CLASS_CONTENTS) : LikeWise.
15339 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15341 2014-05-21 Guozhi Wei <carrot@google.com>
15344 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15346 (vqdmulhq_n_s16): Likewise.
15348 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15350 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15352 2014-05-21 Marek Polacek <polacek@redhat.com>
15355 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15357 2014-05-21 Martin Jambor <mjambor@suse.cz>
15359 * doc/invoke.texi (Optimize Options): Document parameters
15360 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15361 ipa-cp-array-index-hint-bonus.
15363 2014-05-21 Mark Wielaard <mjw@redhat.com>
15366 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15367 version >= 3 or not strict DWARF.
15368 * langhooks.h (struct lang_hooks_for_types): Add
15369 enum_underlying_base_type.
15370 * langhooks.c (lhd_enum_underlying_base_type): New function.
15371 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15372 enum_underlying_base_type.
15373 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15374 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15375 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15377 2014-05-21 Richard Biener <rguenther@suse.de>
15379 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15381 2014-05-21 John Marino <gnugcc@marino.st>
15383 * config.gcc (*-*-dragonfly*): New target.
15384 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15385 * configure: Regenerate.
15386 * config/dragonfly-stdint.h: New.
15387 * config/dragonfly.h: New.
15388 * config/dragonfly.opt: New.
15389 * config/i386/dragonfly.h: New.
15390 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15392 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15394 * tree.def (VOID_CST): New.
15395 * tree-core.h (TI_VOID): New.
15396 * tree.h (void_node): New.
15397 * tree.c (tree_node_structure_for_code, tree_code_size)
15398 (iterative_hash_expr): Handle VOID_CST.
15399 (build_common_tree_nodes): Initialize void_node.
15401 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15403 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15405 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15407 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15410 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15411 flag_reorder_blocks_and_partition.
15412 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15414 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15417 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15419 (*addc_r_t): Add new insn_and_split.
15421 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15423 PR middle-end/61252
15424 * omp-low.c (handle_simd_reference): New function.
15425 (lower_rec_input_clauses): Use it. Defer adding reference
15426 initialization even for reduction without placeholder if in simd,
15427 handle it properly later on.
15429 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15431 PR tree-optimization/60899
15432 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15433 assume all static symbols will have definition wile parsing and
15434 check the do have definition later in compilation; check that
15435 variable referring symbol will be output before concluding that
15436 reference is safe; be conservative for referring local statics;
15437 be more precise about when comdat is output in other partition.
15439 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15442 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15444 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15445 (ipa_inline): Loop inline_to_all_callers until no more aliases
15448 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15450 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15451 set writeonly flag only for vars actually written to.
15453 2014-05-20 Dehao Chen <dehao@google.com>
15455 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15456 and callee count to get clone count.
15457 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15458 count in copy_body.
15460 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15462 PR rtl-optimization/61243
15463 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15465 2014-05-20 Xinliang David Li <davidxl@google.com>
15467 * cgraphunit.c (walk_polymorphic_call_targets): Add
15468 dbgcnt and fopt-info support.
15469 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15470 * ipa-devirt.c (ipa_devirt): Ditto.
15471 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15472 * ipa.c (walk_polymorphic_call_targets): Ditto.
15473 * gimple-fold.c (fold_gimple_assign): Ditto.
15474 (gimple_fold_call): Ditto.
15475 * dbgcnt.def: New counter.
15477 2014-05-20 DJ Delorie <dj@redhat.com>
15479 * config/msp430/msp430.md (split): Don't allow subregs when
15480 splitting SImode adds.
15481 (andneghi): Fix subtraction logic.
15482 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15484 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15486 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15488 * except.c (switch_to_exception_section, resolve_unique_section,
15489 get_named_text_section, default_function_rodata_section,
15490 align_variable, get_block_for_decl, default_section_type_flags):
15491 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15492 * symtab.c (symtab_add_to_same_comdat_group,
15493 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15494 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15496 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15497 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15498 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15499 (c6x_function_in_section_p): Likewise.
15500 * config/darwin.c (machopic_select_section): Likewise.
15501 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15502 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15503 * config/mep/mep.c (mep_select_section): LIkewise.
15504 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15506 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15508 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15509 EH region of calls to pure functions that can throw an exception.
15510 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15511 (copy_reference_ops_from_call): Also copy the EH region of the call if
15512 it can throw an exception.
15514 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15516 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15517 nested VEC_SELECTs that are inverses of each other.
15519 2014-05-20 Richard Biener <rguenther@suse.de>
15521 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15522 (extract_and_process_scc_for_name): not here.
15523 (cond_dom_walker::before_dom_children): Only process
15524 stmts that end the BB in interesting ways.
15525 (run_scc_vn): Mark param uses as visited.
15527 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15529 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15532 2014-05-20 Nick Clifton <nickc@redhat.com>
15534 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15535 (msp430_gimplify_va_arg_expr): New function.
15536 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15538 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15539 operand 0 in order to prevent confusion about the number of
15540 registers involved.
15542 2014-05-20 Richard Biener <rguenther@suse.de>
15544 PR tree-optimization/61221
15545 * tree-ssa-pre.c (el_to_update): Remove.
15546 (eliminate_dom_walker::before_dom_children): Handle released
15547 VDEFs by value-numbering them to the associated VUSE. Update
15548 stmt immediately for substituted call address.
15549 (eliminate): Remove delayed stmt updating code.
15550 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15551 possibly late re-numbered vuses.
15552 (vn_reference_lookup_2): Adjust.
15553 (vn_reference_lookup_pieces): Likewise.
15554 (vn_reference_lookup): Likewise.
15556 2014-05-20 Richard Biener <rguenther@suse.de>
15558 * config.gcc: Remove need_64bit_hwint.
15559 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15560 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15562 * config.in: Regenerate.
15563 * configure: Likewise.
15565 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15567 * doc/extend.texi: Create Label Attributes section,
15568 move all label attributes into it and reference it.
15570 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15572 * arm.c (thumb1_reorg): When scanning backwards skip anything
15573 that's not a proper insn.
15575 2014-05-19 Richard Biener <rguenther@suse.de>
15577 PR tree-optimization/61221
15578 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15579 Do nothing for unreachable blocks.
15580 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15581 Improve unreachability detection.
15583 2014-05-19 Richard Biener <rguenther@suse.de>
15585 PR tree-optimization/61209
15586 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15588 2014-05-19 Nick Clifton <nickc@redhat.com>
15590 * except.c (init_eh): Fix computation of builtin setjmp buffer
15591 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15593 2014-05-19 Richard Biener <rguenther@suse.de>
15595 PR tree-optimization/61184
15596 * tree-vrp.c (is_negative_overflow_infinity): Use
15597 TREE_OVERFLOW_P and do that check first.
15598 (is_positive_overflow_infinity): Likewise.
15599 (is_overflow_infinity): Likewise.
15600 (vrp_operand_equal_p): Properly treat operands with
15601 differing overflow as not equal.
15603 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15605 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15606 shift simplification where it was intended.
15608 2014-05-19 Christian Bruel <christian.bruel@st.com>
15611 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15613 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15616 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15619 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15621 * reg-notes.def (CROSSING_JUMP): Likewise.
15622 * rtl.h (rtx_def): Update comment for jump flag.
15623 (CROSSING_JUMP_P): Define.
15624 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15625 of a REG_CROSSING_JUMP note.
15626 * cfghooks.c (tidy_fallthru_edges): Likewise.
15627 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15628 * emit-rtl.c (try_split): Likewise.
15629 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15630 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15631 * jump.c (redirect_jump_2): Likewise.
15632 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15633 (relax_delay_slots): Likewise.
15634 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15635 (bbit_di): Likewise.
15636 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15637 * config/sh/sh.md (jump_compact): Likewise.
15638 * bb-reorder.c (rotate_loop): Likewise.
15639 (pass_duplicate_computed_gotos::execute): Likewise.
15640 (add_reg_crossing_jump_notes): Rename to...
15641 (update_crossing_jump_flags): ...this.
15642 (pass_partition_blocks::execute): Update accordingly.
15644 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15646 * tree.h: Remove extraneous template <>.
15648 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15650 * ipa.c (symtab_remove_unreachable_nodes): Remove
15651 symbol from comdat group if its body was eliminated.
15652 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15653 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15654 (symtab_unregister_node): ... this one.
15655 (verify_symtab_base): More strict checking of comdats.
15656 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15658 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15660 * tree-pass.h (make_pass_ipa_comdats): New pass.
15661 * timevar.def (TV_IPA_COMDATS): New timevar.
15662 * passes.def (pass_ipa_comdats): Add.
15663 * Makefile.in (OBJS): Add ipa-comdats.o
15664 * ipa-comdats.c: New file.
15666 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15668 * ipa.c (update_visibility_by_resolution_info): New function.
15669 (function_and_variable_visibility): Use it.
15671 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15673 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15675 (FOR_EACH_DEFINED_SYMBOL): New macro.
15676 (varpool_first_static_initializer, varpool_next_static_initializer,
15677 varpool_first_defined_variable, varpool_next_defined_variable):
15679 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15681 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15683 * ggc-page.c (ggc_handle_finalizers): Add comment.
15685 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15687 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15688 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15689 (ggc_internal_cleared_alloc): Likewise.
15690 * ggc-page.c (finalizer): New class.
15691 (vec_finalizer): Likewise.
15692 (globals::finalizers): New member.
15693 (globals::vec_finalizers): Likewise.
15694 (ggc_internal_alloc): Record the finalizer if any for the block being
15696 (ggc_handle_finalizers): New function.
15697 (ggc_collect): Call ggc_handle_finalizers.
15698 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15700 (ggc_internal_cleared_alloc): Likewise.
15701 (finalize): New function.
15702 (need_finalization_p): Likewise.
15703 (ggc_alloc): Install the type's destructor as the finalizer if it
15704 might do something.
15705 (ggc_cleared_alloc): Likewise.
15706 (ggc_vec_alloc): Likewise.
15707 (ggc_cleared_vec_alloc): Likewise.
15709 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15711 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15713 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15715 * alias.c (record_alias_subset): Adjust.
15716 * bitmap.c (bitmap_element_allocate): Likewise.
15717 (bitmap_gc_alloc_stat): Likewise.
15718 * cfg.c (init_flow): Likewise.
15719 (alloc_block): Likewise.
15720 (unchecked_make_edge): Likewise.
15721 * cfgloop.c (alloc_loop): Likewise.
15722 (flow_loops_find): Likewise.
15723 (rescan_loop_exit): Likewise.
15724 * cfgrtl.c (init_rtl_bb_info): Likewise.
15725 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15726 (cgraph_allocate_node): Likewise.
15727 (cgraph_create_edge_1): Likewise.
15728 (cgraph_allocate_init_indirect_info): Likewise.
15729 * cgraphclones.c (cgraph_clone_edge): Likewise.
15730 * cgraphunit.c (add_asm_node): Likewise.
15731 (init_lowered_empty_function): Likewise.
15732 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15733 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15734 (alpha_use_linkage): Likewise.
15735 * config/arc/arc.c (arc_init_machine_status): Likewise.
15736 * config/arm/arm.c (arm_init_machine_status): Likewise.
15737 * config/avr/avr.c (avr_init_machine_status): Likewise.
15738 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15739 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15740 * config/cris/cris.c (cris_init_machine_status): Likewise.
15741 * config/darwin.c (machopic_indirection_name): Likewise.
15742 (darwin_build_constant_cfstring): Likewise.
15743 (darwin_enter_string_into_cfstring_table): Likewise.
15744 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15745 * config/frv/frv.c (frv_init_machine_status): Likewise.
15746 * config/i386/i386.c (get_dllimport_decl): Likewise.
15747 (ix86_init_machine_status): Likewise.
15748 (assign_386_stack_local): Likewise.
15749 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15750 (i386_pe_maybe_record_exported_symbol): Likewise.
15751 (i386_pe_record_stub): Likewise.
15752 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15753 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15754 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15755 (m32c_note_pragma_address): Likewise.
15756 * config/mep/mep.c (mep_init_machine_status): Likewise.
15757 (mep_note_pragma_flag): Likewise.
15758 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15759 (mips16_local_alias): Likewise.
15760 (mips_init_machine_status): Likewise.
15761 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15762 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15763 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15764 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15765 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15766 * config/pa/pa.c (pa_init_machine_status): Likewise.
15767 (pa_get_deferred_plabel): Likewise.
15768 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15769 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15770 (rs6000_init_machine_status): Likewise.
15771 (output_toc): Likewise.
15772 * config/s390/s390.c (s390_init_machine_status): Likewise.
15773 * config/score/score.c (score_output_external): Likewise.
15774 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15775 * config/spu/spu.c (spu_init_machine_status): Likewise.
15776 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15777 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15778 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15779 * coverage.c (coverage_end_function): Likewise.
15780 * dbxout.c (dbxout_init): Likewise.
15781 * doc/gty.texi: Don't mention variable_size attribute.
15782 * dwarf2cfi.c (new_cfi): Adjust.
15783 (new_cfi_row): Likewise.
15784 (copy_cfi_row): Likewise.
15785 (create_cie_data): Likewise.
15786 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15787 (new_loc_descr): Likewise.
15788 (find_AT_string_in_table): Likewise.
15789 (add_addr_table_entry): Likewise.
15790 (new_die): Likewise.
15791 (add_var_loc_to_decl): Likewise.
15792 (clone_die): Likewise.
15793 (clone_as_declaration): Likewise.
15794 (break_out_comdat_types): Likewise.
15795 (new_loc_list): Likewise.
15796 (add_loc_descr_to_each): Likewise.
15797 (add_location_or_const_value_attribute): Likewise.
15798 (add_linkage_name): Likewise.
15799 (lookup_filename): Likewise.
15800 (dwarf2out_var_location): Likewise.
15801 (new_line_info_table): Likewise.
15802 (dwarf2out_init): Likewise.
15803 (mem_loc_descriptor): Likewise.
15804 (loc_descriptor): Likewise.
15805 (add_const_value_attribute): Likewise.
15806 (tree_add_const_value_attribute): Likewise.
15807 (comp_dir_string): Likewise.
15808 (dwarf2out_vms_debug_main_pointer): Likewise.
15809 (string_cst_pool_decl): Likewise.
15810 * emit-rtl.c (set_mem_attrs): Likewise.
15811 (get_reg_attrs): Likewise.
15812 (start_sequence): Likewise.
15813 (init_emit): Likewise.
15814 (init_emit_regs): Likewise.
15815 * except.c (init_eh_for_function): Likewise.
15816 (gen_eh_region): Likewise.
15817 (gen_eh_region_catch): Likewise.
15818 (gen_eh_landing_pad): Likewise.
15819 (add_call_site): Likewise.
15820 * function.c (add_frame_space): Likewise.
15821 (insert_temp_slot_address): Likewise.
15822 (assign_stack_temp_for_type): Likewise.
15823 (get_hard_reg_initial_val): Likewise.
15824 (allocate_struct_function): Likewise.
15825 (prepare_function_start): Likewise.
15826 (types_used_by_var_decl_insert): Likewise.
15827 * gengtype.c (variable_size_p): Remove function.
15828 (enum alloc_quantity): Remove enum.
15829 (write_typed_alloc_def): Remove function.
15830 (write_typed_struct_alloc_def): Likewise.
15831 (write_typed_typedef_alloc_def): Likewise.
15832 (write_typed_alloc_defns): Likewise.
15834 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15835 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15836 * ggc.h (ggc_alloc): new function.
15837 (ggc_cleared_alloc): Likewise.
15838 (ggc_vec_alloc): Template on type of vector element, and remove
15839 element size argument.
15840 (ggc_cleared_vec_alloc): Likewise.
15841 * gimple.c (gimple_build_omp_for): Adjust.
15842 (gimple_copy): Likewise.
15843 * ipa-cp.c (get_replacement_map): Likewise.
15844 (find_aggregate_values_for_callers_subset): Likewise.
15845 (known_aggs_to_agg_replacement_list): Likewise.
15846 * ipa-devirt.c (get_odr_type): Likewise.
15847 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15848 (read_agg_replacement_chain): Likewise.
15849 * loop-iv.c (get_simple_loop_desc): Likewise.
15850 * lto-cgraph.c (input_node_opt_summary): Likewise.
15851 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15852 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15853 (input_eh_region): Likewise.
15854 (input_eh_lp): Likewise.
15855 (input_cfg): Likewise.
15856 * optabs.c (set_optab_libfunc): Likewise.
15857 (init_tree_optimization_optabs): Likewise.
15858 (set_conv_libfunc): Likewise.
15859 * passes.c (do_per_function_toporder): Likewise.
15860 * rtl.h: Don't use variable_size gty attribute.
15861 * sese.c (if_region_set_false_region): Adjust.
15862 * stringpool.c (gt_pch_save_stringpool): Likewise.
15863 * target-globals.c (save_target_globals): Likewise.
15864 * toplev.c (general_init): Likewise.
15865 * trans-mem.c (record_tm_replacement): Likewise.
15866 (split_bb_make_tm_edge): Likewise.
15867 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15868 * tree-data-ref.h (lambda_vector_new): Likewise.
15869 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15870 * tree-iterator.c (tsi_link_before): Likewise.
15871 (tsi_link_after): Likewise.
15872 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15873 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15874 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15875 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15876 * tree-ssa.c (init_tree_ssa): Adjust.
15877 * tree-ssanames.c (set_range_info): Likewise.
15878 (get_ptr_info): Likewise.
15879 (duplicate_ssa_name_ptr_info): Likewise.
15880 (duplicate_ssa_name_range_info): Likewise.
15881 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15882 (unpack_ts_fixed_cst_value_fields): Likewise.
15883 * tree.c (build_fixed): Likewise.
15884 (build_real): Likewise.
15885 (build_string): Likewise.
15886 (decl_priority_info): Likewise.
15887 (decl_debug_expr_insert): Likewise.
15888 (decl_value_expr_insert): Likewise.
15889 (decl_debug_args_insert): Likewise.
15890 (type_hash_add): Likewise.
15891 (build_omp_clause): Likewise.
15892 * ubsan.c (decl_for_type_insert): Likewise.
15893 * varasm.c (get_unnamed_section): Likewise.
15894 (get_noswitch_section): Likewise.
15895 (get_section): Likewise.
15896 (get_block_for_section): Likewise.
15897 (create_block_symbol): Likewise.
15898 (build_constant_desc): Likewise.
15899 (create_constant_pool): Likewise.
15900 (force_const_mem): Likewise.
15901 (record_tm_clone_pair): Likewise.
15902 * varpool.c (varpool_create_empty_node): Likewise.
15904 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15906 * dwarf2out.c (tree_add_const_value_attribute): Call
15907 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15908 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15909 instead of ggc_internal_<x>alloc_stat.
15910 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15911 (ggc_realloc): Likewise.
15912 * ggc-none.c (ggc_internal_alloc): Likewise.
15913 (ggc_internal_cleared_alloc): Likewise.
15914 * ggc-page.c: Likewise.
15915 * ggc.h (ggc_internal_alloc_stat): Likewise.
15916 (ggc_internal_alloc): Remove macro.
15917 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15918 (ggc_internal_cleared_alloc): Remove macro.
15919 (GGC_RESIZEVEC): Adjust.
15920 (ggc_resizevar): Remove macro.
15921 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15922 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15923 (ggc_internal_vec_cleared_alloc): Remove macro.
15924 (ggc_alloc_atomic_stat): Drop _stat suffix.
15925 (ggc_alloc_atomic): Remove macro.
15926 (ggc_alloc_cleared_atomic): Remove macro.
15927 (ggc_alloc_string_stat): Drop _stat suffix.
15928 (ggc_alloc_string): Remove macro.
15929 (ggc_alloc_rtx_def_stat): Adjust.
15930 (ggc_alloc_tree_node_stat): Likewise.
15931 (ggc_alloc_cleared_tree_node_stat): Likewise.
15932 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15933 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15934 * gimple.c (gimple_build_omp_for): Likewise.
15935 (gimple_copy): Likewise.
15936 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15937 * toplev.c (realloc_for_line_map): Adjust.
15938 * tree-data-ref.h (lambda_vector_new): Likewise.
15939 * tree-phinodes.c (allocate_phi_node): Likewise.
15940 * tree.c (grow_tree_vec_stat): Likewise.
15941 * vec.h (va_gc::reserve): Adjust.
15943 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15945 * config/microblaze/microblaze.c (break_handler): New Declaration.
15946 (microblaze_break_function_p,microblaze_is_break_handler): New.
15947 (compute_frame_size): Use microblaze_break_function_p.
15948 Add the test of break_handler.
15949 (microblaze_function_prologue) : Add the test of variable
15950 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15951 (microblaze_function_epilogue) : Add the test of break_handler.
15952 (microblaze_globalize_label) : Add the test of break_handler.
15953 Check the name by BREAK_HANDLER_NAME.
15955 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15957 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15958 microblaze_is_break_handler test.
15959 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15960 Use SYMBOL_REF_DECL.
15962 * config/microblaze/microblaze-protos.h
15963 (microblaze_break_function_p,microblaze_is_break_handler):
15966 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15967 new MicroBlaze break_handler functions.
15969 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15971 * doc/extend.texi (Size of an asm): Move node text according
15972 to its @menu entry position.
15974 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15976 PR tree-optimization/61140
15977 PR tree-optimization/61150
15978 PR tree-optimization/61197
15979 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15981 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15983 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15985 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15987 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15988 __SIZEOF_INT128__ is defined.
15990 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15992 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15993 (rs6000_delegitimize_address): Use it.
15995 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15997 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15998 inplace argument. Store the new address in the original MEM when true.
15999 * emit-rtl.c (change_address_1): Likewise.
16000 (adjust_address_1, adjust_automodify_address_1, offset_address):
16001 Update accordingly.
16002 * rtl.h (plus_constant): Add an inplace argument.
16003 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16004 when true. Avoid generating (plus X (const_int 0)).
16005 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16006 in-place. Pass true to plus_constant.
16007 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16009 2014-05-16 Dehao Chen <dehao@google.com>
16011 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16013 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16016 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16018 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16020 2014-05-16 Dehao Chen <dehao@google.com>
16022 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16023 optimize_function_for_size_p.
16024 * regs.h (REG_FREQ_FROM_BB): Likewise.
16026 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16029 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16030 negt_reg_operand cases.
16031 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16033 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16035 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16037 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16040 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16043 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16045 * tree-cfg.c (dump_function_to_file): Dump the return type of
16046 functions, in a line to itself before the function body, mimicking
16047 the layout of a C function.
16049 2014-05-16 Dehao Chen <dehao@google.com>
16051 * cfghooks.c (make_forwarder_block): Use direct computation to
16052 get fall-through edge's count and frequency.
16054 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16056 * config/arc/arc.c (arc_init): Fix typo in error message.
16057 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16058 (split_stack_prologue_scratch_regno): Likewise.
16059 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16060 word from error message.
16062 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16064 * ira-costs.c: Fix typo in comment.
16066 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16068 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16070 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16072 * varpool.c (dump_varpool_node): Dump write-only flag.
16073 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16075 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16076 write-only variables.
16077 * ipa.c (process_references): New function.
16078 (set_readonly_bit): New function.
16079 (set_writeonly_bit): New function.
16080 (clear_addressable_bit): New function.
16081 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16082 fix handling of aliases.
16083 * cgraph.h (struct varpool_node): Add writeonly flag.
16085 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16087 PR rtl-optimization/60969
16088 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16089 Calculate costs for this case.
16091 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16093 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16094 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16096 2014-05-16 Richard Biener <rguenther@suse.de>
16098 PR tree-optimization/61194
16099 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16100 bool patterns ending in a COND_EXPR.
16102 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16104 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16106 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16109 where we were unable to cost an RTX.
16111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16116 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16117 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16119 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16122 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16125 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16128 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16130 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16134 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16136 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16139 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16140 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16142 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16143 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16145 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16146 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16148 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16149 rotates and shifts.
16151 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16152 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16154 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16155 ZERO_EXTEND and SIGN_EXTEND better.
16157 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16158 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16160 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16161 logical operations.
16163 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16164 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16166 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16167 costs when costing loads and stores to memory.
16169 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16170 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16172 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16175 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16177 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16179 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16180 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16182 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16184 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16186 (aarch64_rtx_mult_cost): New.
16187 (aarch64_rtx_costs): Use it, refactor as appropriate.
16189 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16190 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16192 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16193 emit instructions, return number of instructions which would
16195 (aarch64_add_constant): Update call to aarch64_build_constant.
16196 (aarch64_output_mi_thunk): Likewise.
16197 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16200 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16202 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16203 (TARGET_RTX_COSTS): Call it.
16205 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16207 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16208 (cortexa57_vector_cost): Likewise.
16209 (cortexa57_tunings): Use them.
16211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16213 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16214 (cpu_addrcost_table): Use it.
16215 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16216 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16219 2014-05-16 Richard Biener <rguenther@suse.de>
16221 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16222 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16223 (visit_phi): Ignore edges marked as not executable.
16224 (class cond_dom_walker): New.
16225 (cond_dom_walker::before_dom_children): Value-number
16226 control statements and mark successor edges as not
16227 executable if possible.
16228 (run_scc_vn): First walk all control statements in
16229 dominator order, marking edges as not executable.
16230 * tree-inline.c (copy_edges_for_bb): Be not confused
16231 about random edge flags.
16233 2014-05-16 Richard Biener <rguenther@suse.de>
16235 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16237 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16240 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16241 (__TM_simple_begin): Use it.
16242 (__TM_begin): Likewise.
16244 2014-05-15 Martin Jambor <mjambor@suse.cz>
16247 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16248 type_preserved flag when the indirect edge is polymorphic.
16250 2014-05-15 Martin Jambor <mjambor@suse.cz>
16252 PR tree-optimization/61090
16253 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16254 build_ref_for_model.
16256 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16258 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16259 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16261 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16263 PR tree-optimization/61158
16264 * fold-const.c (fold_binary_loc): If X is zero-extended and
16265 shiftc >= prec, make sure zerobits is all ones instead of
16266 invoking undefined behavior.
16268 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16270 * regcprop.h: New file.
16271 * regcprop.c (skip_debug_insn_p): New decl.
16272 (replace_oldest_value_reg): Check skip_debug_insn_p.
16273 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16274 * shrink-wrap.c: Include regcprop.h.
16275 (prepare_shrink_wrap): Call
16276 copyprop_hardreg_forward_bb_without_debug_insn.
16278 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16280 * shrink-wrap.h: Update comment.
16281 * shrink-wrap.c: Update comment.
16282 (next_block_for_reg): Rename to live_edge_for_reg.
16283 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16284 (move_insn_for_shrink_wrap): Split live_edge.
16285 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16287 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16289 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16291 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16292 * config/sparc/sparc.md (fptype_ut699): New attribute.
16293 (in_branch_delay): Return false if -mfix-ut699 is specified and
16294 fptype_ut699 is set to single.
16295 (truncdfsf2): Add fptype_ut699 attribute.
16296 (fix_truncdfsi2): Likewise.
16297 (floatsisf2): Change fptype attribute.
16298 (fix_truncsfsi2): Likewise.
16299 (negtf2_notv9): Delete.
16300 (negtf2_v9): Likewise.
16301 (negtf2_hq): New instruction.
16302 (negtf2): New instruction and splitter.
16303 (negdf2_notv9): Rewrite.
16304 (abstf2_notv9): Delete.
16305 (abstf2_hq_v9): Likewise.
16306 (abstf2_v9): Likewise.
16307 (abstf2_hq): New instruction.
16308 (abstf2): New instruction and splitter.
16309 (absdf2_notv9): Rewrite.
16311 2014-05-14 Cary Coutant <ccoutant@google.com>
16314 * opts.c (common_handle_option): Don't special-case "-g".
16315 (set_debug_level): Default to at least level 2 with "-g".
16317 2014-05-14 DJ Delorie <dj@redhat.com>
16319 * config/msp430/msp430.c (msp430_builtin): Add
16320 MSP430_BUILTIN_DELAY_CYCLES.
16321 (msp430_init_builtins): Register void __delay_cycles(long long).
16322 (msp430_builtin_decl): Add it.
16323 (cg_magic_constant): New.
16324 (msp430_expand_delay_cycles): New.
16325 (msp430_expand_builtin): Call it.
16326 (msp430_print_operand_raw): Change integer printing from "int" to
16328 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16329 (delay_cycles_start): New.
16330 (delay_cycles_end): New.
16331 (delay_cycles_32): New.
16332 (delay_cycles_32x): New.
16333 (delay_cycles_16): New.
16334 (delay_cycles_16x): New.
16335 (delay_cycles_2): New.
16336 (delay_cycles_1): New.
16337 * doc/extend.texi: Document __delay_cycles().
16339 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16341 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16342 length attribute computation.
16344 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16347 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16349 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16352 * config/sparc/sparc.md: Fix types of low and high in DI constant
16353 splitter. Use gen_int_mode in some other splitters.
16355 2014-05-14 Martin Jambor <mjambor@suse.cz>
16358 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16360 2014-05-14 James Norris <jnorris@codesourcery.com>
16362 * omp-low.c (expand_parallel_call): Remove shadow variable.
16363 (expand_omp_taskreg): Likewise.
16365 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16367 * common/config/i386/i386-common.c
16368 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16369 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16370 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16371 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16372 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16373 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16374 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16375 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16376 xsavecintrin.h, xsavesintrin.h.
16377 (x86_64-*-*): Ditto.
16378 * config/i386/clflushoptintrin.h: New.
16379 * config/i386/xsavecintrin.h: Ditto.
16380 * config/i386/xsavesintrin.h: Ditto.
16381 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16382 (bit_XSAVES): Ditto.
16383 (bit_XSAVES): Ditto.
16384 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16385 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16387 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16388 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16389 OPTION_MASK_ISA_XSAVES.
16390 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16391 -mxsavec, -mxsaves.
16392 (PTA_CLFLUSHOPT) Define.
16393 (PTA_XSAVEC): Ditto.
16394 (PTA_XSAVES): Ditto.
16395 (ix86_option_override_internal): Handle new options.
16396 (ix86_valid_target_attribute_inner_p): Ditto.
16397 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16398 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16399 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16400 (bdesc_special_args): Add __builtin_ia32_xsaves,
16401 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16402 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16403 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16404 (ix86_expand_builtin): Handle new builtins.
16405 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16406 (TARGET_CLFLUSHOPT_P): Ditto.
16407 (TARGET_XSAVEC): Ditto.
16408 (TARGET_XSAVEC_P): Ditto.
16409 (TARGET_XSAVES): Ditto.
16410 (TARGET_XSAVES_P): Ditto.
16411 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16412 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16413 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16415 (ANY_XRSTOR64): Ditto.
16417 (xrstor): Change into <xrstor>.
16418 (xrstor_rex64): Change into <xrstor>_rex64.
16419 (xrstor64): Change into <xrstor>64
16421 * config/i386/i386.opt (mclflushopt): New.
16424 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16426 * doc/invoke.texi: Document new options.
16428 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16430 PR rtl-optimization/60866
16431 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16432 Default it to -1. Pass it down to init_simplejump_data.
16433 (init_simplejump_data): New parameter old_seqno. Pass it down
16434 to get_seqno_for_a_jump.
16435 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16436 initializing new jump seqno as a last resort. Add comment.
16437 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16438 jump and pass it down to sel_init_new_insn.
16439 (sel_redirect_edge_and_branch_force): Likewise.
16441 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16443 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16444 shifted values to avoid build warning.
16446 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16448 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16449 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16450 (cfg_layout_merge_blocks): Likewise.
16451 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16453 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16455 PR rtl-optimization/60901
16456 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16457 bb predecessor belongs to the same scheduling region. Adjust comment.
16459 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16461 * doc/sourcebuild.texi: (dfp_hw): Document.
16462 (p8vector_hw): Likewise.
16463 (powerpc_eabi_ok): Likewise.
16464 (powerpc_elfv2): Likewise.
16465 (powerpc_htm_ok): Likewise.
16466 (ppc_recip_hw): Likewise.
16467 (vsx_hw): Likewise.
16469 2014-05-13 Cary Coutant <ccoutant@google.com>
16471 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16473 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16475 * gengtype-parse.c (require3): Eliminate in favor of...
16477 (require_template_declaration): Update to support optional single *
16480 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16481 (create_user_defined_type): Handle a single level of explicit
16482 pointerness within template arguments.
16483 (struct write_types_data): Add field "kind".
16484 (filter_type_name): Handle "*" character.
16485 (write_user_func_for_structure_ptr): Require a write_types_data
16486 rather than just a prefix string, so that we can look up the kind
16487 of the wtd and use it as an index into wrote_user_func_for_ptr,
16488 ensuring that such functions are written at most once. Support
16489 subclasses by invoking the marking function of the ultimate base class.
16490 (write_user_func_for_structure_body): Require a write_types_data
16491 rather than just a prefix string, so that we can pass this to
16492 write_user_func_for_structure_ptr.
16493 (write_func_for_structure): Likewise.
16494 (ggc_wtd): Add initializer of new "kind" field.
16495 (pch_wtd): Likewise.
16497 * gengtype.h (enum write_types_kinds): New.
16498 (struct type): Add field wrote_user_func_for_ptr to the "s"
16501 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16503 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16504 instead of const_binop.
16505 (fold_binary_loc): Likewise.
16507 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16509 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16510 calculation to match get_ref_base_and_extent.
16512 2014-05-13 Catherine Moore <clm@codesourcery.com>
16513 Sandra Loosemore <sandra@codesourcery.com>
16515 * configure.ac: Fix assembly for explicit JALR relocation check.
16516 * configure: Regenerate.
16518 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16520 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16521 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16522 Remove associated type declarations and initialisations.
16523 (arm_expand_neon_builtin): Likewise.
16524 (neon_emit_pair_result_insn): Delete.
16525 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16526 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16527 (neon_vzip<mode>): Likewise.
16528 (neon_vuzp<mode>): Likewise.
16530 2014-05-13 Richard Biener <rguenther@suse.de>
16533 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16534 it needs revisiting whether the call still may be tail-called.
16536 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16538 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16539 * rtl.h (block_symbol): Reduce number of fields to 2.
16540 (rtx_def): Add u2.symbol_ref_flags.
16541 (SYMBOL_REF_FLAGS): Use it.
16542 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16543 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16544 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16545 Lower index of SYMBOL_REF_DATA.
16546 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16547 Print SYMBOL_REF_FLAGS at the same time.
16548 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16550 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16552 * rtl.def (VAR_LOCATION): Remove "i" field.
16553 * rtl.h (rtx_def): Add u2.var_location_status.
16554 (PAT_VAR_LOCATION_STATUS): Use it.
16555 (gen_rtx_VAR_LOCATION): Declare.
16556 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16557 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16558 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16560 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16562 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16563 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16565 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16567 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16568 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16569 * rtl.h (rtx_def): Add insn_uid to u2 field.
16570 (RTX_FLAG_CHECK8): Delete in favor of...
16571 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16572 (INSN_DELETED_P): Update accordingly.
16573 (INSN_UID): Use u2.insn_uid.
16574 (INSN_CHAIN_CODE_P): Define.
16575 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16576 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16577 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16578 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16579 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16580 indices accordingly.
16581 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16582 Update indices for insn-chain rtxes.
16583 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16584 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16585 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16586 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16587 * combine.c (try_combine): Likewise.
16588 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16590 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16592 * rtl.def (REG): Remove middle field.
16593 * rtl.h (rtx_def): Add orignal_regno to u2.
16594 (ORIGINAL_REGNO): Use it instead of field 1.
16595 (REG_ATTRS): Lower field index accordingly.
16596 * gengtype.c (adjust_field_rtx_def): Remove handling of
16597 ORIGINAL_REGNO. Move REG_ATTRS index down.
16598 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16599 code that prints the REGNO.
16601 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16603 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16606 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16608 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16610 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16612 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16613 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16615 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16617 * config/aarch64/aarch64-protos.h
16618 (aarch64_hard_regno_caller_save_mode): New prototype.
16619 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16621 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16623 2014-05-13 Christian Bruel <christian.bruel@st.com>
16625 * target.def (mode_switching): New hook vector.
16626 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16627 (mode_exit, modepriority_to_mode): Likewise.
16628 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16629 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16630 * target.h: Include tm.h and hard-reg-set.h.
16631 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16632 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16633 * doc/tm.texi Regenerate.
16634 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16635 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16636 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16637 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16638 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16639 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16640 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16641 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16642 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16643 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16644 (ix86_emit_mode_set): Hookify.
16645 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16647 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16648 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16649 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16650 (epiphany_mode_priority_to_mode): Remove declaration.
16651 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16652 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16653 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16655 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16656 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16657 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16659 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16662 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16663 is const0_rtx, return immediately. Don't test count == 0 when
16666 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16668 * Makefile.in: add shrink-wrap.o.
16669 * config/i386/i386.c: include "shrink-wrap.h"
16670 * function.c: Likewise.
16671 (requires_stack_frame_p, next_block_for_reg,
16672 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16673 dup_block_and_redirect): Move to shrink-wrap.c
16674 (thread_prologue_and_epilogue_insns): Extract three code segments
16675 as functions in shrink-wrap.c
16676 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16678 * shrink-wrap.c: New file.
16679 * shrink-wrap.h: New file.
16681 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16683 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16684 reference to Solaris.
16686 2014-05-12 Mike Stump <mikestump@comcast.net>
16689 * genattrtab.c (filename): Add.
16690 (convert_set_attr_alternative): Improve error message.
16691 (check_defs): Restore read_md_filename for error messages.
16692 (gen_insn): Save filename.
16694 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16696 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16697 -fno-local-ivars and -fivar-visibility.
16698 * c-family/c.opt: Make -Wshadow also implicitly enable
16701 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16703 * doc/tm.texi: Remove reference to deleted macro.
16704 * doc/tm.texi.in: Likewise.
16706 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16709 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16712 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16715 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16716 * config/arm/aout.h (License): Same.
16717 * config/arm/bpabi.h (License): Same.
16718 * config/arm/elf.h (License): Same.
16719 * config/arm/linux-elf.h (License): Same.
16720 * config/arm/linux-gas.h (License): Same.
16721 * config/arm/netbsd-elf.h (License): Same.
16722 * config/arm/uclinux-eabi.h (License): Same.
16723 * config/arm/uclinux-elf.h (License): Same.
16724 * config/arm/vxworks.h (License): Same.
16726 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16728 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16729 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16730 number of operands to 3.
16731 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16732 * tree-nested.c (convert_nonlocal_omp_clauses,
16733 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16734 * gimplify.c (gimplify_scan_omp_clauses): Handle
16735 OMP_CLAUSE_LINEAR_STMT.
16736 * omp-low.c (lower_rec_input_clauses): Fix typo.
16737 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16738 cast between Fortran boolean_type_node and C _Bool if
16741 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16743 PR tree-optimization/61136
16744 * wide-int.h (multiple_of_p): Define a version that doesn't return
16746 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16747 integer_zerop/const_binop pair.
16748 (multiple_of_p): Likewise, converting both operands to widest_int
16751 2014-05-09 Teresa Johnson <tejohnson@google.com>
16753 * cgraphunit.c (analyze_functions): Use correct dump file.
16755 2014-05-09 Florian Weimer <fweimer@redhat.com>
16757 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16759 (stack_protect_return_slot_p): New function.
16760 (expand_used_vars): Call stack_protect_decl_p and
16761 stack_protect_return_slot_p for -fstack-protector-strong.
16763 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16764 Andrew Haley <aph@redhat.com>
16765 Richard Sandiford <rdsandiford@googlemail.com>
16767 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16770 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16772 PR middle-end/61111
16773 * fold-const.c (fold_binary_loc): Changed width of mask.
16775 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16777 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16778 unsigned int initializers for regno_in, regno_out.
16780 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16783 * config/avr/avr.md (cc): Add new attribute set_vzn.
16784 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16785 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16786 with INC, DEC or NEG.
16787 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16788 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16789 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16791 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16794 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16796 * wide-int.cc (UTItype): Define.
16797 (UDWtype): Define for appropriate W_TYPE_SIZE.
16799 2014-05-09 Richard Biener <rguenther@suse.de>
16801 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16802 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16803 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16804 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16805 ssa_propagate): Adjust.
16807 2014-05-08 Jeff Law <law@redhat.com>
16809 PR tree-optimization/61009
16810 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16811 tri-state rather than a boolean. When a block is too big to
16812 thread through, inform caller via negative return value.
16813 (thread_across_edge): If a block was too big for normal threading,
16814 then it's too big for a joiner too, so remove temporary equivalences
16815 and return immediately.
16817 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16818 Matthias Klose <doko@ubuntu.com>
16821 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16823 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16826 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16828 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16831 * config/alpha/alpha.c: Include gimple-iterator.h.
16832 (alpha_gimple_fold_builtin): New function. Move
16833 ALPHA_BUILTIN_UMULH folding from ...
16834 (alpha_fold_builtin): ... here.
16835 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16837 2014-05-08 Wei Mi <wmi@google.com>
16840 * config/i386/i386.c (ix86_compute_frame_layout): Update
16841 preferred_stack_boundary for call, expanded from tls descriptor.
16842 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16843 to depend on SP register.
16844 (*tls_local_dynamic_base_32_gnu): Ditto.
16845 (*tls_local_dynamic_32_once): Ditto.
16846 (tls_global_dynamic_64_<mode>): Set
16847 ix86_tls_descriptor_calls_expanded_in_cfun.
16848 (tls_local_dynamic_base_64_<mode>): Ditto.
16849 (tls_global_dynamic_32): Set
16850 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16851 to depend on SP register.
16852 (tls_local_dynamic_base_32): Ditto.
16854 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16856 * config/arm/arm_neon.h: Update comment.
16857 * config/arm/neon-docgen.ml: Delete.
16858 * config/arm/neon-gen.ml: Delete.
16859 * doc/arm-neon-intrinsics.texi: Update comment.
16861 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16863 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16865 (vand, vorr, veor, vorn, vbic): Remove.
16866 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16868 (neon_vsub_unspec): Likewise.
16869 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16871 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16873 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16874 (vadd_s16): Likewise.
16875 (vadd_s32): Likewise.
16876 (vadd_f32): Likewise.
16877 (vadd_u8): Likewise.
16878 (vadd_u16): Likewise.
16879 (vadd_u32): Likewise.
16880 (vadd_s64): Likewise.
16881 (vadd_u64): Likewise.
16882 (vaddq_s8): Likewise.
16883 (vaddq_s16): Likewise.
16884 (vaddq_s32): Likewise.
16885 (vaddq_s64): Likewise.
16886 (vaddq_f32): Likewise.
16887 (vaddq_u8): Likewise.
16888 (vaddq_u16): Likewise.
16889 (vaddq_u32): Likewise.
16890 (vaddq_u64): Likewise.
16891 (vmul_s8): Likewise.
16892 (vmul_s16): Likewise.
16893 (vmul_s32): Likewise.
16894 (vmul_f32): Likewise.
16895 (vmul_u8): Likewise.
16896 (vmul_u16): Likewise.
16897 (vmul_u32): Likewise.
16898 (vmul_p8): Likewise.
16899 (vmulq_s8): Likewise.
16900 (vmulq_s16): Likewise.
16901 (vmulq_s32): Likewise.
16902 (vmulq_f32): Likewise.
16903 (vmulq_u8): Likewise.
16904 (vmulq_u16): Likewise.
16905 (vmulq_u32): Likewise.
16906 (vsub_s8): Likewise.
16907 (vsub_s16): Likewise.
16908 (vsub_s32): Likewise.
16909 (vsub_f32): Likewise.
16910 (vsub_u8): Likewise.
16911 (vsub_u16): Likewise.
16912 (vsub_u32): Likewise.
16913 (vsub_s64): Likewise.
16914 (vsub_u64): Likewise.
16915 (vsubq_s8): Likewise.
16916 (vsubq_s16): Likewise.
16917 (vsubq_s32): Likewise.
16918 (vsubq_s64): Likewise.
16919 (vsubq_f32): Likewise.
16920 (vsubq_u8): Likewise.
16921 (vsubq_u16): Likewise.
16922 (vsubq_u32): Likewise.
16923 (vsubq_u64): Likewise.
16924 (vand_s8): Likewise.
16925 (vand_s16): Likewise.
16926 (vand_s32): Likewise.
16927 (vand_u8): Likewise.
16928 (vand_u16): Likewise.
16929 (vand_u32): Likewise.
16930 (vand_s64): Likewise.
16931 (vand_u64): Likewise.
16932 (vandq_s8): Likewise.
16933 (vandq_s16): Likewise.
16934 (vandq_s32): Likewise.
16935 (vandq_s64): Likewise.
16936 (vandq_u8): Likewise.
16937 (vandq_u16): Likewise.
16938 (vandq_u32): Likewise.
16939 (vandq_u64): Likewise.
16940 (vorr_s8): Likewise.
16941 (vorr_s16): Likewise.
16942 (vorr_s32): Likewise.
16943 (vorr_u8): Likewise.
16944 (vorr_u16): Likewise.
16945 (vorr_u32): Likewise.
16946 (vorr_s64): Likewise.
16947 (vorr_u64): Likewise.
16948 (vorrq_s8): Likewise.
16949 (vorrq_s16): Likewise.
16950 (vorrq_s32): Likewise.
16951 (vorrq_s64): Likewise.
16952 (vorrq_u8): Likewise.
16953 (vorrq_u16): Likewise.
16954 (vorrq_u32): Likewise.
16955 (vorrq_u64): Likewise.
16956 (veor_s8): Likewise.
16957 (veor_s16): Likewise.
16958 (veor_s32): Likewise.
16959 (veor_u8): Likewise.
16960 (veor_u16): Likewise.
16961 (veor_u32): Likewise.
16962 (veor_s64): Likewise.
16963 (veor_u64): Likewise.
16964 (veorq_s8): Likewise.
16965 (veorq_s16): Likewise.
16966 (veorq_s32): Likewise.
16967 (veorq_s64): Likewise.
16968 (veorq_u8): Likewise.
16969 (veorq_u16): Likewise.
16970 (veorq_u32): Likewise.
16971 (veorq_u64): Likewise.
16972 (vbic_s8): Likewise.
16973 (vbic_s16): Likewise.
16974 (vbic_s32): Likewise.
16975 (vbic_u8): Likewise.
16976 (vbic_u16): Likewise.
16977 (vbic_u32): Likewise.
16978 (vbic_s64): Likewise.
16979 (vbic_u64): Likewise.
16980 (vbicq_s8): Likewise.
16981 (vbicq_s16): Likewise.
16982 (vbicq_s32): Likewise.
16983 (vbicq_s64): Likewise.
16984 (vbicq_u8): Likewise.
16985 (vbicq_u16): Likewise.
16986 (vbicq_u32): Likewise.
16987 (vbicq_u64): Likewise.
16988 (vorn_s8): Likewise.
16989 (vorn_s16): Likewise.
16990 (vorn_s32): Likewise.
16991 (vorn_u8): Likewise.
16992 (vorn_u16): Likewise.
16993 (vorn_u32): Likewise.
16994 (vorn_s64): Likewise.
16995 (vorn_u64): Likewise.
16996 (vornq_s8): Likewise.
16997 (vornq_s16): Likewise.
16998 (vornq_s32): Likewise.
16999 (vornq_s64): Likewise.
17000 (vornq_u8): Likewise.
17001 (vornq_u16): Likewise.
17002 (vornq_u32): Likewise.
17003 (vornq_u64): Likewise.
17005 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17007 * wide-int.cc (UTItype): Define.
17008 (UDWtype): Define for appropriate W_TYPE_SIZE.
17010 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17012 PR tree-optimization/59100
17013 * tree-ssa-phiopt.c: Include tree-inline.h.
17014 (neutral_element_p, absorbing_element_p): New functions.
17015 (value_replacement): Handle conditional binary operations with a
17016 neutral or absorbing element.
17018 2014-05-08 Richard Biener <rguenther@suse.de>
17020 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17021 folding the expression.
17022 (valueize_expr): Remove.
17023 (visit_reference_op_load): Do not valueize the result of
17025 (simplify_binary_expression): Likewise.
17026 (simplify_unary_expression): Likewise.
17028 2014-05-08 Richard Biener <rguenther@suse.de>
17030 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17031 looking at TYPE_ARG_TYPES.
17033 2014-05-08 Richard Biener <rguenther@suse.de>
17035 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17036 pointer propagation special-case.
17038 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17040 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17041 core part of address expressions.
17043 2014-05-08 Alan Modra <amodra@gmail.com>
17046 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17047 loads and stores when -mno-strict-align at any alignment.
17048 (expand_block_clear): Similarly. Also correct calculation of
17051 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17053 PR middle-end/39246
17054 * tree-complex.c (expand_complex_move): Keep line info when expanding
17056 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17057 of complex expression. Use new argument to display correct location
17058 for values coming from phi statement.
17059 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17060 (warn_uninitialized_phi): Pass location of phi argument to
17062 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17063 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17065 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17067 * config/rs6000/predicates.md (indexed_address_mem): New.
17068 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17069 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17070 fpstore_ux, fpstore_u.
17071 (sign_extend, indexed, update): New.
17072 (cell_micro): Adjust.
17073 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17074 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17075 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17076 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17077 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17078 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17079 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17080 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17081 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17082 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17083 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17084 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17085 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17086 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17087 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17089 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17090 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17091 *vsx_extract_<mode>_store): Adjust.
17092 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17093 is_cracked_insn, insn_must_be_first_in_group,
17094 insn_must_be_last_in_group): Adjust.
17096 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17098 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17099 ppc440-fpstore): Adjust.
17100 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17101 ppc476-fpstore): Adjust.
17102 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17103 ppc601-fpstore): Adjust.
17104 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17106 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17108 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17109 ppc7450-fpstore): Adjust.
17110 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17111 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17112 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17114 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17115 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17116 cell-fpstore, cell-fpstore-update): Adjust.
17117 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17118 ppce300c3_store, ppce300c3_fpstore): Adjust.
17119 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17120 e500mc_fpstore): Adjust.
17121 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17122 e500mc64_store, e500mc64_fpstore): Adjust.
17123 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17124 e5500_fpstore): Adjust.
17125 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17126 e6500_fpstore): Adjust.
17127 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17129 * config/rs6000/power4.md (power4-load, power4-load-ext,
17130 power4-load-ext-update, power4-load-ext-update-indexed,
17131 power4-load-update-indexed, power4-load-update, power4-fpload,
17132 power4-fpload-update, power4-store, power4-store-update,
17133 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17135 * config/rs6000/power5.md (power5-load, power5-load-ext,
17136 power5-load-ext-update, power5-load-ext-update-indexed,
17137 power5-load-update-indexed, power5-load-update, power5-fpload,
17138 power5-fpload-update, power5-store, power5-store-update,
17139 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17141 * config/rs6000/power6.md (power6-load, power6-load-ext,
17142 power6-load-update, power6-load-update-indexed,
17143 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17144 power6-fpload-update, power6-store, power6-store-update,
17145 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17147 * config/rs6000/power7.md (power7-load, power7-load-ext,
17148 power7-load-update, power7-load-update-indexed,
17149 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17150 power7-fpload-update, power7-store, power7-store-update,
17151 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17153 * config/rs6000/power8.md (power8-load, power8-load-update,
17154 power8-load-ext, power8-load-ext-update, power8-fpload,
17155 power8-fpload-update, power8-store, power8-store-update-indexed,
17156 power8-fpstore, power8-fpstore-update): Adjust.
17157 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17159 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17160 titan_lsu_store, titan_lsu_fpstore): Adjust.
17161 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17163 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17166 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17167 unrolled byte insns. Emit address increments after move insns.
17169 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17171 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17172 const_gimple, rather than a gimple.
17173 (gimple_call_builtin_p): Likewise, for the three variants.
17175 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17176 (gimple_call_builtin_p): Likewise, for the three variants.
17178 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17180 PR tree-optimization/61095
17181 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17183 2014-05-07 Richard Biener <rguenther@suse.de>
17185 PR tree-optimization/61034
17186 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17187 (maybe_skip_until): Use translate to take into account
17188 lattices when trying to do disambiguations.
17189 (get_continuation_for_phi_1): Likewise.
17190 (get_continuation_for_phi): Adjust for added translate arguments.
17191 (walk_non_aliased_vuses): Likewise.
17192 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17193 (walk_non_aliased_vuses): Likewise.
17194 (call_may_clobber_ref_p_1): Declare.
17195 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17196 calls. Stop early if we are only supposed to disambiguate.
17197 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17199 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17201 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17202 Emit an error when the function has arguments.
17204 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17206 * cfgloop.h (unswitch_loops): Remove.
17207 * doc/passes.texi: Remove references to loop-unswitch.c
17208 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17210 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17212 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17213 check for loads group of length 3.
17214 (vect_permute_load_chain): New permutations for loads group of
17216 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17217 of vec_perm_shuffle for the new permutations.
17219 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17221 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17222 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17223 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17224 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17225 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17226 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17227 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17228 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17230 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17232 * loop-unswitch.c: Delete.
17234 2014-05-07 Richard Biener <rguenther@suse.de>
17236 * config.gcc: Always set need_64bit_hwint to yes.
17238 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17240 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17241 of using optimize_size.
17243 2014-05-06 Mike Stump <mikestump@comcast.net>
17245 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17247 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17249 * config/i386/sse.md (*mov<mode>_internal)
17250 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17251 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17252 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17253 (*<code><mode>3, *andnot<mode>3<mask_name>)
17254 (<mask_codefor><code><mode>3<mask_name>): Only consider
17255 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17257 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17260 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17262 * lra-constraints.c (valid_address_p): Move earlier in file.
17263 Add a constraint argument to the address_info version.
17264 (satisfies_memory_constraint_p): New function.
17265 (satisfies_address_constraint_p): Likewise.
17266 (process_alt_operands, curr_insn_transform): Use them.
17267 (process_address): Pass the constraint to valid_address_p when
17268 checking address operands.
17270 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17272 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17273 to their respective blocks. Fix inadvertent use of "node".
17275 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17277 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17279 (init_emit_once): ...here.
17280 * rtl.h (init_derived_machine_modes): Declare.
17281 * toplev.c (do_compile): Call it even if no_backend.
17283 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17284 Mike Stump <mikestump@comcast.net>
17285 Richard Sandiford <rdsandiford@googlemail.com>
17286 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17288 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17289 (rtx_equal_for_memref_p): Update comment.
17290 (adjust_offset_for_component_ref): Use wide-int interfaces.
17291 * builtins.c (get_object_alignment_2): Likewise.
17292 (c_readstr): Likewise.
17293 (target_char_cast): Add comment.
17294 (determine_block_size): Use wide-int interfaces.
17295 (expand_builtin_signbit): Likewise.
17296 (fold_builtin_int_roundingfn): Likewise.
17297 (fold_builtin_bitop): Likewise.
17298 (fold_builtin_bswap): Likewise.
17299 (fold_builtin_logarithm): Use signop.
17300 (fold_builtin_pow): Likewise.
17301 (fold_builtin_memory_op): Use wide-int interfaces.
17302 (fold_builtin_object_size): Likewise.
17303 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17304 nb_iterations_estimate.
17305 (record_niter_bound): Use wide-int interfaces.
17306 (get_estimated_loop_iterations_int): Likewise.
17307 (get_estimated_loop_iterations): Likewise.
17308 (get_max_loop_iterations): Likewise.
17309 * cfgloop.h: Include wide-int.h.
17310 (struct nb_iter_bound): Change bound to widest_int.
17311 (struct loop): Change nb_iterations_upper_bound and
17312 nb_iterations_estimate to widest_int.
17313 (record_niter_bound): Switch to use widest_int.
17314 (get_estimated_loop_iterations): Likewise.
17315 (get_max_loop_iterations): Likewise.
17316 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17317 update for wide-int.
17318 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17319 * combine.c (try_combine): Likewise.
17320 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17321 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17323 (aarch64_float_const_representable_p): Likewise.
17324 * config/arc/arc.c: Include wide-int.h.
17325 (arc_can_use_doloop_p): Use wide-int interfaces.
17326 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17327 (vfp3_const_double_index): Likewise.
17328 * config/avr/avr.c (avr_out_round): Likewise.
17329 (avr_fold_builtin): Likewise.
17330 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17331 (bfin_can_use_doloop_p): Likewise.
17332 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17333 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17334 * config/i386/i386.c: Include wide-int.h.
17335 (ix86_data_alignment): Use wide-int interfaces.
17336 (ix86_local_alignment): Likewise.
17337 (ix86_emit_swsqrtsf): Update real_from_integer.
17338 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17339 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17340 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17341 (zero_constant): Likewise.
17342 (input_operand): Likewise.
17343 (splat_input_operand): Likewise.
17344 (non_logical_cint_operand): Change const_double to const_wide_int.
17345 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17346 (easy_altivec_constant): Remove comment.
17347 (paired_expand_vector_init): Use CONSTANT_P.
17348 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17349 (rs6000_emit_move): Update checks.
17350 (rs6000_aggregate_candidate): Use wide-int interfaces.
17351 (rs6000_expand_ternop_builtin): Likewise.
17352 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17353 (rs6000_assemble_integer): Likewise.
17354 (rs6000_hash_constant): Likewise.
17355 (output_toc): Likewise.
17356 (rs6000_rtx_costs): Likewise.
17357 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17358 * config/rs6000/rs6000-c.c: Include wide-int.h.
17359 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17360 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17361 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17362 Handle CONST_WIDE_INT.
17363 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17364 Use tree_fits_uhwi_p.
17365 * config/sparc/sparc.c: Include wide-int.h.
17366 (sparc_fold_builtin): Use wide-int interfaces.
17367 * config/vax/vax.c: Include wide-int.h.
17368 (vax_float_literal): Use real_from_integer.
17369 * coretypes.h (struct hwivec_def): New.
17371 (const_hwivec): New.
17372 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17373 (equiv_constant): Handle CONST_WIDE_INT.
17374 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17375 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17376 * dbxout.c (stabstr_U): Use wide-int interfaces.
17377 (dbxout_type): Update to use cst_fits_shwi_p.
17378 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17379 (TARGET_SUPPORTS_WIDE_INT): Add default.
17380 * dfp.c: Include wide-int.h.
17381 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17382 decimal_real_to_integer.
17383 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17384 decimal_real_to_integer.
17385 * doc/generic.texi (Constant expressions): Update for wide_int.
17386 * doc/rtl.texi (const_double): Likewise.
17387 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17388 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17389 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17390 (REAL_VALUE_FROM_INT): Remove.
17391 (TARGET_SUPPORTS_WIDE_INT): New.
17392 * doc/tm.texi: Regenerate.
17393 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17394 * double-int.h: Include wide-int.h.
17395 (struct wi::int_traits): New.
17396 * dwarf2out.c (get_full_len): New.
17397 (dw_val_equal_p): Add case dw_val_class_wide_int.
17398 (size_of_loc_descr): Likewise.
17399 (output_loc_operands): Likewise.
17400 (insert_double): Remove.
17401 (insert_wide_int): New.
17402 (add_AT_wide): New.
17403 (print_die): Add case dw_val_class_wide_int.
17404 (attr_checksum): Likewise.
17405 (attr_checksum_ordered): Likewise.
17406 (same_dw_val_p): Likewise.
17407 (size_of_die): Likewise.
17408 (value_format): Likewise.
17409 (output_die): Likewise.
17410 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17412 (clz_loc_descriptor): Use wide-int interfaces.
17413 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17414 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17415 (round_up_to_align): Use wide-int interfaces.
17416 (field_byte_offset): Likewise.
17417 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17418 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17419 CONST_DOUBLE handling. Use wide-int interfaces.
17420 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17421 (gen_enumeration_type_die): Use add_AT_wide.
17422 (hash_loc_operands): Add case dw_val_class_wide_int.
17423 (compare_loc_operands): Likewise.
17424 * dwarf2out.h: Include wide-int.h.
17425 (wide_int_ptr): New.
17426 (enum dw_val_class): Add dw_val_class_wide_int.
17427 (struct dw_val_struct): Add val_wide.
17428 * emit-rtl.c (const_wide_int_htab): New.
17429 (const_wide_int_htab_hash): New.
17430 (const_wide_int_htab_eq): New.
17431 (lookup_const_wide_int): New.
17432 (const_double_htab_hash): Use wide-int interfaces.
17433 (const_double_htab_eq): Likewise.
17434 (rtx_to_double_int): Conditionally compile for wide-int.
17435 (immed_double_int_const): Rename to immed_wide_int_const and
17436 update for wide-int.
17437 (immed_double_const): Conditionally compile for wide-int.
17438 (init_emit_once): Use wide-int interfaces.
17439 * explow.c (plus_constant): Likewise.
17440 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17441 (lshift_value): Use wide-int interfaces.
17442 (expand_mult): Likewise.
17443 (choose_multiplier): Likewise.
17444 (expand_smod_pow2): Likewise.
17445 (make_tree): Likewise.
17446 * expr.c (convert_modes): Consolidate handling of constants.
17447 Use wide-int interfaces.
17448 (emit_group_load_1): Add note.
17449 (store_expr): Update comment.
17450 (get_inner_reference): Use wide-int interfaces.
17451 (expand_constructor): Update comment.
17452 (expand_expr_real_2): Use wide-int interfaces.
17453 (expand_expr_real_1): Likewise.
17454 (reduce_to_bit_field_precision): Likewise.
17455 (const_vector_from_tree): Likewise.
17456 * final.c: Include wide-int-print.h.
17457 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17458 * fixed-value.c: Include wide-int.h.
17459 (fixed_from_string): Use wide-int interfaces.
17460 (fixed_to_decimal): Likewise.
17461 (fixed_convert_from_real): Likewise.
17462 (real_convert_from_fixed): Likewise.
17463 * fold-const.h (mem_ref_offset): Return an offset_int.
17464 (div_if_zero_remainder): Remove code parameter.
17465 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17466 Use wide-int interfaces.
17467 (may_negate_without_overflow_p): Use wide-int interfaces.
17468 (negate_expr_p): Likewise.
17469 (fold_negate_expr): Likewise.
17470 (int_const_binop_1): Likewise.
17471 (const_binop): Likewise.
17472 (fold_convert_const_int_from_int): Likewise.
17473 (fold_convert_const_int_from_real): Likewise.
17474 (fold_convert_const_int_from_fixed): Likewise.
17475 (fold_convert_const_fixed_from_int): Likewise.
17476 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17477 (sign_bit_p): Use wide-int interfaces.
17478 (make_range_step): Likewise.
17479 (build_range_check): Likewise. Pass an integer of the correct type
17480 instead of using integer_one_node.
17481 (range_predecessor): Pass an integer of the correct type instead
17482 of using integer_one_node.
17483 (range_successor): Likewise.
17484 (merge_ranges): Likewise.
17485 (unextend): Use wide-int interfaces.
17486 (extract_muldiv_1): Likewise.
17487 (fold_div_compare): Likewise.
17488 (fold_single_bit_test): Likewise.
17489 (fold_sign_changed_comparison): Likewise.
17490 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17491 (fold_plusminus_mult_expr): Use wide-int interfaces.
17492 (native_encode_int): Likewise.
17493 (native_interpret_int): Likewise.
17494 (fold_unary_loc): Likewise.
17495 (pointer_may_wrap_p): Likewise.
17496 (size_low_cst): Likewise.
17497 (mask_with_tz): Likewise.
17498 (fold_binary_loc): Likewise.
17499 (fold_ternary_loc): Likewise.
17500 (multiple_of_p): Likewise.
17501 (tree_call_nonnegative_warnv_p): Update calls to
17502 tree_int_cst_min_precision and real_from_integer.
17503 (fold_negate_const): Use wide-int interfaces.
17504 (fold_abs_const): Likewise.
17505 (fold_relational_const): Use tree_int_cst_lt.
17506 (round_up_loc): Use wide-int interfaces.
17507 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17508 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17509 * gengtype.c: Remove include of double-int.h.
17510 (do_typedef): Use wide-int interfaces.
17511 (open_base_files): Add wide-int.h.
17512 (main): Add offset_int and widest_int typedefs.
17513 * gengtype-lex.l: Handle "^".
17514 (CXX_KEYWORD): Add "static".
17515 * gengtype-parse.c (require3): New.
17516 (require_template_declaration): Handle constant template arguments
17517 and nested templates.
17518 * gengtype-state.c: Don't include "double-int.h".
17519 * genpreds.c (write_one_predicate_function): Update comment.
17520 (write_tm_constrs_h): Add check for hval and lval use in
17522 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17523 (add_to_sequence): Likewise.
17524 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17525 and const_double_operand.
17526 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17528 * gimple-fold.c (get_base_constructor): Likewise.
17529 (fold_array_ctor_reference): Likewise.
17530 (fold_nonarray_ctor_reference): Likewise.
17531 (fold_const_aggregate_ref_1): Likewise.
17532 (gimple_val_nonnegative_real_p): Likewise.
17533 (gimple_fold_indirect_ref): Likewise.
17534 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17535 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17536 (struct slsr_cand_d): Change index to be widest_int.
17537 (struct incr_info_d): Change incr to be widest_int.
17538 (alloc_cand_and_find_basis): Use wide-int interfaces.
17539 (slsr_process_phi): Likewise.
17540 (backtrace_base_for_ref): Likewise. Return a widest_int.
17541 (restructure_reference): Take a widest_int instead of a double_int.
17542 (slsr_process_ref): Use wide-int interfaces.
17543 (create_mul_ssa_cand): Likewise.
17544 (create_mul_imm_cand): Likewise.
17545 (create_add_ssa_cand): Likewise.
17546 (create_add_imm_cand): Take a widest_int instead of a double_int.
17547 (slsr_process_add): Use wide-int interfaces.
17548 (slsr_process_cast): Likewise.
17549 (slsr_process_copy): Likewise.
17550 (dump_candidate): Likewise.
17551 (dump_incr_vec): Likewise.
17552 (replace_ref): Likewise.
17553 (cand_increment): Likewise. Return a widest_int.
17554 (cand_abs_increment): Likewise.
17555 (replace_mult_candidate): Take a widest_int instead of a double_int.
17556 (replace_unconditional_candidate): Use wide-int interfaces.
17557 (incr_vec_index): Take a widest_int instead of a double_int.
17558 (create_add_on_incoming_edge): Likewise.
17559 (create_phi_basis): Use wide-int interfaces.
17560 (replace_conditional_candidate): Likewise.
17561 (record_increment): Take a widest_int instead of a double_int.
17562 (record_phi_increments): Use wide-int interfaces.
17563 (phi_incr_cost): Take a widest_int instead of a double_int.
17564 (lowest_cost_path): Likewise.
17565 (total_savings): Likewise.
17566 (analyze_increments): Use wide-int interfaces.
17567 (ncd_with_phi): Take a widest_int instead of a double_int.
17568 (ncd_of_cand_and_phis): Likewise.
17569 (nearest_common_dominator_for_cands): Likewise.
17570 (insert_initializers): Use wide-int interfaces.
17571 (all_phi_incrs_profitable): Likewise.
17572 (replace_one_candidate): Likewise.
17573 (replace_profitable_candidates): Likewise.
17574 * godump.c: Include wide-int-print.h.
17575 (go_output_typedef): Use wide-int interfaces.
17576 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17577 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17578 (build_loop_iteration_domains): Likewise.
17579 * hooks.h: Include wide-int.h rather than double-int.h.
17580 (hook_bool_dint_dint_uint_bool_true): Delete.
17581 (hook_bool_wint_wint_uint_bool_true): Declare.
17582 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17583 (hook_bool_wint_wint_uint_bool_true): New.
17584 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17586 (ubsan_expand_si_overflow_mul_check): Likewise.
17587 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17588 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17589 (get_ancestor_addr_info): Likewise.
17590 (ipa_modify_call_arguments): Likewise.
17591 * loop-doloop.c (doloop_modify): Likewise.
17592 (doloop_optimize): Likewise.
17593 * loop-iv.c (iv_number_of_iterations): Likewise.
17594 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17595 (unroll_loop_constant_iterations): Likewise.
17596 (decide_unroll_runtime_iterations): Likewise.
17597 (unroll_loop_runtime_iterations): Likewise.
17598 (decide_peel_simple): Likewise.
17599 (decide_unroll_stupid): Likewise.
17600 * lto-streamer-in.c (streamer_read_wi): Add.
17601 (input_cfg): Use wide-int interfaces.
17602 (lto_input_tree_1): Likewise.
17603 * lto-streamer-out.c (streamer_write_wi): Add.
17604 (hash_tree): Use wide-int interfaces.
17605 (output_cfg): Likewise.
17606 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17607 (GTFILES): Add wide-int.h and signop.h.
17608 (TAGS): Look for .cc files too.
17609 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17610 * optabs.c (expand_subword_shift): Likewise.
17611 (expand_doubleword_shift): Likewise.
17612 (expand_absneg_bit): Likewise.
17613 (expand_copysign_absneg): Likewise.
17614 (expand_copysign_bit): Likewise.
17615 * postreload.c (reload_cse_simplify_set): Likewise.
17616 * predict.c (predict_iv_comparison): Likewise.
17617 * pretty-print.h: Include wide-int-print.h.
17619 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17620 * print-tree.c: Include wide-int-print.h.
17621 (print_node_brief): Use wide-int interfaces.
17622 (print_node): Likewise.
17623 * read-rtl.c (validate_const_wide_int): New.
17624 (read_rtx_code): Add CONST_WIDE_INT case.
17625 * real.c: Include wide-int.h.
17626 (real_to_integer2): Delete.
17627 (real_to_integer): New function, returning a wide_int.
17628 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17629 (ten_to_ptwo): Update call to real_from_integer.
17630 (real_digit): Likewise.
17631 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17632 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17633 (REAL_VALUE_TO_INT): Delete.
17634 (real_to_integer): Declare a wide-int form.
17635 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17636 * recog.c (const_int_operand): Improve comment.
17637 (const_scalar_int_operand): New.
17638 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17639 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17640 (split_double): Likewise.
17641 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17642 (rtx_size): Likewise.
17643 (rtx_alloc_stat_v): New.
17644 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17645 (cwi_output_hex): New.
17646 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17647 (cwi_check_failed_bounds): New.
17648 * rtl.def (CONST_WIDE_INT): New.
17649 * rtl.h: Include <utility> and wide-int.h.
17650 (struct hwivec_def): New.
17651 (CWI_GET_NUM_ELEM): New.
17652 (CWI_PUT_NUM_ELEM): New.
17653 (struct rtx_def): Add num_elem and hwiv.
17654 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17655 (CASE_CONST_UNIQUE): Likewise.
17656 (CASE_CONST_ANY): Likewise.
17657 (CONST_SCALAR_INT_P): Likewise.
17658 (CONST_WIDE_INT_P): New.
17660 (HWIVEC_CHECK): New.
17661 (cwi_check_failed_bounds): New.
17663 (HWIVEC_CHECK): New.
17664 (CONST_WIDE_INT_VEC) New.
17665 (CONST_WIDE_INT_NUNITS) New.
17666 (CONST_WIDE_INT_ELT) New.
17667 (rtx_mode_t): New type.
17668 (wi::int_traits <rtx_mode_t>): New.
17670 (wi::min_value): New.
17671 (wi::max_value): New.
17673 (const_wide_int_alloc): New.
17674 (immed_wide_int_const): New.
17675 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17676 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17677 * signop.h: New file.
17678 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17679 (simplify_const_unary_operation): Use wide-int interfaces.
17680 (simplify_binary_operation_1): Likewise.
17681 (simplify_const_binary_operation): Likewise.
17682 (simplify_const_relational_operation): Likewise.
17683 (simplify_immed_subreg): Likewise.
17684 * stmt.c (expand_case): Likewise.
17685 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17686 signop rather than a bool.
17687 * stor-layout.c (layout_type): Use wide-int interfaces.
17688 (initialize_sizetypes): Update calls to
17689 set_min_and_max_values_for_integral_type.
17690 (set_min_and_max_values_for_integral_type): Take a signop rather
17691 than a bool. Use wide-int interfaces.
17692 (fixup_signed_type): Update accordingly. Remove
17693 HOST_BITS_PER_DOUBLE_INT limit.
17694 (fixup_unsigned_type): Likewise.
17695 * system.h (STATIC_CONSTANT_P): New.
17696 (STATIC_ASSERT): New.
17697 * target.def (can_use_doloop_p): Take widest_ints rather than
17699 * target.h: Include wide-int.h rather than double-int.h.
17700 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17702 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17703 rather than INT_CST_LT_UNSIGNED.
17704 (can_use_doloop_if_innermost): Take widest_ints rather than
17706 * tree-affine.c: Include wide-int-print.h.
17707 (double_int_ext_for_comb): Delete.
17708 (wide_int_ext_for_comb): New.
17709 (aff_combination_zero): Use wide-int interfaces.
17710 (aff_combination_const): Take a widest_int instead of a double_int.
17711 (aff_combination_elt): Use wide-int interfaces.
17712 (aff_combination_scale): Take a widest_int instead of a double_int.
17713 (aff_combination_add_elt): Likewise.
17714 (aff_combination_add_cst): Likewise.
17715 (aff_combination_add): Use wide-int interfaces.
17716 (aff_combination_convert): Likewise.
17717 (tree_to_aff_combination): Likewise.
17718 (add_elt_to_tree): Take a widest_int instead of a double_int.
17719 (aff_combination_to_tree): Use wide-int interfaces.
17720 (aff_combination_remove_elt): Likewise.
17721 (aff_combination_add_product): Take a widest_int instead of
17723 (aff_combination_mult): Use wide-int interfaces.
17724 (aff_combination_expand): Likewise.
17725 (double_int_constant_multiple_p): Delete.
17726 (wide_int_constant_multiple_p): New.
17727 (aff_combination_constant_multiple_p): Take a widest_int pointer
17728 instead of a double_int pointer.
17729 (print_aff): Use wide-int interfaces.
17730 (get_inner_reference_aff): Take a widest_int pointer
17731 instead of a double_int pointer.
17732 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17733 * tree-affine.h: Include wide-int.h.
17734 (struct aff_comb_elt): Change type of coef to widest_int.
17735 (struct affine_tree_combination): Change type of offset to widest_int.
17736 (double_int_ext_for_comb): Delete.
17737 (wide_int_ext_for_comb): New.
17738 (aff_combination_const): Use widest_int instead of double_int.
17739 (aff_combination_scale): Likewise.
17740 (aff_combination_add_elt): Likewise.
17741 (aff_combination_constant_multiple_p): Likewise.
17742 (get_inner_reference_aff): Likewise.
17743 (aff_comb_cannot_overlap_p): Likewise.
17744 (aff_combination_zero_p): Use wide-int interfaces.
17745 * tree.c: Include tree.h.
17746 (init_ttree): Use make_int_cst.
17747 (tree_code_size): Removed code for INTEGER_CST case.
17748 (tree_size): Add INTEGER_CST case.
17749 (make_node_stat): Update comment.
17750 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17751 (build_int_cst_type): Use wide-int interfaces.
17752 (double_int_to_tree): Likewise.
17753 (double_int_fits_to_tree_p): Delete.
17754 (force_fit_type_double): Delete.
17755 (force_fit_type): New.
17756 (int_cst_hash_hash): Use wide-int interfaces.
17757 (int_cst_hash_eq): Likewise.
17758 (build_int_cst_wide): Delete.
17759 (wide_int_to_tree): New.
17760 (cache_integer_cst): Use wide-int interfaces.
17761 (build_low_bits_mask): Likewise.
17762 (cst_and_fits_in_hwi): Likewise.
17763 (real_value_from_int_cst): Likewise.
17764 (make_int_cst_stat): New.
17765 (integer_zerop): Use wide_int interfaces.
17766 (integer_onep): Likewise.
17767 (integer_all_onesp): Likewise.
17768 (integer_pow2p): Likewise.
17769 (integer_nonzerop): Likewise.
17770 (tree_log2): Likewise.
17771 (tree_floor_log2): Likewise.
17772 (tree_ctz): Likewise.
17773 (int_size_in_bytes): Likewise.
17774 (mem_ref_offset): Return an offset_int rather than a double_int.
17775 (build_type_attribute_qual_variant): Use wide_int interfaces.
17776 (type_hash_eq): Likewise
17777 (tree_int_cst_equal): Likewise.
17778 (tree_int_cst_lt): Delete.
17779 (tree_int_cst_compare): Likewise.
17780 (tree_fits_shwi_p): Use wide_int interfaces.
17781 (tree_fits_uhwi_p): Likewise.
17782 (tree_int_cst_sign_bit): Likewise.
17783 (tree_int_cst_sgn): Likewise.
17784 (tree_int_cst_min_precision): Take a signop rather than a bool.
17785 (simple_cst_equal): Use wide_int interfaces.
17786 (compare_tree_int): Likewise.
17787 (iterative_hash_expr): Likewise.
17788 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17790 (get_type_static_bounds): Use wide_int interfaces.
17791 (tree_int_cst_elt_check_failed): New.
17792 (build_common_tree_nodes): Reordered to set prec before filling in
17794 (int_cst_value): Check cst_and_fits_in_hwi.
17795 (widest_int_cst_value): Use wide_int interfaces.
17796 (upper_bound_in_type): Likewise.
17797 (lower_bound_in_type): Likewise.
17798 (num_ending_zeros): Likewise.
17799 (drop_tree_overflow): Likewise.
17800 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17801 (gen_conditions_for_pow_cst_base): Likewise.
17802 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17803 (group_case_labels_stmt): Use wide-int interfaces.
17804 (verify_gimple_assign_binary): Likewise.
17805 (print_loop): Likewise.
17806 * tree-chrec.c (tree_fold_binomial): Likewise.
17807 * tree-core.h (struct tree_base): Add int_length.
17808 (struct tree_int_cst): Change rep of value.
17809 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17810 (dr_may_alias_p): Likewise.
17811 (max_stmt_executions_tree): Likewise.
17812 * tree.def (INTEGER_CST): Update comment.
17813 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17814 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17815 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17816 (dequeue_and_dump): Use wide-int interfaces.
17817 * tree.h: Include wide-int.h.
17818 (NULL_TREE): Moved to earlier loc in file.
17819 (TREE_INT_CST_ELT_CHECK): New.
17820 (tree_int_cst_elt_check_failed): New.
17822 (TREE_INT_CST): Delete.
17823 (TREE_INT_CST_LOW): Use wide-int interfaces.
17824 (TREE_INT_CST_HIGH): Delete.
17825 (TREE_INT_CST_NUNITS): New.
17826 (TREE_INT_CST_EXT_NUNITS): Likewise.
17827 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17828 (TREE_INT_CST_ELT): Likewise.
17829 (INT_CST_LT): Delete.
17830 (tree_int_cst_elt_check): New (two forms).
17831 (type_code_size): Update comment.
17832 (make_int_cst_stat, make_int_cst): New.
17833 (tree_to_double_int): Delete.
17834 (double_int_fits_to_tree_p): Delete.
17835 (force_fit_type_double): Delete.
17836 (build_int_cstu): Replace with out-of-line function.
17837 (build_int_cst_wide): Delete.
17838 (tree_int_cst_lt): Define inline.
17839 (tree_int_cst_le): New.
17840 (tree_int_cst_compare): Define inline.
17841 (tree_int_cst_min_precision): Take a signop rather than a bool.
17842 (wi::int_traits <const_tree>): New.
17843 (wi::int_traits <tree>): New.
17844 (wi::extended_tree): New.
17845 (wi::int_traits <wi::extended_tree>): New.
17846 (wi::to_widest): New.
17847 (wi::to_offset): New.
17848 (wi::fits_to_tree_p): New.
17849 (wi::min_value): New.
17850 (wi::max_value): New.
17851 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17852 (copy_tree_body_r): Likewise.
17853 * tree-object-size.c (compute_object_offset): Likewise.
17854 (addr_object_size): Likewise.
17855 * tree-predcom.c: Include wide-int-print.h.
17856 (struct dref_d): Change type of offset to widest_int.
17857 (dump_dref): Call wide-int printer.
17858 (aff_combination_dr_offset): Use wide-int interfaces.
17859 (determine_offset): Take a widest_int pointer rather than a
17860 double_int pointer.
17861 (split_data_refs_to_components): Use wide-int interfaces.
17862 (suitable_component_p): Likewise.
17863 (order_drefs): Likewise.
17864 (add_ref_to_chain): Likewise.
17865 (valid_initializer_p): Likewise.
17866 (determine_roots_comp): Likewise.
17867 * tree-pretty-print.c: Include wide-int-print.h.
17868 (dump_generic_node): Use wide-int interfaces.
17869 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17870 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17871 (move_fixed_address_to_symbol): Likewise.
17872 (move_hint_to_base): Likewise.
17873 (move_pointer_to_base): Likewise.
17874 (move_variant_to_index): Likewise.
17875 (most_expensive_mult_to_index): Likewise.
17876 (addr_to_parts): Likewise.
17877 (copy_ref_info): Likewise.
17878 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17879 (indirect_refs_may_alias_p): Likewise.
17880 (stmt_kills_ref_p_1): Likewise.
17881 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17882 * tree-ssa-ccp.c: Update comment at top of file. Include
17884 (struct prop_value_d): Change type of mask to widest_int.
17885 (extend_mask): New function.
17886 (dump_lattice_value): Use wide-int interfaces.
17887 (get_default_value): Likewise.
17888 (set_constant_value): Likewise.
17889 (set_value_varying): Likewise.
17890 (valid_lattice_transition): Likewise.
17891 (set_lattice_value): Likewise.
17892 (value_to_double_int): Delete.
17893 (value_to_wide_int): New.
17894 (get_value_from_alignment): Use wide-int interfaces.
17895 (get_value_for_expr): Likewise.
17896 (do_dbg_cnt): Likewise.
17897 (ccp_finalize): Likewise.
17898 (ccp_lattice_meet): Likewise.
17899 (bit_value_unop_1): Use widest_ints rather than double_ints.
17900 (bit_value_binop_1): Likewise.
17901 (bit_value_unop): Use wide-int interfaces.
17902 (bit_value_binop): Likewise.
17903 (bit_value_assume_aligned): Likewise.
17904 (evaluate_stmt): Likewise.
17905 (ccp_fold_stmt): Likewise.
17906 (visit_cond_stmt): Likewise.
17907 (ccp_visit_stmt): Likewise.
17908 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17909 (constant_pointer_difference): Likewise.
17910 (associate_pointerplus): Likewise.
17911 (combine_conversions): Likewise.
17912 * tree-ssa-loop.h: Include wide-int.h.
17913 (struct tree_niter_desc): Change type of max to widest_int.
17914 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17915 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17916 (remove_redundant_iv_tests): Likewise.
17917 (canonicalize_loop_induction_variables): Likewise.
17918 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17919 (constant_multiple_of): Take a widest_int pointer instead of
17920 a double_int pointer.
17921 (get_computation_aff): Use wide-int interfaces.
17922 (ptr_difference_cost): Likewise.
17923 (difference_cost): Likewise.
17924 (get_loop_invariant_expr_id): Likewise.
17925 (get_computation_cost_at): Likewise.
17926 (iv_elimination_compare_lt): Likewise.
17927 (may_eliminate_iv): Likewise.
17928 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17929 instead of double_int.
17930 (max_loop_iterations): Likewise.
17931 (max_stmt_executions): Likewise.
17932 (estimated_stmt_executions): Likewise.
17933 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17934 (split_to_var_and_offset): Use wide-int interfaces.
17935 (determine_value_range): Likewise.
17936 (bound_difference_of_offsetted_base): Likewise.
17937 (bounds_add): Take a widest_int instead of a double_int.
17938 (number_of_iterations_ne_max): Use wide-int interfaces.
17939 (number_of_iterations_ne): Likewise.
17940 (number_of_iterations_lt_to_ne): Likewise.
17941 (assert_loop_rolls_lt): Likewise.
17942 (number_of_iterations_lt): Likewise.
17943 (number_of_iterations_le): Likewise.
17944 (number_of_iterations_cond): Likewise.
17945 (number_of_iterations_exit): Likewise.
17946 (finite_loop_p): Likewise.
17947 (derive_constant_upper_bound_assign): Likewise.
17948 (derive_constant_upper_bound): Return a widest_int.
17949 (derive_constant_upper_bound_ops): Likewise.
17950 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17951 (record_estimate): Take a widest_int rather than a double_int.
17952 (record_nonwrapping_iv): Use wide-int interfaces.
17953 (double_int_cmp): Delete.
17954 (wide_int_cmp): New.
17955 (bound_index): Take a widest_int rather than a double_int.
17956 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17957 (maybe_lower_iteration_bound): Likewise.
17958 (estimate_numbers_of_iterations_loop): Likewise.
17959 (estimated_loop_iterations): Take a widest_int pointer than than
17960 a double_int pointer.
17961 (estimated_loop_iterations_int): Use wide-int interfaces.
17962 (max_loop_iterations): Take a widest_int pointer than than
17963 a double_int pointer.
17964 (max_loop_iterations_int): Use wide-int interfaces.
17965 (max_stmt_executions): Take a widest_int pointer than than
17966 a double_int pointer.
17967 (estimated_stmt_executions): Likewise.
17968 (n_of_executions_at_most): Use wide-int interfaces.
17969 (scev_probably_wraps_p): Likewise.
17970 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17971 to real_to_integer.
17972 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17974 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17975 double_ints. Adjust for trailing_wide_ints <3> representation.
17976 (set_nonzero_bits): Likewise.
17977 (get_range_info): Return wide_ints rather than double_ints.
17978 Adjust for trailing_wide_ints <3> representation.
17979 (get_nonzero_bits): Likewise.
17980 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17982 * tree-ssanames.h (struct range_info_def): Replace min, max and
17983 nonzero_bits with a trailing_wide_ints <3>.
17984 (set_range_info): Use wide_int_refs rather than double_ints.
17985 (set_nonzero_bits): Likewise.
17986 (get_range_info): Return wide_ints rather than double_ints.
17987 (get_nonzero_bits): Likewise.
17988 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17989 * tree-ssa-pre.c (phi_translate_1): Likewise.
17990 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17991 (acceptable_pow_call): Likewise.
17992 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17994 (vn_reference_fold_indirect): Likewise.
17995 (vn_reference_maybe_forwprop_address): Likewise.
17996 (valueize_refs_1): Likewise.
17997 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17998 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17999 tree_int_cst_lt and tree_int_cst_le.
18000 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18002 (streamer_alloc_tree): Likewise.
18003 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18004 (streamer_write_tree_header): Likewise.
18005 (streamer_write_integer_cst): Likewise.
18006 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18007 (build_constructors): Likewise.
18008 (array_value_type): Likewise.
18009 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18010 (vect_check_gather): Likewise.
18011 * tree-vect-generic.c (build_replicated_const): Likewise.
18012 (expand_vector_divmod): Likewise.
18013 * tree-vect-loop.c (vect_transform_loop): Likewise.
18014 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18015 (vect_do_peeling_for_alignment): Likewise.
18016 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18017 * tree-vrp.c: Include wide-int.h.
18018 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18019 (extract_range_from_assert): Use wide-int interfaces.
18020 (vrp_int_const_binop): Likewise.
18021 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18022 double_int pointers.
18023 (ranges_from_anti_range): Use wide-int interfaces.
18024 (quad_int_cmp): Delete.
18025 (quad_int_pair_sort): Likewise.
18026 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18027 (extract_range_from_unary_expr_1): Likewise.
18028 (adjust_range_with_scev): Likewise.
18029 (masked_increment): Take and return wide_ints rather than double_ints.
18030 (register_edge_assert_for_2): Use wide-int interfaces.
18031 (check_array_ref): Likewise.
18032 (search_for_addr_array): Likewise.
18033 (maybe_set_nonzero_bits): Likewise.
18034 (union_ranges): Pass an integer of the correct type instead of
18035 using integer_one_node.
18036 (intersect_ranges): Likewise.
18037 (simplify_truth_ops_using_ranges): Likewise.
18038 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18039 (range_fits_type_p): Likewise.
18040 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18042 (simplify_conversion_using_ranges): Use wide-int interfaces.
18043 (simplify_float_conversion_using_ranges): Likewise.
18044 (vrp_finalize): Likewise.
18045 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18046 (gimple_stringops_transform): Likewise.
18047 * varasm.c (decode_addr_const): Likewise.
18048 (const_hash_1): Likewise.
18049 (const_rtx_hash_1): Likewise
18050 (output_constant): Likewise.
18051 (array_size_for_constructor): Likewise.
18052 (output_constructor_regular_field): Likewise.
18053 (output_constructor_bitfield): Likewise.
18054 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18055 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18057 * gencheck.c: Define BITS_PER_UNIT.
18058 * wide-int.cc: New.
18060 * wide-int-print.cc: New.
18061 * wide-int-print.h: New.
18063 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18065 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18067 2014-05-06 Richard Biener <rguenther@suse.de>
18069 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18070 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18071 (TODO_verify_all): Adjust.
18072 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18073 TODO_verify_stmts and TODO_verify_rtl_sharing.
18074 * bb-reorder.c: Likewise.
18075 * cfgexpand.c: Likewise.
18076 * cprop.c: Likewise.
18078 * function.c: Likewise.
18079 * fwprop.c: Likewise.
18080 * gcse.c: Likewise.
18081 * gimple-ssa-isolate-paths.c: Likewise.
18082 * gimple-ssa-strength-reduction.c: Likewise.
18083 * ipa-split.c: Likewise.
18084 * loop-init.c: Likewise.
18085 * loop-unroll.c: Likewise.
18086 * lower-subreg.c: Likewise.
18087 * modulo-sched.c: Likewise.
18088 * postreload-gcse.c: Likewise.
18089 * predict.c: Likewise.
18090 * recog.c: Likewise.
18091 * sched-rgn.c: Likewise.
18092 * store-motion.c: Likewise.
18093 * tracer.c: Likewise.
18094 * trans-mem.c: Likewise.
18095 * tree-call-cdce.c: Likewise.
18096 * tree-cfg.c: Likewise.
18097 * tree-cfgcleanup.c: Likewise.
18098 * tree-complex.c: Likewise.
18099 * tree-eh.c: Likewise.
18100 * tree-emutls.c: Likewise.
18101 * tree-if-conv.c: Likewise.
18102 * tree-into-ssa.c: Likewise.
18103 * tree-loop-distribution.c: Likewise.
18104 * tree-object-size.c: Likewise.
18105 * tree-parloops.c: Likewise.
18106 * tree-pass.h: Likewise.
18107 * tree-sra.c: Likewise.
18108 * tree-ssa-ccp.c: Likewise.
18109 * tree-ssa-copy.c: Likewise.
18110 * tree-ssa-copyrename.c: Likewise.
18111 * tree-ssa-dce.c: Likewise.
18112 * tree-ssa-dom.c: Likewise.
18113 * tree-ssa-dse.c: Likewise.
18114 * tree-ssa-forwprop.c: Likewise.
18115 * tree-ssa-ifcombine.c: Likewise.
18116 * tree-ssa-loop-ch.c: Likewise.
18117 * tree-ssa-loop-ivcanon.c: Likewise.
18118 * tree-ssa-loop.c: Likewise.
18119 * tree-ssa-math-opts.c: Likewise.
18120 * tree-ssa-phiopt.c: Likewise.
18121 * tree-ssa-phiprop.c: Likewise.
18122 * tree-ssa-pre.c: Likewise.
18123 * tree-ssa-reassoc.c: Likewise.
18124 * tree-ssa-sink.c: Likewise.
18125 * tree-ssa-strlen.c: Likewise.
18126 * tree-ssa-tail-merge.c: Likewise.
18127 * tree-ssa-uncprop.c: Likewise.
18128 * tree-switch-conversion.c: Likewise.
18129 * tree-tailcall.c: Likewise.
18130 * tree-vect-generic.c: Likewise.
18131 * tree-vectorizer.c: Likewise.
18132 * tree-vrp.c: Likewise.
18133 * tsan.c: Likewise.
18134 * var-tracking.c: Likewise.
18135 * bt-load.c: Likewise.
18136 * cfgcleanup.c: Likewise.
18137 * combine-stack-adj.c: Likewise.
18138 * combine.c: Likewise.
18139 * compare-elim.c: Likewise.
18140 * config/epiphany/resolve-sw-modes.c: Likewise.
18141 * config/i386/i386.c: Likewise.
18142 * config/mips/mips.c: Likewise.
18143 * config/s390/s390.c: Likewise.
18144 * config/sh/sh_treg_combine.cc: Likewise.
18145 * config/sparc/sparc.c: Likewise.
18148 * final.c: Likewise.
18149 * ifcvt.c: Likewise.
18150 * mode-switching.c: Likewise.
18151 * passes.c: Likewise.
18152 * postreload.c: Likewise.
18154 * reg-stack.c: Likewise.
18155 * regcprop.c: Likewise.
18156 * regrename.c: Likewise.
18159 2014-05-06 Richard Biener <rguenther@suse.de>
18161 PR middle-end/61070
18162 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18163 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18165 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18168 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18170 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18171 Tom de Vries <tom@codesourcery.com>
18173 * target.def (call_fusage_contains_non_callee_clobbers): New
18175 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18177 (@node Miscellaneous Register Hooks): New node.
18178 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18179 * doc/tm.texi: Regenerate.
18181 2014-05-05 Marek Polacek <polacek@redhat.com>
18184 * opts.c (common_handle_option): Call error_at instead of warning_at.
18186 2014-05-05 Richard Biener <rguenther@suse.de>
18188 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18189 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18190 under the TODO_verify_il umbrella.
18192 2014-05-05 Richard Biener <rguenther@suse.de>
18194 * passes.c (execute_function_todo): Move TODO_verify_flow under
18195 the TODO_verify_ul umbrella.
18197 2014-05-05 Richard Biener <rguenther@suse.de>
18199 PR middle-end/61010
18200 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18201 X & CST away from a CST that is the mask of a mode.
18203 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18205 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18206 int argument to enum machine_mode.
18207 (picochip_class_max_nregs): Ditto.
18208 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18209 (picochip_class_max_nregs): Ditto.
18211 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18213 * target.def: Add new target hook.
18214 * doc/tm.texi: Regenerate.
18215 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18216 * targhooks.c (default_keep_leaf_when_profiled): New function.
18218 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18219 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18221 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18223 PR tree-optimization/60363
18224 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18225 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18226 (update_destination_phis): New parameter.
18227 (create_edge_and_update_destination_phis): Ditto.
18228 (ssa_fix_duplicate_block_edges): Pass new arguments.
18229 (thread_single_edge): Ditto.
18231 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18233 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18234 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18235 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18236 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18237 Use RS6000_BTM_HARD_FLOAT.
18238 (BU_MISC_2): Likewise.
18239 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18240 RS6000_BTM_HARD_FLOAT.
18241 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18242 is explicitly used.
18243 (rs6000_invalid_builtin): Add hard floating builtin support.
18244 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18245 hard float builtins.
18246 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18248 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18250 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18251 Add missing function* argument.
18253 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18255 * lra-constraints.c (valid_address_p): Move earlier in file.
18256 Add a constraint argument to the address_info version.
18257 (satisfies_memory_constraint_p): New function.
18258 (satisfies_address_constraint_p): Likewise.
18259 (process_alt_operands, curr_insn_transform): Use them.
18260 (process_address): Pass the constraint to valid_address_p when
18261 checking address operands.
18263 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18265 * config/mips/mips.c (mips_isa_rev): New variable.
18266 (mips_set_architecture): Set it.
18267 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18269 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18270 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18271 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18272 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18273 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18274 conditions in terms of mips_isa_rev.
18275 (mips_isa_rev): Declare.
18277 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18279 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18280 (prob_unlikely, prob_likely): Make variables const.
18282 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18284 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18286 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18288 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18290 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18292 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18293 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18294 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18296 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18297 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18299 Replace usage of ROUND_REG with sh_round_reg.
18300 Use CEIL instead of ROUND_ADVANCE.
18302 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18305 * config/sh/sh.c: Include stdlib headers before everything else.
18307 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18309 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18310 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18311 (gimplify_adjust_omp_clauses): Simd region is never
18312 directly nested in combined parallel. Instead, for linear
18313 with copyin/copyout, if in combined for simd loop, make decl
18314 firstprivate/lastprivate on OMP_FOR.
18315 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18316 expand_omp_for_static_chunk): When setting endvar, also set
18317 fd->loop.v to the same value.
18319 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18321 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18323 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18325 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18328 2014-05-02 Marek Polacek <polacek@redhat.com>
18330 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18332 2014-05-02 Kito Cheng <kito@0xlab.org>
18334 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18335 to a C expression marco.
18336 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18337 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18338 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18339 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18340 HONOR_REG_ALLOC_ORDER.
18341 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18343 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18345 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18347 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18349 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18351 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18353 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18354 (convert_scalar_cond_reduction): Likewise.
18355 (predicate_scalar_phi): Add recognition and transformation
18356 of simple conditioanl reduction to be vectorizable.
18358 2014-05-01 Marek Polacek <polacek@redhat.com>
18361 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18363 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18365 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18366 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18367 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18368 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18369 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18370 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18371 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18372 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18374 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18376 * config/arc/arc.opt (mlra): Move comment above option name
18377 to avoid mis-parsing as language options.
18379 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18381 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18382 * config/sol2.h: ... here.
18383 * config/sol2-10.h: Remove.
18385 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18386 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18387 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18388 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18389 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18390 * config/sol2.h: ... here.
18391 (SECTION_NAME_FORMAT): Don't redefine.
18392 (STARTFILE_ARCH32_SPEC): Rename to ...
18393 (STARTFILE_ARCH_SPEC): ... this.
18394 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18395 * config/sparc/sol2.h: ... here.
18396 (SECTION_NAME_FORMAT): Don't undef.
18397 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18398 (SUBTARGET_EXTRA_SPECS): Remove.
18399 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18401 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18402 (MD_STARTFILE_PREFIX): Remove.
18403 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18404 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18405 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18406 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18407 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18408 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18409 * config/i386/sol2.h: ... here.
18410 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18411 * config/i386/sol2-bi.h: Remove.
18412 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18413 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18415 * config/i386/t-sol2-64: Rename to ...
18416 * config/i386/t-sol2: ... this.
18417 * config/sparc/t-sol2-64: Rename to ...
18418 * config/sparc/t-sol2: ... this.
18420 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18421 sol2_tm_file_head, sol2_tm_file_tail.
18422 Include ${cpu_type}/sol2.h before sol2.h.
18424 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18425 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18426 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18427 Reflect i386/t-sol2-64 renaming.
18428 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18429 Reflect sparc/t-sol2-64 renaming.
18431 2014-04-30 Richard Biener <rguenther@suse.de>
18433 * passes.c (execute_function_todo): Move TODO_verify_stmts
18434 and TODO_verify_ssa under the TODO_verify_il umbrella.
18435 * tree-ssa.h (verify_ssa): Adjust prototype.
18436 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18437 we should verify SSA operands.
18438 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18439 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18440 whether we should verify whether not throwing stmts have EH info.
18441 * graphite-scop-detection.c (create_sese_edges): Adjust.
18442 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18443 * tree-eh.c (lower_try_finally_switch): Do not add the
18444 default case label twice.
18446 2014-04-30 Marek Polacek <polacek@redhat.com>
18448 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18449 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18450 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18451 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18453 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18455 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18456 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18457 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18458 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18459 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18460 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18461 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18462 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18464 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18466 * tree-cfg.c (dump_function_to_file): Dump the return type of
18467 functions, in a line to itself before the function body, mimicking
18468 the layout of a C function.
18470 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18472 PR tree-optimization/60971
18473 * tree-tailcall.c (process_assignment): Reject conversions which
18476 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18478 * calls.c (initialize_argument_information): Always treat
18479 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18480 (expand_call): Likewise.
18481 (emit_library_call_calue_1): Likewise.
18482 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18483 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18486 2014-04-29 Nick Clifton <nickc@redhat.com>
18488 * config/msp430/msp430.md (umulsidi): Fix typo.
18489 (mulhisi3): Enable even inside interrupt handlers.
18490 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18491 bigger return address pushed in large mode.
18493 2014-04-29 Nick Clifton <nickc@redhat.com>
18495 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18496 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18498 * config/m32r/m32r.c (init_reg_tables): Likewise.
18499 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18500 enum to hold the modes.
18502 2014-04-29 Richard Biener <rguenther@suse.de>
18504 * dominance.c (free_dominance_info): Add overload with
18505 function parameter.
18506 (dom_info_state): Likewise.
18507 (dom_info_available_p): Likewise.
18508 * basic-block.h (free_dominance_info, dom_info_state,
18509 dom_info_available_p): Declare overloads.
18510 * passes.c (execute_function_todo): Verify that verifiers
18511 don't change dominator info state. Drop dominator info
18512 for IPA pass invocations.
18513 * cgraph.c (release_function_body): Restore asserts that
18514 dominator information is released.
18516 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18518 * doc/invoke.texi: Fix typo.
18519 * tree-vrp.c: Fix typos.
18520 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18522 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18524 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18526 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18528 * config/aarch64/aarch64-builtins.c
18529 (aarch64_types_storestruct_lane_qualifiers): New.
18530 (TYPES_STORESTRUCT_LANE): Likewise.
18531 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18532 (st3_lane): Likewise.
18533 (st4_lane): Likewise.
18534 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18535 (vec_store_lanesci_lane<mode>): Likewise.
18536 (vec_store_lanesxi_lane<mode>): Likewise.
18537 (aarch64_st2_lane<VQ:mode>): Likewise.
18538 (aarch64_st3_lane<VQ:mode>): Likewise.
18539 (aarch64_st4_lane<VQ:mode>): Likewise.
18540 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18541 * config/aarch64/arm_neon.h
18542 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18543 use new macro arguments.
18544 (__ST3_LANE_FUNC): Likewise.
18545 (__ST4_LANE_FUNC): Likewise.
18546 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18547 (V_THREE_ELEM): Likewise.
18548 (V_FOUR_ELEM): Likewise.
18550 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18552 * doc/gimple.texi: Replace the description of the now-defunct
18553 union gimple_statement_d with a diagram showing the
18554 gimple_statement_base class hierarchy and its relationships to
18555 the GSS_ and GIMPLE_ enums.
18557 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18559 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18560 * config/aarch64/aarch64.c
18561 (aarch64_cannot_change_mode_class): Weaken conditions.
18562 (aarch64_modes_tieable_p): New.
18563 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18565 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18567 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18568 (loadsync_<mode>): Change mode.
18569 (load_quadpti, store_quadpti): New.
18570 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18571 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18573 2014-04-28 Martin Jambor <mjambor@suse.cz>
18575 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18576 same alias type as the original statement.
18577 (subreplacement_assignment_data): New type.
18578 (handle_unscalarized_data_in_subtree): New type of parameter,
18579 generate new memory accesses with same alias type as the original
18581 (load_assign_lhs_subreplacements): Likewise.
18582 (sra_modify_constructor_assign): Generate new memory accesses with
18583 same alias type as the original statement.
18585 2014-04-28 Richard Biener <rguenther@suse.de>
18587 * tree-pass.h (TODO_verify_il): Define.
18588 (TODO_verify_all): Complete properly.
18589 * passes.c (execute_function_todo): Move existing loop-closed
18590 SSA verification under TODO_verify_il.
18591 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18592 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18593 Fix tree sharing issue.
18595 2014-04-28 Richard Biener <rguenther@suse.de>
18597 PR middle-end/60092
18598 * builtins.def (DEF_C11_BUILTIN): Add.
18599 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18600 * coretypes.h (enum function_class): Add function_c11_misc.
18601 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18602 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18603 (call_may_clobber_ref_p_1): Likewise.
18604 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18605 (mark_all_reaching_defs_necessary_1): Likewise.
18606 (propagate_necessity): Likewise.
18607 (eliminate_unnecessary_stmts): Likewise.
18608 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18610 2014-04-28 Richard Biener <rguenther@suse.de>
18612 * tree-vrp.c (vrp_var_may_overflow): Remove.
18613 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18614 with overflow immediately bump to one before that value and
18615 let iteration figure out overflow status.
18617 2014-04-28 Richard Biener <rguenther@suse.de>
18619 * configure.ac: Do valgrind header checks unconditionally.
18620 Add --enable-valgrind-annotations.
18621 * system.h: Guard valgrind header inclusion with
18622 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18623 * alloc-pool.c (pool_alloc, pool_free): Use
18624 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18625 to guard possibly dead code.
18626 * config.in: Regenerated.
18627 * configure: Likewise.
18629 2014-04-28 Jeff Law <law@redhat.com>
18631 PR tree-optimization/60902
18632 * tree-ssa-threadedge.c
18633 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18634 over real defs when invalidating outputs from statements that do not
18635 produce useful outputs for threading.
18637 2014-04-28 Richard Biener <rguenther@suse.de>
18639 PR tree-optimization/60979
18640 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18641 SCOPs that end in a block with a successor with abnormal
18644 2014-04-28 Richard Biener <rguenther@suse.de>
18646 * tree-pass.h (execute_pass_list): Adjust prototype.
18647 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18648 (do_per_function): Change callback signature, push all actual
18649 work to the callbals.
18650 (do_per_function_toporder): Likewise.
18651 (execute_function_dump): Adjust.
18652 (execute_function_todo): Likewise.
18653 (clear_last_verified): Likewise.
18654 (verify_curr_properties): Likewise.
18655 (update_properties_after_pass): Likewise.
18656 (execute_pass_list_1): Split out from ...
18657 (execute_pass_list): ... here. Adjust.
18658 (execute_ipa_pass_list): Likewise.
18659 * cgraphunit.c (cgraph_add_new_function): Adjust.
18660 (analyze_function): Likewise.
18661 (expand_function): Likewise.
18662 * cgraph.c (release_function_body): Free dominance info
18663 here instead of asserting it was magically freed elsewhere.
18665 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18667 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18668 * configure: Regenerate.
18669 * config/sparc/sparc.opt (muser-mode): New option.
18670 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18672 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18673 * doc/invoke.texi (SPARC options): Document -muser-mode.
18675 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18677 * cselib.c (find_slot_memmode): Delete.
18678 (cselib_hasher): Change compare_type to a struct.
18679 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18681 (preserve_constants_and_equivs): Adjust for new compare_type.
18682 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18683 (wrap_constant): Delete.
18684 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18686 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18688 * doc/install.texi (Building with profile feedback): Remove
18691 2014-04-26 Tom de Vries <tom@codesourcery.com>
18693 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18696 2014-04-25 Cary Coutant <ccoutant@google.com>
18699 * dwarf2out.c (should_move_die_to_comdat): A type definition
18700 can contain a subprogram definition, but don't move it to a
18702 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18703 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18705 (clone_tree_hash): Rename to...
18706 (clone_tree_partial): ...this; change callers. Copy
18707 DW_TAG_subprogram DIEs as declarations.
18708 (copy_decls_walk): Don't copy children of a declaration into a
18711 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18714 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18717 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18719 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18720 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18722 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18725 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18727 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18729 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18731 PR tree-optimization/60930
18732 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18733 creating a multiply candidate by folding two constant
18734 multiplicands when the result overflows.
18736 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18738 PR tree-optimization/60960
18739 * tree-vect-generic.c (expand_vector_operation): Only call
18740 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18742 2014-04-25 Tom de Vries <tom@codesourcery.com>
18744 * expr.c (clobber_reg_mode): New function.
18745 * expr.h (clobber_reg): New function.
18747 2014-04-25 Tom de Vries <tom@codesourcery.com>
18749 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18752 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18753 Tom de Vries <tom@codesourcery.com>
18755 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18757 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18758 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18759 new argument to find_all_hard_reg_sets call.
18761 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18763 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18764 Use HOST_WIDE_INT_C for mask literal.
18765 (aarch_rev16_shleft_mask_imm_p): Likewise.
18767 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18770 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18772 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18774 PR preprocessor/56540
18775 * config/i386/i386-c.c (ix86_target_macros): Define
18776 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18778 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18780 * configure.ac (tga_func): Remove.
18781 (LIB_TLS_SPEC): Remove.
18782 * configure: Regenerate.
18783 * config.in: Regenerate.
18784 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18786 2014-04-25 Richard Biener <rguenther@suse.de>
18789 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18790 call stmt use/clobber sets during stmt walk instead of
18791 walking the possibly incomplete set of caller edges.
18793 2014-04-25 Richard Biener <rguenther@suse.de>
18796 * passes.c (apply_ipa_transforms): Inline into only caller ...
18797 (execute_one_pass): ... here. Properly bring in function
18798 bodies for nodes we want to apply IPA transforms to.
18800 2014-04-24 Cong Hou <congh@google.com>
18802 PR tree-optimization/60896
18803 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18804 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18805 (vect_mark_pattern_stmts): Set the def type of all statements in
18806 PATTERN_DEF_SEQ as vect_internal_def.
18808 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18810 * doc/extend.texi (PowerPC Built-in Functions): Document new
18811 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18812 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18814 * config/rs6000/predicates.md (const_0_to_3_operand): New
18815 predicate to match 0..3 integer constants.
18817 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18818 to support adding miscellaneous builtin functions.
18819 (BU_DFP_MISC_2): Likewise.
18820 (BU_P7_MISC_1): Likewise.
18821 (BU_P7_MISC_2): Likewise.
18822 (BU_P8V_MISC_3): Likewise.
18823 (BU_MISC_1): Likewise.
18824 (BU_MISC_2): Likewise.
18825 (DIVWE): Add extended divide builtin functions.
18826 (DIVWEO): Likewise.
18827 (DIVWEU): Likewise.
18828 (DIVWEUO): Likewise.
18830 (DIVDEO): Likewise.
18831 (DIVDEU): Likewise.
18832 (DIVDEUO): Likewise.
18833 (DXEX): Add decimal floating-point builtin functions.
18835 (DDEDPD): Likewise.
18836 (DDEDPDQ): Likewise.
18837 (DENBCD): Likewise.
18838 (DENBCDQ): Likewise.
18842 (DSCLIQ): Likewise.
18844 (DSCRIQ): Likewise.
18845 (CDTBCD): Add new BCD builtin functions.
18846 (CBCDTD): Likewise.
18847 (ADDG6S): Likewise.
18848 (BCDADD): Likewise.
18849 (BCDADD_LT): Likewise.
18850 (BCDADD_EQ): Likewise.
18851 (BCDADD_GT): Likewise.
18852 (BCDADD_OV): Likewise.
18853 (BCDSUB): Likewise.
18854 (BCDSUB_LT): Likewise.
18855 (BCDSUB_EQ): Likewise.
18856 (BCDSUB_GT): Likewise.
18857 (BCDSUB_OV): Likewise.
18858 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18859 (UNPACK_TD): Likewise.
18860 (PACK_TF): Likewise.
18861 (UNPACK_TF): Likewise.
18862 (UNPACK_TF_0): Likewise.
18863 (UNPACK_TF_1): Likewise.
18864 (PACK_V1TI): Likewise.
18865 (UNPACK_V1TI): Likewise.
18867 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18868 support for decimal floating point builtin functions.
18869 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18870 functions that take constant arguments.
18871 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18872 (rs6000_init_builtins): Setup long double, _Decimal64, and
18873 _Decimal128 types for new builtin functions.
18874 (builtin_function_type): Set the unsigned flags appropriately for
18875 the new builtin functions.
18876 (rs6000_opt_masks): Add support for decimal floating point builtin
18879 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18880 floating point builtin functions.
18881 (RS6000_BTM_COMMON): Likewise.
18882 (RS6000_BTI_long_double): Likewise.
18883 (RS6000_BTI_dfloat64): Likewise.
18884 (RS6000_BTI_dfloat128): Likewise.
18885 (long_double_type_internal_node): Likewise.
18886 (dfloat64_type_internal_node): Likewise.
18887 (dfloat128_type_internal_node): Likewise.
18889 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18890 2.07 bcd arithmetic instructions.
18891 (UNSPEC_BCDSUB): Likewise.
18892 (UNSPEC_BCD_OVERFLOW): Likewise.
18893 (UNSPEC_BCD_ADD_SUB): Likewise.
18894 (bcd_add_sub): Likewise.
18895 (BCD_TEST): Likewise.
18896 (bcd<bcd_add_sub>): Likewise.
18897 (bcd<bcd_add_sub>_test): Likewise.
18898 (bcd<bcd_add_sub>_test2): Likewise.
18899 (bcd<bcd_add_sub>_<code>): Likewise.
18900 (peephole2 for combined bcd ops): Likewise.
18902 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18903 decimal floating point builtin functions.
18904 (UNSPEC_DENBCD): Likewise.
18905 (UNSPEC_DXEX): Likewise.
18906 (UNSPEC_DIEX): Likewise.
18907 (UNSPEC_DSCLI): Likewise.
18908 (UNSPEC_DSCRI): Likewise.
18909 (D64_D128): Likewise.
18910 (dfp_suffix): Likewise.
18911 (dfp_ddedpd_<mode>): Likewise.
18912 (dfp_denbcd_<mode>): Likewise.
18913 (dfp_dxex_<mode>): Likewise.
18914 (dfp_diex_<mode>): Likewise.
18915 (dfp_dscli_<mode>): Likewise.
18916 (dfp_dscri_<mode>): Likewise.
18918 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18920 (UNSPEC_CDTBCD): Likewise.
18921 (UNSPEC_CBCDTD): Likewise.
18922 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18923 (UNSPEC_DIVEO): Likewise.
18924 (UNSPEC_DIVEU): Likewise.
18925 (UNSPEC_DIVEUO): Likewise.
18926 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18927 pack/unpack 128-bit types.
18928 (UNSPEC_PACK_128BIT): Likewise.
18929 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18930 (udiv<mode>3): Use idiv_ldiv mode attribute.
18931 (div<mode>3): Likewise.
18932 (addg6s): Add new BCD builtin functions.
18933 (cdtbcd): Likewise.
18934 (cbcdtd): Likewise.
18935 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18936 (div_extend): Likewise.
18937 (div<div_extend>_<mode>"): Likewise.
18938 (FP128_64): Add support for new builtin functions to pack/unpack
18940 (unpack<mode>): Likewise.
18941 (unpacktf_0): Likewise.
18942 (unpacktf_1): Likewise.
18943 (unpack<mode>_dm): Likewise.
18944 (unpack<mode>_nodm): Likewise.
18945 (pack<mode>): Likewise.
18946 (unpackv1ti): Likewise.
18947 (packv1ti): Likewise.
18949 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18951 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18954 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18956 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18957 * gimplify.c (omp_is_private): Change last argument's type to int.
18958 Only diagnose lastprivate if the simd argument is 1, only diagnose
18959 linear if the simd argument is 2.
18960 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18961 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18962 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18963 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18964 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18965 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18966 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18967 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18968 * tree-nested.c (convert_nonlocal_omp_clauses,
18969 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18971 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18974 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18977 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18979 * flag-types.h (enum ivar_visibility): Add.
18981 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18983 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18984 function * argument.
18986 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18988 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18990 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18991 Tom de Vries <tom@codesourcery.com>
18993 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18994 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18996 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18997 * emit-rtl.c (try_split): Same.
18999 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19000 Tom de Vries <tom@codesourcery.com>
19002 * common.opt (fuse-caller-save): New option.
19004 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19006 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19007 elements for big-endian.
19009 2014-04-24 Richard Biener <rguenther@suse.de>
19011 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19012 during TER and instead use the sepops interface for expanding
19013 non-GIMPLE_SINGLE_RHS.
19015 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19017 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19018 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19020 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19022 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19023 assembler 64-bit option.
19024 * configure: Regenerate.
19026 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19028 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19029 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19030 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19031 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19032 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19034 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19036 * config/aarch64/aarch64-builtins.c
19037 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19038 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19039 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19040 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19042 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19043 (Vrevsuff): New mode attribute.
19045 2014-04-24 Terry Guo <terry.guo@arm.com>
19047 * config/arm/arm.h (machine_function): Define variable
19048 after_arm_reorg here.
19049 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19050 (arm_split_constant): Update the way to access variable
19052 (arm_reorg): Ditto.
19053 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19055 2014-04-23 Tom de Vries <tom@codesourcery.com>
19057 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19059 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19061 * is-a.h: Update comments to reflect the following changes to the
19062 "pointerness" of the API, making the template parameter match the
19063 return type, allowing use of is-a.h with typedefs of pointers.
19064 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19065 that the return type matches the parameter to the is_a_helper.
19067 (dyn_cast): Likewise.
19069 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19070 pointer from the is-a.h API.
19072 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19073 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19075 (is_a_helper <varpool_node>::test): Likewise, convert to...
19076 (is_a_helper <varpool_node *>::test): ...this.
19078 (varpool_first_variable): Update for removal of implicit pointer
19079 from the is-a.h API.
19080 (varpool_next_variable): Likewise.
19081 (varpool_first_static_initializer): Likewise.
19082 (varpool_next_static_initializer): Likewise.
19083 (varpool_first_defined_variable): Likewise.
19084 (varpool_next_defined_variable): Likewise.
19085 (cgraph_first_defined_function): Likewise.
19086 (cgraph_next_defined_function): Likewise.
19087 (cgraph_first_function): Likewise.
19088 (cgraph_next_function): Likewise.
19089 (cgraph_first_function_with_gimple_body): Likewise.
19090 (cgraph_next_function_with_gimple_body): Likewise.
19091 (cgraph_alias_target): Likewise.
19092 (varpool_alias_target): Likewise.
19093 (cgraph_function_or_thunk_node): Likewise.
19094 (varpool_variable_node): Likewise.
19095 (symtab_real_symbol_p): Likewise.
19096 * cgraphunit.c (referred_to_p): Likewise.
19097 (analyze_functions): Likewise.
19098 (handle_alias_pairs): Likewise.
19099 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19100 * gimple-ssa.h (gimple_vuse_op): Likewise.
19101 (gimple_vdef_op): Likewise.
19102 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19103 * gimple.c (gimple_build_asm_1): Likewise.
19104 (gimple_build_try): Likewise.
19105 (gimple_build_resx): Likewise.
19106 (gimple_build_eh_dispatch): Likewise.
19107 (gimple_build_omp_for): Likewise.
19108 (gimple_omp_for_set_clauses): Likewise.
19110 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19111 (is_a_helper <gimple_statement_asm *>::test): ...this.
19112 (is_a_helper <gimple_statement_bind>::test): Convert to...
19113 (is_a_helper <gimple_statement_bind *>::test): ...this.
19114 (is_a_helper <gimple_statement_call>::test): Convert to...
19115 (is_a_helper <gimple_statement_call *>::test): ...this.
19116 (is_a_helper <gimple_statement_catch>::test): Convert to...
19117 (is_a_helper <gimple_statement_catch *>::test): ...this.
19118 (is_a_helper <gimple_statement_resx>::test): Convert to...
19119 (is_a_helper <gimple_statement_resx *>::test): ...this.
19120 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19121 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19122 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19123 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19124 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19125 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19126 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19127 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19128 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19129 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19130 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19131 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19132 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19133 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19134 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19135 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19136 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19137 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19138 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19139 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19140 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19141 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19142 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19143 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19144 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19145 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19146 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19147 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19148 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19149 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19150 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19151 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19152 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19153 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19154 (is_a_helper <gimple_statement_phi>::test): Convert to...
19155 (is_a_helper <gimple_statement_phi *>::test): ...this.
19156 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19157 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19158 (is_a_helper <gimple_statement_try>::test): Convert to...
19159 (is_a_helper <gimple_statement_try *>::test): ...this.
19160 (is_a_helper <gimple_statement_wce>::test): Convert to...
19161 (is_a_helper <gimple_statement_wce *>::test): ...this.
19162 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19163 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19164 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19165 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19166 (is_a_helper <const gimple_statement_call>::test): Convert to...
19167 (is_a_helper <const gimple_statement_call *>::test): ...this.
19168 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19169 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19170 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19171 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19172 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19173 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19174 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19175 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19176 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19178 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19180 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19182 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19184 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19185 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19186 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19188 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19189 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19191 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19192 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19193 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19194 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19195 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19196 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19198 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19199 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19200 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19201 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19203 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19204 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19205 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19206 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19207 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19208 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19209 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19210 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19211 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19212 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19213 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19214 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19215 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19216 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19217 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19218 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19220 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19222 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19223 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19225 (gimple_use_ops): Update for removal of implicit pointer from the
19227 (gimple_set_use_ops): Likewise.
19228 (gimple_vuse): Likewise.
19229 (gimple_vdef): Likewise.
19230 (gimple_vuse_ptr): Likewise.
19231 (gimple_vdef_ptr): Likewise.
19232 (gimple_set_vuse): Likewise.
19233 (gimple_set_vdef): Likewise.
19234 (gimple_omp_return_set_lhs): Likewise.
19235 (gimple_omp_return_lhs): Likewise.
19236 (gimple_omp_return_lhs_ptr): Likewise.
19237 (gimple_call_fntype): Likewise.
19238 (gimple_call_set_fntype): Likewise.
19239 (gimple_call_set_internal_fn): Likewise.
19240 (gimple_call_use_set): Likewise.
19241 (gimple_call_clobber_set): Likewise.
19242 (gimple_bind_vars): Likewise.
19243 (gimple_bind_set_vars): Likewise.
19244 (gimple_bind_body_ptr): Likewise.
19245 (gimple_bind_set_body): Likewise.
19246 (gimple_bind_add_stmt): Likewise.
19247 (gimple_bind_block): Likewise.
19248 (gimple_bind_set_block): Likewise.
19249 (gimple_asm_ninputs): Likewise.
19250 (gimple_asm_noutputs): Likewise.
19251 (gimple_asm_nclobbers): Likewise.
19252 (gimple_asm_nlabels): Likewise.
19253 (gimple_asm_input_op): Likewise.
19254 (gimple_asm_input_op_ptr): Likewise.
19255 (gimple_asm_output_op): Likewise.
19256 (gimple_asm_output_op_ptr): Likewise.
19257 (gimple_asm_set_output_op): Likewise.
19258 (gimple_asm_clobber_op): Likewise.
19259 (gimple_asm_set_clobber_op): Likewise.
19260 (gimple_asm_label_op): Likewise.
19261 (gimple_asm_set_label_op): Likewise.
19262 (gimple_asm_string): Likewise.
19263 (gimple_catch_types): Likewise.
19264 (gimple_catch_types_ptr): Likewise.
19265 (gimple_catch_handler_ptr): Likewise.
19266 (gimple_catch_set_types): Likewise.
19267 (gimple_catch_set_handler): Likewise.
19268 (gimple_eh_filter_types): Likewise.
19269 (gimple_eh_filter_types_ptr): Likewise.
19270 (gimple_eh_filter_failure_ptr): Likewise.
19271 (gimple_eh_filter_set_types): Likewise.
19272 (gimple_eh_filter_set_failure): Likewise.
19273 (gimple_eh_must_not_throw_fndecl): Likewise.
19274 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19275 (gimple_eh_else_n_body_ptr): Likewise.
19276 (gimple_eh_else_e_body_ptr): Likewise.
19277 (gimple_eh_else_set_n_body): Likewise.
19278 (gimple_eh_else_set_e_body): Likewise.
19279 (gimple_try_eval_ptr): Likewise.
19280 (gimple_try_cleanup_ptr): Likewise.
19281 (gimple_try_set_eval): Likewise.
19282 (gimple_try_set_cleanup): Likewise.
19283 (gimple_wce_cleanup_ptr): Likewise.
19284 (gimple_wce_set_cleanup): Likewise.
19285 (gimple_phi_capacity): Likewise.
19286 (gimple_phi_num_args): Likewise.
19287 (gimple_phi_result): Likewise.
19288 (gimple_phi_result_ptr): Likewise.
19289 (gimple_phi_set_result): Likewise.
19290 (gimple_phi_arg): Likewise.
19291 (gimple_phi_set_arg): Likewise.
19292 (gimple_resx_region): Likewise.
19293 (gimple_resx_set_region): Likewise.
19294 (gimple_eh_dispatch_region): Likewise.
19295 (gimple_eh_dispatch_set_region): Likewise.
19296 (gimple_omp_critical_name): Likewise.
19297 (gimple_omp_critical_name_ptr): Likewise.
19298 (gimple_omp_critical_set_name): Likewise.
19299 (gimple_omp_for_clauses): Likewise.
19300 (gimple_omp_for_clauses_ptr): Likewise.
19301 (gimple_omp_for_set_clauses): Likewise.
19302 (gimple_omp_for_collapse): Likewise.
19303 (gimple_omp_for_index): Likewise.
19304 (gimple_omp_for_index_ptr): Likewise.
19305 (gimple_omp_for_set_index): Likewise.
19306 (gimple_omp_for_initial): Likewise.
19307 (gimple_omp_for_initial_ptr): Likewise.
19308 (gimple_omp_for_set_initial): Likewise.
19309 (gimple_omp_for_final): Likewise.
19310 (gimple_omp_for_final_ptr): Likewise.
19311 (gimple_omp_for_set_final): Likewise.
19312 (gimple_omp_for_incr): Likewise.
19313 (gimple_omp_for_incr_ptr): Likewise.
19314 (gimple_omp_for_set_incr): Likewise.
19315 (gimple_omp_for_pre_body_ptr): Likewise.
19316 (gimple_omp_for_set_pre_body): Likewise.
19317 (gimple_omp_parallel_clauses): Likewise.
19318 (gimple_omp_parallel_clauses_ptr): Likewise.
19319 (gimple_omp_parallel_set_clauses): Likewise.
19320 (gimple_omp_parallel_child_fn): Likewise.
19321 (gimple_omp_parallel_child_fn_ptr): Likewise.
19322 (gimple_omp_parallel_set_child_fn): Likewise.
19323 (gimple_omp_parallel_data_arg): Likewise.
19324 (gimple_omp_parallel_data_arg_ptr): Likewise.
19325 (gimple_omp_parallel_set_data_arg): Likewise.
19326 (gimple_omp_task_clauses): Likewise.
19327 (gimple_omp_task_clauses_ptr): Likewise.
19328 (gimple_omp_task_set_clauses): Likewise.
19329 (gimple_omp_task_child_fn): Likewise.
19330 (gimple_omp_task_child_fn_ptr): Likewise.
19331 (gimple_omp_task_set_child_fn): Likewise.
19332 (gimple_omp_task_data_arg): Likewise.
19333 (gimple_omp_task_data_arg_ptr): Likewise.
19334 (gimple_omp_task_set_data_arg): Likewise.
19335 (gimple_omp_taskreg_clauses): Likewise.
19336 (gimple_omp_taskreg_clauses_ptr): Likewise.
19337 (gimple_omp_taskreg_set_clauses): Likewise.
19338 (gimple_omp_taskreg_child_fn): Likewise.
19339 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19340 (gimple_omp_taskreg_set_child_fn): Likewise.
19341 (gimple_omp_taskreg_data_arg): Likewise.
19342 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19343 (gimple_omp_taskreg_set_data_arg): Likewise.
19344 (gimple_omp_task_copy_fn): Likewise.
19345 (gimple_omp_task_copy_fn_ptr): Likewise.
19346 (gimple_omp_task_set_copy_fn): Likewise.
19347 (gimple_omp_task_arg_size): Likewise.
19348 (gimple_omp_task_arg_size_ptr): Likewise.
19349 (gimple_omp_task_set_arg_size): Likewise.
19350 (gimple_omp_task_arg_align): Likewise.
19351 (gimple_omp_task_arg_align_ptr): Likewise.
19352 (gimple_omp_task_set_arg_align): Likewise.
19353 (gimple_omp_single_clauses): Likewise.
19354 (gimple_omp_single_clauses_ptr): Likewise.
19355 (gimple_omp_single_set_clauses): Likewise.
19356 (gimple_omp_target_clauses): Likewise.
19357 (gimple_omp_target_clauses_ptr): Likewise.
19358 (gimple_omp_target_set_clauses): Likewise.
19359 (gimple_omp_target_child_fn): Likewise.
19360 (gimple_omp_target_child_fn_ptr): Likewise.
19361 (gimple_omp_target_set_child_fn): Likewise.
19362 (gimple_omp_target_data_arg): Likewise.
19363 (gimple_omp_target_data_arg_ptr): Likewise.
19364 (gimple_omp_target_set_data_arg): Likewise.
19365 (gimple_omp_teams_clauses): Likewise.
19366 (gimple_omp_teams_clauses_ptr): Likewise.
19367 (gimple_omp_teams_set_clauses): Likewise.
19368 (gimple_omp_sections_clauses): Likewise.
19369 (gimple_omp_sections_clauses_ptr): Likewise.
19370 (gimple_omp_sections_set_clauses): Likewise.
19371 (gimple_omp_sections_control): Likewise.
19372 (gimple_omp_sections_control_ptr): Likewise.
19373 (gimple_omp_sections_set_control): Likewise.
19374 (gimple_omp_for_set_cond): Likewise.
19375 (gimple_omp_for_cond): Likewise.
19376 (gimple_omp_atomic_store_set_val): Likewise.
19377 (gimple_omp_atomic_store_val): Likewise.
19378 (gimple_omp_atomic_store_val_ptr): Likewise.
19379 (gimple_omp_atomic_load_set_lhs): Likewise.
19380 (gimple_omp_atomic_load_lhs): Likewise.
19381 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19382 (gimple_omp_atomic_load_set_rhs): Likewise.
19383 (gimple_omp_atomic_load_rhs): Likewise.
19384 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19385 (gimple_omp_continue_control_def): Likewise.
19386 (gimple_omp_continue_control_def_ptr): Likewise.
19387 (gimple_omp_continue_set_control_def): Likewise.
19388 (gimple_omp_continue_control_use): Likewise.
19389 (gimple_omp_continue_control_use_ptr): Likewise.
19390 (gimple_omp_continue_set_control_use): Likewise.
19391 (gimple_transaction_body_ptr): Likewise.
19392 (gimple_transaction_label): Likewise.
19393 (gimple_transaction_label_ptr): Likewise.
19394 (gimple_transaction_set_body): Likewise.
19395 (gimple_transaction_set_label): Likewise.
19397 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19398 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19399 * ipa-ref.c (ipa_record_reference): Likewise.
19400 * ipa-reference.c (analyze_function): Likewise.
19401 (ipa_reference_write_optimization_summary): Likewise.
19402 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19403 (address_taken_from_non_vtable_p): Likewise.
19404 (comdat_can_be_unshared_p_1): Likewise.
19405 * lto-cgraph.c (lto_output_ref): Likewise.
19406 (add_references): Likewise.
19407 (compute_ltrans_boundary): Likewise.
19408 (output_symtab): Likewise.
19409 (input_ref): Likewise.
19410 (input_cgraph_1): Likewise.
19411 (output_cgraph_opt_summary): Likewise.
19412 * lto-streamer-out.c (lto_output): Likewise.
19413 (output_symbol_p): Likewise.
19414 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19415 (lsei_start_function_in_partition): Likewise.
19416 (lsei_next_variable_in_partition): Likewise.
19417 (lsei_start_variable_in_partition): Likewise.
19418 * symtab.c (insert_to_assembler_name_hash): Likewise.
19419 (unlink_from_assembler_name_hash): Likewise.
19420 (symtab_unregister_node): Likewise.
19421 (symtab_remove_node): Likewise.
19422 (dump_symtab_node): Likewise.
19423 (verify_symtab_base): Likewise.
19424 (verify_symtab_node): Likewise.
19425 (symtab_make_decl_local): Likewise.
19426 (symtab_alias_ultimate_target): Likewise.
19427 (symtab_resolve_alias): Likewise.
19428 (symtab_get_symbol_partitioning_class): Likewise.
19429 * tree-phinodes.c (allocate_phi_node): Likewise.
19430 (reserve_phi_args_for_new_edge): Likewise.
19431 (remove_phi_args): Likewise.
19432 * varpool.c (varpool_node_for_asm): Likewise.
19433 (varpool_remove_unreferenced_decls): Likewise.
19435 2014-04-23 Jeff Law <law@redhat.com>
19437 PR tree-optimization/60902
19438 * tree-ssa-threadedge.c
19439 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19440 invalidate outputs from statements that do not produce useful
19441 outputs for threading.
19443 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19445 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19446 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19447 machine descriptions for Stack Smashing Protector.
19449 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19451 * aarch64.md (<optab>_rol<mode>3): New pattern.
19452 (<optab>_rolsi3_uxtw): Likewise.
19453 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19455 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19457 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19458 (arm_cortex_a12_tune): Likewise.
19460 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19462 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19464 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19466 * config/arm/arm.md (arm_rev16si2): New pattern.
19467 (arm_rev16si2_alt): Likewise.
19468 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19470 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19472 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19473 (rev16<mode>2_alt): Likewise.
19474 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19475 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19476 (aarch_rev16_shleft_mask_imm_p): Likewise.
19477 (aarch_rev16_p_1): Likewise.
19478 (aarch_rev16_p): Likewise.
19479 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19480 (aarch_rev16_shright_mask_imm_p): Likewise.
19481 (aarch_rev16_shleft_mask_imm_p): Likewise.
19483 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19485 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19486 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19488 (cortex_a53_extra_costs): Likewise.
19489 (cortex_a57_extra_costs): Likewise.
19490 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19491 (cortexa7_extra_costs): Likewise.
19492 (cortexa8_extra_costs): Likewise.
19493 (cortexa12_extra_costs): Likewise.
19494 (cortexa15_extra_costs): Likewise.
19495 (v7m_extra_costs): Likewise.
19496 (arm_new_rtx_costs): Handle BSWAP.
19498 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19500 * config/arm/arm.c (cortexa8_extra_costs): New table.
19501 (arm_cortex_a8_tune): New tuning struct.
19502 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19504 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19506 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19508 2014-04-23 Richard Biener <rguenther@suse.de>
19510 * Makefile.in (OBJS): Remove loop-unswitch.o.
19511 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19512 * passes.def (pass_rtl_unswitch): Likewise.
19513 * loop-init.c (gate_rtl_unswitch): Likewise.
19514 (rtl_unswitch): Likewise.
19515 (pass_data_rtl_unswitch): Likewise.
19516 (pass_rtl_unswitch): Likewise.
19517 (make_pass_rtl_unswitch): Likewise.
19518 * rtl.h (reversed_condition): Likewise.
19519 (compare_and_jump_seq): Likewise.
19520 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19522 * loop-unroll.c (compare_and_jump_seq): Likewise.
19524 2014-04-23 Richard Biener <rguenther@suse.de>
19526 PR tree-optimization/60903
19527 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19528 commented code block.
19529 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19530 loop flags to newly created BBs and edges.
19532 2014-04-23 Nick Clifton <nickc@redhat.com>
19534 * config/msp430/msp430.c (msp430_handle_option): Move function
19536 (msp430_option_override): Simplify mcu and mcpu option handling.
19537 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19538 support for -mhwmult command line option.
19539 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19540 -mhwmult command line option.
19541 (msp430_hwmult_enabled): Delete.
19542 (msp43o_output_labelref): Add support for -mhwmult command line option.
19543 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19544 (umulsidi3): Likewise.
19545 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19546 (mcpu, mlarge, msmall): Likewise.
19547 (mhwmult): New option.
19548 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19550 (msp430_is_f5_mcu): Remove prototype.
19551 (msp430_use_f5_series_hwmult): Add prototype.
19552 * config/msp430/msp430-opts.h: New file.
19553 * common/config/msp430: New directory.
19554 * common/config/msp430/msp430-common.c: New file.
19555 * config.gcc (msp430): Remove target_has_targetm_common.
19556 * doc/invoke.texi: Document -mhwmult command line option.
19558 2014-04-23 Nick Clifton <nickc@redhat.com>
19560 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19561 default-manifest.o if it can be found in the search path.
19562 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19564 2014-04-23 Terry Guo <terry.guo@arm.com>
19566 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19568 2014-04-23 Richard Biener <rguenther@suse.de>
19570 PR middle-end/60895
19571 * tree-inline.c (declare_return_variable): Use mark_addressable.
19573 2014-04-23 Richard Biener <rguenther@suse.de>
19575 PR middle-end/60891
19576 * loop-init.c (loop_optimizer_init): Make sure to apply
19577 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19579 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19582 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19584 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19585 if flag_sanitize_undefined_trap_on_error.
19586 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19587 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19588 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19589 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19590 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19591 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19592 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19593 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19594 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19595 * ubsan.c (ubsan_instrument_unreachable): Return
19596 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19597 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19598 if flag_sanitize_undefined_trap_on_error and
19599 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19600 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19601 instrument_bool_enum_load): Emit __builtin_trap () if
19602 flag_sanitize_undefined_trap_on_error and
19603 __builtin_handle_*_abort () if !flag_sanitize_recover.
19604 * doc/invoke.texi (-fsanitize-recover,
19605 -fsanitize-undefined-trap-on-error): Document.
19607 2014-04-22 Christian Bruel <christian.bruel@st.com>
19609 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19610 Force immediates to SImode.
19612 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19614 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19615 (lroundsfsi2): New.
19616 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19617 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19618 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19619 (nios2_fpu_insn): Add entry for round.
19620 (N2FPU_NO_ERRNO_P): Define.
19621 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19623 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19625 2014-04-22 Richard Henderson <rth@redhat.com>
19627 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19628 (add<GPI>3_compare0): Remove leading * from name.
19629 (add<GPI>3_carryin): Likewise.
19630 (sub<GPI>3_compare0): Likewise.
19631 (sub<GPI>3_carryin): Likewise.
19632 (<su_optab>mulditi3): New expander.
19633 (multi3): New expander.
19634 (madd<GPI>): Remove leading * from name.
19636 2014-04-22 Martin Jambor <mjambor@suse.cz>
19638 * cgraphclones.c (cgraph_function_versioning): Copy
19639 ipa_transforms_to_apply instead of asserting it is empty.
19641 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19644 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19645 on count_exp to get mode.
19647 2014-04-22 Andrew Pinski <apinski@cavium.com>
19649 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19650 Handle TLS for ILP32.
19651 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19652 (tlsie_small_<mode>): this and handle PTR.
19653 (tlsie_small_sidi): New pattern.
19654 (tlsle_small): Change to an expand to handle ILP32.
19655 (tlsle_small_<mode>): New pattern.
19656 (tlsdesc_small): Rename to ...
19657 (tlsdesc_small_<mode>): this and handle PTR.
19659 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19661 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19663 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19665 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19666 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19667 (aarch64_types_signed_poly_qualifiers): Likewise.
19668 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19669 (aarch64_types_poly_signed_qualifiers): Likewise.
19670 (TYPES_REINTERP_SS): Type macro added.
19671 (TYPES_REINTERP_SU): Likewise.
19672 (TYPES_REINTERP_SP): Likewise.
19673 (TYPES_REINTERP_US): Likewise.
19674 (TYPES_REINTERP_PS): Likewise.
19675 (aarch64_fold_builtin): New expression folding added.
19676 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19677 Declarations removed.
19678 (REINTERP_SS): Declarations added.
19679 (REINTERP_US): Likewise.
19680 (REINTERP_PS): Likewise.
19681 (REINTERP_SU): Likewise.
19682 (REINTERP_SP): Likewise.
19683 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19684 (vreinterpretq_p8_f64): Likewise.
19685 (vreinterpret_p16_f64): Likewise.
19686 (vreinterpretq_p16_f64): Likewise.
19687 (vreinterpret_f32_f64): Likewise.
19688 (vreinterpretq_f32_f64): Likewise.
19689 (vreinterpret_f64_f32): Likewise.
19690 (vreinterpret_f64_p8): Likewise.
19691 (vreinterpret_f64_p16): Likewise.
19692 (vreinterpret_f64_s8): Likewise.
19693 (vreinterpret_f64_s16): Likewise.
19694 (vreinterpret_f64_s32): Likewise.
19695 (vreinterpret_f64_s64): Likewise.
19696 (vreinterpret_f64_u8): Likewise.
19697 (vreinterpret_f64_u16): Likewise.
19698 (vreinterpret_f64_u32): Likewise.
19699 (vreinterpret_f64_u64): Likewise.
19700 (vreinterpretq_f64_f32): Likewise.
19701 (vreinterpretq_f64_p8): Likewise.
19702 (vreinterpretq_f64_p16): Likewise.
19703 (vreinterpretq_f64_s8): Likewise.
19704 (vreinterpretq_f64_s16): Likewise.
19705 (vreinterpretq_f64_s32): Likewise.
19706 (vreinterpretq_f64_s64): Likewise.
19707 (vreinterpretq_f64_u8): Likewise.
19708 (vreinterpretq_f64_u16): Likewise.
19709 (vreinterpretq_f64_u32): Likewise.
19710 (vreinterpretq_f64_u64): Likewise.
19711 (vreinterpret_s64_f64): Likewise.
19712 (vreinterpretq_s64_f64): Likewise.
19713 (vreinterpret_u64_f64): Likewise.
19714 (vreinterpretq_u64_f64): Likewise.
19715 (vreinterpret_s8_f64): Likewise.
19716 (vreinterpretq_s8_f64): Likewise.
19717 (vreinterpret_s16_f64): Likewise.
19718 (vreinterpretq_s16_f64): Likewise.
19719 (vreinterpret_s32_f64): Likewise.
19720 (vreinterpretq_s32_f64): Likewise.
19721 (vreinterpret_u8_f64): Likewise.
19722 (vreinterpretq_u8_f64): Likewise.
19723 (vreinterpret_u16_f64): Likewise.
19724 (vreinterpretq_u16_f64): Likewise.
19725 (vreinterpret_u32_f64): Likewise.
19726 (vreinterpretq_u32_f64): Likewise.
19728 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19730 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19731 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19732 (vreinterpret_p8_s8): Likewise.
19733 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19734 (vreinterpret_p8_s16): Likewise.
19735 (vreinterpret_p8_s32): Likewise.
19736 (vreinterpret_p8_s64): Likewise.
19737 (vreinterpret_p8_f32): Likewise.
19738 (vreinterpret_p8_u8): Likewise.
19739 (vreinterpret_p8_u16): Likewise.
19740 (vreinterpret_p8_u32): Likewise.
19741 (vreinterpret_p8_u64): Likewise.
19742 (vreinterpret_p8_p16): Likewise.
19743 (vreinterpretq_p8_s8): Likewise.
19744 (vreinterpretq_p8_s16): Likewise.
19745 (vreinterpretq_p8_s32): Likewise.
19746 (vreinterpretq_p8_s64): Likewise.
19747 (vreinterpretq_p8_f32): Likewise.
19748 (vreinterpretq_p8_u8): Likewise.
19749 (vreinterpretq_p8_u16): Likewise.
19750 (vreinterpretq_p8_u32): Likewise.
19751 (vreinterpretq_p8_u64): Likewise.
19752 (vreinterpretq_p8_p16): Likewise.
19753 (vreinterpret_p16_s8): Likewise.
19754 (vreinterpret_p16_s16): Likewise.
19755 (vreinterpret_p16_s32): Likewise.
19756 (vreinterpret_p16_s64): Likewise.
19757 (vreinterpret_p16_f32): Likewise.
19758 (vreinterpret_p16_u8): Likewise.
19759 (vreinterpret_p16_u16): Likewise.
19760 (vreinterpret_p16_u32): Likewise.
19761 (vreinterpret_p16_u64): Likewise.
19762 (vreinterpret_p16_p8): Likewise.
19763 (vreinterpretq_p16_s8): Likewise.
19764 (vreinterpretq_p16_s16): Likewise.
19765 (vreinterpretq_p16_s32): Likewise.
19766 (vreinterpretq_p16_s64): Likewise.
19767 (vreinterpretq_p16_f32): Likewise.
19768 (vreinterpretq_p16_u8): Likewise.
19769 (vreinterpretq_p16_u16): Likewise.
19770 (vreinterpretq_p16_u32): Likewise.
19771 (vreinterpretq_p16_u64): Likewise.
19772 (vreinterpretq_p16_p8): Likewise.
19773 (vreinterpret_f32_s8): Likewise.
19774 (vreinterpret_f32_s16): Likewise.
19775 (vreinterpret_f32_s32): Likewise.
19776 (vreinterpret_f32_s64): Likewise.
19777 (vreinterpret_f32_u8): Likewise.
19778 (vreinterpret_f32_u16): Likewise.
19779 (vreinterpret_f32_u32): Likewise.
19780 (vreinterpret_f32_u64): Likewise.
19781 (vreinterpret_f32_p8): Likewise.
19782 (vreinterpret_f32_p16): Likewise.
19783 (vreinterpretq_f32_s8): Likewise.
19784 (vreinterpretq_f32_s16): Likewise.
19785 (vreinterpretq_f32_s32): Likewise.
19786 (vreinterpretq_f32_s64): Likewise.
19787 (vreinterpretq_f32_u8): Likewise.
19788 (vreinterpretq_f32_u16): Likewise.
19789 (vreinterpretq_f32_u32): Likewise.
19790 (vreinterpretq_f32_u64): Likewise.
19791 (vreinterpretq_f32_p8): Likewise.
19792 (vreinterpretq_f32_p16): Likewise.
19793 (vreinterpret_s64_s8): Likewise.
19794 (vreinterpret_s64_s16): Likewise.
19795 (vreinterpret_s64_s32): Likewise.
19796 (vreinterpret_s64_f32): Likewise.
19797 (vreinterpret_s64_u8): Likewise.
19798 (vreinterpret_s64_u16): Likewise.
19799 (vreinterpret_s64_u32): Likewise.
19800 (vreinterpret_s64_u64): Likewise.
19801 (vreinterpret_s64_p8): Likewise.
19802 (vreinterpret_s64_p16): Likewise.
19803 (vreinterpretq_s64_s8): Likewise.
19804 (vreinterpretq_s64_s16): Likewise.
19805 (vreinterpretq_s64_s32): Likewise.
19806 (vreinterpretq_s64_f32): Likewise.
19807 (vreinterpretq_s64_u8): Likewise.
19808 (vreinterpretq_s64_u16): Likewise.
19809 (vreinterpretq_s64_u32): Likewise.
19810 (vreinterpretq_s64_u64): Likewise.
19811 (vreinterpretq_s64_p8): Likewise.
19812 (vreinterpretq_s64_p16): Likewise.
19813 (vreinterpret_u64_s8): Likewise.
19814 (vreinterpret_u64_s16): Likewise.
19815 (vreinterpret_u64_s32): Likewise.
19816 (vreinterpret_u64_s64): Likewise.
19817 (vreinterpret_u64_f32): Likewise.
19818 (vreinterpret_u64_u8): Likewise.
19819 (vreinterpret_u64_u16): Likewise.
19820 (vreinterpret_u64_u32): Likewise.
19821 (vreinterpret_u64_p8): Likewise.
19822 (vreinterpret_u64_p16): Likewise.
19823 (vreinterpretq_u64_s8): Likewise.
19824 (vreinterpretq_u64_s16): Likewise.
19825 (vreinterpretq_u64_s32): Likewise.
19826 (vreinterpretq_u64_s64): Likewise.
19827 (vreinterpretq_u64_f32): Likewise.
19828 (vreinterpretq_u64_u8): Likewise.
19829 (vreinterpretq_u64_u16): Likewise.
19830 (vreinterpretq_u64_u32): Likewise.
19831 (vreinterpretq_u64_p8): Likewise.
19832 (vreinterpretq_u64_p16): Likewise.
19833 (vreinterpret_s8_s16): Likewise.
19834 (vreinterpret_s8_s32): Likewise.
19835 (vreinterpret_s8_s64): Likewise.
19836 (vreinterpret_s8_f32): Likewise.
19837 (vreinterpret_s8_u8): Likewise.
19838 (vreinterpret_s8_u16): Likewise.
19839 (vreinterpret_s8_u32): Likewise.
19840 (vreinterpret_s8_u64): Likewise.
19841 (vreinterpret_s8_p8): Likewise.
19842 (vreinterpret_s8_p16): Likewise.
19843 (vreinterpretq_s8_s16): Likewise.
19844 (vreinterpretq_s8_s32): Likewise.
19845 (vreinterpretq_s8_s64): Likewise.
19846 (vreinterpretq_s8_f32): Likewise.
19847 (vreinterpretq_s8_u8): Likewise.
19848 (vreinterpretq_s8_u16): Likewise.
19849 (vreinterpretq_s8_u32): Likewise.
19850 (vreinterpretq_s8_u64): Likewise.
19851 (vreinterpretq_s8_p8): Likewise.
19852 (vreinterpretq_s8_p16): Likewise.
19853 (vreinterpret_s16_s8): Likewise.
19854 (vreinterpret_s16_s32): Likewise.
19855 (vreinterpret_s16_s64): Likewise.
19856 (vreinterpret_s16_f32): Likewise.
19857 (vreinterpret_s16_u8): Likewise.
19858 (vreinterpret_s16_u16): Likewise.
19859 (vreinterpret_s16_u32): Likewise.
19860 (vreinterpret_s16_u64): Likewise.
19861 (vreinterpret_s16_p8): Likewise.
19862 (vreinterpret_s16_p16): Likewise.
19863 (vreinterpretq_s16_s8): Likewise.
19864 (vreinterpretq_s16_s32): Likewise.
19865 (vreinterpretq_s16_s64): Likewise.
19866 (vreinterpretq_s16_f32): Likewise.
19867 (vreinterpretq_s16_u8): Likewise.
19868 (vreinterpretq_s16_u16): Likewise.
19869 (vreinterpretq_s16_u32): Likewise.
19870 (vreinterpretq_s16_u64): Likewise.
19871 (vreinterpretq_s16_p8): Likewise.
19872 (vreinterpretq_s16_p16): Likewise.
19873 (vreinterpret_s32_s8): Likewise.
19874 (vreinterpret_s32_s16): Likewise.
19875 (vreinterpret_s32_s64): Likewise.
19876 (vreinterpret_s32_f32): Likewise.
19877 (vreinterpret_s32_u8): Likewise.
19878 (vreinterpret_s32_u16): Likewise.
19879 (vreinterpret_s32_u32): Likewise.
19880 (vreinterpret_s32_u64): Likewise.
19881 (vreinterpret_s32_p8): Likewise.
19882 (vreinterpret_s32_p16): Likewise.
19883 (vreinterpretq_s32_s8): Likewise.
19884 (vreinterpretq_s32_s16): Likewise.
19885 (vreinterpretq_s32_s64): Likewise.
19886 (vreinterpretq_s32_f32): Likewise.
19887 (vreinterpretq_s32_u8): Likewise.
19888 (vreinterpretq_s32_u16): Likewise.
19889 (vreinterpretq_s32_u32): Likewise.
19890 (vreinterpretq_s32_u64): Likewise.
19891 (vreinterpretq_s32_p8): Likewise.
19892 (vreinterpretq_s32_p16): Likewise.
19893 (vreinterpret_u8_s8): Likewise.
19894 (vreinterpret_u8_s16): Likewise.
19895 (vreinterpret_u8_s32): Likewise.
19896 (vreinterpret_u8_s64): Likewise.
19897 (vreinterpret_u8_f32): Likewise.
19898 (vreinterpret_u8_u16): Likewise.
19899 (vreinterpret_u8_u32): Likewise.
19900 (vreinterpret_u8_u64): Likewise.
19901 (vreinterpret_u8_p8): Likewise.
19902 (vreinterpret_u8_p16): Likewise.
19903 (vreinterpretq_u8_s8): Likewise.
19904 (vreinterpretq_u8_s16): Likewise.
19905 (vreinterpretq_u8_s32): Likewise.
19906 (vreinterpretq_u8_s64): Likewise.
19907 (vreinterpretq_u8_f32): Likewise.
19908 (vreinterpretq_u8_u16): Likewise.
19909 (vreinterpretq_u8_u32): Likewise.
19910 (vreinterpretq_u8_u64): Likewise.
19911 (vreinterpretq_u8_p8): Likewise.
19912 (vreinterpretq_u8_p16): Likewise.
19913 (vreinterpret_u16_s8): Likewise.
19914 (vreinterpret_u16_s16): Likewise.
19915 (vreinterpret_u16_s32): Likewise.
19916 (vreinterpret_u16_s64): Likewise.
19917 (vreinterpret_u16_f32): Likewise.
19918 (vreinterpret_u16_u8): Likewise.
19919 (vreinterpret_u16_u32): Likewise.
19920 (vreinterpret_u16_u64): Likewise.
19921 (vreinterpret_u16_p8): Likewise.
19922 (vreinterpret_u16_p16): Likewise.
19923 (vreinterpretq_u16_s8): Likewise.
19924 (vreinterpretq_u16_s16): Likewise.
19925 (vreinterpretq_u16_s32): Likewise.
19926 (vreinterpretq_u16_s64): Likewise.
19927 (vreinterpretq_u16_f32): Likewise.
19928 (vreinterpretq_u16_u8): Likewise.
19929 (vreinterpretq_u16_u32): Likewise.
19930 (vreinterpretq_u16_u64): Likewise.
19931 (vreinterpretq_u16_p8): Likewise.
19932 (vreinterpretq_u16_p16): Likewise.
19933 (vreinterpret_u32_s8): Likewise.
19934 (vreinterpret_u32_s16): Likewise.
19935 (vreinterpret_u32_s32): Likewise.
19936 (vreinterpret_u32_s64): Likewise.
19937 (vreinterpret_u32_f32): Likewise.
19938 (vreinterpret_u32_u8): Likewise.
19939 (vreinterpret_u32_u16): Likewise.
19940 (vreinterpret_u32_u64): Likewise.
19941 (vreinterpret_u32_p8): Likewise.
19942 (vreinterpret_u32_p16): Likewise.
19943 (vreinterpretq_u32_s8): Likewise.
19944 (vreinterpretq_u32_s16): Likewise.
19945 (vreinterpretq_u32_s32): Likewise.
19946 (vreinterpretq_u32_s64): Likewise.
19947 (vreinterpretq_u32_f32): Likewise.
19948 (vreinterpretq_u32_u8): Likewise.
19949 (vreinterpretq_u32_u16): Likewise.
19950 (vreinterpretq_u32_u64): Likewise.
19951 (vreinterpretq_u32_p8): Likewise.
19952 (vreinterpretq_u32_p16): Likewise.
19954 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19956 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19958 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19960 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19961 (vqnegd_s64): Likewise.
19962 (vqabs_s64): Likewise.
19963 (vqabsd_s64): Likewise.
19965 2014-04-22 Richard Henderson <rth@redhat.com>
19967 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19968 computation to the top of the loop.
19970 2014-04-22 Renlin <renlin.li@arm.com>
19971 Jiong Wang <jiong.wang@arm.com>
19973 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19974 * config/aarch64/aarch64.c (aarch64_layout_frame)
19975 (aarch64_initial_elimination_offset): Likewise.
19977 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19979 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19982 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19984 * machmode.h (bitwise_mode_for_mode): Declare.
19985 * stor-layout.h (bitwise_type_for_mode): Likewise.
19986 * stor-layout.c (bitwise_mode_for_mode): New function.
19987 (bitwise_type_for_mode): Likewise.
19988 * builtins.c (fold_builtin_memory_op): Use it instead of
19989 int_mode_for_mode and build_nonstandard_integer_type.
19991 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19993 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19994 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19995 (*-*-solaris2*): Simplify.
19996 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19997 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19998 *-*-solaris2.9* handling.
20000 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20002 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20003 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20004 handling, simplify.
20005 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20006 * configure: Regenerate.
20008 * config/i386/sol2-9.h: Remove.
20010 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20011 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20012 Remove Solaris 9 references.
20014 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20016 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20017 (floatuns<GPI:mode><GPF:mode>2): Remove.
20018 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20019 and floatuns conversions.
20020 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20021 and floatuns conversions.
20022 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20023 (w1,w2): New mode attributes for inequal width conversions.
20025 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20027 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20028 the output asm format.
20030 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20032 * config/aarch64/aarch64-simd.md
20033 (aarch64_cm<optab>di): Always split.
20034 (*aarch64_cm<optab>di): New.
20035 (aarch64_cmtstdi): Always split.
20036 (*aarch64_cmtstdi): New.
20038 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20040 PR tree-optimization/60823
20041 * omp-low.c (ipa_simd_modify_function_body): Go through
20042 all SSA_NAMEs and for those refering to vector arguments
20043 which are going to be replaced adjust SSA_NAME_VAR and,
20044 if it is a default definition, change it into a non-default
20045 definition assigned at the beginning of function from new_decl.
20046 (ipa_simd_modify_stmt_ops): Rewritten.
20047 * tree-dfa.c (set_ssa_default_def): When removing default def,
20048 check for NULL loc instead of NULL *loc.
20050 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20052 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20053 restrictions on core registers for DImode values in Thumb2.
20055 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20057 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20058 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20060 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20062 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20063 (*iordi_notzesidi_di): Likewise.
20064 (*iordi_notsesidi_di): Likewise.
20066 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20068 * config/arm/arm-protos.h (tune_params): New struct members.
20069 * config/arm/arm.c: Initialise tune_params per processor.
20070 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20071 for speed, based on new tune_params.
20073 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20075 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20076 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20077 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20078 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20079 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20080 (vrnda_f64): Likewise.
20081 (vrndi_f64): Likewise.
20082 (vrndm_f64): Likewise.
20083 (vrndn_f64): Likewise.
20084 (vrndp_f64): Likewise.
20085 (vrndx_f64): Likewise.
20087 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20089 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20090 GET_MODE_SIZE argument is enum machine_mode.
20092 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20095 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20096 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20098 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20100 PR middle-end/60281
20101 * asan.c (asan_emit_stack_protection): Force the base to align to
20102 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20103 appropriate bits if STRICT_ALIGNMENT.
20104 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20106 (expand_used_vars): Leave a space in the stack frame for alignment
20107 if STRICT_ALIGNMENT.
20109 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20111 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20113 (gimple_store_p): Likewise.
20114 (gimple_assign_load_p): Likewise.
20115 (gimple_assign_cast_p): Likewise.
20116 (gimple_clobber_p): Likewise.
20118 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20119 rather than a gimple.
20120 (gimple_assign_cast_p): Likewise.
20122 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20125 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20126 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20128 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20129 more debug information for E500 if -mdebug=reg.
20131 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20134 * config/i386/i386.c (ix86_expand_builtin)
20135 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20136 register for target RTX.
20137 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20139 2014-04-18 Cong Hou <congh@google.com>
20141 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20142 the widen-mult pattern by handling two operands with different sizes,
20143 and operands whose size is smaller than half of the result type.
20145 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20147 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20148 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20149 (do_estimate_edge_time): Compute it.
20150 * ipa-inline.c (want_inline_small_function_p): Bypass
20151 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20153 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20155 * ipa-inline.c (spec_rem): New static variable.
20156 (dump_overall_stats): New function.
20157 (dump_inline_stats): New function.
20159 2014-04-18 Richard Henderson <rth@redhat.com>
20161 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20162 to GET_MODE_SIZE, not a reg_class_t.
20164 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20166 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20167 (vsx_xxmrglw_<mode>): Likewise.
20169 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20172 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20173 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20174 (rs6000_init_hard_regno_mode_ok): Likewise.
20176 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20178 * ipa-inline.c (inline_small_functions): Account only non-cold
20180 * doc/invoke.texi (inline-unit-growth): Update documentation.
20182 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20184 * config/rs6000/rs6000.md (addti3, subti3): New.
20186 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20189 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20190 comment. Check optimize_insn_for_size_p instead of
20191 optimize_insn_for_speed_p.
20193 2014-04-17 Martin Jambor <mjambor@suse.cz>
20195 * gimple-iterator.c (gsi_start_edge): New function.
20196 * gimple-iterator.h (gsi_start_edge): Declare.
20197 * tree-sra.c (single_non_eh_succ): New function.
20198 (disqualify_ops_if_throwing_stmt): Renamed to
20199 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20200 having one non-EH successor BB.
20201 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20202 generate loads into replacements.
20203 (sra_modify_assign): Likewise and and also use the simple path for
20205 (sra_modify_function_body): Commit statements on edges.
20207 2014-04-17 Richard Biener <rguenther@suse.de>
20209 PR middle-end/60849
20210 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20211 comparison results and add clarifying comment.
20213 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20215 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20216 (blank_mode): Initialize it.
20217 (emit_mode_size_inline, emit_mode_nunits_inline,
20218 emit_mode_inner_inline): New functions.
20219 (emit_insn_modes_h): Call them and surround their output with
20220 #if GCC_VERSION >= 4001 ... #endif.
20221 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20222 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20223 mode_* arrays if the argument is __builtin_constant_p.
20224 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20225 is enum machine_mode.
20227 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20229 * passes.c (opt_pass::execute): Adjust.
20230 (pass_manager::execute_pass_mode_switching): Likewise.
20231 (early_local_passes::execute): Likewise.
20232 (execute_one_pass): Pass cfun to the pass's execute method.
20233 * tree-pass.h (opt_pass::execute): Add function * argument.
20234 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20235 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20236 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20237 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20238 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20239 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20240 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20241 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20242 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20243 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20244 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20245 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20246 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20247 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20248 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20249 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20250 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20251 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20252 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20253 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20254 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20255 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20256 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20257 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20258 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20259 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20260 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20261 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20262 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20265 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20267 * passes.c (opt_pass::gate): Take function * argument.
20268 (gate_all_early_local_passes): Merge into
20269 (early_local_passes::gate): this.
20270 (gate_all_early_optimizations): Merge into
20271 (all_early_optimizations::gate): this.
20272 (gate_all_optimizations): Mege into
20273 (all_optimizations::gate): this.
20274 (gate_all_optimizations_g): Merge into
20275 (all_optimizations_g::gate): this.
20276 (gate_rest_of_compilation): Mege into
20277 (rest_of_compilation::gate): this.
20278 (gate_postreload): Merge into
20279 (postreload::gate): this.
20280 (dump_one_pass): Pass cfun to the pass's gate method.
20281 (execute_ipa_summary_passes): Likewise.
20282 (execute_one_pass): Likewise.
20283 (ipa_write_summaries_2): Likewise.
20284 (ipa_write_optimization_summaries_1): Likewise.
20285 (ipa_read_summaries_1): Likewise.
20286 (ipa_read_optimization_summaries_1): Likewise.
20287 (execute_ipa_stmt_fixups): Likewise.
20288 * tree-pass.h (opt_pass::gate): Add function * argument.
20289 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20290 combine-stack-adj.c, combine.c, compare-elim.c,
20291 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20292 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20293 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20294 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20295 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20296 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20297 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20298 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20299 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20300 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20301 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20302 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20303 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20304 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20305 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20306 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20307 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20308 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20309 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20310 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20311 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20312 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20313 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20314 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20315 var-tracking.c, vtable-verify.c, web.c: Adjust.
20317 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20319 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20320 * configure: Regenerate.
20322 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20324 * passes.c (dump_one_pass): don't check pass->has_gate.
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_optimization_summaries_1): Likewise.
20330 (execute_ipa_stmt_fixups): Likewise.
20331 * tree-pass.h (pass_data::has_gate): Remove.
20332 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20333 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20334 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20335 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20336 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20337 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20338 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20339 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20340 gimple-low.c, gimple-ssa-isolate-paths.c,
20341 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20342 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20343 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20344 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20345 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20346 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20347 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20348 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20349 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20350 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20351 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20352 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20353 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20354 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20355 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20356 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20357 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20358 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20359 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20360 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20361 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20362 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20365 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20367 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20369 * passes.c (pass_manager::register_dump_files_1): Merge into
20370 (pass_manager::register_dump_files): this, and remove its handling of
20371 properties since the pass always has the properties anyway.
20372 (pass_manager::pass_manager): Adjust.
20374 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20376 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20377 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20378 dealing with properties.
20379 (pass_manager::register_dump_files): Adjust.
20381 2014-03-20 Mark Wielaard <mjw@redhat.com>
20383 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20384 then represent the bound as normal constant value.
20386 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20389 Forward port from 4.8 branch
20390 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20392 * config/i386/bmiintrin.h (_blsi_u32): New.
20393 (_blsi_u64): Ditto.
20394 (_blsr_u32): Ditto.
20395 (_blsr_u64): Ditto.
20396 (_blsmsk_u32): Ditto.
20397 (_blsmsk_u64): Ditto.
20398 (_tzcnt_u32): Ditto.
20399 (_tzcnt_u64): Ditto.
20401 2014-04-17 Kito Cheng <kito@0xlab.org>
20403 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20405 2014-04-17 Richard Biener <rguenther@suse.de>
20407 PR middle-end/60849
20408 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20409 boolean results for comparisons.
20411 2014-04-17 Richard Biener <rguenther@suse.de>
20413 PR tree-optimization/60836
20414 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20415 initial PHI args to be gimple values.
20417 2014-04-17 Richard Biener <rguenther@suse.de>
20419 PR tree-optimization/60841
20420 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20421 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20422 of stmts to SLP build.
20423 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20424 (vect_analyze_slp): Likewise.
20425 (vect_analyze_slp_instance): Likewise.
20426 (vect_build_slp_tree): Limit overall SLP tree growth.
20427 * tree-vectorizer.h (vect_analyze_data_refs,
20428 vect_analyze_slp): Adjust prototypes.
20430 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20432 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20435 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20437 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20438 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20439 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20440 for TARGET_SLOW_PSHUFB
20442 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20444 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20445 * config/i386/i386.c (intel_cost): Ditto.
20447 2014-04-17 Joey Ye <joey.ye@arm.com>
20449 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20451 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20453 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20454 with -fuse-profile.
20456 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20458 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20459 (type_all_derivations_known_p): New predicate.
20460 (type_all_ctors_visible_p): New predicate.
20461 (type_possibly_instantiated_p): New predicate.
20462 (get_odr_type): Compute all_derivations_known.
20463 (dump_odr_type): Dump the flag.
20464 (maybe_record_type): Cleanup.
20465 (record_target_from_binfo): Add bases_to_consider array;
20466 record bases for types w/o instances and skip CXX destructor.
20467 (possible_polymorphic_call_targets_1): Add bases_to_consider
20468 and consider_construction parameters; check if type may have instance.
20469 (get_polymorphic_call_info): Set maybe_in_construction to true
20470 when we know nothing.
20471 (record_targets_from_bases): Skip CXX destructors; they are
20472 never called for types in construction.
20473 (possible_polymorphic_call_targets): Do not record target when
20474 type may not have instance.
20476 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20479 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20480 external aliases alive, too.
20482 2014-04-16 Andrew Pinski <apinski@cavium.com>
20484 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20487 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20489 * final.c (compute_alignments): Do not apply loop alignment to a block
20490 falling through to the exit.
20492 2014-04-16 Catherine Moore <clm@codesourcery.com>
20494 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20495 Adjust constraints for microMIPS store patterns.
20497 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20499 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20501 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20503 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20504 (append_use): Run at -O0.
20505 (append_vdef): Likewise.
20506 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20507 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20509 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20511 PR tree-optimization/60844
20512 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20513 (propagate_op_to_single_use, remove_visited_stmt_chain,
20514 linearize_expr, repropagate_negates, reassociate_bb): Use it
20515 instead of gsi_remove.
20517 2014-04-16 Martin Jambor <mjambor@suse.cz>
20519 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20520 ipa_transforms_to_apply.
20521 (cgraph_function_versioning): Assert that old_node has empty
20522 ipa_transforms_to_apply.
20523 * trans-mem.c (ipa_tm_create_version): Likewise.
20524 * tree-inline.c (tree_function_versioning): Do not duplicate
20525 ipa_transforms_to_apply.
20527 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20530 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20532 Pass necessary as flags on 64-bit Solaris/x86.
20533 Use lowercase relocs for x86_64-*-*.
20534 * configure: Regenerate.
20536 2014-04-15 Jan Hubicka <jh@suse.cz>
20538 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20539 (maybe_record_node, likely_target_p): Use it.
20541 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20544 Revert following patch
20546 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20549 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20550 software floating point or no floating point registers, do not
20551 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20552 in GPRs that occurs after we tested for GPRs that would never be
20555 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20556 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20557 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20558 specifically allow DDmode, since that does not use the SPE SIMD
20561 2014-03-21 Mark Wielaard <mjw@redhat.com>
20563 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20564 as unsigned or int depending on type and value used.
20566 2014-04-15 Richard Biener <rguenther@suse.de>
20568 PR rtl-optimization/56965
20569 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20570 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20572 * alias.c (true_dependence_1): Do not call
20573 nonoverlapping_component_refs_p.
20574 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20575 nonoverlapping_component_refs_p.
20576 (indirect_refs_may_alias_p): Likewise.
20578 2014-04-15 Teresa Johnson <tejohnson@google.com>
20580 * cfg.c (dump_bb_info): Fix flags check.
20581 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20583 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20585 PR rtl-optimization/60663
20586 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20589 2014-04-15 Richard Biener <rguenther@suse.de>
20591 * lto-streamer.h (LTO_major_version): Bump to 4.
20593 2014-04-15 Richard Biener <rguenther@suse.de>
20595 * common.opt (lto_partition_model): New enum.
20596 (flto-partition=): Merge separate options with a single with argument,
20597 add -flto-partition=one support.
20598 * flag-types.h (enum lto_partition_model): Declare.
20599 * opts.c (finish_options): Remove duplicate -flto-partition=
20601 * lto-wrapper.c (run_gcc): Adjust.
20603 2014-04-15 Richard Biener <rguenther@suse.de>
20605 * alias.c (ncr_compar): New function.
20606 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20608 2014-04-15 Richard Biener <rguenther@suse.de>
20610 * alias.c (record_component_aliases): Do not walk BINFOs.
20612 2014-04-15 Richard Biener <rguenther@suse.de>
20614 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20615 Add struct function argument and adjust.
20616 (find_func_aliases_for_call): Likewise.
20617 (find_func_aliases): Likewise.
20618 (find_func_clobbers): Likewise.
20619 (intra_create_variable_infos): Likewise.
20620 (compute_points_to_sets): Likewise.
20621 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20623 2014-04-15 Richard Biener <rguenther@suse.de>
20625 * tree.c (iterative_hash_expr): Use enum tree_code_class
20626 to store TREE_CODE_CLASS.
20627 (tree_block): Likewise.
20628 (tree_set_block): Likewise.
20629 * tree.h (fold_build_pointer_plus_loc): Use
20630 convert_to_ptrofftype_loc.
20632 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20635 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20638 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20640 * cfgloop.h (struct loop): Move force_vectorize down.
20641 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20642 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20643 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20644 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20645 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20646 * tree-core.h (enum annot_expr_kind): Add new kind values.
20647 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20648 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20650 * tree.def (ANNOTATE_EXPR): Tweak comment.
20652 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20654 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20657 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20659 * tree.h (TYPE_IDENTIFIER): Declare.
20660 * tree.c (subrange_type_for_debug_p): Use it.
20661 * godump.c (go_format_type): Likewise.
20662 * dwarf2out.c (is_cxx_auto, modified_type_die,
20663 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20664 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20666 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20669 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20671 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20673 * config/i386/i386.c (examine_argument): Return bool. Return true if
20674 parameter should be passed in memory.
20675 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20676 (construct_container): Update calls to examine_argument.
20677 (function_arg_advance_64): Ditto.
20678 (return_in_memory_32): Merge with ix86_return_in_memory.
20679 (return_in_memory_64): Ditto.
20680 (return_in_memory_ms_64): Ditto.
20682 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20684 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20685 * coverage.c (coverage_compute_profile_id): Handle externally visible
20688 2014-04-14 Martin Jambor <mjambor@suse.cz>
20690 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20691 DECL_DISREGARD_INLINE_LIMITS functions.
20693 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20696 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20698 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20701 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20702 optimize_insn_for_speed_p instead of
20703 optimize_function_for_speed_p.
20705 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20707 * doc/invoke.texi (free): Document AArch64.
20709 2014-04-14 Richard Biener <rguenther@suse.de>
20711 PR tree-optimization/60042
20712 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20713 (insert_into_preds_of_block): Do not prevent PHI insertion
20714 for REFERENCE exprs here ...
20715 (eliminate_dom_walker::before_dom_children): ... but prevent
20716 their use here under similar conditions when applied to the
20717 IL after PRE optimizations.
20719 2014-04-14 Richard Biener <rguenther@suse.de>
20721 * passes.def: Move early points-to after early SRA.
20723 2014-04-14 Richard Biener <rguenther@suse.de>
20725 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20726 check for which sign-changes we allow when forwarding
20727 a converted value into a switch.
20729 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20731 * stor-layout.c (place_field): Finalize non-constant offset for the
20734 2014-04-14 Richard Biener <rguenther@suse.de>
20736 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20738 (expand_switch_using_bit_tests_p): Likewise.
20739 (process_switch): Compute and pass on speed_p based on the
20741 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20742 optimize_bb_for_speed_p.
20744 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20746 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20747 * function.h (struct function): Rename has_force_vect_loops into
20748 has_force_vectorize_loops.
20749 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20750 (input_struct_function_base): Likewise.
20751 * lto-streamer-out.c (output_cfg): Likewise.
20752 (output_struct_function_base): Likewise.
20753 * omp-low.c (expand_omp_simd): Likewise.
20754 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20755 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20756 (version_loop_for_if_conversion): Likewise.
20757 (tree_if_conversion): Likewise.
20758 (main_tree_if_conversion): Likewise.
20759 (gate_tree_if_conversion): Likewise.
20760 * tree-inline.c (copy_loops): Likewise.
20761 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20762 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20763 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20764 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20765 * tree-vectorizer.c (vectorize_loops): Likewise.
20766 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20768 2014-04-14 Richard Biener <rguenther@suse.de>
20771 * lto-streamer-out.c (wrap_refs): New function.
20772 (lto_output): Wrap symbol references in global initializes in
20773 type-preserving MEM_REFs.
20775 2014-04-14 Christian Bruel <christian.bruel@st.com>
20777 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20779 2014-04-14 Christian Bruel <christian.bruel@st.com>
20781 * config/sh/sh.md (setmemqi): New expand pattern.
20782 * config/sh/sh.h (CLEAR_RATIO): Define.
20783 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20784 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20786 2014-04-14 Richard Biener <rguenther@suse.de>
20788 PR middle-end/55022
20789 * fold-const.c (negate_expr_p): Don't negate directional rounding
20791 (fold_negate_expr): Likewise.
20793 2014-04-14 Richard Biener <rguenther@suse.de>
20795 PR tree-optimization/59817
20796 PR tree-optimization/60453
20797 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20798 recursion to catch all CHRECs in the scalar evolution and restrict
20799 the predicate for the remains appropriately.
20801 2014-04-12 Catherine Moore <clm@codesourcery.com>
20803 * config/mips/constraints.md: Add new register constraint "kb".
20804 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20805 (*movhi_internal): Likewise.
20806 (*movqi_internal): Likewise.
20807 * config/mips/mips.h (M16_STORE_REGS): New register class.
20808 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20809 (REG_CLASS_CONTENTS): Likewise.
20810 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20812 2014-04-11 Tobias Burnus <burnus@net-b.de>
20815 * doc/invoke.texi (-Wformat-signedness): Document it.
20816 (Wformat=2): Mention that this enables -Wformat-signedness.
20818 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20820 * common/config/epiphany/epiphany-common.c
20821 (epiphany_option_optimization_table): Enable section anchors by
20822 default at -O1 or higher.
20823 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20824 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20825 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20826 carries no extra cost.
20827 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20828 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20829 * config/epiphany/predicates.md (memclob_operand): New predicate.
20830 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20831 Use memclob_operand predicate and X constraint for operand 3.
20833 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20835 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20836 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20839 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20841 PR rtl-optimization/60651
20842 * mode-switching.c (optimize_mode_switching): Make sure to emit
20843 sets of a lower numbered entity before sets of a higher numbered
20844 entity to a mode of the same or lower priority.
20845 When creating a seginfo for a basic block that starts with a code
20846 label, move the insertion point past the code label.
20847 (new_seginfo): Document and enforce requirement that
20848 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20849 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20850 * doc/tm.texi: Regenerate.
20852 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20855 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20857 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20859 * BASE-VER: Set to 4.10.0.
20861 2014-04-11 Tobias Burnus <burnus@net-b.de>
20864 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20865 * doc/gcc.texi (Service): Update description in the @menu
20866 * doc/invoke.texi (Option Summary): Remove misplaced and
20869 2014-04-11 Steve Ellcey <sellcey@mips.com>
20870 Jakub Jelinek <jakub@redhat.com>
20872 PR middle-end/60556
20873 * expr.c (convert_move): Use emit_store_flag_force instead of
20874 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20877 2014-04-11 Richard Biener <rguenther@suse.de>
20879 PR middle-end/60797
20880 * varasm.c (assemble_alias): Avoid endless error reporting
20881 recursion by setting TREE_ASM_WRITTEN.
20883 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20885 * config/s390/s390.md: Add a splitter for NOT rtx.
20887 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20889 PR rtl-optimization/60663
20890 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20892 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20893 Jakub Jelinek <jakub@redhat.com>
20896 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20897 flag from decl_node to node.
20899 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20902 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20903 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20904 ameliorating the cases where it can be.
20906 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20909 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20911 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20912 (loadsync_<mode>): Change mode.
20913 (load_quadpti, store_quadpti): New.
20914 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20915 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20916 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20918 2014-04-09 Cong Hou <congh@google.com>
20921 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20924 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20926 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20927 instead of vnor to exploit possible fusion opportunity in the
20929 (altivec_expand_vec_perm_const_le): Likewise.
20931 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20933 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20934 (loadsync_<mode>): Change mode.
20935 (load_quadpti, store_quadpti): New.
20936 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20937 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20939 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20942 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20943 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20944 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20946 2014-04-08 Richard Biener <rguenther@suse.de>
20948 PR middle-end/60706
20949 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20950 a 64bit widest int print double-int similar to on HWI64 hosts.
20952 2014-04-08 Richard Biener <rguenther@suse.de>
20954 PR tree-optimization/60785
20955 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20956 default defs properly.
20958 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20960 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20961 (Weffc++): Likewise.
20963 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20965 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20966 set completep to false rather than true.
20968 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20971 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20972 ARM_TARGET2_DWARF_FORMAT.
20974 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20977 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20978 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20981 2014-04-07 Richard Biener <rguenther@suse.de>
20983 PR tree-optimization/60766
20984 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20985 (may_eliminate_iv): Convert cand_value_at result to desired type.
20987 2014-04-07 Jason Merrill <jason@redhat.com>
20990 * common.opt (-fno-gnu-unique): Add.
20991 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20993 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20995 * haifa-sched.c: Fix outdated function reference and minor
20996 grammar errors in introductory comment.
20998 2014-04-07 Richard Biener <rguenther@suse.de>
21000 PR middle-end/60750
21001 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21002 for noreturn calls.
21003 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21005 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21008 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21009 size accounting for thunks.
21010 (pa_asm_output_mi_thunk): Use final_start_function() and
21011 final_end_function() to output function start and end directives.
21013 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21015 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21016 device specific ISA/ feature information. Remove short_sp and
21017 errata_skip ds. Add avr_device_specific_features enum to have device
21019 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21020 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21021 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21022 updated device specific info.
21023 * config/avr/avr-mcus.def: Merge device specific details to
21024 dev_attribute field.
21025 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21027 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21028 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21029 assembler if RMW isa supported by current device.
21030 * config/avr/genmultilib.awk: Update as device info structure changed.
21031 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21033 2014-04-04 Cong Hou <congh@google.com>
21035 PR tree-optimization/60656
21036 * tree-vect-stmts.c (supportable_widening_operation):
21037 Fix a bug that elements in a vector with vect_used_by_reduction
21038 property are incorrectly reordered when the operation on it is not
21039 consistant with the one in reduction operation.
21041 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21043 PR rtl-optimization/60155
21044 * gcse.c (record_set_data): New function.
21045 (single_set_gcse): New function.
21046 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21047 (hoist_code): Likewise.
21048 (get_pressure_class_and_nregs): Likewise.
21050 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21052 * explow.c (probe_stack_range): Emit a final optimization blockage.
21054 2014-04-04 Anthony Green <green@moxielogic.com>
21056 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21059 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21062 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21063 flags are set only during streaming.
21064 * ipa.c (process_references, walk_polymorphic_call_targets,
21065 symtab_remove_unreachable_nodes): Drop bodies of always inline
21066 after early inlining.
21067 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21069 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21070 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21073 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21076 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21079 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21081 (cortex_a53_fdivd): Likewise.
21083 2014-04-04 Martin Jambor <mjambor@suse.cz>
21086 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21087 Adjust all callers.
21088 * cgraph.c (clone_of_p): Also return true if thunks match.
21089 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21090 cgraph_function_or_thunk_node and an obsolete comment.
21091 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21093 (build_function_decl_skip_args): Likewise.
21094 (set_new_clone_decl_and_node_flags): New function.
21095 (duplicate_thunk_for_node): Likewise.
21096 (redirect_edge_duplicating_thunks): Likewise.
21097 (cgraph_clone_node): New parameter args_to_skip, pass it to
21098 redirect_edge_duplicating_thunks which is called instead of
21099 cgraph_redirect_edge_callee.
21100 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21101 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21103 2014-04-04 Jeff Law <law@redhat.com>
21106 * config/arm/predicates.md (const_int_I_operand): New predicate.
21107 (const_int_M_operand): Similarly.
21108 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21110 (insv_t2, extv_reg, extzv_t2): Likewise.
21111 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21112 (pop_multiple_with_writeback_and_return): Likewise.
21113 (vfp_pop_multiple_with_writeback): Likewise
21115 2014-04-04 Richard Biener <rguenther@suse.de>
21118 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21119 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21121 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21122 * gimplify.c (gimple_add_tmp_var_fn): New function.
21123 * gimple-expr.h (create_tmp_reg_fn): Declare.
21124 * gimple-expr.c (create_tmp_reg_fn): New function.
21125 * gimple-low.c (record_vars_into): Don't change cfun.
21126 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21127 code generation without cfun.
21129 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21132 * Makefile.in (install-driver): Fix shell scripting.
21134 2014-04-03 Cong Hou <congh@google.com>
21136 PR tree-optimization/60505
21137 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21138 threshold of number of iterations below which no vectorization
21140 * tree-vect-loop.c (new_loop_vec_info):
21141 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21142 * tree-vect-loop.c (vect_analyze_loop_operations):
21143 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21144 * tree-vect-loop.c (vect_transform_loop):
21145 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21146 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21147 of iterations of the loop and see if we should build the epilogue.
21149 2014-04-03 Richard Biener <rguenther@suse.de>
21151 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21152 (streamer_tree_cache_create): Adjust.
21153 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21154 to allow optional nodes array.
21155 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21156 (streamer_tree_cache_append): Likewise.
21157 (streamer_tree_cache_create): Create nodes array optionally
21158 as specified by parameter.
21159 * lto-streamer-out.c (create_output_block): Avoid maintaining
21160 the node array in the writer cache.
21161 (DFS_write_tree): Remove assertion.
21162 (produce_asm_for_decls): Free the out decl state hash table early.
21163 * lto-streamer-in.c (lto_data_in_create): Adjust for
21164 streamer_tree_cache_create prototype change.
21166 2014-04-03 Richard Biener <rguenther@suse.de>
21168 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21169 set TREE_CHAIN to NULL_TREE.
21171 2014-04-03 Richard Biener <rguenther@suse.de>
21173 PR tree-optimization/60740
21174 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21175 over all GIMPLE_COND operands.
21177 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21179 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21180 (Weffc++): Remove Scott's numbering, merge lists and reference
21183 2014-04-03 Nick Clifton <nickc@redhat.com>
21185 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21188 2014-04-03 Martin Jambor <mjambor@suse.cz>
21190 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21191 mention gcc_unreachable before failing.
21192 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21195 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21198 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21199 inconsistent code and instead mark the context inconsistent.
21200 (possible_polymorphic_call_targets): For inconsistent contexts
21201 return empty complete list.
21203 2014-04-02 Anthony Green <green@moxielogic.com>
21205 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21206 (extendqisi2, extendhisi2): Define.
21207 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21208 (WCHAR_TYPE): Change to unsigned int.
21210 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21212 PR tree-optimization/60733
21213 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21214 insertion point for PHI candidates to be the end of the feeding
21215 block for the PHI argument.
21217 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21219 PR rtl-optimization/60650
21220 * lra-constraints.c (process_alt_operands): Decrease reject for
21221 earlyclobber matching.
21223 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21225 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21227 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21229 * config/spu/spu.c (pad_bb): Do not crash when the last
21230 insn is CODE_FOR_blockage.
21232 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21234 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21235 lies outside the target mode.
21237 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21240 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21241 software floating point or no floating point registers, do not
21242 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21243 in GPRs that occurs after we tested for GPRs that would never be
21246 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21247 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21248 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21249 specifically allow DDmode, since that does not use the SPE SIMD
21252 2014-04-02 Richard Biener <rguenther@suse.de>
21254 PR middle-end/60729
21255 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21256 MODE_INTs. Properly use negv_optab.
21257 (expand_abs): Likewise.
21259 2014-04-02 Richard Biener <rguenther@suse.de>
21262 * Makefile.in (install-driver): Guard extra installs with special
21265 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21267 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21268 Document vec_vgbbd.
21270 2014-04-01 Richard Henderson <rth@redhat.com>
21273 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21274 alternative enabled before register allocation.
21276 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21278 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21279 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21281 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21282 (nios2_got_address): Update nios2_large_got_address call site.
21283 (nios2_delegitimize_address): New function.
21284 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21285 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21286 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21288 2014-04-01 Martin Husemann <martin@duskware.de>
21290 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21293 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21295 PR rtl-optimization/60604
21296 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21297 check from register_operand.
21298 (register_operand): Redefine in terms of general_operand.
21299 (nonmemory_operand): Use register_operand for the non-constant cases.
21301 2014-04-01 Richard Biener <rguenther@suse.de>
21303 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21305 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21307 * doc/invoke.texi (mapp-regs): Clarify.
21309 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21311 * config/i386/avx512fintrin.h (__v32hi): Define type.
21312 (__v64qi): Likewise.
21313 (_mm512_set1_epi8): Define.
21314 (_mm512_set1_epi16): Define.
21315 (_mm512_set4_epi32): Define.
21316 (_mm512_set4_epi64): Define.
21317 (_mm512_set4_pd): Define.
21318 (_mm512_set4_ps): Define.
21319 (_mm512_setr4_epi64): Define.
21320 (_mm512_setr4_epi32): Define.
21321 (_mm512_setr4_pd): Define.
21322 (_mm512_setr4_ps): Define.
21323 (_mm512_setzero_epi32): Define.
21325 2014-03-31 Martin Jambor <mjambor@suse.cz>
21327 PR middle-end/60647
21328 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21329 callsite_arguments_match_p. Updated all callers. Also check types of
21330 corresponding formal parameters and actual arguments.
21331 (not_all_callers_have_enough_arguments_p) Renamed to
21332 some_callers_have_mismatched_arguments_p.
21334 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21336 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21338 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21341 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21344 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21346 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21347 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21349 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21350 Use FMAMODE_NOVF512 mode iterator.
21351 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21352 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21353 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21354 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21356 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21357 Use VF_128_256 mode iterator.
21358 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21361 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21363 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21364 static chain if needed.
21366 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21369 * lra-constraints.c (index_part_to_reg): New.
21370 (process_address): Use it.
21372 2014-03-27 Jeff Law <law@redhat.com>
21373 Jakub Jelinek <jakub@redhat.com>
21376 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21377 gen_rtx_{PLUS,MULT} to build up the address expression.
21379 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21380 creating non-canonical RTL.
21382 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21385 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21386 functions; reorganize to make cheap checks first.
21387 (inline_small_functions): Do not estimate growth when dumping;
21389 * ipa-inline.h (inline_summary): Add min_size.
21390 (growth_likely_positive): New function.
21391 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21392 (set_cond_stmt_execution_predicate): Cleanup.
21393 (estimate_edge_size_and_time): Compute min_size.
21394 (estimate_calls_size_and_time): Likewise.
21395 (estimate_node_size_and_time): Likewise.
21396 (inline_update_overall_summary): Update min_size.
21397 (do_estimate_edge_time): Likewise.
21398 (do_estimate_edge_size): Update.
21399 (do_estimate_edge_hints): Update.
21400 (growth_likely_positive): New function.
21402 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21405 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21406 also if addr has VOIDmode.
21408 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21410 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21411 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21413 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21414 instructions as well as AdvancedSIMD loads.
21416 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21418 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21419 Use crypto_aese type.
21420 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21421 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21422 crypto_aese, crypto_aesmc. Move to types.md.
21423 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21425 * config/arm/iterators.md (crypto_type): Likewise.
21427 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21429 * cgraph.c: Include expr.h and tree-dfa.h.
21430 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21433 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21436 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21437 regs from checking multi-reg pseudos.
21439 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21441 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21443 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21445 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21446 if it would clobber the stack pointer, even temporarily.
21448 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21450 * mode-switching.c: Make small adjustments to the top comment.
21452 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21454 * config/rs6000/constraints.md (wD constraint): New constraint to
21455 match the constant integer to get the top DImode/DFmode out of a
21456 vector in a VSX register.
21458 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21459 match the constant integer to get the top DImode/DFmode out of a
21460 vector in a VSX register.
21462 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21465 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21468 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21469 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21471 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21472 Optimize vec_extract of 64-bit values, where the value being
21473 extracted is in the top word, where we can use scalar
21474 instructions. Add direct move and store support. Combine the big
21475 endian/little endian vector select load support into a single insn.
21476 (vsx_extract_<mode>_internal1): Likewise.
21477 (vsx_extract_<mode>_internal2): Likewise.
21478 (vsx_extract_<mode>_load): Likewise.
21479 (vsx_extract_<mode>_store): Likewise.
21480 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21481 combined into vsx_extract_<mode>_load.
21482 (vsx_extract_<mode>_one_le): Likewise.
21484 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21485 define the top 64-bit vector element.
21487 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21490 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21491 Document vec_vbpermq builtin.
21494 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21495 enable use of xxsldwi and xxpermdi builtin functions.
21496 (vec_xxpermdi): Likewise.
21498 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21499 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21501 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21503 PR rtl-optimization/60650
21504 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21506 (find_spills_for): New.
21507 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21508 Spill all pseudos on the second iteration.
21510 2014-03-27 Marek Polacek <polacek@redhat.com>
21513 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21516 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21518 * config/s390/s390.c (s390_can_use_return_insn): Check for
21519 call-saved FPRs on 31 bit.
21521 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21523 PR middle-end/60682
21524 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21525 if they need regimplification, just drop them instead of
21526 calling gimple_regimplify_operands on them.
21528 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21531 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21532 (aarch64_frame_pointer_required): Adjust logic.
21533 (aarch64_can_eliminate): Adjust logic.
21534 (aarch64_override_options_after_change): Adjust logic.
21536 2014-03-27 Dehao Chen <dehao@google.com>
21538 * ipa-inline.c (early_inliner): Update node's inline info.
21540 2014-03-26 Dehao Chen <dehao@google.com>
21542 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21543 compiler inserted conditional jumps for NAN float check.
21545 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21547 * ubsan.h (ubsan_create_data): Change second argument's type
21548 to const location_t *.
21549 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21551 (ubsan_create_data): Change second argument to const location_t *PLOC.
21552 Create Loc field whenever PLOC is non-NULL.
21553 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21554 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21558 * real.c (real_to_integer2): Change type of low to UHWI.
21560 2014-03-26 Tobias Burnus <burnus@net-b.de>
21562 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21563 (CILK_SELF_SPECS): New define.
21564 (driver_self_specs): Use it.
21566 2014-03-26 Richard Biener <rguenther@suse.de>
21568 * tree-pretty-print.c (percent_K_format): Implement special
21569 case for LTO and its stripped down BLOCK tree.
21571 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21574 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21576 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21577 one range is range_int_cst_p, but not both, at least optimize
21578 addition/subtraction of 0 and multiplication by 0 or 1.
21579 * gimple-fold.c (gimple_fold_call): Fold
21580 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21581 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21582 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21584 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21586 PR rtl-optimization/60452
21587 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21588 <case REG>: Return 1 for invalid offsets from the frame pointer.
21590 2014-03-26 Marek Polacek <polacek@redhat.com>
21593 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21596 2014-03-26 Marek Polacek <polacek@redhat.com>
21599 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21602 2014-03-26 Marek Polacek <polacek@redhat.com>
21605 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21606 multiplication in unsigned type.
21608 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21610 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21612 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21614 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21616 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21619 * cif-code.def (UNREACHABLE) New code.
21620 * ipa-inline.c (inline_small_functions): Skip edges to
21621 __builtlin_unreachable.
21622 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21623 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21624 predicate to __bulitin_unreachable.
21625 (set_cond_stmt_execution_predicate): Fix issue when
21626 invert_tree_comparison returns ERROR_MARK.
21627 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21628 propagate to inline clones.
21629 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21631 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21632 * cgraphclones.c (cgraph_clone_node): If call destination is already
21633 ureachable, do not redirect it back.
21634 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21637 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21639 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21640 Do not modify inline clones.
21642 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21644 * config/i386/i386.md (general_sext_operand): New mode attr.
21645 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21646 don't generate (sign_extend (const_int)).
21647 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21648 operands[2]. Use We constraint instead of <i> and
21649 <general_sext_operand> predicate instead of <general_operand>.
21650 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21651 * config/i386/constraints.md (We): New constraint.
21652 * config/i386/predicates.md (x86_64_sext_operand,
21653 sext_operand): New predicates.
21655 2014-03-25 Martin Jambor <mjambor@suse.cz>
21658 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21659 inconsistent devirtualizations to __builtin_unreachable.
21661 2014-03-25 Marek Polacek <polacek@redhat.com>
21664 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21666 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21668 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21669 order of elements for big-endian.
21671 2014-03-25 Richard Biener <rguenther@suse.de>
21673 PR middle-end/60635
21674 * gimplify-me.c (gimple_regimplify_operands): Update the
21677 2014-03-25 Martin Jambor <mjambor@suse.cz>
21680 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21681 (lto_output_varpool_node): Likewise.
21682 (input_overwrite_node): Likewise.
21683 (input_varpool_node): Likewise.
21685 2014-03-25 Richard Biener <rguenther@suse.de>
21687 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21688 (run_gcc): Likewise.
21690 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21692 * combine.c (simplify_compare_const): Add MODE argument.
21693 Handle mode_width 0 as very large mode_width.
21694 (try_combine, simplify_comparison): Adjust callers.
21696 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21697 type to avoid signed integer overflow.
21698 * explow.c (plus_constant): Likewise.
21700 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21702 * doc/generic.texi: Correct typos.
21704 2014-03-24 Tobias Burnus <burnus@net-b.de>
21706 * doc/invoke.texi (-flto): Expand section about
21707 using static libraries with LTO.
21709 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21711 PR rtl-optimization/60501
21712 * optabs.def (addptr3_optab): New optab.
21713 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21714 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21715 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21717 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21719 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21721 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21723 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21726 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21727 (_mm256_undefined_ps): Define.
21728 (_mm256_undefined_pd): Define.
21729 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21730 (_mm_undefined_pd): Define.
21731 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21732 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21733 (_mm512_undefined_ps): Define.
21734 (_mm512_undefined_pd): Define.
21735 Use _mm*_undefined_*.
21736 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21738 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21740 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21741 (lshr_simd): DI mode added.
21742 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21743 (aarch64_ushr_simddi): Likewise.
21744 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21745 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21746 (vshrd_n_u64): Likewise.
21748 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21750 * Makefile.in (s-macro_list): Depend on cc1.
21752 2014-03-23 Teresa Johnson <tejohnson@google.com>
21754 * ipa-utils.c (ipa_print_order): Use specified dump file.
21756 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21758 PR rtl-optimization/60601
21759 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21761 * gcc.c (eval_spec_function): Initialize save_growing_value.
21763 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21766 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21767 code == MINUS_EXPR, never swap op0 with op1.
21769 * toplev.c (init_local_tick): Avoid signed integer multiplication
21771 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21772 shift by first operand's bitsize.
21774 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21777 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21778 redefine to 1 or 0.
21779 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21780 TARGET_ISA_64BIT_P(x).
21782 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21784 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21785 pattern for vector nor instead of subtract from splat(-1).
21786 (altivec_expand_vec_perm_const_le): Likewise.
21788 2014-03-21 Richard Henderson <rth@twiddle.net>
21791 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21792 related insns after epilogue_completed.
21794 2014-03-21 Martin Jambor <mjambor@suse.cz>
21797 * cgraph.h (symtab_node): New flag body_removed.
21798 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21799 when removing bodies.
21800 * symtab.c (dump_symtab_base): Dump body_removed flag.
21801 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21802 had their bodies removed.
21804 2014-03-21 Martin Jambor <mjambor@suse.cz>
21807 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21810 2014-03-21 Richard Biener <rguenther@suse.de>
21812 PR tree-optimization/60577
21813 * tree-core.h (struct tree_base): Document nothrow_flag use
21814 in DECL_NONALIASED.
21815 * tree.h (DECL_NONALIASED): New.
21816 (may_be_aliased): Adjust.
21817 * coverage.c (build_var): Set DECL_NONALIASED.
21819 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21821 * expr.c (expand_expr_real_1): Remove outdated comment.
21823 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21825 PR middle-end/60597
21826 * ira.c (adjust_cleared_regs): Call copy_rtx on
21827 *reg_equiv[REGNO (loc)].src_p before passing it to
21828 simplify_replace_fn_rtx.
21831 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21832 into CONST, put pic register as first operand of PLUS. Use
21833 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21835 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21837 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21839 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21841 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21842 around for store forwarding issue in the FPU on the UT699.
21843 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21844 loads and operations if -mfix-ut699 is specified.
21845 (divtf3_hq): Tweak attribute.
21846 (sqrttf2_hq): Likewise.
21848 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21850 * calls.c (store_one_arg): Remove incorrect const qualification on the
21851 type of the temporary.
21852 * cfgexpand.c (expand_return): Likewise.
21853 * expr.c (expand_constructor): Likewise.
21854 (expand_expr_real_1): Likewise.
21856 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21858 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21861 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21864 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21866 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21868 * config/arm/aarch-common-protos.h
21869 (alu_cost_table): Fix spelling of "extend".
21870 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21872 2014-03-19 Richard Biener <rguenther@suse.de>
21874 PR middle-end/60553
21875 * tree-core.h (tree_type_common): Re-order pointer members
21876 to reduce recursion depth during GC walks.
21878 2014-03-19 Marek Polacek <polacek@redhat.com>
21881 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21882 before accessing it.
21884 2014-03-19 Richard Biener <rguenther@suse.de>
21887 * lto-streamer-in.c (input_function): In WPA stage do not drop
21890 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21892 PR tree-optimization/60559
21893 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21894 with build_zero_cst assignment.
21896 2014-03-18 Kai Tietz <ktietz@redhat.com>
21898 PR rtl-optimization/56356
21899 * sdbout.c (sdbout_parms): Verify that parms'
21900 incoming argument is valid.
21901 (sdbout_reg_parms): Likewise.
21903 2014-03-18 Richard Henderson <rth@redhat.com>
21906 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21907 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21908 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21910 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21912 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21913 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21914 Italicize plugin event names in description. Explain that
21915 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21916 Remind that no GCC functions should be called after PLUGIN_FINISH.
21917 Explain what pragmas with expansion are.
21919 2014-03-18 Martin Liska <mliska@suse.cz>
21921 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21922 gimple call statement is update.
21923 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21924 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21926 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21929 * ubsan.c (ubsan_instrument_unreachable): Call
21930 initialize_sanitizer_builtins.
21931 (ubsan_pass): Likewise.
21934 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21935 varpool_finalize_decl instead of rest_of_decl_compilation.
21937 2014-03-18 Richard Biener <rguenther@suse.de>
21939 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21940 by using bitmap_and_compl instead of bitmap_and_compl_into.
21941 (df_rd_transfer_function): Likewise.
21943 2014-03-18 Richard Biener <rguenther@suse.de>
21945 * doc/lto.texi (fresolution): Fix typo.
21947 2014-03-18 Richard Biener <rguenther@suse.de>
21949 * doc/invoke.texi (flto): Update for changes in 4.9.
21951 2014-03-18 Richard Biener <rguenther@suse.de>
21953 * doc/loop.texi: Remove section on the removed lambda framework.
21954 Update loop docs with recent changes in preserving loop structure.
21956 2014-03-18 Richard Biener <rguenther@suse.de>
21958 * doc/lto.texi (-fresolution): Document.
21960 2014-03-18 Richard Biener <rguenther@suse.de>
21962 * doc/contrib.texi: Adjust my name.
21964 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21967 * internal-fn.c: Include diagnostic-core.h.
21968 (expand_BUILTIN_EXPECT): New function.
21969 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21970 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21971 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21972 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21973 IFN_BUILTIN_EXPECT.
21974 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21975 Revert 3 argument __builtin_expect code.
21976 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21977 * gimple-fold.c (gimple_fold_call): Likewise.
21978 * tree.h (fold_builtin_expect): New prototype.
21979 * builtins.c (build_builtin_expect_predicate): Add predictor
21980 argument, if non-NULL, create 3 argument __builtin_expect.
21981 (fold_builtin_expect): No longer static. Add ARG2 argument,
21982 pass it through to build_builtin_expect_predicate.
21983 (fold_builtin_2): Adjust caller.
21984 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21985 * internal-fn.def (BUILTIN_EXPECT): New.
21987 2014-03-18 Tobias Burnus <burnus@net-b.de>
21990 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21991 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21992 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21994 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21997 * predict.c (combine_predictions_for_bb): Fix up formatting.
21998 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21999 fill what it points to if non-NULL.
22000 (tree_predict_by_opcode): Adjust caller, use the predictor.
22001 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22003 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22005 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22006 proper constant for the store mode.
22008 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22010 * symtab.c (change_decl_assembler_name): Fix transparent alias
22011 chain construction.
22013 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22015 * config/aarch64/aarch64.c: Correct the comments about the
22016 aarch64 stack layout.
22018 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22020 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22021 check for GF_OMP_FOR_KIND_FOR.
22023 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22025 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22026 ymm and zmm register names.
22028 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22031 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22032 note creation for the 2010-08-31 changes.
22034 2014-03-17 Marek Polacek <polacek@redhat.com>
22036 PR middle-end/60534
22037 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22038 as -fno-tree-loop-vectorize.
22039 (expand_omp_simd): Likewise.
22041 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22043 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22044 (eligible_for_call_delay): New prototype.
22045 * config/sparc/sparc.c (tls_call_delay): Rename into...
22046 (eligible_for_call_delay): ...this. Return false if the instruction
22047 cannot be put in the delay slot of a branch.
22048 (eligible_for_restore_insn): Simplify.
22049 (eligible_for_return_delay): Return false if the instruction cannot be
22050 put in the delay slot of a branch and simplify.
22051 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22052 put in the delay slot of a branch.
22053 * config/sparc/sparc.md (fix_ut699): New attribute.
22054 (tls_call_delay): Delete.
22055 (in_call_delay): Reimplement.
22056 (eligible_for_sibcall_delay): Rename into...
22057 (in_sibcall_delay): ...this.
22058 (eligible_for_return_delay): Rename into...
22059 (in_return_delay): ...this.
22060 (in_branch_delay): Reimplement.
22061 (in_uncond_branch_delay): Delete.
22062 (in_annul_branch_delay): Delete.
22064 2014-03-14 Richard Henderson <rth@redhat.com>
22067 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22068 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22069 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22070 (floathi splitters): Remove.
22071 (float<SWI48x>xf2): New pattern.
22072 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22073 code that tried to handle DImode for 32-bit, but which was excluded
22074 by the pattern's condition. Drop allocation of stack temporary.
22075 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22076 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22077 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22078 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22079 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22080 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22081 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22082 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22083 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22084 (*float<SWI48x><X87MODEF>2_i387): Remove.
22085 (all float _with_temp splitters): Remove.
22086 (*float<SWI48x><MODEF>2_i387): New pattern.
22087 (*float<SWI48><MODEF>2_sse): New pattern.
22088 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22089 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22091 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22092 Marek Polacek <polacek@redhat.com>
22094 PR middle-end/60484
22095 * common.opt (dump_base_name_prefixed): New Variable.
22096 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22097 if x_dump_base_name_prefixed is already set, set it at the end.
22099 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22101 PR rtl-optimization/60508
22102 * lra-constraints.c (get_reload_reg): Add new parameter
22104 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22105 Pass the new parameter values.
22107 2014-03-14 Richard Biener <rguenther@suse.de>
22109 * common.opt: Revert unintented changes from r205065.
22110 * opts.c: Likewise.
22112 2014-03-14 Richard Biener <rguenther@suse.de>
22114 PR middle-end/60518
22115 * cfghooks.c (split_block): Properly adjust all loops the
22116 block was a latch of.
22118 2014-03-14 Martin Jambor <mjambor@suse.cz>
22121 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22124 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22127 * config/avr/avr.c (avr_set_current_function): Pass function name
22128 through default_strip_name_encoding before sanity checking instead
22129 of skipping the first char of the assembler name.
22131 2014-03-13 Richard Henderson <rth@redhat.com>
22134 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22135 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22136 * config/i386/i386-protos.h: Likewise.
22137 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22138 in the expander instead of a splitter.
22139 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22140 any possibility of requiring a memory.
22141 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22142 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22143 (fp branch splitters): Update for ix86_split_fp_branch.
22144 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22145 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22146 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22147 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22148 (*fop_<MODEF>_3_i387): Likewise.
22149 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22150 (splitters for the fop_* register patterns): Remove.
22151 (fscalexf4_i387): Rename from *fscalexf4_i387.
22152 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22154 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22156 PR tree-optimization/59779
22157 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22158 type for bitsize and maxsize instead of HOST_WIDE_INT.
22160 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22162 PR rtl-optimization/57320
22163 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22164 the CFG after thread_prologue_and_epilogue_insns.
22166 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22168 PR rtl-optimization/57189
22169 * lra-constraints.c (process_alt_operands): Disfavor spilling
22172 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22174 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22176 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22178 PR tree-optimization/59025
22179 PR middle-end/60418
22180 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22181 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22183 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22186 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22187 calls of avr_out_plus_1.
22189 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22191 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22192 BB's single pred and update the father loop's latch info later.
22194 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22196 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22200 (VEC_base): Likewise.
22201 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22202 registers, we need to swap double words in little endian mode.
22204 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22205 to be a container mode for 128-bit integer operations added in ISA
22206 2.07. Unlike TImode and PTImode, the preferred register set is
22207 the Altivec/VMX registers for the 128-bit operations.
22209 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22211 (rs6000_split_128bit_ok_p): Likewise.
22213 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22214 macros for creating ISA 2.07 normal and overloaded builtin
22215 functions with 3 arguments.
22216 (BU_P8V_OVERLOAD_3): Likewise.
22217 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22218 for use as overloaded functions.
22219 (VPERM_1TI_UNS): Likewise.
22220 (VSEL_1TI): Likewise.
22221 (VSEL_1TI_UNS): Likewise.
22222 (ST_INTERNAL_1ti): Likewise.
22223 (LD_INTERNAL_1ti): Likewise.
22224 (XXSEL_1TI): Likewise.
22225 (XXSEL_1TI_UNS): Likewise.
22226 (VPERM_1TI): Likewise.
22227 (VPERM_1TI_UNS): Likewise.
22228 (XXPERMDI_1TI): Likewise.
22229 (SET_1TI): Likewise.
22230 (LXVD2X_V1TI): Likewise.
22231 (STXVD2X_V1TI): Likewise.
22232 (VEC_INIT_V1TI): Likewise.
22233 (VEC_SET_V1TI): Likewise.
22234 (VEC_EXT_V1TI): Likewise.
22235 (EQV_V1TI): Likewise.
22236 (NAND_V1TI): Likewise.
22237 (ORC_V1TI): Likewise.
22238 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22239 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22240 overloaded builtin.
22241 (VADDUQM): Likewise.
22242 (VSUBCUQ): Likewise.
22243 (VADDEUQM): Likewise.
22244 (VADDECUQ): Likewise.
22245 (VSUBEUQM): Likewise.
22246 (VSUBECUQ): Likewise.
22248 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22249 __int128_t and __uint128_t types.
22250 (__uint128_type): Likewise.
22251 (altivec_categorize_keyword): Add support for vector __int128_t,
22252 vector __uint128_t, vector __int128, and vector unsigned __int128
22253 as a container type for TImode operations that need to be done in
22254 VSX/Altivec registers.
22255 (rs6000_macro_to_expand): Likewise.
22256 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22257 to support 128-bit integer instructions vaddcuq, vadduqm,
22258 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22259 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22261 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22262 for V1TImode, and set up preferences to use VSX/Altivec registers.
22263 Setup VSX reload handlers.
22264 (rs6000_debug_reg_global): Likewise.
22265 (rs6000_init_hard_regno_mode_ok): Likewise.
22266 (rs6000_preferred_simd_mode): Likewise.
22267 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22268 (easy_altivec_constant): Likewise.
22269 (output_vec_const_move): Likewise.
22270 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22272 (rs6000_expand_vector_extract): Likewise.
22273 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22275 (rs6000_const_vec): Add support for V1TImode.
22276 (rs6000_emit_le_vsx_load): Swap double words when loading or
22277 storing TImode/V1TImode.
22278 (rs6000_emit_le_vsx_store): Likewise.
22279 (rs6000_emit_le_vsx_move): Likewise.
22280 (rs6000_emit_move): Add support for V1TImode.
22281 (altivec_expand_ld_builtin): Likewise.
22282 (altivec_expand_st_builtin): Likewise.
22283 (altivec_expand_vec_init_builtin): Likewise.
22284 (altivec_expand_builtin): Likewise.
22285 (rs6000_init_builtins): Add support for V1TImode type. Add
22286 support for ISA 2.07 128-bit integer builtins. Define type names
22287 for the VSX/Altivec vector types.
22288 (altivec_init_builtins): Add support for overloaded vector
22289 functions with V1TImode type.
22290 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22291 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22293 (rs6000_split_128bit_ok_p): Likewise.
22294 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22295 __int128_t and vector __uint128_t.
22297 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22298 and mode attributes.
22300 (VSX_M2): Likewise.
22305 (VS_scalar): Likewise.
22306 (VS_double): Likewise.
22307 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22309 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22310 we support the ISA 2.07 128-bit integer arithmetic instructions.
22311 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22312 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22313 and TImode types for use with the builtin functions.
22314 (V1TI_type_node): Likewise.
22315 (unsigned_V1TI_type_node): Likewise.
22316 (intTI_type_internal_node): Likewise.
22317 (uintTI_type_internal_node): Likewise.
22319 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22320 128-bit builtin functions.
22321 (UNSPEC_VADDEUQM): Likewise.
22322 (UNSPEC_VADDECUQ): Likewise.
22323 (UNSPEC_VSUBCUQ): Likewise.
22324 (UNSPEC_VSUBEUQM): Likewise.
22325 (UNSPEC_VSUBECUQ): Likewise.
22326 (VM): Add V1TImode to vector mode iterators.
22328 (VI_unit): Likewise.
22329 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22330 (altivec_vaddcuq): Likewise.
22331 (altivec_vsubuqm): Likewise.
22332 (altivec_vsubcuq): Likewise.
22333 (altivec_vaddeuqm): Likewise.
22334 (altivec_vaddecuq): Likewise.
22335 (altivec_vsubeuqm): Likewise.
22336 (altivec_vsubecuq): Likewise.
22338 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22340 (BOOL_128): Likewise.
22341 (BOOL_REGS_OUTPUT): Likewise.
22342 (BOOL_REGS_OP1): Likewise.
22343 (BOOL_REGS_OP2): Likewise.
22344 (BOOL_REGS_UNARY): Likewise.
22345 (BOOL_REGS_AND_CR0): Likewise.
22347 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22348 128-bit integer builtin support.
22349 (vec_vadduqm): Likewise.
22350 (vec_vaddecuq): Likewise.
22351 (vec_vaddeuqm): Likewise.
22352 (vec_vsubecuq): Likewise.
22353 (vec_vsubeuqm): Likewise.
22354 (vec_vsubcuq): Likewise.
22355 (vec_vsubuqm): Likewise.
22357 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22358 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22359 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22360 128-bit integer add/subtract to ISA 2.07.
22362 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22364 * config/arc/arc.c (arc_predicate_delay_insns):
22365 Fix third argument passed to conditionalize_nonjump.
22367 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22369 * config/aarch64/aarch64-builtins.c
22370 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22371 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22372 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22373 instead of __builtin_lfloor.
22374 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22376 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22378 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22379 (tree_ssa_ifcombine_bb_1): New function.
22380 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22381 is an empty forwarder block to then_bb or vice versa and then_bb
22382 and else_bb are effectively swapped.
22384 2014-03-12 Christian Bruel <christian.bruel@st.com>
22387 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22388 REG_CFA_DEF_CFA note.
22389 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22390 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22392 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22394 PR tree-optimization/60454
22395 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22397 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22399 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22400 Do not define target_cpu_default2 to generic.
22401 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22402 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22403 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22405 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22406 Marc Glisse <marc.glisse@inria.fr>
22408 PR tree-optimization/60502
22409 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22410 instead of build_low_bits_mask.
22412 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22414 PR middle-end/60482
22415 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22416 if there are multiple uses, but op doesn't live on E edge.
22417 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22418 clobber stmts before __builtin_unreachable.
22420 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22422 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22423 hard_frame_pointer_rtx.
22424 * cse.c (cse_insn): Remove volatile check.
22425 * cselib.c (cselib_process_insn): Likewise.
22426 * dse.c (scan_insn): Likewise.
22428 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22430 * config/arc/arc.c (conditionalize_nonjump): New function,
22432 (arc_ifcvt): ... this.
22433 (arc_predicate_delay_insns): Use it.
22435 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22437 * config/arc/predicates.md (extend_operand): During/after reload,
22438 allow const_int_operand.
22439 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22440 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22441 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22443 (umulsi3_highpart_i): Likewise.
22445 2014-03-11 Richard Biener <rguenther@suse.de>
22447 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22448 Add asserts to guard possible wrong-code bugs.
22450 2014-03-11 Richard Biener <rguenther@suse.de>
22452 PR tree-optimization/60429
22453 PR tree-optimization/60485
22454 * tree-ssa-structalias.c (set_union_with_increment): Properly
22455 take into account all fields that overlap the shifted vars.
22456 (do_sd_constraint): Likewise.
22457 (do_ds_constraint): Likewise.
22458 (get_constraint_for_ptr_offset): Likewise.
22460 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22462 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22463 (nios2_compute_frame_layout):
22464 Add calculation of cfun->machine->fp_save_offset.
22465 (nios2_expand_prologue): Correct setting of frame pointer register
22467 (nios2_expand_epilogue): Update recovery of stack pointer from
22468 frame pointer accordingly.
22469 (nios2_initial_elimination_offset): Update calculation of offset
22470 for eliminating to HARD_FRAME_POINTER_REGNUM.
22472 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22475 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22476 cgraph_get_create_node on VAR_DECLs.
22478 2014-03-10 Richard Biener <rguenther@suse.de>
22480 PR middle-end/60474
22481 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22483 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22485 * config/vms/vms.opt (vms_float_format): New variable.
22487 2014-03-08 Tobias Burnus <burnus@net-b.de>
22489 * doc/invoke.texi (-fcilkplus): Update implementation status.
22491 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22492 Richard Biener <rguenther@suse.de>
22494 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22495 consistently accross all TUs.
22496 (run_gcc): Enable -fshort-double automatically at link at link-time
22497 and disallow override.
22499 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22502 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22503 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22504 if they can't be used.
22506 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22508 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22509 for Solaris 11/x86 ld.
22510 * configure: Regenerate.
22512 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22514 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22515 (LIB_TLS_SPEC): Save as ld_tls_libs.
22516 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22517 (HAVE_AS_IX86_TLSLDM): New test.
22518 * configure, config.in: Regenerate.
22519 * config/i386/i386.c (legitimize_tls_address): Fall back to
22520 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22521 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22522 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22523 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22525 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22527 * common.opt (fira-loop-pressure): Mark as optimization.
22529 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22531 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22532 an OpenMP mappable type.
22534 2014-03-06 Matthias Klose <doko@ubuntu.com>
22536 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22537 MULTILIB_OSDIRNAMES is not defined.
22539 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22540 Meador Inge <meadori@codesourcery.com>
22543 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22544 (arm_legitimize_address): Call legitimize_tls_address for any
22545 arm_tls_referenced_p expression, handle constant addend. Call it
22546 before testing for !TARGET_ARM.
22547 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22549 2014-03-06 Richard Biener <rguenther@suse.de>
22551 PR middle-end/60445
22555 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22557 * tree-streamer.c (record_common_node): Assert we don't record
22558 nodes with type double.
22559 (preload_common_node): Skip type double, complex double and double
22560 pointer since it is now frontend dependent due to fshort-double option.
22562 2014-03-06 Richard Biener <rguenther@suse.de>
22564 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22565 or -fno-lto is specified and the linker has full plugin support.
22566 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22567 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22568 * lto-wrapper.c (merge_and_complain): Merge compile-time
22569 optimization levels.
22570 (run_gcc): And pass it through to the link options.
22572 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22576 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22578 * cselib.c (remove_useless_values): Skip to avoid quadratic
22579 behavior if the condition moved from...
22580 (cselib_process_insn): ... here holds.
22582 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22585 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22586 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22589 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22590 (TM_H): Add x86-tune.def.
22592 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22594 * config/aarch64/aarch64.c (generic_tunings):
22595 Use cortexa57_extra_costs.
22597 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22600 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22601 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22602 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22605 2014-03-04 Heiher <r@hev.cc>
22607 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22608 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22610 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22612 * config/i386/predicates.md (const2356_operand): Change to ...
22613 (const2367_operand): ... this.
22614 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22616 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22617 (*avx512pf_scatterpf<mode>sf): Ditto.
22618 (avx512pf_scatterpf<mode>df): Ditto.
22619 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22620 (*avx512pf_scatterpf<mode>df): Ditto.
22621 * config/i386/i386.c (ix86_expand_builtin): Update
22622 incorrect hint operand error message.
22624 2014-03-04 Richard Biener <rguenther@suse.de>
22626 * lto-section-in.c (lto_get_section_data): Fix const cast.
22628 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22630 * tree-streamer.c (record_common_node): Assert we don't record
22631 nodes with type double.
22632 (preload_common_node): Skip type double, complex double and double
22633 pointer since it is now frontend dependent due to fshort-double option.
22635 2014-03-04 Richard Biener <rguenther@suse.de>
22638 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22639 (lto_input_toplevel_asms): Likewise.
22640 * lto-section-in.c (lto_get_section_data): Instead do it here
22643 2014-03-04 Richard Biener <rguenther@suse.de>
22645 PR tree-optimization/60382
22646 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22647 dead PHIs a reduction.
22649 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22651 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22653 (_mm_prefetch): Move out of GCC target("sse") pragma.
22654 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22655 GCC target("prfchw") pragma.
22656 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22658 * config/i386/i386.c (ix86_option_override_internal): Enable
22659 -mprfchw with -mprefetchwt1.
22661 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22663 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22666 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22668 * opts.h (CL_PCH_IGNORE): Define.
22669 * targhooks.c (option_affects_pch_p):
22670 Return false for options that have CL_PCH_IGNORE set.
22671 * opt-functions.awk: Process PchIgnore.
22672 * doc/options.texi: Document PchIgnore.
22674 * config/arc/arc.opt (misize): Add PchIgnore property.
22676 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22678 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22679 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22680 constraint on constants to permit them being loaded into
22681 GENERAL_REGS or BASE_REGS.
22683 2014-03-03 Nick Clifton <nickc@redhat.com>
22685 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22686 anti-cacnonical alternatives.
22687 (negandhi3_real): New pattern.
22688 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22690 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22692 * config/avr/avr-mcus.def: Remove atxmega16x1.
22693 * config/avr/avr-tables.opt: Regenerate.
22694 * config/avr/t-multilib: Regenerate.
22695 * doc/avr-mmcu.texi: Regenerate.
22697 2014-03-03 Tobias Grosser <tobias@grosser.es>
22698 Mircea Namolaru <mircea.namolaru@inria.fr>
22700 PR tree-optimization/58028
22701 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22704 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22706 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22707 not handled by recognizers.
22709 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22711 PR middle-end/60175
22712 * function.c (expand_function_end): Don't emit
22713 clobber_return_register sequence if clobber_after is a BARRIER.
22714 * cfgexpand.c (construct_exit_block): Append instructions before
22715 return_label to prev_bb.
22717 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22719 * config/rs6000/constraints.md: Document reserved use of "wc".
22721 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22724 * ipa.c (function_and_variable_visibility): When dissolving comdat
22725 group, also set all symbols to local.
22727 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22732 2013-12-14 Jan Hubicka <jh@suse.cz>
22733 PR middle-end/58477
22734 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22736 2014-03-02 Jon Beniston <jon@beniston.com>
22742 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22743 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22744 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22745 (simple_return, *simple_return): New patterns
22746 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22747 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22749 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22751 * dwarf2out.c (gen_subprogram_die): Tidy.
22753 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22756 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22757 (*mov_t_msb_neg_negc): ... this new insn.
22759 2014-02-28 Jason Merrill <jason@redhat.com>
22762 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22765 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22768 * dwarf2out.c (decltype_auto_die): New static.
22769 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22770 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22771 (is_cxx_auto): Likewise.
22773 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22775 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22776 we are not using general regs only.
22778 2014-02-28 Richard Biener <rguenther@suse.de>
22781 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22782 previous fix and only allow to remove trivial pre-headers
22783 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22784 (remove_forwarder_block): Properly update the latch of a loop.
22786 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22789 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22790 (cselib_preserved_hash_table): New.
22791 (preserve_constants_and_equivs): Move preserved vals to it.
22792 (cselib_find_slot): Look it up first.
22793 (cselib_init): Initialize it.
22794 (cselib_finish): Release it.
22795 (dump_cselib_table): Dump it.
22797 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22800 * cselib.c (remove_useless_values): Skip to avoid quadratic
22801 behavior if the condition moved from...
22802 (cselib_process_insn): ... here holds.
22804 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22807 * var-tracking.c (vt_initialize): Apply the same condition to
22808 preserve the CFA base value.
22810 2014-02-28 Joey Ye <joey.ye@arm.com>
22813 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22814 if reload in progress or completed.
22816 2014-02-28 Tobias Burnus <burnus@net-b.de>
22818 PR middle-end/60147
22819 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22822 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22824 * doc/tm.texi.in (Condition Code Status): Update documention for
22825 relative locations of cc0-setter and cc0-user.
22827 2014-02-27 Jeff Law <law@redhat.com>
22829 PR rtl-optimization/52714
22830 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22831 into two independent simple sets, if I3 is a jump, ensure the
22832 pattern we place into I3 is a (set (pc) ...).
22834 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22835 Jeff Law <law@redhat.com>
22837 PR rtl-optimization/49847
22838 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22839 are in different blocks.
22840 * doc/tm.texi (Condition Code Status): Update documention for
22841 relative locations of cc0-setter and cc0-user.
22843 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22846 * lra.c (lra_emit_add): Check SUBREG too.
22848 2014-02-27 Andreas Schwab <schwab@suse.de>
22850 * config/m68k/m68k.c (m68k_option_override): Disable
22851 -flive-range-shrinkage for classic m68k.
22852 (m68k_override_options_after_change): Likewise.
22854 2014-02-27 Marek Polacek <polacek@redhat.com>
22856 PR middle-end/59223
22857 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22858 -Wmaybe-uninitialized.
22860 2014-02-27 Alan Modra <amodra@gmail.com>
22863 * reload1.c (emit_input_reload_insns): When reload_override_in,
22864 set old to rl->in_reg when rl->in_reg is a subreg.
22866 2014-02-26 Richard Biener <rguenther@suse.de>
22869 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22871 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22873 * common/config/i386/predicates.md (const1256_operand): Remove.
22874 (const2356_operand): New.
22875 (const_1_to_2_operand): Remove.
22876 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22877 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22878 (*avx512pf_gatherpf<mode>sf): Ditto.
22879 (avx512pf_gatherpf<mode>df): Ditto.
22880 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22881 (*avx512pf_gatherpf<mode>df): Ditto.
22882 (avx512pf_scatterpf<mode>sf): Ditto.
22883 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22884 (*avx512pf_scatterpf<mode>sf): Ditto.
22885 (avx512pf_scatterpf<mode>df): Ditto.
22886 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22887 (*avx512pf_scatterpf<mode>df): Ditto.
22888 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22890 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22892 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22893 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22894 (_mm512_mask_testn_epi64_mask): Move to ...
22895 * config/i386/avx512cdintrin.h: Here.
22896 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22897 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22898 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22899 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22900 TARGET_AVX512F from TARGET_AVX512CD.
22902 2014-02-26 Richard Biener <rguenther@suse.de>
22905 * ipa.c (walk_polymorphic_call_targets): Properly guard
22906 call to inline_update_overall_summary.
22908 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22911 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22912 and latches only if requested. Fix latch if it is removed.
22913 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22914 LOOPS_HAVE_PREHEADERS.
22916 2014-02-25 Andrew Pinski <apinski@cavium.com>
22918 * builtins.c (expand_builtin_thread_pointer): Create a new target
22919 when the target is NULL.
22921 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22923 PR rtl-optimization/60317
22924 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22925 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22926 * lra-assigns.c: Include params.h.
22927 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22928 other reload pseudos considerations.
22930 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22932 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22933 to use canonical form for nor<mode>3.
22935 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22938 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22941 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22943 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22944 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22945 (ix86_handle_option): Handle OPT_mprefetchwt1.
22946 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22947 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22949 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22950 OPTION_MASK_ISA_PREFETCHWT1.
22951 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22952 (PTA_PREFETCHWT1): New.
22953 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22954 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22955 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22956 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22957 (*prefetch_avx512pf_<mode>_: Change into ...
22958 (*prefetch_prefetchwt1_<mode>: This.
22959 * config/i386/i386.opt (mprefetchwt1): New.
22960 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22961 (_mm_prefetch): Handle intent to write.
22962 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22964 2014-02-25 Richard Biener <rguenther@suse.de>
22966 PR middle-end/60291
22967 * emit-rtl.c (mem_attrs_htab): Remove.
22968 (mem_attrs_htab_hash): Likewise.
22969 (mem_attrs_htab_eq): Likewise.
22970 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22971 (init_emit_once): Do not allocate mem_attrs_htab.
22973 2014-02-25 Richard Biener <rguenther@suse.de>
22976 * lto-opts.c (lto_write_options): Output non-explicit conservative
22977 -fwrapv, -fno-trapv and -fno-strict-overflow.
22978 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22979 (run_gcc): And pass them through.
22981 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22983 * sel-sched.c (calculate_new_fences): New parameter ptime.
22984 Calculate it as a maximum over all fence cycles.
22985 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22986 Print the final schedule timing when sched_verbose.
22988 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22990 PR rtl-optimization/60292
22991 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22992 bit fot the fence instruction.
22994 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22996 * calls.h: Fix typo in comment.
22998 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23000 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23001 adjusting offsetable addresses.
23003 2014-02-24 Guozhi Wei <carrot@google.com>
23005 * sparseset.h (sparseset_pop): Fix the wrong index.
23007 2014-02-24 Walter Lee <walt@tilera.com>
23009 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23010 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23012 * common/config/tilegx/tilegx-common.c
23013 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23014 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23015 (LINK_SPEC): Ditto.
23016 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23017 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23018 (tilegx_gimplify_va_arg_expr): Handle big endian.
23019 (tilegx_expand_unaligned_load): Ditto.
23020 (tilegx_expand_unaligned_store): Ditto.
23021 (TARGET_RETURN_IN_MSB): New.
23022 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23023 (TARGET_ENDIAN_DEFAULT): New.
23024 (TARGET_BIG_ENDIAN): Handle big endian.
23025 (BYTES_BIG_ENDIAN): Ditto.
23026 (WORDS_BIG_ENDIAN): Ditto.
23027 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23028 (ENDIAN_SPEC): New.
23029 (EXTRA_SPECS): New.
23030 * config/tilegx/tilegx.md (extv): Handle big endian.
23032 (insn_st<n>): Ditto.
23033 (insn_st<n>_add<bitsuffix>): Ditto.
23034 (insn_stnt<n>): Ditto.
23035 (insn_stnt<n>_add<bitsuffix>):Ditto.
23036 (vec_interleave_highv8qi): Handle big endian.
23037 (vec_interleave_highv8qi_be): New.
23038 (vec_interleave_highv8qi_le): New.
23039 (insn_v1int_h): Handle big endian.
23040 (vec_interleave_lowv8qi): Handle big endian.
23041 (vec_interleave_lowv8qi_be): New.
23042 (vec_interleave_lowv8qi_le): New.
23043 (insn_v1int_l): Handle big endian.
23044 (vec_interleave_highv4hi): Handle big endian.
23045 (vec_interleave_highv4hi_be): New.
23046 (vec_interleave_highv4hi_le): New.
23047 (insn_v2int_h): Handle big endian.
23048 (vec_interleave_lowv4hi): Handle big endian.
23049 (vec_interleave_lowv4hi_be): New.
23050 (vec_interleave_lowv4hi_le): New.
23051 (insn_v2int_l): Handle big endian.
23052 (vec_interleave_highv2si): Handle big endian.
23053 (vec_interleave_highv2si_be): New.
23054 (vec_interleave_highv2si_le): New.
23055 (insn_v4int_h): Handle big endian.
23056 (vec_interleave_lowv2si): Handle big endian.
23057 (vec_interleave_lowv2si_be): New.
23058 (vec_interleave_lowv2si_le): New.
23059 (insn_v4int_l): Handle big endian.
23060 * config/tilegx/tilegx.opt (mbig-endian): New option.
23061 (mlittle-endian): New option.
23062 * doc/install.texi: Document tilegxbe-linux.
23063 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23065 2014-02-24 Martin Jambor <mjambor@suse.cz>
23068 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23069 there are no parameter descriptors.
23071 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23073 PR rtl-optimization/60268
23074 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23075 initialization to ...
23076 (sched_rgn_init): ... here.
23077 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23079 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23081 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23084 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23086 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23089 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23091 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23092 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23094 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23096 * config/microblaze/predicates.md: Add cmp_op predicate.
23097 * config/microblaze/microblaze.md: Add branch_compare instruction
23098 which uses cmp_op predicate and emits cmp insn before branch.
23099 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23100 to microblaze_expand_conditional_branch and consolidate logic.
23101 (microblaze_expand_conditional_branch): emit branch_compare
23102 insn instead of handling cmp op separate from branch insn.
23104 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23106 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23109 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23111 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23112 define_insn with define_expand and new define_insn
23113 *altivec_lve<VI_char>x_internal.
23114 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23115 and new define_insn *altivec_stve<VI_char>x_internal.
23116 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23118 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23120 (altivec_expand_stvex_be): New function.
23122 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23124 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23125 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23126 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23127 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23129 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23132 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23133 instead of emit_move_insn.
23135 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23137 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23138 vspltw with vsldoi.
23139 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23140 gen_altivec_vsumsws.
23142 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23144 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23145 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23146 (altivec_lvxl_<mode>): New define_expand incorporating
23147 -maltivec=be semantics where needed.
23148 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23149 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23150 semantics where needed.
23151 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23152 (altivec_stvx_<mode>): New define_expand incorporating
23153 -maltivec=be semantics where needed.
23154 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23155 VM2 iterator instead of V4SI.
23156 (altivec_stvxl_<mode>): New define_expand incorporating
23157 -maltivec=be semantics where needed.
23158 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23159 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23160 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23161 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23162 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23163 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23164 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23165 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23166 ALTIVEC_BUILTIN_STVXL.
23167 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23168 (altivec_expand_stvx_be): Likewise.
23169 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23170 (altivec_expand_lvx_be): Likewise.
23171 (altivec_expand_stvx_be): Likewise.
23172 (altivec_expand_builtin): Add cases for
23173 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23174 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23175 (altivec_init_builtins): Add definitions for
23176 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23177 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23179 2014-02-21 Catherine Moore <clm@codesourcery.com>
23181 * doc/invoke.texi (mvirt, mno-virt): Document.
23182 * config/mips/mips.opt (mvirt): New option.
23183 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23185 2014-02-21 Richard Biener <rguenther@suse.de>
23187 PR tree-optimization/60276
23188 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23189 (STMT_VINFO_MIN_NEG_DIST): New macro.
23190 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23191 STMT_VINFO_MIN_NEG_DIST.
23192 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23193 made for negative dependence distances still hold.
23195 2014-02-21 Richard Biener <rguenther@suse.de>
23197 PR middle-end/60291
23198 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23199 DECL_INITIAL for globals not in the current function context.
23201 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23203 PR tree-optimization/56490
23204 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23205 * tree-ssa-uninit.c: Include params.h.
23206 (compute_control_dep_chain): Add num_calls argument, return false
23207 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23208 num_calls to recursive call.
23209 (find_predicates): Change dep_chain into normal array,
23210 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23211 variable and adjust compute_control_dep_chain caller.
23212 (find_def_preds): Likewise.
23214 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23216 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23217 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23219 2014-02-21 Nick Clifton <nickc@redhat.com>
23221 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23222 (pushhi1): Likewise.
23223 (popqi1): Add mode to pre_dec.
23224 (pophi1): Likewise.
23226 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23228 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23229 mode for mask of V8SFmode permutation.
23231 2014-02-20 Richard Henderson <rth@redhat.com>
23234 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23235 a new pseudo for OLDVAL.
23237 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23240 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23241 gen_reg_rtx if d->testing_p.
23242 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23243 if d->testing_p and we will certainly return true.
23244 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23247 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23249 * emit-rtl.c (gen_reg_rtx): Assert that
23250 crtl->emit.regno_pointer_align_length is non-zero.
23252 2014-02-20 Richard Henderson <rth@redhat.com>
23255 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23256 on failure the store back into EXPECT.
23258 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23259 Sandra Loosemore <sandra@codesourcery.com>
23261 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23262 * config/nios2/nios2.c (nios2_function_profiler): Add
23263 -fPIC (flag_pic == 2) support.
23264 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23265 (nios2_large_offset_p): New function.
23266 (nios2_unspec_reloc_p): Move up position, update to use
23267 nios2_large_offset_p.
23268 (nios2_unspec_address): Remove function.
23269 (nios2_unspec_offset): New function.
23270 (nios2_large_got_address): New function.
23271 (nios2_got_address): Add large offset support.
23272 (nios2_legitimize_tls_address): Update usage of removed and new
23274 (nios2_symbol_binds_local_p): New function.
23275 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23276 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23277 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23278 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23279 processing for (const (unspec ...)).
23280 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23282 2014-02-20 Richard Biener <rguenther@suse.de>
23284 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23285 doing the substitution.
23286 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23288 2014-02-20 Martin Jambor <mjambor@suse.cz>
23291 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23292 info when checking whether lattices are bottom.
23294 2014-02-20 Richard Biener <rguenther@suse.de>
23296 PR middle-end/60221
23297 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23300 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23303 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23304 parameter specifying the scaling.
23305 (inline_call): Update.
23306 (want_inline_recursively): Guard division by zero.
23307 (recursive_inlining): Update.
23308 * ipa-inline.h (clone_inlined_nodes): Update.
23310 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23313 * config/i386/i386.c (classify_argument): Pass structures of size
23314 64 bytes or less in register.
23316 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23317 Kirill Yukhin <kirill.yukhin@intel.com>
23319 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23320 (_mm_rcp28_round_ss): Ditto.
23321 (_mm_rsqrt28_round_sd): Ditto.
23322 (_mm_rsqrt28_round_ss): Ditto.
23323 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23324 (_mm_rcp14_round_ss): Ditto.
23325 (_mm_rsqrt14_round_sd): Ditto.
23326 (_mm_rsqrt14_round_ss): Ditto.
23327 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23328 the first input operand, get rid of match_dup.
23329 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23331 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23333 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23334 operand as the first input operand, set type attribute.
23335 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23336 Set type attribute.
23337 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23338 operand as the first input operand, set type attribute.
23340 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23342 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23345 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23348 * config/i386/i386.c (construct_container): Remove TFmode check
23349 for X86_64_INTEGER_CLASS.
23351 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23354 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23355 only when -Wpsabi is enabled.
23357 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23360 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23361 passing arrays in registers are the same as for structs, so remove the
23362 special case for them.
23364 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23366 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23367 destination type, extract only the valid bits if the source type is not
23368 integral and has a different mode.
23370 2014-02-19 Richard Biener <rguenther@suse.de>
23373 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23376 2014-02-19 Richard Biener <rguenther@suse.de>
23379 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23380 (ipa_modify_call_arguments): Emit an argument load explicitely and
23381 preserve virtual SSA form there and for the replacement call.
23382 Do not update SSA form nor free dominance info.
23384 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23386 * ipa.c (function_and_variable_visibility): Also clear WEAK
23387 flag when disolving COMDAT_GROUP.
23389 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23391 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23392 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23393 not devirtualizing.
23394 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23395 do more sanity checks.
23396 (detect_type_change): Return true when giving up early.
23397 (compute_complex_assign_jump_func): Fix type parameter of
23398 ipa_set_ancestor_jf.
23399 (compute_complex_ancestor_jump_func): Likewise.
23400 (update_jump_functions_after_inlining): Fix updating of
23402 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23404 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23406 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23407 inline clones when edge disappears.
23409 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23412 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23413 Split 64-bit moves into 2 patterns. Do not allow the use of
23414 direct move for TDmode in little endian, since the decimal value
23415 has little endian bytes within a word, but the 64-bit pieces are
23416 ordered in a big endian fashion, and normal subreg's of TDmode are
23418 (mov<mode>_64bit_dm): Likewise.
23419 (movtd_64bit_nodm): Likewise.
23421 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23423 PR tree-optimization/60174
23424 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23425 statement of an SSA_NAME that occurs in an abnormal PHI node.
23427 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23430 * final.c (SEEN_BB): Remove.
23431 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23432 (final_scan_insn): Don't force_source_line on second
23433 NOTE_INSN_BASIC_BLOCK.
23435 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23438 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23439 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23440 (type_natural_mode): Warn ABI change when %zmm register is not
23441 available for AVX512F vector value passing.
23443 2014-02-18 Kai Tietz <ktietz@redhat.com>
23446 * config/i386/i386.c (ix86_expand_prologue): Use value in
23447 rax register as displacement when restoring %r10 or %rax.
23448 Fix wrong offset when restoring both registers.
23450 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23452 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23453 assertion with conditional return.
23455 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23456 Uros Bizjak <ubizjak@gmail.com>
23459 * config/i386/driver-i386.c (host_detect_local_cpu): If
23460 YMM state is not saved by the OS, also clear has_f16c. Move
23461 CPUID 0x80000001 handling before YMM state saving checking.
23463 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23465 PR rtl-optimization/58960
23466 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23467 factored out from ...
23468 (sched_init): ... here.
23469 (free_global_sched_pressure_data): New, factored out from ...
23470 (sched_finish): ... here.
23471 * sched-int.h (free_global_sched_pressure_data): Declare.
23472 * sched-rgn.c (nr_regions_initial): New static global.
23473 (haifa_find_rgns): Initialize it.
23474 (schedule_region): Disable sched-pressure for the newly
23477 2014-02-17 Richard Biener <rguenther@suse.de>
23479 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23480 release SSA defs of pattern stmts.
23482 2014-02-17 Richard Biener <rguenther@suse.de>
23484 * tree-inline.c (expand_call_inline): Release the virtual
23485 operand defined by the call we are about to inline.
23487 2014-02-17 Richard Biener <rguenther@suse.de>
23489 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23491 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23492 Ilya Tocar <ilya.tocar@intel.com>
23494 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23495 arguments order in builtin.
23496 (_mm512_permutexvar_epi64): Ditto.
23497 (_mm512_mask_permutexvar_epi64): Ditto
23498 (_mm512_maskz_permutexvar_epi32): Ditto
23499 (_mm512_permutexvar_epi32): Ditto
23500 (_mm512_mask_permutexvar_epi32): Ditto
23502 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23504 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23505 (p8_vmrgow): Likewise.
23507 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23509 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23512 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23515 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23516 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23517 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23518 using direct move instructions on ISA 2.07. Also adjust
23519 instruction length for 64-bit.
23520 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23521 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23523 2014-02-15 Alan Modra <amodra@gmail.com>
23527 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23528 find_replacement on parts of insn rtl that might be reloaded.
23530 2014-02-15 Richard Biener <rguenther@suse.de>
23532 PR tree-optimization/60183
23533 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23534 (tree_ssa_phiprop): Calculate and free post-dominators.
23536 2014-02-14 Jeff Law <law@redhat.com>
23538 PR rtl-optimization/60131
23539 * ree.c (get_extended_src_reg): New function.
23540 (combine_reaching_defs): Use it rather than assuming location of REG.
23541 (find_and_remove_re): Verify first operand of extension is
23542 a REG before adding the insns to the copy list.
23544 2014-02-14 Roland McGrath <mcgrathr@google.com>
23546 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23547 * configure: Regenerated.
23548 * config.in: Regenerated.
23549 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23550 instead of ASM_SHORT.
23552 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23553 Richard Earnshaw <rearnsha@arm.com>
23555 PR rtl-optimization/59535
23556 * lra-constraints.c (process_alt_operands): Encourage alternative
23557 when unassigned pseudo class is superset of the alternative class.
23558 (inherit_reload_reg): Don't inherit when optimizing for code size.
23559 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23560 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23561 modes not less than 4 for Thumb1.
23563 2014-02-14 Kyle McMartin <kyle@redhat.com>
23566 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23568 2014-02-14 Richard Biener <rguenther@suse.de>
23570 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23571 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23572 Do not strip INDIRECT_REFs.
23574 2014-02-14 Richard Biener <rguenther@suse.de>
23577 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23578 DECL_FUNCTION_SPECIFIC_TARGET.
23579 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23580 * tree-streamer-out.c (pack_ts_target_option): Remove.
23581 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23582 (write_ts_function_decl_tree_pointers): Do not stream
23583 DECL_FUNCTION_SPECIFIC_TARGET.
23584 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23585 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23586 (lto_input_ts_function_decl_tree_pointers): Do not stream
23587 DECL_FUNCTION_SPECIFIC_TARGET.
23589 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23591 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23592 (get_initial_def_for_induction, vectorizable_induction): Ignore
23593 debug stmts when looking for exit_phi.
23594 (vectorizable_live_operation): Fix up condition.
23596 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23598 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23599 nreverse() because it changes the content of original tree list.
23601 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23603 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23604 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23606 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23608 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23609 GNU coding standards.
23611 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23614 * dwarf2out.c (gen_subprogram_die): Don't call
23615 add_calling_convention_attribute if subr_die is old_die.
23617 2014-02-13 Sharad Singhai <singhai@google.com>
23619 * doc/optinfo.texi: Fix order of nodes.
23621 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23623 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23624 operands[2], not operands[3].
23626 2014-02-13 Richard Biener <rguenther@suse.de>
23629 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23630 mention the possibility of an in-tree build.
23631 (CLooG): Update recommended version to 0.18.1, mention the
23632 possibility of an in-tree build and clarify that the ISL
23633 bundled with CLooG does not work.
23635 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23638 * expr.c (compress_float_constant): If x is a hard register,
23639 extend into a pseudo and then move to x.
23641 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23643 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23644 caused by bad second argument to warning_at() with -mhotpatch and
23645 nested functions (e.g. with gfortran).
23647 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23649 * opts.c (option_name): Remove "enabled by default" rider.
23651 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23653 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23655 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23656 Uros Bizjak <ubizjak@gmail.com>
23659 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23660 * configure: Regenerated.
23662 2014-02-12 Richard Biener <rguenther@suse.de>
23664 * vec.c (vec_prefix::calculate_allocation): Move as
23665 inline variant to vec.h.
23666 (vec_prefix::calculate_allocation_1): New out-of-line version.
23667 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23668 (vec_prefix::m_has_auto_buf): Rename to ...
23669 (vec_prefix::m_using_auto_storage): ... this.
23670 (vec_prefix::calculate_allocation): Inline the easy cases
23671 and dispatch to calculate_allocation_1 which doesn't need the
23673 (va_heap::reserve): Use gcc_checking_assert.
23674 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23675 m_using_auto_storage.
23676 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23678 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23679 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23680 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23682 2014-02-12 Richard Biener <rguenther@suse.de>
23684 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23685 when we found a dependence.
23687 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23689 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23691 (maybe_fold_stmt): ... into this new function.
23692 * omp-low.c (lower_omp): Update comment.
23694 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23697 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23700 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23702 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23703 identifiers in comments.
23704 (cortexa53_extra_costs): Likewise.
23705 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23706 (cortexa7_extra_costs): Likewise.
23707 (cortexa12_extra_costs): Likewise.
23708 (cortexa15_extra_costs): Likewise.
23709 (v7m_extra_costs): Likewise.
23711 2014-02-12 Richard Biener <rguenther@suse.de>
23713 PR middle-end/60092
23714 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23715 of posix_memalign being successful.
23716 (lower_stmt): Restrict lowering of posix_memalign to when
23717 -ftree-bit-ccp is enabled.
23719 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23721 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23723 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23725 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23727 PR rtl-optimization/60116
23728 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23729 other_insn once the combination has been validated.
23731 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23734 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23736 * ipa-devirt.c: Include demangle.h
23737 (odr_violation_reported): New static variable.
23738 (add_type_duplicate): Update odr_violations.
23739 (maybe_record_node): Add completep parameter; update it.
23740 (record_target_from_binfo): Add COMPLETEP parameter;
23741 update it as needed.
23742 (possible_polymorphic_call_targets_1): Likewise.
23743 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23744 rename FINAL to COMPLETE.
23745 (record_targets_from_bases): Sanity check we found the binfo;
23746 fix COMPLETEP updating.
23747 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23748 parameter, fix computing of COMPLETEP.
23749 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23750 at LTO time do demangling.
23751 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23752 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23754 (gimple_get_virt_method_for_binfo): Likewise.
23755 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23756 gimple_get_virt_method_for_vtable): Update prototypes.
23758 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23761 * genautomata.c (add_presence_absence): Fix typo with
23762 {final_}presence_list.
23764 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23767 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23768 for VSX/Altivec vectors that land in GPR registers.
23770 2014-02-11 Richard Henderson <rth@redhat.com>
23771 Jakub Jelinek <jakub@redhat.com>
23774 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23775 around drhs if type conversion to lacc->type is not useless.
23777 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23779 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23781 (cortex-a57.cortex-a53): Likewise.
23782 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23784 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23786 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23789 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23791 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23792 add_options_for_arm_vfp3.
23794 2014-02-11 Jeff Law <law@redhat.com>
23796 PR middle-end/54041
23797 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23798 object with an undesirable mode.
23800 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23803 * config/i386/sol2-9.h: New file.
23804 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23805 *-*-solaris2.9*): Use it.
23807 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23809 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23810 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23812 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23814 * config/microblaze/microblaze.c: Extend mcpu version format
23816 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23818 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23820 2014-02-10 Richard Henderson <rth@redhat.com>
23823 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23824 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23825 ms-abi vs -mno-accumulate-outgoing-args.
23826 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23827 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23830 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23832 PR middle-end/60080
23833 * cfgexpand.c (expand_asm_operands): Attach source location to
23834 ASM_INPUT rtx objects.
23835 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23837 2014-02-10 Nick Clifton <nickc@redhat.com>
23839 * config/mn10300/mn10300.c (popcount): New function.
23840 (mn10300_expand_prologue): Include saved registers in stack usage
23843 2014-02-10 Jeff Law <law@redhat.com>
23845 PR middle-end/52306
23846 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23847 when changing the SET_DEST of a prior insn to avoid an input reload.
23849 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23851 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23852 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23853 -mcall-openbsd, or -mcall-linux.
23854 (CC1_ENDIAN_BIG_SPEC): Remove.
23855 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23856 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23857 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23858 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23859 and %cc1_endian_default.
23860 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23862 2014-02-10 Richard Biener <rguenther@suse.de>
23864 PR tree-optimization/60115
23865 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23866 MEM_REF handling. Properly verify that the accesses are not
23867 out of the objects bound.
23869 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23871 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23874 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23876 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23877 proper constants and fix formatting.
23878 (possible_polymorphic_call_targets): Fix formatting.
23880 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23881 Ilya Tocar <ilya.tocar@intel.com>
23883 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23884 (_mm512_loadu_epi32): Renamed into...
23885 (_mm512_loadu_si512): This.
23886 (_mm512_storeu_epi32): Renamed into...
23887 (_mm512_storeu_si512): This.
23888 (_mm512_maskz_ceil_ps): Removed.
23889 (_mm512_maskz_ceil_pd): Ditto.
23890 (_mm512_maskz_floor_ps): Ditto.
23891 (_mm512_maskz_floor_pd): Ditto.
23892 (_mm512_floor_round_ps): Ditto.
23893 (_mm512_floor_round_pd): Ditto.
23894 (_mm512_ceil_round_ps): Ditto.
23895 (_mm512_ceil_round_pd): Ditto.
23896 (_mm512_mask_floor_round_ps): Ditto.
23897 (_mm512_mask_floor_round_pd): Ditto.
23898 (_mm512_mask_ceil_round_ps): Ditto.
23899 (_mm512_mask_ceil_round_pd): Ditto.
23900 (_mm512_maskz_floor_round_ps): Ditto.
23901 (_mm512_maskz_floor_round_pd): Ditto.
23902 (_mm512_maskz_ceil_round_ps): Ditto.
23903 (_mm512_maskz_ceil_round_pd): Ditto.
23904 (_mm512_expand_pd): Ditto.
23905 (_mm512_expand_ps): Ditto.
23906 * config/i386/i386.c (ix86_builtins): Remove
23907 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23908 (bdesc_args): Ditto.
23909 * config/i386/predicates.md (const1256_operand): New.
23910 (const_1_to_2_operand): Ditto.
23911 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23912 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23913 (*avx512pf_gatherpf<mode>sf): Ditto.
23914 (avx512pf_gatherpf<mode>df): Ditto.
23915 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23916 (*avx512pf_gatherpf<mode>df): Ditto.
23917 (avx512pf_scatterpf<mode>sf): Ditto.
23918 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23919 (*avx512pf_scatterpf<mode>sf): Ditto.
23920 (avx512pf_scatterpf<mode>df): Ditto.
23921 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23922 (*avx512pf_scatterpf<mode>df): Ditto.
23923 (avx512f_expand<mode>): Removed.
23924 (<shift_insn><mode>3<mask_name>): Change predicate type.
23926 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23928 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23929 not at the end of datarefs vector use ordered_remove to avoid
23930 reordering datarefs vector.
23933 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23934 mark local addressable non-static vars as GOVD_PRIVATE
23935 instead of GOVD_LOCAL.
23936 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23937 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23940 PR middle-end/60092
23941 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23942 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23943 assume_aligned or alloc_align attributes.
23944 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23945 arguments. Handle also assume_aligned and alloc_align attributes.
23946 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23947 calls to functions with assume_aligned or alloc_align attributes.
23948 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23950 2014-02-08 Terry Guo <terry.guo@arm.com>
23952 * doc/invoke.texi: Document ARM -march=armv7e-m.
23954 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23956 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23957 flag on __cilkrts_rethrow builtin.
23960 * ipa-cp.c (determine_versionability): Fail at -O0
23961 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23962 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23965 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23968 * tree-inline.c (copy_forbidden): Fail for
23969 __attribute__((optimize (0))) functions.
23971 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23973 * varpool.c: Include pointer-set.h.
23974 (varpool_remove_unreferenced_decls): Variables in other partitions
23975 will not be output; be however careful to not lose information
23976 about partitioning.
23978 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23980 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23981 lookup in the vtable constructor.
23983 2014-02-07 Jeff Law <law@redhat.com>
23986 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23987 define_insn_and_split.
23989 * ipa-inline.c (inline_small_functions): Fix typos.
23991 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23993 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23994 (s390_can_use_return_insn): Declare.
23995 * config/s390/s390.h (EPILOGUE_USES): Define.
23996 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23998 (s390_chunkify_start): Handle return JUMP_LABELs.
23999 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24000 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24001 (s390_can_use_return_insn): New functions.
24002 (s390_fix_long_loop_prediction): Handle conditional returns.
24003 (TARGET_SET_UP_BY_PROLOGUE): Define.
24004 * config/s390/s390.md (ANY_RETURN): New code iterator.
24005 (*creturn, *csimple_return, return, simple_return): New patterns.
24007 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24009 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24010 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24011 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24012 REG_CFA_RESTORE list when deciding not to restore a register.
24014 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24016 * config/s390/s390.c: Include tree-pass.h and context.h.
24017 (s390_early_mach): New function, split out from...
24018 (s390_emit_prologue): ...here.
24019 (pass_data_s390_early_mach): New pass structure.
24020 (pass_s390_early_mach): New class.
24021 (s390_option_override): Create and register early_mach pass.
24022 Move to end of file.
24024 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24026 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24027 to match for the exit block.
24029 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24031 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24032 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24033 Reject misaligned operands.
24035 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24037 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24039 2014-02-07 Richard Biener <rguenther@suse.de>
24041 PR middle-end/60092
24042 * gimple-low.c (lower_builtin_posix_memalign): New function.
24043 (lower_stmt): Call it to lower posix_memalign in a way
24044 to make alignment info accessible.
24046 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24049 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24050 __builtin_setjmp_receiver.
24052 2014-02-07 Richard Biener <rguenther@suse.de>
24054 PR middle-end/60092
24055 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24056 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24057 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24058 Handle BUILT_IN_POSIX_MEMALIGN.
24059 (find_func_clobbers): Likewise.
24060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24061 (call_may_clobber_ref_p_1): Likewise.
24063 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24066 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24069 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24072 * lto-cgraph.c (lto_output_node): Use
24073 symtab_get_symbol_partitioning_class.
24074 (lto_output_varpool_node): likewise.
24075 (symtab_get_symbol_partitioning_class): Move here from
24076 lto/lto-partition.c
24077 * cgraph.h (symbol_partitioning_class): Likewise.
24078 (symtab_get_symbol_partitioning_class): Declare.
24080 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24082 * ggc.h (ggc_internal_cleared_alloc): New macro.
24083 * vec.h (vec_safe_copy): Handle memory stats.
24084 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24085 * target-globals.c (save_target_globals): Likewise.
24087 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24090 * expr.c (emit_move_resolve_push): Export; be bit more selective
24091 on when to clear alias set.
24092 * expr.h (emit_move_resolve_push): Declare.
24093 * function.h (struct function): Add tail_call_marked.
24094 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24095 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24096 * config/i386/i386.md (TImode move expander): De not call
24098 (FP push expanders): Preserve memory attributes.
24099 * config/i386/sse.md (push<mode>1): Remove.
24100 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24101 (ix86_expand_push): Remove.
24102 * config/i386/mmx.md (push<mode>1): Remove.
24104 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24106 PR rtl-optimization/60030
24107 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24108 lopart with paradoxical subreg before shifting it up by hprec.
24110 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24112 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24113 Remove extra newline at end of file.
24114 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24115 (arm_issue_rate): Handle cortexa57.
24116 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24117 (cortex-a57.cortex-a53): Likewise.
24119 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24122 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24123 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24125 (arm_expand_prologue): Adjust all callers.
24126 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24127 info, registers also at the lowest numbered registers side. Use
24128 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24132 * var-tracking.c (adjust_mems): Before adding a SET to
24133 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24135 2014-02-06 Alan Modra <amodra@gmail.com>
24138 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24139 change SDmode to DDmode when lra_in_progress.
24141 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24143 PR middle-end/59150
24144 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24145 free_data_ref on the dr first, and before goto again also set dr
24146 to the next dr. For simd_lane_access, free old datarefs[i] before
24147 overwriting it. For get_vectype_for_scalar_type failure, don't
24148 free_data_ref if simd_lane_access.
24150 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24153 * tree.h (opts_for_fn): New inline function.
24154 (opt_for_fn): Define.
24155 * config/i386/i386.c (ix86_function_regparm): Use
24156 opt_for_fn (decl, optimize) instead of optimize.
24158 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24160 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24161 for SYMBOL_REF in large memory model.
24163 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24165 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24166 and crypto support.
24167 (cortex-a57): Likewise.
24168 (cortex-a57.cortex-a53): Likewise.
24170 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24171 Kugan Vivekanandarajah <kuganv@linaro.org>
24173 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24175 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24177 2014-02-06 Richard Biener <rguenther@suse.de>
24179 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24180 set_loop_copy and initialize_original_copy_tables.
24182 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24184 * config/aarch64/aarch64-simd.md
24185 (aarch64_ashr_simddi): Change QI to SI.
24187 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24188 Jakub Jelinek <jakub@redhat.com>
24190 PR middle-end/60013
24191 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24194 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24196 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24197 CODE_FOR_altivec_vpku[hw]um to
24198 CODE_FOR_altivec_vpku[hw]um_direct.
24199 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24200 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24201 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24202 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24204 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24206 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24207 generation for -maltivec=be.
24208 (altivec_vsumsws): Simplify redundant test.
24210 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24212 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24213 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24214 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24215 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24216 gen_altivec_vpkuwum.
24217 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24219 (altivec_vpks<VI_char>ss): Likewise.
24220 (altivec_vpks<VI_char>us): Likewise.
24221 (altivec_vpku<VI_char>us): Likewise.
24222 (altivec_vpku<VI_char>um): Likewise.
24223 (altivec_vpku<VI_char>um_direct): New (copy of
24224 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24226 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24227 target is little endian and -maltivec=be is not specified.
24228 (*altivec_vupkhs<VU_char>_direct): New (copy of
24229 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24230 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24231 target is little endian and -maltivec=be is not specified.
24232 (*altivec_vupkls<VU_char>_direct): New (copy of
24233 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24234 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24235 little endian and -maltivec=be is not specified.
24236 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24237 little endian and -maltivec=be is not specified.
24239 2014-02-05 Richard Henderson <rth@redhat.com>
24242 * combine-stack-adj.c: Revert r206943.
24243 * sched-int.h (struct deps_desc): Add last_args_size.
24244 * sched-deps.c (init_deps): Initialize it.
24245 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24246 contain REG_ARGS_SIZE notes.
24248 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24250 * lto-cgraph.c (asm_nodes_output): Make global.
24251 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24252 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24253 (driver_handle_option): Handle OPT_fwpa.
24255 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24258 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24259 a comment typo and formatting issue. If odr_hash hasn't been
24260 created, return vNULL and set *completep to false.
24262 PR middle-end/57499
24263 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24264 bb with no successors.
24266 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24269 * doc/invoke.texi (-march): Clarify documentation for ARM.
24270 (-mtune): Likewise.
24273 2014-02-05 Richard Biener <rguenther@suse.de>
24275 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24276 when not vectorizing because of too many alias checks.
24277 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24278 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24280 2014-02-05 Nick Clifton <nickc@redhat.com>
24282 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24283 accept extended registers in any mode when compiling for the MN10300.
24285 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24287 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24288 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24289 sanitization attributes.
24290 (can_inline_edge_p): Likewise.
24291 (sanitize_attrs_match_for_inline_p): New function.
24293 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24295 * ipa-prop.c (detect_type_change): Shor circuit testing of
24296 type changes on THIS pointer.
24298 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24301 * config/pa/pa.c (legitimize_tls_address): Return original address
24302 if not passed a SYMBOL_REF rtx.
24303 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24305 (pa_emit_move_sequence): Simplify TLS source operands.
24306 (pa_legitimate_constant_p): Reject all TLS constants.
24307 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24308 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24310 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24312 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24313 groups when we know they are controlled by LTO.
24314 * varasm.c (default_binds_local_p_1): If object is in other partition,
24315 it will be resolved locally.
24317 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24319 * config/host-linux.c (linux_gt_pch_use_address): Don't
24320 use SSIZE_MAX because it is not always defined.
24322 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24325 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24326 threshold for pseudo splitting.
24327 (update_ebb_live_info): Process call argument hard registers and
24328 hard registers from insn definition too.
24329 (max_small_class_regs_num): New constant.
24330 (inherit_in_ebb): Update live hard regs through EBBs. Update
24331 reloads_num only for small register classes. Don't split for
24334 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24337 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24340 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24342 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24343 visibility is safe.
24345 2014-02-04 Marek Polacek <polacek@redhat.com>
24347 * gdbinit.in (pel): Define.
24349 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24351 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24354 2014-02-04 Richard Biener <rguenther@suse.de>
24357 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24358 in function context local.
24359 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24360 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24361 similar to LTO_imported_decl_ref.
24363 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24365 PR tree-optimization/60002
24366 * cgraphclones.c (build_function_decl_skip_args): Clear
24367 DECL_LANG_SPECIFIC.
24369 PR tree-optimization/60023
24370 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24371 false to gsi_replace.
24372 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24373 has been in some EH region and vec_stmt could throw, add
24374 vec_stmt into the same EH region.
24375 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24376 has no lhs, ignore it.
24377 * internal-fn.c (expand_MASK_LOAD): Likewise.
24380 * tree-inline.c (copy_forbidden): Fail for
24381 __attribute__((optimize (0))) functions.
24384 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24385 is set, copy one less argument.
24386 (expand_simd_clones): Don't subtract clone_info->inbranch
24387 from simd_clone_struct_alloc argument.
24389 PR rtl-optimization/57915
24390 * recog.c (simplify_while_replacing): If all unary/binary/relational
24391 operation arguments are constant, attempt to simplify those.
24393 PR middle-end/59261
24394 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24395 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24397 2014-02-04 Richard Biener <rguenther@suse.de>
24399 PR tree-optimization/60012
24400 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24401 TBAA disambiguation to all DDRs.
24403 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24406 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24407 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24409 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24412 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24414 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24416 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24417 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24419 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24422 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24423 to figure out targets of polymorphic calls with known decl.
24424 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24425 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24426 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24427 (get_polymorphic_call_info): ... here.
24428 (get_polymorphic_call_info_from_invariant): New function.
24430 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24432 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24433 lookup via vtable pointer; check for type consistency
24434 and turn inconsitent facts into UNREACHABLE.
24435 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24436 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24437 type inconsistent querries; return UNREACHABLE instead.
24439 2014-02-03 Richard Henderson <rth@twiddle.net>
24442 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24443 already processed this node.
24444 (normalize_one_pred_1): Pass along mark_set.
24445 (normalize_one_pred): Create and destroy a pointer_set_t.
24446 (normalize_one_pred_chain): Likewise.
24448 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24450 PR gcov-profile/58602
24451 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24453 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24456 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24457 -fno-devirtualize; try to devirtualize by the knowledge of
24458 virtual table pointer given by aggregate propagation.
24459 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24460 (ipa_print_node_jump_functions): Dump also offset that
24461 is relevant for polymorphic calls.
24462 (determine_known_aggregate_parts): Add arg_type parameter; use it
24463 instead of determining the type from pointer type.
24464 (ipa_compute_jump_functions_for_edge): Update call of
24465 determine_known_aggregate_parts.
24466 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24467 (gimple_get_virt_method_for_binfo): ... here; simplify using
24468 vtable_pointer_value_to_vtable.
24469 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24470 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24471 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24472 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24474 (vtable_pointer_value_to_binfo): ... here.
24475 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24477 2014-02-03 Teresa Johnson <tejohnson@google.com>
24479 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24480 redef of outer loop index variable.
24482 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24486 * doc/extend.texi (Function Attributes): Typo.
24488 2014-02-03 Cong Hou <congh@google.com>
24490 PR tree-optimization/60000
24491 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24492 if the vectorized statement is a store. A store statement can only
24493 appear at the end of pattern statements.
24495 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24497 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24498 (ix86_option_override_internal): Default long double to 64-bit for
24499 32-bit Bionic and to 128-bit for 64-bit Bionic.
24501 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24502 TARGET_LONG_DOUBLE_128 is true.
24503 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24505 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24506 (mlong-double-64): Negate -mlong-double-128.
24507 (mlong-double-128): New option.
24509 * config/i386/i386-c.c (ix86_target_macros): Define
24510 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24512 * doc/invoke.texi: Document -mlong-double-128.
24514 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24516 PR rtl-optimization/60024
24517 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24519 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24521 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24523 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24525 PR rtl-optimization/57662
24526 * sel-sched.c (code_motion_path_driver): Do not mark already not
24527 existing blocks in the visiting bitmap.
24529 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24531 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24532 on the insn being emitted.
24534 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24535 Will Deacon <will.deacon@arm.com>
24537 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24539 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24541 * config/arm/arm-tables.opt: Regenerate.
24543 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24545 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24546 for vector types other than V16QImode.
24547 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24548 define_expand, and call altivec_expand_vec_perm_le when producing
24549 code with little endian element order.
24550 (*altivec_vperm_<mode>_internal): New insn having previous
24551 behavior of altivec_vperm_<mode>.
24552 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24553 altivec_expand_vec_perm_le when producing code with little endian
24555 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24556 behavior of altivec_vperm_<mode>_uns.
24558 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24560 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24561 (altivec_vsumsws): Add handling for -maltivec=be with a little
24563 (altivec_vsumsws_direct): New.
24564 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24565 gen_altivec_vsumsws.
24567 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24569 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24570 vtable_pointer_value_to_binfo): New functions.
24571 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24572 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24574 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24576 * config/nios2/nios2.md (load_got_register): Initialize GOT
24577 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24578 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24580 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24582 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24583 preserverd by passthrough, do not propagate the type.
24585 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24587 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24588 (mips_atomic_assign_expand_fenv): New function.
24589 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24591 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24593 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24594 (__builtin_mips_set_fcsr): Likewise.
24595 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24596 MIPS_USI_FTYPE_VOID.
24597 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24598 (mips16_expand_set_fcsr): Likewise.
24599 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24600 (mips16_set_fcsr_stub): Likewise.
24601 (mips16_get_fcsr_one_only_stub): New class.
24602 (mips16_set_fcsr_one_only_stub): Likewise.
24603 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24604 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24605 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24606 (hard_float): New availability predicate.
24607 (mips_builtins): Add get_fcsr and set_fcsr.
24608 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24609 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24610 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24611 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24612 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24615 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24617 * config/mips/mips.c (mips_one_only_stub): New class.
24618 (mips_need_mips16_rdhwr_p): Replace with...
24619 (mips16_rdhwr_stub): ...this new variable.
24620 (mips16_stub_call_address): New function.
24621 (mips16_rdhwr_one_only_stub): New class.
24622 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24623 (mips_output_mips16_rdhwr): Delete.
24624 (mips_finish_stub): New function.
24625 (mips_code_end): Use it to handle rdhwr stubs.
24627 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24630 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24631 when calculating size of integer atomic types.
24633 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24635 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24637 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24639 PR tree-optimization/60003
24640 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24641 * profile.c (branch_prob): Use gimple_call_builtin_p
24642 to check for BUILT_IN_SETJMP_RECEIVER.
24643 * tree-inline.c (copy_bb): Call notice_special_calls.
24645 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24648 * lra-constraints.c (process_alt_operands): Update reload_sum only
24651 2014-01-31 Richard Henderson <rth@redhat.com>
24653 PR middle-end/60004
24654 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24655 until after else_eh is processed.
24657 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24659 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24660 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24661 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24662 in smmintrin.h, remove them.
24663 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24664 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24665 * config/i386/i386.md (ROUND_SAE): Fix value.
24666 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24667 (const48_operand): New.
24668 * config/i386/subst.md (round), (round_expand): Use
24669 const_4_or_8_to_11_operand.
24670 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24672 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24674 * config/i386/constraints.md (Yk): Swap meaning with k.
24675 * config/i386/i386.md (movhi_internal): Change Yk to k.
24676 (movqi_internal): Ditto.
24677 (*k<logic><mode>): Ditto.
24680 (kandn<mode>): Ditto.
24681 (*<code>hi_1): Ditto.
24682 (*<code>qi_1): Ditto.
24683 (kxnor<mode>): Ditto.
24684 (kortestzhi): Ditto.
24685 (kortestchi): Ditto.
24687 (*one_cmplhi2_1): Ditto.
24688 (*one_cmplqi2_1): Ditto.
24689 * config/i386/sse.md (): Change k to Yk.
24690 (avx512f_load<mode>_mask): Ditto.
24691 (avx512f_blendm<mode>): Ditto.
24692 (avx512f_store<mode>_mask): Ditto.
24693 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24694 (avx512f_storedqu<mode>_mask): Ditto.
24695 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24697 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24698 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24699 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24700 (avx512f_maskcmp<mode>3): Ditto.
24701 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24702 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24703 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24704 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24705 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24706 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24707 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24708 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24709 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24710 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24711 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24712 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24713 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24714 (vec_extract_lo_<mode>_maskm): Ditto.
24715 (vec_extract_hi_<mode>_maskm): Ditto.
24716 (avx512f_vternlog<mode>_mask): Ditto.
24717 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24718 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24719 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24720 (avx512f_<code>v8div16qi2_mask): Ditto.
24721 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24722 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24723 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24724 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24725 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24726 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24727 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24728 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24729 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24730 (avx512cd_maskb_vec_dupv8di): Ditto.
24731 (avx512cd_maskw_vec_dupv16si): Ditto.
24732 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24733 (avx512f_vpermi2var<mode>3_mask): Ditto.
24734 (avx512f_vpermi2var<mode>3_mask): Ditto.
24735 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24736 (*avx512f_gathersi<mode>): Ditto.
24737 (*avx512f_gathersi<mode>_2): Ditto.
24738 (*avx512f_gatherdi<mode>): Ditto.
24739 (*avx512f_gatherdi<mode>_2): Ditto.
24740 (*avx512f_scattersi<mode>): Ditto.
24741 (*avx512f_scatterdi<mode>): Ditto.
24742 (avx512f_compress<mode>_mask): Ditto.
24743 (avx512f_compressstore<mode>_mask): Ditto.
24744 (avx512f_expand<mode>_mask): Ditto.
24745 * config/i386/subst.md (mask): Change k to Yk.
24746 (mask_scalar_merge): Ditto.
24749 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24751 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24753 2014-01-31 Richard Biener <rguenther@suse.de>
24755 PR middle-end/59990
24756 * builtins.c (fold_builtin_memory_op): Make sure to not
24757 use a floating-point mode or a boolean or enumeral type for
24758 the copy operation.
24760 2014-01-30 DJ Delorie <dj@redhat.com>
24762 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24763 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24764 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24765 whenever main() has an epilogue.
24767 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24769 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24770 unused variable "field".
24771 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24772 (vsx_mergeh_<mode>): Likewise.
24773 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24774 (altivec_vmrghh): Likewise.
24775 (altivec_vmrghw): Likewise.
24776 (altivec_vmrglb): Likewise.
24777 (altivec_vmrglh): Likewise.
24778 (altivec_vmrglw): Likewise.
24779 (altivec_vspltb): Add missing uses.
24780 (altivec_vsplth): Likewise.
24781 (altivec_vspltw): Likewise.
24782 (altivec_vspltsf): Likewise.
24784 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24787 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24788 frame related instructions.
24790 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24792 PR rtl-optimization/59959
24793 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24794 any reload of register whose subreg is invalid.
24796 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24798 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24799 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24800 Add missing return type - void.
24802 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24804 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24805 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24806 remove element index adjustment for endian (now handled in vsx.md
24808 (altivec_expand_vec_perm_const): Use
24809 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24810 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24811 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24812 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24813 define_expand and a new define_insn *altivec_vspltb_internal;
24814 adjust for -maltivec=be on a little endian target.
24815 (altivec_vspltb_direct): New.
24816 (altivec_vsplth): Divide into a define_expand and a new
24817 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24818 little endian target.
24819 (altivec_vsplth_direct): New.
24820 (altivec_vspltw): Divide into a define_expand and a new
24821 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24822 little endian target.
24823 (altivec_vspltw_direct): New.
24824 (altivec_vspltsf): Divide into a define_expand and a new
24825 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24826 a little endian target.
24828 2014-01-30 Richard Biener <rguenther@suse.de>
24830 PR tree-optimization/59993
24831 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24832 can propagate form the earlier stmt and avoid the transform
24833 when the intermediate result is needed.
24835 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24837 * README.Portability: Fix typo.
24839 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24841 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24842 comparison_operator with ordered_comparison_operator.
24844 2014-01-30 Nick Clifton <nickc@redhat.com>
24846 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24847 Rename to mn10300_store_multiple_regs.
24848 * config/mn10300/mn10300.c: Likewise.
24849 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24850 store_multiple_regs.
24851 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24852 Call mn10300_store_multiple_regs.
24854 2014-01-30 Nick Clifton <nickc@redhat.com>
24855 DJ Delorie <dj@redhat.com>
24857 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24858 %fp 2 to keep registers after it properly word-aligned.
24859 (rl78_alloc_physical_registers_umul): Handle the case where both
24860 input operands are the same.
24862 2014-01-30 Richard Biener <rguenther@suse.de>
24864 PR tree-optimization/59903
24865 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24868 2014-01-30 Jason Merrill <jason@redhat.com>
24871 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24874 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24876 2014-01-30 Richard Biener <rguenther@suse.de>
24878 PR tree-optimization/59951
24879 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24881 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24884 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24885 SFmode to DFmode case.
24887 2014-01-29 DJ Delorie <dj@redhat.com>
24889 * config/msp430/msp430.opt (-minrt): New.
24890 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24892 (ENDFILE_SPEC): Likewise.
24894 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24896 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24897 (estimate_function_body_sizes): Use it.
24899 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24902 * dwarf2out.c (is_cxx_auto): New.
24903 (is_base_type): Use it.
24904 (gen_type_die_with_usage): Likewise.
24906 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24908 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24909 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24910 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24911 -maltivec=be with LE targets.
24912 (vsx_mergeh_<mode>): Likewise.
24913 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24914 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24915 (altivec_vmrghb): Replace with define_expand and new
24916 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24917 (altivec_vmrghb_direct): New define_insn.
24918 (altivec_vmrghh): Replace with define_expand and new
24919 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24920 (altivec_vmrghh_direct): New define_insn.
24921 (altivec_vmrghw): Replace with define_expand and new
24922 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24923 (altivec_vmrghw_direct): New define_insn.
24924 (*altivec_vmrghsf): Adjust for endianness.
24925 (altivec_vmrglb): Replace with define_expand and new
24926 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24927 (altivec_vmrglb_direct): New define_insn.
24928 (altivec_vmrglh): Replace with define_expand and new
24929 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24930 (altivec_vmrglh_direct): New define_insn.
24931 (altivec_vmrglw): Replace with define_expand and new
24932 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24933 (altivec_vmrglw_direct): New define_insn.
24934 (*altivec_vmrglsf): Adjust for endianness.
24935 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24936 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24937 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24938 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24939 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24940 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24941 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24942 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24944 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24946 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24947 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24950 2014-01-29 Richard Biener <rguenther@suse.de>
24952 PR tree-optimization/58742
24953 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24954 associate_pointerplus_align.
24955 (associate_pointerplus_diff): New function.
24956 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24957 and associate_pointerplus_diff.
24959 2014-01-29 Richard Biener <rguenther@suse.de>
24961 * lto-streamer.h (LTO_major_version): Bump to 3.
24962 (LTO_minor_version): Reset to 0.
24964 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24966 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24967 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24968 (arm_file_start): Generate correct asm header for armv7ve.
24969 * config/arm/bpabi.h: Add multilib support for armv7ve.
24970 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24971 and cortex-a15 to armv7ve.
24972 * config/arm/t-aprofile: Add multilib support for armv7ve.
24973 * doc/invoke.texi: Document -march=armv7ve.
24975 2014-01-29 Richard Biener <rguenther@suse.de>
24977 PR tree-optimization/58742
24978 * tree-ssa-forwprop.c (associate_plusminus): Return true
24979 if we changed sth, defer EH cleanup to ...
24980 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24981 (simplify_mult): New function.
24983 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24985 PR middle-end/59917
24986 PR tree-optimization/59920
24987 * tree.c (build_common_builtin_nodes): Remove
24988 __builtin_setjmp_dispatcher initialization.
24989 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24990 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24991 instead of gsi_after_labels + manually skipping debug stmts.
24992 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24993 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24994 * tree-inline.c (copy_edges_for_bb): Remove
24995 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24996 argument. Ignore computed_goto_p stmts. Don't call
24997 make_abnormal_goto_edges. If a call might need abnormal edges
24998 for non-local gotos, see if it already has an edge to
24999 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25000 with true argument, don't do anything then, otherwise add
25001 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25002 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25004 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25005 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25006 (lower_stmt): Don't set data->calls_builtin_setjmp.
25007 (lower_builtin_setjmp): Adjust comment.
25008 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25009 * tree-cfg.c (found_computed_goto): Remove.
25010 (factor_computed_gotos): Remove.
25011 (make_goto_expr_edges): Return bool, true for computed gotos.
25012 Don't call make_abnormal_goto_edges.
25013 (build_gimple_cfg): Don't set found_computed_goto, don't call
25014 factor_computed_gotos.
25015 (computed_goto_p): No longer static.
25016 (make_blocks): Don't set found_computed_goto.
25017 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25018 (make_edges): If make_goto_expr_edges returns true, push bb
25019 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25020 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25021 vector. Record mapping between bbs and OpenMP regions if there
25022 are any, adjust make_gimple_omp_edges caller. Call
25023 handle_abnormal_edges.
25024 (make_abnormal_goto_edges): Remove.
25025 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25026 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25027 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25028 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25029 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25030 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25031 filling *region also set *region_idx to (*region)->entry->index.
25034 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25035 For REGs set ORIGINAL_REGNO.
25037 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25039 * doc/md.texi: Mention that a target shouldn't implement
25040 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25043 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25045 PR tree-optimization/59594
25046 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25047 a copy of the datarefs vector rather than the vector itself.
25049 2014-01-28 Jason Merrill <jason@redhat.com>
25052 * dwarf2out.c (auto_die): New static.
25053 (gen_type_die_with_usage): Handle C++1y 'auto'.
25054 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25057 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25060 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25061 (SPEC_X32): Likewise.
25062 (SPEC_64): Likewise.
25063 * config/i386/i386.c (ix86_option_override_internal): Turn off
25064 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25066 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25067 * config/i386/i386.h (TARGET_16BIT): New macro.
25068 (TARGET_16BIT_P): Likewise.
25069 * config/i386/i386.opt: Add m16.
25070 * doc/invoke.texi: Document -m16.
25072 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25074 PR preprocessor/59935
25075 * input.c (location_get_source_line): Bail out on when line number
25076 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25078 2014-01-28 Richard Biener <rguenther@suse.de>
25080 PR tree-optimization/58742
25081 * tree-ssa-forwprop.c (associate_plusminus): Handle
25082 pointer subtraction of the form (T)(P + A) - (T)P.
25084 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25086 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25089 2014-01-28 Richard Biener <rguenther@suse.de>
25092 2014-01-28 Richard Biener <rguenther@suse.de>
25094 PR rtl-optimization/45364
25095 PR rtl-optimization/59890
25096 * var-tracking.c (local_get_addr_clear_given_value): Handle
25097 already cleared slot.
25098 (val_reset): Handle not allocated local_get_addr_cache.
25099 (vt_find_locations): Use post-order on the inverted CFG.
25101 2014-01-28 Richard Biener <rguenther@suse.de>
25103 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25105 2014-01-28 Richard Biener <rguenther@suse.de>
25107 PR rtl-optimization/45364
25108 PR rtl-optimization/59890
25109 * var-tracking.c (local_get_addr_clear_given_value): Handle
25110 already cleared slot.
25111 (val_reset): Handle not allocated local_get_addr_cache.
25112 (vt_find_locations): Use post-order on the inverted CFG.
25114 2014-01-28 Alan Modra <amodra@gmail.com>
25116 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25117 * configure.ac <recursive call for build != host>: Define
25118 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25119 and LD_FOR_BUILD too.
25120 * configure: Regenerate.
25122 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25124 * config/i386/i386.c (get_builtin_code_for_version): Separate
25125 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25126 Broadwell from Haswell.
25128 2014-01-27 Steve Ellcey <sellcey@mips.com>
25130 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25131 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25132 * config/mips/mips.c (mips_option_override): Change setting
25134 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25135 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25136 Change from Mask to Var.
25138 2014-01-27 Jeff Law <law@redhat.com>
25140 * ipa-inline.c (inline_small_functions): Fix typo.
25142 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25144 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25145 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25146 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25147 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25148 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25149 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25150 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25151 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25152 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25153 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25154 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25155 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25156 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25157 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25158 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25159 (_mm512_storeu_epi64): Ditto.
25160 (_mm512_cmpge_epi32_mask): Ditto.
25161 (_mm512_cmpge_epu32_mask): Ditto.
25162 (_mm512_cmpge_epi64_mask): Ditto.
25163 (_mm512_cmpge_epu64_mask): Ditto.
25164 (_mm512_cmple_epi32_mask): Ditto.
25165 (_mm512_cmple_epu32_mask): Ditto.
25166 (_mm512_cmple_epi64_mask): Ditto.
25167 (_mm512_cmple_epu64_mask): Ditto.
25168 (_mm512_cmplt_epi32_mask): Ditto.
25169 (_mm512_cmplt_epu32_mask): Ditto.
25170 (_mm512_cmplt_epi64_mask): Ditto.
25171 (_mm512_cmplt_epu64_mask): Ditto.
25172 (_mm512_cmpneq_epi32_mask): Ditto.
25173 (_mm512_cmpneq_epu32_mask): Ditto.
25174 (_mm512_cmpneq_epi64_mask): Ditto.
25175 (_mm512_cmpneq_epu64_mask): Ditto.
25176 (_mm512_expand_pd): Ditto.
25177 (_mm512_expand_ps): Ditto.
25178 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25179 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25180 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25181 * config/i386/i386.c (ix86_builtins): Add
25182 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25183 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25184 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25185 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25186 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25187 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25188 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25189 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25190 IX86_BUILTIN_PMOVUSQW512_MEM.
25191 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25192 __builtin_ia32_pmovsqd512mem_mask,
25193 __builtin_ia32_pmovqd512mem_mask,
25194 __builtin_ia32_pmovusqw512mem_mask,
25195 __builtin_ia32_pmovsqw512mem_mask,
25196 __builtin_ia32_pmovqw512mem_mask,
25197 __builtin_ia32_pmovusdw512mem_mask,
25198 __builtin_ia32_pmovsdw512mem_mask,
25199 __builtin_ia32_pmovdw512mem_mask,
25200 __builtin_ia32_pmovqb512mem_mask,
25201 __builtin_ia32_pmovusqb512mem_mask,
25202 __builtin_ia32_pmovsqb512mem_mask,
25203 __builtin_ia32_pmovusdb512mem_mask,
25204 __builtin_ia32_pmovsdb512mem_mask,
25205 __builtin_ia32_pmovdb512mem_mask.
25206 (bdesc_args): Add __builtin_ia32_expanddf512,
25207 __builtin_ia32_expandsf512.
25208 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25209 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25210 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25211 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25212 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25213 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25214 (avx512f_<code>v8div16qi2_mask_store): This.
25215 (avx512f_expand<mode>): New.
25217 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25219 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25221 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25222 (_mm512_prefetch_i32scatter_pd): Ditto.
25223 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25224 (_mm512_prefetch_i64scatter_pd): Ditto.
25225 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25226 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25227 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25228 (_mm512_prefetch_i32scatter_ps): Ditto.
25229 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25230 (_mm512_prefetch_i64scatter_ps): Ditto.
25231 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25232 * config/i386/i386-builtin-types.def: Define
25233 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25234 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25235 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25236 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25237 IX86_BUILTIN_SCATTERPFQPD.
25238 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25239 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25240 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25241 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25242 __builtin_ia32_scatterpfqps.
25243 (ix86_expand_builtin): Expand new built-ins.
25244 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25245 fix memory access data type.
25246 (*avx512pf_gatherpf<mode>_mask): Ditto.
25247 (*avx512pf_gatherpf<mode>): Ditto.
25248 (avx512pf_scatterpf<mode>): Ditto.
25249 (*avx512pf_scatterpf<mode>_mask): Ditto.
25250 (*avx512pf_scatterpf<mode>): Ditto.
25251 (GATHER_SCATTER_SF_MEM_MODE): New.
25252 (avx512pf_gatherpf<mode>df): Ditto.
25253 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25254 (*avx512pf_scatterpf<mode>df): Ditto.
25256 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25259 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25260 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25263 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25265 * common/config/arm/arm-common.c
25266 (arm_rewrite_mcpu): Handle multiple names.
25268 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25270 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25272 * gimple-builder.h (create_gimple_tmp): Delete.
25274 2014-01-27 Christian Bruel <christian.bruel@st.com>
25276 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25279 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25281 * config/pa/pa.md (call): Generate indirect long calls to non-local
25282 functions when outputing 32-bit code.
25283 (call_value): Likewise except for special call to buggy powf function.
25285 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25286 portable runtime and PIC indirect calls.
25287 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25288 and PIC call sequences. Use ldo instead of blr to set return register
25289 in PIC call sequence.
25291 2014-01-25 Walter Lee <walt@tilera.com>
25293 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25294 avoid clobbering a live register.
25296 2014-01-25 Walter Lee <walt@tilera.com>
25298 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25299 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25300 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25301 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25303 2014-01-25 Walter Lee <walt@tilera.com>
25305 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25306 arguments on even registers.
25307 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25309 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25310 (BIGGEST_ALIGNMENT): Ditto.
25311 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25313 2014-01-25 Walter Lee <walt@tilera.com>
25315 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25316 insns before bundling.
25317 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25319 2014-01-25 Walter Lee <walt@tilera.com>
25321 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25322 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25323 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25325 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25327 * config/mips/constraints.md (kl): Delete.
25328 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25329 define expands, using...
25330 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25331 instructions for MIPS16.
25332 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25333 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25335 2014-01-25 Walter Lee <walt@tilera.com>
25337 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25341 2014-01-25 Walter Lee <walt@tilera.com>
25343 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25344 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25346 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25348 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25351 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25353 * print-rtl.c (in_call_function_usage): New var.
25354 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25355 EXPR_LIST mode as mode and not as reg note name.
25357 PR middle-end/59561
25358 * cfgloopmanip.c (copy_loop_info): If
25359 loop->warned_aggressive_loop_optimizations, make sure
25360 the flag is set in target loop too.
25362 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25364 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25366 * builtins.def: Likewise.
25367 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25368 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25369 * ira.c (ira_setup_eliminable_regset): Likewise.
25370 * omp-low.c (gate_expand_omp): Likewise.
25371 (execute_lower_omp): Likewise.
25372 (diagnose_sb_0): Likewise.
25373 (gate_diagnose_omp_blocks): Likewise.
25374 (simd_clone_clauses_extract): Likewise.
25377 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25379 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25380 correction for little endian...
25381 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25384 2014-01-24 Jeff Law <law@redhat.com>
25386 PR tree-optimization/59919
25387 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25388 for non-returning calls.
25390 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25392 * common/config/aarch64/aarch64-common.c
25393 (aarch64_rewrite_mcpu): Handle multiple names.
25394 * config/aarch64/aarch64.h
25395 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25397 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25399 * input.c (add_file_to_cache_tab): Handle the case where fopen
25402 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25405 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25406 from push operand if code of push isn't PRE_DEC.
25408 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25411 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25412 -mquad-memory-atomic. Update -mquad-memory documentation to say
25413 it is only used for non-atomic loads/stores.
25415 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25416 -mquad-memory or -mquad-memory-atomic switches.
25418 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25419 -mquad-memory-atomic to ISA 2.07 support.
25421 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25422 to separate support of normal quad word memory operations (ldq, stq)
25423 from the atomic quad word memory operations.
25425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25426 support to separate non-atomic quad word operations from atomic
25427 quad word operations. Disable non-atomic quad word operations in
25428 little endian mode so that we don't have to swap words after the
25429 load and before the store.
25430 (quad_load_store_p): Add comment about atomic quad word support.
25431 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25432 options printed with -mdebug=reg.
25434 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25435 -mquad-memory-atomic as the test for whether we have quad word
25436 atomic instructions.
25437 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25438 or -mp8-vector are used, allow byte/half-word atomic operations.
25440 * config/rs6000/sync.md (load_lockedti): Insure that the address
25441 is a proper indexed or indirect address for the lqarx instruction.
25442 On little endian systems, swap the hi/lo registers after the lqarx
25444 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25445 insure the address is valid for the lqarx instruction.
25446 (store_conditionalti): Insure that the address is a proper indexed
25447 or indirect address for the stqcrx. instruction. On little endian
25448 systems, swap the hi/lo registers before doing the stqcrx.
25450 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25451 insure the address is valid for the stqcrx. instruction.
25453 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25454 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25455 type of quad memory support is available.
25457 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25459 PR regression/59915
25460 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25461 there is a danger of looping.
25463 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25465 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25466 force flag_ira_loop_pressure if set via command line.
25468 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25470 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25471 (ashr_simd): New builtin handling DI mode.
25472 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25473 (aarch64_sshr_simddi): New match pattern.
25474 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25475 (vshrd_n_s64): Likewise.
25476 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25478 2014-01-23 Nick Clifton <nickc@redhat.com>
25480 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25481 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25482 favour of mcu specific scripts.
25483 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25486 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25487 Alex Velenko <Alex.Velenko@arm.com>
25489 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25490 (vaddv_s16): Likewise.
25491 (vaddv_s32): Likewise.
25492 (vaddv_u8): Likewise.
25493 (vaddv_u16): Likewise.
25494 (vaddv_u32): Likewise.
25495 (vaddvq_s8): Likewise.
25496 (vaddvq_s16): Likewise.
25497 (vaddvq_s32): Likewise.
25498 (vaddvq_s64): Likewise.
25499 (vaddvq_u8): Likewise.
25500 (vaddvq_u16): Likewise.
25501 (vaddvq_u32): Likewise.
25502 (vaddvq_u64): Likewise.
25503 (vaddv_f32): Likewise.
25504 (vaddvq_f32): Likewise.
25505 (vaddvq_f64): Likewise.
25506 (vmaxv_f32): Likewise.
25507 (vmaxv_s8): Likewise.
25508 (vmaxv_s16): Likewise.
25509 (vmaxv_s32): Likewise.
25510 (vmaxv_u8): Likewise.
25511 (vmaxv_u16): Likewise.
25512 (vmaxv_u32): Likewise.
25513 (vmaxvq_f32): Likewise.
25514 (vmaxvq_f64): Likewise.
25515 (vmaxvq_s8): Likewise.
25516 (vmaxvq_s16): Likewise.
25517 (vmaxvq_s32): Likewise.
25518 (vmaxvq_u8): Likewise.
25519 (vmaxvq_u16): Likewise.
25520 (vmaxvq_u32): Likewise.
25521 (vmaxnmv_f32): Likewise.
25522 (vmaxnmvq_f32): Likewise.
25523 (vmaxnmvq_f64): Likewise.
25524 (vminv_f32): Likewise.
25525 (vminv_s8): Likewise.
25526 (vminv_s16): Likewise.
25527 (vminv_s32): Likewise.
25528 (vminv_u8): Likewise.
25529 (vminv_u16): Likewise.
25530 (vminv_u32): Likewise.
25531 (vminvq_f32): Likewise.
25532 (vminvq_f64): Likewise.
25533 (vminvq_s8): Likewise.
25534 (vminvq_s16): Likewise.
25535 (vminvq_s32): Likewise.
25536 (vminvq_u8): Likewise.
25537 (vminvq_u16): Likewise.
25538 (vminvq_u32): Likewise.
25539 (vminnmv_f32): Likewise.
25540 (vminnmvq_f32): Likewise.
25541 (vminnmvq_f64): Likewise.
25543 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25545 * config/aarch64/aarch64-simd.md
25546 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25547 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25548 (*aarch64_mul3_elt<mode>): Likewise.
25549 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25550 (*aarch64_mul3_elt_to_64v2df): Likewise.
25551 (*aarch64_mla_elt<mode>): Likewise.
25552 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25553 (*aarch64_mls_elt<mode>): Likewise.
25554 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25555 (*aarch64_fma4_elt<mode>): Likewise.
25556 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25557 (*aarch64_fma4_elt_to_64v2df): Likewise.
25558 (*aarch64_fnma4_elt<mode>): Likewise.
25559 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25560 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25561 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25562 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25563 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25564 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25565 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25566 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25567 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25569 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25571 * config/aarch64/aarch64-simd.md
25572 (aarch64_be_checked_get_lane<mode>): New define_expand.
25573 * config/aarch64/aarch64-simd-builtins.def
25574 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25575 New builtin definition.
25576 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25577 Use new safe be builtin.
25579 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25581 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25583 (aarch64_be_st1<mode>): Likewise.
25584 (aarch_ld1<VALL:mode>): Define_expand modified.
25585 (aarch_st1<VALL:mode>): Likewise.
25586 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25587 (UNSPEC_ST1): Likewise.
25589 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25591 * config/microblaze/microblaze.md: Add trap insn and attribute
25593 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25595 PR preprocessor/58580
25596 * input.h (location_get_source_line): Take an additional line_size
25598 (void diagnostics_file_cache_fini): Declare new function.
25599 * input.c (struct fcache): New type.
25600 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25601 New static constants.
25602 (diagnostic_file_cache_init, total_lines_num)
25603 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25604 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25605 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25606 (get_next_line, read_next_line, goto_next_line, read_line_num):
25607 New static function definitions.
25608 (diagnostic_file_cache_fini): New function.
25609 (location_get_source_line): Take an additional output line_len
25610 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25612 * diagnostic.c (diagnostic_finish): Call
25613 diagnostic_file_cache_fini.
25614 (adjust_line): Take an additional input parameter for the length
25615 of the line, rather than calculating it with strlen.
25616 (diagnostic_show_locus): Adjust the use of
25617 location_get_source_line and adjust_line with respect to their new
25618 signature. While displaying a line now, do not stop at the first
25619 null byte. Rather, display the zero byte as a space and keep
25620 going until we reach the size of the line.
25621 * Makefile.in: Add vec.o to OBJS-libcommon
25623 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25624 Ilya Tocar <ilya.tocar@intel.com>
25626 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25627 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25628 (__builtin_ia32_kmov16): Ditto.
25629 * config/i386/i386.md (UNSPEC_KMOV): New.
25632 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25634 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25635 (_mm512_storeu_si512): Ditto.
25637 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25640 * rtl.h (get_referenced_operands): Declare.
25641 * recog.c (get_referenced_operands): New function.
25642 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25643 operands have been referenced when recording LO_SUM references.
25645 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25647 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25649 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25651 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25652 Enable for generic and recent AMD targets.
25654 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25656 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25657 ARG_SIZE note when adjustment was eliminated.
25659 2014-01-22 Jeff Law <law@redhat.com>
25661 PR tree-optimization/59597
25662 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25663 in file. Accept new argument REGISTERING and use it to modify
25664 dump output appropriately.
25665 (register_jump_thread): Corresponding changes.
25666 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25667 thread paths involving joiner blocks. Add code to dump cancelled
25668 jump threading paths.
25670 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25672 PR rtl-optimization/59477
25673 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25674 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25676 2014-01-22 Tom Tromey <tromey@redhat.com>
25678 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25680 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25682 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25684 PR rtl-optimization/59896
25685 * lra-constraints.c (process_alt_operands): Check unused note for
25686 matched operands of insn with no output reloads.
25688 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25690 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25691 (mips_move_from_gpr_cost): Likewise.
25693 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25695 PR rtl-optimization/59858
25696 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25697 ira_class_hard_regs_num.
25698 (process_alt_operands): Increase reject for dying matched operand.
25700 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25703 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25704 smaller than size, perform several stores or loads and stores
25705 at dst + count - size to store or copy all of size bytes, rather
25706 than just last modesize bytes.
25708 2014-01-20 DJ Delorie <dj@redhat.com>
25710 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25711 that CLOBBERs are REGs before propogating their values.
25713 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25715 PR middle-end/59789
25716 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25717 (cgraph_inline_failed_type): New function.
25718 * cgraph.h (DEFCIFCODE): Add type.
25719 (cgraph_inline_failed_type_t): New enum.
25720 (cgraph_inline_failed_type): New prototype.
25721 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25722 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25723 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25724 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25725 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25726 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25727 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25728 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25729 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25730 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25731 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25732 OPTIMIZATION_MISMATCH.
25733 * tree-inline.c (expand_call_inline): Emit errors during
25734 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25736 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25739 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25740 mode attribute in insn output.
25742 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25744 * output.h (output_constant): Delete.
25745 * varasm.c (output_constant): Make private.
25747 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25749 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25751 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25753 PR middle-end/59860
25754 * tree.h (fold_builtin_strcat): New prototype.
25755 * builtins.c (fold_builtin_strcat): No longer static. Add len
25756 argument, if non-NULL, don't call c_strlen. Optimize
25757 directly into __builtin_memcpy instead of __builtin_strcpy.
25758 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25759 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25761 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25763 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25764 for SImode_address_operand operands, having only a REG argument.
25766 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25768 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25769 loader name using mbig-endian.
25770 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25772 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25774 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25775 (-mtune): Likewise.
25778 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25780 * config/aarch64/aarch64-protos.h
25781 (aarch64_cannot_change_mode_class_ptr): Declare.
25782 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25783 aarch64_cannot_change_mode_class_ptr): New.
25784 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25785 backend hook aarch64_cannot_change_mode_class.
25787 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25789 * common/config/aarch64/aarch64-common.c
25790 (aarch64_handle_option): Don't handle any option order logic here.
25791 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25792 selected_cpu, warn on architecture version mismatch.
25793 (aarch64_override_options): Fix parsing order for option strings.
25795 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25796 Iain Sandoe <iain@codesourcery.com>
25799 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25800 warning. Amend comment to reflect current functionality.
25802 2014-01-20 Richard Biener <rguenther@suse.de>
25804 PR middle-end/59860
25805 * builtins.c (fold_builtin_strcat): Remove case better handled
25806 by tree-ssa-strlen.c.
25808 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25810 * config/aarch64/aarch64.opt
25811 (mcpu, march, mtune): Make case-insensitive.
25813 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25816 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25817 if operands[1] is a REG or ZERO_EXTEND of a REG.
25819 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25821 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25823 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25825 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25826 long non-pic millicode calls.
25828 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25830 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25832 2014-01-19 Kito Cheng <kito@0xlab.org>
25834 * builtins.c (expand_movstr): Check movstr expand done or fail.
25836 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25837 H.J. Lu <hongjiu.lu@intel.com>
25840 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25841 to DImode for zero-extended addresses.
25843 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25845 PR rtl-optimization/57763
25846 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25847 on the new indirect jump_insn and increment LABEL_NUSES (label).
25849 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25853 * config.gcc (x86_archs): New variable.
25854 (x86_64_archs): Likewise.
25855 (x86_cpus): Likewise.
25856 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25857 --with-arch/--with-cpu= options.
25858 Support --with-arch=/--with-cpu={nehalem,westmere,
25859 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25861 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25863 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25864 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25866 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25868 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25870 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25873 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25874 clear cpp_get_options (parse_in)->warn_unused_macros for
25875 ix86_target_macros_internal with cpp_define.
25877 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25879 * jump.c (delete_related_insns): Keep (use (insn))s.
25880 * reorg.c (redundant_insn): Check for barriers too.
25882 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25884 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25886 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25888 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25889 call to $$dyncall when TARGET_LONG_CALLS is true.
25891 2014-01-17 Jeff Law <law@redhat.com>
25893 * ree.c (combine_set_extension): Temporarily disable test for
25894 changing number of hard registers.
25896 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25898 PR middle-end/58125
25899 * ipa-inline-analysis.c (inline_free_summary):
25900 Do not free summary of aliases.
25902 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25904 PR middle-end/59706
25905 * gimplify.c (gimplify_expr): Use create_tmp_var
25906 instead of create_tmp_var_raw. If cond doesn't have
25907 integral type, don't add the IFN_ANNOTATE builtin at all.
25909 2014-01-17 Martin Jambor <mjambor@suse.cz>
25912 * ipa-cp.c (prev_edge_clone): New variable.
25913 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25914 Also resize prev_edge_clone vector.
25915 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25916 (ipcp_edge_removal_hook): New function.
25917 (ipcp_driver): Register ipcp_edge_removal_hook.
25919 2014-01-17 Andrew Pinski <apinski@cavium.com>
25920 Steve Ellcey <sellcey@mips.com>
25923 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25926 2014-01-17 Jeff Law <law@redhat.com>
25928 PR middle-end/57904
25929 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25930 so that pass_ccp runs first.
25932 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25934 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25935 (ix86_adjust_cost): Use !TARGET_XXX.
25936 (do_reorder_for_imul): Likewise.
25937 (swap_top_of_ready_list): Likewise.
25938 (ix86_sched_reorder): Likewise.
25940 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25942 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25943 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25944 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25945 (intel_memset): New. Duplicate slm_memset.
25946 (intel_cost): New. Duplicate slm_cost.
25947 (m_INTEL): New macro.
25948 (processor_target_table): Add "intel".
25949 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25950 with PROCESSOR_INTEL for "intel".
25951 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25952 PROCESSOR_SILVERMONT.
25953 (ix86_issue_rate): Likewise.
25954 (ix86_adjust_cost): Likewise.
25955 (ia32_multipass_dfa_lookahead): Likewise.
25956 (swap_top_of_ready_list): Likewise.
25957 (ix86_sched_reorder): Likewise.
25958 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25959 instead of TARGET_OPT_AGU.
25960 * config/i386/i386.h (TARGET_INTEL): New.
25961 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25962 (processor_type): Add PROCESSOR_INTEL.
25963 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25964 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25966 2014-01-17 Marek Polacek <polacek@redhat.com>
25969 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25972 2014-01-17 Richard Biener <rguenther@suse.de>
25974 PR tree-optimization/46590
25975 * opts.c (default_options_table): Add entries for
25976 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25977 all enabled at -O1 but not for -Og.
25978 * common.opt (fbranch-count-reg): Remove Init(1).
25979 (fmove-loop-invariants): Likewise.
25980 (ftree-pta): Likewise.
25982 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25984 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25985 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25986 decls to at least the GCC 4.8 used alignments.
25989 * tree-nested.c (convert_nonlocal_reference_stmt,
25990 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25991 of GIMPLE_BIND stmts, adjust associated decls.
25993 2014-01-17 Richard Biener <rguenther@suse.de>
25995 PR tree-optimization/46590
25996 * vec.h (vec<>::bseach): New member function implementing
25997 binary search according to C89 bsearch.
25998 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25999 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26000 bitmap pointer again. Make accesses_in_loop a flat array.
26001 (mem_ref_obstack): New global.
26002 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26003 (mark_ref_stored): Likewise.
26004 (ref_indep_loop_p_2): Likewise.
26005 (set_ref_stored_in_loop): New helper function.
26006 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26007 (memref_free): Adjust.
26008 (record_mem_ref_loc): Simplify.
26009 (gather_mem_refs_stmt): Adjust.
26010 (sort_locs_in_loop_postorder_cmp): New function.
26011 (analyze_memory_references): Sort accesses_in_loop after
26012 loop postorder number.
26013 (find_ref_loc_in_loop_cmp): New function.
26014 (for_all_locs_in_loop): Find relevant cluster of locs in
26015 accesses_in_loop and iterate without recursion.
26016 (execute_sm): Avoid uninit warning.
26017 (struct ref_always_accessed): Simplify.
26018 (ref_always_accessed::operator ()): Likewise.
26019 (ref_always_accessed_p): Likewise.
26020 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26021 loop postorder numbers here.
26022 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26025 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26028 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26029 on decls for which assemble_alias has been called.
26031 2014-01-17 Nick Clifton <nickc@redhat.com>
26033 * config/msp430/msp430.opt: (mcpu): New option.
26034 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26035 (msp430_option_override): Parse target_cpu. If the MCU name
26036 matches a generic string, clear target_mcu.
26037 (msp430_attr): Allow numeric interrupt values up to 63.
26038 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26039 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26041 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26043 * config/msp430/msp430.md (popm): Use %J rather than %I.
26044 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26045 (addhi_cy_i): Use immediate_operand for operand 2.
26046 * doc/invoke.texi: Document -mcpu option.
26048 2014-01-17 Richard Biener <rguenther@suse.de>
26050 PR rtl-optimization/38518
26051 * df.h (df_analyze_loop): Declare.
26052 * df-core.c: Include cfgloop.h.
26053 (df_analyze_1): Split out main part of df_analyze.
26054 (df_analyze): Adjust.
26055 (loop_inverted_post_order_compute): New function.
26056 (loop_post_order_compute): Likewise.
26057 (df_analyze_loop): New function avoiding whole-function
26058 postorder computes.
26059 * loop-invariant.c (find_defs): Use df_analyze_loop.
26060 (find_invariants): Adjust.
26061 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26063 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26065 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26066 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26068 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26070 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26071 traversal when removing references.
26073 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26076 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26078 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26080 PR middle-end/56791
26081 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26082 pushing a reload for an autoinc when we had previously reloaded an
26083 inner part of the address.
26085 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26087 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26089 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26090 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26091 when not giving up or versioning for alias only because of
26093 (vect_analyze_data_ref_dependences): Set to true.
26094 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26096 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26097 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26100 PR middle-end/58344
26101 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26104 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26105 operand 0 predicate for gathers, use a new pseudo as subtarget.
26107 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26109 PR middle-end/59609
26110 * lra-constraints.c (process_alt_operands): Add printing debug info.
26111 Check absence of input/output reloads for matched operands too.
26113 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26115 PR rtl-optimization/59835
26116 * ira.c (ira_init_register_move_cost): Increase cost for
26119 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26121 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26123 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26126 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26127 non-register objects. Use gen_(high/low)part more consistently.
26130 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26133 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26134 endian support, remove tests for WORDS_BIG_ENDIAN.
26135 (p8_mfvsrd_3_<mode>): Likewise.
26136 (reload_gpr_from_vsx<mode>): Likewise.
26137 (reload_gpr_from_vsxsf): Likewise.
26138 (p8_mfvsrd_4_disf): Likewise.
26140 2014-01-16 Richard Biener <rguenther@suse.de>
26142 PR rtl-optimization/46590
26143 * lcm.c (compute_antinout_edge): Use postorder iteration.
26144 (compute_laterin): Use inverted postorder iteration.
26146 2014-01-16 Nick Clifton <nickc@redhat.com>
26148 PR middle-end/28865
26149 * varasm.c (output_constant): Return the number of bytes actually
26151 (output_constructor_array_range): Update the field size with the
26152 number of bytes emitted by output_constant.
26153 (output_constructor_regular_field): Likewise. Also do not
26154 complain if the total number of bytes emitted is now greater
26155 than the expected fieldpos.
26156 * output.h (output_constant): Update prototype and descriptive comment.
26158 2014-01-16 Marek Polacek <polacek@redhat.com>
26160 PR middle-end/59827
26161 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26162 it is error_mark_node.
26164 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26166 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26167 VALID_AVX256_REG_OR_OI_MODE.
26169 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26171 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26172 current procedure should be profiled.
26174 2014-01-15 Andrew Pinski <apinski@cavium.com>
26176 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26177 of moving from/to the STACK_REG register class.
26179 2014-01-15 Richard Henderson <rth@redhat.com>
26182 * reginfo.c (global_regs_decl): Globalize.
26183 * rtl.h (global_regs_decl): Declare.
26184 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26185 reserved via global_regs.
26187 2014-01-15 Teresa Johnson <tejohnson@google.com>
26189 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26191 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26193 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26194 and vmulosh rather than call gen_vec_widen_smult_*.
26195 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26196 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26197 (vec_widen_smult_even_v16qi): Likewise.
26198 (vec_widen_umult_even_v8hi): Likewise.
26199 (vec_widen_smult_even_v8hi): Likewise.
26200 (vec_widen_umult_odd_v16qi): Likewise.
26201 (vec_widen_smult_odd_v16qi): Likewise.
26202 (vec_widen_umult_odd_v8hi): Likewise.
26203 (vec_widen_smult_odd_v8hi): Likewise.
26204 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26205 vmuloub rather than call gen_vec_widen_umult_*.
26206 (vec_widen_umult_lo_v16qi): Likewise.
26207 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26208 vmulosb rather than call gen_vec_widen_smult_*.
26209 (vec_widen_smult_lo_v16qi): Likewise.
26210 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26211 rather than call gen_vec_widen_umult_*.
26212 (vec_widen_umult_lo_v8hi): Likewise.
26213 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26214 rather than call gen_vec_widen_smult_*.
26215 (vec_widen_smult_lo_v8hi): Likewise.
26217 2014-01-15 Jeff Law <law@redhat.com>
26219 PR tree-optimization/59747
26220 * ree.c (find_and_remove_re): Properly handle case where a second
26221 eliminated extension requires widening a copy created for elimination
26222 of a prior extension.
26223 (combine_set_extension): Ensure that the number of hard regs needed
26224 for a destination register does not change when we widen it.
26226 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26228 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26229 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26230 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26231 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26232 (avr-*-rtems*): Likewise.
26233 (bfin*-rtems*): Likewise.
26234 (moxie-*-rtems*): Likewise.
26235 (h8300-*-rtems*): Likewise.
26236 (i[34567]86-*-rtems*): Likewise.
26237 (lm32-*-rtems*): Likewise.
26238 (m32r-*-rtems*): Likewise.
26239 (m68k-*-rtems*): Likewise.
26240 (microblaze*-*-rtems*): Likewise.
26241 (mips*-*-rtems*): Likewise.
26242 (powerpc-*-rtems*): Likewise.
26243 (sh-*-rtems*): Likewise.
26244 (sparc-*-rtems*): Likewise.
26245 (sparc64-*-rtems*): Likewise.
26246 (v850-*-rtems*): Likewise.
26247 (m32c-*-rtems*): Likewise.
26249 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26251 PR rtl-optimization/59511
26252 * ira.c (ira_init_register_move_cost): Use memory costs for some
26253 cases of register move cost calculations.
26254 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26255 instead of BB frequency.
26256 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26257 * lra-assigns.c (find_hard_regno_for): Ditto.
26259 2014-01-15 Richard Biener <rguenther@suse.de>
26261 PR tree-optimization/59822
26262 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26263 (vectorizable_load): Use it to hoist defs of uses of invariant
26264 loads out of the loop.
26266 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26267 Kugan Vivekanandarajah <kuganv@linaro.org>
26270 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26273 2014-01-15 Richard Biener <rguenther@suse.de>
26275 PR rtl-optimization/59802
26276 * lcm.c (compute_available): Use inverted postorder to seed
26277 the initial worklist.
26279 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26282 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26283 ADDR_REGS for invalid symrefs in non-PIC code.
26285 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26288 * builtins.c (determine_block_size): Initialize *probable_max_size
26289 even if len_rtx is CONST_INT.
26291 2014-01-14 Andrew Pinski <apinski@cavium.com>
26293 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26294 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26295 (cortexa53_tunings): Likewise.
26296 (aarch64_sched_issue_rate): New function.
26297 (TARGET_SCHED_ISSUE_RATE): Define.
26299 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26301 * ira-costs.c (find_costs_and_classes): Add missed
26302 ira_init_register_move_cost_if_necessary.
26304 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26307 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26309 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26312 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26313 to indicate if type is used for function return value. Warn ABI
26314 change if the vector mode isn't available for function return value.
26315 (ix86_function_arg_advance): Pass false to type_natural_mode.
26316 (ix86_function_arg): Likewise.
26317 (ix86_gimplify_va_arg): Likewise.
26318 (function_arg_32): Don't warn ABI change.
26319 (ix86_function_value): Pass true to type_natural_mode.
26320 (ix86_return_in_memory): Likewise.
26321 (ix86_struct_value_rtx): Removed.
26322 (TARGET_STRUCT_VALUE_RTX): Likewise.
26324 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26326 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26327 converting a conditional jump into a conditional return.
26329 2014-01-14 Richard Biener <rguenther@suse.de>
26331 PR tree-optimization/58921
26332 PR tree-optimization/59006
26333 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26334 hoisting invariant stmts.
26335 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26336 invariant loads on the preheader edge if possible.
26338 2014-01-14 Joey Ye <joey.ye@arm.com>
26340 * doc/plugin.texi (Building GCC plugins): Update to C++.
26342 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26344 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26345 (_mm_rcp28_round_ss): Ditto.
26346 (_mm_rsqrt28_round_sd): Ditto.
26347 (_mm_rsqrt28_round_ss): Ditto.
26348 (_mm_rcp28_sd): Ditto.
26349 (_mm_rcp28_ss): Ditto.
26350 (_mm_rsqrt28_sd): Ditto.
26351 (_mm_rsqrt28_ss): Ditto.
26352 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26353 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26354 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26355 (IX86_BUILTIN_RCP28SD): Ditto.
26356 (IX86_BUILTIN_RCP28SS): Ditto.
26357 (IX86_BUILTIN_RSQRT28SD): Ditto.
26358 (IX86_BUILTIN_RSQRT28SS): Ditto.
26359 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26360 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26361 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26362 (ix86_expand_special_args_builtin): Expand new FTYPE.
26363 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26364 (srcp14<mode>): Make insn unary.
26365 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26366 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26367 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26368 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26369 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26370 Fix rounding: make it SAE only.
26371 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26373 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26375 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26376 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26377 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26378 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26379 (round_saeonly_mask_scalar_operand4): Ditto.
26380 (round_saeonly_mask_scalar_op3): Ditto.
26381 (round_saeonly_mask_scalar_op4): Ditto.
26383 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26385 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26386 Implement -maltivec=be for vec_insert and vec_extract.
26388 2014-01-10 DJ Delorie <dj@redhat.com>
26390 * config/msp430/msp430.md (call_internal): Don't allow memory
26391 references with SP as the base register.
26392 (call_value_internal): Likewise.
26393 * config/msp430/constraints.md (Yc): New. For memory references
26394 that don't use SP as a base register.
26396 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26397 "an integer without a # prefix"
26398 * config/msp430/msp430.md (epilogue_helper): Use it.
26400 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26403 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26404 AVX512F gather builtins.
26405 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26406 on gather decls with INTEGER_TYPE masktype.
26407 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26408 directly into the builtin rather than hoisting it before loop.
26410 PR tree-optimization/59387
26411 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26412 (scev_const_prop): If folded_casts and type has undefined overflow,
26413 use force_gimple_operand instead of force_gimple_operand_gsi and
26414 for each added stmt if it is assign with
26415 arith_code_with_undefined_signed_overflow, call
26416 rewrite_to_defined_overflow.
26417 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26418 gimple-fold.h instead.
26419 (arith_code_with_undefined_signed_overflow,
26420 rewrite_to_defined_overflow): Moved to ...
26421 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26422 rewrite_to_defined_overflow): ... here. No longer static.
26423 Include gimplify-me.h.
26424 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26425 rewrite_to_defined_overflow): New prototypes.
26427 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26429 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26431 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26433 * builtins.c (get_object_alignment_2): Minor tweak.
26434 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26436 2014-01-13 Christian Bruel <christian.bruel@st.com>
26438 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26439 optimized non constant lengths.
26441 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26444 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26445 load as __atomic_load_N if possible.
26447 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26449 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26451 (rs6000_expand_builtin): Adjust call.
26453 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26456 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26457 * config/rs6000/rs6000.c: Include target-globals.h.
26458 (rs6000_set_current_function): Instead of doing target_reinit
26459 unconditionally, use save_target_globals_default_opts and
26460 restore_target_globals.
26462 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26464 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26465 (rs6000_expand_builtin): Handle mffs and mtfsf.
26466 (rs6000_init_builtins): Define mffs and mtfsf.
26467 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26468 (rs6000_mffs): New pattern.
26469 (rs6000_mtfsf): New pattern.
26471 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26473 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26474 Start narrowing with START. Apply candidate-use pair
26475 and check overall cost in narrowing.
26476 (iv_ca_prune): Pass new argument.
26478 2014-01-10 Jeff Law <law@redhat.com>
26480 PR middle-end/59743
26481 * ree.c (combine_reaching_defs): Ensure the defining statement
26482 occurs before the extension when optimizing extensions with
26483 different source and destination hard registers.
26485 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26488 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26489 vtables into the type inheritance graph.
26491 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26493 PR rtl-optimization/59754
26494 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26495 modes in the REGNO != REGNO case.
26497 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26499 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26501 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26503 PR tree-optimization/59745
26504 * tree-predcom.c (tree_predictive_commoning_loop): Call
26505 free_affine_expand_cache if giving up because components is NULL.
26507 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26508 GC in payload of target_globals struct instead of allocating them on
26509 the heap and the larger structs separately using GC.
26510 * target-globals.h (struct target_globals): Make regs, hard_regs,
26511 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26512 of GTY((skip)) and change type to void *.
26513 (reset_target_globals): Cast loads from those fields to corresponding
26516 2014-01-10 Steve Ellcey <sellcey@mips.com>
26519 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26520 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26521 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26523 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26526 * aarch64-modes.def (CC_Zmode): New flags mode.
26527 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26528 represents an equality.
26529 (aarch64_get_condition_code): Handle CC_Zmode.
26530 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26532 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26534 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26535 extraction in good case.
26537 2014-01-10 Richard Biener <rguenther@suse.de>
26539 PR tree-optimization/59374
26540 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26541 checking after SLP discovery. Mark stmts not participating
26542 in any SLP instance properly.
26544 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26546 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26547 when handling a SET rtx.
26549 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26551 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26552 (cortex-a57): Likewise.
26553 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26555 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26557 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26558 non-iwmmxt builtins.
26560 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26564 * ipa-devirt.c record_target_from_binfo): Take as argument
26565 stack of binfos and lookup matching one for virtual inheritance.
26566 (possible_polymorphic_call_targets_1): Update.
26568 2014-01-10 Huacai Chen <chenhc@lemote.com>
26570 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26571 kernel strings for Loongson-2E/2F/3A.
26573 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26575 PR middle-end/59670
26576 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26577 is_gimple_call before calling gimple_call_internal_p.
26579 2014-01-09 Steve Ellcey <sellcey@mips.com>
26581 * Makefile.in (TREE_FLOW_H): Remove.
26582 (TREE_SSA_H): Add file names from tree-flow.h.
26583 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26584 * tree.h: Remove tree-flow.h reference.
26585 * hash-table.h: Remove tree-flow.h reference.
26586 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26587 reference with tree-ssa-loop.h.
26589 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26591 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26592 default element-order behavior for -maltivec.
26593 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26594 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26595 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26596 when targeting big endian, at least for now.
26597 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26599 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26601 PR middle-end/47735
26602 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26603 var satisfies use_register_for_decl, just take into account type
26604 alignment, rather than decl alignment.
26606 PR tree-optimization/59622
26607 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26608 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26609 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26610 Don't devirtualize for inplace at all. For targets.length () == 1,
26611 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26613 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26615 * config/i386/i386.md (cpu): Remove the unused btver1.
26617 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26619 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26621 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26624 * tree-core.h (struct target_globals): New forward declaration.
26625 (struct tree_target_option): Add globals field.
26626 * tree.h (TREE_TARGET_GLOBALS): Define.
26627 (prepare_target_option_nodes_for_pch): New prototype.
26628 * target-globals.h (struct target_globals): Define even if
26629 !SWITCHABLE_TARGET.
26630 * tree.c (prepare_target_option_node_for_pch,
26631 prepare_target_option_nodes_for_pch): New functions.
26632 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26633 * config/i386/i386.c: Include target-globals.h.
26634 (ix86_set_current_function): Instead of doing target_reinit
26635 unconditionally, use save_target_globals_default_opts and
26636 restore_target_globals.
26638 2014-01-09 Richard Biener <rguenther@suse.de>
26640 PR tree-optimization/59715
26641 * tree-cfg.h (split_critical_edges): Declare.
26642 * tree-cfg.c (split_critical_edges): Export.
26643 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26645 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26647 * cfgexpand.c (expand_stack_vars): Optionally disable
26648 asan stack protection.
26649 (expand_used_vars): Likewise.
26650 (partition_stack_vars): Likewise.
26651 * asan.c (asan_emit_stack_protection): Optionally disable
26652 after return stack usage.
26653 (instrument_derefs): Optionally disable memory access instrumentation.
26654 (instrument_builtin_call): Likewise.
26655 (instrument_strlen_call): Likewise.
26656 (asan_protect_global): Optionally disable global variables protection.
26657 * doc/invoke.texi: Added doc for new options.
26658 * params.def: Added new options.
26659 * params.h: Likewise.
26661 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26663 PR rtl-optimization/59724
26664 * ifcvt.c (cond_exec_process_if_block): Don't call
26665 flow_find_head_matching_sequence with 0 longest_match.
26666 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26667 non-active insns if !stop_after.
26668 (try_head_merge_bb): Revert 2014-01-07 changes.
26670 2014-01-08 Jeff Law <law@redhat.com>
26672 * ree.c (get_sub_rtx): New function, extracted from...
26673 (merge_def_and_ext): Here.
26674 (combine_reaching_defs): Use get_sub_rtx.
26676 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26678 * cgraph.h (varpool_variable_node): Do not choke on null node.
26680 2014-01-08 Catherine Moore <clm@codesourcery.com>
26682 * config/mips/mips.md (simple_return): Attempt to use JRC
26684 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26686 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26688 PR rtl-optimization/59137
26689 * reorg.c (steal_delay_list_from_target): Call update_block for
26691 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26693 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26695 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26696 two duplicate entries.
26698 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26701 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26703 * config/mips/mips.c (mips_truncated_op_cost): New function.
26704 (mips_rtx_costs): Adjust test for BADDU.
26705 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26707 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26709 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26710 (*baddu_si): ...this new pattern.
26712 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26715 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26717 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26719 PR middle-end/57748
26720 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26722 (expand_expr, expand_normal): Adjust.
26723 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26724 inner_reference_p. Use inner_reference_p to expand inner references.
26725 (store_expr): Adjust.
26726 * cfgexpand.c (expand_call_stmt): Adjust.
26728 2014-01-08 Rong Xu <xur@google.com>
26730 * gcov-io.c (gcov_var): Move from gcov-io.h.
26731 (gcov_position): Ditto.
26732 (gcov_is_error): Ditto.
26733 (gcov_rewrite): Ditto.
26734 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26735 only part to libgcc/libgcov.h.
26737 2014-01-08 Marek Polacek <polacek@redhat.com>
26739 PR middle-end/59669
26740 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26742 2014-01-08 Marek Polacek <polacek@redhat.com>
26745 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26747 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26749 PR rtl-optimization/59649
26750 * stor-layout.c (get_mode_bounds): For BImode return
26751 0 and STORE_FLAG_VALUE.
26753 2014-01-08 Richard Biener <rguenther@suse.de>
26755 PR middle-end/59630
26756 * gimple.h (is_gimple_builtin_call): Remove.
26757 (gimple_builtin_call_types_compatible_p): New.
26758 (gimple_call_builtin_p): New overload.
26759 * gimple.c (is_gimple_builtin_call): Remove.
26760 (validate_call): Rename to ...
26761 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26762 check return types.
26763 (validate_type): New static function.
26764 (gimple_call_builtin_p): New overload and adjust.
26765 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26766 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26767 (gimple_fold_stmt_to_constant_1): Likewise.
26768 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26770 2014-01-08 Richard Biener <rguenther@suse.de>
26772 PR middle-end/59471
26773 * gimplify.c (gimplify_expr): Gimplify register-register type
26774 VIEW_CONVERT_EXPRs to separate stmts.
26776 2014-01-07 Jeff Law <law@redhat.com>
26778 PR middle-end/53623
26779 * ree.c (combine_set_extension): Handle case where source
26780 and destination registers in an extension insn are different.
26781 (combine_reaching_defs): Allow source and destination registers
26782 in extension to be different under limited circumstances.
26783 (add_removable_extension): Remove restriction that the
26784 source and destination registers in the extension are the same.
26785 (find_and_remove_re): Emit a copy from the extension's
26786 destination to its source after the defining insn if
26787 the source and destination registers are different.
26789 PR middle-end/59285
26790 * ifcvt.c (merge_if_block): If we are merging a block with more than
26791 one successor with a block with no successors, remove any BARRIER
26792 after the second block.
26794 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26796 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26798 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26801 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26802 for 14-bit register offsets when INT14_OK_STRICT is false.
26804 2014-01-07 Roland Stigge <stigge@antcom.de>
26805 Michael Meissner <meissner@linux.vnet.ibm.com>
26808 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26809 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26811 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26813 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26816 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26818 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26819 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26820 rtx is const0_rtx or not.
26822 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26825 * target-globals.c (save_target_globals): Remove this_fn_optab
26827 * toplev.c: Include optabs.h.
26828 (target_reinit): Temporarily restore the global options if another
26829 set of options are in force.
26831 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26833 PR rtl-optimization/58668
26834 * cfgcleanup.c (flow_find_cross_jump): Don't count
26835 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26836 to determine what is counted.
26837 (flow_find_head_matching_sequence): Use active_insn_p to determine
26839 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26841 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26842 determine what is counted.
26844 PR tree-optimization/59643
26845 * tree-predcom.c (split_data_refs_to_components): If one dr is
26846 read and one write, determine_offset fails and the write isn't
26847 in the bad component, just put the read into the bad component.
26849 2014-01-07 Mike Stump <mikestump@comcast.net>
26850 Jakub Jelinek <jakub@redhat.com>
26853 * tree-core.h (struct tree_optimization_option): Change optabs
26854 type from unsigned char * to void *.
26855 * optabs.c (init_tree_optimization_optabs): Adjust
26856 TREE_OPTIMIZATION_OPTABS initialization.
26858 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26861 * config/i386/i386.h (struct machine_function): Add
26862 no_drap_save_restore field.
26863 * config/i386/i386.c (ix86_save_reg): Use
26864 !cfun->machine->no_drap_save_restore instead of
26865 crtl->stack_realign_needed.
26866 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26867 this function clears frame_pointer_needed. Set
26868 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26869 and DRAP reg is needed.
26871 2014-01-06 Marek Polacek <polacek@redhat.com>
26874 * doc/implement-c.texi: Mention that other integer types are
26875 permitted as bit-field types in strictly conforming mode.
26877 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26879 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26880 is newly allocated.
26882 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26884 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26886 2014-01-06 Martin Jambor <mjambor@suse.cz>
26889 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26891 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26893 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26897 * var-tracking.c (add_stores): Preserve the value of the source even if
26898 we don't record the store.
26900 2014-01-06 Terry Guo <terry.guo@arm.com>
26902 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26904 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26907 * config/darwin.c (darwin_function_section): Adjust return values to
26908 correspond to optimisation changes made in r206070.
26910 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26912 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26913 from prefetch_block tune setting.
26914 (nocona_cost): Correct size of prefetch block to 64.
26916 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26918 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26919 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26920 used to save the static chain register in the computation of the offset
26921 from which the FP registers need to be restored.
26923 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26925 PR tree-optimization/59519
26926 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26927 ICE if get_current_def (current_new_name) is already non-NULL, as long
26928 as it is a phi result of some other phi in *new_exit_bb that has
26931 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26932 or vmovdqu* for misaligned_operand.
26933 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26934 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26935 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26936 aligned_mem for AVX512F masked aligned load and store builtins and for
26937 non-temporal moves.
26939 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26941 PR tree-optimization/59651
26942 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26943 Address range for negative step should be added by TYPE_SIZE_UNIT.
26945 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26947 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26948 overlapping registers also for registers other than the stack pointer.
26950 2014-01-03 Marek Polacek <polacek@redhat.com>
26953 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26956 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26959 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26962 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26963 (push splitter): Use <P:MODE_SIZE> instead of
26964 GET_MODE_SIZE (<P:MODE>mode).
26965 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26966 (mov -1, reg peephole2): Likewise.
26967 * config/i386/sse.md (*mov<mode>_internal,
26968 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26969 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26970 *<code><mode>3, *andnot<mode>3<mask_name>,
26971 <mask_codefor><code><mode>3<mask_name>): Likewise.
26972 * config/i386/subst.md (mask_mode512bit_condition,
26973 sd_mask_mode512bit_condition): Likewise.
26975 2014-01-02 Xinliang David Li <davidxl@google.com>
26977 PR tree-optimization/59303
26978 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26979 (dump_predicates): Better output format.
26980 (pred_equal_p): New function.
26981 (is_neq_relop_p): Ditto.
26982 (is_neq_zero_form_p): Ditto.
26983 (pred_expr_equal_p): Ditto.
26984 (pred_neg_p): Ditto.
26985 (simplify_pred): Ditto.
26986 (simplify_preds_2): Ditto.
26987 (simplify_preds_3): Ditto.
26988 (simplify_preds_4): Ditto.
26989 (simplify_preds): Ditto.
26990 (push_pred): Ditto.
26991 (push_to_worklist): Ditto.
26992 (get_pred_info_from_cmp): Ditto.
26993 (is_degenerated_phi): Ditto.
26994 (normalize_one_pred_1): Ditto.
26995 (normalize_one_pred): Ditto.
26996 (normalize_one_pred_chain): Ditto.
26997 (normalize_preds): Ditto.
26998 (normalize_cond_1): Remove function.
26999 (normalize_cond): Ditto.
27000 (is_gcond_subset_of): Ditto.
27001 (is_subset_of_any): Ditto.
27002 (is_or_set_subset_of): Ditto.
27003 (is_and_set_subset_of): Ditto.
27004 (is_norm_cond_subset_of): Ditto.
27005 (pred_chain_length_cmp): Ditto.
27006 (convert_control_dep_chain_into_preds): Type change.
27007 (find_predicates): Ditto.
27008 (find_def_preds): Ditto.
27009 (destroy_predicates_vecs): Ditto.
27010 (find_matching_predicates_in_rest_chains): Ditto.
27011 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27012 (is_pred_expr_subset): Ditto.
27013 (is_pred_chain_subset_of): Ditto.
27014 (is_included_in): Ditto.
27015 (is_superset_of): Ditto.
27017 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27019 Update copyright years.
27021 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27023 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27024 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27025 config/arc/arc.md, config/arc/arc.opt,
27026 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27027 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27028 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27029 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27030 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27031 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27032 vtable-verify.c, vtable-verify.h: Use the standard form for the
27035 2014-01-02 Tobias Burnus <burnus@net-b.de>
27037 * gcc.c (process_command): Update copyright notice dates.
27038 * gcov-dump.c: Ditto.
27040 * doc/cpp.texi: Bump @copying's copyright year.
27041 * doc/cppinternals.texi: Ditto.
27042 * doc/gcc.texi: Ditto.
27043 * doc/gccint.texi: Ditto.
27044 * doc/gcov.texi: Ditto.
27045 * doc/install.texi: Ditto.
27046 * doc/invoke.texi: Ditto.
27048 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27050 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27052 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27054 * config/i386/sse.md (*mov<mode>_internal): Guard
27055 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27057 PR rtl-optimization/59647
27058 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27059 new_rtx into UNSIGNED_FLOAT rtxes.
27061 Copyright (C) 2014 Free Software Foundation, Inc.
27063 Copying and distribution of this file, with or without modification,
27064 are permitted in any medium without royalty provided the copyright
27065 notice and this notice are preserved.