1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * fwprop.c: Include rtl-iter.h.
4 (varying_mem_p): Turn from being a for_each_rtx callback to being
5 a function that examines each subrtx itself.
6 (propagate_rtx): Update accordingly.
8 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
10 * function.c: Include rtl-iter.h
11 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
12 callback to being a function that examines each subrtx itself.
13 Return the changed flag.
14 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
15 (instantiate_virtual_regs): Update calls accordingly.
17 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19 * final.c: Include rtl-iter.h.
20 (mark_symbol_ref_as_used): Delete.
21 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
24 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
26 * emit-rtl.c: Include rtl-iter.h.
27 (find_auto_inc): Turn from being a for_each_rtx callback to being
28 a function that examines each subrtx itself. Assume the first operand
29 to an RTX_AUTOINC is the automodified register.
30 (try_split): Update call accordingly.
32 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
34 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
35 Return a bool, inverting the result so that 0/false means "not ok".
36 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
38 (mem_loc_descriptor, add_const_value_attribute)
39 (resolve_addr_in_expr): Update calls accordingly.
41 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
43 * dwarf2out.c: Include rtl-iter.h.
44 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
45 Remove unused data parameter. Return a bool, inverting the result
46 so that 0/false means "not ok".
47 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
48 instead of for_each_rtx.
50 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
52 * dse.c: Include rtl-iter.h.
53 (check_mem_read_rtx): Change void * parameter to real type.
55 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
56 for_each_rtx. Don't handle null rtxes.
58 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
60 * df-problems.c: Include rtl-iter.h.
61 (find_memory): Turn from being a for_each_rtx callback to being
62 a function that examines each subrtx itself. Continue to look for
63 volatile references even after a nonvolatile one has been found.
64 (can_move_insns_across): Update calls accordingly.
66 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
68 * ddg.c (walk_mems_2, walk_mems_1): Delete.
69 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
70 to iterate over subrtxes. Return a bool rather than an int.
72 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
74 * ddg.c: Include rtl-iter.h.
75 (mark_mem_use_1): Rename to...
76 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
77 instead of for_each_rtx.
78 (mem_read_insn_p): Update accordingly.
80 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
82 * cse.c (change_cc_mode_args): Delete.
83 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
84 a function that examines each subrtx itself. Take the fields of
85 change_cc_mode_args as argument and return void.
86 (cse_change_cc_mode_insn): Update calls accordingly.
88 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
90 * cse.c (is_dead_reg): Change argument to const_rtx.
91 (dead_debug_insn_data): Delete.
92 (is_dead_debug_insn): Expand commentary. Turn from being a
93 for_each_rtx callback to being a function that examines
94 each subrtx itself. Take the fields of dead_debug_insn_data
96 (delete_trivially_dead_insns): Update call accordingly.
98 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
100 * cse.c (check_for_label_ref): Move earlier in file. Turn from
101 being a for_each_rtx callback to being a function that examines
103 (cse_extended_basic_block): Update call accordingly.
105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
107 * cse.c (check_dependence_data): Delete.
108 (check_dependence): Change from being a for_each_rtx callback to being
109 a function that examines all subrtxes itself. Don't handle null rtxes.
110 (invalidate): Update call accordingly.
112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
114 * cse.c: Include rtl-iter.h.
115 (approx_reg_cost_1): Delete.
116 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
117 Don't handle null rtxes.
119 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
121 * cfgcleanup.c: Include rtl-iter.h.
122 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
123 to being a function that examines each subrtx itself.
124 (thread_jump): Update accordingly.
126 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
128 * combine-stack-adj.c: Include rtl-iter.h.
129 (record_stack_refs_data): Delete.
130 (record_stack_refs): Turn from being a for_each_rtx callback
131 to being a function that examines each subrtx itself.
132 Take a pointer to the reflist. Invert sense of return value
133 so that true means success and false means failure. Don't
135 (combine_stack_adjustments_for_block): Update accordingly.
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
139 * combine.c (record_truncated_value): Turn from being a for_each_rtx
140 callback to a function that takes an rtx and returns a bool
141 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
146 * combine.c: Include rtl-iter.h.
147 (unmentioned_reg_p_1): Delete.
148 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
149 Don't handle null rtxes.
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
153 * calls.c: Include rtl-iter.h.
154 (internal_arg_pointer_based_exp_1): Delete.
155 (internal_arg_pointer_based_exp): Take a const_rtx.
156 Use FOR_EACH_SUBRTX to iterate over subrtxes.
158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
160 * caller-save.c: Include rtl-iter.h.
161 (add_used_regs_1): Delete.
162 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
163 to iterate over subrtxes. Assert that any remaining pseudos
166 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
168 * bt-load.c: Include rtl-iter.h.
169 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
170 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
171 to iterate over subrtxes.
172 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
173 find_btr_use rather than btr_referenced_p.
175 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
177 * alias.c: Include rtl-iter.h.
178 (refs_newer_value_cb): Delete.
179 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
181 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
183 * rtl-iter.h: New file.
184 * rtlanal.c: Include it.
185 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
186 (generic_subrtx_iterator <T>::add_single_to_queue)
187 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
188 (generic_subrtx_iterator <T>::free_array): New functions.
189 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
190 (generic_subrtx_iterator <const_rtx_accessor>)
191 (generic_subrtx_iterator <rtx_var_accessor>
192 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
193 (setup_reg_subrtx_bounds): New function.
194 (init_rtlanal): Call it.
196 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
199 * config/sh/sh.md (ashlsi3): Handle negative shift count for
201 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
203 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
205 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
209 * rtl.h (JUMP_LABEL_AS_INSN): New.
211 2014-08-27 David Malcolm <dmalcolm@redhat.com>
213 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
215 (alloc_EXPR_LIST): Strengthen return type from rtx to
217 (remove_free_EXPR_LIST_node): Likewise for param.
218 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
219 from rtx to rtx_expr_list *.
220 * sched-int.h (struct deps_desc): Strengthen fields
221 "pending_read_mems" and "pending_write_mems" from rtx to
224 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
225 rtx to rtx_expr_list *.
226 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
227 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
229 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
230 from rtx to rtx_expr_list *.
231 * loop-iv.c (simplify_using_initial_values): Strengthen local
232 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
233 "pnote_next" from rtx * to rtx_expr_list **.
234 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
235 param "exprp" from rtx * to rtx_expr_list **.
236 (add_insn_mem_dependence): Strengthen local "mem_list" from
237 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
239 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
240 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
241 param "old_mems_p" from rtx * to rtx_expr_list **.
242 * var-tracking.c (struct adjust_mem_data): Strengthen field
243 "side_effects" from rtx to rtx_expr_list *.
244 (adjust_insn): Replace NULL_RTX with NULL when assigning to
246 (prepare_call_arguments): Likewise.
248 2014-08-27 David Malcolm <dmalcolm@redhat.com>
250 * function.h (struct rtl_data): Strengthen field
251 "x_stack_slot_list" from rtx to rtx_expr_list *.
253 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
254 when assigning to stack_slot_list.
256 2014-08-27 David Malcolm <dmalcolm@redhat.com>
258 * function.h (struct rtl_data): Strengthen field
259 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
260 * rtl.h (remove_node_from_expr_list): Strengthen second param from
261 rtx * to rtx_expr_list **.
263 * cfgbuild.c (make_edges): In loop over
264 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
265 rtx_expr_list *, and use methods of the latter class to clarify
267 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
268 rtx_expr_list *, and use methods of the latter class to clarify
270 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
271 * reload1.c (set_initial_label_offsets): Likewise for local "x".
272 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
273 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
274 to rtx_expr_list *. Use methods of the latter class to clarify
277 2014-08-27 David Malcolm <dmalcolm@redhat.com>
279 * function.h (struct expr_status): Strengthen field
280 "x_forced_labels" from rtx to rtx_expr_list *.
282 * cfgbuild.c (make_edges): Split local "x" into two locals,
283 strengthening one from rtx to rtx_expr_list *, and using methods
285 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
286 loop over forced_labels, introduce strengthen it from rtx to
287 rtx_expr_list *, using methods to clarify the code.
288 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
289 to rtx_expr_list *, using methods of said class to clarify the
291 * reload1.c (set_initial_label_offsets): Split local "x" into two
292 per-loop variables, strengthening the first from rtx to
293 rtx_expr_list * and using methods.
295 2014-08-27 David Malcolm <dmalcolm@redhat.com>
297 * coretypes.h (class rtx_expr_list): Add forward declaration.
298 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
299 * gengenrtl.c (special_rtx): Add EXPR_LIST.
300 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
301 invariant: GET_CODE (X) == EXPR_LIST.
302 (is_a_helper <rtx_expr_list *>::test): New.
303 (rtx_expr_list::next): New.
304 (rtx_expr_list::element): New.
305 (gen_rtx_EXPR_LIST): New.
307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
309 * varasm.c (mark_constants): Convert a GET_CODE check into a
310 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
311 Use methods of rtx_sequence to clarify the code.
313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
315 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
316 local "seq" via a checked cast, and use methods of rtx_sequence
317 to simplify the code.
319 2014-08-27 David Malcolm <dmalcolm@redhat.com>
321 * resource.c (mark_referenced_resources): Strengthen local
322 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
323 using methods of rtx_sequence to clarify the code.
324 (find_dead_or_set_registers): Within the switch statement, convert
325 a GET_CODE check to a dyn_cast, introducing local "seq". Within
326 the JUMP_P handling, introduce another local "seq", adding a
327 checked cast to rtx_sequence *. In both cases, use methods of
328 rtx_sequence to clarify the code.
329 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
330 via a checked cast, and use methods of rtx_sequence to simplify
333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
335 * reorg.c (redundant_insn): In two places in the function, replace
336 a check of GET_CODE with a dyn_cast, introducing local "seq", and
337 usings methods of rtx_sequence to clarify the code.
339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
341 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
342 local "seq" with a checked cast, and use methods of rtx_sequence
345 2014-08-27 David Malcolm <dmalcolm@redhat.com>
347 * function.c (contains): Introduce local "seq" for PATTERN (insn),
348 with a checked cast, in the region for where we know it's a
349 SEQUENCE. Use methods of rtx_sequence.
351 2014-08-27 David Malcolm <dmalcolm@redhat.com>
353 * final.c (get_attr_length_1): Replace GET_CODE check with a
354 dyn_cast, introducing local "seq" and the use of methods of
356 (shorten_branches): Likewise, introducing local "body_seq".
357 Strengthen local "inner_insn" from rtx to rtx_insn *.
358 (reemit_insn_block_notes): Replace GET_CODE check with a
359 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
360 Use methods of rtx_sequence.
361 (final_scan_insn): Likewise, introducing local "seq" for when
362 "body" is known to be a SEQUENCE, using its methods.
364 2014-08-27 David Malcolm <dmalcolm@redhat.com>
366 * except.c (can_throw_external): Strengthen local "seq" from rtx
367 to rtx_sequence *. Use methods of rtx_sequence.
368 (insn_nothrow_p): Likewise.
370 2014-08-27 David Malcolm <dmalcolm@redhat.com>
372 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
373 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
374 Use methods of rtx_sequence.
375 (scan_trace): Likewise for local "pat".
377 2014-08-27 David Malcolm <dmalcolm@redhat.com>
379 * coretypes.h (class rtx_sequence): Add forward declaration.
380 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
381 invariant: GET_CODE (X) == SEQUENCE.
382 (is_a_helper <rtx_sequence *>::test): New.
383 (is_a_helper <const rtx_sequence *>::test): New.
384 (rtx_sequence::len): New.
385 (rtx_sequence::element): New.
386 (rtx_sequence::insn): New.
388 2014-08-27 David Malcolm <dmalcolm@redhat.com>
390 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
392 (alloc_INSN_LIST): Strengthen return type from rtx to
394 (copy_INSN_LIST): Likewise for return type and param.
395 (concat_INSN_LIST): Likewise for both params and return type.
396 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
397 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
398 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
399 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
401 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
402 "implicit_sets", "control_uses", "clobbers" from rtx to
404 (struct deps_desc): Likewise for fields "pending_read_insns",
405 "pending_write_insns", "pending_jump_insns",
406 "last_pending_memory_flush", "last_function_call",
407 "last_function_call_may_noreturn", "sched_before_next_call",
408 "sched_before_next_jump".
409 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
410 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
412 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
413 from rtx to rtx_insn_list *.
414 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
417 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
419 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
421 (queue_insn): Likewise for local "link".
422 (struct haifa_saved_data): Strengthen field "insn_queue" from
423 rtx * to rtx_insn_list **.
424 (save_backtrack_point): Update allocation of save->insn_queue to
425 reflect the strengthening of elements from rtx to rtx_insn_list *.
426 (queue_to_ready): Strengthen local "link" from rtx to
427 rtx_insn_list *; use methods "next" and "insn" when traversing the
429 (early_queue_to_ready): Likewise for locals "link", "next_link",
431 (schedule_block): Update allocation of insn_queue to reflect the
432 strengthening of elements from rtx to rtx_insn_list *. Strengthen
433 local "link" from rtx to rtx_insn_list *, and use methods when
435 (add_to_speculative_block): Strengthen locals "twins" and
436 "next_node" from rtx to rtx_insn_list *, and use methods when
437 working with them. Strengthen local "twin" from rtx to
438 rtx_insn *, eliminating a checked cast.
439 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
440 from rtx to rtx_insn_list *, and use methods when working with
443 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
444 from rtx to rtx_insn_list *, adding a checked cast.
445 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
447 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
448 "newlink" from rtx to rtx_insn_list *. Strengthen local
449 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
450 from rtx to rtx_insn *.
451 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
452 from rtx to rtx_insn_list *. Use methods of the latter class.
453 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
454 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
455 (remove_free_INSN_LIST_node): Strengthen return type and local
456 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
457 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
458 rtx_insn_list *, using "insn" method.
460 * sched-deps.c (add_dependence_list): Strengthen param "list"
461 from rtx to rtx_insn_list *, and use methods when working with it.
462 (add_dependence_list_and_free): Strengthen param "listp" from
463 rtx * to rtx_insn_list **.
464 (remove_from_dependence_list): Strenghten param "listp" from rtx *
465 to rtx_insn_list **, and use methods when working with *listp.
466 (remove_from_both_dependence_lists): Strengthen param "listp" from
467 rtx * to rtx_insn_list **
468 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
469 to rtx_insn_list **. Eliminate local "link", in favor of two new
470 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
472 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
473 by introducing local "cond_deps".
474 (remove_from_deps): Strengthen param "insn" from rtx to
477 * sched-rgn.c (concat_insn_mem_list): Strengthen param
478 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
479 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
480 Use methods of rtx_insn_list.
482 * store-motion.c (struct st_expr): Strengthen fields
483 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
484 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
486 (find_moveable_store): Split out "tmp" into multiple more-tightly
487 scoped locals. Use methods of rtx_insn_list *.
488 (compute_store_table): Strengthen local "tmp" from rtx to
489 rtx_insn *. Use methods of rtx_insn_list *.
491 2014-08-27 David Malcolm <dmalcolm@redhat.com>
493 * coretypes.h (class rtx_insn_list): Add forward declaration.
494 * rtl.h (class rtx_insn_list): New subclass of rtx_def
495 (is_a_helper <rtx_insn_list *>::test): New.
496 (rtx_insn_list::next): New.
497 (rtx_insn_list::insn): New.
498 (gen_rtx_INSN_LIST): Add prototype.
499 * emit-rtl.c (gen_rtx_INSN_LIST): New.
500 * gengenrtl.c (special_rtx): Add INSN_LIST.
502 2014-08-27 David Malcolm <dmalcolm@redhat.com>
504 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
505 "prev" from rtx to rtx_insn *.
507 2014-08-27 David Malcolm <dmalcolm@redhat.com>
509 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
510 functions. Require merely an rtx for now, not an rtx_insn *.
511 (BLOCK_FOR_INSN): Likewise.
512 (INSN_LOCATION): Likewise.
513 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
515 2014-08-27 David Malcolm <dmalcolm@redhat.com>
517 * rtl.h (PATTERN): Convert this macro into a pair of inline
518 functions, for now, requiring const_rtx and rtx.
520 2014-08-27 David Malcolm <dmalcolm@redhat.com>
522 * target.def (unwind_emit): Strengthen param "insn" from rtx to
524 (final_postscan_insn): Likewise.
525 (adjust_cost): Likewise.
526 (adjust_priority): Likewise.
527 (variable_issue): Likewise.
528 (macro_fusion_pair_p): Likewise.
529 (dfa_post_cycle_insn): Likewise.
530 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
531 (first_cycle_multipass_issue): Likewise.
532 (dfa_new_cycle): Likewise.
533 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
534 (speculate_insn): Likewise for param "insn".
535 (gen_spec_check): Likewise for params "insn" and "label".
536 (get_insn_spec_ds): Likewise for param "insn".
537 (get_insn_checked_ds): Likewise.
538 (dispatch_do): Likewise.
539 (dispatch): Likewise.
540 (cannot_copy_insn_p): Likewise.
541 (invalid_within_doloop): Likewise.
542 (legitimate_combined_insn): Likewise.
546 * doc/tm.texi: Automatically updated to reflect changes to
549 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
551 (schedule_block): Likewise.
552 (sched_init): Likewise.
553 (sched_speculate_insn): Strengthen param "insn" from rtx to
555 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
557 * hooks.c (hook_bool_rtx_true): Rename to...
558 hook_bool_rtx_insn_true): ...this, and strengthen first param from
560 (hook_constcharptr_const_rtx_null): Rename to...
561 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
562 first param from const_rtx to const rtx_insn *.
563 (hook_bool_rtx_int_false): Rename to...
564 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
565 param from rtx to rtx_insn *.
566 (hook_void_rtx_int): Rename to...
567 (hook_void_rtx_insn_int): ...this, and strengthen first param from
570 * hooks.h (hook_bool_rtx_true): Rename to...
571 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
573 (hook_bool_rtx_int_false): Rename to...
574 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
575 param from rtx to rtx_insn *.
576 (hook_void_rtx_int): Rename to...
577 (hook_void_rtx_insn_int): ...this, and strengthen first param from
579 (hook_constcharptr_const_rtx_null): Rename to...
580 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
581 first param from const_rtx to const rtx_insn *.
583 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
584 and local "prev" from rtx to rtx_insn *.
586 * sched-int.h (sched_speculate_insn): Strengthen first param from
589 * sel-sched.c (create_speculation_check): Likewise for local "label".
590 * targhooks.c (default_invalid_within_doloop): Strengthen param
591 "insn" from const_rtx to const rtx_insn *.
592 * targhooks.h (default_invalid_within_doloop): Strengthen param
593 from const_rtx to const rtx_insn *.
595 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
596 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
598 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
600 (arc_invalid_within_doloop): Likewise, with const.
602 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
603 (arm_cannot_copy_insn_p): Likewise for param "insn".
604 (arm_unwind_emit): Likewise.
606 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
609 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
610 (c6x_variable_issue): Likewise. Removed now-redundant checked
612 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
614 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
615 Likewise for param "insn".
616 (epiphany_mode_after): Likewise.
617 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
618 params "insn", "dep_insn".
619 (epiphany_mode_needed): Likewise for param "insn".
620 (epiphany_mode_after): Likewise.
622 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
623 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
624 (ix86_avx_u128_mode_needed): Likewise.
625 (ix86_i387_mode_needed): Likewise.
626 (ix86_mode_needed): Likewise.
627 (ix86_avx_u128_mode_after): Likewise.
628 (ix86_mode_after): Likewise.
629 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
630 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
631 (ix86_adjust_priority): Likewise for param "insn".
632 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
633 (do_dispatch): Likewise.
634 (has_dispatch): Likewise.
635 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
637 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
638 reflect renaming of default hook implementation from
639 hook_constcharptr_const_rtx_null to
640 hook_constcharptr_const_rtx_insn_null.
641 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
643 (ia64_variable_issue): Likewise for param "insn".
644 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
645 (ia64_dfa_new_cycle): Likewise.
646 (ia64_get_insn_spec_ds): Likewise.
647 (ia64_get_insn_checked_ds): Likewise.
648 (ia64_speculate_insn): Likewise.
649 (ia64_gen_spec_check): Likewise for params "insn", "label".
650 (ia64_asm_unwind_emit): Likewise for param "insn".
652 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
654 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
656 (m68k_sched_variable_issue): Likewise for param "insn".
658 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
661 * config/microblaze/microblaze.c (microblaze_adjust_cost):
662 Likewise for params "insn", "dep".
664 * config/mips/mips.c (mips_adjust_cost): Likewise.
665 (mips_variable_issue): Likewise for param "insn".
666 (mips_final_postscan_insn): Likewise.
668 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
669 for params "insn", "dep".
671 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
673 (pa_adjust_priority): Likewise for param "insn".
675 * config/picochip/picochip.c (picochip_sched_adjust_cost):
676 Likewise for params "insn", "dep_insn".
678 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
680 (rs6000_variable_issue): Likewise.
681 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
682 (rs6000_debug_adjust_cost): Likewise.
683 (rs6000_adjust_priority): Likewise for param "insn".
684 (rs6000_use_sched_lookahead_guard): Likewise.
685 (get_next_active_insn): Likewise for return type and both params.
686 (redefine_groups): Likewise for params "prev_head_insn", "tail"
687 and locals "insn", "next_insn".
688 (pad_groups): Likewise.
690 * config/s390/s390.c (s390_adjust_priority): Likewise for param
692 (s390_cannot_copy_insn_p): Likewise.
693 (s390_sched_variable_issue): Likewise for third param, eliminating
695 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
696 default hook implementation from hook_constcharptr_const_rtx_null
697 to hook_constcharptr_const_rtx_insn_null.
699 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
700 from rtx to rtx_insn *.
701 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
702 (sh_variable_issue): Likewise for param "insn".
703 (sh_dfa_new_cycle): Likewise.
704 (sh_mode_needed): Likewise.
705 (sh_mode_after): Likewise.
707 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
708 params "insn", "dep_insn".
709 (hypersparc_adjust_cost): Likewise.
710 (sparc_adjust_cost): Likewise.
712 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
713 param, eliminated checked cast.
714 (spu_sched_adjust_cost): Likewise for first and third params.
716 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
717 params "insn" and "dep_insn" from rtx to rtx_insn *.
719 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
721 2014-08-27 David Malcolm <dmalcolm@redhat.com>
723 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
724 (set_is_load_p): ...this, updating to work on a SET pattern rather
726 (is_store_insn): Rename to...
727 (set_is_store_p): ...this, updating to work on a SET pattern
729 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
730 top of function to where it is needed. Rewrite the bogus
731 condition that checks for "insn" and "dep" being PARALLEL to
732 instead use single_set, introducing locals "insn_set" and
733 "dep_set". Given that we only ever returned "cost" for a non-pair
734 of SETs, bail out early if we don't have a pair of SET.
735 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
736 use the new locals "insn_set" and "dep_set", and update calls to
737 is_load_insn and is_store_insn to be calls to set_is_load_p and
740 2014-08-27 Guozhi Wei <carrot@google.com>
743 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
744 amount before using it.
746 2014-08-27 Richard Biener <rguenther@suse.de>
748 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
749 get_maxval_strlen inside a more useful API.
750 (gimple_fold_builtin_with_strlen): Remove and fold into ...
751 (gimple_fold_builtin): ... caller.
752 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
753 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
754 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
755 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
756 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
757 gimple_fold_builtin_sprintf): Adjust to compute maxval
760 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
763 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
765 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
767 Anna Tikhonova <anna.tikhonova@intel.com>
768 Ilya Tocar <ilya.tocar@intel.com>
769 Andrey Turetskiy <andrey.turetskiy@intel.com>
770 Ilya Verbin <ilya.verbin@intel.com>
771 Kirill Yukhin <kirill.yukhin@intel.com>
772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
775 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
776 Use `concat_tg_mode' attribute to determine asm register size.
778 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
780 Anna Tikhonova <anna.tikhonova@intel.com>
781 Ilya Tocar <ilya.tocar@intel.com>
782 Andrey Turetskiy <andrey.turetskiy@intel.com>
783 Ilya Verbin <ilya.verbin@intel.com>
784 Kirill Yukhin <kirill.yukhin@intel.com>
785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
788 (define_mode_iterator VI48_AVX512VL): New.
789 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
790 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
791 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
792 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
793 with VI1): Change mode iterator.
794 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
795 with VI_ULOADSTORE_BW_AVX512VL): New.
796 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
797 with VI_ULOADSTORE_F_AVX512VL): Ditto.
798 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
799 with VI1): Change mode iterator.
800 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
801 with VI_ULOADSTORE_BW_AVX512VL): New.
802 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
803 with VI_ULOADSTORE_F_AVX512VL): Ditto.
804 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
805 with VI1): Change mode iterator.
806 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
807 with VI_ULOADSTORE_BW_AVX512VL): New.
808 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
809 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
810 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
811 (define_insn "<avx512>_storedqu<mode>_mask" with
813 (define_insn "<avx512>_storedqu<mode>_mask" with
814 VI12_AVX512VL): Ditto.
816 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
818 Anna Tikhonova <anna.tikhonova@intel.com>
819 Ilya Tocar <ilya.tocar@intel.com>
820 Andrey Turetskiy <andrey.turetskiy@intel.com>
821 Ilya Verbin <ilya.verbin@intel.com>
822 Kirill Yukhin <kirill.yukhin@intel.com>
823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
826 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
827 (define_mode_iterator VI48_AVX512BW): New.
828 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
829 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
830 with VI48_AVX2_48_AVX512F): New.
831 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
832 with VI2_AVX512VL): Ditto.
834 2014-08-27 Richard Biener <rguenther@suse.de>
837 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
838 (fold_builtin_3): Do not fold strcat_chk here.
839 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
841 (gimple_fold_builtin): Fold strcat_chk here.
843 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
845 * dwarf2out.h (dwarf2out_decl): Remove prototype.
846 * dwarf2out.c (dwarf2out_decl): Make static.
848 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
850 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
852 2014-08-26 David Malcolm <dmalcolm@redhat.com>
854 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
855 from rtx to rtx_insn *.
856 (cselib_lookup_from_insn): Likewise for final param.
857 (cselib_subst_to_values_from_insn): Likewise.
858 (cselib_add_permanent_equiv): Likewise.
860 * cselib.c (cselib_current_insn): Likewise for this variable.
861 (cselib_subst_to_values_from_insn): Likewise for param "insn".
862 (cselib_lookup_from_insn): Likewise.
863 (cselib_add_permanent_equiv): Likewise for param "insn" and local
864 "save_cselib_current_insn".
865 (cselib_process_insn): Replace use of NULL_RTX with NULL.
867 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
868 from rtx to rtx_insn *.
870 2014-08-26 David Malcolm <dmalcolm@redhat.com>
872 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
875 2014-08-26 David Malcolm <dmalcolm@redhat.com>
877 * df.h (df_dump_insn_problem_function): Strengthen first param of
878 this callback from const_rtx to const rtx_insn *.
879 (struct df_insn_info): Strengthen field "insn" from rtx to
881 (DF_REF_INSN): Eliminate this function, reinstating the older
883 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
884 (df_reg_defined): Likewise.
885 (df_find_use): Likewise.
886 (df_reg_used): Likewise.
887 (df_dump_insn_top): Strengthen param 1 from const_rtx to
889 (df_dump_insn_bottom): Likewise.
890 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
891 (df_insn_debug_regno): Likewise.
892 (debug_df_insn): Likewise.
893 (df_rd_simulate_one_insn): Likewise for param 2.
894 (df_word_lr_simulate_defs): Likewise for param 1.
895 (df_word_lr_simulate_uses): Likewise.
896 (df_md_simulate_one_insn): Likewise for param 2.
897 (df_simulate_find_noclobber_defs): Likewise for param 1.
898 (df_simulate_find_defs): Likewise.
899 (df_simulate_defs): Likewise.
900 (df_simulate_uses): Likewise.
901 (df_simulate_one_insn_backwards): Likewise for param 2.
902 (df_simulate_one_insn_forwards): Likewise.
903 (df_uses_create): Likewise for param 2.
904 (df_insn_create_insn_record): Likewise for param 1.
905 (df_insn_delete): Likewise.
906 (df_insn_rescan): Likewise.
907 (df_insn_rescan_debug_internal): Likewise.
908 (df_insn_change_bb): Likewise.
909 (df_notes_rescan): Likewise.
910 * rtl.h (remove_death): Likewise for param 2.
911 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
913 * sched-int.h (reemit_notes): Strengthen param from rtx to
915 * valtrack.h (propagate_for_debug): Likewise for param 1.
917 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
918 local "tmp_rtx" from const_rtx to const rtx_insn *.
919 * combine.c (remove_death): Strengthen param "insn" from rtx to
921 (move_deaths): Likewise for local "where_dead".
922 * cse.c (delete_trivially_dead_insns): Introduce local
923 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
924 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
926 (df_reg_defined): Likewise.
927 (df_find_use): Likewise.
928 (df_reg_used): Likewise.
929 (df_dump_insn_problem_data): Strengthen param "insn" from
930 const_rtx to const rtx_insn *.
931 (df_dump_insn_top): Likewise.
932 (df_dump_insn_bottom): Likewise.
933 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
934 (df_insn_debug_regno): Likewise.
935 (debug_df_insn): Likewise.
936 (DF_REF_INSN): Delete.
937 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
938 from rtx to rtx_insn *.
939 (df_chain_insn_top_dump): Strengthen param "insn" from
940 const_rtx to const rtx_insn *.
941 (df_chain_insn_bottom_dump): Likewise.
942 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
944 (df_word_lr_simulate_uses): Likewise.
945 (df_print_note): Likewise.
946 (df_remove_dead_and_unused_notes): Likewise.
947 (df_set_unused_notes_for_mw): Likewise.
948 (df_set_dead_notes_for_mw): Likewise.
949 (df_create_unused_note): Likewise.
950 (df_simulate_find_defs): Likewise.
951 (df_simulate_find_uses): Likewise.
952 (df_simulate_find_noclobber_defs): Likewise.
953 (df_simulate_defs): Likewise.
954 (df_simulate_uses): Likewise.
955 (df_simulate_one_insn_backwards): Likewise.
956 (df_simulate_one_insn_forwards): Likewise.
957 (df_md_simulate_one_insn): Likewise.
958 * df-scan.c (df_uses_create): Likewise.
959 (df_insn_create_insn_record): Likewise.
960 (df_insn_delete): Likewise.
961 (df_insn_rescan): Likewise.
962 (df_insn_rescan_debug_internal): Likewise.
963 (df_insn_change_bb): Likewise.
964 (df_notes_rescan): Likewise.
965 (df_refs_add_to_chains): Likewise.
966 (df_insn_refs_verify): Likewise.
967 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
968 when invoking df_insn_delete.
969 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
970 (set_unique_reg_note): Add checked cast.
971 * final.c (cleanup_subreg_operands): Likewise.
972 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
973 "insn" from rtx to rtx_insn *.
974 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
975 "last" from rtx to rtx_insn *.
976 * ira-emit.c (change_regs_in_insn): New function.
977 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
978 Invoke change_regs_in_insn rather than change_regs.
979 * ira.c (update_equiv_regs): Strengthen locals "insn",
980 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
981 for_each_rtx_in_insn rather than for_each_rtx.
982 * recog.c (confirm_change_group): Add checked casts.
983 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
985 (peep2_fill_buffer): Add checked cast.
986 * rtlanal.c (remove_note): Likewise.
987 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
988 locals "next" "end" from rtx to rtx_insn *.
990 2014-08-26 David Malcolm <dmalcolm@redhat.com>
992 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
994 (struct reg_use_data): Likewise for field "insn".
995 (insn_cost): Likewise for param.
996 (real_insn_for_shadow): Likewise for return type and param.
997 (increase_insn_priority): Likewise for param 1.
998 (debug_dependencies): Likewise for both params.
1000 * haifa-sched.c (insn_delay): Likewise for param "insn".
1001 (real_insn_for_shadow): Likewise for return type and param "insn".
1002 (update_insn_after_change): Likewise for param "insn".
1003 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1005 (insn_cost): Likewise for param "insn".
1006 (increase_insn_priority): Likewise.
1007 (calculate_reg_deaths): Likewise.
1008 (setup_insn_reg_pressure_info): Likewise.
1009 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1010 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1011 (model_recompute): Likewise.
1012 (must_restore_pattern_p): Likewise for param "next".
1013 (model_excess_cost): Likewise for param "insn".
1014 (queue_remove): Likewise.
1015 (adjust_priority): Likewise for param "prev".
1016 (update_register_pressure): Likewise for param "insn".
1017 (setup_insn_max_reg_pressure): Likewise for local "insn".
1018 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1019 (model_add_to_schedule): Likewise.
1020 (model_reset_queue_indices): Likewise for local "insn".
1021 (unschedule_insns_until): Strengthen local "recompute_vec" from
1022 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1023 "con" from rtx to rtx_insn *.
1024 (restore_last_backtrack_point): Likewise for both locals "x". Add
1026 (estimate_insn_tick): Likewise for param "insn".
1027 (commit_schedule): Likewise for params "prev_head", "tail" and
1029 (verify_shadows): Likewise for locals "i1", "i2".
1030 (dump_insn_stream): Likewise for params "head", "tail" and locals
1031 "next_tail", "insn".
1032 (schedule_block): Likewise for locals "insn", "x". Add a checked
1034 (fix_inter_tick): Likewise for params "head", "tail".
1035 (create_check_block_twin): Likewise for local "jump".
1036 (haifa_change_pattern): Likewise for param "insn".
1037 (haifa_speculate_insn): Likewise.
1038 (dump_new_block_header): Likewise for params "head", "tail".
1039 (fix_jump_move): Likewise for param "jump".
1040 (move_block_after_check): Likewise.
1041 (sched_init_insn_luid): Likewise for param "insn".
1042 (sched_init_luids): Likewise for local "insn".
1043 (insn_luid): Likewise for param "insn".
1044 (init_h_i_d): Likewise.
1045 (haifa_init_h_i_d): Likewise for local "insn".
1046 (haifa_init_insn): Likewise for param "insn".
1047 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1049 (create_insn_reg_use): Likewise for param "insn".
1050 (setup_insn_reg_uses): Likewise. Add a checked cast.
1051 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1052 "tail" from rtx to rtx_insn *.
1053 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1054 "insn", "next_tail".
1056 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1058 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1059 from rtx to rtx_insn *.
1060 (model_add_to_schedule): Likewise for locals "start", "end",
1063 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1065 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1067 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1068 "to" and locals "insn", "next", "copy". Remove now-redundant
1071 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1073 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1074 rtx_insn * and param 4 from rtx * to rtx_insn **.
1075 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1076 param 2 from rtx * to rtx_insn **.
1078 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1079 rtx_insn * and final param from rtx * to rtx_insn **.
1081 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1082 from rtx to rtx_insn *.
1083 (try_head_merge_bb): Likewise for both locals named "move_upto".
1084 * df-problems.c (can_move_insns_across): Likewise for params
1085 "from", "to", "across_from", "across_to" and locals "insn",
1086 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1088 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1089 from rtx to rtx_insn *.
1090 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1091 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1092 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1094 (noce_try_abs): Likewise.
1095 (noce_get_condition): Likewise for param "jump". Strengthen param
1096 "earliest" from rtx * to rtx_insn **.
1097 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1099 (find_cond_trap): Likewise.
1100 (dead_or_predicable): Likewise for local "earliest".
1101 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1103 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1104 and local "prev". Strengthen param "earliest" from rtx * to
1106 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1107 Strengthen param "earliest" from rtx * to rtx_insn **.
1109 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1111 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1112 "to" and local "insn" from rtx to rtx_insn *.
1114 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1116 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1117 from rtx to rtx_insn *.
1118 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1119 (code_motion_path_driver): Likewise for local "last_insn".
1120 (simplify_changed_insns): Likewise for local "insn".
1122 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1124 * rtl.h (push_to_sequence): Strengthen param from rtx to
1126 (push_to_sequence2): Likewise for both params.
1127 (delete_insns_since): Likewise for param.
1128 (reorder_insns_nobb): Likewise for all three params.
1129 (set_new_first_and_last_insn): Likewise for both params.
1131 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1132 rtx_insn *. Remove now-redundant cast.
1133 (set_last_insn): Likewise.
1135 * builtins.c (expand_builtin_return): Strengthen local
1136 "call_fusage" from rtx to rtx_insn *.
1137 * cfgrtl.c (create_basic_block_structure): Likewise for local
1139 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1140 "first", "last" and local "insn".
1141 (delete_insns_since): Likewise for param "from".
1142 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1144 (push_to_sequence): Likewise for param "first" and local "last".
1145 (push_to_sequence2): Likewise for params "first" and "last".
1146 * lra.c (emit_add3_insn): Likewise for local "last".
1147 (lra_emit_add): Likewise.
1148 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1150 (process_address_1): Likewise for locals "insn", last".
1151 * modulo-sched.c (ps_first_note): Likewise for return type.
1152 * optabs.c (expand_binop_directly): Likewise for param "last".
1154 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1156 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1158 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1160 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1162 * function.h (struct sequence_stack): Strengthen fields "first"
1163 and "last" from rtx to rtx_insn *.
1164 (struct emit_status): Likewise for fields "x_first_insn" and
1167 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1168 (set_first_insn): Add checked cast.
1169 (get_last_insn): Remove now-redundant checked cast.
1170 (set_last_insn): Add checked cast.
1172 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1173 "saved_first" and "saved_last" from rtx to rtx_insn *.
1175 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1177 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1178 (unlink_insn_chain): Strengthen both params from rtx to
1181 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1183 (unlink_insn_chain): Likewise for params "first" and "last".
1184 Remove now-redundant checked cast.
1185 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1186 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1188 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1190 (add_insn): Likewise for param "insn" and local "prev".
1191 (add_insn_after_nobb): Likewise for both params and local "next".
1192 (add_insn_before_nobb): Likewise for both params and local "prev".
1193 (add_insn_after): Rename param "after" to "uncast_after",
1194 introducing local "after" with another checked cast.
1195 (add_insn_before): Rename params "insn" and "before", giving them
1196 "uncast_" prefixes, adding the old names back using checked casts.
1197 (emit_note_after): Likewise for param "after".
1198 (emit_note_before): Likewise for param "before".
1199 (emit_label): Add a checked cast.
1201 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1203 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1204 "insn" from rtx to rtx_insn *.
1206 * cselib.c (cselib_record_sets_hook): Likewise.
1208 * var-tracking.c (add_with_sets): Likewise, renaming back from
1209 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1212 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1214 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1215 and "header_" from rtx to rtx_insn *.
1216 (struct basic_block_d): Likewise for field "head_" within "x"
1217 field of union basic_block_il_dependent.
1218 (BB_HEAD): Drop function...
1219 (SET_BB_HEAD): ...and this function in favor of...
1220 (BB_HEAD): ...reinstate macro.
1221 (BB_END): Drop function...
1222 (SET_BB_END): ...and this function in favor of...
1223 (BB_END): ...reinstate macro.
1224 (BB_HEADER): Drop function...
1225 (SET_BB_HEADER): ...and this function in favor of...
1226 (BB_HEADER): ...reinstate macro.
1228 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1229 (fix_crossing_unconditional_branches): Likewise.
1230 * caller-save.c (save_call_clobbered_regs): Likewise.
1231 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1232 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1233 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1234 (merge_blocks_move_successor_nojumps): Likewise.
1235 (outgoing_edges_match): Update use of for_each_rtx to
1236 for_each_rtx_in_insn.
1237 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1238 (expand_gimple_cond): Likewise.
1239 (expand_gimple_tailcall): Likewise.
1240 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1242 (construct_exit_block): Drop use of SET_BB_END.
1243 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1245 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1246 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1247 SET_BB_HEAD and SET_BB_END.
1248 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1250 (rtl_delete_block): Drop use of SET_BB_HEAD.
1251 (rtl_split_block): Drop use of SET_BB_END.
1252 (emit_nop_for_unique_locus_between): Likewise.
1253 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1254 (block_label): Drop use of SET_BB_HEAD.
1255 (fixup_abnormal_edges): Drop use of SET_BB_END.
1256 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1257 (relink_block_chain): Likewise.
1258 (fixup_reorder_chain): Drop use of SET_BB_END.
1259 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1260 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1261 rtx_insn **. Drop use of SET_BB_HEADER.
1262 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1264 (BB_HEAD): Delete this function.
1265 (SET_BB_HEAD): Likewise.
1267 (SET_BB_END): Likewise.
1268 (BB_HEADER): Likewise.
1269 (SET_BB_HEADER): Likewise.
1270 * emit-rtl.c (add_insn_after): Rename param "insn" to
1271 "uncast_insn", adding a new local "insn" and a checked cast to
1272 rtx_insn *. Drop use of SET_BB_END.
1273 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1274 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1275 (reorder_insns): Drop use of SET_BB_END.
1276 (emit_insn_after_1): Strengthen param "first" and locals "last",
1277 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1278 (emit_pattern_after_noloc): Add checked cast.
1279 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1280 (restore_other_notes): Likewise.
1281 (move_insn): Likewise.
1282 (sched_extend_bb): Likewise.
1283 (fix_jump_move): Likewise.
1284 * ifcvt.c (noce_process_if_block): Likewise.
1285 (dead_or_predicable): Likewise.
1286 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1287 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1288 * sel-sched-ir.c (sel_move_insn): Likewise.
1289 * sel-sched.c (move_nop_to_previous_block): Likewise.
1291 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1293 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1295 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1297 * basic-block.h (create_basic_block_structure): Strengthen params
1298 1 "head" and 2 "end" from rtx to rtx_insn *.
1299 * cfgrtl.c (create_basic_block_structure): Likewise.
1300 (rtl_create_basic_block): Update casts from void * to rtx to
1301 rtx_insn *, so that we can pass them as rtx_insn * to
1302 create_basic_block_structure.
1303 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1305 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1307 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1309 (check_for_inc_dec): Strengthen param "insn" from rtx to
1312 * cselib.h (cselib_process_insn): Likewise.
1314 * cselib.c (cselib_record_sets): Likewise.
1315 (cselib_process_insn): Likewise.
1317 * dse.c (struct insn_info): Likewise for field "insn".
1318 (check_for_inc_dec_1): Likewise for local "insn".
1319 (check_for_inc_dec): Likewise for param "insn".
1320 (scan_insn): Likewise.
1321 (dse_step1): Likewise for local "insn".
1323 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1324 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1326 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1328 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1329 from rtx to rtx_insn *.
1330 (DEP_PRO): Delete this function and...
1331 (SET_DEP_PRO): ...this function in favor of...
1332 (DEP_PRO): ...reinstate this macro.
1333 (DEP_CON): Delete this function and...
1334 (SET_DEP_CON): ...this function in favor of...
1335 (DEP_CON): ...reinstate this old macro.
1336 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1337 (init_dep): Likewise.
1338 (set_priorities): Likewise for both params.
1339 (sd_copy_back_deps): Likewise for params 1 and 2.
1341 * haifa-sched.c (priority): Likewise for param "insn" and local
1343 (set_priorities): Likewise for params "head" and "tail" and local
1345 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1347 (add_to_speculative_block): Add a checked cast.
1348 (create_check_block_twin): Drop use of SET_DEP_CON.
1349 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1352 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1353 Drop use of SET_DEP_PRO
1354 (init_dep): Strengthen params "pro" and "con" from rtx to
1356 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1360 (SET_DEP_PRO): Delete.
1361 (SET_DEP_CON): Delete.
1363 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1365 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1366 from rtx to rtx_insn *.
1367 (VINSN_INSN_RTX): Eliminate rvalue function and...
1368 (SET_VINSN_INSN): ...lvalue function in favor of...
1369 (VINSN_INSN_RTX): reinstate this old macro.
1371 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1372 in favor of VINSN_INSN_RTX.
1373 (VINSN_INSN_RTX): Delete this function.
1374 (SET_VINSN_INSN_RTX): Likewise.
1376 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1378 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1379 (BND_TO): Delete this function and...
1380 (SET_BND_TO): ...this functions in favor of...
1381 (BND_TO): ...reinstating this macro.
1382 (struct _fence): Strengthen field "executing_insns" from
1383 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1384 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1385 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1386 and param "insn" from rtx to insn_t.
1387 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1390 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1392 (rtx_vec_t): Likewise.
1393 (struct sched_deps_info_def): Strengthen param of "start_insn"
1394 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1395 "note_mem_dep" callback and first param of "note_dep" callback.
1397 * haifa-sched.c (add_to_speculative_block): Strengthen param
1398 "insn" from rtx to rtx_insn *.
1399 (clear_priorities): Likewise.
1400 (calc_priorities): Likewise for local "insn".
1402 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1403 Remove redundant checked cast.
1404 (haifa_note_mem_dep): Likewise for param "pending_insn".
1405 (haifa_note_dep): Likewise for param "elem".
1406 (note_mem_dep): Likewise for param "e".
1407 (sched_analyze_1): Add checked casts.
1408 (sched_analyze_2): Likewise.
1410 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1411 from rtx to rtx_insn *.
1412 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1413 from vec<rtx> * to vec<rtx_insn *> *.
1415 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1417 (flist_add): Strengthen param "executing_insns" from
1418 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1419 (advance_deps_context): Remove now-redundant checked cast.
1420 (init_fences): Replace uses of NULL_RTX with NULL.
1421 (merge_fences): Strengthen params "last_scheduled_insn" and
1422 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1423 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1424 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1425 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1426 an instruction, rather than doing double-duty as a pattern.
1427 (return_nop_to_pool): Update for change of insn_t.
1428 (deps_init_id): Remove now-redundant checked cast.
1429 (struct sched_scan_info_def): Strengthen param of "init_insn"
1430 callback from rtx to insn_t.
1431 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1432 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1434 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1435 "end" from rtx to rtx_insn *.
1436 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1437 (rtx insn_rtx, bool force_unique_p)
1438 (BND_TO): Delete function.
1439 (SET_BND_TO): Delete function.
1441 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1443 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1444 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1446 (undo_transformations): Likewise for param "insn".
1447 (update_liveness_on_insn): Likewise.
1448 (compute_live_below_insn): Likewise for param "insn" and local
1450 (update_data_sets): Likewise for param "insn".
1451 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1452 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1453 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1455 (move_cond_jump): Likewise for param "insn".
1456 (move_cond_jump): Drop use of SET_BND_TO.
1457 (compute_av_set_on_boundaries): Likewise.
1458 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1459 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1460 from rtx to rtx_insn *.
1461 (maybe_emit_renaming_copy): Likewise for param "insn".
1462 (maybe_emit_speculative_check): Likewise.
1463 (handle_emitting_transformations): Likewise.
1464 (remove_insn_from_stream): Likewise.
1465 (code_motion_process_successors): Strengthen local "succ" from rtx
1468 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1470 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1471 ilist_t, not _xlist_t;
1472 (ILIST_INSN): Define in terms of new union field "insn".
1473 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1475 (struct _list_node): Add new field "insn" to the union, of type
1477 (ilist_add): Replace macro with an inline function, requiring an
1479 (ilist_remove): Define this macro directly in terms of
1480 _list_remove, rather than indirectly via _xlist_remove.
1481 (ilist_clear): Likewise, in terms of _list_clear rather than
1483 (ilist_is_in_p): Replace macro with an inline function, requiring
1485 (_list_iter_cond_insn): New function.
1486 (ilist_iter_remove): Define this macro directly in terms of
1487 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1488 (ilist_iterator): Define directly in terms of _list_iterator
1489 rather than indirectly through _xlist_iterator.
1490 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1491 than in terms of _FOR_EACH_X.
1492 (FOR_EACH_INSN_1): Likewise.
1494 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1498 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1499 DECL_HARD_REGISTER and return for invalid register specifications.
1500 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1501 DECL_HARD_REGISTER, call expand_one_error_var.
1502 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1503 CC_REGNUM with non-MODE_CC modes.
1504 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1506 2014-08-26 Marek Polacek <polacek@redhat.com>
1509 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1511 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1513 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1514 qi cost; add di cost.
1515 (cortexa57_addrcost_table): Likewise.
1517 2014-08-26 Marek Polacek <polacek@redhat.com>
1520 * expr.c (is_aligning_offset): Remove logical not.
1522 2014-08-26 Marek Polacek <polacek@redhat.com>
1525 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1526 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1528 2014-08-26 Richard Biener <rguenther@suse.de>
1530 PR tree-optimization/62175
1531 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1532 expand possibly trapping operations.
1534 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1536 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1537 "insn" from rtx to rtx_insn *.
1538 (permute_load): Likewise for param "insn".
1539 (permute_store): Likewise.
1540 (handle_special_swappables): Likewise for local "insn".
1541 (replace_swap_with_copy): Likewise for locals "insn" and
1543 (rs6000_analyze_swaps): Likewise for local "insn".
1545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1547 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1550 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1552 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1553 "note_list" from rtx to rtx_insn *.
1554 (BB_NOTE_LIST): Replace this function and...
1555 (SET_BB_NOTE_LIST): ...this function with...
1556 (BB_NOTE_LIST): ...the former macro implementation.
1558 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1559 local "from_start" from rtx to rtx_insn *. Strengthen param
1560 "to_endp" from rtx * to rtx_insn **.
1562 * haifa-sched.c (concat_note_lists): Likewise.
1563 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1565 (sel_restore_notes): Likewise.
1566 (move_bb_info): Likewise.
1567 (BB_NOTE_LIST): Delete this function.
1568 (SET_BB_NOTE_LIST): Delete this function.
1569 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1570 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1572 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1574 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1575 from rtx * to rtx_insn **.
1576 (reorder2): Likewise.
1577 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1578 from rtx to rtx_insn *.
1580 * doc/tm.texi: Update mechanically for above change to target.def.
1582 * sched-int.h (note_list): Strengthen this variable from rtx to
1584 (remove_notes): Likewise for both params.
1585 (restore_other_notes): Likewise for return type and first param.
1586 (struct ready_list): Strengthen field "vec" from rtx * to
1588 (struct dep_replacement): Strenghten field "insn" from rtx to
1590 (struct deps_desc): Likewise for fields "last_debug_insn",
1592 (struct haifa_sched_info): Likewise for callback field
1593 "can_schedule_ready_p"'s param, for first param of "new_ready"
1594 callback field, for both params of "rank" callback field, for
1595 first field of "print_insn" callback field (with a const), for
1596 both params of "contributes_to_priority" callback, for param
1597 of "insn_finishes_block_p" callback, for fields "prev_head",
1598 "next_tail", "head", "tail", for first param of "add_remove_insn"
1599 callback, for first param of "begin_schedule_ready" callback, for
1600 both params of "begin_move_insn" callback, and for second param
1601 of "advance_target_bb" callback.
1602 (add_dependence): Likewise for params 1 and 2.
1603 (sched_analyze): Likewise for params 2 and 3.
1604 (deps_analyze_insn): Likewise for param 2.
1605 (ready_element): Likewise for return type.
1606 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1607 (try_ready): Strenghten param from rtx to rtx_insn *.
1608 (sched_emit_insn): Likewise for return type.
1609 (record_delay_slot_pair): Likewise for params 1 and 2.
1610 (add_delay_dependencies): Likewise for param.
1611 (contributes_to_priority): Likewise for both params.
1612 (find_modifiable_mems): Likewise.
1614 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1615 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1616 "first_older_only_insn" from rtx to rtx_insn *.
1617 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1620 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1621 "last_scheduled_iter0" from rtx to rtx_insn *.
1622 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1623 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1624 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1625 "insn" from rtx to rtx_insn *.
1626 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1628 (c6x_sched_reorder2): Strengthen param "ready" and locals
1629 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1630 "insn" from rtx to rtx_insn *.
1631 (c6x_variable_issue): Add a checked cast when assigning from insn
1632 to ss.last_scheduled_iter0.
1633 (split_delayed_branch): Strengthen param "insn" and local "i1"
1634 from rtx to rtx_insn *.
1635 (split_delayed_nonbranch): Likewise.
1636 (undo_split_delayed_nonbranch): Likewise for local "insn".
1637 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1638 "entry_after", "end_packet", "head_insn", "tail_insn",
1639 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1640 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1641 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1642 but add a checked cast on loop->start_label. Consolidate calls to
1643 avoid assigning result of gen_spkernel to "insn", now an
1646 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1647 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1649 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1650 rtx_insn **. Strengthen locals "top", "next" from rtx to
1652 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1653 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1654 (add_parameter_dependencies): Strengthen params "call", "head" and
1655 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1656 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1657 (add_dependee_for_func_arg): Likewise for param "arg" and local
1659 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1660 "tail" and locals "insn", "first_arg".
1662 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1663 for params "head", "tail" and locals "insn", "next", "next_tail".
1664 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1665 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1666 "insn", "lowest", "highest" from rtx to rtx_insn *.
1667 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1669 (ia64_sched_reorder2): Likewise.
1671 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1672 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1673 from rtx * to rtx_insn **.
1674 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1676 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1678 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1679 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1682 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1683 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1685 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1686 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1687 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1689 (vr4130_reorder): Likewise.
1690 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1692 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1694 (mips_sched_reorder): Likewise.
1695 (mips_sched_reorder2): Likewise.
1697 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1699 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1700 Strengthen local "tmp" from rtx to rtx_insn *.
1701 (rs6000_sched_reorder2): Likewise.
1703 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1704 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1705 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1706 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1708 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1709 "tmp2" from rtx to rtx_insn *.
1710 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1711 Strengthen local "insn" from rtx to rtx_insn *.
1712 (ready_reorder): Strengthen param "ready" from rtx * to
1713 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1714 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1715 (sh_reorder2): Likewise.
1717 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1718 local "insn" from rtx to rtx_insn *.
1720 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1722 (scheduled_insns): Strengthen this variable from vec<rtx> to
1724 (set_modulo_params): Likewise for locals "i1", "i2".
1725 (record_delay_slot_pair): Likewise for params "i1", "i2".
1726 (add_delay_dependencies): Likewise for param "insn".
1727 (cond_clobbered_p): Likewise.
1728 (recompute_todo_spec): Likewise for local "prev".
1729 (last_scheduled_insn): Likewise for this variable.
1730 (nonscheduled_insns_begin): Likewise.
1731 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1733 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1735 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1736 Strengthen local "insn" from rtx to rtx_insn *.
1737 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1738 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1739 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1740 (ready_remove_first): Likewise for return type and local "t".
1741 (ready_element): Likewise for return type.
1742 (ready_remove): Likewise for return type and local "t".
1743 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1744 (check_clobbered_conditions): Strengthen local "x" from rtx to
1745 rtx_insn *, adding a checked cast.
1746 (schedule_insn): Likewise for param "insn".
1747 (remove_notes): Likewise for params "head", "tail" and locals
1748 "next_tail", "insn", "next".
1749 (struct haifa_saved_data): Likewise for fields
1750 "last_scheduled_insn", "nonscheduled_insns_begin".
1751 (save_backtrack_point): Update for change to field "vec" of
1753 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1755 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1756 from rtx to rtx_insn *
1757 (resolve_dependencies): Strengthen param "insn" from rtx to
1759 (restore_other_notes): Likewise for return type, for param "head"
1760 and local "note_head".
1761 (undo_all_replacements): Likewise for local "insn".
1762 (first_nonscheduled_insn): Likewise for return type and local "insn".
1763 (queue_to_ready): Likewise for local "insn", adding checked casts.
1764 (early_queue_to_ready): Likewise for local "insn".
1765 (debug_ready_list_1): Strengthen local "p" from rtx * to
1767 (move_insn): Strengthen param "insn" and local "note" from rtx to
1769 (insn_finishes_cycle_p): Likewise for param "insn".
1770 (max_issue): Likewise for local "insn".
1771 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1773 (commit_schedule): Strengthen param "prev_head" and local "insn"
1774 from rtx to rtx_insn *
1775 (prune_ready_list): Likewise for local "insn".
1776 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1777 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1778 (set_priorities): Likewise for local "prev_head".
1779 (try_ready): Likewise for param "next".
1780 (fix_tick_ready): Likewise.
1781 (change_queue_index): Likewise.
1782 (sched_extend_ready_list): Update for change to field "vec" of
1784 (generate_recovery_code): Strengthen param "insn" from rtx to
1786 (begin_speculative_block): Likewise.
1787 (create_check_block_twin): Likewise for param "insn" and locals
1788 "label", "check", "twin". Introduce local "check_pat" to avoid
1789 "check" being used as a plain rtx before being used as an insn.
1790 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1791 extracting elements from ready_list.
1792 (sched_remove_insn): Strengthen param "insn" from rtx to
1794 (sched_emit_insn): Likewise for return type.
1795 (ready_remove_first_dispatch): Likewise for return type and local
1798 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1800 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1803 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1804 from rtx to rtx_insn *.
1805 (add_dependence_list): Likewise for param "insn". Add a checked
1807 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1808 to rtx_insn *. Strengthen param "list_p" from rtx * to
1810 (chain_to_prev_insn): Strengthen param "insn" and locals
1811 "prec_nonnote", "i" from rtx to rtx_insn *.
1812 (flush_pending_lists): Likewise for param "insn".
1813 (cur_insn): Likewise for this variable.
1814 (haifa_start_insn): Add a checked cast.
1815 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1816 (sched_analyze_reg): Likewise for param "insn".
1817 (sched_analyze_1): Likewise.
1818 (sched_analyze_2): Likewise. Add checked casts.
1819 (sched_analyze_insn): Likewise. Also for local "prev".
1820 (deps_analyze_insn): Likewise for param "insn".
1821 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1822 (add_dependence_1): Likewise for params "insn", "elem".
1823 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1824 (parse_add_or_inc): Likewise for param "insn".
1825 (find_inc): Likewise for local "inc_cand".
1826 (find_modifiable_mems): Likewise for params "head", "tail" and
1827 locals "insn", "next_tail".
1829 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1830 (begin_schedule_ready): Likewise for param "insn".
1831 (begin_move_insn): Likewise for params "insn" and "last".
1832 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1834 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1835 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1836 (ebb_add_remove_insn): Likewise for param "insn".
1837 (advance_target_bb): Likewise.
1839 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1841 (check_live): Likewise for param "insn".
1842 (init_ready_list): Likewise for local "insn".
1843 (can_schedule_ready_p): Likewise for param "insn".
1844 (begin_schedule_ready): Likewise.
1845 (new_ready): Likewise for param "next".
1846 (rgn_print_insn): Likewise for param "insn".
1847 (rgn_rank): Likewise for params "insn1", "insn2".
1848 (contributes_to_priority): Likewise for params "next", "insn".
1849 (rgn_insn_finishes_block_p): Likewise for param "insn".
1850 (add_branch_dependences): Likewise for params "head", "tail" and
1851 locals "insn", "last".
1852 (rgn_add_remove_insn): Likewise for param "insn".
1853 (advance_target_bb): Likewise.
1855 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1856 const_rtx to const rtx_insn *.
1858 * sel-sched-dump.h (sel_print_insn): Likewise.
1860 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1861 (deps_init_id): Likewise.
1863 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1864 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1867 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1869 * output.h (final_start_function): Strengthen param 1 from rtx to
1872 * final.c (final_start_function): Likewise, renaming back from
1873 "uncast_first" to "first", and dropping the checked cast from rtx
1876 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1878 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1879 * final.c (final): Likewise. Rename param back from
1880 "uncast_first" to "first" and eliminate the checked cast from rtx
1883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1885 * output.h (shorten_branches): Strengthen param from rtx to
1888 * final.c (shorten_branches): Likewise, renaming param back from
1889 "uncast_first" to "first", and dropping the checked cast from rtx
1892 * genattr.c (gen_attr): Likewise when writing out the prototype of
1895 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1897 * sched-int.h (struct haifa_sched_info): Strengthen fields
1898 "prev_head" and "next_tail" from rtx to rtx_insn *.
1900 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1902 * rtl.h (rtx_jump_table_data::get_labels): New method.
1903 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1904 with use of the new rtx_jump_table_data::get_labels method.
1905 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1906 to rtx_jump_table_data *. Simplify by using get_labels method.
1907 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1908 a dyn_cast, introducing local "table", using it to replace
1909 label-lookup logic with a get_labels method call.
1910 (patch_jump_insn): Simplify using get_labels method.
1911 * dwarf2cfi.c (create_trace_edges): Likewise.
1912 * rtlanal.c (label_is_jump_target_p): Likewise.
1914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1916 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1919 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1920 (unshare_all_rtl_again): Likewise, also for local "p".
1922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1924 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1926 * cfgrtl.c (delete_insn_and_edges): Likewise.
1928 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1930 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1931 from rtx to rtx_insn *.
1933 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1937 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1938 locals "returnjump", "epilogue_end", "insn", "next".
1940 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1941 "returnjump" from rtx * to rtx_insn **.
1942 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1944 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1946 * basic-block.h (struct edge_def). Strengthen "r" within
1947 union edge_def_insns from rtx to rtx_insn *.
1949 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1950 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1952 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1953 from rtx to rtx_insn *.
1954 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1956 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1957 (reg_used_on_edge): Likewise.
1958 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1959 (gt_pch_nx): New overload for rtx_insn *&.
1960 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1961 from rtx to rtx_insn *.
1963 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1965 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1966 from rtx to rtx_insn *.
1967 (BB_FOOTER): Replace function with access macro.
1968 (SET_BB_FOOTER): Delete.
1970 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1972 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1973 (emit_barrier_after_bb): Likewise.
1974 (record_effective_endpoints): Likewise.
1975 (relink_block_chain): Likewise.
1976 (fixup_fallthru_exit_predecessor): Likewise.
1977 (cfg_layout_duplicate_bb): Likewise.
1978 (cfg_layout_split_block): Likewise.
1979 (cfg_layout_delete_block): Likewise.
1980 (cfg_layout_merge_blocks): Likewise.
1981 (BB_FOOTER): Delete function.
1982 (SET_BB_FOOTER): Delete function.
1983 * combine.c (update_cfg_for_uncondjump): Replace uses of
1984 SET_BB_FOOTER with BB_FOOTER.
1986 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1988 * except.h (struct eh_landing_pad_d): Strengthen field
1989 "landing_pad" from rtx to rtx_code_label *.
1991 * except.c (sjlj_emit_dispatch_table): Likewise for param
1993 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1997 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1998 first param from rtx to rtx_insn *.
1999 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2000 field "set_frame_ptr_insn".
2001 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2002 "csend" from rtx to rtx_code_label *.
2003 (xtensa_expand_atomic): Likewise for local "csloop".
2004 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2006 (xtensa_call_tls_desc): Likewise for return type and locals
2007 "call_insn", "insns".
2008 (xtensa_legitimize_tls_address): Likewise for local "insns".
2009 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2011 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2013 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2014 first param from rtx to rtx_insn *.
2015 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2018 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2020 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2021 Strengthen param 1 from rtx to rtx_insn *.
2022 (tilepro_output_cbranch): Likewise.
2023 (tilepro_adjust_insn_length): Likewise.
2024 (tilepro_final_prescan_insn): Likewise for sole param.
2026 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2027 Likewise for local "last".
2028 (cbranch_predicted_p): Likewise for param "insn".
2029 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2030 (tilepro_output_cbranch_with_opcode): Likewise.
2031 (tilepro_output_cbranch): Likewise.
2032 (frame_emit_load): Likewise for return type and locals "seq",
2034 (emit_sp_adjust): Likewise for return type and local "insn".
2035 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2037 (tilepro_adjust_insn_length): Likewise for param "insn".
2038 (next_insn_to_bundle): Likewise for return type and params
2040 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2041 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2043 (match_addli_pcrel): Likewise for param "insn".
2044 (replace_addli_pcrel): Likewise.
2045 (match_auli_pcrel): Likewise.
2046 (replace_auli_pcrel): Likewise.
2047 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2049 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2050 "queue", "next_queue", "prev".
2051 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2052 (tilepro_final_prescan_insn): Likewise for param "insn".
2054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2056 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2057 Strengthen param 1 from rtx to rtx_insn *.
2058 (tilegx_output_cbranch): Likewise.
2059 (tilegx_adjust_insn_length): Likewise.
2060 (tilegx_final_prescan_insn): Likewise for sole param.
2062 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2064 (cbranch_predicted_p): Likewise for param "insn".
2065 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2066 (tilegx_output_cbranch_with_opcode): Likewise.
2067 (tilegx_output_cbranch): Likewise.
2068 (frame_emit_load): Likewise for return type.
2069 (set_frame_related_p): Likewise for locals "seq", "insn".
2070 (emit_sp_adjust): Likewise for return type, and for local "insn".
2071 Introduce local "pat" for use in place of "insn" where the latter
2072 isn't an instruction.
2073 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2074 from rtx to rtx_insn *.
2075 (tilegx_adjust_insn_length): Likewise for param "insn".
2076 (next_insn_to_bundle): Likewise for return type and params "r" and
2078 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2080 (replace_insns): Likewise for params "old_insn", "new_insns".
2081 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2083 (replace_mov_pcrel_step2): Likewise.
2084 (replace_mov_pcrel_step3): Likewise.
2085 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2087 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2088 "queue", "next_queue", "prev".
2089 (tilegx_output_mi_thunk): Likewise for local "insn".
2090 (tilegx_final_prescan_insn): Likewise for param "insn".
2092 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2094 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2096 (frame_emit_load): Likewise.
2097 (frame_emit_add_imm): Likewise, also for local "insn".
2098 (spu_expand_prologue): Likewise for local "insn".
2099 (struct spu_bb_info): Likewise for field "prop_jump".
2100 (emit_nop_for_insn): Likewise for param "insn" and local
2102 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2104 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2105 locals "hint", "insn".
2106 (get_branch_target): Likewise for param "branch".
2107 (insn_clobbers_hbr): Likewise for param "insn".
2108 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2109 locals "insn", "before_4", "before_16".
2110 (insert_hbrp): Likewise for local "insn".
2111 (spu_machine_dependent_reorg): Likewise for locals "branch",
2112 "insn", "next", "bbend".
2113 (uses_ls_unit): Likewise for param "insn".
2114 (get_pipe): Likewise.
2115 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2116 introducing a checked cast.
2117 (spu_sched_adjust_cost): Likewise for params "insn" and
2119 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2120 (spu_sms_res_mii): Likewise.
2122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2124 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2125 from rtx to rtx_insn *.
2126 (output_cbranch): Likewise for param 6.
2127 (output_return): Likewise for param 1.
2128 (output_sibcall): Likewise.
2129 (output_v8plus_shift): Likewise.
2130 (output_v8plus_mult): Likewise.
2131 (output_v9branch): Likewise for param 7.
2132 (output_cbcond): Likewise for param 3.
2134 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2136 (sparc_legitimize_pic_address): Likewise.
2137 (sparc_emit_call_insn): Likewise.
2138 (emit_save_or_restore_regs): Likewise.
2139 (emit_window_save): Likewise for return type and local "insn".
2140 (sparc_expand_prologue): Likewise for local "insn".
2141 (sparc_flat_expand_prologue): Likewise.
2142 (output_return): Likewise for param "insn".
2143 (output_sibcall): Likewise for param "insn" and local "delay".
2144 (output_ubranch): Likewise for param "insn".
2145 (output_cbranch): Likewise.
2146 (output_cbcond): Likewise.
2147 (output_v9branch): Likewise.
2148 (output_v8plus_shift): Likewise.
2149 (sparc_output_mi_thunk): Likewise for local "insn".
2150 (get_some_local_dynamic_name): Likewise.
2151 (output_v8plus_mult): Likewise for param "insn".
2153 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2155 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2156 from rtx to rtx_insn *.
2157 (output_branchy_insn): Likewise for param 3.
2158 (output_far_jump): Likewise for param 1.
2159 (final_prescan_insn): Likewise.
2160 (sh_insn_length_adjustment): Likewise for sole param.
2162 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2163 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2165 (sh_emit_compare_and_set): Likewise for local "lab".
2166 (output_far_jump): Strengthen param "insn" and local "prev" from
2168 (output_branchy_insn): Likewise for param "insn" and local
2170 (output_ieee_ccmpeq): Likewise for param "insn".
2171 (struct label_ref_list_d): Strengthen field "label" from rtx to
2173 (pool_node): Likewise.
2174 (pool_window_label): Likewise for this global.
2175 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2176 (dump_table): Strengthen params "start", "barrier" and local
2177 "scan" from rtx to rtx_insn *.
2178 (broken_move): Likewise for param "insn".
2179 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2180 Strengthen param "first_mova" from rtx * to rtx_insn **.
2181 (mova_p): Likewise for param "insn".
2182 (fixup_mova): Likewise for param "mova".
2183 (find_barrier): Likewise for return type, params "mova" and
2184 "from", and locals "barrier_before_mova", "found_barrier",
2185 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2186 "label" from rtx to rtx_code_label *.
2187 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2189 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2190 (split_branches): Likewise for param "first" and local "insn".
2191 (final_prescan_insn): Likewise for param "insn".
2192 (sequence_insn_p): Likewise for locals "prev", "next".
2193 (sh_insn_length_adjustment): Likewise for param "insn".
2194 (sh_can_redirect_branch): Likewise for local "insn".
2195 (find_r0_life_regions): Likewise for locals "end", "insn".
2196 (sh_output_mi_thunk): Likewise for local "insns".
2198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2200 * config/score/score.c (score_output_mi_thunk): Strengthen local
2201 "insn" from rtx to rtx_insn *.
2202 (score_prologue): Likewise.
2204 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2206 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2207 1 from rtx to rtx_insn *.
2208 (s390_emit_jump): Likewise for return type.
2209 (s390_emit_call): Likewise.
2210 (s390_load_got): Likewise.
2212 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2214 (s390_match_ccmode): Likewise for param "insn".
2215 (s390_emit_jump): Likewise for return type.
2216 (s390_split_branches): Likewise for local "label".
2217 (struct constant): Strengthen field "label" from rtx to
2219 (struct constant_pool): Likewise for field "label". Strengthen
2220 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2222 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2224 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2225 (s390_end_pool): Likewise.
2226 (s390_dump_pool): Likewise for local "insn".
2227 (s390_mainpool_start): Likewise.
2228 (s390_chunkify_start): Likewise.
2229 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2230 with insns. Strengthen locals "label", "jump", "barrier", "next",
2231 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2232 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2234 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2235 "jump", "label", "next_insn".
2236 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2237 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2239 (s390_load_got): Likewise for return type and local "insns".
2240 (s390_save_gprs_to_fprs): Likewise for local "insn".
2241 (s390_restore_gprs_from_fprs): Likewise.
2242 (pass_s390_early_mach::execute): Likewise.
2243 (s390_emit_prologue): Likewise for local "insns".
2244 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2246 (s390_emit_call): Strengthen return type and local "insn" from
2248 (s390_emit_tpf_eh_return): Likewise for local "insn".
2249 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2250 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2251 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2253 (s390_non_addr_reg_read_p): Likewise for param "insn".
2254 (find_cond_jump): Likewise for return type and param "insn".
2255 (s390_swap_cmp): Likewise for param "insn".
2256 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2257 "prev_insn", "next_insn".
2258 (s390_reorg): Likewise for locals "insn", "target".
2259 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2260 (s390_sched_variable_issue): For now, rename param "insn" to
2261 "uncast_insn", introducing a checked cast.
2262 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2264 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2265 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2267 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2269 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2270 param from rtx to rtx_insn *.
2271 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2275 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2276 4 from rtx to rtx_insn *.
2277 (rs6000_final_prescan_insn): Likewise for first param.
2278 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2280 (rs6000_get_some_local_dynamic_name): Likewise.
2281 (output_cbranch): Likewise for param "insn".
2282 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2283 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2284 (rs6000_emit_allocate_stack): Likewise for local "insn".
2285 (load_cr_save): Likewise.
2286 (restore_saved_cr): Likewise.
2287 (restore_saved_lr): Likewise.
2288 (emit_cfa_restores): Likewise.
2289 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2290 "deleted_debug_label".
2291 (rs6000_output_mi_thunk): Likewise for local "insn".
2292 (rs6000_final_prescan_insn): Likewise for param "insn".
2294 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2296 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2297 Strengthen param "insn" from rtx to rtx_insn *.
2298 * config/picochip/picochip.c (picochip_current_prescan_insn):
2299 Likewise for this variable.
2300 (picochip_final_prescan_insn): Likewise for param "insn".
2302 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2304 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2305 from rtx to rtx_insn *.
2306 (pa_output_indirect_call): Likewise.
2307 (pa_adjust_insn_length): Likewise.
2308 (pa_attr_length_millicode_call): Likewise.
2309 (pa_attr_length_call): Likewise.
2310 (pa_attr_length_indirect_call): Likewise.
2312 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2314 (pa_attr_length_millicode_call): Likewise.
2315 (pa_attr_length_call): Likewise.
2316 (pa_output_call): Likewise.
2317 (pa_attr_length_indirect_call): Likewise.
2318 (pa_output_indirect_call): Likewise.
2320 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2322 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2323 Strengthen first param from rtx to rtx_insn *.
2324 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2327 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2329 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2330 type from rtx to rtx_insn *.
2331 (mips_expand_call): Likewise.
2332 (mips_adjust_insn_length): Likewise for first param.
2333 (mips_output_conditional_branch): Likewise.
2334 (mips_output_order_conditional_branch): Likewise.
2335 (mips_final_prescan_insn): Likewise.
2337 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2338 rtx_insn * for the SEQUENCE case.
2339 (SEQ_END): Likewise.
2340 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2341 (mips_emit_call_insn): Likewise, also for local "insn".
2342 (mips16_gp_pseudo_reg): Likewise for local "scan".
2343 (mips16_build_call_stub): Likewise for return type and for local
2344 "insn". Introduce a new local "pattern" so that "insn" can indeed
2346 (mips_expand_call): Strengthen return type and local "insn" from
2348 (mips_block_move_loop): Strengthen local "label" from rtx to
2350 (mips_expand_synci_loop): Likewise for locals "label",
2352 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2354 (mips16e_collect_argument_saves): Likewise for locals "insn",
2356 (mips_find_gp_ref): Likewise for param of callback for "pred"
2357 param, and for local "insn".
2358 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2359 (mips_insn_has_flexible_gp_ref_p): Likewise.
2360 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2362 (mips_epilogue_set_cfa): Likewise for local "insn".
2363 (mips_expand_epilogue): Likewise.
2364 (mips_adjust_insn_length): Likewise for param "insn".
2365 (mips_output_conditional_branch): Likewise.
2366 (mips_output_order_conditional_branch): Likewise.
2367 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2368 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2369 "falu2_turn_enabled_insn".
2370 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2371 "done_label" from rtx to rtx_code_label *.
2372 (struct mips16_constant): Likewise for field "label".
2373 (mips16_add_constant): Likewise for return type.
2374 (mips16_emit_constants_1): Strengthen return type and param "insn"
2375 from rtx to rtx_insn *.
2376 (mips16_emit_constants): Likewise for param "insn".
2377 (mips16_insn_length): Likewise.
2378 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2379 to rtx_code_label *.
2380 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2381 from rtx to rtx_insn *.
2382 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2383 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2384 (r10k_simplify_address): Strengthen param "insn" and local
2385 "def_insn" from rtx to rtx_insn *.
2386 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2388 (r10k_needs_protection_p_1): Update target type of cast of data
2389 from to rtx to rtx_insn *.
2390 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2391 rtx * to rtx_insn **.
2392 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2394 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2395 (mips_call_expr_from_insn): Likewise for param "insn".
2396 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2397 (mips_find_pic_call_symbol): Likewise for param "insn".
2398 (mips_annotate_pic_calls): Likewise for local "insn".
2399 (mips_sim_insn): Likewise for this variable.
2400 (struct mips_sim): Likewise for field "insn" within elements of
2402 (mips_sim_wait_reg): Likewise for param "insn".
2403 (mips_sim_wait_regs): Likewise.
2404 (mips_sim_wait_units): Likewise.
2405 (mips_sim_wait_insn): Likewise.
2406 (mips_sim_issue_insn): Likewise.
2407 (mips_sim_finish_insn): Likewise.
2408 (mips_seq_time): Likewise for param "seq" and local "insn".
2409 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2410 locals "first", "second".
2411 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2412 "last", "last2", "next".
2413 (mips_avoid_hazard): Likewise for params "after", "insn".
2414 (mips_reorg_process_insns): Likewise for locals "insn",
2415 "last_insn", "subinsn", "next_insn".
2416 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2417 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2419 (mips_output_mi_thunk): Likewise for local "insn".
2420 (mips_final_prescan_insn): Likewise for param "insn".
2422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2424 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2425 Strengthen return type and local "insns" from rtx to rtx_insn *.
2426 (microblaze_legitimize_tls_address): Likewise for local "insns".
2427 (microblaze_block_move_loop): Strengthen local "label" from rtx
2428 to rtx_code_label *.
2429 (microblaze_expand_prologue): Strengthen two locals named "insn"
2430 from rtx to rtx_insn *.
2431 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2432 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2433 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2434 to rtx_code_label *.
2436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2438 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2439 param from rtx to rtx_insn *.
2440 (mep_reuse_lo): Likewise for third param.
2441 (mep_use_post_modify_p): Likewise for first param.
2442 (mep_core_address_length): Likewise.
2443 (mep_cop_address_length): Likewise.
2444 (mep_final_prescan_insn): Likewise.
2445 (mep_store_data_bypass_p): Likewise for both params.
2446 (mep_mul_hilo_bypass_p): Likewise.
2447 (mep_ipipe_ldc_p): Likewise for param.
2449 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2450 (mep_rewrite_mult): Likewise.
2451 (mep_rewrite_mulsi3): Likewise.
2452 (mep_rewrite_maddsi3): Likewise.
2453 (mep_reuse_lo_p_1): Likewise.
2454 (mep_reuse_lo_p): Likewise.
2455 (mep_frame_expr): Likewise.
2456 (mep_make_parallel): Likewise for both params.
2457 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2459 (mep_use_post_modify_p): Likewise for param "insn".
2460 (mep_core_address_length): Likewise.
2461 (mep_cop_address_length): Likewise.
2462 (mep_reg_set_in_function): Likewise for local "insn".
2463 (mep_asm_without_operands_p): Likewise.
2464 (F): Likewise for return type and param "x".
2465 (add_constant): Likewise for local "insn".
2466 (maybe_dead_move): Likewise for return type and local "insn".
2467 (mep_expand_prologue): Likewise for local "insn".
2468 (mep_final_prescan_insn): Likewise for param "insn".
2469 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2470 "next", "follow", "x".
2471 (mep_insert_repeat_label_last): Likewise for return type, param
2472 "last_insn", and locals "next", "prev". Strengthen param "label"
2473 from rtx to rtx_code_label *.
2474 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2476 (struct mep_doloop_end): Likewise for fields "insn" and
2478 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2479 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2480 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2482 (mep_invert_branch): Likewise for params "insn" and "after".
2483 (mep_reorg_erepeat): Likewise for param "insns" and locals
2484 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2485 "l" from rtx to rtx_code_label *.
2486 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2487 from rtx to rtx_insn *.
2488 (mep_reorg_addcombine): Likewise for param "insns" and locals
2490 (add_sp_insn_p): Likewise for param "insn".
2491 (mep_reorg_noframe): Likewise for param "insns" and locals
2492 "start_frame_insn", "end_frame_insn", "next".
2493 (mep_reorg): Likewise for local "insns".
2494 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2496 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2497 (mep_mul_hilo_bypass_p): Likewise.
2498 (mep_ipipe_ldc_p): Likewise for param "insn".
2499 (mep_make_bundle): Likewise for return type, param "cop" and local
2500 "insn", splitting out the latter into a new local "seq" for when it
2501 is a SEQUENCE rather than an insn.
2502 (core_insn_p): Likewise for param "insn".
2503 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2504 "last", "first", "note", "prev", "core_insn".
2506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2508 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2510 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2511 (m68k_final_prescan_insn): Likewise for first param.
2513 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2514 (m68k_set_frame_related): Likewise for param "insn".
2515 (output_btst): Likewise for param "insn".
2516 (m68k_final_prescan_insn): Likewise.
2517 (m68k_move_to_reg): Likewise for local "insn".
2518 (m68k_call_tls_get_addr): Likewise for local "insns".
2519 (m68k_call_m68k_read_tp): Likewise.
2520 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2521 (m68k_output_mi_thunk): Likewise for local "insn".
2523 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2525 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2526 first param from rtx to rtx_insn *.
2527 (iq2000_adjust_insn_length): Likewise.
2528 (iq2000_output_conditional_branch): Likewise.
2529 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2530 "insn" and local "nop_insn".
2531 (iq2000_annotate_frame_insn): Likewise for param "insn".
2532 (iq2000_expand_prologue): Likewise for both locals "insn".
2533 (iq2000_adjust_insn_length): Likewise for param "insn".
2534 (iq2000_output_conditional_branch): Likewise.
2536 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2538 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2539 "insns" from rtx to rtx_insn *.
2540 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2541 (struct spill_fill_data): Likewise for field "init_after" and for
2542 elements of array field "prev_insn".
2543 (spill_restore_mem): Likewise for locals "insn", "first".
2544 (do_spill): Likewise for local "insn".
2545 (do_restore): Likewise.
2546 (ia64_expand_prologue): Likewise.
2547 (ia64_expand_epilogue): Likewise.
2548 (emit_insn_group_barriers): Likewise for locals "insn",
2550 (emit_all_insn_group_barriers): Likewise for locals "insn",
2552 (dfa_stop_insn): Likewise for this global.
2553 (dfa_pre_cycle_insn): Likewise.
2554 (ia64_nop): Likewise.
2555 (final_emit_insn_group_barriers): Likewise for locals "insn",
2557 (emit_predicate_relation_info): Likewise for locals "head", "n",
2559 (ia64_reorg): Likewise for local "insn".
2560 (ia64_output_mi_thunk): Likewise.
2561 (expand_vec_perm_interleave_2): Likewise for local "seq".
2563 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2565 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2566 param 1 "insn" from rtx to rtx_insn *.
2567 (ix86_use_lea_for_mov): Likewise.
2568 (ix86_avoid_lea_for_addr): Likewise.
2569 (ix86_split_lea_for_addr): Likewise.
2570 (ix86_lea_for_add_ok): Likewise.
2571 (ix86_output_call_insn): Likewise.
2573 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2574 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2575 (ix86_output_function_epilogue): Likewise for locals "insn",
2576 "deleted_debug_label".
2577 (legitimize_tls_address): Likewise for local "insn".
2578 (get_some_local_dynamic_name): Likewise.
2579 (increase_distance): Likewise for params "prev", "next".
2580 (distance_non_agu_define_in_bb): Likewise for params "insn",
2581 "start" and locals "prev", "next".
2582 (distance_non_agu_define): Likewise for param "insn".
2583 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2584 locals "next", "prev".
2585 (distance_agu_use): Likewise for param "insn".
2586 (ix86_lea_outperforms): Likewise.
2587 (ix86_ok_to_clobber_flags): Likewise.
2588 (ix86_avoid_lea_for_add): Likewise.
2589 (ix86_use_lea_for_mov): Likewise.
2590 (ix86_avoid_lea_for_addr): Likewise.
2591 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2592 (ix86_split_lea_for_addr): Likewise for param "insn".
2593 (ix86_lea_for_add_ok): Likewise for param "insn".
2594 (ix86_expand_carry_flag_compare): Likewise for local
2596 (ix86_expand_int_movcc): Likewise.
2597 (ix86_output_call_insn): Likewise for param "insn".
2598 (ix86_output_call_insn): Likewise for local "i".
2599 (x86_output_mi_thunk): Introduce local "insn", using it in place
2600 of "tmp" when dealing with insns.
2601 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2603 (ix86_pad_returns): Likewise for locals "ret", "prev".
2604 (ix86_count_insn_bb): Likewise for local "insn".
2605 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2606 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2607 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2608 (expand_vec_perm_interleave2): Likewise for local "seq".
2609 (expand_vec_perm_vperm2f128_vblend): Likewise.
2610 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2611 call to for_each_rtx with for_each_rtx_in_insn.
2613 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2615 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2616 "label" from rtx to rtx_code_label *.
2617 (ix86_expand_prologue): Likewise.
2618 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2620 (ix86_split_idivmod): Likewise for locals "end_label" and
2622 (ix86_expand_branch): Likewise for local "label2".
2623 (ix86_expand_aligntest): Likewise for return type and local "label".
2624 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2626 (expand_movmem_epilogue): Likewise for the various locals named
2628 (expand_setmem_epilogue): Likewise.
2629 (expand_small_movmem_or_setmem): Likewise for local "label".
2630 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2631 Strengthen param "done_label" from rtx * to rtx_code_label **.
2632 Strengthen locals "loop_label" and "label" from rtx to
2634 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2635 Likewise for locals "loop_label", "label".
2636 (ix86_expand_set_or_movmem): Likewise for locals "label",
2637 "jump_around_label", "hot_label".
2638 (ix86_expand_strlensi_unroll_1): Likewise for locals
2639 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2641 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2642 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2643 "label2", "jump_label".
2644 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2646 (ix86_expand_lfloorceil): Likewise for local "label".
2647 (ix86_expand_rint): Likewise.
2648 (ix86_expand_floorceildf_32): Likewise.
2649 (ix86_expand_floorceil): Likewise.
2650 (ix86_expand_rounddf_32): Likewise.
2651 (ix86_expand_trunc): Likewise.
2652 (ix86_expand_truncdf_32): Likewise.
2653 (ix86_expand_round): Likewise.
2655 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2657 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2658 first param from rtx to rtx_insn *.
2659 (h8300_insn_length_from_table): Likewise.
2660 * config/h8300/h8300.c (F): Likewise for return type and param
2662 (Fpa): Add a checked cast to rtx_insn *.
2663 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2665 (final_prescan_insn): Likewise for param "insn".
2666 (h8300_binary_length): Likewise.
2667 (h8300_insn_length_from_table): Likewise.
2669 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2671 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2672 Strengthen first param "insn" from rtx to rtx_insn *.
2674 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2676 (frame_insn): Likewise for return type. Introduce local "insn"
2677 for use in place of local "x" for use as an rtx_insn *.
2678 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2679 (epiphany_expand_prologue): Likewise for local "insn".
2680 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2681 * config/epiphany/resolve-sw-modes.c
2682 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2687 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2688 param from rtx to rtx_insn *.
2689 (c6x_final_prescan_insn): Likewise for first param.
2691 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2692 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2693 (c6x_expand_compare): Strengthen local "insns" from rtx to
2695 (c6x_get_unit_specifier): Likewise for param "insn".
2696 (c6x_print_unit_specifier_field): Likewise.
2697 (c6x_final_prescan_insn): Likewise.
2698 (emit_add_sp_const): Likewise for local "insn".
2699 (c6x_expand_prologue): Likewise.
2701 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2703 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2704 param 1 from rtx to rtx_insn *.
2705 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2706 the various locals named "insn".
2707 (expand_epilogue_reg_restore): Likewise.
2708 (frame_related_constant_load): Likewise.
2709 (add_to_reg): Likewise.
2710 (emit_link_insn): Likewise.
2711 (do_link): Likewise.
2712 (expand_interrupt_handler_prologue): Likewise.
2713 (branch_dest): Likewise for param "branch".
2714 (asm_conditional_branch): Likewise for param "insn".
2715 (gen_one_bundle): Likewise for elements of param "slot" and local
2717 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2718 elements of local "slot".
2719 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2720 "queue", "next_queue", "prev".
2721 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2722 (add_sched_insns_for_speculation): Likewise for local "insn".
2724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2726 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2727 from rtx to rtx_insn *.
2728 (output_movhi): Likewise.
2729 (output_movsisf): Likewise.
2730 (avr_out_tstsi): Likewise.
2731 (avr_out_tsthi): Likewise.
2732 (avr_out_tstpsi): Likewise.
2733 (avr_out_compare): Likewise.
2734 (avr_out_compare64): Likewise.
2735 (avr_out_movpsi): Likewise.
2736 (ashlqi3_out): Likewise.
2737 (ashlhi3_out): Likewise.
2738 (ashlsi3_out): Likewise.
2739 (ashrqi3_out): Likewise.
2740 (ashrhi3_out): Likewise.
2741 (ashrsi3_out): Likewise.
2742 (lshrqi3_out): Likewise.
2743 (lshrhi3_out): Likewise.
2744 (lshrsi3_out): Likewise.
2745 (avr_out_ashlpsi3): Likewise.
2746 (avr_out_ashrpsi3): Likewise.
2747 (avr_out_lshrpsi3): Likewise.
2748 (avr_out_fract): Likewise.
2749 (avr_out_sbxx_branch): Likewise.
2750 (avr_out_round): Likewise.
2751 (avr_out_xload): Likewise.
2752 (avr_out_movmem): Likewise.
2753 (adjust_insn_length): Likewise.
2754 (avr_out_lpm): Likewise.
2755 (reg_unused_after): Likewise.
2756 (_reg_unused_after): Likewise.
2757 (avr_jump_mode): Likewise for second param.
2758 (jump_over_one_insn): Likewise for first param.
2759 (avr_final_prescan_insn): Likewise.
2760 (out_shift_with_cnt): Likewise for second param.
2762 * config/avr/avr.c (get_sequence_length): Likewise for param
2763 "insns" and local "insn".
2764 (emit_push_byte): Likewise for local "insn".
2765 (emit_push_sfr): Likewise.
2766 (avr_prologue_setup_frame): Likewise for locals "insn",
2767 "fp_plus_insns", "sp_plus_insns".
2768 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2770 (avr_jump_mode): Likewise for param "insn".
2771 (avr_final_prescan_insn): Likewise.
2772 (avr_find_unused_d_reg): Likewise.
2773 (avr_out_lpm_no_lpmx): Likewise.
2774 (avr_out_lpm): Likewise.
2775 (avr_out_xload): Likewise.
2776 (output_movqi): Likewise.
2777 (output_movhi): Likewise.
2778 (out_movqi_r_mr): Likewise.
2779 (out_movhi_r_mr): Likewise.
2780 (out_movsi_r_mr): Likewise.
2781 (out_movsi_mr_r): Likewise.
2782 (output_movsisf): Likewise.
2783 (avr_out_load_psi): Likewise.
2784 (avr_out_store_psi): Likewise.
2785 (avr_out_movpsi): Likewise.
2786 (out_movqi_mr_r): Likewise.
2787 (avr_out_movhi_mr_r_xmega): Likewise.
2788 (out_movhi_mr_r): Likewise.
2789 (compare_condition): Likewise for param "insn" and local "next".
2790 (compare_sign_p): Likewise for param "insn".
2791 (compare_diff_p): Likewise.
2792 (compare_eq_p): Likewise.
2793 (avr_out_compare): Likewise.
2794 (avr_out_compare64): Likewise.
2795 (avr_out_tsthi): Likewise.
2796 (avr_out_tstpsi): Likewise.
2797 (avr_out_tstsi): Likewise.
2798 (out_shift_with_cnt): Likewise.
2799 (ashlqi3_out): Likewise.
2800 (ashlhi3_out): Likewise.
2801 (avr_out_ashlpsi3): Likewise.
2802 (ashlsi3_out): Likewise.
2803 (ashrqi3_out): Likewise.
2804 (ashrhi3_out): Likewise.
2805 (avr_out_ashrpsi3): Likewise.
2806 (ashrsi3_out): Likewise.
2807 (lshrqi3_out): Likewise.
2808 (lshrhi3_out): Likewise.
2809 (avr_out_lshrpsi3): Likewise.
2810 (lshrsi3_out): Likewise.
2811 (avr_out_fract): Likewise.
2812 (avr_out_round): Likewise.
2813 (avr_adjust_insn_length): Likewise.
2814 (reg_unused_after): Likewise.
2815 (_reg_unused_after): Likewise.
2816 (avr_compare_pattern): Likewise.
2817 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2818 and locals "branch1", "branch2", "insn2", "jump".
2819 (avr_reorg): Likewise for local "insn".
2820 (avr_2word_insn_p): Likewise for param "insn".
2821 (jump_over_one_insn_p): Likewise.
2822 (avr_out_sbxx_branch): Likewise.
2823 (avr_out_movmem): Likewise.
2825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2827 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2828 param from rtx to rtx_insn *.
2829 (thumb1_final_prescan_insn): Likewise.
2830 (thumb2_final_prescan_insn): Likewise.
2832 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2834 (struct minipool_node): Likewise for field "insn".
2835 (dump_minipool): Likewise for param "scan".
2836 (create_fix_barrier): Likewise for local "from". Strengthen local
2837 "label" from rtx to rtx_code_label *.
2838 (push_minipool_barrier): Strengthen param "insn" from rtx to
2840 (push_minipool_fix): Likewise.
2841 (note_invalid_constants): Likewise.
2842 (thumb2_reorg): Likewise for local "insn".
2843 (arm_reorg): Likewise.
2844 (thumb2_final_prescan_insn): Likewise for param
2845 "insn" and local "first_insn".
2846 (arm_final_prescan_insn): Likewise for param "insn" and locals
2847 "start_insn", "this_insn".
2848 (arm_debugger_arg_offset): Likewise for param "insn".
2849 (thumb1_emit_multi_reg_push): Likewise for return type and local
2851 (thumb1_final_prescan_insn): Likewise for param "insn".
2852 (thumb_far_jump_used_p): Likewise for local "insn".
2853 (thumb1_expand_prologue): Likewise.
2854 (arm_expand_epilogue_apcs_frame): Likewise.
2855 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2856 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2857 from rtx to rtx_code_label *.
2858 (arm_split_atomic_op): Likewise for local "label".
2859 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2861 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2863 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2864 first param from rtx to rtx_insn *.
2865 (arc_verify_short): Likewise.
2866 (arc_short_long): Likewise.
2867 (arc_need_delay): Likewise.
2869 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2871 (arc_ccfsm_advance): Likewise for param "insn" and locals
2872 "start_insn", "this_insn".
2873 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2874 (arc_ccfsm_post_advance): Likewise for param "insn".
2875 (arc_next_active_insn): Likewise for return type and param "insn".
2876 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2877 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2878 (output_short_suffix): Likewise for local "insn".
2879 (arc_final_prescan_insn): Likewise for param "insn". Remove
2880 now-redundant checked cast.
2881 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2882 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2883 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2884 for use where lc_set became an insn.
2885 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2887 (arc_get_insn_variants): Likewise for local "prev".
2888 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2890 (arc_predicate_delay_insns): Likewise for local "insn".
2891 (arc_pad_return): Likewise for local "prev". For now, add a
2892 checked cast when extracting the insn from "final_sequence".
2893 (arc_short_long): Likewise for param "insn".
2894 (arc_need_delay): Likewise for param "insn" and local "next".
2895 (arc_label_align): Likewise for locals "prev", "next".
2897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2899 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2900 "insn" from rtx to rtx_insn *.
2901 (alpha_gp_save_rtx): Likewise for local "seq".
2902 (alpha_instantiate_decls): Likewise for local "top".
2903 (get_some_local_dynamic_name): Likewise for local "insn".
2904 (alpha_does_function_need_gp): Likewise.
2905 (set_frame_related_p): Likewise for return type and for locals
2907 (emit_frame_store_1): Likewise for local "insn".
2908 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2909 (alpha_end_function): Likewise for local "insn".
2910 (alpha_output_mi_thunk_osf): Likewise.
2911 (alphaev4_insn_pipe): Likewise for param "insn".
2912 (alphaev5_insn_pipe): Likewise.
2913 (alphaev4_next_group): Likewise for return type and param 1
2915 (alphaev5_next_group): Likewise.
2916 (alpha_align_insns_1): Likewise for return type and param 1 of
2917 callback param "next_group", and for locals "i", "next", "prev",
2918 "where", "where2", "insn".
2920 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2922 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2923 rather than modifying the stmt.
2925 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2927 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2928 cgraph_state conversion.
2930 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2932 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2933 Strengthen local "insns" from rtx to rtx_insn *.
2934 (aarch64_set_frame_expr): Likewise for local "insn".
2935 (aarch64_save_or_restore_fprs): Likewise.
2936 (aarch64_save_or_restore_callee_save_registers): Likewise.
2937 (aarch64_expand_prologue): Likewise.
2938 (aarch64_expand_epilogue): Likewise.
2939 (aarch64_output_mi_thunk): Likewise.
2940 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2941 "label2" from rtx to rtx_code_label *.
2942 (aarch64_split_atomic_op): Likewise for local "label".
2944 2014-08-25 Martin Liska <mliska@suse.cz>
2946 * cgraph.h (symtab_node):
2947 (bool needed_p (void)): created from decide_is_symbol_needed
2948 (bool referred_to_p (void)): created from referred_to_p
2949 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2950 * cgraph.h (cgraph_node):
2951 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2952 (void expand (void)): created from expand_function
2953 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2954 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2955 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2956 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2957 * cgraph.h (varpool_node):
2958 (static void add (tree decl): created from varpool_add_new_variable
2959 * cgraph.h (cgraph_edge):
2961 (void remove_caller (void)): created from cgraph_edge_remove_caller
2962 (void remove_callee (void)): created from cgraph_edge_remove_callee
2963 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2964 created from cgraph_set_call_stmt
2965 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2966 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2967 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2968 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2969 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2970 created from cgraph_speculative_call_info
2971 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2972 int freq_scale, bool update_original)): created from cgraph_clone_edge
2973 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2974 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2975 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2976 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2977 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2978 (static void rebuild_references (void)): created from cgraph_rebuild_references
2979 * cgraph.h (symbol_table):
2980 (create_reference): renamed from add_reference
2981 (maybe_create_reference): renamed from maybe_add_reference
2982 (void register_symbol (symtab_node *node)): new function
2983 (void clear_asm_symbols (void)): new function
2984 (void unregister (symtab_node *node)): new function
2985 (void release_symbol (cgraph_node *node, int uid)): new function
2986 (cgraph_node * allocate_cgraph_symbol (void)): new function
2987 (void initialize (void)): created from cgraph_init
2988 (symtab_node *first_symbol (void)):new function
2989 (asm_node *first_asm_symbol (void)):new function
2990 (symtab_node *first_defined_symbol (void)):new function
2991 (varpool_node *first_variable (void)):new function
2992 (varpool_node *next_variable (varpool_node *node)):new function
2993 (varpool_node *first_static_initializer (void)):new function
2994 (varpool_node *next_static_initializer (varpool_node *node)):new function
2995 (varpool_node *first_defined_variable (void)):new function
2996 (varpool_node *next_defined_variable (varpool_node *node)):new function
2997 (cgraph_node *first_defined_function (void)):new function
2998 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2999 (cgraph_node *first_function (void)):new function
3000 (cgraph_node *next_function (cgraph_node *node)):new function
3001 (cgraph_node *first_function_with_gimple_body (void)):new function
3002 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3003 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3004 created from symtab_remove_unreachable_nodes
3005 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3006 (void process_new_functions (void)): created from cgraph_process_new_functions
3007 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3008 (bool output_variables (void)): created from varpool_node::output_variables
3009 (void output_asm_statements (void)): created from output_asm_statements
3010 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3011 (void compile (void)): created from compile
3012 (void output_weakrefs (void)): created from output_weakrefs
3013 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3014 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3015 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3016 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3017 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3018 created from cgraph_next_function_with_gimple_body
3019 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3020 created from cgraph_remove_edge_removal_hook
3021 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3022 created from cgraph_add_node_removal_hook
3023 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3024 created from cgraph_remove_node_removal_hook
3025 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3026 created from varpool_add_node_removal_hook
3027 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3028 created from varpool_remove_node_removal_hook
3029 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3030 created from cgraph_add_function_insertion_hook
3031 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3032 created from cgraph_remove_function_insertion_hook
3033 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3034 created from varpool_add_variable_insertion_hook
3035 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3036 created from varpool_remove_variable_insertion_hook
3037 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3038 created from cgraph_add_edge_duplication_hook
3039 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3040 created from cgraph_remove_edge_duplication_hook
3041 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3042 created from cgraph_add_node_duplication_hook
3043 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3044 created from cgraph_remove_node_duplication_hook
3045 (void call_edge_removal_hooks (cgraph_edge *e)):
3046 created from cgraph_call_edge_removal_hooks
3047 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3048 created from call_function_insertion_hooks
3049 (void call_cgraph_removal_hooks (cgraph_node *node)):
3050 created from cgraph_call_node_removal_hooks
3051 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3052 created from cgraph_node::call_duplication_hooks
3053 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3054 created from cgraph_call_edge_duplication_hooks
3055 (void call_varpool_removal_hooks (varpool_node *node)):
3056 created from varpool_call_node_removal_hooks
3057 (void call_varpool_insertion_hooks (varpool_node *node)):
3058 created from varpool_call_variable_insertion_hooks
3059 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3060 created from insert_to_assembler_name_hash
3061 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3062 created from unlink_from_assembler_name_hash
3063 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3064 created from symtab_prevail_in_asm_name_hash
3065 (void symtab_initialize_asm_name_hash (void)):
3066 created from symtab_initialize_asm_name_hash
3067 (void change_decl_assembler_name (tree decl, tree name)):
3068 created from change_decl_assembler_name
3069 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3070 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3071 created from decl_assembler_name_hash
3072 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3073 created from decl_assembler_name_equal
3074 (static hashval_t hash_node_by_assembler_name (const void *p)):
3075 created from hash_node_by_assembler_name
3076 (static int eq_assembler_name (const void *p1, const void *p2)):
3077 created from eq_assembler_name
3079 2014-08-25 Marek Polacek <polacek@redhat.com>
3081 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3083 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3085 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3086 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3087 SWI1248_AVX512BW mode iterator.
3089 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3092 * config/sh/predicates.md (general_extend_operand): Disable
3093 TRUNCATE before reload completes.
3095 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3097 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3099 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3102 * config/sh/sh.opt (musermode): Allow negative form.
3103 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3104 targets that don't support it.
3105 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3106 Document -mno-usermode option.
3108 2014-08-24 Kito Cheng <kito@0xlab.org>
3110 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3111 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3112 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3113 * doc/tm.texi: Regenerate.
3115 2014-08-24 Kito Cheng <kito@0xlab.org>
3117 * ira.c: Fix typo in comment.
3119 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3121 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3122 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3124 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3127 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3128 last_address when the current function is a thunk.
3129 (pa_asm_output_mi_thunk): When we don't have named sections or they
3130 are not being used, check that thunk can reach the stub table with a
3133 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3135 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3137 (pass_web::execute): Likewise for local "insn".
3139 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3141 * var-tracking.c (struct micro_operation_def): Strengthen field
3142 "insn" from rtx to rtx_insn *.
3143 (struct emit_note_data_def): Likewise.
3144 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3145 (vt_stack_adjustments): Likewise for local "insn".
3146 (adjust_insn): Likewise for param "insn".
3147 (val_store): Likewise.
3148 (val_resolve): Likewise.
3149 (struct count_use_info): Likewise for field "insn".
3150 (log_op_type): Likewise for param "insn".
3151 (reverse_op): Likewise.
3152 (prepare_call_arguments): Likewise.
3153 (add_with_sets): The initial param takes an insn, but we can't
3154 yet strengthen it from rtx to rtx_insn * since it's used as a
3155 cselib_record_sets_hook callback. For now rename initial param
3156 from "insn" to "uncast_insn", and introduce a local "insn" of
3157 the stronger rtx_insn * type, with a checked cast.
3158 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3160 (emit_note_insn_var_location): Likewise.
3161 (emit_notes_for_changes): Likewise.
3162 (emit_notes_for_differences): Likewise.
3163 (next_non_note_insn_var_location): Likewise for return type and
3165 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3166 (vt_initialize): Likewise for local "insn".
3167 (delete_debug_insns): Likewise for locals "insn" and "next".
3169 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3171 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3173 (mark_constant_pool): Likewise for local "insn".
3175 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3177 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3179 (dead_debug_promote_uses): Likewise.
3180 (dead_debug_insert_temp): Likewise.
3182 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3184 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3185 from const_rtx to const rtx_insn *.
3186 (store_killed_after): Likewise. Strengthen locals "last", "act"
3187 from rtx to rtx_insn *.
3188 (store_killed_before): Strengthen param "insn" from const_rtx to
3189 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3190 (find_moveable_store): Strengthen param "insn" from rtx to
3192 (compute_store_table): Likewise for local "insn".
3193 (insert_insn_start_basic_block): Likewise for param "insn" and
3194 locals "prev", "before", "insn".
3195 (insert_store): For now, add a checked cast to rtx_insn * on the
3196 result of gen_move_insn.
3197 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3199 (replace_store_insn): Likewise. For now, add a checked cast to
3200 rtx_insn * on the result of gen_move_insn.
3202 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3204 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3206 (expand_sjlj_dispatch_table): Likewise.
3208 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3210 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3211 "insn" from rtx to rtx_insn *.
3213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3215 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3216 "insn" from rtx to rtx_insn *.
3217 (dup_block_and_redirect): Likewise for param 3 "before".
3219 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3220 from rtx to rtx_insn *.
3221 (move_insn_for_shrink_wrap): Likewise.
3222 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3223 (dup_block_and_redirect): Likewise for param "before" and local
3225 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3227 (convert_to_simple_return): Likewise for local "start".
3229 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3230 Strengthen local "insn" from rtx to rtx_insn *, for use when
3231 invoking requires_stack_frame_p.
3233 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3235 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3237 (speculate_expr): Likewise for locals "orig_insn_rtx",
3239 (eq_transformed_insns): Likewise for locals "i1", "i2".
3240 (check_for_new_jump): Likewise for return type and local "end".
3241 (find_new_jump): Likewise for return type and local "jump".
3242 (sel_split_edge): Likewise for local "jump".
3243 (sel_create_recovery_block): Likewise.
3244 (sel_redirect_edge_and_branch_force): Likewise.
3245 (sel_redirect_edge_and_branch): Likewise.
3247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3249 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3250 "new_insn" from rtx to rtx_insn *.
3251 (create_insn_rtx_with_rhs): Likewise for return type and for local
3253 (create_insn_rtx_with_lhs): Likewise.
3254 (create_speculation_check): Likewise for local "insn_rtx".
3255 (implicit_clobber_conflict_p): Likewise for local "insn".
3256 (get_expr_cost): Likewise.
3257 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3258 (move_cond_jump): Likewise for locals "next", "prev", "link",
3259 "head", "from", "to".
3261 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3263 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3264 "next" from rtx to rtx_insn *.
3265 (find_conditional_protection): Likewise for local "next".
3266 (is_conditionally_protected): Likewise for local "insn1".
3267 (is_pfree): Likewise for locals "insn1", "insn2".
3269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3271 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3272 from rtx to rtx_insn *.
3274 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3275 locals "insn1", "insn2" from rtx to rtx_insn *.
3276 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3277 locals "insn", "prev", "last_jump", "next_tail".
3278 (schedule_ebb): Likewise for params "head", "tail".
3279 (schedule_ebbs): Likewise for locals "tail", "head".
3281 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3282 to rtx_insn on "last_insn" in one of the invocations of
3285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3287 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3288 "elem", "insn" from rtx to rtx_insn *.
3289 (change_spec_dep_to_hard): Likewise.
3290 (get_back_and_forw_lists): Likewise for local "con".
3291 (sd_add_dep): Likewise for locals "elem", "insn".
3292 (sd_resolve_dep): Likewise for locals "pro", "con".
3293 (sd_unresolve_dep): Likewise.
3294 (sd_delete_dep): Likewise.
3295 (chain_to_prev_insn): Likewise for local "pro".
3296 (find_inc): Likewise for locals "pro", "con".
3298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3300 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3302 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3304 (modified_between_p): Strengthen local "insn" from rtx to
3306 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3307 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3310 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3312 * resource.c (next_insn_no_annul): Strengthen local "next" from
3314 (mark_referenced_resources): Likewise for local "insn".
3316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3318 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3320 (find_reloads): Likewise for param 1.
3321 (subst_reloads): Likewise for sole param.
3322 (find_equiv_reg): Likwise for param 2.
3323 (regno_clobbered_p): Likwise for param 2.
3324 (reload): Likewise for param 1.
3326 * caller-save.c (save_call_clobbered_regs): Strengthen local
3327 "insn" from rtx to rtx_insn *.
3328 (insert_one_insn): Likewise for local "insn".
3330 * reload.c (this_insn): Likewise for this global.
3331 (find_reloads): Likewise for param "insn".
3332 (find_reloads_toplev): Likewise.
3333 (find_reloads_address): Likewise.
3334 (subst_reg_equivs): Likewise.
3335 (update_auto_inc_notes): Likewise.
3336 (find_reloads_address_1): Likewise.
3337 (find_reloads_subreg_address): Likewise.
3338 (subst_reloads): Likewise.
3339 (find_equiv_reg): Likewise, also for local "p".
3340 (regno_clobbered_p): Likewise for param "insn".
3342 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3344 (spill_reg_store): Likewise for the elements of this array.
3345 (remove_init_insns): Likewise for local "equiv_insn".
3346 (will_delete_init_insn_p): Likewise for param "insn".
3347 (reload): Likewise for param ""first" and local "insn".
3348 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3350 (calculate_elim_costs_all_insns): Likewise.
3351 (delete_caller_save_insns): Likewise.
3352 (spill_failure): Likewise for param "insn".
3353 (delete_dead_insn): Likewise.
3354 (set_label_offsets): Likewise.
3355 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3357 (elimination_costs_in_insn): Likewise for param "insn".
3358 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3359 when referring to an insn.
3360 (set_initial_label_offsets): Likewise.
3361 (set_offsets_for_label): Strengthen param "insn" from rtx to
3363 (init_eliminable_invariants): Likewise for param "first" and local
3365 (fixup_eh_region_note): Likewise for param "insn".
3366 (reload_as_needed): Likewise for locals "prev", "insn",
3367 "old_next", "old_prev", "next".
3368 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3370 (reload_inheritance_insn): Strengthen elements of this array from
3372 (failed_reload): Likewise for param "insn".
3373 (choose_reload_regs): Likewise for local "insn". Replace use of
3374 NULL_RTX with NULL when referring to an insn.
3375 (input_reload_insns): Strengthen elements of this array from rtx
3377 (other_input_address_reload_insns): Likewise for this global.
3378 (other_input_reload_insns): Likewise for this global.
3379 (input_address_reload_insns): Likwise for the elements of this
3381 (inpaddr_address_reload_insns): Likwise for the elements of this
3383 (output_reload_insns): Likewise for the elements of this array.
3384 (output_address_reload_insns): Likewise for the elements of this
3386 (outaddr_address_reload_insns): Likewise for the elements of this
3388 (operand_reload_insns): Likewise for this global.
3389 (other_operand_reload_insns): Likewise for this global.
3390 (other_output_reload_insns): Likewise for the elements of this
3392 (new_spill_reg_store): Likewise for the elements of this
3394 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3395 Strengthen local "where" from rtx * to rtx_insn **.
3396 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3397 from rtx to rtx_insn *.
3398 (do_input_reload): Likewise for local "insn".
3399 (do_output_reload): Likewise for local "insn".
3400 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3401 (emit_insn_if_valid_for_reload): Likewise for return type and local
3402 "last". Add checked cast to rtx_insn when returning "insn" since
3403 this has been through emit_insn.
3404 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3405 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3406 returning "insn" since it's been through
3407 emit_insn_if_valid_for_reload at this point.
3408 (delete_output_reload): Strengthen param "insn" and locals
3409 "output_reload_insn", "i2" from rtx to rtx_insn *.
3410 (delete_address_reloads): Likewise for params "dead_insn",
3411 "current_insn" and locals "prev", "next".
3412 (delete_address_reloads_1): Likewise for params "dead_insn",
3413 "current_insn" and locals "prev", "i2".
3414 (inc_for_reload): Likewise for locals "last", "add_insn".
3415 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3418 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3419 param of this duplicate of the prototype from reload.h
3421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3423 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3425 (regstat_bb_compute_calls_crossed): Likewise.
3427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3429 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3431 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3433 (regrename_analyze): Strengthen local "insn" from rtx to
3435 (scan_rtx_reg): Likewise for param "insn".
3436 (scan_rtx_address): Likewise.
3437 (scan_rtx): Likewise.
3438 (restore_operands): Likewise.
3439 (record_out_operands): Likewise.
3440 (build_def_use): Likewise for local "insn". Replace use of
3441 NULL_RTX with NULL when dealing with an insn.
3443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3445 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3446 * reginfo.c (reg_scan): Likewise, also for local "insn".
3447 (reg_scan_mark_refs): Likewise for param "insn".
3448 (init_subregs_of_mode): Likewise for local "insn".
3450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3452 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3453 "insn" from rtx to rtx_insn *.
3454 (replace_oldest_value_reg): Likewise for param "insn".
3455 (replace_oldest_value_addr): Likewise.
3456 (replace_oldest_value_mem): Likewise.
3457 (apply_debug_insn_changes): Likewise for local "last_insn".
3458 (copyprop_hardreg_forward_1): Likewise for local "insn".
3460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3462 * reg-stack.c (next_flags_user): Strengthen return type and param
3463 "insn" from rtx to rtx_insn *.
3464 (straighten_stack): Likewise for param "insn".
3465 (check_asm_stack_operands): Likewise.
3466 (remove_regno_note): Likewise.
3467 (emit_pop_insn): Likewise for return type, param "insn", local
3469 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3470 "limit" from rtx to rtx_insn *.
3471 (swap_to_top): Likewise for param "insn".
3472 (move_for_stack_reg): Likewise.
3473 (move_nan_for_stack_reg): Likewise.
3474 (swap_rtx_condition): Likewise.
3475 (compare_for_stack_reg): Likewise.
3476 (subst_all_stack_regs_in_debug_insn): Likewise.
3477 (subst_stack_regs_pat): Likewise, and local "insn2".
3478 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3480 (subst_stack_regs): Likewise.
3481 (change_stack): Likewise.
3482 (convert_regs_1): Likewise for locals "insn", "next".
3484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3486 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3488 (combine_set_extension): Likewise for param "curr_insn".
3489 (transform_ifelse): Likewise for param "def_insn".
3490 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3491 from vec<rtx> * to vec<rtx_insn *> *.
3492 (is_cond_copy_insn): Likewise for param "insn".
3493 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3495 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3496 local "def_insn" from rtx to rtx_insn *.
3497 (get_sub_rtx): Likewise for param "def_insn".
3498 (merge_def_and_ext): Likewise.
3499 (combine_reaching_defs): Likewise.
3500 (add_removable_extension): Likewise for param "insn".
3501 (find_removable_extensions): Likewise for local "insn".
3502 (find_and_remove_re): Likewise for locals "curr_insn" and
3503 "def_insn". Strengthen locals "reinsn_del_list" and
3504 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3508 * recog.c (split_insn): Strengthen param "insn" and locals
3509 "first", "last" from rtx to rtx_insn *.
3510 (split_all_insns): Likewise for locals "insn", "next".
3511 (split_all_insns_noflow): Likewise.
3513 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3515 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3517 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3518 (debug_rtx_find): Likewise for param 1 "x".
3520 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3521 const_rtx to const rtx_insn *. Likewise for local "insn".
3522 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3523 (debug_rtx_find): Likewise for param 1 "x".
3524 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3525 from const_rtx to const rtx_insn * within the appropriate cases of
3526 the switch statement.
3528 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3529 Strengthen local "insns" from rtx to rtx_insn * since this is
3530 passed to a call to debug_rtx_list.
3532 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3534 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3537 * function.c (stack_protect_epilogue): Add checked cast to
3538 rtx_insn for now when invoking predict_insn_def.
3540 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3542 (predict_insn_def): Likewise.
3543 (rtl_predict_edge): Likewise for local "last_insn".
3544 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3546 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3548 (bb_estimate_probability_locally): Likewise for local "last_insn".
3549 (expensive_function_p): Likewise for local "insn".
3551 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3552 local "jmp", since this is used when invoking predict_insn_def.
3554 2014-08-22 Marek Polacek <polacek@redhat.com>
3557 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3559 2014-08-22 Marek Polacek <polacek@redhat.com>
3562 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3563 a comparison in parens.
3564 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3569 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3572 * cprop.c (fis_get_condition): Likewise.
3574 * postreload.c (reload_cse_regs): Likewise for param "first".
3575 (reload_cse_simplify): Likewise for param "insn".
3576 (reload_cse_regs_1): Likewise for local "insn".
3577 (reload_cse_simplify_set): Likewise for param "insn".
3578 (reload_cse_simplify_operands): Likewise.
3579 (struct reg_use): Likewise for field "insn".
3580 (reload_combine_purge_insn_uses): Likewise for param "insn".
3581 (fixup_debug_insns): Likewise for params "from", "to" and local
3583 (try_replace_in_use): Likewise for local "use_insn".
3584 (reload_combine_recognize_const_pattern): Likewise for param
3585 "insn" and locals "add_moved_after_insn", "use_insn".
3586 (reload_combine_recognize_pattern): Likewise for param "insn" and
3588 (reload_combine): Likewise for locals "insn", "prev".
3589 (reload_combine_note_use): Likewise for param "insn".
3590 (move2add_use_add2_insn): Likewise.
3591 (move2add_use_add3_insn): Likewise.
3592 (reload_cse_move2add): Likewise, also for local "next".
3593 (move2add_note_store): Likewise for local "insn".
3595 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3597 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3599 (struct unoccr): Likewise.
3600 (struct modifies_mem): Likewise.
3601 (alloc_mem): Likewise for local "insn".
3602 (insert_expr_in_table): Likewise for param "insn".
3603 (dump_expr_hash_table_entry): Likewise for local "insn".
3604 (oprs_unchanged_p): Likewise for param "insn".
3605 (load_killed_in_block_p): Likewise for local "setter".
3606 (record_last_reg_set_info): Likewise for param "insn".
3607 (record_last_reg_set_info_regno): Likewise.
3608 (record_last_mem_set_info): Likewise.
3609 (record_last_set_info): Likewise for local "last_set_insn".
3610 (record_opr_changes): Likewise for param "insn".
3611 (hash_scan_set): Likewise.
3612 (compute_hash_table): Likewise for local "insn".
3613 (get_avail_load_store_reg): Likewise for param "insn".
3614 (eliminate_partially_redundant_load): Likewise, also for locals
3615 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3617 (eliminate_partially_redundant_loads): Likewise for local "insn".
3619 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3621 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3623 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3624 (expand_twoval_unop): Likewise for locals entry_last", "last".
3625 (expand_twoval_binop): Likewise.
3626 (expand_twoval_binop_libfunc): Likewise for local "insns".
3627 (widen_leading): Likewise for local "last".
3628 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3629 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3630 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3631 (expand_parity): Likewise for locals "last" and "seq".
3632 (expand_ffs): Likewise for local "seq". Strengthen local
3633 "nonzero_label" from rtx to rtx_code_label *.
3634 (expand_absneg_bit): Strengthen local "insns" from rtx to
3636 (expand_unop_direct): Likewise for local "last".
3637 (expand_unop): Likewise for locals "last", "insns".
3638 (expand_abs_nojump): Likewise for local "last".
3639 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3640 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3642 (expand_copysign_absneg): Strengthen local "label" from rtx to
3644 (expand_copysign_bit): Strengthen local "insns" from rtx to
3646 (struct no_conflict_data): Likewise for fields "first", "insn".
3647 (emit_libcall_block_1): Likewise for param "insns" and locals
3648 "next", "last", "insn".
3649 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3650 on "insns" when invoking emit_libcall_block_1. Ultimately we
3651 want to strengthen insns itself.
3652 (prepare_cmp_insn): Strengthen local "last" from rtx to
3654 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3655 (prepare_float_lib_cmp): Likewise for local "insns".
3656 (emit_conditional_move): Likewise for local "last".
3657 (emit_conditional_add): Likewise.
3658 (have_sub2_insn): Likewise for local "seq".
3659 (expand_float): Likewise for local "insns". Strengthen locals
3660 "label", "neglabel" from rtx to rtx_code_label *.
3661 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3662 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3663 (expand_fixed_convert): Likewise for local "insns" (to
3665 (expand_sfix_optab): Likewise for local "last".
3666 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3667 to rtx_code_label *.
3668 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3669 from rtx to rtx_insn *.
3670 (expand_atomic_fetch_op): Likewise for local "insn".
3671 (maybe_legitimize_operand_same_code): Likewise for local "last".
3672 (maybe_legitimize_operands): Likewise.
3674 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3676 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3677 "insn" from rtx to rtx_insn *.
3678 (ps_rtl_insn): Likewise for return type.
3679 (doloop_register_get): Likewise for params "head", "tail" and
3680 locals "insn", "first_insn_not_to_check".
3681 (schedule_reg_move): Likewise for local "this_insn".
3682 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3683 of gen_move_insn for now.
3684 (reset_sched_times): Strengthen local "insn" from rtx to
3686 (permute_partial_schedule): Likewise.
3687 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3688 (dump_insn_location): Likewise for param "insn".
3689 (loop_canon_p): Likewise for local "insn".
3690 (sms_schedule): Likewise.
3691 (print_partial_schedule): Likewise.
3692 (ps_has_conflicts): Likewise.
3694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3696 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3697 "tailp" from rtx * to rtx_insn **.
3699 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3700 from rtx to rtx_insn *.
3701 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3702 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3703 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3705 * modulo-sched.c (const_iteration_count): Strengthen return type
3706 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3707 use of NULL_RTX with NULL when working with insns.
3708 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3710 (sms_schedule): Likewise.
3711 * sched-rgn.c (init_ready_list): Likewise, also for locals
3712 "src_head" and "src_next_tail".
3713 (compute_block_dependences): Likewise.
3714 (free_block_dependencies): Likewise.
3715 (debug_rgn_dependencies): Likewise.
3716 (free_rgn_deps): Likewise.
3717 (compute_priorities): Likewise.
3718 (schedule_region): Likewise.
3719 * sel-sched.c (find_ebb_boundaries): Likewise.
3721 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3722 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3724 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3726 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3727 from rtx to rtx_insn *.
3728 (new_seginfo): Likewise for param "insn".
3729 (create_pre_exit): Likewise for locals "last_insn",
3730 "before_return_copy", "return_copy".
3731 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3734 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3736 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3737 from rtx to rtx_insn *.
3738 (lra_push_insn): Likewise for 1st param.
3739 (lra_push_insn_and_update_insn_regno_info): Likewise.
3740 (lra_pop_insn): Likewise for return type.
3741 (lra_invalidate_insn_data): Likewise for 1st param.
3742 (lra_set_insn_deleted): Likewise.
3743 (lra_delete_dead_insn): Likewise.
3744 (lra_process_new_insns): Likewise for first 3 params.
3745 (lra_set_insn_recog_data): Likewise for 1st param.
3746 (lra_update_insn_recog_data): Likewise.
3747 (lra_set_used_insn_alternative): Likewise.
3748 (lra_invalidate_insn_regno_info): Likewise.
3749 (lra_update_insn_regno_info): Likewise.
3750 (lra_former_scratch_operand_p): Likewise.
3751 (lra_eliminate_regs_1): Likewise.
3752 (lra_get_insn_recog_data): Likewise.
3754 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3757 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3759 (substitute_within_insn): New.
3760 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3761 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3762 Replace call to "substitute" with call to substitute_within_insn.
3764 * lra-constraints.c (curr_insn): Strengthen from rtx to
3766 (get_equiv_with_elimination): Likewise for param "insn".
3767 (match_reload): Strengthen params "before" and "after" from rtx *
3769 (emit_spill_move): Likewise for return type. Add a checked cast
3770 to rtx_insn * on result of gen_move_insn for now.
3771 (check_and_process_move): Likewise for local "before". Replace
3772 NULL_RTX with NULL when referring to insns.
3773 (process_addr_reg): Strengthen params "before" and "after" from
3774 rtx * to rtx_insn **.
3775 (insert_move_for_subreg): Likewise.
3776 (simplify_operand_subreg): Strengthen locals "before" and "after"
3777 from rtx to rtx_insn *.
3778 (process_address_1): Strengthen params "before" and "after" from
3779 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3781 (process_address): Strengthen params "before" and "after" from
3782 rtx * to rtx_insn **.
3783 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3784 (curr_insn_transform): Strengthen locals "before" and "after"
3785 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3787 (loc_equivalence_callback): Update cast of "data", changing
3788 resulting type from rtx to rtx_insn *.
3789 (substitute_pseudo_within_insn): New.
3790 (inherit_reload_reg): Strengthen param "insn" from rtx to
3791 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3792 NULL when referring to insns. Add a checked cast to rtx_insn *
3793 when using usage_insn to invoke lra_update_insn_regno_info.
3794 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3795 likewise for locals "restore", "save". Add checked casts to
3796 rtx_insn * when using usage_insn to invoke
3797 lra_update_insn_regno_info and lra_process_new_insns. Replace
3798 NULL_RTX with NULL when referring to insns.
3799 (split_if_necessary): Strengthen param "insn" from rtx to
3801 (update_ebb_live_info): Likewise for params "head", "tail" and local
3803 (get_last_insertion_point): Likewise for return type and local "insn".
3804 (get_live_on_other_edges): Likewise for local "last".
3805 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3806 "prev_insn", "next_insn", "restore".
3807 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3808 (undo_optional_reloads): Likewise for local "insn".
3810 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3812 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3814 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3816 (spill_pseudos): Likewise for local "insn".
3817 (init_elimination): Likewise.
3818 (process_insn_for_elimination): Likewise for param "insn".
3820 * lra-lives.c (curr_insn): Likewise.;
3822 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3823 (remove_pseudos): Likewise for param "insn".
3824 (spill_pseudos): Likewise for local "insn".
3825 (lra_final_code_change): Likewise for locals "insn", "curr".
3827 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3828 (lra_set_insn_deleted): Likewise.
3829 (lra_delete_dead_insn): Likewise, and for local "prev".
3830 (new_insn_reg): Likewise for param "insn".
3831 (lra_set_insn_recog_data): Likewise.
3832 (lra_update_insn_recog_data): Likewise.
3833 (lra_set_used_insn_alternative): Likewise.
3834 (get_insn_freq): Likewise.
3835 (invalidate_insn_data_regno_info): Likewise.
3836 (lra_invalidate_insn_regno_info): Likewise.
3837 (lra_update_insn_regno_info): Likewise.
3838 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3840 (lra_push_insn_1): Strengthen param "insn" from rtx to
3842 (lra_push_insn): Likewise.
3843 (lra_push_insn_and_update_insn_regno_info): Likewise.
3844 (lra_pop_insn): Likewise for return type and local "insn".
3845 (push_insns): Likewise for params "from", "to", and local "insn".
3846 (setup_sp_offset): Likewise for params "from", "last" and locals
3848 (lra_process_new_insns): Likewise for params "insn", "before",
3849 "after" and local "last".
3850 (struct sloc): Likewise for field "insn".
3851 (lra_former_scratch_operand_p): Likewise for param "insn".
3852 (remove_scratches): Likewise for locals "insn", "last".
3853 (check_rtl): Likewise for local "insn".
3854 (add_auto_inc_notes): Likewise for param "insn".
3855 (update_inc_notes): Likewise for local "insn".
3856 (lra): Replace NULL_RTX with NULL when referring to insn.
3858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3860 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3862 (resolve_reg_notes): Likewise.
3863 (resolve_simple_move): Likewise for return type, param "insn", and
3864 locals "insns", "minsn".
3865 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3866 (resolve_use): Likewise.
3867 (resolve_debug): Likewise.
3868 (find_decomposable_shift_zext): Likewise.
3869 (resolve_shift_zext): Likewise for return type, param "insn", and
3870 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3871 (decompose_multiword_subregs): Likewise for local "insn",
3872 "orig_insn", "decomposed_shift", "end".
3874 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3876 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3877 param "insns" from rtx to rtx_insn *.
3879 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3881 (struct iv_to_split): Likewise.
3882 (loop_exit_at_end_p): Likewise for local "insn".
3883 (split_edge_and_insert): Likewise for param "insns".
3884 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3885 and locals "seq", "jump".
3886 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3887 "branch_code"; update invocations of compare_and_jump_seq to
3888 eliminate NULL_RTX in favor of NULL.
3889 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3891 (reset_debug_uses_in_loop): Likewise.
3892 (analyze_insn_to_expand_var): Likewise for param "insn".
3893 (analyze_iv_to_split_insn): Likewise.
3894 (analyze_insns_in_loop): Likewise for local "insn".
3895 (insert_base_initialization): Likewise for param
3896 "insn" and local "seq".
3897 (split_iv): Likewise for param "insn" and local "seq".
3898 (expand_var_during_unrolling): Likewise for param "insn".
3899 (insert_var_expansion_initialization): Likewise for local "seq".
3900 (combine_var_copies_in_loop_exit): Likewise.
3901 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3903 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3904 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3909 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3911 (iv_analyze_result): Likewise.
3912 (iv_analyze_expr): Likewise.
3915 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3916 local "def_insn" from rtx to rtx_insn *.
3917 (get_biv_step_1): Likewise for local "insn".
3918 (iv_analyze_expr): Likewise for param "insn".
3919 (iv_analyze_def): Likewise for local "insn".
3920 (iv_analyze_op): Likewise for param "insn".
3921 (iv_analyze): Likewise.
3922 (iv_analyze_result): Likewise.
3924 (suitable_set_for_replacement): Likewise.
3925 (simplify_using_initial_values): Likewise for local "insn".
3926 (iv_number_of_iterations): Likewise for param "insn".
3927 (check_simple_exit): Add checked cast to rtx_insn when invoking
3928 iv_number_of_iterations for now (until get_condition is
3931 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3932 "insn" from rtx to rtx_insn *.
3933 (analyze_insns_in_loop): Likewise for local "insn".
3935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3937 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3939 (struct invariant): Likewise.
3940 (hash_invariant_expr_1): Likewise for param "insn".
3941 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3942 (find_exits): Likewise for local "insn".
3943 (create_new_invariant): Likewise for param "insn".
3944 (check_dependencies): Likewise.
3945 (find_invariant_insn): Likewise.
3946 (record_uses): Likewise.
3947 (find_invariants_insn): Likewise.
3948 (find_invariants_bb): Likewise for local "insn".
3949 (get_pressure_class_and_nregs): Likewise for param "insn".
3950 (calculate_loop_reg_pressure): Likewise for local "insn".
3952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3954 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3956 (add_test): Likewise for locals "seq", "jump".
3957 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3959 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3961 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3963 (rebuild_jump_labels_chain): Likewise for param "chain".
3965 * cfgexpand.c (pass_expand::execute): Add checked cast to
3966 rtx_insn * when calling rebuild_jump_labels_chain in region where
3967 we know e->insns.r is non-NULL.
3969 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3971 (rebuild_jump_labels): Likewise.
3972 (rebuild_jump_labels_chain): Likewise for param "chain".
3973 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3974 (init_label_info): Likewise for param "f".
3975 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3976 "prev_nonjump_insn".
3977 (mark_all_labels): Likewise for param "f" and locals "insn",
3978 "prev_nonjump_insn".
3980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3982 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3983 from rtx to rtx_insn *insn.
3984 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3985 (ira_add_allocno_copy): Likewise.
3986 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3988 (ira_create_copy): Likewise.
3989 (ira_add_allocno_copy): Likewise.
3990 (create_bb_allocnos): Likewise for local "insn".
3991 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3992 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3993 process_regs_for_copy for rtx_insn * param.
3994 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3995 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3996 process_regs_for_copy for rtx_insn * param.
3997 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3998 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3999 (record_operand_costs): Likewise.
4000 (scan_one_insn): Likewise for return type, and for param "insn".
4001 (process_bb_for_costs): Likewise for local "insn".
4002 (process_bb_node_for_hard_reg_moves): Likewise.
4003 * ira-emit.c (struct move): Likewise for field "insn".
4004 (create_move): Eliminate use of NULL_RTX when dealing with an
4006 (emit_move_list): Strengthen return type and locals "result",
4007 "insn" from rtx to rtx_insn *insn.
4008 (emit_moves): Likewise for locals "insns", "tmp".
4009 (ira_emit): Likewise for local "insn".
4010 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4012 (find_call_crossed_cheap_reg): Likewise.
4013 (process_bb_node_lives): Likewise for local "insn".
4014 * ira.c (decrease_live_ranges_number): Likewise.
4015 (compute_regs_asm_clobbered): Likewise.
4016 (build_insn_chain): Likewise.
4017 (find_moveable_pseudos): Likewise, also locals "def_insn",
4018 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4019 to rtx_insn **. Add a checked cast when assigning from
4020 "closest_use" into closest_uses array in a region where we know
4021 it's a non-NULL insn.
4022 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4024 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4025 "last_interesting_insn", "uin".
4026 (move_unallocated_pseudos): Likewise for locals "def_insn",
4027 "move_insn", "newinsn".
4029 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4031 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4032 Strengthen locals "done_label", "do_error" from rtx to
4034 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4035 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4037 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4038 "done_label", "do_error" to rtx_code_label * and local "last" to
4040 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4041 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4042 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4043 "after_lopart_neg", "do_overflow", "hipart_different" to
4044 rtx_code_label * and local "last" to rtx_insn *.
4046 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4048 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4049 "insn" and "move_insn" from rtx to rtx_insn *.
4051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4053 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4055 (cheap_bb_rtx_cost_p): Likewise.
4056 (first_active_insn): Likewise for return type and local "insn".
4057 (last_active_insn): Likewise for return type and locals "insn",
4059 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4061 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4063 (noce_try_move): Likewise for local "seq".
4064 (noce_try_store_flag): Likewise.
4065 (noce_try_store_flag_constants): Likewise.
4066 (noce_try_addcc): Likewise.
4067 (noce_try_store_flag_mask): Likewise.
4068 (noce_try_cmove): Likewise.
4069 (noce_try_minmax): Likewise.
4070 (noce_try_abs): Likewise.
4071 (noce_try_sign_mask): Likewise.
4072 (noce_try_bitop): Likewise.
4073 (noce_can_store_speculate_p): Likewise for local "insn".
4074 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4076 (check_cond_move_block): Likewise for local "insn".
4077 (cond_move_convert_if_block): Likewise.
4078 (cond_move_process_if_block): Likewise for locals "seq",
4080 (noce_find_if_block): Likewise for local "jump".
4081 (merge_if_block): Likewise for local "last".
4082 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4083 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4084 (block_has_only_trap): Likewise for return type and local "trap".
4085 (find_if_case_1): Likewise for local "jump".
4086 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4091 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4092 "last_insn", "loop_end" from rtx to rtx_insn *.
4094 * hw-doloop.c (scan_loop): Likewise for local "insn".
4095 (discover_loop): Likewise for param "tail_insn".
4096 (discover_loops): Likewise for local "tail".
4098 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4099 cast to rtx_insn * when assigning from an rtx local to a
4100 hwloop_info's "last_insn" field.
4102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4104 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4105 (add_delay_dependencies): Strengthen local "pro" from rtx to
4107 (recompute_todo_spec): Likewise.
4108 (dep_cost_1): Likewise for locals "insn", "used".
4109 (schedule_insn): Likewise for local "dbg".
4110 (schedule_insn): Likewise for locals "pro", "next".
4111 (unschedule_insns_until): Likewise for local "con".
4112 (restore_pattern): Likewise for local "next".
4113 (estimate_insn_tick): Likewise for local "pro".
4114 (resolve_dependencies): Likewise for local "next".
4115 (fix_inter_tick): Likewise.
4116 (fix_tick_ready): Likewise for local "pro".
4117 (add_to_speculative_block): Likewise for locals "check", "twin",
4119 (sched_extend_bb): Likewise for locals "end", "insn".
4120 (init_before_recovery): Likewise for local "x".
4121 (sched_create_recovery_block): Likewise for local "barrier".
4122 (create_check_block_twin): Likewise for local "pro".
4123 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4125 (unlink_bb_notes): Update for change to type of bb_header.
4126 Strengthen locals "prev", "label", "note", "next" from rtx to
4128 (clear_priorities): Likewise for local "pro".
4130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4132 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4134 (test_insn): Likewise for this global.
4135 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4137 (oprs_anticipatable_p): Likewise.
4138 (oprs_available_p): Likewise.
4139 (insert_expr_in_table): Strengthen param "insn" from rtx to
4141 (hash_scan_set): Likewise.
4142 (hash_scan_clobber): Likewise.
4143 (hash_scan_call): Likewise.
4144 (hash_scan_insn): Likewise.
4145 (compute_hash_table_work): Likewise for local "insn".
4146 (process_insert_insn): Likewise for return type and local "pat".
4147 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4148 "pat", "pat_end", "maybe_cc0_setter".
4149 (pre_edge_insert): Likewise for local "insn".
4150 (pre_insert_copy_insn): Likewise for param "insn".
4151 (pre_insert_copies): Likewise for local "insn".
4152 (struct set_data): Likewise for field "insn".
4153 (single_set_gcse): Likewise for param "insn".
4154 (gcse_emit_move_after): Likewise.
4155 (pre_delete): Likewise for local "insn".
4156 (update_bb_reg_pressure): Likewise for param "from" and local
4158 (should_hoist_expr_to_dom): Likewise for param "from".
4159 (hoist_code): Likewise for local "insn".
4160 (get_pressure_class_and_nregs): Likewise for param "insn".
4161 (calculate_bb_reg_pressure): Likewise for local "insn".
4162 (compute_ld_motion_mems): Likewise.
4164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4166 * genpeep.c (main): Rename param back from "uncast_ins1" to
4167 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4170 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4172 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4175 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4176 documentation to state it is only for VSX operations.
4178 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4179 constraint only active if VSX.
4181 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4182 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4187 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4188 Strengthen local "insn" from rtx to rtx_insn *.
4189 (use_killed_between): Likewise for param "target_insn".
4190 (all_uses_available_at): Likewise for param "target_insn" and
4192 (update_df_init): Likewise for params "def_insn", "insn".
4193 (update_df): Likewise for param "insn".
4194 (try_fwprop_subst): Likewise for param "def_insn" and local
4196 (free_load_extend): Likewise for param "insn".
4197 (forward_propagate_subreg): Likewise for param "def_insn" and
4199 (forward_propagate_asm): Likewise for param "def_insn" and local
4201 (forward_propagate_and_simplify): Likewise for param "def_insn"
4202 and local "use_insn".
4203 (forward_propagate_into): Likewise for locals "def_insn" and
4206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4208 * function.c (emit_initial_value_sets): Strengthen local "seq"
4209 from rtx to rtx_insn *.
4210 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4212 (instantiate_virtual_regs): Likewise for local "insn".
4213 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4214 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4215 (expand_function_end): Likewise for locals "insn" and "seq".
4216 (epilogue_done): Likewise for local "insn".
4217 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4219 (reposition_prologue_and_epilogue_notes): Likewise for locals
4220 "insn", "last", "note", "first".
4221 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4222 (pass_match_asm_constraints::execute): Likewise for local "insn".
4224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4226 * output.h (final_scan_insn): Strengthen return type from rtx to
4228 (final_forward_branch_p): Likewise for param.
4229 (current_output_insn): Likewise for this global.
4231 * final.c (rtx debug_insn): Likewise for this variable.
4232 (current_output_insn): Likewise.
4233 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4234 adding "insn" back in as an rtx_insn * with a checked cast, so
4235 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4237 (compute_alignments): Strengthen local "label" from rtx to
4239 (shorten_branches): Rename param from "first" to "uncast_first",
4240 introducing a new local rtx_insn * "first" using a checked cast to
4241 effectively strengthen "first" from rtx to rtx_insn * without
4242 affecting the type signature. Strengthen locals "insn", "seq",
4243 "next", "label" from rtx to rtx_insn *.
4244 (change_scope): Strengthen param "orig_insn" and local "insn" from
4246 (final_start_function): Rename param from "first" to "uncast_first",
4247 introducing a new local rtx_insn * "first" using a checked cast to
4248 effectively strengthen "first" from rtx to rtx_insn * without
4249 affecting the type signature. Strengthen local "insn" from rtx to
4251 (dump_basic_block_info): Strengthen param "insn" from rtx to
4253 (final): Rename param from "first" to "uncast_first",
4254 introducing a new local rtx_insn * "first" using a checked cast to
4255 effectively strengthen "first" from rtx to rtx_insn * without
4256 affecting the type signature. Strengthen locals "insn", "next"
4257 from rtx to rtx_insn *.
4258 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4260 (call_from_call_insn): Strengthen param "insn" from rtx to
4262 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4263 introducing a new local rtx_insn * "insn" using a checked cast to
4264 effectively strengthen "insn" from rtx to rtx_insn * without
4265 affecting the type signature. Strengthen return type and locals
4266 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4267 now-redundant checked cast to rtx_insn * from both invocations of
4268 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4269 introducing a local "call_insn" for use when invoking
4270 call_from_call_insn.
4271 (notice_source_line): Strengthen param "insn" from rtx to
4273 (leaf_function_p): Likewise for local "insn".
4274 (final_forward_branch_p): Likewise.
4275 (leaf_renumber_regs): Likewise for param "first".
4276 (rest_of_clean_state): Likewise for locals "insn" and "next".
4277 (self_recursive_call_p): Likewise for param "insn".
4278 (collect_fn_hard_reg_usage): Likewise for local "insn".
4279 (get_call_fndecl): Likewise for param "insn".
4280 (get_call_cgraph_rtl_info): Likewise.
4281 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4282 introducing a new local rtx_insn * "insn" using a checked cast to
4283 effectively strengthen "insn" from rtx to rtx_insn * without
4284 affecting the type signature.
4286 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4287 cast when assigning from param "insn" to current_output_insn.
4288 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4289 so that we can assign it back to current_output_insn.
4291 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4293 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4294 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4295 atmxt540s and atmxt540sreva devices.
4296 * config/avr/avr-tables.opt: Regenerate.
4297 * config/avr/t-multilib: Regenerate.
4298 * doc/avr-mmcu.texi: Regenerate.
4300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4302 * expr.c (convert_move): Strengthen local "insns" from rtx to
4304 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4305 "top_label" from rtx to rtx_code_label *.
4306 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4308 (emit_single_push_insn): Likewise for locals "prev", "last".
4309 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4310 to rtx_code_label *.
4311 (store_constructor): Likewise for locals "loop_start", "loop_end".
4312 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4314 (expand_expr_real_2): Likewise.
4315 (expand_expr_real_1): Strengthen local "label" from rtx to
4318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4320 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4321 from rtx to rtx_insn *.
4322 (store_bit_field_1): Likewise.
4323 (extract_bit_field_1): Likewise.
4324 (expand_mult_const): Likewise for local "insns".
4325 (expmed_mult_highpart): Strengthen local "label" from rtx to
4327 (expand_smod_pow2): Likewise.
4328 (expand_sdiv_pow2): Likewise.
4329 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4330 rtx_insn *. Strengthen locals "label", "label1", "label2",
4331 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4332 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4333 (emit_store_flag): Likewise.
4334 (emit_store_flag_force): Strengthen local "label" from rtx to
4336 (do_cmp_and_jump): Likewise for param "label".
4338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4340 * explow.c (force_reg): Strengthen local "insn" from rtx to
4342 (adjust_stack_1): Likewise.
4343 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4344 "final_label", "available_label", "space_available" from rtx to
4346 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4347 (anti_adjust_stack_and_probe): Likewise.
4349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4351 * except.h (sjlj_emit_function_exit_after): Strengthen param
4352 "after" from rtx to rtx_insn *. This is only called with
4353 result of get_last_insn (in function.c) so type-change should be
4356 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4357 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4358 to rtx_insn *. These fields are only used from except.c so this
4359 type-change should be self-contained to this patch.
4361 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4362 local "last" from rtx to rtx_insn *.
4363 (dw2_build_landing_pads): Likewise for local "seq".
4364 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4365 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4366 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4368 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4370 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4371 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4372 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4373 referring to an insn. Strengthen local "dispatch_label" from
4374 rtx to rtx_code_label *.
4375 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4377 (expand_eh_return): Strengthen local "around_label" from
4378 rtx to rtx_code_label *.
4379 (convert_to_eh_region_ranges): Strengthen locals "iter",
4380 "last_action_insn", "first_no_action_insn",
4381 "first_no_action_insn_before_switch",
4382 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4386 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4387 from rtx to rtx_insn *.
4388 (cached_next_real_insn): Likewise.
4389 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4391 (dwarf2out_var_location): Strengthen locals "next_real",
4392 "next_note", "expected_next_loc_note", "last_start", "insn" from
4395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4397 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4398 from rtx to rtx_insn *.
4399 (create_pseudo_cfg): Likewise for local "insn".
4401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4403 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4404 from rtx to rtx_insn *.
4405 (df_bb_regno_last_def_find): Likewise.
4407 * df-problems.c (df_rd_bb_local_compute): Likewise.
4408 (df_lr_bb_local_compute): Likewise.
4409 (df_live_bb_local_compute): Likewise.
4410 (df_chain_remove_problem): Likewise.
4411 (df_chain_create_bb): Likewise.
4412 (df_word_lr_bb_local_compute): Likewise.
4413 (df_remove_dead_eq_notes): Likewise for param "insn".
4414 (df_note_bb_compute): Likewise for local "insn".
4415 (simulate_backwards_to_point): Likewise.
4416 (df_md_bb_local_compute): Likewise.
4418 * df-scan.c (df_scan_free_bb_info): Likewise.
4419 (df_scan_start_dump): Likewise.
4420 (df_scan_start_block): Likewise.
4421 (df_install_ref_incremental): Likewise for local "insn".
4422 (df_insn_rescan_all): Likewise.
4423 (df_reorganize_refs_by_reg_by_insn): Likewise.
4424 (df_reorganize_refs_by_insn_bb): Likewise.
4425 (df_recompute_luids): Likewise.
4426 (df_bb_refs_record): Likewise.
4427 (df_update_entry_exit_and_calls): Likewise.
4428 (df_bb_verify): Likewise.
4430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4432 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4433 "first_note" from rtx to rtx_insn *.
4434 (get_node_of_insn): Likewise for param 2 "insn".
4435 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4437 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4439 (mem_write_insn_p): Likewise.
4440 (mem_access_insn_p): Likewise.
4441 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4442 (def_has_ccmode_p): Likewise for param "insn".
4443 (add_cross_iteration_register_deps): Likewise for locals
4444 "def_insn" and "use_insn".
4445 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4446 (build_intra_loop_deps): Likewise for local "src_insn".
4447 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4449 (get_node_of_insn): Likewise for param "insn".
4451 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4453 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4454 (deletable_insn_p): Strengthen param "insn" from rtx to
4455 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4456 find_call_stack_args, since this is guarded by CALL_P (insn).
4457 (marked_insn_p): Strengthen param "insn" from rtx to
4459 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4460 invoking find_call_stack_args, since this is guarded by
4462 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4463 rtx_insn *; we know this is an insn since this was called by
4465 (mark_nonreg_stores_2): Likewise.
4466 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4468 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4469 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4471 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4472 from rtx to rtx_insn *.
4473 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4475 (delete_unmarked_insns): Likewise for locals "insn", "next".
4476 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4477 (mark_reg_dependencies): Likewise for param "insn".
4478 (rest_of_handle_ud_dce): Likewise for local "insn".
4479 (word_dce_process_block): Likewise.
4480 (dce_process_block): Likewise.
4482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4484 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4485 from rtx to rtx_insn *.
4486 (struct change_cc_mode_args): Likewise for field "insn".
4487 (this_insn): Strengthen from rtx to rtx_insn *.
4488 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4490 (validate_canon_reg): Strengthen param "insn" from rtx to
4492 (canon_reg): Likewise.
4493 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4495 (record_jump_equiv): Strengthen param "insn" from rtx to
4497 (try_back_substitute_reg): Likewise, also for locals "prev",
4499 (find_sets_in_insn): Likewise for param "insn".
4500 (canonicalize_insn): Likewise.
4501 (cse_insn): Likewise. Add a checked cast.
4502 (invalidate_from_clobbers): Likewise for param "insn".
4503 (invalidate_from_sets_and_clobbers): Likewise.
4504 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4506 (cse_prescan_path): Strengthen local "insn" from rtx to
4508 (cse_extended_basic_block): Likewise for locals "insn" and
4510 (cse_main): Likewise for param "f".
4511 (check_for_label_ref): Likewise for local "insn".
4512 (set_live_p): Likewise for second param ("insn").
4513 (insn_live_p): Likewise for first param ("insn") and for local
4515 (cse_change_cc_mode_insn): Likewise for first param "insn".
4516 (cse_change_cc_mode_insns): Likewise for first and second params
4518 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4520 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4523 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4525 Anna Tikhonova <anna.tikhonova@intel.com>
4526 Ilya Tocar <ilya.tocar@intel.com>
4527 Andrey Turetskiy <andrey.turetskiy@intel.com>
4528 Ilya Verbin <ilya.verbin@intel.com>
4529 Kirill Yukhin <kirill.yukhin@intel.com>
4530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4532 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4534 * config/i386/sse.md
4535 (define_mode_iterator VI248_AVX2): Delete.
4536 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4537 (define_mode_iterator VI48_AVX2): Ditto.
4538 (define_insn <shift_insn><mode>3): Delete.
4539 (define_insn "<shift_insn><mode>3<mask_name>" with
4540 VI2_AVX2_AVX512BW): New.
4541 (define_insn "<shift_insn><mode>3<mask_name>" with
4544 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4545 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4546 Anna Tikhonova <anna.tikhonova@intel.com>
4547 Ilya Tocar <ilya.tocar@intel.com>
4548 Andrey Turetskiy <andrey.turetskiy@intel.com>
4549 Ilya Verbin <ilya.verbin@intel.com>
4550 Kirill Yukhin <kirill.yukhin@intel.com>
4551 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4553 * config/i386/sse.md
4554 (define_mode_iterator VI4F_BRCST32x2): New.
4555 (define_mode_attr 64x2_mode): Ditto.
4556 (define_mode_attr 32x2mode): Ditto.
4557 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4558 with VI4F_BRCST32x2): Ditto.
4559 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4560 with V16FI mode iterator): Ditto.
4561 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4563 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4564 with VI8F_BRCST64x2): Ditto.
4566 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4568 Anna Tikhonova <anna.tikhonova@intel.com>
4569 Ilya Tocar <ilya.tocar@intel.com>
4570 Andrey Turetskiy <andrey.turetskiy@intel.com>
4571 Ilya Verbin <ilya.verbin@intel.com>
4572 Kirill Yukhin <kirill.yukhin@intel.com>
4573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4575 * config/i386/sse.md
4576 (define_mode_iterator VI8_AVX512VL): New.
4577 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4579 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4581 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4582 (define_mode_iterator V48_AVX512VL): New.
4583 (define_mode_iterator V12_AVX512VL): Ditto.
4584 (define_insn <avx512>_load<mode>_mask): Split into two similar
4585 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4586 Refactor output template.
4587 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4591 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4593 (reg_available_p): Likewise for param "insn".
4594 (insert_set_in_table): Likewise.
4595 (hash_scan_set): Likewise.
4596 (hash_scan_insn): Likewise.
4597 (make_set_regs_unavailable): Likewise.
4598 (compute_hash_table_work): Likewise for local "insn".
4599 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4601 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4602 (try_replace_reg): Likewise.
4603 (find_avail_set): Likewise.
4604 (cprop_jump): Likewise for params "setcc", "jump".
4605 (constprop_register): Likewise for param "insn".
4606 (cprop_insn): Likewise.
4607 (do_local_cprop): Likewise.
4608 (local_cprop_pass): Likewise for local "insn".
4609 (bypass_block): Likewise for params "setcc" and "jump".
4610 (bypass_conditional_jumps): Likewise for locals "setcc" and
4612 (one_cprop_pass): Likewise for local "insn".
4614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4616 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4617 from rtx to rtx_insn *.
4618 (struct comparison): Likewise, also for field "prev_clobber".
4619 (conforming_compare): Likewise for param "insn".
4620 (arithmetic_flags_clobber_p): Likewise.
4621 (find_flags_uses_in_insn): Likewise.
4622 (find_comparison_dom_walker::before_dom_children): Likewise for
4623 locals "insn", "next", "last_clobber".
4624 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4626 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4628 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4629 "insn" from rtx to rtx_insn *.
4630 (single_set_for_csa): Likewise for param "insn".
4631 (record_one_stack_ref): Likewise.
4632 (try_apply_stack_adjustment): Likewise.
4633 (struct record_stack_refs_data): Likewise for field "insn".
4634 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4635 (prev_active_insn_bb): Likewise for return type and param "insn".
4636 (next_active_insn_bb): Likewise.
4637 (force_move_args_size_note): Likewise for params "prev" and "last"
4638 and locals "test", "next_candidate", "prev_candidate".
4639 (combine_stack_adjustments_for_block): Strengthen locals
4640 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4643 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4645 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4646 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4647 (subst_insn): Likewise for this variable.
4648 (added_links_insn): Likewise.
4649 (struct insn_link): Likewise for field "insn".
4650 (alloc_insn_link): Likewise for param "insn".
4651 (struct undobuf): Likewise for field "other_insn".
4652 (find_single_use): Likewise for param "insn" and local "next".
4653 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4654 (delete_noop_moves): Likewise for locals "insn", "next".
4655 (create_log_links): Likewise for locals "insn", "use_insn".
4656 Strengthen local "next_use" from rtx * to rtx_insn **.
4657 (insn_a_feeds_b): Likewise for params "a", "b".
4658 (combine_instructions): Likewise for param "f" and locals "insn",
4659 "next", "prev", "first", "last_combined_insn", "link", "link1",
4660 "temp". Replace use of NULL_RTX with NULL when referring to
4662 (setup_incoming_promotions): Likewise for param "first"
4663 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4664 (can_combine_p): Likewise for params "insn", "i3", "pred",
4665 "pred2", "succ", "succ2" and for local "p".
4666 (combinable_i3pat): Likewise for param "i3".
4667 (cant_combine_insn_p): Likewise for param "insn".
4668 (likely_spilled_retval_p): Likewise.
4669 (adjust_for_new_dest): Likewise.
4670 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4671 (try_combine): Likewise for return type and for params "i3", "i2",
4672 "i1", "i0", "last_combined_insn", and for locals "insn",
4673 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4674 "i0_insn". Eliminate local "tem" in favor of new locals
4675 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4676 checked cast for now to rtx_insn * on the return type of
4677 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4679 (find_split_point): Strengthen param "insn" from rtx to
4681 (simplify_set): Likewise for local "other_insn".
4682 (recog_for_combine): Likewise for param "insn".
4683 (record_value_for_reg): Likewise.
4684 (record_dead_and_set_regs_1): Likewise for local
4686 (record_dead_and_set_regs): Likewise for param "insn".
4687 (record_promoted_value): Likewise.
4688 (check_promoted_subreg): Likewise.
4689 (get_last_value_validate): Likewise.
4690 (reg_dead_at_p): Likewise.
4691 (move_deaths): Likewise for param "to_insn".
4692 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4693 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4694 in favor of new locals "tem_note" and "tem_insn", the latter being
4696 (distribute_links): Strengthen locals "place", "insn" from rtx to
4699 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4701 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4703 (can_delete_label_p): Require a const rtx_code_label * rather than
4705 (delete_insn): Add checked cast to rtx_code_label * when we know
4706 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4708 (delete_insn_chain): Strengthen locals "prev" and "current" from
4709 rtx to rtx_insn *. Add a checked cast when assigning from
4710 "finish" (strengthening the params will come later). Add a
4711 checked cast to rtx_note * in region where we know
4713 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4715 (compute_bb_for_insn): Likewise.
4716 (free_bb_for_insn): Likewise for local "insn".
4717 (compute_bb_for_insn): Likewise.
4718 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4719 local "insn" from rtx to rtx_insn *
4720 (flow_active_insn_p): Require a const rtx_insn * rather than a
4722 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4724 (can_fallthru): Likewise for locals "insn" and "insn2".
4725 (bb_note): Likewise for local "note".
4726 (first_insn_after_basic_block_note): Likewise for local "note" and
4728 (rtl_split_block): Likewise for locals "insn" and "next".
4729 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4731 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4732 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4734 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4735 them), "kill_from", "barrier", "new_insn".
4736 (patch_jump_insn): Likewise for params "insn", "old_label".
4737 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4738 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4739 "old_label", "new_label".
4740 (rtl_tidy_fallthru_edge): Likewise for local "q".
4741 (rtl_split_edge): Likewise for locals "before", "last".
4742 (commit_one_edge_insertion): Likewise for locals "before",
4743 "after", "insns", "tmp", "last", adding a checked cast where
4744 currently necessary.
4745 (commit_edge_insertions): Likewise.
4746 (rtl_dump_bb): Likewise for locals "insn", "last".
4747 (print_rtl_with_bb): Likewise for local "x".
4748 (rtl_verify_bb_insns): Likewise for local "x".
4749 (rtl_verify_bb_pointers): Likewise for local "insn".
4750 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4752 (rtl_verify_fallthru): Likewise for local "insn".
4753 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4754 (purge_dead_edges): Likewise for local "insn".
4755 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4756 (skip_insns_after_block): Likewise for return type and for locals
4757 "insn", "last_insn", "next_head", "prev".
4758 (record_effective_endpoints): Likewise for locals "next_insn",
4760 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4761 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4762 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4763 (duplicate_insn_chain): For now, add checked cast from rtx to
4764 rtx_insn * when returning insn.
4765 (cfg_layout_duplicate_bb): Likewise for local "insn".
4766 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4768 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4769 (rtl_block_empty_p): Likewise.
4770 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4771 "split_point", "last".
4772 (rtl_block_ends_with_call_p): Likewise for local "insn".
4773 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4775 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4776 "split_at_insn" from rtx to rtx_insn *.
4777 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4778 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4779 to const rtx_insn *.
4780 (rtl_account_profile_record): Likewise.
4782 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4784 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4786 (average_num_loop_insns): Likewise.
4787 (init_set_costs): Likewise for local "seq".
4788 (seq_cost): Likewise for param "seq", from const_rtx to const
4791 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4793 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4796 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4798 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4799 "f1" and "f2" from rtx * to rtx_insn **.
4800 (flow_find_head_matching_sequence): Likewise.
4802 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4803 "cbranch_insn" from rtx to rtx_insn *.
4804 (thread_jump): Likewise for local "insn".
4805 (try_forward_edges): Likewise for local "last".
4806 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4807 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4809 (can_replace_by): Likewise for params "i1", "i2".
4810 (old_insns_match_p): Likewise.
4811 (merge_notes): Likewise.
4812 (walk_to_nondebug_insn): Likewise for param "i1".
4813 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4814 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4815 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4816 (flow_find_head_matching_sequence): Strengthen params "f1" and
4817 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4818 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4820 (outgoing_edges_match): Likewise for locals "last1", "last2".
4821 (try_crossjump_to_edge): Likewise for local "insn".
4822 Replace call to for_each_rtx with for_each_rtx_in_insn.
4824 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4825 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4826 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4827 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4828 (try_optimize_cfg): Strengthen local "last" from rtx to
4830 (delete_dead_jumptables): Likewise for locals "insn", "next",
4833 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4834 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4835 "rtx else_first_tail", to reflect the basic-block.h changes above.
4837 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4839 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4841 (purge_dead_tablejump_edges): Likewise.
4842 (find_bb_boundaries): Likewise for locals "insn", "end",
4843 "flow_transfer_insn".
4845 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4847 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4848 "ins" and "prev" from rtx to rtx_insn *.
4850 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4852 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4854 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4855 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4857 (load_register_parameters): Likewise for local "before_arg".
4858 (check_sibcall_argument_overlap): Likewise for param "insn".
4859 (expand_call): Likewise for locals "normal_call_insns",
4860 "tail_call_insns", "insns", "before_call", "after_args",
4861 "before_arg", "last", "prev". Strengthen one of the "last" from
4862 rtx to rtx_call_insn *.
4863 (fixup_tail_calls): Strengthen local "insn" from rtx to
4865 (emit_library_call_value_1): Likewise for locals "before_call" and
4868 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4870 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4871 and "last" from rtx to rtx_insn *.
4872 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4873 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4875 (expand_errno_check): Strengthen local "lab" from rtx to
4877 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4879 (expand_builtin_mathfn_2): Likewise.
4880 (expand_builtin_mathfn_ternary): Likewise.
4881 (expand_builtin_mathfn_3): Likewise.
4882 (expand_builtin_interclass_mathfn): Likewise for local "last".
4883 (expand_builtin_int_roundingfn): Likewise for local "insns".
4884 (expand_builtin_int_roundingfn_2): Likewise.
4885 (expand_builtin_strlen): Likewise for local "before_strlen".
4886 (expand_builtin_strncmp): Likewise for local "seq".
4887 (expand_builtin_signbit): Likewise for local "last".
4888 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4889 from rtx to rtx_code_label *.
4890 (expand_stack_restore): Strengthen local "prev" from rtx to
4893 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4895 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4897 (struct btr_def_s): Likewise.
4898 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4900 (add_btr_def): Likewise.
4901 (new_btr_user): Likewise.
4902 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4904 (link_btr_uses): Likewise.
4905 (move_btr_def): Likewise for locals "insp", "old_insn",
4906 "new_insn". Add checked cast to rtx_insn * for now on result of
4908 (can_move_up): Strengthen param "insn" from const_rtx to
4911 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4913 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4915 (get_uncond_jump_length): Likewise for locals "label", "jump".
4916 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4918 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4919 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4920 (find_jump_block): Likewise for local "insn".
4921 (fix_crossing_conditional_branches): Likewise for locals
4922 "old_jump", "new_jump".
4923 (fix_crossing_unconditional_branches): Likewise for locals
4924 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4925 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4927 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4929 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4931 (struct mem_insn): Likewise for field "insn".
4932 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4933 (reg_next_inc_use): Likewise.
4934 (reg_next_def): Likewise.
4935 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4936 from rtx to rtx_insn *.
4937 (move_insn_before): Likewise for param "next_insn" and local "insns".
4938 (attempt_change): Likewise for local "mov_insn".
4939 (try_merge): Likewise for param "last_insn".
4940 (get_next_ref): Likewise for return type and local "insn".
4941 Strengthen param "next_array" from rtx * to rtx_insn **.
4942 (parse_add_or_inc): Strengthen param "insn" from rtx to
4944 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4946 (merge_in_block): Likewise for locals "insn", "curr",
4948 (pass_inc_dec::execute): Update allocations of the arrays to
4949 reflect the stronger types.
4951 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4953 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4954 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4955 from rtx to rtx_code_label *.
4957 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4959 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4962 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4964 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4965 generated a warning and prevented bootstrapping the compiler.
4967 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4969 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4972 * jump.c (delete_related_insns): Likewise, also for locals "next"
4975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4977 * genautomata.c (output_internal_insn_latency_func): When writing
4978 the function "internal_insn_latency" to insn-automata.c,
4979 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4980 allowing the optional guard function of (define_bypass) clauses to
4981 expect a pair of rtx_insn *, rather than a pair of rtx.
4982 (output_insn_latency_func): When writing the function
4983 "insn_latency", add an "uncast_" prefix to params "insn" and
4984 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4985 using checked casts from the params, thus enabling the above
4986 change to the generated "internal_insn_latency" function.
4988 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4990 PR tree-optimization/62091
4991 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4992 handle correctly arrays.
4993 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4995 (record_known_type): Walk into inner type.
4996 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4997 condition on no type changes.
4999 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5001 * genattrtab.c (write_attr_get): Within the generated get_attr_
5002 functions, rename param "insn" to "uncast_insn" and reintroduce
5003 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5004 is an rtx_insn * within insn-attrtab.c
5006 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5008 * output.h (peephole): Strengthen return type from rtx to
5010 * rtl.h (delete_for_peephole): Likewise for both params.
5011 * genpeep.c (main): In generated "peephole" function, strengthen
5012 return type and local "insn" from rtx to rtx_insn *. For now,
5013 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5014 rtx_insn *, with a checked cast.
5015 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5016 locals "insn", "next", "prev" from rtx to rtx_insn *.
5018 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5020 PR tree-optimization/62112
5021 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5022 * gimple-iterator.h (gsi_replace): Return bool.
5023 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5024 moved from ref_may_alias_global_p.
5025 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5027 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5028 (stmt_kills_ref_p_1): Rename...
5029 (stmt_kills_ref_p): ... to this.
5030 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5031 stmt_kills_ref_p): Declare.
5032 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5033 Move the self-assignment case...
5034 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5036 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5038 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5040 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5041 "after". For now, don't strengthen param "trial", which requires
5042 adding checked casts when returning it.
5044 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5046 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5047 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5048 "var_location" hook from rtx to rtx_insn *.
5049 (debug_nothing_rtx): Delete in favor of...
5050 (debug_nothing_rtx_code_label): New prototype.
5051 (debug_nothing_rtx_rtx): Delete unused prototype.
5052 (debug_nothing_rtx_insn): New prototype.
5054 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5055 invoking debug_hooks->var_location (in two places, one in a NOTE
5056 case of a switch statement, the other guarded by a CALL_P
5057 conditional. Add checked cast to rtx_code_label * when invoking
5058 debug_hooks->label (within CODE_LABEL case of switch statement).
5060 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5061 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5062 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5063 (xcoff_debug_hooks): Likewise.
5064 * debug.c (do_nothing_debug_hooks): Likewise.
5065 (debug_nothing_rtx): Delete in favor of...
5066 (debug_nothing_rtx_insn): New function.
5067 (debug_nothing_rtx_rtx): Delete unused function.
5068 (debug_nothing_rtx_code_label): New function.
5069 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5070 debug_nothing_rtx to debug_nothing_rtx_code_label.
5071 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5073 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5074 debug_nothing_rtx to debug_nothing_rtx_insn.
5075 (sdbout_label): Strengthen param "insn" from rtx to
5077 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5078 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5079 "var_location" hook from debug_nothing_rtx to
5080 debug_nothing_rtx_insn.
5082 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5084 * recog.h (insn_output_fn): Update this function typedef to match
5085 the changes below to the generated output functions, strengthening
5086 the 2nd param from rtx to rtx_insn *.
5088 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5089 insn when invoking an output function, to match the new signature
5090 of insn_output_fn with a stronger second param.
5092 * genconditions.c (write_header): In the generated code for
5093 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5094 to match the other changes in this patch.
5096 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5097 the generated "gen_" functions from rtx to rtx_insn * within their
5100 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5101 the subfunctions within the generated "recog_", "split", "peephole2"
5102 function trees from rtx to rtx_insn *. For now, the top-level
5103 generated functions ("recog", "split", "peephole2") continue to
5104 take a plain rtx for "insn", to avoid introducing dependencies on
5105 other patches. Rename this 2nd param from "insn" to
5106 "uncast_insn", and reintroduce "insn" as a local variable of type
5107 rtx_insn *, initialized at the top of the generated function with
5108 a checked cast on "uncast_insn".
5109 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5110 the generated "gen_" functions from rtx to rtx_insn * within their
5113 * genoutput.c (process_template): Strengthen the 2nd param within
5114 the generated "output_" functions "insn" from rtx to rtx_insn *.
5116 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5118 * tree-profile.c (tree_profiling): Skip external functions
5119 when doing coverage instrumentation.
5120 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5122 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5124 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5125 (vec_mergee): Likewise.
5126 (vec_mergeo): Likewise.
5127 (vec_cntlz): Likewise.
5128 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5129 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5130 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5132 * doc/extend.texi: Document various forms of vec_cpsgn,
5133 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5134 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5135 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5136 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5137 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5139 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5141 * config/rs6000/rs6000.c (context.h): New include.
5142 (tree-pass.h): Likewise.
5143 (make_pass_analyze_swaps): New decl.
5144 (rs6000_option_override): Register pass_analyze_swaps.
5145 (swap_web_entry): New subsclass of web_entry_base (df.h).
5146 (special_handling_values): New enum.
5147 (union_defs): New function.
5148 (union_uses): Likewise.
5149 (insn_is_load_p): Likewise.
5150 (insn_is_store_p): Likewise.
5151 (insn_is_swap_p): Likewise.
5152 (rtx_is_swappable_p): Likewise.
5153 (insn_is_swappable_p): Likewise.
5154 (chain_purpose): New enum.
5155 (chain_contains_only_swaps): New function.
5156 (mark_swaps_for_removal): Likewise.
5157 (swap_const_vector_halves): Likewise.
5158 (adjust_subreg_index): Likewise.
5159 (permute_load): Likewise.
5160 (permute_store): Likewise.
5161 (handle_special_swappables): Likewise.
5162 (replace_swap_with_copy): Likewise.
5163 (dump_swap_insn_table): Likewise.
5164 (rs6000_analyze_swaps): Likewise.
5165 (pass_data_analyze_swaps): New pass_data.
5166 (pass_analyze_swaps): New rtl_opt_pass.
5167 (make_pass_analyze_swaps): New function.
5168 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5170 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5172 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5173 type from rtx to rtx_insn *.
5174 (create_copy_of_insn_rtx): Likewise.
5175 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5176 (create_copy_of_insn_rtx): Likewise, also for local "res".
5178 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5180 * rtl.h (find_first_parameter_load): Strengthen return type from
5182 * rtlanal.c (find_first_parameter_load): Strengthen return type
5183 from rtx to rtx_insn *. Add checked cast for now, to postpone
5184 strengthening the params.
5186 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5189 * diagnostic.c: Set default caret.
5190 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5192 * diagnostic.h (struct diagnostic_context):
5194 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5196 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5197 (sel_bb_head): Strengthen return type insn_t (currently just an
5199 (sel_bb_end): Likewise.
5201 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5202 (sel_bb_head): Strengthen return type and local "head" from
5203 insn_t (currently just an rtx) to rtx_insn *.
5204 (sel_bb_end): Likewise for return type.
5205 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5210 * basic-block.h (get_last_bb_insn): Strengthen return type from
5212 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5215 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5218 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5220 (diagnostic_report_diagnostic): ... from here.
5221 * toplev.c (general_init): Move code to c-family.
5223 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5225 * df.h (web_entry_base): Replace existing struct web_entry with a
5226 new class web_entry_base with only the predecessor member.
5227 (unionfind_root): Remove declaration and move to class member.
5228 (unionfind_union): Remove declaration and move to friend
5230 (union_defs): Remove declaration.
5231 * web.c (web_entry_base::unionfind_root): Modify to be member
5232 function and adjust accessors.
5233 (unionfind_union): Modify to be friend function and adjust
5235 (web_entry): New subclass of web_entry_base containing the reg
5237 (union_match_dups): Modify for struct -> class changes.
5238 (union_defs): Likewise.
5239 (entry_register): Likewise.
5240 (pass_web::execute): Likewise.
5242 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5244 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5245 builtin define __VEC_ELEMENT_REG_ORDER__.
5247 2014-08-20 Martin Jambor <mjambor@suse.cz>
5248 Wei Mi <wmi@google.com>
5252 * tree-ssa-operands.c (update_stmt_operands): Remove
5253 MODIFIED_NORETURN_CALLS.
5254 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5255 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5256 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5257 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5258 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5259 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5260 (gimple_call_set_ctrl_altering): New func.
5261 (gimple_call_ctrl_altering_p): Ditto.
5262 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5263 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5264 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5265 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5266 remove MODIFIED_NORETURN_CALLS.
5268 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5270 * coverage.c (coverage_compute_profile_id): Return non-0;
5271 also handle symbols with unique name.
5272 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5274 2014-08-20 Steve Ellcey <sellcey@mips.com>
5277 * doc/sourcebuild.texi (non_strict_align): New.
5279 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5281 * cgraphunit.c (ipa_passes, compile): Reshedule
5282 symtab_remove_unreachable_nodes passes; update comments.
5283 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5284 TODO_remove_functions before the pass; the functions ought to be
5286 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5287 TODO_remove_functions.
5288 * passes.c (pass_data_early_local_passes): Do not schedule function
5290 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5292 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5296 before setting the option.
5297 * diagnostic.c (diagnostic_classify_diagnostic): Record
5298 command-line status.
5300 2014-08-20 Richard Biener <rguenther@suse.de>
5303 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5304 to build uint{16,32,64}_type_node.
5306 2014-08-20 Terry Guo <terry.guo@arm.com>
5308 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5309 with immediate_operand.
5311 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5313 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5314 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5317 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5319 PR preprocessor/51303
5320 * incpath.c (remove_duplicates): Use cpp_warning.
5322 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5326 * doc/options.texi (CPP): Document it.
5327 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5328 * optc-gen.awk: Handle CPP.
5329 * opth-gen.awk: Likewise.
5331 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5333 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5335 (duplicate_insn_chain): Likewise.
5336 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5337 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5338 checked cast for now (until we can strengthen the params in the
5340 (duplicate_insn_chain): Likewise.
5342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5344 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5346 (prev_cc0_setter): Likewise.
5348 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5349 rtx_insn *, adding checked casts for now as necessary.
5350 (prev_cc0_setter): Likewise.
5352 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5354 * expr.h (emit_move_insn): Strengthen return type from rtx to
5356 (emit_move_insn_1): Likewise.
5357 (emit_move_complex_push): Likewise.
5358 (emit_move_complex_parts): Likewise.
5360 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5361 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5363 (emit_move_complex_push): Strengthen return type from rtx to
5365 (emit_move_complex): Likewise, also for local "ret".
5366 (emit_move_ccmode): Likewise.
5367 (emit_move_multi_word): Likewise for return type and locals
5369 (emit_move_insn_1): Likewise for return type and locals "result",
5371 (emit_move_insn): Likewise for return type and local "last_insn".
5372 (compress_float_constant): Likewise.
5374 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5376 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5377 from rtx to rtx_insn *.
5379 * rtl.h (emit_insn_before): Likewise.
5380 (emit_insn_before_noloc): Likewise.
5381 (emit_insn_before_setloc): Likewise.
5382 (emit_jump_insn_before): Likewise.
5383 (emit_jump_insn_before_noloc): Likewise.
5384 (emit_jump_insn_before_setloc): Likewise.
5385 (emit_call_insn_before): Likewise.
5386 (emit_call_insn_before_noloc): Likewise.
5387 (emit_call_insn_before_setloc): Likewise.
5388 (emit_debug_insn_before): Likewise.
5389 (emit_debug_insn_before_noloc): Likewise.
5390 (emit_debug_insn_before_setloc): Likewise.
5391 (emit_label_before): Likewise.
5392 (emit_insn_after): Likewise.
5393 (emit_insn_after_noloc): Likewise.
5394 (emit_insn_after_setloc): Likewise.
5395 (emit_jump_insn_after): Likewise.
5396 (emit_jump_insn_after_noloc): Likewise.
5397 (emit_jump_insn_after_setloc): Likewise.
5398 (emit_call_insn_after): Likewise.
5399 (emit_call_insn_after_noloc): Likewise.
5400 (emit_call_insn_after_setloc): Likewise.
5401 (emit_debug_insn_after): Likewise.
5402 (emit_debug_insn_after_noloc): Likewise.
5403 (emit_debug_insn_after_setloc): Likewise.
5404 (emit_label_after): Likewise.
5405 (emit_insn): Likewise.
5406 (emit_debug_insn): Likewise.
5407 (emit_jump_insn): Likewise.
5408 (emit_call_insn): Likewise.
5409 (emit_label): Likewise.
5410 (gen_clobber): Likewise.
5411 (emit_clobber): Likewise.
5412 (gen_use): Likewise.
5413 (emit_use): Likewise.
5416 (emit_barrier_before): Strengthen return type from rtx to
5418 (emit_barrier_after): Likewise.
5419 (emit_barrier): Likewise.
5421 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5422 from rtx to rtx_insn *. Add checked casts for now when converting
5423 "last" from rtx to rtx_insn *.
5424 (emit_insn_before_noloc): Likewise for return type.
5425 (emit_jump_insn_before_noloc): Likewise.
5426 (emit_call_insn_before_noloc): Likewise.
5427 (emit_debug_insn_before_noloc): Likewise.
5428 (emit_barrier_before): Strengthen return type and local "insn"
5429 from rtx to rtx_barrier *.
5430 (emit_label_before): Strengthen return type from rtx to
5431 rtx_insn *. Add checked cast for now when returning param
5432 (emit_pattern_after_noloc): Strengthen return type from rtx to
5433 rtx_insn *. Add checked casts for now when converting "last" from
5435 (emit_insn_after_noloc): Strengthen return type from rtx to
5437 (emit_jump_insn_after_noloc): Likewise.
5438 (emit_call_insn_after_noloc): Likewise.
5439 (emit_debug_insn_after_noloc): Likewise.
5440 (emit_barrier_after): Strengthen return type from rtx to
5442 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5443 Add checked cast for now when converting "label" from rtx to
5445 (emit_pattern_after_setloc): Strengthen return type from rtx to
5446 rtx_insn *. Add checked casts for now when converting "last" from
5448 (emit_pattern_after): Strengthen return type from rtx to
5450 (emit_insn_after_setloc): Likewise.
5451 (emit_insn_after): Likewise.
5452 (emit_jump_insn_after_setloc): Likewise.
5453 (emit_jump_insn_after): Likewise.
5454 (emit_call_insn_after_setloc): Likewise.
5455 (emit_call_insn_after): Likewise.
5456 (emit_debug_insn_after_setloc): Likewise.
5457 (emit_debug_insn_after): Likewise.
5458 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5459 when converting "last" from rtx to rtx_insn *.
5460 (emit_pattern_before): Strengthen return type from rtx to
5462 (emit_insn_before_setloc): Likewise.
5463 (emit_insn_before): Likewise.
5464 (emit_jump_insn_before_setloc): Likewise.
5465 (emit_jump_insn_before): Likewise.
5466 (emit_call_insn_before_setloc): Likewise.
5467 (emit_call_insn_before): Likewise.
5468 (emit_debug_insn_before_setloc): Likewise.
5469 (emit_debug_insn_before): Likewise.
5470 (emit_insn): Strengthen return type and locals "last", "insn",
5471 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5472 within cases where we know we have an insn.
5473 (emit_debug_insn): Likewise.
5474 (emit_jump_insn): Likewise.
5475 (emit_call_insn): Strengthen return type and local "insn" from rtx
5477 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5478 a checked cast to rtx_insn * for now on "label".
5479 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5480 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5481 (emit_use): Likewise.
5482 (gen_use): Likewise, also for local "seq".
5483 (emit): Likewise for return type and local "insn".
5484 (rtx_insn): Likewise for return type and local "new_rtx".
5486 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5487 from rtx to rtx_barrier *.
5489 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5490 changed return type from rtx to rtx_insn *, we must update
5491 "emit_fn" type, and this in turn means updating...
5492 (frame_insn): ...this. Strengthen return type from rtx to
5493 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5495 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5497 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5498 rtx to rtx_jump_table_data *. Also for local.
5499 * rtl.h (emit_jump_table_data): Likewise.
5501 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5503 * basic-block.h (create_basic_block_structure): Strengthen third
5504 param "bb_note" from rtx to rtx_note *.
5505 * rtl.h (emit_note_before): Strengthen return type from rtx to
5507 (emit_note_after): Likewise.
5508 (emit_note): Likewise.
5509 (emit_note_copy): Likewise. Also, strengthen param similarly.
5510 * function.h (struct rtl_data): Strengthen field
5511 "x_stack_check_probe_note" from rtx to rtx_note *.
5513 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5514 from rtx to rtx_note *.
5515 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5516 "bb_note" from rtx to rtx_note *.
5517 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5518 when calling emit_note_copy.
5519 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5521 (emit_note_after): Likewise.
5522 (emit_note_before): Likewise.
5523 (emit_note_copy): Likewise. Also, strengthen param similarly.
5524 (emit_note): Likewise.
5525 * except.c (emit_note_eh_region_end): Likewise for return type.
5526 Strengthen local "next" from rtx to rtx_insn *.
5527 (convert_to_eh_region_ranges): Strengthen local "note"
5528 from rtx to rtx_note *.
5529 * final.c (change_scope): Likewise.
5530 (reemit_insn_block_notes): Likewise, for both locals named "note".
5531 Also, strengthen local "insn" from rtx to rtx_insn *.
5532 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5534 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5535 strengthen local "seq" from rtx to rtx_insn *.
5536 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5538 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5540 (get_bb_note_from_pool): Strengthen return type from rtx to
5542 (sel_create_basic_block): Strengthen local "new_bb_note" from
5543 insn_t to rtx_note *.
5544 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5545 "note" from rtx to rtx_note *.
5546 (emit_notes_in_bb): Likewise.
5548 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5550 * function.h (struct rtl_data): Strengthen field
5551 "x_parm_birth_insn" from rtx to rtx_insn *.
5552 * function.c (struct assign_parm_data_all): Strengthen fields
5553 "first_conversion_insn" and "last_conversion_insn" from rtx to
5556 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5558 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5559 to rtx_insn *; also for local "var_end_seq".
5560 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5561 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5563 (expand_gimple_cond): Likewise for locals "last2" and "last".
5564 (mark_transaction_restart_calls): Likewise for local "insn".
5565 (expand_gimple_stmt): Likewise for return type and locals "last"
5567 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5568 (avoid_complex_debug_insns): Likewise for param "insn".
5569 (expand_debug_locations): Likewise for locals "insn", "last",
5570 "prev_insn" and "insn2".
5571 (expand_gimple_basic_block): Likewise for local "last".
5572 (construct_exit_block): Likewise for locals "head", "end",
5574 (pass_expand::execute): Likewise for locals "var_seq",
5575 "var_ret_seq", "next".
5577 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5579 * asan.h (asan_emit_stack_protection): Strengthen return type from
5581 * asan.c (asan_emit_stack_protection): Likewise. Add local
5582 "insns" to hold the return value.
5584 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5586 * basic-block.h (bb_note): Strengthen return type from rtx to
5588 * sched-int.h (bb_note): Likewise.
5589 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5591 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5593 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5596 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5597 "insn" from rtx to rtx_insn *.
5598 (make_debug_insn_raw): Strengthen return type from rtx to
5599 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5600 (make_jump_insn_raw): Strengthen return type from rtx to
5601 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5602 (make_call_insn_raw): Strengthen return type from rtx to
5603 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5604 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5605 callback from rtx to rtx_insn *; likewise for local "insn" and
5606 "next", adding a checked cast to rtx_insn in the relevant cases of
5607 the switch statement.
5608 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5609 callback from rtx to rtx_insn *.
5610 (emit_pattern_after_setloc): Likewise.
5611 (emit_pattern_after): Likewise.
5612 (emit_pattern_before_setloc): Likewise.
5613 (emit_pattern_before): Likewise.
5615 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5617 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5619 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5620 accepting an rtx_insn *.
5621 (last_call_insn): Strengthen return type from rtx to
5624 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5626 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5627 "insns" from rtx to rtx_insn *.
5628 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5629 locals "insn" and "prev".
5631 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5633 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5634 rtx_jump_table_data **.
5636 * cfgbuild.c (make_edges): Introduce local "table", using it in
5637 place of "tmp" for jump table data.
5638 (find_bb_boundaries): Strengthen local "table" from rtx to
5639 rtx_jump_table_data *.
5640 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5641 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5642 (try_crossjump_to_edge): Likewise.
5643 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5645 (patch_jump_insn): Introduce local "table", using it in place of
5646 "tmp" for jump table data.
5647 (force_nonfallthru_and_redirect): Introduce local "table", so that
5648 call to tablejump_p can receive an rtx_jump_table_data **. Update
5649 logic around the call to overwrite "note" appropriately if
5650 tablejump_p returns non-zero.
5651 (get_last_bb_insn): Introduce local "table", using it in place of
5652 "tmp" for jump table data.
5653 * dwarf2cfi.c (create_trace_edges): Likewise.
5655 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5656 from rtx to rtx_jump_table_data *.
5657 (create_fix_barrier): Strengthen local "tmp" from rtx to
5658 rtx_jump_table_data *.
5659 (arm_reorg): Likewise for local "table".
5661 * config/s390/s390.c (s390_chunkify_start): Likewise.
5663 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5665 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5666 rtx to rtx_jump_table_data *.
5668 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5669 rtx_jump_table_data **. Add a checked cast when writing through
5670 the pointer: we know there that local "table" is non-NULL and that
5671 JUMP_TABLE_DATA_P (table) holds.
5672 (label_is_jump_target_p): Introduce local "table", using it in
5673 place of "tmp" for jump table data.
5675 2014-08-19 Marek Polacek <polacek@redhat.com>
5678 * doc/invoke.texi: Document -Wbool-compare.
5680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5682 * rtl.h (entry_of_function): Strengthen return type from rtx to
5684 * cfgrtl.c (entry_of_function): Likewise.
5686 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5688 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5689 rtx_insn *, adding a checked cast for now.
5690 (get_last_insn): Likewise.
5692 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5694 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5697 * emit-rtl.c (gen_label_rtx): Likewise.
5699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5701 * rtl.h (previous_insn): Strengthen return type from rtx to
5703 (next_insn): Likewise.
5704 (prev_nonnote_insn): Likewise.
5705 (prev_nonnote_insn_bb): Likewise.
5706 (next_nonnote_insn): Likewise.
5707 (next_nonnote_insn_bb): Likewise.
5708 (prev_nondebug_insn): Likewise.
5709 (next_nondebug_insn): Likewise.
5710 (prev_nonnote_nondebug_insn): Likewise.
5711 (next_nonnote_nondebug_insn): Likewise.
5712 (prev_real_insn): Likewise.
5713 (next_real_insn): Likewise.
5714 (prev_active_insn): Likewise.
5715 (next_active_insn): Likewise.
5717 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5718 rtx_insn *, adding a checked cast.
5719 (previous_insn): Likewise.
5720 (next_nonnote_insn): Likewise.
5721 (next_nonnote_insn_bb): Likewise.
5722 (prev_nonnote_insn): Likewise.
5723 (prev_nonnote_insn_bb): Likewise.
5724 (next_nondebug_insn): Likewise.
5725 (prev_nondebug_insn): Likewise.
5726 (next_nonnote_nondebug_insn): Likewise.
5727 (prev_nonnote_nondebug_insn): Likewise.
5728 (next_real_insn): Likewise.
5729 (prev_real_insn): Likewise.
5730 (next_active_insn): Likewise.
5731 (prev_active_insn): Likewise.
5733 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5734 param "stepfunc" so that it returns an rtx_insn * rather than an
5735 rtx, to track the change to prev_nonnote_insn_bb, which is the
5736 only function this is called with.
5737 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5739 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5741 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5744 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5746 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5747 (class rtx_nonjump_insn): Likewise.
5748 (class rtx_jump_insn): Likewise.
5749 (class rtx_call_insn): Likewise.
5750 (class rtx_jump_table_data): Likewise.
5751 (class rtx_barrier): Likewise.
5752 (class rtx_code_label): Likewise.
5753 (class rtx_note): Likewise.
5755 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5756 adding the invariant DEBUG_INSN_P (X).
5757 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5758 the invariant NONJUMP_INSN_P (X).
5759 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5760 the invariant JUMP_P (X).
5761 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5762 the invariant CALL_P (X).
5763 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5764 invariant JUMP_TABLE_DATA_P (X).
5765 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5766 invariant BARRIER_P (X).
5767 (class rtx_code_label): New, a subclass of rtx_insn, adding
5768 the invariant LABEL_P (X).
5769 (class rtx_note): New, a subclass of rtx_insn, adding
5770 the invariant NOTE_P(X).
5771 (is_a_helper <rtx_debug_insn *>::test): New.
5772 (is_a_helper <rtx_nonjump_insn *>::test): New.
5773 (is_a_helper <rtx_jump_insn *>::test): New.
5774 (is_a_helper <rtx_call_insn *>::test): New.
5775 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5776 overloaded for both rtx and rtx_insn *.
5777 (is_a_helper <rtx_barrier *>::test): New.
5778 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5779 for both rtx and rtx_insn *.
5780 (is_a_helper <rtx_note *>::test): New.
5782 2014-08-19 Marek Polacek <polacek@redhat.com>
5784 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5785 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5786 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5787 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5789 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5791 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5792 rtx_insn *. To help with transition, for now, convert from an
5793 access macro into a pair of functions: BND_TO, returning an
5795 (SET_BND_TO): New function, for use where BND_TO is used as an
5798 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5800 (BND_TO): New function, adding a checked cast.
5801 (SET_BND_TO): New function.
5803 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5805 (compute_av_set_on_boundaries): Likewise.
5807 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5809 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5810 destination if it is used in source.
5811 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5812 (*popcount<mode>2_falsedep_1): Likewise.
5814 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5817 * configure.ac: Set install_gold_as_default to no first.
5818 * configure: Regenerated.
5820 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5822 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5823 "note_list" field will eventually be an rtx_insn *. To help with
5824 transition, for now, convert from an access macro into a pair of
5825 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5826 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5829 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5830 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5832 * sel-sched-ir.c (init_bb): Likewise.
5833 (sel_restore_notes): Likewise.
5834 (move_bb_info): Likewise.
5835 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5836 (SET_BB_NOTE_LIST): New function.
5838 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5840 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5841 field will eventually be an rtx_insn *. To help with transition,
5842 for now, convert from an access macro into a pair of functions:
5843 VINSN_INSN_RTX, returning an rtx_insn *, and...
5844 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5845 is used as an lvalue.
5847 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5848 SET_VINSN_INSN_RTX where it's used as an lvalue.
5849 (VINSN_INSN_RTX): New function.
5850 (SET_VINSN_INSN_RTX): New function.
5852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5854 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5855 eventually be rtx_insn *, but to help with transition, for now,
5856 convert from an access macro into a pair of functions: DEP_PRO
5857 returning an rtx_insn * and...
5858 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5859 lvalue, returning an rtx&.
5860 (DEP_CON): Analogous changes to DEP_PRO above.
5861 (SET_DEP_CON): Likewise.
5863 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5864 an lvalue to SET_DEP_CON.
5865 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5866 (sd_copy_back_deps): Likewise for DEP_CON.
5867 (DEP_PRO): New function, adding a checked cast for now.
5868 (DEP_CON): Likewise.
5869 (SET_DEP_PRO): New function.
5870 (SET_DEP_CON): Likewise.
5872 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5874 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5875 (extra_options): Add i386/cygwin.opt.
5876 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5877 (CPP_SPEC): Accept -pthread.
5879 (GOMP_SELF_SPECS): Update comment.
5880 * config/i386/cygwin.opt: New file for -pthread flag.
5882 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5884 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5885 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5886 that we can return an rtx_insn *.
5888 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5890 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5891 when building executables, not DLLs. Add --large-address-aware
5892 under the same conditions.
5893 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5894 when building executables, not DLLs. Add --large-address-aware
5895 under the same conditions when using -m32.
5897 * config/i386/cygwin-stdint.h: Throughout, make type
5898 definitions dependent on target architecture, not host.
5900 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5902 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5903 the return type from rtx to rtx_insn *, which will enable various
5904 conversions in followup patches. For now this is is done by a
5906 (NEXT_INSN): Likewise.
5907 (SET_PREV_INSN): Convert to an inline function. This is intended
5908 for use as an lvalue, and so returns an rtx& to allow in-place
5910 (SET_NEXT_INSN): Likewise.
5912 2014-07-08 Mark Wielaard <mjw@redhat.com>
5915 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5917 2014-08-19 Marek Polacek <polacek@redhat.com>
5920 * cgraphunit.c (handle_alias_pairs): Fix condition.
5922 2014-08-19 Richard Biener <rguenther@suse.de>
5924 * gimple-fold.c (fold_gimple_assign): Properly build a
5925 null-pointer constant when devirtualizing addresses.
5927 2014-07-07 Mark Wielaard <mjw@redhat.com>
5929 * dwarf2out.c (decl_quals): New function.
5930 (modified_type_die): Take one cv_quals argument instead of two,
5931 one for const and one for volatile.
5932 (add_type_attribute): Likewise.
5933 (generic_parameter_die): Call add_type_attribute with one modifier
5935 (base_type_for_mode): Likewise.
5936 (add_bounds_info): Likewise.
5937 (add_subscript_info): Likewise.
5938 (gen_array_type_die): Likewise.
5939 (gen_descr_array_type_die): Likewise.
5940 (gen_entry_point_die): Likewise.
5941 (gen_enumeration_type_die): Likewise.
5942 (gen_formal_parameter_die): Likewise.
5943 (gen_subprogram_die): Likewise.
5944 (gen_variable_die): Likewise.
5945 (gen_const_die): Likewise.
5946 (gen_field_die): Likewise.
5947 (gen_pointer_type_die): Likewise.
5948 (gen_reference_type_die): Likewise.
5949 (gen_ptr_to_mbr_type_die): Likewise.
5950 (gen_inheritance_die): Likewise.
5951 (gen_subroutine_type_die): Likewise.
5952 (gen_typedef_die): Likewise.
5953 (force_type_die): Likewise.
5955 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5957 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5959 * configure: Regenerate.
5961 2014-08-19 Richard Biener <rguenther@suse.de>
5963 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5964 DECL_EXTERNALs in BLOCKs as non-references.
5965 * tree-streamer-out.c (streamer_write_chain): Likewise.
5967 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5968 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5969 Anna Tikhonova <anna.tikhonova@intel.com>
5970 Ilya Tocar <ilya.tocar@intel.com>
5971 Andrey Turetskiy <andrey.turetskiy@intel.com>
5972 Ilya Verbin <ilya.verbin@intel.com>
5973 Kirill Yukhin <kirill.yukhin@intel.com>
5974 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5976 * config/i386/sse.md
5977 (define_mode_iterator VI48_AVX512F): Delete.
5978 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5979 (define_mode_iterator VI2_AVX512VL): Ditto.
5980 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5983 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5985 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5986 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5987 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5988 with VI48_AVX512F_AVX512VL): New.
5989 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5990 with VI2_AVX512VL): Ditto.
5992 2014-08-19 Marek Polacek <polacek@redhat.com>
5994 * doc/invoke.texi: Document -Wc99-c11-compat.
5996 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5998 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6000 (SET_PREV_INSN): New macro, for use as an lvalue.
6001 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6003 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6004 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6005 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6006 (fixup_abnormal_edges): Likewise.
6007 (unlink_insn_chain): Likewise.
6008 (fixup_reorder_chain): Likewise.
6009 (cfg_layout_delete_block): Likewise.
6010 (cfg_layout_merge_blocks): Likewise.
6011 * combine.c (update_cfg_for_uncondjump): Likewise.
6012 * emit-rtl.c (link_insn_into_chain): Likewise.
6013 (remove_insn): Likewise.
6014 (delete_insns_since): Likewise.
6015 (reorder_insns_nobb): Likewise.
6016 (emit_insn_after_1): Likewise.
6017 * final.c (rest_of_clean_state): Likewise.
6018 (final_scan_insn): Likewise.
6019 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6020 * haifa-sched.c (concat_note_lists): Likewise.
6021 (remove_notes): Likewise.
6022 (restore_other_notes): Likewise.
6023 (move_insn): Likewise.
6024 (unlink_bb_notes): Likewise.
6025 (restore_bb_notes): Likewise.
6026 * jump.c (delete_for_peephole): Likewise.
6027 * optabs.c (emit_libcall_block_1): Likewise.
6028 * reorg.c (emit_delay_sequence): Likewise.
6029 (fill_simple_delay_slots): Likewise.
6030 * sel-sched-ir.c (sel_move_insn): Likewise.
6031 (sel_remove_insn): Likewise.
6032 (get_bb_note_from_pool): Likewise.
6033 * sel-sched.c (move_nop_to_previous_block): Likewise.
6035 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6036 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6037 (c6x_gen_bundles): Likewise.
6038 (hwloop_optimize): Likewise.
6039 * config/frv/frv.c (frv_function_prologue): Likewise.
6040 (frv_register_nop): Likewise.
6041 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6042 (ia64_reorg): Likewise.
6043 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6044 (mep_make_bundle): Likewise.
6045 (mep_bundle_insns): Likewise.
6046 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6047 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6048 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6050 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6052 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6053 return type from rtx to rtx_insn *.
6055 (BB_HEADER): Likewise.
6056 (BB_FOOTER): Likewise.
6057 (SET_BB_HEAD): Convert to a function.
6058 (SET_BB_END): Likewise.
6059 (SET_BB_HEADER): Likewise.
6060 (SET_BB_FOOTER): Likewise.
6062 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6063 Strengthen the return type from rtx to rtx_insn *. For now, this
6064 is done by adding a checked cast, but this will eventually
6065 become a field lookup.
6067 (BB_HEADER): Likewise.
6068 (BB_FOOTER): Likewise.
6069 (SET_BB_HEAD): New function, from macro of same name. This is
6070 intended for use as an lvalue, and so returns an rtx& to allow
6071 in-place modification.
6072 (SET_BB_END): Likewise.
6073 (SET_BB_HEADER): Likewise.
6074 (SET_BB_FOOTER): Likewise.
6076 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6078 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6080 (SET_BB_HEAD): New macro, for use as a lvalue.
6081 (BB_END, SET_BB_END): Likewise.
6082 (BB_HEADER, SET_BB_HEADER): Likewise.
6083 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6085 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6086 of BB_* macros into SET_BB_* macros.
6087 (fix_crossing_unconditional_branches): Likewise.
6088 * caller-save.c (save_call_clobbered_regs): Likewise.
6089 (insert_one_insn): Likewise.
6090 * cfgbuild.c (find_bb_boundaries): Likewise.
6091 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6092 (outgoing_edges_match): Likewise.
6093 (try_optimize_cfg): Likewise.
6094 * cfgexpand.c (expand_gimple_cond): Likewise.
6095 (expand_gimple_tailcall): Likewise.
6096 (expand_gimple_basic_block): Likewise.
6097 (construct_exit_block): Likewise.
6098 * cfgrtl.c (delete_insn): Likewise.
6099 (create_basic_block_structure): Likewise.
6100 (rtl_delete_block): Likewise.
6101 (rtl_split_block): Likewise.
6102 (emit_nop_for_unique_locus_between): Likewise.
6103 (rtl_merge_blocks): Likewise.
6104 (block_label): Likewise.
6105 (try_redirect_by_replacing_jump): Likewise.
6106 (emit_barrier_after_bb): Likewise.
6107 (fixup_abnormal_edges): Likewise.
6108 (record_effective_endpoints): Likewise.
6109 (relink_block_chain): Likewise.
6110 (fixup_reorder_chain): Likewise.
6111 (fixup_fallthru_exit_predecessor): Likewise.
6112 (cfg_layout_duplicate_bb): Likewise.
6113 (cfg_layout_split_block): Likewise.
6114 (cfg_layout_delete_block): Likewise.
6115 (cfg_layout_merge_blocks): Likewise.
6116 * combine.c (update_cfg_for_uncondjump): Likewise.
6117 * emit-rtl.c (add_insn_after): Likewise.
6118 (remove_insn): Likewise.
6119 (reorder_insns): Likewise.
6120 (emit_insn_after_1): Likewise.
6121 * haifa-sched.c (get_ebb_head_tail): Likewise.
6122 (restore_other_notes): Likewise.
6123 (move_insn): Likewise.
6124 (sched_extend_bb): Likewise.
6125 (fix_jump_move): Likewise.
6126 * ifcvt.c (noce_process_if_block): Likewise.
6127 (dead_or_predicable): Likewise.
6128 * ira.c (update_equiv_regs): Likewise.
6129 * reg-stack.c (change_stack): Likewise.
6130 * sel-sched-ir.c (sel_move_insn): Likewise.
6131 * sel-sched.c (move_nop_to_previous_block): Likewise.
6133 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6134 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6136 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6138 * rtl.h (for_each_rtx_in_insn): New function.
6139 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6141 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6143 * coretypes.h (class rtx_insn): Add forward declaration.
6145 * rtl.h: Include is-a.h.
6146 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6147 workaround to ensure gengtype knows inheritance is occurring,
6148 whilst continuing to use the pre-existing special-casing for
6150 (class rtx_insn): New subclass of rtx_def, adding the
6151 invariant that we're dealing with something we can sanely use
6152 INSN_UID, NEXT_INSN, PREV_INSN on.
6153 (is_a_helper <rtx_insn *>::test): New.
6154 (is_a_helper <const rtx_insn *>::test): New.
6156 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6158 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6160 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6162 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6165 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6167 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6168 to BUILT_IN_UNREACHABLE.
6170 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6173 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6175 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6176 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6177 (ffs<mode>2): Do not expand with tzcnt for
6178 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6179 (ffssi2_no_cmove): Ditto.
6180 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6181 (ctz<mode>2): New expander.
6182 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6183 (*ctz<mode>2_falsedep): New insn.
6184 (*ctz<mode>2): Rename from ctz<mode>2.
6185 (clz<mode>2_lzcnt): New expander.
6186 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6187 (*clz<mode>2_lzcnt_falsedep): New insn.
6188 (*clz<mode>2): Rename from ctz<mode>2.
6189 (popcount<mode>2): New expander.
6190 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6191 (*popcount<mode>2_falsedep): New insn.
6192 (*popcount<mode>2): Rename from ctz<mode>2.
6193 (*popcount<mode>2_cmp): Remove.
6194 (*popcountsi2_cmp_zext): Ditto.
6196 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6198 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6199 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6200 * config/microblaze/microblaze.h
6201 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6203 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6206 * configure.ac: Set install_gold_as_default to no for
6208 * configure: Regenerated.
6210 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6212 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6213 * config.in: Add undef of HAVE_isl.
6214 * configure: Regenerate.
6215 * configure.ac: Add definition of HAVE_isl.
6216 * graphite-blocking.c: Add checking of HAVE_isl.
6217 * graphite-dependences.c: Likewise.
6218 * graphite-interchange.c: Likewise.
6219 * graphite-isl-ast-to-gimple.c: Likewise.
6220 * graphite-optimize-isl.c: Likewise.
6221 * graphite-poly.c: Likewise.
6222 * graphite-scop-detection.c: Likewise.
6223 * graphite-sese-to-poly.c: Likewise.
6224 * graphite.c: Likewise.
6225 * toplev.c: Replace the checking of HAVE_cloog with the checking
6228 2014-08-18 Richard Biener <rguenther@suse.de>
6230 PR tree-optimization/62090
6231 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6232 (fold_builtin_3): Do not fold snprintf.
6233 (fold_builtin_4): Likewise.
6234 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6235 moved from builtins.c.
6236 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6237 (gimple_fold_builtin): Do not fold sprintf here.
6239 2014-08-18 Richard Biener <rguenther@suse.de>
6241 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6243 (maybe_canonicalize_mem_ref_addr): ... this function.
6244 (fold_stmt_1): Apply it here before all simplification.
6246 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6249 * cgraph.h (cgraph_node::create_indirect_edge): Add
6250 compute_indirect_info param.
6251 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6252 indirect_info only when it is required.
6253 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6254 indirect_info fore cloned indirect edge.
6256 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6258 Anna Tikhonova <anna.tikhonova@intel.com>
6259 Ilya Tocar <ilya.tocar@intel.com>
6260 Andrey Turetskiy <andrey.turetskiy@intel.com>
6261 Ilya Verbin <ilya.verbin@intel.com>
6262 Kirill Yukhin <kirill.yukhin@intel.com>
6263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6265 * config/i386/sse.md
6266 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6267 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6269 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6271 Anna Tikhonova <anna.tikhonova@intel.com>
6272 Ilya Tocar <ilya.tocar@intel.com>
6273 Andrey Turetskiy <andrey.turetskiy@intel.com>
6274 Ilya Verbin <ilya.verbin@intel.com>
6275 Kirill Yukhin <kirill.yukhin@intel.com>
6276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6278 * config/i386/sse.md
6279 (define_mode_iterator VF1_AVX512VL): New.
6280 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6281 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6284 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6285 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6286 Anna Tikhonova <anna.tikhonova@intel.com>
6287 Ilya Tocar <ilya.tocar@intel.com>
6288 Andrey Turetskiy <andrey.turetskiy@intel.com>
6289 Ilya Verbin <ilya.verbin@intel.com>
6290 Kirill Yukhin <kirill.yukhin@intel.com>
6291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6293 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6294 * config/i386/i386.md
6295 (define_code_iterator any_float): New.
6296 (define_code_attr floatsuffix): New.
6297 * config/i386/sse.md
6298 (define_mode_iterator VF1_128_256VL): New.
6299 (define_mode_iterator VF2_512_256VL): New.
6300 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6302 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6303 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6305 (define_mode_attr qq2pssuff): New.
6306 (define_mode_attr sselongvecmode): New.
6307 (define_mode_attr sselongvecmodelower): New.
6308 (define_mode_attr sseintvecmode3): New.
6309 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6311 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6312 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6313 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6314 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6316 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6317 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6318 Anna Tikhonova <anna.tikhonova@intel.com>
6319 Ilya Tocar <ilya.tocar@intel.com>
6320 Andrey Turetskiy <andrey.turetskiy@intel.com>
6321 Ilya Verbin <ilya.verbin@intel.com>
6322 Kirill Yukhin <kirill.yukhin@intel.com>
6323 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6325 * config/i386/sse.md
6326 (define_mode_iterator VF2_AVX512VL): New.
6327 (define_mode_attr sseintvecmode2): New.
6328 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6329 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6330 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6332 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6334 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6336 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6339 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6341 Anna Tikhonova <anna.tikhonova@intel.com>
6342 Ilya Tocar <ilya.tocar@intel.com>
6343 Andrey Turetskiy <andrey.turetskiy@intel.com>
6344 Ilya Verbin <ilya.verbin@intel.com>
6345 Kirill Yukhin <kirill.yukhin@intel.com>
6346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6348 * config/i386/i386.md
6349 (define_insn "*movoi_internal_avx"): Add evex version.
6350 (define_insn "*movti_internal"): Ditto.
6352 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6354 Anna Tikhonova <anna.tikhonova@intel.com>
6355 Ilya Tocar <ilya.tocar@intel.com>
6356 Andrey Turetskiy <andrey.turetskiy@intel.com>
6357 Ilya Verbin <ilya.verbin@intel.com>
6358 Kirill Yukhin <kirill.yukhin@intel.com>
6359 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6361 * config/i386/i386.md
6362 (define_attr "isa"): Add avx512dq, noavx512dq.
6363 (define_attr "enabled"): Ditto.
6364 * config/i386/sse.md
6365 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6367 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6369 Anna Tikhonova <anna.tikhonova@intel.com>
6370 Ilya Tocar <ilya.tocar@intel.com>
6371 Andrey Turetskiy <andrey.turetskiy@intel.com>
6372 Ilya Verbin <ilya.verbin@intel.com>
6373 Kirill Yukhin <kirill.yukhin@intel.com>
6374 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6376 * config/i386/i386.c
6377 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6378 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6379 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6380 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6381 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6382 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6383 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6384 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6385 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6386 * config/i386/sse.md
6387 (define_mode_iterator VMOVE): Allow V4TI mode.
6388 (define_mode_iterator V_AVX512VL): New.
6389 (define_mode_iterator V): New handling for AVX512VL.
6390 (define_insn "avx512f_load<mode>_mask"): Delete.
6391 (define_insn "<avx512>_load<mode>_mask"): New.
6392 (define_insn "avx512f_store<mode>_mask"): Delete.
6393 (define_insn "<avx512>_store<mode>_mask"): New.
6396 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6399 * asan.c (instrument_derefs): Fix bitfield check.
6401 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6403 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6404 * config/rs6000/htm.md (ttest): Remove clobber.
6405 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6406 (and_operand): Reformat.
6407 (and_2rld_operand): New predicate.
6408 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6410 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6411 parameter. Handle AND directly.
6412 (rs6000_split_logical_di): Remove last parameter.
6413 (rs6000_split_logical): Remove last parameter. Remove obsolete
6415 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6416 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6417 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6418 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6419 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6420 and 5 anonymous splitters): Delete.
6421 (and<mode>3): New expander.
6422 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6423 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6424 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6425 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6426 (floatdisf2_internal1): Remove clobbers.
6427 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6428 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6429 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6430 (and<mode>3 for BOOL_128): Remove clobber.
6431 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6432 rs6000_split_logical.
6433 (*bool<mode>3_internal for BOOL_128): Adjust call of
6434 rs6000_split_logical.
6435 (*boolc<mode>3_internal1 for BOOL_128,
6436 *boolc<mode>3_internal2 for BOOL_128,
6437 *boolcc<mode>3_internal1 for BOOL_128,
6438 *boolcc<mode>3_internal2 for BOOL_128,
6439 *eqv<mode>3_internal1 for BOOL_128,
6440 *eqv<mode>3_internal2 for BOOL_128,
6441 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6442 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6444 (*vec_reload_and_reg_<mptrsize>): Delete.
6446 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6448 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6449 and split, *boolccsi3_internal3 and split): Delete.
6450 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6451 *boolccdi3_internal3 and split): Delete.
6452 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6453 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6455 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6457 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6458 and split, *boolcsi3_internal3 and split): Delete.
6459 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6460 *boolcdi3_internal3 and split): Delete.
6461 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6463 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6465 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6466 <'u'>: Also support printing the low-order 16 bits.
6467 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6468 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6469 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6470 *booldi3_internal3 and split): Delete.
6471 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6472 *bool<mode>3_dot2): New.
6473 (two anonymous define_splits for non_logical_cint_operand): Merge.
6475 2014-08-17 Marek Polacek <polacek@redhat.com>
6476 Manuel López-Ibáñez <manu@gcc.gnu.org>
6479 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6480 (diagnostic_show_locus): Don't print caret diagnostic
6481 if a column is larger than the line_width.
6483 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6485 * common.opt: Make the ISL AST generator to be the main code generator
6488 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6490 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6492 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6495 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6497 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6498 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6499 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6501 * config/pa/pa.md (begin_brtab): Delete insn.
6502 (end_brtab): Likewise.
6504 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6506 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6508 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6510 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6511 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6512 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6513 (get_dynamic_type): Remove.
6514 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6515 (clear_speculation): Bring to ipa-deivrt.h
6516 (get_class_context): Rename to ...
6517 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6518 (contains_type_p): Update.
6519 (get_dynamic_type): Rename to ...
6520 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6521 (possible_polymorphic_call_targets): UPdate.
6522 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6523 * ipa-prop.c (ipa_analyze_call_uses): Update.
6525 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6527 * doc/invoke.texi (SH options): Document missing processor variant
6528 options. Remove references to Hitachi. Undocument deprecated mspace
6531 2014-08-15 Jason Merrill <jason@redhat.com>
6533 * tree.c (type_hash_canon): Uncomment assert.
6535 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6537 * input.h (in_system_header_at): Add comment.
6539 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6542 * diagnostic.c (build_message_string): Make it extern.
6543 * diagnostic.h (build_message_string): Make it extern.
6545 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6547 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6548 load/store from/to non-floating class pseudo.
6550 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6552 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6554 2014-08-15 Richard Biener <rguenther@suse.de>
6556 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6557 (get_constraint_for_ssa_var): Remove dead code.
6558 (get_constraint_for_1): Adjust.
6559 (find_what_var_points_to): Likewise.
6560 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6562 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6565 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6566 (_mm512_mask_cmpge_epu32_mask): Ditto.
6567 (_mm512_cmpge_epu32_mask): Ditto.
6568 (_mm512_mask_cmpge_epi64_mask): Ditto.
6569 (_mm512_cmpge_epi64_mask): Ditto.
6570 (_mm512_mask_cmpge_epu64_mask): Ditto.
6571 (_mm512_cmpge_epu64_mask): Ditto.
6572 (_mm512_mask_cmple_epi32_mask): Ditto.
6573 (_mm512_cmple_epi32_mask): Ditto.
6574 (_mm512_mask_cmple_epu32_mask): Ditto.
6575 (_mm512_cmple_epu32_mask): Ditto.
6576 (_mm512_mask_cmple_epi64_mask): Ditto.
6577 (_mm512_cmple_epi64_mask): Ditto.
6578 (_mm512_mask_cmple_epu64_mask): Ditto.
6579 (_mm512_cmple_epu64_mask): Ditto.
6580 (_mm512_mask_cmplt_epi32_mask): Ditto.
6581 (_mm512_cmplt_epi32_mask): Ditto.
6582 (_mm512_mask_cmplt_epu32_mask): Ditto.
6583 (_mm512_cmplt_epu32_mask): Ditto.
6584 (_mm512_mask_cmplt_epi64_mask): Ditto.
6585 (_mm512_cmplt_epi64_mask): Ditto.
6586 (_mm512_mask_cmplt_epu64_mask): Ditto.
6587 (_mm512_cmplt_epu64_mask): Ditto.
6588 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6589 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6590 (_mm512_cmpneq_epu32_mask): Ditto.
6591 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6592 (_mm512_cmpneq_epi64_mask): Ditto.
6593 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6594 (_mm512_cmpneq_epu64_mask): Ditto.
6595 (_mm512_castpd_ps): Ditto.
6596 (_mm512_castpd_si512): Ditto.
6597 (_mm512_castps_pd): Ditto.
6598 (_mm512_castps_si512): Ditto.
6599 (_mm512_castsi512_ps): Ditto.
6600 (_mm512_castsi512_pd): Ditto.
6601 (_mm512_castpd512_pd128): Ditto.
6602 (_mm512_castps512_ps128): Ditto.
6603 (_mm512_castsi512_si128): Ditto.
6604 (_mm512_castpd512_pd256): Ditto.
6605 (_mm512_castps512_ps256): Ditto.
6606 (_mm512_castsi512_si256): Ditto.
6607 (_mm512_castpd128_pd512): Ditto.
6608 (_mm512_castps128_ps512): Ditto.
6609 (_mm512_castsi128_si512): Ditto.
6610 (_mm512_castpd256_pd512): Ditto.
6611 (_mm512_castps256_ps512): Ditto.
6612 (_mm512_castsi256_si512): Ditto.
6613 (_mm512_cmpeq_epu32_mask): Ditto.
6614 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6615 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6616 (_mm512_cmpeq_epu64_mask): Ditto.
6617 (_mm512_cmpgt_epu32_mask): Ditto.
6618 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6619 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6620 (_mm512_cmpgt_epu64_mask): Ditto.
6621 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6622 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6623 * config/i386/i386.c (enum ix86_builtins): Add
6624 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6625 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6626 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6627 (bdesc_args): Add __builtin_ia32_si512_256si,
6628 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6629 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6630 __builtin_ia32_pd512_pd.
6631 (ix86_expand_args_builtin): Handle new FTYPEs.
6632 * config/i386/sse.md (castmode): Add 512-bit modes.
6633 (AVX512MODE2P): New.
6634 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6635 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6637 2014-08-15 Richard Biener <rguenther@suse.de>
6639 * fold-const.c (tree_swap_operands_p): Put all constants
6640 last, also strip sign-changing NOPs when considering further
6641 canonicalization. Canonicalize also when optimizing for size.
6643 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6645 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6646 one_match > zero_match case to just before simple_sequence.
6648 2014-08-15 Richard Biener <rguenther@suse.de>
6650 * data-streamer.h (streamer_string_index, string_for_index):
6652 * data-streamer-out.c (streamer_string_index): Make static.
6653 * data-streamer-in.c (string_for_index): Likewise.
6654 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6655 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6657 2014-08-15 Richard Biener <rguenther@suse.de>
6659 PR tree-optimization/62031
6660 * tree-data-ref.c (dr_analyze_indices): Do not set
6661 DR_UNCONSTRAINED_BASE.
6662 (dr_may_alias_p): All indirect accesses have to go the
6663 formerly DR_UNCONSTRAINED_BASE path.
6664 * tree-data-ref.h (struct indices): Remove
6665 unconstrained_base member.
6666 (DR_UNCONSTRAINED_BASE): Remove.
6668 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6671 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6672 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6673 in OMP_CLAUSE_MAP in some outer target region.
6675 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6677 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6678 name_expansion_cache.
6679 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6680 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6681 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6682 (difference_cannot_overflow_p): New parameter. Use affine
6683 expansion for equality check.
6684 (iv_elimination_compare_lt): Pass new argument.
6686 2014-08-14 DJ Delorie <dj@redhat.com>
6688 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6689 variables to the accumulator.
6691 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6692 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6693 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6696 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6697 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6698 (umulqihi3_virt): Likewise.
6699 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6700 (umulqihi3_real): Likewise.
6702 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6704 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6706 PR tree-optimization/62091
6707 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6708 function_entry_reached.
6709 (walk_aliased_vdefs): Clear it here.
6710 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6712 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6714 * ipa-utils.h (compare_virtual_tables): Declare.
6715 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6717 2014-08-14 Marek Polacek <polacek@redhat.com>
6720 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6721 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6723 2014-08-14 Tom de Vries <tom@codesourcery.com>
6725 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6727 2014-08-14 Tom de Vries <tom@codesourcery.com>
6729 PR rtl-optimization/62004
6730 PR rtl-optimization/62030
6731 * ifcvt.c (rtx_interchangeable_p): New function.
6732 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6733 * emit-rtl.h (mem_attrs_eq_p): Declare.
6735 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6737 * graphite-scop-detection.c:
6738 Add inclusion of cp-tree.h.
6739 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6740 in case they are pointers to object types
6742 2014-08-14 Richard Biener <rguenther@suse.de>
6744 * BASE-VER: Change to 5.0.0
6746 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6748 Anna Tikhonova <anna.tikhonova@intel.com>
6749 Ilya Tocar <ilya.tocar@intel.com>
6750 Andrey Turetskiy <andrey.turetskiy@intel.com>
6751 Ilya Verbin <ilya.verbin@intel.com>
6752 Kirill Yukhin <kirill.yukhin@intel.com>
6753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6755 * config/i386/sse.md (define_mode_attr avx512): New.
6756 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6758 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6759 (define_mode_attr ssse3_avx2): Ditto.
6760 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6761 (define_mode_attr avx2_avx512bw): New.
6762 (define_mode_attr ssedoublemodelower): New.
6763 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6765 (define_mode_attr ssebytemode): Allow V8DI modes.
6766 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6767 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6768 (define_mode_attr ssePSmode2): New.
6769 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6771 (define_mode_attr dbpsadbwmode): New.
6772 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6773 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6774 (vi8_sse4_1_avx2_avx512): New.
6775 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6777 (define_mode_attr blendbits): Move before its immediate use.
6779 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6781 Anna Tikhonova <anna.tikhonova@intel.com>
6782 Ilya Tocar <ilya.tocar@intel.com>
6783 Andrey Turetskiy <andrey.turetskiy@intel.com>
6784 Ilya Verbin <ilya.verbin@intel.com>
6785 Kirill Yukhin <kirill.yukhin@intel.com>
6786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6788 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6789 * config/i386/subst.md
6790 (define_mode_iterator SUBST_V): Update.
6791 (define_mode_iterator SUBST_A): Ditto.
6792 (define_subst_attr "mask_operand7"): New.
6793 (define_subst_attr "mask_operand10"): New.
6794 (define_subst_attr "mask_operand_arg34") : New.
6795 (define_subst_attr "mask_expand_op3"): New.
6796 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6797 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6798 (define_subst_attr "mask_avx512vl_condition"): New.
6799 (define_subst_attr "round_mask_operand4"): Ditto.
6800 (define_subst_attr "round_mask_scalar_op3"): Delete.
6801 (define_subst_attr "round_mask_op4"): New.
6802 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6804 (define_subst_attr "round_modev8sf_condition"): New.
6805 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6807 (define_subst_attr "round_saeonly_mask_operand4"): New.
6808 (define_subst_attr "round_saeonly_mask_op4"): New.
6809 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6810 V8DImode, V16SImode.
6811 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6812 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6813 (define_subst_attr "mask_expand4_args"): New.
6814 (define_subst "mask_expand4"): New.
6816 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6818 Anna Tikhonova <anna.tikhonova@intel.com>
6819 Ilya Tocar <ilya.tocar@intel.com>
6820 Andrey Turetskiy <andrey.turetskiy@intel.com>
6821 Ilya Verbin <ilya.verbin@intel.com>
6822 Kirill Yukhin <kirill.yukhin@intel.com>
6823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6825 * config/i386/i386.md
6826 (define_attr "isa"): Add avx512bw,noavx512bw.
6827 (define_attr "enabled"): Ditto.
6828 (define_split): Add 32/64-bit mask logic.
6829 (define_insn "*k<logic>qi"): New.
6830 (define_insn "*k<logic>hi"): New.
6831 (define_insn "*anddi_1"): Add mask version.
6832 (define_insn "*andsi_1"): Ditto.
6833 (define_insn "*<code><mode>_1"): Ditto.
6834 (define_insn "*<code>hi_1"): Ditto.
6835 (define_insn "kxnor<mode>"): New.
6836 (define_insn "kunpcksi"): New.
6837 (define_insn "kunpckdi"): New.
6838 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6839 (define_insn "*one_cmplhi2_1"): Ditto.
6841 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6842 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6843 Anna Tikhonova <anna.tikhonova@intel.com>
6844 Ilya Tocar <ilya.tocar@intel.com>
6845 Andrey Turetskiy <andrey.turetskiy@intel.com>
6846 Ilya Verbin <ilya.verbin@intel.com>
6847 Kirill Yukhin <kirill.yukhin@intel.com>
6848 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6850 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6853 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6855 Anna Tikhonova <anna.tikhonova@intel.com>
6856 Ilya Tocar <ilya.tocar@intel.com>
6857 Andrey Turetskiy <andrey.turetskiy@intel.com>
6858 Ilya Verbin <ilya.verbin@intel.com>
6859 Kirill Yukhin <kirill.yukhin@intel.com>
6860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6862 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6864 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6865 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6866 xmm/ymm16+ when availble.
6867 * config/i386/i386.h
6868 (HARD_REGNO_NREGS): Add mask regs.
6869 (VALID_AVX512F_REG_MODE): Ditto.
6870 (VALID_AVX512F_REG_MODE) : Define.
6871 (VALID_MASK_AVX512BW_MODE): Ditto.
6872 (reg_class) (MASK_REG_P(X)): Define.
6873 * config/i386/i386.md: Do not split long moves with mask register,
6874 use kmovb if avx512bw is availible.
6875 (movdi_internal): Handle mask registers.
6877 2014-08-14 Richard Biener <rguenther@suse.de>
6879 PR tree-optimization/62081
6880 * tree-ssa-loop.c (pass_fix_loops): New pass.
6881 (pass_tree_loop::gate): Do not fixup loops here.
6882 * tree-pass.h (make_pass_fix_loops): Declare.
6883 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6885 2014-08-14 Richard Biener <rguenther@suse.de>
6887 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6888 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6890 2014-08-14 Richard Biener <rguenther@suse.de>
6892 PR tree-optimization/62090
6893 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6894 (fold_builtin_2): Do not fold sprintf.
6895 (fold_builtin_3): Likewise.
6896 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6897 moved from builtins.c.
6898 (gimple_fold_builtin): Fold sprintf.
6900 2014-08-14 Richard Biener <rguenther@suse.de>
6902 PR rtl-optimization/62079
6903 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6906 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6908 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6909 current_function_decl.
6911 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6913 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6914 cgraph_function_node to cgraph_node::function_symbol
6917 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6919 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6920 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6922 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6924 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6927 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6929 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6932 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6935 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6936 any registers that are used in mem_insn.
6938 2014-08-12 Steve Ellcey <sellcey@mips.com>
6940 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6942 2014-08-12 Steve Ellcey <sellcey@mips.com>
6944 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6945 (MULTILIB_DIRNAMES): Ditto.
6946 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6947 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6948 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6949 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6950 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6951 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6953 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6956 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6957 of __ARM_SIZEOF_WCHAR_T.
6959 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6962 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6963 Remove unnecessary attributes.
6965 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6967 * internal-fn.c (init_internal_fns): Fix off-by-one.
6969 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6971 Anna Tikhonova <anna.tikhonova@intel.com>
6972 Ilya Tocar <ilya.tocar@intel.com>
6973 Andrey Turetskiy <andrey.turetskiy@intel.com>
6974 Ilya Verbin <ilya.verbin@intel.com>
6975 Kirill Yukhin <kirill.yukhin@intel.com>
6976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6978 * config/i386/i386.c (standard_sse_constant_opcode): Use
6979 vpxord/vpternlog if avx512 is availible.
6981 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6984 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6985 bitfields, that is when size doesn't match the size of type or the
6986 size of the constructor.
6988 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6990 * config/rs6000/constraints.md (wh constraint): New constraint,
6991 for FP registers if direct move is available.
6992 (wi constraint): New constraint, for VSX/FP registers that can
6993 handle 64-bit integers.
6994 (wj constraint): New constraint for VSX/FP registers that can
6995 handle 64-bit integers for direct moves.
6996 (wk constraint): New constraint for VSX/FP registers that can
6997 handle 64-bit doubles for direct moves.
6998 (wy constraint): Make documentation match implementation.
7000 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7001 scalar_in_vmx_p field to simplify tests of whether SFmode or
7002 DFmode can go in the Altivec registers.
7003 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7004 (rs6000_setup_reg_addr_masks): Likewise.
7005 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7006 field, and wh/wi/wj/wk constraints.
7007 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7008 the wh/wi/wj/wk constraints.
7009 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7010 upper registers, prefer VSX registers unless the operation is a
7011 memory operation with REG+OFFSET addressing.
7013 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7014 DImode. Change SFmode to use ww constraint instead of d to allow
7015 SF registers in the upper registers.
7018 (VSr5): Fix thinko in comment.
7019 (VSa): New mode attribute that is an alternative to wa, that
7020 returns the VSX register class that a mode can go in, but may not
7021 be the preferred register class.
7022 (VS_64dm): New mode attribute for appropriate register classes for
7023 referencing 64-bit elements of vectors for direct moves and normal
7025 (VS_64reg): Likewise.
7026 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7027 register allocator to only registers the data type can handle.
7028 (vsx_le_perm_load_<mode>): Likewise.
7029 (vsx_le_perm_store_<mode>): Likewise.
7030 (vsx_xxpermdi2_le_<mode>): Likewise.
7031 (vsx_xxpermdi4_le_<mode>): Likewise.
7032 (vsx_lxvd2x2_le_<mode>): Likewise.
7033 (vsx_lxvd2x4_le_<mode>): Likewise.
7034 (vsx_stxvd2x2_le_<mode>): Likewise.
7035 (vsx_add<mode>3): Likewise.
7036 (vsx_sub<mode>3): Likewise.
7037 (vsx_mul<mode>3): Likewise.
7038 (vsx_div<mode>3): Likewise.
7039 (vsx_tdiv<mode>3_internal): Likewise.
7040 (vsx_fre<mode>2): Likewise.
7041 (vsx_neg<mode>2): Likewise.
7042 (vsx_abs<mode>2): Likewise.
7043 (vsx_nabs<mode>2): Likewise.
7044 (vsx_smax<mode>3): Likewise.
7045 (vsx_smin<mode>3): Likewise.
7046 (vsx_sqrt<mode>2): Likewise.
7047 (vsx_rsqrte<mode>2): Likewise.
7048 (vsx_tsqrt<mode>2_internal): Likewise.
7049 (vsx_fms<mode>4): Likewise.
7050 (vsx_nfma<mode>4): Likewise.
7051 (vsx_eq<mode>): Likewise.
7052 (vsx_gt<mode>): Likewise.
7053 (vsx_ge<mode>): Likewise.
7054 (vsx_eq<mode>_p): Likewise.
7055 (vsx_gt<mode>_p): Likewise.
7056 (vsx_ge<mode>_p): Likewise.
7057 (vsx_xxsel<mode>): Likewise.
7058 (vsx_xxsel<mode>_uns): Likewise.
7059 (vsx_copysign<mode>3): Likewise.
7060 (vsx_float<VSi><mode>2): Likewise.
7061 (vsx_floatuns<VSi><mode>2): Likewise.
7062 (vsx_fix_trunc<mode><VSi>2): Likewise.
7063 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7064 (vsx_x<VSv>r<VSs>i): Likewise.
7065 (vsx_x<VSv>r<VSs>ic): Likewise.
7066 (vsx_btrunc<mode>2): Likewise.
7067 (vsx_b2trunc<mode>2): Likewise.
7068 (vsx_floor<mode>2): Likewise.
7069 (vsx_ceil<mode>2): Likewise.
7070 (vsx_<VS_spdp_insn>): Likewise.
7071 (vsx_xscvspdp): Likewise.
7072 (vsx_xvcvspuxds): Likewise.
7073 (vsx_float_fix_<mode>2): Likewise.
7074 (vsx_set_<mode>): Likewise.
7075 (vsx_extract_<mode>_internal1): Likewise.
7076 (vsx_extract_<mode>_internal2): Likewise.
7077 (vsx_extract_<mode>_load): Likewise.
7078 (vsx_extract_<mode>_store): Likewise.
7079 (vsx_splat_<mode>): Likewise.
7080 (vsx_xxspltw_<mode>): Likewise.
7081 (vsx_xxspltw_<mode>_direct): Likewise.
7082 (vsx_xxmrghw_<mode>): Likewise.
7083 (vsx_xxmrglw_<mode>): Likewise.
7084 (vsx_xxsldwi_<mode>): Likewise.
7085 (vsx_xscvdpspn): Tighten constraints to only use register classes
7087 (vsx_xscvspdpn): Likewise.
7088 (vsx_xscvdpspn_scalar): Likewise.
7090 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7091 wj, and wk constraints.
7092 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7093 general purpose registers.
7095 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7097 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7098 DImode instead of wm. Use wk constraint for direct move of DFmode
7100 (extendsidi2_lfiwax): Likewise.
7103 (movdi_internal64): Likewise.
7105 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7106 wk constraints. Make the wy constraint documentation match them
7109 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7111 Replacement of isl_int by isl_val
7112 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7113 (compute_bounds_for_param): use isl_val instead of isl_int
7114 (compute_bounds_for_loop): likewise
7115 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7116 (build_linearized_memory_access): use isl_val instead of isl_int
7117 (pdr_stride_in_loop): likewise
7118 * graphite-optimize-isl.c:
7119 (getPrevectorMap): use isl_val instead of isl_int
7121 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7122 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7123 (extern the_isl_ctx): declare
7124 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7125 (extract_affine_gmp): likewise
7127 (build_loop_iteration_domains): likewise
7128 (add_param_constraints): likewise
7130 2014-08-11 Richard Biener <rguenther@suse.de>
7132 PR tree-optimization/62075
7133 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7134 handle uses in patterns.
7136 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7137 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7138 Anna Tikhonova <anna.tikhonova@intel.com>
7139 Ilya Tocar <ilya.tocar@intel.com>
7140 Andrey Turetskiy <andrey.turetskiy@intel.com>
7141 Ilya Verbin <ilya.verbin@intel.com>
7142 Kirill Yukhin <kirill.yukhin@intel.com>
7143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7145 * common/config/i386/i386-common.c
7146 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7147 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7148 (ix86_handle_option): Handle OPT_mavx512vl.
7149 * config/i386/cpuid.h (bit_AVX512VL): Define.
7150 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7151 set -mavx512vl accordingly.
7152 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7153 OPTION_MASK_ISA_AVX512VL.
7154 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7155 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7156 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7157 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7158 * config/i386/i386.h (TARGET_AVX512VL): Define.
7159 (TARGET_AVX512VL_P(x)): Ditto.
7160 * config/i386/i386.opt: Add mavx512vl.
7162 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7164 PR tree-optimization/62073
7165 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7168 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7169 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7170 Anna Tikhonova <anna.tikhonova@intel.com>
7171 Ilya Tocar <ilya.tocar@intel.com>
7172 Andrey Turetskiy <andrey.turetskiy@intel.com>
7173 Ilya Verbin <ilya.verbin@intel.com>
7174 Kirill Yukhin <kirill.yukhin@intel.com>
7175 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7177 * common/config/i386/i386-common.c
7178 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7179 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7180 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7181 (ix86_handle_option): Handle OPT_mavx512bw.
7182 * config/i386/cpuid.h (bit_AVX512BW): Define.
7183 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7184 set -mavx512bw accordingly.
7185 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7186 OPTION_MASK_ISA_AVX512BW.
7187 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7188 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7189 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7190 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7191 * config/i386/i386.h (TARGET_AVX512BW): Define.
7192 (TARGET_AVX512BW_P(x)): Ditto.
7193 * config/i386/i386.opt: Add mavx512bw.
7195 2014-08-11 Richard Biener <rguenther@suse.de>
7197 PR tree-optimization/62070
7198 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7199 Remove SSA checking.
7201 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7203 * asan.c (asan_check_flags): New enum.
7204 (build_check_stmt_with_calls): Removed function.
7205 (build_check_stmt): Split inlining logic to
7206 asan_expand_check_ifn.
7207 (instrument_derefs): Rename parameter.
7208 (instrument_mem_region_access): Rename parameter.
7209 (instrument_strlen_call): Likewise.
7210 (asan_expand_check_ifn): New function.
7211 (asan_instrument): Remove old code.
7212 (pass_sanopt::execute): Change handling of
7213 asan-instrumentation-with-call-threshold.
7214 (asan_clear_shadow): Fix formatting.
7215 (asan_function_start): Likewise.
7216 (asan_emit_stack_protection): Likewise.
7217 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7219 * internal-fn.c (expand_ASAN_CHECK): New function.
7220 * internal-fn.def (ASAN_CHECK): New internal function.
7221 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7223 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7224 * tree.c: Small comment fix.
7226 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7228 * gimple.c (gimple_call_fnspec): Support internal functions.
7229 (gimple_call_return_flags): Use const.
7230 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7231 * internal-fn.def: Add fnspec information.
7232 * internal-fn.h (internal_fn_fnspec): New function.
7233 (init_internal_fns): Declare new function.
7234 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7235 (init_internal_fns): New function.
7236 * tree-core.h: Update macro call.
7237 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7239 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7241 * lto-streamer.h (struct output_block::symbol): Change from
7242 struct symtab_node to plain symtab_node.
7243 (referenced_from_this_partition_p): Change first parameter
7244 from struct symtab_node to plain symtab_node.
7246 2014-08-10 Marek Polacek <polacek@redhat.com>
7249 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7251 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7253 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7254 DECL correctly; do not give up on types in static storage.
7256 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7258 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7260 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7262 * graphite-isl-ast-to-gimple.c:
7263 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7265 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7267 2014-08-08 Guozhi Wei <carrot@google.com>
7269 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7271 2014-08-08 Cary Coutant <ccoutant@google.com>
7273 * dwarf2out.c (get_skeleton_type_unit): Remove.
7274 (output_skeleton_debug_sections): Remove skeleton type units.
7275 (output_comdat_type_unit): Likewise.
7276 (dwarf2out_finish): Likewise.
7278 2014-08-07 Yi Yang <ahyangyi@google.com>
7280 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7282 2014-08-08 Richard Biener <rguenther@suse.de>
7284 * lto-streamer.h (struct lto_input_block): Make it a class
7286 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7287 (struct lto_function_header, struct lto_simple_header,
7288 struct lto_simple_header_with_strings,
7289 struct lto_decl_header, struct lto_function_header): Make
7290 a simple inheritance hieararchy. Remove unused fields.
7291 (struct lto_asm_header): Remove.
7292 * lto-streamer-out.c (produce_asm): Adjust.
7293 (lto_output_toplevel_asms): Likewise.
7294 (produce_asm_for_decls): Likewise.
7295 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7296 * data-streamer-in.c (string_for_index): Likewise.
7297 * ipa-inline-analysis.c (inline_read_section): Likewise.
7298 * ipa-prop.c (ipa_prop_read_section): Likewise.
7299 (read_replacements_section): Likewise.
7300 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7301 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7302 (lto_destroy_simple_input_block): Likewise.
7303 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7304 (lto_input_toplevel_asms): Likewise.
7306 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7308 Anna Tikhonova <anna.tikhonova@intel.com>
7309 Ilya Tocar <ilya.tocar@intel.com>
7310 Andrey Turetskiy <andrey.turetskiy@intel.com>
7311 Ilya Verbin <ilya.verbin@intel.com>
7312 Kirill Yukhin <kirill.yukhin@intel.com>
7313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7315 * common/config/i386/i386-common.c
7316 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7317 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7318 (ix86_handle_option): Handle OPT_mavx512dq.
7319 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7320 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7321 set -mavx512dq accordingly.
7322 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7323 OPTION_MASK_ISA_AVX512DQ.
7324 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7325 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7326 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7327 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7328 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7329 (TARGET_AVX512DQ_P(x)): Ditto.
7330 * config/i386/i386.opt: Add mavx512dq.
7332 2014-08-08 Richard Biener <rguenther@suse.de>
7334 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7335 target_percent, target_percent_s): Export.
7336 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7337 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7338 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7339 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7340 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7341 Move to gimple-fold.c.
7342 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7344 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7345 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7346 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7347 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7348 (rewrite_call_expr_array): Remove.
7349 (fold_builtin_sprintf_chk): Likewise.
7350 (fold_builtin_snprintf_chk): Likewise.
7351 (fold_builtin_varargs): Remove handling of sprintf_chk,
7352 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7353 (gimple_fold_builtin_sprintf_chk): Remove.
7354 (gimple_fold_builtin_snprintf_chk): Likewise.
7355 (gimple_fold_builtin_varargs): Likewise.
7356 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7357 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7358 * gimple.c (gimple_seq_add_seq_without_update): New function.
7359 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7360 * gimple-fold.c: Include output.h.
7361 (gsi_replace_with_seq_vops): New function, split out from ...
7362 (gimplify_and_update_call_from_tree): ... here.
7363 (replace_call_with_value): New function.
7364 (replace_call_with_call_and_fold): Likewise.
7365 (var_decl_component_p): Moved from builtins.c.
7366 (gimple_fold_builtin_memory_op): Moved from builtins.c
7367 fold_builtin_memory_op and rewritten to GIMPLE.
7368 (gimple_fold_builtin_memset): Likewise.
7369 (gimple_fold_builtin_strcpy): Likewise.
7370 (gimple_fold_builtin_strncpy): Likewise.
7371 (gimple_fold_builtin_strcat): Likewise.
7372 (gimple_fold_builtin_fputs): Likewise.
7373 (gimple_fold_builtin_memory_chk): Likewise.
7374 (gimple_fold_builtin_stxcpy_chk): Likewise.
7375 (gimple_fold_builtin_stxncpy_chk): Likewise.
7376 (gimple_fold_builtin_snprintf_chk): Likewise.
7377 (gimple_fold_builtin_sprintf_chk): Likewise.
7378 (gimple_fold_builtin_strlen): New function.
7379 (gimple_fold_builtin_with_strlen): New function split out from
7380 gimple_fold_builtin.
7381 (gimple_fold_builtin): Change signature and handle
7382 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7383 here. Call gimple_fold_builtin_with_strlen.
7384 (gimple_fold_call): Adjust.
7386 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7388 * calls.c (precompute_arguments): Check
7389 promoted_for_signed_and_unsigned_p and set the promoted mode.
7390 (promoted_for_signed_and_unsigned_p): New function.
7391 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7392 and set the promoted mode.
7393 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7394 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7395 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7398 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7400 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7401 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7402 (expand_call): Likewise.
7403 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7404 to get promoted mode.
7405 * combine.c (record_promoted_value): Skip > 0 comparison with
7406 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7407 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7408 of SUBREG_PROMOTED_UNSIGNED_P.
7409 (convert_modes): Likewise.
7410 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7411 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7412 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7413 SUBREG_PROMOTED_UNSIGNED_SET.
7414 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7415 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7416 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7417 SUBREG_PROMOTED_SET.
7418 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7419 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7420 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7421 of SUBREG_PROMOTED_UNSIGNED_P.
7422 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7423 (SUBREG_PROMOTED_SET): New define.
7424 (SUBREG_PROMOTED_GET): Likewise.
7425 (SUBREG_PROMOTED_SIGN): Likewise.
7426 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7427 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7428 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7429 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7430 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7431 (nonzero_bits1): Skip > 0 comparison with the results as
7432 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7433 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7434 of !SUBREG_PROMOTED_UNSIGNED_P.
7435 * simplify-rtx.c (simplify_unary_operation_1): Use new
7436 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7437 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7438 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7439 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7441 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7443 * ipa-devirt.c: Include gimple-pretty-print.h
7444 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7446 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7447 (get_polymorphic_call_info): Fix return value
7448 (type_change_info): New sturcture based on ipa-prop
7450 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7451 based on ipa-prop variant.
7452 (extr_type_from_vtbl_ptr_store): New function
7453 based on ipa-prop variant.
7454 (record_known_type): New function.
7455 (check_stmt_for_type_change): New function.
7456 (get_dynamic_type): New function.
7457 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7458 * tree-ssa-pre.c: ipa-utils.h
7459 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7460 machinery; sanity check with ipa-prop devirtualization.
7461 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7464 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7466 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7467 * alias.c, cfgexpand.c, cgraphbuild.c,
7468 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7469 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7470 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7471 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7472 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7473 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7474 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7475 dse.c, except.c, gengtype.c, gimple-expr.c,
7476 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7477 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7478 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7479 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7480 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7481 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7483 * pointer-set.c: Remove file.
7484 * pointer-set.h: Remove file.
7486 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7488 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7489 * config/arm/types.md (f_sels, f_seld): Delete.
7491 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7493 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7494 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7495 (aarch64_movdi_<mode>high): Likewise.
7496 (aarch64_mov<mode>high_di): Likewise.
7497 (aarch64_movdi_<mode>low): Likewise.
7498 (aarch64_mov<mode>low_di): Likewise.
7499 (aarch64_movtilow_tilow): Likewise.
7500 Add comment explaining usage of fp,simd attributes and of
7501 TARGET_FLOAT and TARGET_SIMD.
7503 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7504 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7506 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7507 Use MOVN when one of the half-words is 0xffff.
7509 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7511 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7513 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7515 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7516 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7517 (rfs_str): String corresponding to RFS_* constants.
7518 (rank_for_schedule_stats_t): New typedef.
7519 (rank_for_schedule_stats): New static variable.
7520 (rfs_result): New static function.
7521 (rank_for_schedule): Track statistics for deciding heuristics.
7522 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7524 (ready_sort): Use them for debug printouts.
7525 (schedule_block): Init statistics state. Print statistics on
7526 rank_for_schedule decisions.
7528 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7530 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7532 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7534 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7537 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7539 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7540 function to not conflict.
7541 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7542 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7543 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7544 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7545 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7548 2014-08-07 Marek Polacek <polacek@redhat.com>
7550 * fold-const.c (fold_binary_loc): Add folding of
7551 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7553 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7555 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7556 instead of type size.
7557 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7559 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7561 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7562 (*thumb1_movqi_insn): Likewise.
7563 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7565 2014-08-07 Tom de Vries <tom@codesourcery.com>
7567 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7568 (glibc_2_11_or_earlier): Remove effective-target keywords.
7570 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7572 * config/arm/arm.c (bdesc_2arg): Fix typo.
7573 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7575 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7577 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7579 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7582 * haifa-sched.c (advance_one_cycle): Fix dump.
7583 (schedule_block): Don't advance cycle if we are already at the
7584 beginning of the cycle.
7586 2014-08-06 Martin Jambor <mjambor@suse.cz>
7589 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7591 2014-08-06 Richard Biener <rguenther@suse.de>
7594 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7596 (lto_input_tree): Pop SCCs here.
7598 2014-08-06 Richard Biener <rguenther@suse.de>
7600 PR tree-optimization/61320
7601 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7602 handle misaligned loads.
7604 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7606 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7607 (aarch64_expand_vec_perm_const): Check for dup before zip.
7609 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7611 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7612 CONST_INT_P instead of GET_CODE and compare.
7613 (aarch64_select_cc_mode): Likewise.
7614 (aarch64_print_operand): Likewise.
7615 (aarch64_rtx_costs): Likewise.
7616 (aarch64_simd_valid_immediate): Likewise.
7617 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7618 (aarch64_simd_emit_pair_result_insn): Likewise.
7620 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7622 * gdbhooks.py (find_gcc_source_dir): New helper function.
7623 (class PassNames): New class, locating and parsing passes.def.
7624 (class BreakOnPass): New command "break-on-pass".
7626 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7628 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7631 2014-08-05 Richard Biener <rguenther@suse.de>
7633 PR rtl-optimization/61672
7634 * emit-rtl.h (mem_attrs_eq_p): Declare.
7635 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7636 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7637 * cfgcleanup.c (merge_memattrs): Likewise.
7640 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7642 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7643 rather than singleton vectors.
7644 (vqdmlsls_lane_s32): Likewise.
7646 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7648 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7649 Use VSDQ_HSI mode iterator.
7650 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7651 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7652 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7653 Use BUILTIN_VDQHS macro.
7654 (sqrdmulh_laneq): Likewise.
7655 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7656 (vqdmlals_laneq_s32): Likewise.
7657 (vqdmlslh_laneq_s16): Likewise.
7658 (vqdmlsls_laneq_s32): Likewise.
7659 (vqdmulhh_laneq_s16): Likewise.
7660 (vqdmulhs_laneq_s32): Likewise.
7661 (vqrdmulhh_laneq_s16): Likewise.
7662 (vqrdmulhs_laneq_s32): Likewise.
7664 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7666 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7667 (vmuld_laneq_f64): Likewise.
7668 (vmuls_laneq_f32): Likewise.
7669 (vmul_n_f64): Likewise.
7670 (vmuld_lane_f64): Reimplement in C.
7671 (vmuls_lane_f32): Likewise.
7673 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7675 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7677 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7679 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7681 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7682 (rbitsi2): Likewise.
7683 (*arm_rev): Set predicable and predicable_short_it attributes.
7685 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7687 * convert.c (convert_to_integer): Guard transformation to lrint by
7690 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7692 * config/aarch64/aarch64-builtins.c
7693 (aarch64_simd_builtin_type_mode): Delete.
7694 (v8qi_UP): Remap to V8QImode.
7695 (v4hi_UP): Remap to V4HImode.
7696 (v2si_UP): Remap to V2SImode.
7697 (v2sf_UP): Remap to V2SFmode.
7698 (v1df_UP): Remap to V1DFmode.
7699 (di_UP): Remap to DImode.
7700 (df_UP): Remap to DFmode.
7701 (v16qi_UP):V16QImode.
7702 (v8hi_UP): Remap to V8HImode.
7703 (v4si_UP): Remap to V4SImode.
7704 (v4sf_UP): Remap to V4SFmode.
7705 (v2di_UP): Remap to V2DImode.
7706 (v2df_UP): Remap to V2DFmode.
7707 (ti_UP): Remap to TImode.
7708 (ei_UP): Remap to EImode.
7709 (oi_UP): Remap to OImode.
7710 (ci_UP): Map to CImode.
7711 (xi_UP): Remap to XImode.
7712 (si_UP): Remap to SImode.
7713 (sf_UP): Remap to SFmode.
7714 (hi_UP): Remap to HImode.
7715 (qi_UP): Remap to QImode.
7716 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7717 (VAR1): Build builtin name.
7718 (aarch64_init_simd_builtins): Remove dead code.
7720 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7722 * graphite-isl-ast-to-gimple.c:
7723 (set_options): New function.
7724 (scop_to_isl_ast): Add calling of set_options.
7726 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7728 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7729 (analyze_iv_to_split_insn): Don't initialize them.
7730 (get_ivts_expr): Removed.
7731 (allocate_basic_variable, insert_base_initialization): Use
7732 SET_SRC instead of *get_ivts_expr.
7733 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7735 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7737 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7738 (translate_isl_ast_for_loop): Add checking of the
7739 flag_loop_parallelize_all.
7740 (ast_build_before_for): New function.
7741 (scop_to_isl_ast): Add checking of the
7742 flag_loop_parallelize_all.
7743 * graphite-dependences.c: Move the defenition of the
7744 scop_get_dependences from graphite-optimize-isl.c to this file.
7745 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7746 (carries_deps): Add checking of the x's value.
7747 * graphite-optimize-isl.c: Move the defenition of the
7748 scop_get_dependences to graphite-dependences.c.
7749 * graphite-poly.h: Add declarations of scop_get_dependences
7752 2014-08-04 Rohit <rohitarulraj@freescale.com>
7755 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7757 (alt_reg_names): Likewise.
7758 (rs6000_dwarf_register_span): For SPE high registers, replace
7759 dwarf register numbers with GCC hard register numbers.
7760 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7761 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7762 register number for the corresponding GCC hard register number.
7763 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7764 newly added GCC hard register numbers for SPE high registers.
7765 (DWARF_FRAME_REGISTERS): Likewise.
7766 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7767 (DWARF_FRAME_REGNUM): Likewise.
7768 (FIXED_REGISTERS): Likewise.
7769 (CALL_USED_REGISTERS): Likewise.
7770 (CALL_REALLY_USED_REGISTERS): Likewise.
7771 (REG_ALLOC_ORDER): Likewise.
7772 (enum reg_class): Likewise.
7773 (REG_CLASS_NAMES): Likewise.
7774 (REG_CLASS_CONTENTS): Likewise.
7775 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7777 2014-08-04 Richard Biener <rguenther@suse.de>
7779 * gimple-fold.h (gimple_fold_builtin): Remove.
7780 * gimple-fold.c (gimple_fold_builtin): Make static.
7781 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7782 fold_stmt, not gimple_fold_builtin.
7784 2014-08-04 Martin Liska <mliska@suse.cz>
7786 * cgraph.h (csi_end_p): Removed.
7787 (csi_next): Likewise.
7788 (csi_node): Likewise.
7789 (csi_start): Likewise.
7790 (cgraph_node_in_set_p): Likewise.
7791 (cgraph_node_set_size): Likewise.
7792 (vsi_end_p): Likewise.
7793 (vsi_next): Likewise.
7794 (vsi_node): Likewise.
7795 (vsi_start): Likewise.
7796 (varpool_node_set_size): Likewise.
7797 (cgraph_node_set_nonempty_p): Likewise.
7798 (varpool_node_set_nonempty_p): Likewise.
7799 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7801 * ipa-inline-transform.c: Likewise.
7802 * ipa-utils.c (cgraph_node_set_new): Removed.
7803 (cgraph_node_set_add): Likewise.
7804 (cgraph_node_set_remove): Likewise.
7805 (cgraph_node_set_find): Likewise.
7806 (dump_cgraph_node_set): Likewise.
7807 (debug_cgraph_node_set): Likewise.
7808 (free_cgraph_node_set): Likewise.
7809 (varpool_node_set_new): Likewise.
7810 (varpool_node_set_add): Likewise.
7811 (varpool_node_set_remove): Likewise.
7812 (varpool_node_set_find): Likewise.
7813 (dump_varpool_node_set): Likewise.
7814 (free_varpool_node_set): Likewise.
7815 (debug_varpool_node_set): Likewise.
7816 * tree-emutls.c (struct tls_var_data):
7817 (emutls_index): Removed.
7818 (emutls_decl): Likewise.
7819 (gen_emutls_addr): Function implementation uses newly added
7820 hash_map<varpool_node *, tls_var_data>.
7821 (clear_access_vars): Likewise.
7822 (create_emultls_var): Likewise.
7823 (ipa_lower_emutls): Likewise.
7824 (reset_access): New function.
7826 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7828 * config/i386/i386.c (ix86_option_override_internal): Add
7829 PTA_RDRND and PTA_MOVBE for bdver4.
7831 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7832 James Greenhalgh <james.greenhalgh@arm.com>
7834 * doc/md.texi (clrsb): Document.
7835 (clz): Change reference to x into operand 1.
7837 (popcount): Likewise.
7839 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7842 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7843 move to subtarget in serial version if result is ignored.
7845 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7846 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7848 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7849 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7850 (sched_analyze_insn): Update use of try_group_insn to
7851 sched_macro_fuse_insns.
7852 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7853 arguments that are not conditional jumps.
7855 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7857 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7858 family information. Handle BTVER2 cpu with cpuid family value.
7860 2014-08-04 Tom de Vries <tom@codesourcery.com>
7862 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7863 (glibc_2_11_or_earlier): Document effective-target keywords.
7865 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7867 * ipa-devirt.c (odr_type_warn_count): Add type.
7868 (possible_polymorphic_call_targets): Set it.
7869 (ipa_devirt): Use it.
7871 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7873 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7875 * ipa-devirt.c: Include hash-map.h
7876 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7877 (clear_speculation): Break out of ...
7878 (get_class_context): ... here; speed up handling obviously useless
7880 (odr_type_warn_count, decl_warn_count): New structures.
7881 (final_warning_record): New structure.
7882 (final_warning_records): New static variable.
7883 (possible_polymorphic_call_targets): Cleanup handling of
7884 speculative info; do not build speculation when user do not care;
7885 record info about warnings when asked for.
7886 (add_decl_warning): New function.
7887 (type_warning_cmp): New function.
7888 (decl_warning_cmp): New function.
7889 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7890 (gate): Enable pass when warnings are requested.
7891 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7894 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7896 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7898 (hash_map::remove): New method.
7899 (hash_map::traverse): New method.
7900 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7901 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7902 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7903 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7904 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7905 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7908 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7910 * hash-set.h: new File.
7911 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7912 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7913 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7914 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7915 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7916 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7917 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7918 varpool.c: Use hash_set instead of pointer_set.
7920 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7922 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7924 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7926 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7927 for frame access when strict_p is false.
7929 2014-08-01 Renlin Li <renlin.li@arm.com>
7930 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7932 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7933 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7934 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7936 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7938 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7939 aarch64_mem_pair_offset.
7941 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7943 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7945 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7946 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7948 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7950 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7952 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7955 * cgraphunit.c (analyze_functions): Use get_create rather than get
7956 for decls which are clones of abstract functions.
7958 2014-08-01 Martin Liska <mliska@suse.cz>
7960 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7961 * ipa-prop.h (count_formal_params): Global function created from static.
7962 * ipa-prop.c (count_formal_params): Likewise.
7963 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7964 profiles for semantically equivalent functions.
7965 * passes.c (do_per_function): If we load body of a function
7966 during WPA, this condition should behave same.
7967 * varpool.c (ctor_for_folding): More tolerant assert for variable
7968 aliases created during WPA.
7970 2014-08-01 Martin Liska <mliska@suse.cz>
7972 * doc/invoke.texi (Options That Control Optimization): Documentation
7973 for -foptimize-strlen introduced. Optimization levels default options
7976 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7978 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7979 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7980 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7982 * stor-layout.h (min_align_of_type): New prototype.
7983 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7984 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7986 * ubsan.c: Include builtins.h.
7987 (ubsan_expand_bounds_ifn): Change return type to bool,
7989 (ubsan_expand_null_ifn): Change return type to bool, change
7990 argument to gimple_stmt_iterator *. Handle both null and alignment
7991 sanitization, take type from ckind argument's type rather than
7993 (instrument_member_call): Removed.
7994 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7995 Handle both null and alignment sanitization, don't say whole
7996 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7997 call instead of 2 argument.
7998 (instrument_null): Adjust instrument_mem_ref caller. Don't
7999 instrument calls here.
8000 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8002 * stor-layout.c (min_align_of_type): New function.
8003 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8004 Or it into SANITIZE_UNDEFINED.
8005 * doc/invoke.texi (-fsanitize=alignment): Document.
8007 2014-07-31 Andi Kleen <ak@linux.intel.com>
8009 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8011 2014-07-31 Andi Kleen <ak@linux.intel.com>
8013 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8015 (vn_reference_compute_hash): Dito.
8016 (vn_nary_op_compute_hash): Dito.
8017 (vn_phi_compute_hash): Dito.
8018 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8020 2014-07-31 Andi Kleen <ak@linux.intel.com>
8022 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8023 Rename to inchash:add_expr_commutative. Convert to inchash.
8024 (iterative_hash_hashable_expr): Rename to
8025 inchash:add_hashable_expr. Convert to inchash.
8026 (avail_expr_hash): Dito.
8028 2014-07-31 Andi Kleen <ak@linux.intel.com>
8030 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8033 2014-07-31 Andi Kleen <ak@linux.intel.com>
8035 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8037 2014-07-31 Andi Kleen <ak@linux.intel.com>
8039 * Makefile.in (OBJS): Add rtlhash.o
8040 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8041 (loc_checksum): Dito.
8042 (loc_checksum_ordered): Dito.
8043 (hash_loc_operands): Dito.
8045 (hash_loc_list): Dito.
8046 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8047 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8048 * rtlhash.c: New file.
8049 * rtlhash.h: New file.
8051 2014-07-31 Andi Kleen <ak@linux.intel.com>
8053 * inchash.h (inchash): Change inchash class to namespace.
8054 (class hash): ... Rename from inchash.
8055 (add_object): Move from macro to class template.
8056 * lto-streamer-out.c (hash_tree): Change inchash
8058 * tree.c (build_type_attribute_qual_variant): Dito.
8059 (type_hash_list): Dito.
8060 (attribute_hash_list): Dito.
8061 (iterative_hstate_expr): Rename to inchash::add_expr
8062 (build_range_type_1): Change inchash to inchash::hash
8063 and use hash::add_expr.
8064 (build_array_type_1): Dito.
8065 (build_function_type): Dito
8066 (build_method_type_directly): Dito.
8067 (build_offset_type): Dito.
8068 (build_complex_type): Dito.
8069 (make_vector_type): Dito.
8070 * tree.h (iterative_hash_expr): Dito.
8072 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8074 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8076 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8078 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8079 correct alphabetical position.
8080 (vpaddd_f64): Rewrite using builtins.
8081 (vpaddd_s64): Move to correct alphabetical position.
8084 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8087 * config/sh/sh.c (sh_legitimate_address_p,
8088 sh_legitimize_reload_address): Handle reg+reg address modes when
8089 ALLOW_INDEXED_ADDRESS is false.
8090 * config/sh/predicates.md (general_movsrc_operand,
8091 general_movdst_operand): Likewise.
8093 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8095 * config/aarch64/aarch64-builtins.c
8096 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8099 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8101 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8102 the generated mask based on BYTES_BIG_ENDIAN.
8103 (aarch64_simd_check_vect_par_cnst_half): New.
8104 * config/aarch64/aarch64-protos.h
8105 (aarch64_simd_check_vect_par_cnst_half): New.
8106 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8107 the check out to aarch64_simd_check_vect_par_cnst_half.
8108 (vect_par_cnst_lo_half): Likewise.
8109 * config/aarch64/aarch64-simd.md
8110 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8111 (move_hi_quad_<mode>): Always generate a low mask.
8113 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8115 * doc/invoke.texi (AVR Options): Add documentation about
8116 __AVR_DEVICE_NAME__ built-in macro.
8118 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8121 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8122 constraints are satisfied.
8123 (<shift>di3_neon): Likewise.
8125 2014-07-31 Richard Biener <rguenther@suse.de>
8127 PR tree-optimization/61964
8128 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8129 by structural equality.
8131 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8133 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8134 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8135 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8137 * gcc.c (sanitize_spec_function): Support new option.
8138 (SANITIZER_SPEC): Remove now redundant check.
8139 * opts.c (common_handle_option): Support new option.
8140 (finish_options): Check for incompatibilities.
8141 * toplev.c (process_options): Split userspace-specific checks.
8143 2014-07-31 Richard Biener <rguenther@suse.de>
8145 * lto-streamer.h (struct output_block): Remove global.
8146 (struct data_in): Remove labels, num_named_labels and
8148 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8149 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8151 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8154 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8155 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8156 (isolate_path): New argument to avoid inserting a trap.
8157 (find_implicit_erroneous_behaviour): Handle returning the address
8158 of a local variable.
8159 (find_explicit_erroneous_behaviour): Likewise.
8161 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8164 * toplev.c (init_random_seed): Move piece of code never called to
8166 (set_random_seed): see above.
8168 2014-07-31 Tom de Vries <tom@codesourcery.com>
8170 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8172 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8174 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8175 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8177 2014-07-31 Richard Biener <rguenther@suse.de>
8179 * data-streamer.h (streamer_write_data_stream): Declare here,
8181 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8182 * lto-cgraph.c (lto_output_node): Adjust.
8183 (lto_output_varpool_node): Likewise.
8184 * data-streamer-out.c (streamer_string_index): Likewise.
8185 (streamer_write_data_stream, lto_append_block): Move from ...
8186 * lto-section-out.c (lto_output_data_stream,
8187 lto_append_block): ... here.
8189 2014-07-30 Mike Stump <mikestump@comcast.net>
8191 * configure.ac: Also check for popen.
8192 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8193 * configure: Regenerate.
8194 * config.in: Regenerate.
8196 2014-07-30 Martin Jambor <mjambor@suse.cz>
8198 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8199 parameter to gimple.
8201 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8203 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8204 address as second parameter to __tpf_eh_return routine.
8206 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8208 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8211 2014-07-30 Tom Tromey <tromey@redhat.com>
8214 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8215 * doc/extend.texi (Type Attributes): Document designated_init
8218 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8220 * graphite-isl-ast-to-gimple.c:
8221 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8222 (gcc_expression_from_isl_expression): Pass type to
8223 gcc_expression_from_isl_ast_expr_id.
8225 2014-07-30 Richard Biener <rguenther@suse.de>
8227 * lto-streamer.h (lto_write_data): New function.
8228 * langhooks.c (lhd_append_data): Do not free block.
8229 * lto-section-out.c (lto_write_data): New function writing
8230 raw data to the current section.
8231 (lto_write_stream): Adjust for langhook semantic change.
8232 (lto_destroy_simple_output_block): Write header directly.
8233 * lto-opts.c (lto_write_options): Write options directly.
8234 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8235 (lto_output_toplevel_asms): Likewise.
8236 (copy_function_or_variable): Copy data directly.
8237 (write_global_references): Output index table directly.
8238 (lto_output_decl_state_refs): Likewise.
8239 (write_symbol): Write data directly.
8240 (produce_symtab): Adjust.
8241 (produce_asm_for_decls): Output header and refs directly.
8243 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8245 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8246 to speculative_targets
8247 (get_class_context): Fix handling of contextes without outer type;
8248 avoid matching non-polymorphic types in LTO.
8249 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8250 parameter to speculative_targetsp; handle speculation.
8251 (dump_possible_polymorphic_call_targets): Update dumping.
8253 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8255 * common.opt (Wodr): Enable by default.
8257 2014-07-29 Olivier Hainque <hainque@adacore.com>
8259 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8261 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8264 * gengtype.c (strtoken): New function.
8265 (create_user_defined_type): Replace strtok with strtoken.
8267 2014-07-29 Nathan Sidwell <nathan@acm.org>
8269 * gcov-io.c (gcov_var): Make hidden.
8270 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8271 (gcov_do_dump): Declare.
8272 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8274 2014-07-29 Martin Jambor <mjambor@suse.cz>
8276 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8277 parameter to gimple.
8278 (sra_modify_assign): Likewise.
8280 2014-07-29 Richard Biener <rguenther@suse.de>
8283 * expr.c (expand_expr_real_2): Revert last change.
8285 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8287 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8288 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8289 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8291 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8292 (contains_type_p): Forward declare.
8293 (polymorphic_call_target_hasher::hash): Hash speculative info.
8294 (polymorphic_call_target_hasher::equal): Compare speculative info.
8295 (get_class_context): Handle speuclation.
8296 (contains_type_p): Update.
8297 (get_polymorphic_call_info_for_decl): Update.
8298 (walk_ssa_copies): Break out from ...
8299 (get_polymorphic_call_info): ... here; set speculative context
8301 * ipa-prop.c (ipa_write_indirect_edge_info,
8302 ipa_read_indirect_edge_info): Stream speculative context.
8303 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8304 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8305 SPECULATIVE_MAYBE_DERIVED_TYPE).
8306 (possible_polymorphic_call_targets overriders): Update.
8307 (dump_possible_polymorphic_call_targets overriders): Update.
8308 (dump_possible_polymorphic_call_target_p overriders): Update.
8310 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8312 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8313 ipa-devirt path; fix thinko there.
8315 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8317 * config/i386/i386.c (ix86_return_in_memory): Replace one
8318 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8320 2014-07-28 Marek Polacek <polacek@redhat.com>
8322 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8324 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8326 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8327 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8328 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8329 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8330 (USE_LD_AS_NEEDED): Likewise.
8331 (ASM_APP_ON): Likewise.
8332 (ASM_APP_OFF): Likewise.
8333 (TARGET_POSIX_IO): Likewise.
8334 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8335 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8336 (USE_LD_AS_NEEDED): Likewise.
8337 (ASM_APP_ON): Likewise.
8338 (ASM_APP_OFF): Likewise.
8339 (TARGET_POSIX_IO): Likewise.
8341 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8344 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8345 operators other than the equality operators.
8347 2014-07-28 Richard Biener <rguenther@suse.de>
8350 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8351 sure to register SImode ones, not only >= word_mode ones.
8352 * expr.c (expand_expr_real_2): When expanding -ftrapv
8353 binops do not use OPTAB_LIB_WIDEN.
8355 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8358 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8359 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8360 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8361 inserting them in the insn stream.
8363 2014-07-28 Marek Polacek <polacek@redhat.com>
8366 * common.opt (Wodr): Add Var.
8368 2014-07-28 Richard Biener <rguenther@suse.de>
8370 PR tree-optimization/61921
8371 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8372 if there is a varpool node before dereferencing it.
8374 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8376 * graphite-sese-to-poly.c:
8377 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8378 id of the pbb), which contains pointer to the pbb1.
8380 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8382 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8384 * graphite-isl-ast-to-gimple.c:
8385 (graphite_create_new_guard): New function.
8386 (translate_isl_ast_node_if): New function.
8387 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8389 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8391 2014-07-27 Anthony Green <green@moxielogic.com>
8393 * config.gcc: Add moxie-*-moxiebox* configuration.
8394 * config/moxie/moxiebox.h: New file.
8396 2014-07-26 Andrew Pinski <apinski@cavium.com>
8398 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8399 from the read only register.
8401 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8403 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8404 as the allocation class if it isn't likely to be spilled.
8406 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8408 * rtl.h (tls_referenced_p): Declare.
8409 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8410 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8411 (mips_cannot_force_const_mem): Use tls_referenced_p.
8412 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8413 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8414 instead of pa_tls_referenced_p.
8415 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8416 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8417 (pa_legitimate_constant_p): Likewise.
8418 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8419 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8420 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8421 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8422 rs6000_tls_referenced_p.
8423 (rs6000_tls_symbol_ref_1): Delete.
8425 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8428 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8429 Optimize inverse of a VEC_CONCAT.
8431 2014-07-25 Xinliang David Li <davidxl@google.com>
8433 * params.def: New parameter.
8434 * coverage.c (get_coverage_counts): Check new flag.
8435 (coverage_compute_profile_id): Check new flag.
8436 (coverage_begin_function): Check new flag.
8437 (coverage_end_function): Check new flag.
8438 * value-prof.c (coverage_node_map_initialized_p): New function.
8439 (init_node_map): Populate map with all functions.
8440 * doc/invoke.texi: Document new parameter.
8442 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8443 Richard Biener <rguenther@suse.de>
8445 * lto-streamer-out.c (struct sccs): Turn to ...
8446 (class DFS): ... this one; refactor the DFS walk so it can
8447 be re-done on per-SCC basis.
8448 (DFS::DFS): New constructor.
8449 (DFS::~DFS): New destructor.
8450 (hash_tree): Add new MAP argument holding in-SCC hash values;
8451 remove POINTER_TYPE hashing hack.
8452 (scc_entry_compare): Rename to ...
8453 (DFS::scc_entry_compare): ... this one.
8454 (hash_scc): Rename to ...
8455 (DFS::hash_scc): ... this one; pass output_block instead
8456 of streamer_cache; work harder to get unique and stable SCC
8458 (DFS_write_tree): Rename to ...
8459 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8460 (lto_output_tree): Update.
8462 2014-07-25 Andi Kleen <ak@linux.intel.com>
8464 * lto-streamer-out.c (hash_tree): Convert to inchash.
8466 2014-07-25 Andi Kleen <ak@linux.intel.com>
8468 * tree.c (build_type_attribute_qual_variant): Use inchash.
8469 (type_hash_list): Dito.
8470 (attribute_hash_list): Dito
8471 (iterative_hstate_expr): Dito.
8472 (iterative_hash_expr): Dito.
8473 (build_range_type_1): Dito.
8474 (build_array_type_1): Dito.
8475 (build_function_type): Dito.
8476 (build_method_type_directly): Dito.
8477 (build_offset_type): Dito.
8478 (build_complex_type): Dito.
8479 (make_vector_type): Dito.
8480 * tree.h (iterative_hash_expr): Add compat wrapper.
8481 (iterative_hstate_expr): Add.
8483 2014-07-25 Andi Kleen <ak@linux.intel.com>
8485 * Makefile.in (OBJS): Add inchash.o.
8486 (PLUGIN_HEADERS): Add inchash.h.
8487 * ipa-devirt.c: Include inchash.h.
8488 * lto-streamer-out.c: Dito.
8489 * tree-ssa-dom.c: Dito.
8490 * tree-ssa-pre.c: Dito.
8491 * tree-ssa-sccvn.c: Dito.
8492 * tree-ssa-tail-merge.c: Dito.
8494 * tree.c (iterative_hash_hashval_t): Move to ...
8495 (iterative_hash_host_wide_int): Move to ...
8496 * inchash.c: Here. New file.
8497 * tree.h (iterative_hash_hashval_t): Move to ...
8498 (iterative_hash_host_wide_int): Move to ...
8499 * inchash.h: Here. New file.
8501 2014-07-25 Richard Biener <rguenther@suse.de>
8505 * fold-const.c (native_encode_int): Add and handle offset
8506 parameter to do partial encodings of expr.
8507 (native_encode_fixed): Likewise.
8508 (native_encode_real): Likewise.
8509 (native_encode_complex): Likewise.
8510 (native_encode_vector): Likewise.
8511 (native_encode_string): Likewise.
8512 (native_encode_expr): Likewise.
8513 * fold-const.c (native_encode_expr): Add offset parameter
8515 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8516 (fold_ctor_reference): Handle all reads from tcc_constant
8519 2014-07-25 Richard Biener <rguenther@suse.de>
8521 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8524 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8526 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8528 2014-07-24 Kyle McMartin <kyle@redhat.com>
8530 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8532 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8534 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8536 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8538 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8539 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8540 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8542 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8544 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8545 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8546 aggregate types. Instead, *all* aggregate types, except for single-
8547 element or homogeneous float/vector aggregates, are quadword-aligned
8548 if required by their type alignment. Issue -Wpsabi note when a type
8549 is now treated differently than before.
8551 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8553 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8554 does not fit fully into floating-point registers, and there is still
8555 space in the register parameter area, use GPRs to pass those parts
8556 of the argument. Issue -Wpsabi note if any parameter is now treated
8557 differently than before.
8558 (rs6000_arg_partial_bytes): Update.
8560 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8562 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8564 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8566 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8567 * toplev.c (initialize_rtl): Don't use it. Move previously
8568 "language-dependent" calls to...
8569 (backend_init): ...here.
8570 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8571 Assert that RTL initialization hasn't happend yet.
8573 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8575 PR rtl-optimization/61629
8576 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8577 they have already been initialized.
8579 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8582 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8583 DECL_INCOMING_RTL and entry_parm.
8584 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8585 * calls.c (load_register_parameters): Likewise argument values.
8586 (emit_library_call_value_1, store_one_arg): Likewise argument
8588 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8590 * explow.c (validize_mem): Modify the argument in-place.
8592 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8594 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8595 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8597 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8599 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8600 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8602 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8604 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8605 (aarch64_save_callee_saves): New parameter "skip_wb".
8606 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8608 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8610 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8612 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8614 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8616 * graphite-isl-ast-to-gimple.c:
8617 (graphite_create_new_loop): Add calling of isl_id_free to properly
8618 decrement reference counts.
8620 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8622 2014-07-24 Martin Liska <mliska@suse.cz>
8623 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8625 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8626 (rs6000_code_end): Likewise.
8628 2014-07-24 Martin Liska <mliska@suse.cz>
8630 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8631 symtab_node funtion used.
8632 (rs6000_xcoff_declare_object_name): Likewise.
8634 2014-07-24 Martin Liska <mliska@suse.cz>
8636 * cgraphunit.c (compile): Correct function used.
8638 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8640 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8643 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8646 * varasm.c (bss_initializer_p): Handle offlined ctors.
8647 (align_variable, get_variable_align): Likewise.
8648 (make_decl_one_only): Likewise.
8649 (default_binds_local_p_1): Likewise.
8650 (decl_binds_to_current_def_p): Likewise.
8651 (get_variable_section): Get constructor if it is offlined.
8652 (assemble_variable_contents): Sanity check that the caller
8653 streamed in the ctor in LTO.
8655 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8657 * graphite-isl-ast-to-gimple.c:
8658 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8659 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8660 isl_ast_op_pdiv_r to the different case.
8662 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8664 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8667 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8668 when flag_errno_math is on.
8670 2014-07-24 Martin Liska <mliska@suse.cz>
8672 * cgraph.h (varpool_node):
8673 (availability get_availability (void)):
8674 created from cgraph_variable_initializer_availability
8675 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8676 created from: cgraph_variable_initializer_availability
8677 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8678 (void finalize_named_section_flags (void)):
8679 created from varpool_finalize_named_section_flags
8680 (bool assemble_decl (void)): created from varpool_assemble_decl
8681 (void analyze (void)): created from varpool_analyze_node
8682 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8683 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8684 (void remove_initializer (void)): created from varpool_remove_initializer
8685 (tree get_constructor (void)): created from varpool_get_constructor
8686 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8687 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8688 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8689 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8690 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8691 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8692 (static bool output_variables (void)): created from varpool_output_variables
8693 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8694 created from varpool_extra_name_alias
8695 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8696 (static void dump_varpool (FILE *f)): created from dump_varpool
8697 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8698 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8699 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8700 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8701 (void assemble_aliases (void)): created from assemble_aliases
8703 2014-07-24 Martin Liska <mliska@suse.cz>
8705 * cgraph.h (symtab_node):
8706 (void register_symbol (void)): created from symtab_register_node
8707 (void remove (void)): created from symtab_remove_node
8708 (void dump (FILE *f)): created from dump_symtab_node
8709 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8710 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8711 (struct ipa_ref *add_reference (symtab_node *referred_node,
8712 enum ipa_ref_use use_type)): created from add_reference
8713 (struct ipa_ref *add_reference (symtab_node *referred_node,
8714 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8715 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8716 gimple stmt)): created from maybe_add_reference
8717 (bool semantically_equivalent_p (symtab_node *target)): created from
8718 symtab_semantically_equivalent_p
8719 (void remove_from_same_comdat_group (void)): created from
8720 remove_from_same_comdat_group
8721 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8722 symtab_add_to_same_comdat_group
8723 (void dissolve_same_comdat_group_list (void)): created from
8724 symtab_dissolve_same_comdat_group_list
8725 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8726 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8727 created from symtab_alias_ultimate_target
8728 (inline symtab_node *next_defined_symbol (void)): created from
8729 symtab_next_defined_symbol
8730 (bool resolve_alias (symtab_node *target)): created from
8731 symtab_resolve_alias
8732 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8733 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8734 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8735 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8736 (void set_section (const char *section)): created from set_section_1
8737 (enum availability get_availability (void)): created from symtab_node_availability
8738 (void make_decl_local (void)): created from symtab_make_decl_local
8739 (bool real_symbol_p (void)): created from symtab_read_node
8740 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8741 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8742 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8743 symtab_in_same_comdat_p;
8744 (bool address_taken_from_non_vtable_p (void)): created from
8745 address_taken_from_non_vtable_p
8746 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8747 (static void dump_table (FILE *)): created from dump_symtab
8748 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8749 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8750 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8751 symtab_used_from_object_file_p
8752 (void dump_base (FILE *)): created from dump_symtab_base
8753 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8754 (void unregister (void)): created from symtab_unregister_node
8755 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8756 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8757 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8758 symtab_nonoverwritable_alias_1
8759 * cgraph.h (cgraph_node):
8760 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8761 created from cgraph_remove_node_and_inline_clones
8762 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8763 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8764 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8765 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8766 created from cgraph_function_node
8767 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8768 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8769 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8770 created from cgraph_create_clone
8771 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8772 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8773 created from cgraph_create_virtual_clone
8774 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8775 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8776 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8777 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8778 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8779 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8780 created from cgraph_function_version_info
8781 (struct cgraph_function_version_info *insert_new_function_version (void)):
8782 created from insert_new_cgraph_node_version
8783 (struct cgraph_function_version_info *function_version (void)): created from
8784 get_cgraph_node_version
8785 (void analyze (void)): created from analyze_function
8786 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8787 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8788 tree real_alias) cgraph_add_thunk
8789 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8790 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8791 created from cgraph_function_or_thunk_node
8792 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8793 created from expand_thunk
8794 (void reset (void)): created from cgraph_reset_node
8795 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8796 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8797 (void remove (void)): created from cgraph_remove_node
8798 (void dump (FILE *f)): created from dump_cgraph_node
8799 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8800 (bool get_body (void)): created from cgraph_get_body
8801 (void release_body (void)): created from cgraph_release_function_body
8802 (void unnest (void)): created from cgraph_unnest_node
8803 (void make_local (void)): created from cgraph_make_node_local
8804 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8805 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8806 gcov_type count, int freq)): created from cgraph_create_edge
8807 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8808 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8809 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8810 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8811 created from cgraph_create_edge_including_clones
8812 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8813 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8814 (void remove_callers (void)): created from cgraph_node_remove_callers
8815 (void remove_callees (void)): created from cgraph_node_remove_callees
8816 (enum availability get_availability (void)): created from cgraph_function_body_availability
8817 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8818 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8819 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8820 (void call_duplication_hooks (cgraph_node *node2)): created from
8821 cgraph_call_node_duplication_hooks
8822 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8823 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8824 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8825 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8826 (void call_function_insertion_hooks (void)):
8827 created from cgraph_call_function_insertion_hooks
8828 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8829 (bool local_p (void)): created from cgraph_local_node
8830 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8831 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8832 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8833 (inline bool only_called_directly_or_aliased_p (void)):
8834 created from cgraph_only_called_directly_or_aliased_p
8835 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8836 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8837 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8838 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8839 (bool can_remove_if_no_direct_calls_p (void)):
8840 created from cgraph_can_remove_if_no_direct_calls_p
8841 (inline bool has_gimple_body_p (void)):
8842 created from cgraph_function_with_gimple_body_p
8843 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8844 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8845 (static inline void debug_cgraph (void)): created from debug_cgraph
8846 (static void record_function_versions (tree decl1, tree decl2)):
8847 created from record_function_versions
8848 (static void delete_function_version (tree decl)):
8849 created from delete_function_version
8850 (static void add_new_function (tree fndecl, bool lowered)):
8851 created from cgraph_add_new_function
8852 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8853 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8854 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8855 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8856 (static cgraph_node *get_for_asmname (tree asmname)):
8857 created from cgraph_node_for_asm
8858 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8859 created from cgraph_same_body_alias
8860 (static bool used_from_object_file_p_worker (cgraph_node *node,
8861 void *): new function
8862 (static bool non_local_p (cgraph_node *node, void *)):
8863 created from cgraph_non_local_node_p_1
8864 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8865 created from verify_cgraph
8866 (static bool make_local (cgraph_node *node, void *)):
8867 created from cgraph_make_node_local
8868 (static cgraph_node *create_alias (tree alias, tree target)):
8869 created from cgraph_create_function_alias
8870 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8871 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8872 created from cgraph_create_edge_1
8873 * cgraph.h (varpool_node):
8874 (void remove (void)): created from varpool_remove_node
8875 (void dump (FILE *f)): created from dump_varpool_node
8877 2014-07-24 Richard Biener <rguenther@suse.de>
8880 * tree-ssa-structalias.c (create_variable_info_for_1):
8881 Use varpool_get_constructor.
8882 (create_variable_info_for): Likewise.
8884 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8886 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8887 subtract outgoing area size when restoring stack_pointer_rtx.
8889 2014-07-24 Nick Clifton <nickc@redhat.com>
8891 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8892 that operations are taking place in parallel.
8893 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8895 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8897 * omp-low.c (extract_omp_for_data): Add missing break statement.
8899 2014-07-24 Richard Biener <rguenther@suse.de>
8901 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8902 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8903 and adjust MOVE_RATIO query accordingly.
8904 (estimate_num_insns): Adjust callers.
8905 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8906 * ipa-cp.c (gather_context_independent_values,
8907 estimate_local_effects): Likewise.
8908 * ipa-split.c (consider_split): Likewise.
8910 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8912 * config/i386/driver-i386.c: Remove names of unused arguments and
8913 unnecessary unused attributes.
8914 * config/i386/host-mingw32.c: Likewise.
8915 * config/i386/i386.c: Likewise.
8916 * config/i386/winnt-stubs.c: Likewise.
8917 * config/i386/winnt.c: Likewise.
8919 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8921 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8922 (aarch64_gen_loadwb_pair): New helper function.
8923 (aarch64_expand_epilogue): Simplify code using new helper functions.
8924 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8926 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8928 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8929 (aarch64_gen_storewb_pair): New helper function.
8930 (aarch64_expand_prologue): Simplify code using new helper functions.
8931 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8935 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8936 Rename to aarch64_save_callee_saves, remove restore code.
8937 (aarch64_restore_callee_saves): New function.
8939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8941 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8942 (aarch64_save_callee_saves): New function to handle reg save
8943 for both core and vectore regs.
8945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8947 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8948 (aarch64_gen_store_pair): New helper function.
8949 (aarch64_save_or_restore_callee_save_registers)
8950 (aarch64_save_or_restore_fprs): Use new helper functions.
8952 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8954 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8955 (aarch64_save_or_restore_callee_save_registers)
8956 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8958 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8960 * config/aarch64/aarch64.c
8961 (aarch64_save_or_restore_callee_save_registers)
8962 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8964 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8966 * config/aarch64/aarch64.c
8967 (aarch64_save_or_restore_callee_save_registers)
8968 (aarch64_save_or_restore_fprs): Remove 'increment'.
8970 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8972 * config/aarch64/aarch64.c
8973 (aarch64_save_or_restore_callee_save_registers)
8974 (aarch64_save_or_restore_fprs): Use register offset in
8975 cfun->machine->frame.reg_offset.
8977 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8979 * config/aarch64/aarch64.c
8980 (aarch64_save_or_restore_callee_save_registers)
8981 (aarch64_save_or_restore_fprs): Remove base_rtx.
8983 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8985 * config/aarch64/aarch64.c
8986 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8987 to 'start_offset'. Remove local variable 'start_offset'.
8989 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8991 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8992 type to HOST_WIDE_INT.
8994 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8996 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8997 (aarch64_save_or_restore_fprs)
8998 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9000 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9002 * config/arm/t-rtems-eabi: Add
9003 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9004 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9005 mbig-endian/mthumb/march=armv7-r, and
9006 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9009 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9010 Chris Johns <chrisj@rtems.org>
9011 Joel Sherrill <joel.sherrill@oarcorp.com>
9013 * config.gcc: Add nios2-*-rtems*.
9014 * config/nios2/rtems.h: New file.
9015 * gcc/config/nios2/t-rtems: New file.
9017 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9020 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9021 constant numbers, not general constants.
9022 (rs6000_expand_vector_init): Ditto.
9024 2014-07-23 Nathan Sidwell <nathan@acm.org>
9026 * gcov-tool.c (gcov_list): Declare here.
9027 (set_gcov_list): Remove.
9028 (gcov_output_files): Set gcov_list directly.
9030 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9032 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9034 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9036 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9037 callee-saved registers are available for padding purpose
9038 and r3 is not mandatory, then prefer use those callee-saved
9041 2014-07-23 Richard Biener <rguenther@suse.de>
9043 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9044 * combine.c: Include statistics.h and params.h.
9045 (combine_instructions): Guard three and four insn combines
9046 with max-combine-insns value. Record statistics for combines
9048 * doc/invoke.texi (max-combine-insns): Document new param.
9050 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9052 * graphite-isl-ast-to-gimple.c:
9053 (translate_isl_ast_node_block): New function.
9054 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9056 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9057 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9059 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9061 * graphite-isl-ast-to-gimple.c:
9062 (get_max_schedule_dimensions): New function.
9063 (extend_schedule): Likewise.
9064 (generate_isl_schedule): Add calling of extend_schedule and
9065 get_max_schedule_dimensions.
9067 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9070 (case UNSPEC): Handle UNSPEC_RBIT.
9072 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9074 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9075 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9077 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9079 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9081 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9083 * graphite-isl-ast-to-gimple.c:
9084 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9086 (build_iv_mapping): New function.
9087 (translate_isl_ast_node_user): Likewise.
9088 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9090 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9091 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9092 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9094 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9097 * config/arm/arm.md (setmem): New pattern.
9098 * config/arm/arm-protos.h (struct tune_params): New fields.
9099 (arm_gen_setmem): New prototype.
9100 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9101 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9102 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9103 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9104 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9105 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9106 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9107 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9108 (arm_const_inline_cost): New function.
9109 (arm_block_set_max_insns): New function.
9110 (arm_block_set_non_vect_profit_p): New function.
9111 (arm_block_set_vect_profit_p): New function.
9112 (arm_block_set_unaligned_vect): New function.
9113 (arm_block_set_aligned_vect): New function.
9114 (arm_block_set_unaligned_non_vect): New function.
9115 (arm_block_set_aligned_non_vect): New function.
9116 (arm_block_set_vect, arm_gen_setmem): New functions.
9118 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9120 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9122 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9125 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9126 out of #ifdef __OPTIMIZE__.
9128 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9130 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9131 different trapping status if -fnon-call-exceptions is enabled.
9133 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9135 * expr.c (store_field): Handle VOIDmode for calls that return values
9136 in multiple locations.
9138 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9140 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9141 (altivec_vsldoi_<mode>): Likewise.
9143 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9145 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9146 to the number of characters in the line.
9148 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9150 * graphite-isl-ast-to-gimple.c: Add using of
9151 build_nonstandard_integer_type instead of int128_integer_type_node.
9153 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9155 * toplev.c (output_stack_usage): Adjust the location of the warning.
9157 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9159 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9160 (*membar_storeload): Disable for LEON3.
9162 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9164 PR rtl-optimization/61461
9165 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9167 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9170 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9171 Fix instruction constraint.
9172 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9174 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9176 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9178 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9180 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9181 GNU coding standards.
9182 (nds32_register_move_cost): Likewise.
9183 (nds32_memory_move_cost): Likewise.
9184 (nds32_address_cost): Likewise.
9186 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9188 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9190 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9192 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9193 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9194 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9195 (HAVE_sync_compare_and_swapqi): Define.
9196 (HAVE_sync_compare_and_swaphi): Likewise.
9197 (HAVE_sync_compare_and_swapsi): Likewise.
9199 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9201 * config/mips/p5600.md: Add missing cpu tests.
9203 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9205 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9206 (vmla_f64): Likewise.
9207 (vfms_f64): Likewise.
9208 (vmls_f64): Likewise.
9210 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9212 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9213 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9215 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9217 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9218 (vmlal_high_lane_s32): Likewise.
9219 (vmlal_high_lane_u16): Likewise.
9220 (vmlal_high_lane_u32): Likewise.
9221 (vmlsl_high_lane_s16): Likewise.
9222 (vmlsl_high_lane_s32): Likewise.
9223 (vmlsl_high_lane_u16): Likewise.
9224 (vmlsl_high_lane_u32): Likewise.
9226 2014-07-17 Terry Guo <terry.guo@arm.com>
9228 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9229 (alus_reg): Renamed to alus_sreg.
9230 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9231 from alu_reg to alu_sreg. Change type of dsp instructions from
9232 alu_reg to alu_dsp_reg.
9233 * config/arm/thumb1.md: Likewise.
9234 * config/arm/thumb2.md: Likewise.
9235 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9236 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9237 with alu_sreg and alus_sreg.
9238 * config/arm/arm1026ejs.md (alu_op): Likewise.
9239 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9240 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9241 * config/arm/fa526.md (526_alu_op): Likewise.
9242 * config/arm/fa606te.md (606te_alu_op): Likewise.
9243 * config/arm/fa626te.md (626te_alu_op): Likewise.
9244 * config/arm/fa726te.md (726te_alu_op): Likewise.
9245 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9246 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9247 alu_sreg, alu_dsp_reg and alus_sreg.
9248 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9249 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9250 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9251 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9252 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9253 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9254 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9255 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9256 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9257 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9258 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9259 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9260 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9261 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9262 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9263 alus_reg to alus_sreg.
9265 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9267 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9270 2014-07-17 Richard Biener <rguenther@suse.de>
9272 PR rtl-optimization/61801
9273 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9274 don't set reg_pending_barrier if it appears in a debug-insn.
9276 2014-07-16 DJ Delorie <dj@redhat.com>
9278 * config/rx/rx.c (rx_option_override): Fix alignment values.
9279 (rx_align_for_label): Likewise.
9281 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9284 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9285 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9286 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9288 (cris_print_index, cris_print_operand, cris_constant_index_p)
9289 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9290 (cris_address_cost): Ditto last CONSTANT_P.
9291 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9292 callers changed. Yield cris_offsettable_symbol for non-PIC
9293 constant symbolic expressions including labels. Yield cris_unspec
9295 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9296 target to pic_offset_table_rtx for calls that will likely go
9297 through PLT, const0_rtx when they can't. All callers changed.
9298 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9299 symbolic expressions to be PICified. Remove second, redundant,
9300 assert on can_create_pseudo_p returning non-zero. Use
9301 replace_equiv_address_nv, not replace_equiv_address, for final
9303 * config/cris/cris.md ("movsi"): Move variable t to pattern
9304 toplevel. Adjust assert for new cris_symbol_type member. Use
9305 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9306 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9308 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9309 ("call", "call_value"): Use second incoming operand as a marker
9310 for pic-offset-table-register being used.
9311 ("*expanded_call_non_v32", "*expanded_call_v32")
9312 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9313 second incoming operand to CALL, match cris_call_type_marker.
9314 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9315 ("*expanded_call_side"): Ditto. Fix typo in comment.
9316 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9318 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9319 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9320 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9321 users changed. Add members cris_offsettable_symbol and cris_unspec.
9322 (cris_symbol_type): Rename from cris_pic_symbol_type.
9323 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9325 * config/cris/cris-protos.h (cris_symbol_type_of,
9326 cris_expand_pic_call_address): Adjust prototypes.
9327 (cris_legitimate_constant_p): New prototype.
9329 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9330 an existing tmake_file. Don't add t-slibgcc and t-linux.
9332 2014-07-17 Jason Merrill <jason@redhat.com>
9335 * symtab.c (symtab_remove_from_same_comdat_group): Also
9336 set_comdat_group to NULL_TREE.
9337 (verify_symtab): Fix diagnostic.
9339 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9342 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9344 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9346 Support location tracking for built-in macro tokens
9347 * input.h (is_location_from_builtin_token): New function declaration.
9348 * input.c (is_location_from_builtin_token): New function definition.
9349 * toplev.c (general_init): Tell libcpp what the pre-defined
9350 spelling location for built-in tokens is.
9352 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9354 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9355 on the FUNCTION_DECL.
9357 2014-07-16 Richard Biener <rguenther@suse.de>
9360 * doc/extend.texi (always_inline): Clarify.
9362 2014-07-15 Eric Christopher <echristo@gmail.com>
9364 * doc/invoke.texi (Link Options): Document -z option.
9366 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9368 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9369 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9371 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9373 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9375 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9377 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9378 varpool_assemble_decl.
9379 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9382 2014-07-15 Michael Matz <matz@suse.de>
9384 PR rtl-optimization/61772
9385 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9387 2014-07-15 Richard Biener <rguenther@suse.de>
9389 * opts.c (default_options_table): Disable bit-ccp at -Og.
9391 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9393 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9395 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9397 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9398 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9399 call langhook for unknown declaration.
9400 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9401 * tree.h (DECL_ARGUMENTS): Update.
9402 * print-tree.c (print_node): Update.
9403 * tree-core.h (tree_decl_non_common): Remove arguments.
9404 (tree_function_decl): Add arguments.
9406 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9408 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9410 2014-07-14 Richard Biener <rguenther@suse.de>
9412 PR tree-optimization/61779
9413 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9414 simplifying a condition.
9416 2014-07-14 Richard Biener <rguenther@suse.de>
9418 * builtins.c (c_strlen): Make only_value == 2 really only
9419 affect warning generation.
9421 2014-07-14 Richard Biener <rguenther@suse.de>
9423 PR tree-optimization/61757
9424 PR tree-optimization/61783
9425 PR tree-optimization/61787
9426 * tree-ssa-dom.c (record_equality): Revert canonicalization
9427 change and add comment.
9428 (propagate_rhs_into_lhs): Revert previous fix, removing
9429 loop depth restriction again.
9431 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9433 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9434 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9435 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9436 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9437 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9438 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9439 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9441 2014-07-14 Richard Biener <rguenther@suse.de>
9443 * cgraph.h (decl_in_symtab_p): Make inline.
9445 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9448 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9451 * config/i386/i386.c (classify_argument): Don't merge classes above
9454 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9456 * cgraph.h (symtab_node): Add nonzero_address.
9457 (decl_in_symtab_p): Break out from ...
9458 (symtab_get_node): ... here.
9459 * fold-const.c: Include cgraph.h
9460 (tree_single_nonzero_warnv_p): Use symtab to determine
9461 if symbol is non-zero.
9462 * symtab.c (symtab_node::nonzero_address): New method.
9464 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9466 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9467 forgotten in previous commit.
9469 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9471 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9473 * ipa-devirt.c: Include stor-layout.h and intl.h
9474 (odr_subtypes_equivalent_p): New function.
9475 (warn_odr): New function.
9476 (warn_type_mismatch): New function.
9477 (odr_types_equivalent_p): New function.
9478 (add_type_duplicate): Use it.
9479 * common.opt (Wodr): New flag.
9480 * doc/invoke.texi (Wodr): Document new warning.
9482 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9484 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9485 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9486 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9487 (varpool_get_constructor): Push CTORS_IN timevar.
9488 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9490 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9492 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9493 Remove VOID_FTYPE_PUSHORT.
9494 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9495 Change code to USHORT_FTYPE_VOID.
9496 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9497 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9498 (ix86_atomic_assign_expand_fenv): Update for
9499 __builtin_ia32_fnstsw changes.
9500 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9501 (fnstsw): Change operand 0 to nonimmediate operand.
9503 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9505 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9506 (varpool_get_constructor): New function.
9507 (varpool_ctor_useable_for_folding_p): Break out from ...
9508 (ctor_for_folding): ... here; use varpool_get_constructor.
9509 (varpool_assemble_decl): Likewise.
9510 * lto-streamer.h (struct output_block): Turn cgraph_node
9512 (lto_input_variable_constructor): Declare.
9513 * ipa-visibility.c (function_and_variable_visibility): Use
9514 varpool_get_constructor.
9515 * cgraph.h (varpool_get_constructor): Declare.
9516 (varpool_ctor_useable_for_folding_p): New function.
9517 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9518 parameter; return error_mark_node for non-trivial constructors.
9519 (lto_write_tree_1, DFS_write_tree): Update use of
9520 get_symbol_initial_value.
9521 (output_function): Update initialization of symbol.
9522 (output_constructor): New function.
9523 (copy_function): Rename to ..
9524 (copy_function_or_variable): ... this one; handle vars too.
9525 (lto_output): Output variable sections.
9526 * lto-streamer-in.c (input_constructor): New function.
9527 (lto_read_body): Rename from ...
9528 (lto_read_body_or_constructor): ... this one; handle vars too.
9529 (lto_input_variable_constructor): New function.
9530 * ipa-prop.c (ipa_prop_write_jump_functions,
9531 ipa_prop_write_all_agg_replacement): Update.
9532 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9533 (output_cgraph_opt_summary): Set symbol to NULL.
9535 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9537 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9538 non-polymorphic types.
9539 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9540 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9541 of types is not polymorphic.
9543 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9545 * lra-constraints.c (remove_inheritance_pseudos): Process
9546 destination pseudo too.
9548 2014-07-11 Rong Xu <xur@google.com>
9550 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9553 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9555 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9556 * config/avr/avr-devices.c (AVR_MCU): Same.
9557 (avr_mcu_types): add text start value to end of device list.
9558 * config/avr/avr-mcus.def: Add text section start for all devices.
9559 (ata5782): Add new avr5 device.
9561 * config/avr/avr-tables.opt: Regenerate.
9562 * config/avr/avr.h: Add declaration for text section start handler.
9563 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9565 (LINK_SPEC): Include text section start handler to linker spec.
9566 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9567 pass -Ttext option to linker if the text section start for the device
9569 * config/avr/t-multilib: Regenerate.
9570 * doc/avr-mmcu.texi: Regenerate.
9572 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9574 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9575 * config/rs6000/aix52.h (LINK_SPEC): Same.
9576 * config/rs6000/aix53.h (LINK_SPEC): Same.
9577 * config/rs6000/aix61.h (LINK_SPEC): Same.
9578 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9580 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9582 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9583 (graphite_verify): New function.
9584 (ivs_params_clear): New function.
9585 (gcc_expression_from_isl_ast_expr_id): New function.
9586 (gcc_expression_from_isl_expr_int): New function.
9587 (binary_op_to_tree): New function.
9588 (ternary_op_to_tree): New function.
9589 (unary_op_to_tree): New function.
9590 (nary_op_to_tree): New function.
9591 (gcc_expression_from_isl_expr_op): New function.
9592 (gcc_expression_from_isl_expression): New function.
9593 (graphite_create_new_loop): New function.
9594 (translate_isl_ast_for_loop): New function.
9595 (get_upper_bound): New function.
9596 (graphite_create_new_loop_guard): New function.
9597 (translate_isl_ast_node_for): New function.
9598 (translate_isl_ast): New function.
9599 (add_parameters_to_ivs_params): New function.
9600 (scop_to_isl_ast): New parameter ip.
9601 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9603 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9605 * config/xtensa/predicates.md (call expander): Update for
9606 DECL_SECTION_NAME being string.
9608 2014-07-11 Richard Biener <rguenther@suse.de>
9611 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9612 can be implemented with a single load followed by a single store.
9613 (c_strlen): Only warn when only_value is not 2.
9615 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9617 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9619 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9622 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9623 (*movhi_bytes): Likewise.
9624 (*arm_movqi_insn): Likewise.
9626 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9629 * config/alpha/alpha.c: Include tree-pass.h, context.h
9631 (pass_data_handle_trap_shadows): New pass.
9632 (pass_handle_trap_shadows::gate): New pass gate function.
9633 (make_pass_handle_trap_shadows): New function.
9634 (rest_of_handle_trap_shadows): Ditto.
9636 (alpha_align_insns_1): Rename from alpha_align_insns.
9637 (pass_data_align_insns): New pass.
9638 (pass_align_insns::gate): New pass gate function.
9639 (make_pass_aling_insns): New function.
9640 (rest_of_align_insns): Ditto.
9641 (alpha_align_insns): Ditto.
9643 (alpha_option_override): Declare handle_trap_shadows info
9644 and align_insns_info. Register handle_trap_shadows and align_insns
9646 (alpha_reorg): Do not call alpha_trap_shadows and
9647 alpha_align_insn from here.
9649 (alpha_pad_function_end): Do not skip BARRIERs.
9651 2014-07-10 Rong Xu <xur@google.com>
9653 Add gcov-tool: an offline gcda profile processing tool support.
9654 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9655 (gcov_is_error): Ditto.
9656 (gcov_read_string): Ditto.
9657 (gcov_read_sync): Ditto.
9658 * gcov-io.h: Move counter defines to gcov-counter.def.
9659 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9660 * coverage.c: Ditto.
9661 * gcov-tool.c: Offline gcda profile processing tool.
9662 (unlink_gcda_file): Remove one gcda file.
9663 (unlink_profile_dir): Remove gcda files from the profile path.
9664 (gcov_output_files): Output gcda files to an output dir.
9665 (profile_merge): Merge two profiles in directory.
9666 (print_merge_usage_message): Print merge usage.
9667 (merge_usage): Print merge usage and exit.
9668 (do_merge): Driver for profile merge sub-command.
9669 (profile_rewrite): Rewrite profile.
9670 (print_rewrite_usage_message): Print rewrite usage.
9671 (rewrite_usage): Print rewrite usage and exit.
9672 (do_rewrite): Driver for profile rewrite sub-command.
9673 (print_usage): Print gcov-info usage and exit.
9674 (print_version): Print gcov-info version.
9675 (process_args): Process arguments.
9676 (main): Main routine for gcov-tool.
9677 * Makefile.in: Build and install gcov-tool.
9678 * gcov-counter.def: New file split from gcov-io.h.
9679 * doc/gcc.texi: Include gcov-tool.texi.
9680 * doc/gcov-tool.texi: Document for gcov-tool.
9682 2014-07-10 Richard Biener <rguenther@suse.de>
9684 PR tree-optimization/61757
9685 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9686 (propagate_rhs_into_lhs): Revert part of last change.
9688 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9690 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9693 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9696 * function.c (allocate_struct_function): Revert r188667 change.
9698 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9700 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9702 * doc/install.texi: Remove links to defunct package providers for
9705 2014-07-09 Tom de Vries <tom@codesourcery.com>
9707 * final.c (get_call_fndecl): Declare.
9708 (self_recursive_call_p): New function.
9709 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9711 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9713 * ipa-devirt.c (record_node): Walk through aliases.
9715 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9717 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9719 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9722 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9724 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9726 * ipa-visibility.c (function_and_variable_visibility): Remove
9727 temporary hack disabling local aliases on AIX.
9729 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9731 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9732 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9734 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9736 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9737 * rs6000/rs6000.c: Inline output of .set instruction.
9738 (declare_alias_data): New struct.
9739 (rs6000_declare_alias): New function.
9740 (rs6000_xcoff_declare_function_name): Use it.
9741 (rs6000_xcoff_declare_object_name): New function.
9742 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9743 (ASM_OUTPUT_DEF): Turn to empty definition.
9745 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9748 * hash-table.h: use hash_table::value_type instead of
9749 Descriptor::value_type in the return types of several methods.
9751 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9753 * tree-pass.h (pass_data): Remove has_execute member.
9754 * passes.c (execute_one_pass): Don't check pass->has_execute.
9755 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9756 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9757 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9758 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9759 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9760 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9761 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9762 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9763 gimple-low.c, gimple-ssa-isolate-paths.c,
9764 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9765 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9766 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9767 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9768 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9769 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9770 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9771 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9772 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9773 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9774 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9775 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9776 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9777 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9778 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9779 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9780 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9781 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9782 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9783 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9784 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9785 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9786 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9787 web.c: Remove initializer for pass_data::has_execute.
9789 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9791 * graphite-htab.h: Use hash_map instead of hash_table.
9792 * graphite-clast-to-gimple.c: Adjust.
9793 * passes.c: Use hash_map instead of hash_table.
9795 * sese.h: Remove now unused code.
9797 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9800 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9803 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9805 PR rtl-optimization/61673
9806 * combine.c (simplify_comparison): Test just mode's sign bit
9807 in tmode rather than the sign bit and any bits above it.
9809 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9811 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9812 Add __isl_give to the declaration.
9813 (generate_isl_schedule): Likewise.
9814 (scop_to_isl_ast): Likewise.
9816 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9818 * config/arm/arm.c (cortexa5_extra_costs): New table.
9819 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9821 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9823 PR tree-optimization/61725
9824 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9825 range, use range_includes_zerop_p instead of integer_zerop on
9826 vr0->min, only use log2 of max if min is not negative.
9828 2014-07-08 Richard Biener <rguenther@suse.de>
9830 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9831 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9832 restriction on loop depth difference.
9833 (record_equality): Likewise.
9834 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9835 (loop_depth_of_name): Remove.
9836 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9837 restriction on loop depth difference.
9838 (init_copy_prop): Likewise.
9840 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9842 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9844 (walk_aliased_vdefs): Likewise.
9845 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9846 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9847 (detect_type_change_from_memory_writes): Check if entry was reached.
9849 2014-07-08 Richard Biener <rguenther@suse.de>
9851 PR tree-optimization/61681
9852 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9853 NONLOCAL inside ESCAPED.
9855 2014-07-08 Richard Biener <rguenther@suse.de>
9857 PR tree-optimization/61680
9858 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9859 Handle properly all read-write dependences with group accesses.
9861 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9863 PR tree-optimization/61576
9864 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9865 block containing reduction statement is predecessor of phi basi block.
9867 2014-07-08 Marek Polacek <polacek@redhat.com>
9870 * fold-const.c (round_up_loc): Change the parameter type.
9872 * fold-const.h (round_up_loc): Adjust declaration.
9873 * stor-layout.c (finalize_record_size): Check for too large types.
9875 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9877 * symtab.c: Include calls.h.
9878 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9880 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9882 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9883 little-endian code generation.
9884 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9885 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9886 (spe_evmergehilo): Rename to...
9887 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9888 (spe_evmergelo): Rename to...
9889 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9890 (spe_evmergelohi): Rename to...
9891 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9892 (spe_evmergehi, spe_evmergehilo): New expanders.
9893 (spe_evmergelo, spe_evmergelohi): Likewise.
9894 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9895 (*frob_tf_ti): Likewise.
9896 (*frob_<mode>_di_2): Likewise.
9897 (*frob_tf_di_8_2): Likewise.
9898 (*frob_di_<mode>): Likewise.
9899 (*frob_ti_tf): Likewise.
9900 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9901 (*frob_ti_<mode>_8_2): Likewise.
9902 (*frob_ti_tf_2): Likewise.
9903 (mov_si<mode>_e500_subreg0): Rename to...
9904 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9906 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9907 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9908 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9909 the big endianness only.
9910 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9911 (*mov_si<mode>_e500_subreg0_2): Rename to...
9912 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9913 big big endianness only.
9914 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9915 (*mov_si<mode>_e500_subreg4): Rename to...
9916 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9918 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9919 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9920 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9921 the big endianness only.
9922 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9924 (*mov_si<mode>_e500_subreg4_2): Rename to...
9925 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9927 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9928 (*mov_sitf_e500_subreg8): Rename to...
9929 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9931 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9932 (*mov_sitf_e500_subreg8_2): Rename to...
9933 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9935 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9936 (*mov_sitf_e500_subreg12): Rename to...
9937 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9939 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9940 (*mov_sitf_e500_subreg12_2): Rename to...
9941 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9943 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9945 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9947 * asan.c (instrument_strlen_call): Do not instrument first byte
9948 in strlen if already instrumented.
9950 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9952 * config/arm/arm.opt (mwords-little-endian): Delete.
9953 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9954 of TARGET_LITTLE_WORDS.
9955 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9956 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9958 * doc/invoke.texi: Remove references to -mwords-little-endian.
9960 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9962 * expmed.c (struct init_expmed_rtl): Change all fields but
9963 pow2 and cint from struct rtx_def to rtx.
9964 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9965 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9968 2014-07-06 Marek Polacek <polacek@redhat.com>
9971 * doc/invoke.texi: Document -Wsizeof-array-argument.
9973 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9975 * wide-int.h (wide_int_storage): Change declaration from struct
9978 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9980 * cgraph.c (cgraph_create_indirect_edge): Update call of
9981 get_polymorphic_call_info.
9982 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9983 (possible_polymorphic_call_targets): Add parameter call.
9984 (decl_maybe_in_construction_p): New predicate.
9985 (get_polymorphic_call_info): Add parameter call;
9986 use decl_maybe_in_construction_p.
9987 * gimple-fold.c (fold_gimple_assign): Update use of
9988 possible_polymorphic_call_targets.
9989 (gimple_fold_call): Likewise.
9990 * ipa-prop.c: Inlcude calls.h
9991 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9992 (param_type_may_change_p): New predicate.
9993 (detect_type_change_from_memory_writes): Break out from ...
9994 (detect_type_change): ... this one; use param_type_may_change_p.
9995 (detect_type_change_ssa): Use param_type_may_change_p.
9996 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9998 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10001 * config/arm/arm-protos.h (arm_legitimate_address_p,
10002 arm_is_constant_pool_ref): Add prototypes.
10003 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10004 (arm_is_constant_pool_ref) New function.
10005 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10006 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10007 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10008 operand. Remove pool_range and neg_pool_range attributes.
10009 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10010 pool_range and neg_pool_range attributes.
10011 * config/arm/constraints.md (Uh): New constraint.
10012 (Uq): Don't allow constant pool references.
10014 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10016 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10017 (move_lo_quad_internal_be_<mode>): Likewise.
10018 (move_lo_quad_<mode>): Convert to define_expand.
10019 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10020 (aarch64_simd_move_hi_quad_be_<mode>): New.
10021 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10022 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10023 (aarch64_combinez_be<mode>): New.
10024 (aarch64_combine<mode>): Convert to define_expand.
10025 (aarch64_combine_internal<mode>): New.
10026 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10028 2014-07-04 Tom de Vries <tom@codesourcery.com>
10030 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10031 combination of earlyclobber and read/write modifiers.
10033 2014-07-04 Tom de Vries <tom@codesourcery.com>
10035 * config/aarch64/aarch64-simd.md
10036 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10038 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10041 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10043 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10045 PR middle-end/61654
10046 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10048 PR tree-optimization/61684
10049 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10050 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10052 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10053 Kito Cheng <kito@0xlab.org>
10054 Monk Chiang <sh.chiang04@gmail.com>
10056 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10057 (nds32_symbol_load_store_p): Move to ...
10058 (nds32_fp_as_gp_check_available): Move to ...
10059 * config/nds32/nds32-fp-as-gp.c: ... here.
10060 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10061 extern declaration.
10063 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10064 Kito Cheng <kito@0xlab.org>
10065 Monk Chiang <sh.chiang04@gmail.com>
10067 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10068 (nds32_expand_store_multiple): Move to ...
10069 (nds32_expand_movmemqi): Move to ...
10070 * config/nds32/nds32-memory-manipulation.c: ... here.
10072 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10073 Kito Cheng <kito@0xlab.org>
10074 Monk Chiang <sh.chiang04@gmail.com>
10076 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10077 (nds32_output_casesi_pc_relative): Move to ...
10078 (nds32_output_casesi): Move to ...
10079 (nds32_mem_format): Move to ...
10080 (nds32_output_16bit_store): Move to ...
10081 (nds32_output_16bit_load): Move to ...
10082 (nds32_output_32bit_store): Move to ...
10083 (nds32_output_32bit_load): Move to ...
10084 (nds32_output_32bit_load_s): Move to ...
10085 (nds32_output_stack_push): Move to ...
10086 (nds32_output_stack_pop): Move to ...
10087 * config/nds32/nds32-md-auxiliary.c: ... here.
10089 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10090 Ling-Hua Tseng <uranus@tinlans.org>
10092 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10093 the purpose of this file.
10095 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10096 Kito Cheng <kito@0xlab.org>
10097 Monk Chiang <sh.chiang04@gmail.com>
10099 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10100 (nds32_address_cost): Move implementation to ...
10101 * config/nds32/nds32-cost.c: ... here.
10102 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10103 (nds32_address_cost_impl): Declare.
10105 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10106 Kito Cheng <kito@0xlab.org>
10107 Monk Chiang <sh.chiang04@gmail.com>
10109 * config/nds32/nds32.c
10110 (nds32_consecutive_registers_load_store_p): Move to ...
10111 (nds32_valid_multiple_load_store): Move to ...
10112 (nds32_valid_stack_push_pop): Move to ...
10113 (nds32_can_use_bclr_p): Move to ...
10114 (nds32_can_use_bset_p): Move to ...
10115 (nds32_can_use_btgl_p): Move to ...
10116 (nds32_can_use_bitci_p): Move to ...
10117 * config/nds32/nds32-predicates.c: ... here.
10119 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10120 Kito Cheng <kito@0xlab.org>
10121 Monk Chiang <sh.chiang04@gmail.com>
10123 * config/nds32/nds32.c
10124 (nds32_expand_builtin_null_ftype_reg): Move to ...
10125 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10126 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10127 (nds32_init_builtins): Move implementation to ...
10128 (nds32_expand_builtin): Move implementation to ...
10129 * config/nds32/nds32-intrinsic.c: ... here.
10130 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10131 (nds32_expand_builtin_impl): Declare.
10133 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10134 Kito Cheng <kito@0xlab.org>
10135 Monk Chiang <sh.chiang04@gmail.com>
10137 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10138 (nds32_emit_section_tail_template): Move to ...
10139 (nds32_emit_isr_jmptbl_section): Move to ...
10140 (nds32_emit_isr_vector_section): Move to ...
10141 (nds32_emit_isr_reset_conten): Move to ...
10142 (nds32_check_isr_attrs_conflict): Move to ...
10143 (nds32_construct_isr_vectors_information): Move to ...
10144 (nds32_asm_file_start): Move implementation to ...
10145 (nds32_asm_file_end): Move implementation to ...
10146 * config/nds32/nds32-isr.c: ... here.
10147 * config/nds32/nds32-protos.h
10148 (nds32_check_isr_attrs_conflict): Declare.
10149 (nds32_construct_isr_vectors_information): Declare.
10150 (nds32_asm_file_start_for_isr): Declare.
10151 (nds32_asm_file_end_for_isr): Declare.
10153 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10154 Kito Cheng <kito@0xlab.org>
10155 Monk Chiang <sh.chiang04@gmail.com>
10157 * config.gcc (nds32*): Add new modules to extra_objs.
10158 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10159 (nds32be-*-*): Likewise.
10160 * config/nds32/nds32-cost.c: New file.
10161 * config/nds32/nds32-fp-as-gp.c: New file.
10162 * config/nds32/nds32-intrinsic.c: New file.
10163 * config/nds32/nds32-isr.c: New file.
10164 * config/nds32/nds32-md-auxiliary.c: New file.
10165 * config/nds32/nds32-memory-manipulation.c: New file.
10166 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10167 * config/nds32/nds32-predicates.c: New file.
10168 * config/nds32/t-nds32: New file.
10170 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10172 PR tree-optimization/61682
10173 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10174 using cases and when one of the operands is equal to 1.
10176 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10178 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10179 ashr<mode>3): Correct mode of operands[2].
10180 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10181 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10182 Correct mode of operands[2]. Fix split condition.
10184 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10186 * arm.md (arch): Add armv6_or_vfpv3.
10187 (arch_enabled): Add test for the above.
10188 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10190 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10192 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10194 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10195 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10196 HWI 1 and negate the unsigned value.
10197 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10198 use AND instead of shift.
10199 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10201 2014-07-03 Marek Polacek <polacek@redhat.com>
10203 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10204 (-fsanitize=float-divide-by-zero): Move to the table with
10205 -fsanitize=undefined suboptions.
10206 (-fsanitize=float-cast-overflow): Likewise.
10208 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10210 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10211 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10214 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10216 * loop-invariant.c (struct invariant): Add a new member: eqno;
10217 (find_identical_invariants): Update eqno;
10218 (create_new_invariant): Init eqno;
10219 (get_inv_cost): Compute comp_cost with eqno;
10221 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10223 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10224 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10225 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10226 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10227 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10229 2014-07-02 Christian Bruel <christian.bruel@st.com>
10233 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10234 (make_preds_opaque): Delete.
10235 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10236 (commit_mode_sets): New function.
10237 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10238 Process all modes at once.
10239 * basic-block.h (pre_edge_lcm_avs): Declare.
10240 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10241 Call clear_aux_for_edges. Fix comments.
10242 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10243 (pre_edge_rev_lcm): Idem.
10244 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10246 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10247 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10249 * config/i386/i386.c (x96_emit_mode_set): Idem.
10250 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10251 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10252 (fpscr_toggle) Disallow from delay slot.
10253 * target.def (emit_mode_set): Add prev_mode parameter.
10254 * doc/tm.texi: Regenerate.
10256 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10258 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10261 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10263 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10264 vtable_pointer_value_to_vtable): Constify.
10265 (contains_polymorphic_type_p): Declare.
10266 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10267 vtable_pointer_value_to_vtable): Constify.
10268 (contains_polymorphic_type_p): New predicate.
10269 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10271 (ipa_set_ancestor_jf): Likewise.
10272 (detect_type_change): Return false in easy cases.
10273 (compute_complex_assign_jump_func): Require type to contain
10275 (compute_known_type_jump_func): Likewise.
10277 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10279 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10281 (type_in_anonymous_namespace_p): Constify argument.
10282 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10283 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10284 (main_odr_variant): New function.
10285 (hash_type_name): Make static; update assert; do not ICE on
10287 (types_same_for_odr): Bring here from tree.c; simplify and remove
10288 old structural comparing code that doesn't work for templates.
10289 (odr_hasher::equal): Update assert.
10290 (add_type_duplicate): Return true when bases should be computed;
10291 replace incomplete loader by complete; do not output duplicated
10292 warnings; do not ICE on non-records; set odr_violated flag.
10293 (get_odr_type): Be ready to replace incomplete type by complete
10294 one; work on ODR variants instead of main variants; reorder item
10295 in array so bases have still smaller indexes.
10296 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10297 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10299 2014-07-01 Cary Coutant <ccoutant@google.com>
10301 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10303 (resolve_addr_in_expr): When replacing the rtx in a location list
10304 entry, get a new address table entry.
10305 (dwarf2out_finish): Call index_location_lists even if there are no
10306 addr_index_table entries yet.
10308 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10310 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10311 change for not being obvious.
10313 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10315 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10318 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10320 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10321 (vcagt_f64): Likewise.
10322 (vcale_f64): Likewise.
10323 (vcaled_f64): Likewise.
10324 (vcales_f32): Likewise.
10325 (vcalt_f64): Likewise.
10326 (vcaltd_f64): Likewise.
10327 (vcalts_f32): Likewise.
10329 2014-07-01 Marek Polacek <polacek@redhat.com>
10331 * doc/invoke.texi: Document -Wint-conversion.
10333 2014-07-01 Marek Polacek <polacek@redhat.com>
10336 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10338 2014-07-01 Martin Liska <mliska@suse.cz>
10340 IPA REF alias refactoring
10341 * cgraph.h (iterate_direct_aliases): New function.
10342 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10343 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10344 FOR_EACH_ALIAS added.
10345 (cgraph_for_node_and_aliases): Likewise.
10346 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10347 * ipa-inline.c (reset_edge_caches): Likewise.
10348 (update_caller_keys): Likewise.
10349 * trans-mem.c (ipa_tm_execute): Likewise.
10350 *varpool.c (varpool_analyze_node): Likewise.
10351 (varpool_for_node_and_aliases): Likewise.
10352 * ipa-ref.h (first_alias): New function.
10353 (last_alias): Likewise.
10354 (has_aliases_p): Likewise.
10355 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10356 is sensitive to IPA_REF_ALIASes.
10357 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10358 are put at the beginning of the list.
10359 (symtab_node::iterate_direct_aliases): New function.
10361 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10364 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10366 (write_ts_type_common_tree_pointers): Do not stream fields not set
10367 for incomplete types; do not stream duplicated fields for variants;
10368 sanity check that variant and type match.
10369 (write_ts_type_non_common_tree_pointers): Likewise.
10370 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10371 TYPE_SIZE whether type is complete.
10372 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10373 write_ts_type_common_tree_pointers
10374 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10376 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10378 * var-tracking.c (add_stores): Return instead of asserting if old
10379 and new values for conditional store are the same.
10381 2014-06-30 Richard Henderson <rth@redhat.com>
10385 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10386 the cfg if there were any changes.
10387 * passes.def: Revert move of peephole2 after reorder_blocks;
10388 move duplicate_computed_gotos before peephole2.
10390 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10392 * except.c (emit_note_eh_region_end): New helper function.
10393 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10394 emit EH_REGION_END note.
10395 * jump.c (cleanup_barriers): Do not split a call and its
10396 corresponding CALL_ARG_LOCATION note.
10398 2014-06-30 Jeff Law <law@redhat.com>
10400 PR tree-optimization/61607
10401 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10402 deeper into the SSA_NAME_VALUE chain.
10404 2014-06-30 Marek Polacek <polacek@redhat.com>
10406 * convert.c (convert_to_integer): Don't instrument conversions if the
10407 function has no_sanitize_undefined attribute.
10408 * ubsan.c: Don't run the ubsan pass if the function has
10409 no_sanitize_undefined attribute.
10411 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10413 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10414 -fsanitize=undefined suboptions.
10416 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10418 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10419 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10420 against bigendian and adjust indices.
10422 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10424 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10426 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10429 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10430 Add alternative; make early clobber. Adjust both split patterns
10431 to use operand 0 as the working register.
10433 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10435 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10436 as ira_object_id_map might be NULL, or 1.
10438 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10440 * loop-invariant.c (get_inv_cost): Handle register class.
10441 (gain_for_invariant): Check the register pressure of the inv
10442 and its overlapped register class, other than all.
10444 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10446 * doc/invoke.texi (Optimize Options): Fix descriptions of
10447 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10449 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10451 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10454 2014-06-29 Tobias Grosser <tobias@grosser.es>
10457 * graphite-isl-ast-to-gimple.c: Add missing guards.
10459 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10461 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10462 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10463 * flag-types.h: Add new enum fgraphite_generator.
10464 * graphite-isl-ast-to-gimple.c: New.
10465 * graphite-isl-ast-to-gimple.h: New.
10466 * graphite.c (graphite_transform_loops): Add choice of Graphite
10467 code generator, which depends on flag_graphite_code_gen.
10469 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10471 * graphite-dependences.c (subtract_commutative_associative_deps):
10472 Add NULL checking of the following variables: must_raw_no_source,
10473 may_raw_no_source, must_war_no_source, may_war_no_source,
10474 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10475 must_war, may_war, must_waw, may_waw.
10477 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10479 * graphite-clast-to-gimple.c: gloog is renamed to
10480 graphite_regenerate_ast_cloog. gloog_error is renamed to
10481 graphite_regenerate_error.
10482 * graphite-clast-to-gimple.h: The definition of the struct
10483 bb_pbb_def is moved to graphite-htab.h.
10484 Add inclusion of the hash-table.h.
10485 * graphite-htab.h: The declaration of the function gloog is moved
10486 to graphite-clast-to-gimple.h and renamed to
10487 graphite_regenerate_ast_cloog.
10488 * graphite.c (graphite_transform_loops): gloog is renamed
10489 to graphite_regenerate_ast_cloog.
10491 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10493 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10495 (write_ts_type_common_tree_pointers): Do not stream fields not set
10496 for incomplete types; do not stream duplicated fields for variants;
10497 sanity check that variant and type match.
10498 (write_ts_type_non_common_tree_pointers): Likewise.
10499 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10500 TYPE_SIZE whether type is complete.
10501 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10502 write_ts_type_common_tree_pointers
10503 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10505 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10507 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10509 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10511 * tree-inline.c (remap_type_1): Do not duplicate fields
10512 that are shared in between type and its main variant.
10514 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10516 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10518 (ipa_set_ancestor_jf) Likewise.
10519 (check_stmt_for_type_change): Check that we work on main variant.
10520 (detect_type_change): Look into main variant.
10521 (compute_known_type_jump_func): Check that main variant has BINFO.
10523 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10525 * ipa-devirt.c (set_type_binfo): New function.
10526 (add_type_duplicate): Use it.
10527 (get_odr_type): Sanity check that binfos points to main variants.
10528 (get_class_context): Be sure the context's outer_type is main variant.
10529 (contains_type_p): Walk main variant.
10530 (get_polymorphic_call_info_for_decl): Set outer_type to be
10532 (get_polymorphic_call_info): Likewise.
10533 (possible_polymorphic_call_targets): Sanity check that we operate
10536 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10538 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10540 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10542 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10543 accidental change due to wide-int branch merge.
10545 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10547 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10548 compressed debug support.
10549 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10550 * configure: Regenerate.
10551 * config.in: Regenerate.
10552 * common.opt (compressed_debug_sections): New enum.
10553 (gz, gz=): New options.
10554 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10555 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10556 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10557 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10558 LINK_COMPRESS_DEBUG_SPEC.
10559 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10560 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10561 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10562 (Debugging Options): Document -gz[=type].
10564 2014-06-27 Martin Jambor <mjambor@suse.cz>
10567 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10568 args_to_skip, use those from node instead. Copy args_to_skip and
10569 combined_args_to_skip from node to the new thunk.
10570 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10571 (cgraph_create_virtual_clone): Moved computation of
10572 combined_args_to_skip...
10573 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10575 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10577 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10578 redundant diagnostic machinary.
10580 2014-06-27 Richard Biener <rguenther@suse.de>
10582 * tree-ssa-math-opts.c (bswap_replace): Fix
10583 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10585 2014-06-27 Martin Liska <mliska@suse.cz>
10587 * gimple.h (gimple_location_safe): New function introduced.
10588 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10589 of gimple_location_safe replaces gimple_location.
10590 (gimple_fold_call): Likewise.
10591 * ipa-devirt.c (ipa_devirt): Likewise.
10592 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10593 * ipa.c (walk_polymorphic_call_targets): Likewise.
10594 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10596 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10598 PR tree-optimization/57233
10599 PR tree-optimization/61299
10600 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10602 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10603 would be lowered to scalar shifts, check if corresponding
10604 shifts and vector BIT_IOR_EXPR are supported and don't lower
10605 or lower just to narrower vector type in that case.
10606 * expmed.c (expand_shift_1): Fix up handling of vector
10607 shifts and rotates.
10609 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10612 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10614 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10616 * doc/invoke.texi (-fsemantic-interposition): Document.
10617 * common.opt (fsemantic-interposition): New flag.
10618 * varasm.c (decl_replaceable_p): Use it.
10620 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10623 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10624 extraction other than index 3.
10626 2014-06-26 Teresa Johnson <tejohnson@google.com>
10628 * doc/invoke.texi: Fix typo.
10629 * dumpfile.c: Add support for documented -fdump-* options
10630 optimized/missed/note/optall.
10632 2014-06-26 Martin Jambor <mjambor@suse.cz>
10634 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10635 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10636 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10637 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10638 * opts.c (default_options_optimization): Set
10639 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10640 * doc/invoke.texi (allow-load-data-races)
10641 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10642 (allow-store-data-races): Document the new default.
10644 2014-06-26 Martin Jambor <mjambor@suse.cz>
10646 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10647 renamed to ipa_impossible_devirt_target. Fix typo.
10648 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10649 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10650 ipa_impossible_devirt_target.
10652 2014-06-26 Richard Biener <rguenther@suse.de>
10654 PR tree-optimization/61607
10655 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10656 explaining why we restrict copies on loop depth.
10657 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10659 (record_equivalences_from_phis): Instead add it here.
10661 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10663 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10664 (LTO_WRAPPER_OBJS): New variable.
10665 (lto-wrapper$(exeext)): Use it.
10666 * collect2.c: Include "collect-utils.h".
10667 (verbose, debug): Remove variables.
10668 (at_file_supplied): No longer static.
10669 (tool_name): New variable.
10670 (do_wait, fork_execute, maybe_unlink): Don't declare.
10671 (tool_cleanup): No longer static.
10672 (notice): Remove function.
10673 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10674 fork_execute calls.
10675 (collect_wait, do_wait, collect_execute): Remove functions.
10676 (maybe_unlink): No longer static.
10677 * collect2.h (verbose, debug): Don't declare.
10678 (at_file_supplied): Declare.
10679 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10681 (collect_execute): Replace with implementation from collect2, plus a
10682 new arg use_atfile. All callers changed.
10683 (collect_wait): Replace with implementation from collect2.
10684 (maybe_unlink_file): Remove function.
10685 (fork_execute): Replace with implementation from collect2, plus a
10686 new arg use_atfile. All callers changed.
10687 (do_wait): Add call to utils_cleanup to the error path.
10688 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10689 (tool_cleanup): Adjust declarations.
10690 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10691 * tlink.c: Include "collect-utils.h".
10692 (tlink_execute): New arg use_atfile. All callers changed.
10693 (tlink_init, tlink_execute): Remove declarations.
10695 * collect-utils.c (save_temps): New variable.
10696 (do_wait): Use it instead of debug. Use fatal_error.
10697 * collect-utils.h (save_temps): Declare.
10698 * collect2.c (verbose): Rename from vflag. All uses changed.
10699 (tool_cleanup): New function, copied from collect_atexit.
10700 (collect_atexit, handler): Just call it.
10701 * collect2.h (verbose): Declaration renamed from vflag.
10702 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10705 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10706 (lto-wrapper$(exeext)): Link with collect-utils.o.
10707 * collect-utils.c: New file.
10708 * collect-utils.h: New file.
10709 * lto-wrapper.c: Include "collect-utils.h".
10710 (args_name): Delete variable.
10711 (tool_name): New variable.
10712 (tool_cleanup): New function.
10713 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10714 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10715 (fork_execute): Remove functions.
10717 2014-06-26 Nick Clifton <nickc@redhat.com>
10719 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10721 * doc/extend.texi (Function Attributes): Fix typo in description
10722 of RX vector attribute.
10724 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10726 * config.gcc (supported_defaults): Error when passing either
10727 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10729 2014-06-26 Richard Biener <rguenther@suse.de>
10731 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10732 propagating volatile pointers.
10734 2014-06-26 Richard Biener <rguenther@suse.de>
10736 PR tree-optimization/61607
10737 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10738 loop if we redirected its latch edge.
10739 (thread_block_1): Do not cancel loops prematurely.
10741 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10743 * toplev.c (backend_init_target): Move init_emit_regs and
10745 (backend_init) ... here; skip ira_init_once and backend_init_target.
10746 (target_reinit) ... and here; clear
10747 this_target_rtl->lang_dependent_initialized.
10748 (lang_dependent_init_target): Clear
10749 this_target_rtl->lang_dependent_initialized;
10750 break out rtl initialization to ...
10751 (initialize_rtl): ... here; call also backend_init_target
10753 * toplev.h (initialize_rtl): New function.
10754 * function.c: Include toplev.h
10755 (init_function_start): Call initialize_rtl.
10756 * rtl.h (target_rtl): Add target_specific_initialized,
10757 lang_dependent_initialized.
10759 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10760 Jakub Jelinek <jakub@redhat.com>
10762 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10764 2014-06-25 Tom de Vries <tom@codesourcery.com>
10766 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10768 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10770 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10771 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10772 Issue a strict overflow warning if appropriate.
10774 2014-06-25 Martin Liska <mliska@suse.cz>
10776 IPA REF refactoring
10777 * Makefile.in: Removed header file (ipa-ref-inline.h).
10778 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10780 (cgraph_speculative_call_info): Likewise.
10781 (cgraph_for_node_thunks_and_aliases): Likewise.
10782 (cgraph_for_node_and_aliases): Likewise.
10783 (verify_cgraph_node): Likewise.
10784 * cgraph.h: Batch of IPA REF functions become member functions of
10785 symtab_node: add_reference, maybe_add_reference, clone_references,
10786 clone_referring, clone_reference, find_reference,
10787 remove_stmt_references, remove_all_references,
10788 remove_all_referring, dump_references, dump_referring,
10789 has_alias_p, iterate_reference, iterate_referring.
10790 * cgraphbuild.c (record_reference): New IPA REF function used.
10791 (record_type_list): Likewise.
10792 (record_eh_tables): Likewise.
10793 (mark_address): Likewise.
10794 (mark_load): Likewise.
10795 (mark_store): Likewise.
10796 (pass_build_cgraph_edges): Likewise.
10797 (rebuild_cgraph_edge): Likewise.
10798 (cgraph_rebuild_references): Likewise.
10799 (pass_remove_cgraph_callee_edges): Likewise.
10800 * cgraphclones.c (cgraph_clone_node): Likewise.
10801 (cgraph_create_virtual_clone): Likewise.
10802 (cgraph_materialize_clone): Likewise.
10803 (cgraph_materialize_all_clones): Likewise.
10804 * cgraphunit.c (cgraph_reset_node): Likewise.
10805 (cgraph_reset_node): Likewise.
10806 (analyze_function): Likewise.
10807 (assemble_thunks_and_aliases): Likewise.
10808 (expand_function): Likewise.
10809 * ipa-comdats.c (propagate_comdat_group): Likewise.
10810 (enqueue_references): Likewise.
10811 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10812 (create_specialized_node): Likewise.
10813 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10814 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10815 * ipa-inline.c (reset_edge_caches): Likewise.
10816 (update_caller_keys): Likewise.
10817 (execute): Likewise.
10818 * ipa-prop.c (remove_described_reference): Likewise.
10819 (propagate_controlled_uses): Likewise.
10820 (ipa_edge_duplication_hook): Likewise.
10821 (ipa_modify_call_arguments): Likewise.
10822 * ipa-pure-const.c (propagate_pure_const): Likewise.
10823 * ipa-ref-inline.h: Header file removed, functions moved
10824 to symtab_node class.
10825 * ipa-ref.c (remove_reference): New class member function.
10826 (cannot_lead_to_return): New class member function.
10827 (referring_ref_list): Likewise.
10828 (referred_ref_list): Likewise.
10829 Rest of functions moved to symtab_node class.
10830 * ipa-ref.h: New member functions remove_reference,
10831 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10833 ipa_ref_list class has new member functions: first_reference,
10834 first_referring, clear, nreferences.
10835 * ipa-reference.c (analyze_function): New IPA REF function used.
10836 (write_node_summary_p): Likewise.
10837 (ipa_reference_write_optimization_summary): Likewise.
10838 * ipa-split.c (split_function): Likewise.
10839 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10840 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10841 (function_and_variable_visibility): Likewise.
10842 * ipa.c (has_addr_references_p): Likewise.
10843 (process_references): Argument type changed.
10844 (symtab_remove_unreachable_nodes): New IPA REF function used.
10845 (process_references): Likewise.
10846 (set_writeonly_bit): Likewise.
10847 * lto-cgraph.c: Implementation of new symtab_node member functions
10848 that uses new IPA REF functions.
10849 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10851 * lto-streamer-out.c (output_symbol_p): Likewise.
10852 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10854 * symtab.c: Implementation of new IPA REF API.
10855 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10856 (ipa_tm_create_version): Likewise.
10857 (ipa_tm_execute): Likewise.
10858 * tree-emutls.c (gen_emutls_addr): Likewise.
10859 * tree-inline.c (copy_bb): Likewise.
10860 (delete_unreachable_blocks_update_callgraph): Likewise.
10861 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10862 (varpool_for_node_and_aliases): Likewise.
10864 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10866 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10868 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10871 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10872 tree_node * instead of tree_node *.
10874 (print_fold_checksum): Likewise.
10875 (fold_check_failed): Likewise.
10876 (debug_fold_checksum): Likewise.
10877 (fold_build1_stat_loc): Likewise.
10878 (fold_build2_stat_loc): Likewise.
10879 (fold_build3_stat_loc): Likewise.
10880 (fold_build_call_array_loc): Likewise.
10882 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10884 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10885 implementation with call to...
10886 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10888 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10891 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10893 PR tree-optimization/57742
10894 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10895 after replacing the statement.
10897 2014-06-25 Nick Clifton <nickc@redhat.com>
10899 * config/v850/v850.c (GHS_default_section_names): Change to const
10901 (GHS_current_section_names): Likewise.
10902 (v850_insert_attributes): Do not build strings, just assign the
10903 names directly. Change the type of 'chosen_section' to const
10905 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10906 directly to the array entry.
10907 * config/v850/v850.h (GHS_default_section_names): Change to const
10909 (GHS_current_section_names): Likewise.
10911 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10913 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10914 (LANG_HOOKS_DECLS): Add it.
10915 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10917 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10918 * langhooks.h (struct lang_hooks_for_decls): Add
10919 omp_clause_linear_ctor hook.
10920 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10921 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10922 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10923 combined simd loop use omp_clause_linear_ctor hook.
10925 2014-06-24 Cong Hou <congh@google.com>
10927 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10928 pattern recognition.
10929 (type_conversion_p): PROMOTION is true if it's a type promotion
10930 conversion, and false otherwise. Return true if the given expression
10931 is a type conversion one.
10932 * tree-vectorizer.h: Adjust the number of patterns.
10933 * tree.def: Add SAD_EXPR.
10934 * optabs.def: Add sad_optab.
10935 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10936 * expr.c (expand_expr_real_2): Likewise.
10937 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10938 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10939 * optabs.c (optab_for_tree_code): Likewise.
10940 * tree-cfg.c (estimate_operator_cost): Likewise.
10941 * tree-ssa-operands.c (get_expr_operands): Likewise.
10942 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10943 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10944 * doc/generic.texi: Add document for SAD_EXPR.
10945 * doc/md.texi: Add document for ssad and usad.
10947 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10949 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10950 qualification in cast.
10952 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10954 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10955 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10956 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10957 (tree_function_decl): ... here.
10958 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10959 streaming of vindex to ...
10960 (write_ts_function_decl_tree_pointers): ... here.
10961 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10962 Do not stream DECL_VINDEX.
10963 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10965 2014-06-24 Catherine Moore <clm@codesourcery.com>
10966 Sandra Loosemore <sandra@codesourcery.com>
10968 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10969 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10970 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10972 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10974 * doc/invoke.texi (Warning Options): Remove duplicated
10975 -Wmaybe-uninitialized.
10977 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10979 PR tree-optimization/57742
10980 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10981 (handle_builtin_malloc, handle_builtin_memset): New functions.
10982 (strlen_optimize_stmt): Call them.
10983 * passes.def: Move strlen after loop+dom but before vrp.
10985 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10988 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10989 model family 6 CPU with has_longmode never use a CPU without
10992 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10995 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10998 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11000 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11001 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11003 * hash-map.h: New file.
11004 * ipa-comdats.c: Use hash_map instead of pointer_map.
11006 * lto-section-out.c: Adjust.
11007 * lto-streamer.h: Replace pointer_map with hash_map.
11008 * symtab.c (verify_symtab): Likewise.
11009 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11010 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11011 * tree-streamer.h: Likewise.
11012 * tree-streamer.c: Adjust.
11013 * pointer-set.h: Remove pointer_map.
11015 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11017 * hash-table.h: Add a template arg to choose between storing values
11018 and storing pointers to values, and then provide partial
11019 specializations for both.
11020 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11021 should store, not the type values should point to.
11022 * tree-into-ssa.c (var_info_hasher): Likewise.
11023 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11024 * tree-complex.c: Adjust.
11025 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11026 table instead of int_tree_map *.
11027 * tree-parloops.c: Adjust.
11028 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11029 type is being stored.
11030 * tree-vectorizer.c: Adjust.
11032 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11034 * hash-table.h: Remove a layer of indirection from hash_table so that
11035 it contains the hash table's data instead of a pointer to the data.
11036 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11037 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11038 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11039 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11040 fold-const.c, gcse.c, ggc-common.c,
11041 gimple-ssa-strength-reduction.c, gimplify.c,
11042 graphite-clast-to-gimple.c, graphite-dependences.c,
11043 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11044 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11045 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11046 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11047 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11048 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11049 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11050 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11051 tree-ssa-live.c, tree-ssa-loop-im.c,
11052 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11053 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11054 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11055 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11056 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11057 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11058 vtable-verify.c, vtable-verify.h: Adjust.
11060 2014-06-24 Richard Biener <rguenther@suse.de>
11062 PR tree-optimization/61572
11063 * tree-ssa-sink.c (statement_sink_location): Do not sink
11064 loads from hard registers.
11066 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11068 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11069 not mentioned in clauses use private clause if the iterator is
11070 declared in #pragma omp for simd, and when adding lastprivate
11071 instead, add it to the outer #pragma omp for too. Diagnose
11072 if the variable is private in outer context. For simd collapse > 1
11073 loops, replace all iterators with temporaries.
11074 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11075 same even in collapse > 1 loops.
11077 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11078 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11080 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11081 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11083 (gimplify_adjust_omp_clauses): Likewise.
11084 * omp-low.c (lower_rec_simd_input_clauses,
11085 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11086 safelen the same as safelen(1).
11087 * tree-nested.c (convert_nonlocal_omp_clauses,
11088 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11089 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11090 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11091 Fixup handling of GIMPLE_OMP_TARGET.
11092 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11095 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11097 PR tree-optimization/61554
11098 * tree-ssa-propagate.c: Include "bitmap.h".
11099 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11100 properly update constructor/destructor.
11101 (substitute_and_fold_dom_walker::before_dom_children):
11102 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11103 need_eh_cleaup instead.
11104 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11107 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11109 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11110 * tree-pass.h (make_pass_ipa_single_use): New pass.
11111 * cgraph.h (used_by_single_function): New flag.
11112 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11114 * passes.def (pass_ipa_single_use): Scedule.
11115 * ipa.c (BOTTOM): New macro.
11116 (meet): New function
11117 (propagate_single_user): New function.
11118 (ipa_single_use): New function.
11119 (pass_data_ipa_single_use): New pass.
11120 (pass_ipa_single_use): New pass.
11121 (pass_ipa_single_use::gate): New gate.
11122 (make_pass_ipa_single_use): New function.
11124 2014-06-23 Kai Tietz <ktietz@redhat.com>
11127 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11128 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11130 2014-06-23 Richard Biener <rguenther@suse.de>
11132 * tree-ssa-loop.c (gate_loop): New function.
11133 (pass_tree_loop::gate): Call it.
11134 (pass_data_tree_no_loop, pass_tree_no_loop,
11135 make_pass_tree_no_loop): New.
11136 * tree-vectorizer.c: Include tree-scalar-evolution.c
11137 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11139 (pass_slp_vectorize::clone): New method.
11140 * timevar.def (TV_TREE_NOLOOP): New.
11141 * tree-pass.h (make_pass_tree_no_loop): Declare.
11142 * passes.def (pass_tree_no_loop): New pass group with
11145 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11148 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11149 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11151 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11153 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11154 "yes" where needed.
11156 2014-06-23 Alan Modra <amodra@gmail.com>
11159 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11160 to zero on debug statements.
11162 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11165 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11166 Ignore third operand if present by marking qualifier_internal.
11168 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11170 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11172 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11173 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11174 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11175 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11176 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11177 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11178 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11179 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11180 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11181 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11182 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11183 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11184 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11185 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11186 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11187 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11188 logic in GCC vector extensions
11190 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11191 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11192 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11193 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11194 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11195 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11196 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11197 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11198 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11199 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11201 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11203 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11206 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11207 (vget_low_s64): Use __GET_LOW macro.
11208 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11209 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11210 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11211 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11212 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11214 (vcombine_s64): Use GCC vector extensions; remove cast.
11215 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11216 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11217 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11218 Fix type signature; remove cast.
11220 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11223 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11225 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11227 (BUILTIN_VD1): New.
11228 (BUILTIN_VD_RE): Remove.
11229 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11230 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11231 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11232 variant but not df.
11233 (vreinterpretv1df*, vreinterpret*v1df): New.
11234 (vreinterpretdf*, vreinterpret*df): Remove.
11235 * config/aarch64/aarch64-simd.md (aarch64_create,
11236 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11237 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11239 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11240 (vcreate_f64): Remove cast, use v1df builtin.
11241 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11242 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11243 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11244 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11245 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11246 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11247 add range check using __builtin_aarch64_im_lane_boundsi.
11248 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11249 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11250 type signature, use gcc vector extensions.
11251 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11252 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11253 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11254 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11255 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11256 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11257 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11258 vreinterpret_u64_f64): Use v1df builtin not df.
11260 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11262 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11265 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11267 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11270 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11272 * loop-invariant.c (pre_check_invariant_p): New function.
11273 (find_invariant_insn): Call pre_check_invariant_p.
11275 2014-06-22 Richard Henderson <rth@redhat.com>
11278 * compare-elim.c (struct comparison): Add eh_note.
11279 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11280 a redundant comparison in a different EH region. Purge EH edges if
11283 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11285 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11286 (var_shift): Use it.
11287 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11288 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11289 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11290 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11291 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11292 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11293 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11294 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11295 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11296 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11297 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11298 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11299 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11300 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11301 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11302 *rotldi3_internal15be): Use the new attribute. Merge register and
11303 integer alternatives.
11305 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11307 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11308 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11309 split, *ashrdi3_internal3 and split): Delete, merge into...
11310 (ashr<mode>3): New expander.
11311 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11312 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11314 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11316 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11317 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11318 *rotldi3_internal3 and split): Delete, merge into...
11319 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11320 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11321 Use "rotlw" extended mnemonic.
11323 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11325 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11326 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11327 and split, *ashldi3_internal3 and split): Delete, merge into...
11328 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11329 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11331 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11333 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11334 (lshrsi3, two anonymous define_insns and define_splits,
11335 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11336 *lshrdi3_internal3 and split): Delete, merge into...
11337 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11338 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11340 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11342 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11343 Remove "O" alternative.
11345 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11347 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11348 (mips_move_from_gpr_cost): Likewise.
11349 (mips_register_move_cost): Update accordingly.
11350 (mips_secondary_reload_class): Remove name of in_p.
11352 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11355 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11356 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11358 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11360 * config/nios2/nios2.c: Include "builtins.h".
11362 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11364 * cgraph.h (tls_model_names): New variable.
11365 * print-tree.c (print_node): Simplify.
11366 * varpool.c (tls_model_names): New variable.
11367 (dump_varpool_node): Output tls model.
11369 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11371 * ipa-visibility.c (function_and_variable_visibility): Disable
11372 temporarily local aliases for some targets.
11374 2014-06-20 Marek Polacek <polacek@redhat.com>
11376 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11377 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11378 into SANITIZE_UNDEFINED.
11379 * doc/invoke.texi: Describe -fsanitize=bounds.
11380 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11381 functions created in the FEs.
11382 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11383 (expand_UBSAN_BOUNDS): New function.
11384 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11385 * internal-fn.h: Don't define internal functions here.
11386 * opts.c (common_handle_option): Add -fsanitize=bounds.
11387 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11388 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11389 * tree-core.h: Define internal functions here.
11390 (struct tree_base): Add ifn field.
11391 * tree-pretty-print.c: Include "internal-fn.h".
11392 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11393 * tree.c (get_callee_fndecl): Likewise.
11394 (build_call_expr_internal_loc): New function.
11395 * tree.def (CALL_EXPR): Update description.
11396 * tree.h (CALL_EXPR_IFN): Define.
11397 (build_call_expr_internal_loc): Declare.
11398 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11400 (ubsan_type_descriptor): Change bool parameter to enum
11401 ubsan_print_style. Adjust the code. Add handling of
11403 (ubsan_expand_bounds_ifn): New function.
11404 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11405 (ubsan_build_overflow_builtin): Likewise.
11406 (instrument_bool_enum_load): Likewise.
11407 (ubsan_instrument_float_cast): Likewise.
11408 * ubsan.h (enum ubsan_print_style): New enum.
11409 (ubsan_expand_bounds_ifn): Declare.
11410 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11412 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11414 * config/rs6000/rs6000.md: Append `DONE' to preparation
11415 statements of `bswap' pattern splitters.
11417 2014-06-20 Tom de Vries <tom@codesourcery.com>
11419 * target.def (call_fusage_contains_non_callee_clobbers): Update
11421 * doc/tm.texi: Regenerate.
11423 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11424 Max Ostapenko <m.ostapenko@partner.samsung.com>
11427 * asan.c (instrument_strlen_call): Fixed instrumentation of
11430 2014-06-20 Martin Jambor <mjambor@suse.cz>
11433 * ipa-prop.c (impossible_devirt_target): New function.
11434 (try_make_edge_direct_virtual_call): Use it, also instead of
11437 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11438 Max Ostapenko <m.ostapenko@partner.samsung.com>
11441 * asan.c (build_check_stmt): Add condition.
11443 2014-06-20 Martin Jambor <mjambor@suse.cz>
11446 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11449 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11451 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11453 (VCONQ): Make comment more helpful.
11455 * config/aarch64/aarch64-simd.md
11456 (aarch64_sqdmulh_lane<mode>):
11457 Use VCOND for operands 2. Update lane checking and flipping logic.
11458 (aarch64_sqrdmulh_lane<mode>): Likewise.
11459 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11460 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11461 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11462 attribute of operand 3 to VCOND.
11463 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11464 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11465 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11466 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11467 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11468 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11470 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11471 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11472 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11473 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11474 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11475 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11476 operand to VCOND. Update lane flipping and bounds checking logic.
11477 (aarch64_sqdmlal2_lane<mode>): Likewise.
11478 (aarch64_sqdmlsl_lane<mode>): Likewise.
11479 (aarch64_sqdmull_lane<mode>): Likewise.
11480 (aarch64_sqdmull2_lane<mode>): Likewise.
11481 (aarch64_sqdmlal_laneq<mode>):
11482 Replace VCON usage with VCONQ.
11483 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11484 (aarch64_sqdmlal2_laneq<mode>): Emit
11485 aarch64_sqdmlal2_laneq<mode>_internal insn.
11486 Replace VCON with VCONQ.
11487 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11488 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11489 (aarch64_sqdmull_laneq<mode>): Emit
11490 aarch64_sqdmull_laneq<mode>_internal insn.
11491 Replace VCON with VCONQ.
11492 (aarch64_sqdmull2_laneq<mode>): Emit
11493 aarch64_sqdmull2_laneq<mode>_internal insn.
11494 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11495 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11496 of 3rd argument to int16x4_t.
11497 (vqdmlalh_lane_s16): Likewise.
11498 (vqdmlslh_lane_s16): Likewise.
11499 (vqdmull_high_lane_s16): Likewise.
11500 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11501 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11502 (vqdmlsl_lane_s16): Likewise.
11503 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11504 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11505 (vqdmlals_lane_s32): Likewise.
11506 (vqdmlsls_lane_s32): Likewise.
11507 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11508 (vqdmulls_lane_s32): Likewise.
11509 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11510 (vqdmlsl_lane_s32): Likewise.
11511 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11512 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11513 (vqrdmulhh_lane_s16): Likewise.
11514 (vqdmlsl_high_lane_s16): Likewise.
11515 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11516 (vqdmlsl_high_lane_s32): Likewise.
11517 (vqrdmulhs_lane_s32): Likewise.
11519 2014-06-20 Tom de Vries <tom@codesourcery.com>
11521 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11522 get_call_reg_set_usage.
11524 2014-06-20 Tom de Vries <tom@codesourcery.com>
11526 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11527 it contains all call_used_regs.
11529 2014-06-20 Tom de Vries <tom@codesourcery.com>
11531 * final.c (collect_fn_hard_reg_usage): Add and use variable
11532 function_used_regs.
11534 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11536 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11537 (set_init_priority, get_init_priority, set_fini_priority,
11538 get_fini_priority): New methods.
11539 * tree.c (init_priority_for_decl): Remove.
11540 (init_ttree): Do not initialize init priority.
11541 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11542 (decl_priority_info): Remove.
11543 (decl_init_priority_insert): Rewrite.
11544 (decl_fini_priority_insert): Rewrite.
11545 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11546 tree_priority_map_marked_p): Remove.
11547 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11548 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11549 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11550 not output priorities.
11551 (pack_ts_function_decl_value_fields): Likewise.
11552 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11553 not input priorities.
11554 (unpack_ts_function_decl_value_fields): Likewise.
11555 * symtab.c (symbol_priority_map): Declare.
11556 (init_priority_hash): Declare.
11557 (symtab_unregister_node): Unregister from priority hash, too.
11558 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11560 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11561 (symbol_priority_info): New function.
11562 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11564 * tree-core.h (tree_priority_map): Remove.
11566 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11568 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11569 0xff to uint64_t before shifting it up.
11571 2014-06-20 Julian Brown <julian@codesourcery.com>
11572 Chung-Lin Tang <cltang@codesourcery.com>
11574 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11575 TARGET_THUMB1_ONLY. Add comments.
11577 2014-06-19 Tom de Vries <tom@codesourcery.com>
11579 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11580 return type to void.
11581 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11583 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11585 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11586 as "move", from depends_on.
11588 2014-06-19 Terry Guo <terry.guo@arm.com>
11590 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11593 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11595 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11597 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11599 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11602 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11603 addresses here if reload in progress or completed.
11605 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11607 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11608 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11609 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11610 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11611 (mips_register_priority): New function that implements the target
11612 hook TARGET_REGISTER_PRIORITY.
11613 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11614 (mips_lra_p): Likewise for TARGET_LRA_P.
11615 (TARGET_REGISTER_PRIORITY): Define macro.
11616 (TARGET_SPILL_CLASS): Likewise.
11617 (TARGET_LRA_P): Likewise.
11618 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11620 (REG_CLASS_NAMES): Likewise.
11621 (REG_CLASS_CONTENTS): Likewise.
11622 (BASE_REG_CLASS): Use M16_SP_REGS.
11623 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11624 New set attribute to enable alternatives depending on the register
11626 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11627 (*lea64): Disable pattern for MIPS16.
11628 * config/mips/mips.opt (mlra): New option.
11630 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11632 * lra-constraints.c (base_to_reg): New function.
11633 (process_address): Use new function.
11635 2014-06-18 Tom de Vries <tom@codesourcery.com>
11637 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11638 * config/aarch64/aarch64.c
11639 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11640 (aarch64_emit_call_insn): New function.
11641 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11643 * config/aarch64/aarch64.md (define_expand "call_internal")
11644 (define_expand "call_value_internal", define_expand "sibcall_internal")
11645 (define_expand "sibcall_value_internal"): New.
11646 (define_expand "call", define_expand "call_value")
11647 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11648 expand variant and aarch64_emit_call_insn.
11650 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11651 Tom de Vries <tom@codesourcery.com>
11653 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11654 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11656 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11657 clobbers to CALL_INSN_FUNCTION_USAGE.
11658 (define_expand "sibcall_internal")
11659 (define_expand "sibcall_value_internal"): New.
11660 (define_expand "call", define_expand "call_value"): Add argument to
11661 arm_emit_call_insn.
11662 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11663 (define_expand "sibcall_value"): Use sibcall_value_internal and
11664 arm_emit_call_insn.
11666 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11668 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11670 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11672 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11675 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11677 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11678 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11679 annotations. Fix DWARF information.
11681 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11683 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11684 __udivmoddi4, and fixups for negative operands.
11686 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11688 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11690 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11692 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11695 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11697 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11700 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11702 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11703 describing register usage on function entry and exit.
11705 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11707 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11708 (__aeabi_ldivmod): Fix whitespace.
11710 2014-06-18 Andreas Schwab <schwab@suse.de>
11712 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11713 Remove blank line after @item.
11715 2014-06-18 Richard Henderson <rth@redhat.com>
11718 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11720 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11722 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11723 POST_MODIFY for neon loads and stores.
11724 (arm_print_operand): Output post-index register for neon loads and
11727 2014-06-18 Richard Biener <rguenther@suse.de>
11729 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11731 2014-06-18 Richard Biener <rguenther@suse.de>
11733 * tree-pass.h (make_pass_dce_loop): Remove.
11734 * passes.def: Replace pass_dce_loop with pass_dce.
11735 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11736 changed free niter estimates and reset the scev cache.
11737 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11738 make_pass_dce_loop): Remove.
11739 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11740 (fini_copy_prop): Return whether something changed. Always
11741 let substitute_and_fold perform DCE and free niter estimates
11742 and reset the scev cache if so.
11743 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11744 (pass_data_copy_prop): Do not unconditionally schedule
11745 cleanup-cfg or update-ssa.
11747 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11749 PR tree-optimization/61518
11750 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11751 reduction var is used in reduction stmt or phi-function only.
11753 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11755 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11757 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11759 PR tree-optimization/61517
11760 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11761 whose rhs's first tree is the source expression instead of the
11763 (find_bswap_or_nop): Likewise.
11764 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11765 gimple stmt whose rhs's first tree is the source. In the memory source
11766 case, move the stmt to be replaced close to one of the original load to
11767 avoid the problem of a store between the load and the stmt's original
11769 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11772 2014-06-18 Andreas Schwab <schwab@suse.de>
11774 PR rtl-optimization/54555
11775 * postreload.c (move2add_use_add2_insn): Substitute
11776 STRICT_LOW_PART only if it is cheaper.
11778 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11780 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11781 Do not use unspec as call operand. Use memory_operand instead of
11782 memory_nox32_operand and add "m" operand constraint. Disable
11783 pattern for TARGET_X32.
11784 (*sibcall_pop_memory): Ditto.
11785 (*sibcall_value_memory): Ditto.
11786 (*sibcall_value_pop_memory): Ditto.
11787 (sibcall peepholes): Merge SImode and DImode patterns using
11788 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11789 Disable pattern for TARGET_X32. Check if eliminated register is
11790 really dead after call insn. Generate call RTX without unspec operand.
11791 (sibcall_value peepholes): Ditto.
11792 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11793 instead of memory_nox32_operand. Check if eliminated register is
11794 really dead after call insn. Generate call RTX without unspec operand.
11795 (sibcall_value_pop peepholes): Ditto.
11796 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11798 2014-06-18 Terry Guo <terry.guo@arm.com>
11801 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11804 2014-06-18 Olivier Hainque <hainque@adacore.com>
11806 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11807 memorization of the end of block source location.
11808 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11809 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11810 end source location info we have on the block entry/exit code we
11813 2014-06-18 Richard Biener <rguenther@suse.de>
11815 * common.opt (fssa-phiopt): New option.
11816 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11818 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11819 * doc/invoke.texi (-fssa-phiopt): Document.
11821 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11823 * genattrtab.c (n_bypassed): New variable.
11824 (process_bypasses): Initialise n_bypassed.
11825 Count number of bypassed reservations.
11826 (make_automaton_attrs): Allocate space for bypassed reservations
11827 rather than number of bypasses.
11829 2014-06-18 Richard Biener <rguenther@suse.de>
11831 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11832 we propagated anything.
11833 (substitute_and_fold_dom_walker::before_dom_children): Something
11834 changed if we propagated into PHI arguments.
11835 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11838 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11840 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11842 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11843 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11844 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11845 Introduces alternative way of loads group permutaions.
11846 (vect_transform_grouped_load): Try alternative way of permutations.
11848 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11850 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11851 changed in ORT_TARGET region, don't jump to do_outer.
11852 (struct gimplify_adjust_omp_clauses_data): New type.
11853 (gimplify_adjust_omp_clauses_1): Adjust for data being
11854 a struct gimplify_adjust_omp_clauses_data pointer instead
11855 of tree *. Pass pre_p as a new argument to
11856 lang_hooks.decls.omp_finish_clause hook.
11857 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11858 splay_tree_foreach to pass both list_p and pre_p.
11859 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11860 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11861 gimplify_adjust_omp_clauses callers.
11862 * langhooks.c (lhd_omp_finish_clause): New function.
11863 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11864 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11865 * langhooks.h (struct lang_hooks_for_decls): Add a new
11866 gimple_seq * argument to omp_finish_clause hook.
11867 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11868 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11869 (scan_omp_parallel, lower_omp_for): When adding
11870 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11871 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11872 * tree-nested.c (convert_nonlocal_omp_clauses,
11873 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11874 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11876 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11878 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11879 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11881 2014-06-17 Xinliang David Li <davidxl@google.com>
11883 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11884 * passes.c (pass_init_dump_file): Do not set initialize
11885 flag to false unconditionally.
11887 2014-06-17 Richard Biener <rguenther@suse.de>
11889 * genopinit.c (main): Use vec<>::qsort method.
11890 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11892 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11894 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11896 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11897 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11898 (mips_move_to_gpr_cost): Remove ST_REGS case.
11899 (mips_move_from_gpr_cost): Likewise.
11900 (mips_register_move_cost): Likewise.
11901 (mips_secondary_reload_class): Likewise.
11903 2014-06-17 Richard Biener <rguenther@suse.de>
11905 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11906 (pass_all_optimizations): Move 3rd copy-prop pass from after
11907 fre to before ifcombine/phiopt.
11909 2014-06-17 Richard Biener <rguenther@suse.de>
11911 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11912 and allow all blocks to be forwarders.
11914 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11917 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11918 variable 'size'; calculate 'size' right in the front; use
11919 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11920 pcum->aapcs_stack_words.
11922 2014-06-17 Nick Clifton <nickc@redhat.com>
11924 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11925 (umulhi3, mulsidi3, umulsidi3): Likewise.
11927 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11929 PR middle-end/61508
11930 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11931 check for section name.
11933 2014-06-17 Richard Biener <rguenther@suse.de>
11935 * tree-ssa-propagate.c: Include domwalk.h.
11936 (substitute_and_fold): Outline main worker into a domwalker ...
11937 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11938 Schedule stmts we can fully propagate for removal. Remove
11940 (substitute_and_fold): Apply a dominator walk to perform
11941 substitution. Process stmts scheduled for removal here.
11943 2014-06-17 Richard Biener <rguenther@suse.de>
11945 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11946 of PHI node moving.
11948 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11950 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11951 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11952 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11953 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11954 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11956 (get_fpscr) : Likewise.
11958 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11960 PR rtl-optimization/61325
11961 * lra-constraints.c (valid_address_p): Add forward declaration.
11962 (simplify_operand_subreg): Check address validity before and after
11963 alter_reg of memory subreg.
11965 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11967 * config/i386/i386.c (decide_alg): Correctly handle
11968 maximum size of stringop algorithm.
11970 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11972 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11974 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11976 PR rtl-optimization/61522
11977 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11979 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11982 * symtab.c (symtab_node::reset_section): New method.
11983 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11985 * cgraph.h (reset_section): Declare.
11986 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11987 do not consider comdat locals.
11988 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11990 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11991 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11992 reset sections of symbols dragged out of the comdats.
11993 (function_and_variable_visibility): Reset sections of
11996 2014-06-16 Richard Biener <rguenther@suse.de>
11998 PR tree-optimization/61482
11999 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12000 [-INF(OVF), +INF(OVF)] range.
12002 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12004 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12005 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12006 handling 32-bit multiplication.
12008 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12010 PR middle-end/61430
12011 * lra-lives.c (process_bb_lives): Skip creating copy during
12012 insn scan when src/dest has constrained to same regno.
12014 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12016 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12017 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12019 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12021 * asan.c (check_func): New function.
12022 (maybe_create_ssa_name): Likewise.
12023 (build_check_stmt_with_calls): Likewise.
12024 (use_calls_p): Likewise.
12025 (report_error_func): Change interface.
12026 (build_check_stmt): Allow non-integer lengths; add support
12028 (asan_instrument): Likewise.
12029 (instrument_mem_region_access): Moved code to build_check_stmt.
12030 (instrument_derefs): Likewise.
12031 (instrument_strlen_call): Likewise.
12032 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12033 * doc/invoke.texi: Describe new parameter.
12034 * params.def: Define new parameter.
12035 * params.h: Likewise.
12036 * sanitizer.def: Describe new builtins.
12038 2014-06-16 Richard Biener <rguenther@suse.de>
12040 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12041 Make all defs available at the end.
12042 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12044 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12047 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12049 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12052 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12053 initialization. Replace remaining use of uid.
12055 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12057 * c-family/c-common.c (handle_tls_model_attribute): Use
12058 set_decl_tls_model.
12059 * c-family/c-common.c (handle_tls_model_attribute): Use
12060 set_decl_tls_model.
12061 * cgraph.h (struct varpool_node): Add tls_model.
12062 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12063 * tree.h (DECL_TLS_MODEL): Update.
12064 (DECL_THREAD_LOCAL_P): Check that variable is static.
12065 (decl_tls_model): Declare.
12066 (set_decl_tls_model): Declare.
12067 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12068 set symbol prorperties.
12069 (get_emutls_init_templ_addr): Cleanup.
12070 (new_emutls_decl): Update.
12071 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12072 (lto_input_varpool_node): Likewise.
12073 * lto-streamer-out.c (hash_tree): Likewise.
12074 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12075 not stream DECL_TLS_MODEL.
12076 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12077 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12079 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12081 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12083 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12085 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12086 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12088 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12089 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12090 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12091 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12092 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12093 (df_get_artificial_defs, df_get_artificial_uses)
12094 (df_single_def, df_single_use): Update accordingly.
12095 (df_refs_chain_dump): Take the first element in a linked list as
12096 parameter, rather than a pointer to an array of pointers.
12097 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12098 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12099 (df_chain_create_bb_process_use): Likewise.
12100 (df_md_bb_local_compute_process_def): Likewise.
12101 * fwprop.c (process_defs, process_uses): Likewise.
12102 (register_active_defs, update_uses): Likewise.
12103 (forward_propagate_asm): Update for new df_ref linking.
12104 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12105 (df_null_ref_rec, df_null_mw_rec): Likewise.
12106 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12108 (df_scan_free_bb_info): Remove check for null artificial_defs.
12109 (df_install_ref_incremental): Adjust for new df_ref linking.
12110 Use a single-element insertion rather than a full sort.
12111 (df_ref_chain_delete_du_chain): Take the first element
12112 in a linked list as parameter, rather than a pointer to an array of
12114 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12115 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12116 (df_insn_info_delete): Remove check for null defs and call to
12117 df_scan_free_mws_vec.
12118 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12119 null rather than df_null_*_rec.
12120 (df_insn_rescan_debug_internal): Likewise, and update null
12121 checks in the same way. Remove check for null defs.
12122 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12123 Move a single element rather doing a full sort.
12124 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12126 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12127 Initialize df_ref and df_mw_hardreg lists to null rather than
12129 (df_ref_compare): Take df_refs as parameter, transferring the
12130 old interface to...
12131 (df_ref_ptr_compare): ...this new function.
12132 (df_sort_and_compress_refs): Update accordingly.
12133 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12134 old interface to...
12135 (df_mw_ptr_compare): ...this new function.
12136 (df_sort_and_compress_mws): Update accordingly.
12137 (df_install_refs, df_install_mws): Return a linked list rather than
12138 an array of pointers.
12139 (df_refs_add_to_chains): Assert that old lists are empty rather
12141 (df_insn_refs_verify): Don't handle null defs speciailly.
12142 * web.c (union_match_dups): Update for new df_ref linking.
12144 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12146 * df.h (df_ref_create, df_ref_remove): Delete.
12147 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12148 (df_ref_remove): Likewise.
12150 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12152 * df.h (df_single_def, df_single_use): New functions.
12153 * ira.c (find_moveable_pseudos): Use them.
12155 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12157 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12158 * df-problems.c (df_note_bb_compute): Use it.
12159 * regstat.c (regstat_bb_compute_ri): Likewise.
12161 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12163 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12164 * cse.c (cse_extended_basic_block): Use them.
12165 * dce.c (mark_artificial_use): Likewise.
12166 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12167 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12168 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12169 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12170 (df_simulate_initialize_backwards): Likewise.
12171 (df_simulate_finalize_backwards): Likewise.
12172 (df_simulate_initialize_forwards): Likewise.
12173 (df_md_simulate_artificial_defs_at_top): Likewise.
12174 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12175 * regrename.c (init_rename_info): Likewise.
12176 * regstat.c (regstat_bb_compute_ri): Likewise.
12177 (regstat_bb_compute_calls_crossed): Likewise.
12179 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12181 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12182 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12183 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12184 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12185 * combine.c (create_log_links): Likewise.
12186 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12187 (try_eliminate_compare): Likewise.
12188 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12189 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12190 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12191 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12192 (word_dce_process_block, dce_process_block): Likewise.
12193 * ddg.c (def_has_ccmode_p): Likewise.
12194 * df-core.c (df_bb_regno_first_def_find): Likewise.
12195 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12196 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12197 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12198 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12199 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12200 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12201 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12202 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12203 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12204 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12205 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12206 * fwprop.c (local_ref_killed_between_p): Likewise.
12207 (all_uses_available_at, free_load_extend): Likewise.
12208 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12209 * hw-doloop.c (scan_loop): Likewise.
12210 * ifcvt.c (dead_or_predicable): Likewise.
12211 * init-regs.c (initialize_uninitialized_regs): Likewise.
12212 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12213 (process_bb_node_lives): Likewise.
12214 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12215 (find_moveable_pseudos): Likewise.
12216 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12217 * recog.c (peep2_find_free_register): Likewise.
12218 * ree.c (get_defs): Likewise.
12219 * regstat.c (regstat_bb_compute_ri): Likewise.
12220 (regstat_bb_compute_calls_crossed): Likewise.
12221 * sched-deps.c (find_inc, find_mem): Likewise.
12222 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12223 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12224 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12225 (prepare_shrink_wrap): Likewise.
12226 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12227 * web.c (union_defs, pass_web::execute): Likewise.
12228 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12229 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12231 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12233 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12234 to inheritance pseudos.
12235 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12237 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12240 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12241 (BU_MISC_2): Rename to ...
12242 (BU_LDBL128_2): ... this.
12243 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12244 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12245 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12246 RS6000_BTM_LDBL128.
12247 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12248 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12249 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12250 (unpacktf_1): Likewise.
12251 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12252 (__builtin_longdouble_dw1): Likewise.
12253 * doc/sourcebuild.texi (longdouble128): Document.
12255 2014-06-13 Jeff Law <law@redhat.com>
12257 PR rtl-optimization/61094
12258 PR rtl-optimization/61446
12259 * ree.c (combine_reaching_defs): Get the mode for the copy from
12260 the extension insn rather than the defining insn.
12262 2014-06-13 Dehao Chen <dehao@google.com>
12264 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12266 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12268 * doc/install.texi (--enable-linker-plugin-configure-flags)
12269 (--enable-linker-plugin-flags): Document new flags.
12271 2014-06-13 Martin Jambor <mjambor@suse.cz>
12274 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12275 cache_token if returning early.
12277 2014-06-13 Nick Clifton <nickc@redhat.com>
12279 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12280 requested alignment is active.
12281 (LABEL_ALIGN): Likewise.
12282 (LOOP_ALIGN): Likewise.
12284 2014-06-13 Richard Biener <rguenther@suse.de>
12286 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12287 Rewrite to propagate the VN result into all uses where
12288 possible and to remove stmts becoming dead because of that.
12289 (eliminate): Generalize stmt removal handling, remove in
12290 reverse dominator order to support proper debug stmt
12291 generation. Update stmts before removing stmts.
12292 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12294 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12296 PR tree-optimization/61375
12297 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12298 symbolic number cannot be represented in an uint64_t.
12299 (find_bswap_or_nop_1): Likewise.
12301 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12303 * symtab.c (symtab_node::reset_section): New method.
12304 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12306 * cgraph.h (reset_section): Declare.
12307 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12308 do not consider comdat locals.
12309 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12311 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12312 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12313 reset sections of symbols dragged out of the comdats.
12314 (function_and_variable_visibility): Reset sections of
12317 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12319 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12320 to use symtab and decl_binds_to_current_def_p
12321 * tree-vectorizer.c (increase_alignment): Increase alignment
12322 of alias target, too.
12324 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12326 PR middle-end/61486
12327 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12328 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12329 if outer combined construct is distribute.
12330 (gimplify_omp_for): For OMP_DISTRIBUTE set
12331 gimplify_omp_ctxp->distribute.
12332 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12333 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12334 mapping into decl map.
12336 2014-06-12 Jason Merrill <jason@redhat.com>
12338 * common.opt (fabi-version): Change default to 0.
12340 2014-06-12 Jason Merrill <jason@redhat.com>
12342 * toplev.c (process_options): Reject -fabi-version=1.
12344 2014-06-12 Jeff Law <law@redhat.com>
12346 PR tree-optimization/61009
12347 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12348 value when we stop processing a block due to problematic PHIs.
12350 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12352 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12353 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12354 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12355 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12356 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12357 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12358 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12359 are not in the spec.
12361 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12364 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12365 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12368 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12370 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12372 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12375 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12376 loading from address spaces.
12378 2014-06-12 Martin Liska <mliska@suse.cz>
12381 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12382 statement is reachable.
12384 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12386 * symtab.c (section_hash): New hash.
12387 (symtab_unregister_node): Clear section before freeing.
12388 (hash_section_hash_entry): New haser.
12389 (eq_sections): New function.
12390 (symtab_node::set_section_for_node): New method.
12391 (set_section_1): Update.
12392 (symtab_node::set_section): Take string instead of tree as parameter.
12393 (symtab_resolve_alias): Update.
12394 * cgraph.h (section_hash_entry_d): New structure.
12395 (section_hash_entry): New typedef.
12396 (cgraph_node): Change comdat_group_ to x_comdat_group,
12397 change section_ to x_section and turn into section_hash_entry;
12398 update accestors; put set_section_for_node offline.
12399 * tree.c (decl_section_name): Turn into string.
12400 (set_decl_section_name): Change parameter to be string.
12401 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12402 * sdbout.c (sdbout_one_type): Update.
12403 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12404 * varasm.c (IN_NAMED_SECTION, get_named_section,
12405 resolve_unique_section, hot_function_section, get_named_text_section,
12406 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12407 make_decl_rtl, default_unique_section): Update.
12408 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12409 (c6x_elf_unique_section): Update.
12410 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12411 * config/pa/pa.c (pa_function_section): Update.
12412 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12413 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12414 * config/arc/arc.c (arc_in_small_data_p): Update.
12415 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12416 * config/mcore/mcore.c (mcore_unique_section): Update.
12417 * config/mips/mips.c (mips16_build_function_stub): Update.
12418 (mips16_build_call_stub): Update.
12419 (mips_function_rodata_section): Update.
12420 (mips_in_small_data_p): Update.
12421 * config/score/score.c (score_in_small_data_p): Update.
12422 * config/rx/rx.c (rx_in_small_data): Update.
12423 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12424 (rs6000_xcoff_asm_named_section): Update.
12425 (rs6000_xcoff_unique_section): Update.
12426 * config/frv/frv.c (frv_string_begins_with): Update.
12427 (frv_in_small_data_p): Update.
12428 * config/v850/v850.c (v850_encode_data_area): Update.
12429 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12430 (bfin_handle_l1_data_attribute): Update.
12431 (bfin_handle_l2_attribute): Update.
12432 * config/mep/mep.c (mep_unique_section): Update.
12433 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12435 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12436 (h8300_handle_tiny_data_attribute): Update.
12437 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12438 (m32r_in_small_data_p): Update.
12439 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12440 * config/i386/i386.c (ix86_in_large_data_p): Update.
12441 * config/i386/winnt.c (i386_pe_unique_section): Update.
12442 * config/darwin.c (darwin_function_section): Update.
12443 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12444 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12445 (new_emutls_decl): Update.
12446 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12447 input_varpool_node): Update.
12448 (ead_string_cst): Turn to ...
12449 (read_string): ... this one.
12450 * dwarf2out.c (secname_for_decl): Update.
12451 * asan.c (asan_protect_global): Update.
12453 2014-06-11 DJ Delorie <dj@redhat.com>
12455 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12457 * config/rx/rx.c (rx_option_override): Likewise.
12458 (rx_align_for_label): Likewise.
12460 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12462 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12464 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12467 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12469 * common.md: New file.
12470 * doc/md.texi: Update description of generic, machine-independent
12472 * config/s390/constraints.md (e): Delete.
12473 * Makefile.in (md_file): Include common.md.
12474 * config/m32c/t-m32c (md_file): Likewise.
12475 * genpreds.c (general_mem): New array.
12476 (generic_constraint_letters): Remove constraints now defined by
12478 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12479 Allow the first character to be '<' or '>' as well.
12480 * genoutput.c (general_mem): New array.
12481 (indep_constraints): Remove constraints now defined by common.md.
12482 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12483 Remove special handling of 'm'.
12484 * ira-costs.c (record_reg_classes): Remove special handling of
12485 constraints now defined by common.md.
12486 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12487 * ira-lives.c (single_reg_class): Likewise.
12488 (ira_implicitly_set_insn_hard_regs): Likewise.
12489 * lra-constraints.c (reg_class_from_constraints): Likewise.
12490 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12491 * postreload.c (reload_cse_simplify_operands): Likewise.
12492 * reload.c (push_secondary_reload, scratch_reload_class)
12493 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12494 * reload1.c (maybe_fix_stack_asms): Likewise.
12495 * targhooks.c (default_secondary_reload): Likewise.
12496 * stmt.c (parse_output_constraint): Likewise.
12497 * recog.c (preprocess_constraints): Likewise.
12498 (constrain_operands, peep2_find_free_register): Likewise.
12499 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12500 must be handled specially.
12502 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12504 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12505 * genpreds.c (have_const_dbl_constraints): Delete.
12506 (add_constraint): Don't set it.
12507 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12508 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12509 constraints using the lookup_constraint logic.
12510 * ira-lives.c (single_reg_class): Likewise.
12511 * ira.c (ira_setup_alts): Likewise.
12512 * lra-constraints.c (process_alt_operands): Likewise.
12513 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12514 * reload.c (find_reloads): Likewise.
12516 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12518 * genpreds.c (const_int_start, const_int_end): New variables.
12519 (choose_enum_order): Output CONST_INT constraints before memory
12521 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12523 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12524 * ira.c (ira_setup_alts): Likewise.
12525 * lra-constraints.c (process_alt_operands): Likewise.
12526 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12527 * reload.c (find_reloads): Likewise.
12529 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12531 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12532 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12533 * recog.c (preprocess_constraints): Update accordingly.
12535 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12537 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12538 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12539 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12540 * genpreds.c (print_type_tree): New function.
12541 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12542 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12543 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12544 Write out enum constraint_type and get_constraint_type.
12545 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12546 constraint_num rather than a constraint string.
12547 (satisfies_address_constraint_p): Likewise.
12548 (reg_class_from_constraints): Avoid old constraint macros.
12549 (process_alt_operands, process_address_1): Likewise.
12550 (curr_insn_transform): Likewise.
12551 * ira-costs.c (record_reg_classes): Likewise.
12552 (record_operand_costs): Likewise.
12553 * ira-lives.c (single_reg_class): Likewise.
12554 (ira_implicitly_set_insn_hard_regs): Likewise.
12555 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12556 * postreload.c (reload_cse_simplify_operands): Likewise.
12557 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12558 (constrain_operands, peep2_find_free_register): Likewise.
12559 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12560 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12561 * reload1.c (maybe_fix_stack_asms): Likewise.
12562 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12563 * targhooks.c (default_secondary_reload): Likewise.
12564 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12565 to EXTRA_CONSTRAINT_STR.
12566 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12568 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12570 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12571 (write_constraint_satisfied_p_array): ...this new function.
12572 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12574 (write_insn_preds_c): Update accordingly.
12576 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12578 * genpreds.c (write_lookup_constraint): Rename to...
12579 (write_lookup_constraint_1): ...this.
12580 (write_lookup_constraint_array): New function.
12581 (write_tm_preds_h): Define lookup_constraint as an inline function
12582 that uses write_lookup_constraint_array where possible.
12583 (write_insn_preds_c): Update for the changes above.
12585 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12587 * doc/md.texi (regclass_for_constraint): Rename to...
12588 (reg_class_for_constraint): ...this.
12589 * genpreds.c (num_constraints, enum_order, register_start)
12590 (register_end, satisfied_start, memory_start, memory_end)
12591 (address_start, address_end): New variables.
12592 (add_constraint): Count the number of constraints.
12593 (choose_enum_order): New function.
12594 (write_enum_constraint_num): Iterate over enum_order.
12595 (write_regclass_for_constraint): Rename to...
12596 (write_reg_class_for_constraint_1): ...this and update output
12598 (write_constraint_satisfied_p): Rename to...
12599 (write_constraint_satisfied_p_1): ...this and update output
12600 accordingly. Do nothing if all extra constraints are register
12602 (write_insn_extra_memory_constraint): Delete.
12603 (write_insn_extra_address_constraint): Delete.
12604 (write_range_function): New function.
12605 (write_tm_preds_h): Define constraint_satisfied_p and
12606 reg_class_for_constraint as inline functions that do a range check
12607 before calling the out-of-line function. Use write_range_function
12608 to implement insn_extra_{register,memory,address}_constraint,
12609 the first of which is new.
12610 (write_insn_preds_c): Update after above changes to write_* functions.
12611 (main): Call choose_enum_order.
12613 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12615 PR tree-optimization/61306
12616 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12617 expression instead of its size.
12618 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12619 false to prevent optimization when the result is unpredictable due to
12620 arithmetic right shift of signed type with highest byte is set.
12621 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12622 (init_symbolic_number): Likewise.
12623 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12624 when the result is unpredictable due to sign extension.
12626 2014-06-11 Terry Guo <terry.guo@arm.com>
12628 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12629 (*thumb1_addsi3): Ditto.
12630 (*thumb_subdi3): Ditto.
12631 (thumb1_subsi3_insn): Ditto.
12632 (*thumb_mulsi3): Ditto.
12633 (*thumb_mulsi3_v6): Ditto.
12634 (*thumb1_andsi3_insn): Ditto.
12635 (thumb1_bicsi3): Ditto.
12636 (*thumb1_iorsi3_insn): Ditto.
12637 (*thumb1_xorsi3_insn): Ditto.
12638 (*thumb1_ashlsi3): Ditto.
12639 (*thumb1_ashrsi3): Ditto.
12640 (*thumb1_lshrsi3): Ditto.
12641 (*thumb1_rotrsi3): Ditto.
12642 (*thumb1_negdi2): Ditto.
12643 (*thumb1_negsi2): Ditto.
12644 (*thumb1_abssi2): Ditto.
12645 (*thumb1_neg_abssi2): Ditto.
12646 (*thumb1_one_cmplsi2): Ditto.
12647 (*thumb1_zero_extendhisi2): Ditto.
12648 (*thumb1_zero_extendqisi2): Ditto.
12649 (*thumb1_zero_extendqisi2_v6): Ditto.
12650 (thumb1_extendhisi2): Ditto.
12651 (thumb1_extendqisi2): Ditto.
12652 (*thumb1_movdi_insn): Ditto.
12653 (*thumb1_movsi_insn): Ditto.
12654 (*thumb1_movhi_insn): Ditto.
12655 (thumb_movhi_clobber): Ditto.
12656 (*thumb1_movqi_insn): Ditto.
12657 (*thumb1_movhf): Ditto.
12658 (*thumb1_movsf_insn): Ditto.
12659 (*thumb_movdf_insn): Ditto.
12660 (movmem12b): Ditto.
12662 (cbranchqi4): Ditto.
12663 (cbranchsi4_insn): Ditto.
12664 (cbranchsi4_scratch): Ditto.
12665 (*negated_cbranchsi4): Ditto.
12666 (*tbit_cbranch): Ditto.
12667 (*tlobits_cbranch): Ditto.
12668 (*tstsi3_cbranch): Ditto.
12669 (*cbranchne_decr1): Ditto.
12670 (*addsi3_cbranch): Ditto.
12671 (*addsi3_cbranch_scratch): Ditto.
12672 (*thumb_cmpdi_zero): Ditto.
12673 (cstoresi_eq0_thumb1): Ditto.
12674 (cstoresi_ne0_thumb1): Ditto.
12675 (*cstoresi_eq0_thumb1_insn): Ditto.
12676 (*cstoresi_ne0_thumb1_insn): Ditto.
12677 (cstoresi_nltu_thumb1): Ditto.
12678 (cstoresi_ltu_thumb1): Ditto.
12679 (thumb1_addsi3_addgeu): Ditto.
12680 (*thumb_jump): Ditto.
12681 (*call_reg_thumb1_v5): Ditto.
12682 (*call_reg_thumb1): Ditto.
12683 (*call_value_reg_thumb1_v5): Ditto.
12684 (*call_value_reg_thumb1): Ditto.
12685 (*call_insn): Ditto.
12686 (*call_value_insn): Ditto.
12687 (thumb1_casesi_internal_pic): Ditto.
12688 (thumb1_casesi_dispatch): Ditto.
12689 (*thumb1_indirect_jump): Ditto.
12690 (prologue_thumb1_interwork): Ditto.
12691 (*epilogue_insns): Ditto.
12692 (consttable_1): Ditto.
12693 (consttable_2): Ditto.
12694 (tablejump): Ditto.
12695 (*thumb1_tablejump): Ditto.
12696 (thumb_eh_return): Ditto.
12697 (define_peephole2): Two of them are thumb1 only and got moved into
12698 new file thumb1.md.
12699 (define_split): Six of them are thumb1 only and got moved into new
12701 * config/arm/thumb1.md: New file comprised of above thumb1 only
12704 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12706 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12707 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12709 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12710 (aarch64_crc_builtin_datum): New struct.
12711 (aarch64_crc_builtin_data): New.
12712 (aarch64_init_crc32_builtins): New function.
12713 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12714 (aarch64_crc32_expand_builtin): New.
12715 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12716 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12717 __ARM_FEATURE_CRC32 when appropriate.
12718 (TARGET_CRC32): Define.
12719 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12720 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12721 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12722 (aarch64_<crc_variant>): New pattern.
12723 * config/aarch64/arm_acle.h: New file.
12724 * config/aarch64/iterators.md (CRC): New int iterator.
12725 (crc_variant, crc_mode): New int attributes.
12726 * doc/aarch64-acle-intrinsics.texi: New file.
12727 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12728 Include aarch64-acle-intrinsics.texi.
12730 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12732 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12733 check for stores group of length 3.
12734 (vect_permute_store_chain): New permutations for stores group of
12736 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12737 of vec_perm_shuffle for the new permutations.
12739 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12741 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12742 table rewriting temporarily on targets not supporting ONE_ONLY.
12744 2014-06-11 Richard Biener <rguenther@suse.de>
12746 PR middle-end/61437
12748 2014-06-04 Richard Biener <rguenther@suse.de>
12750 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12751 TREE_PUBLIC and DECL_EXTERNAL decls.
12753 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12755 * varasm.c (set_implicit_section): New function.
12756 (resolve_unique_section): Use it to set implicit section
12758 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12759 (default_function_section): Likewise.
12760 (decl_binds_to_current_def_p): Constify argument.
12761 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12762 * asan.c (asan_protect_global): Use
12763 symtab_get_node (decl)->implicit_section.
12764 * symtab.c (dump_symtab_base): Dump implicit sections.
12765 (verify_symtab_base): Verify sanity of sectoins and comdats.
12766 (symtab_resolve_alias): Alias share the section of its target.
12767 (set_section_1): New function.
12768 (symtab_node::set_section): Move here, recurse to aliases.
12769 (verify_symtab): Check for duplicated symtab lists.
12770 * tree-core.h (implicit_section_name_p): Remove.
12771 * tree-vect-data-refs.c: Include varasm.h.
12772 (vect_can_force_dr_alignment_p): Fix conditional on when
12773 decl bints to current definition; use
12774 symtab_get_node (decl)->implicit_section.
12775 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12776 * cgraph.h (struct symtab_node): Add implicit_section.
12777 (set_section): Rename to ...
12778 (set_section_for_node): ... this one.
12779 (set_section): Declare.
12780 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12781 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12782 input_overwrite_node, input_varpool_node): Stream implicit_section.
12783 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12784 removal; it will fail in LTO.
12786 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12788 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12789 Change second alternative type to f_mcr.
12790 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12791 and 12th alternatives' types to f_mcr and f_mrc.
12792 (*movdi_aarch64): Same for 12th and 13th alternatives.
12793 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12794 (aarch64_movtilow_tilow): Change type to fmov.
12796 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12798 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12799 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12801 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12803 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12805 (aarch64_sqrdmulh_lane<mode>): Likewise.
12806 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12807 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12808 (aarch64_sqdmulh_laneq<mode>): New expander.
12809 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12810 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12811 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12812 (aarch64_sqdmulh_lane<mode>): New expander.
12813 (aarch64_sqrdmulh_lane<mode>): Likewise.
12814 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12815 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12816 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12817 (aarch64_sqdmlal_laneq<mode>): Likewise.
12818 (aarch64_sqdmlsl_lane<mode>): Likewise.
12819 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12820 (aarch64_sqdmlal2_lane<mode>): Likewise.
12821 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12822 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12823 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12824 (aarch64_sqdmull_lane<mode>): Likewise.
12825 (aarch64_sqdmull_laneq<mode>): Likewise.
12826 (aarch64_sqdmull2_lane<mode>): Likewise.
12827 (aarch64_sqdmull2_laneq<mode>): Likewise.
12829 2014-06-10 Richard Biener <rguenther@suse.de>
12831 PR tree-optimization/61438
12832 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12833 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12834 insertion of IVs if running PRE.
12835 (eliminate): Adjust.
12836 (pass_pre::execute): Likewise.
12837 (pass_fre::execute): Likewise.
12839 2014-06-10 Richard Biener <rguenther@suse.de>
12841 PR middle-end/61456
12842 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12843 Do not use the main variant for the type comparison.
12844 (ncr_compar): Likewise.
12845 (nonoverlapping_component_refs_p): Likewise.
12847 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12849 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12850 REG_CFA_RESTORE mode.
12852 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12854 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12855 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12856 expand_vec_perm_pblendv.
12858 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12860 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12862 Simplify description of __crc32d and __crc32cd intrinsics.
12863 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12866 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12869 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12870 * config.in: Regenerate.
12871 * configure: Likewise.
12873 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12875 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12877 (intersect_static_var_sets): Remove.
12878 (propagate): Do not prune local statics.
12880 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12883 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12884 Set lastprivate_firstprivate even if omp_private_outer_ref
12885 langhook returns true.
12886 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12887 langhook, call unshare_expr on new_var and call
12888 build_outer_var_ref to get the last argument.
12890 2014-06-10 Marek Polacek <polacek@redhat.com>
12893 * doc/extend.texi: Add cindex for transparent_union.
12895 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12897 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12898 init_symbolic_number ().
12900 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12902 PR middle-end/61141
12903 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12904 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12905 (verify_rtl_sharing): Likewise.
12907 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12910 * tree.c (build_qualified_type): Use a canonical type for
12913 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12915 * config/arm/arm-modes.def: Remove XFmode.
12917 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12920 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12921 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12922 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12923 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12924 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12925 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12926 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12927 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12928 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12930 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12932 * tree-core.h (tree_decl_with_vis): Remove section_name.
12934 2014-06-09 Kito Cheng <kito@0xlab.org>
12936 * ira.c (ira): Don't call init_caller_save if LRA enabled
12937 since LRA use its own infrastructure to handle that.
12939 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12941 * symtab.c (dump_symtab_base): Update dumping.
12942 (symtab_make_decl_local): Clear only DECL_COMDAT.
12943 * tree-vect-data-refs.c (Check that variable is static before
12944 tampering with sections.
12945 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12946 (cgraph_create_virtual_clone): Likewise.
12947 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12948 (decl_section_name, set_decl_section_name): New accessors.
12949 (find_decls_types_r): Do not walk section name
12950 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12951 (decl_comdat_group, decl_comdat_group_id): Constify.
12952 (decl_section_name, set_decl_section_name): Update.
12953 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12954 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12955 (cgraph_make_node_local_1): Clear section and comdat group.
12956 * cgraph.h (set_comdat_group): Sanity check.
12957 (get_section, set_section): New.
12958 * ipa-comdats.c (ipa_comdats): Use get_section.
12959 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12960 * lto-streamer-out.c: Do not follow section names.
12961 * c-family/c-common.c (handle_section_attribute): Update.
12962 * lto-cgraph.c (lto_output_node): Output section.
12963 (lto_output_varpool_node): Likewise.
12964 (read_comdat_group): Rename to ...
12965 (read_identifier): ... this one.
12966 (read_string_cst): New function.
12967 (input_node, input_varpool_node): Input section names.
12968 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12969 (new_emutls_decl): Update.
12970 (secname_for_decl): Check section names only of static vars.
12971 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12972 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12973 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12974 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12975 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12976 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12977 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12978 * config/v850/v850.c (v850_insert_attributes): Likewise.
12979 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12981 (h8300_handle_tiny_data_attribute): Likewise.
12982 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12983 (bfin_handle_l2_attribute): Likewise.
12985 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12987 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12988 remove static initializer.
12990 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12992 * varasm.c (use_blocks_for_decl_p): Check symbol table
12993 instead of alias attribute.
12994 (place_block_symbol): Recurse on aliases.
12996 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12998 * ipa-visibility.c: Include varasm.h
12999 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13001 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13003 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13004 outputting aliases.
13006 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13008 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13009 from test_insn into GGC space escape via SET_SRC.
13011 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13013 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13014 call statement, if any.
13015 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13016 statements, if any. Tidy up.
13018 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13021 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13022 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13023 handles swapping the two 64-bit double words on little endian
13024 systems. Include V1TImode and optionally TImode in VSX_LE so that
13025 these types are properly swapped. Change all of the insns and
13026 splits that do the 64-bit swaps to use VSX_LE.
13027 (vsx_le_perm_load_<mode>): Likewise.
13028 (vsx_le_perm_store_<mode>): Likewise.
13029 (splitters for little endian memory operations): Likewise.
13030 (vsx_xxpermdi2_le_<mode>): Likewise.
13031 (vsx_lxvd2x2_le_<mode>): Likewise.
13032 (vsx_stxvd2x2_le_<mode>): Likewise.
13034 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13037 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13038 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13039 and corresponding splitters. Zero extend general register
13040 or memory input operand to XMM temporary. Enable for
13041 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13042 (floatunssi<mode>2): Update expander predicate.
13044 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13046 PR rtl-optimization/61325
13047 * lra-constraints.c (process_address_1): Check scale equal to one
13048 to prevent transformation: base + scale * index => base + new_reg.
13050 2014-06-06 Richard Biener <rguenther@suse.de>
13052 PR tree-optimization/59299
13053 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13055 (nearest_common_dominator_of_uses): Likewise.
13056 (statement_sink_location): Adjust. Support sinking loads.
13058 2014-06-06 Martin Jambor <mjambor@suse.cz>
13060 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13061 (build_agg_jump_func_from_list): Likewise.
13062 (determine_known_aggregate_parts): Renamed to
13063 determine_locally_known_aggregate_parts. Moved some functionality
13064 to the two functions above, removed bound checks.
13066 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13068 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13069 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13070 (aarch64_progress_pointer): Likewise.
13071 (aarch64_copy_one_part_and_move_pointers): Likewise.
13072 (aarch64_expand_movmen): Likewise.
13073 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13074 * config/aarch64/aarch64.md (movmem<mode>): New.
13076 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13078 * targhooks.c (default_add_stmt_cost): Call target specific
13079 hook instead of default one.
13081 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13083 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13084 endianness instead of host endianness.
13085 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13088 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13091 * function.c (instantiate_decls): Process the saved static chain.
13092 (expand_function_start): If not optimizing, save the static chain
13094 * tree-nested.c (convert_all_function_calls): Always create the static
13095 chain for nested functions if not optimizing.
13097 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13099 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13101 2014-06-06 Richard Biener <rguenther@suse.de>
13103 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13104 (construct_init_block): Likewise.
13105 (construct_exit_block): Likewise.
13106 (pass_expand::execute): Likewise.
13107 * graphite.c (graphite_transforms): Replace check for current_loops
13108 with a check for > 1 loops.
13109 (pass_graphite_transforms::execute): Adjust.
13110 * ipa-split.c (split_function): Remove check for current_loops.
13111 * omp-low.c (expand_parallel_call): Likewise.
13112 (expand_omp_for_init_counts): Likewise.
13113 (extract_omp_for_update_vars): Likewise.
13114 (expand_omp_for_generic): Likewise.
13115 (expand_omp_sections): Likewise.
13116 (expand_omp_target): Likewise.
13117 * tracer.c (tail_duplicate): Likewise.
13118 (pass_tracer::execute): Likewise.
13119 * trans-mem.c (expand_transaction): Likewise.
13120 * tree-complex.c (expand_complex_div_wide): Likewise.
13121 * tree-eh.c (lower_resx): Likewise.
13122 (cleanup_empty_eh_merge_phis): Likewise.
13123 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13124 current_loops with a check for > 1 loops.
13125 (pass_predcom::execute): Adjust.
13126 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13127 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13128 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13129 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13130 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13131 * tree-switch-conversion.c (process_switch): Likewise.
13132 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13133 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13134 (execute_vrp): Likewise.
13135 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13137 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13139 * rtl.h (insn_location): Declare.
13140 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13141 with UNKNOWN_LOCATION.
13142 * emit-rtl.c (insn_location): New function.
13143 * final.c (notice_source_line): Check that the instruction has a
13144 location before retrieving it and use insn_location.
13145 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13146 * print-rtl.c (print_rtx): Likewise.
13148 2014-06-06 Richard Biener <rguenther@suse.de>
13150 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13152 2014-06-06 Christian Bruel <christian.bruel@st.com>
13154 PR tree-optimization/43934
13155 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13158 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13160 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13161 return NO_REGS for extra address and memory constraints. Handle
13162 operands that match (or are equivalent to something that matches)
13163 extra constant constraints. Ignore other non-register operands.
13165 2014-06-06 Alan Modra <amodra@gmail.com>
13168 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13169 * doc/tm.texi: Regenerate.
13170 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13171 Use throughout in place of REG_PARM_STACK_SPACE.
13172 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13173 "incoming" param. Pass to rs6000_function_parms_need_stack.
13174 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13175 prototype_p when incoming. Use function decl when incoming
13176 to handle K&R style functions.
13177 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13178 (INCOMING_REG_PARM_STACK_SPACE): Define.
13180 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13183 * cfgexpand.c (expand_debug_expr): Use address space of nested
13184 TREE_TYPE for ADDR_EXPR and MEM_REF.
13186 2014-06-05 Jeff Law <law@redhat.com>
13188 PR tree-optimization/61289
13189 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13190 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13191 looking for those which match LHS. All callers changed.
13192 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13193 parameters and code which manipulated them. All callers changed.
13194 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13195 and DST_MAP parameters. Simplify invalidation code by just calling
13196 invalidate_equivalences. All callers changed.
13197 (thread_across_edge): Simplify now that we don't need to maintain
13198 the map of equivalences to invalidate.
13200 2014-06-05 Kai Tietz <ktietz@redhat.com>
13201 Richard Henderson <rth@redhat.com>
13204 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13205 checking for !TARGET_X32.
13206 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13207 (sibcall_intern): New define_insn, plus required peepholes.
13208 (sibcall_pop_intern): Likewise.
13209 (sibcall_value_intern): Likewise.
13210 (sibcall_value_pop_intern): Likewise.
13212 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13214 * tree-inline.c (tree_function_versioning): Check DF info existence
13215 before accessing it.
13217 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13219 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13221 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13222 aarch64_frame hard_fp_offset and frame_size.
13223 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13224 frame_size; remove original_frame_size.
13225 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13226 (aarch64_initial_elimination_offset): Remove frame_size and
13227 offset. Use aarch64_frame frame_size.
13229 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13230 Jiong Wang <jiong.wang@arm.com>
13231 Renlin <renlin.li@arm.com>
13233 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13234 initialization of R30 offset. Update offset. Iterate core
13235 regisers upto X30. Remove X29, X30 specific code.
13237 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13238 Jiong Wang <jiong.wang@arm.com>
13240 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13241 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13242 (aarch64_register_saved_on_entry): Adjust test.
13244 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13246 * config/aarch64/aarch64.h (machine_function): Move
13247 saved_varargs_size from here...
13248 (aarch64_frame): ... to here.
13250 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13251 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13252 (aarch64_initial_elimination_offset)
13253 (aarch64_setup_incoming_varargs): Adjust location of
13254 saved_varargs_size.
13256 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13258 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13261 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13262 Prachi Godbole <Prachi.Godbole@imgtec.com>
13264 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13265 mips32r5 entry to use PROCESSOR_P5600.
13266 * config/mips/mips-tables.opt: Regenerate.
13267 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13268 * config/mips/mips.c (mips_fmadd_bypass): New function.
13269 (mips_rtx_cost_data): Add costs for p5600.
13270 (mips_issue_rate): Add support for p5600.
13271 (mips_multipass_dfa_lookahead): Likewise.
13272 * config/mips/mips.h (TUNE_P5600): New define.
13273 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13274 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13275 * config/mips/mips.md: Include p5600.md.
13276 (processor): Add p5600.
13277 * config/mips/p5600.md: New file.
13279 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13281 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13282 * config/i386/predicates.md (palignr_operand): New.
13283 Indicates if permutation is suitable for palignr instruction.
13285 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13287 PR tree-optimization/61319
13288 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13289 stmt belongs to loop.
13291 2014-06-05 Richard Biener <rguenther@suse.de>
13293 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13294 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13295 (lookup_tmp_var): Adjust.
13296 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13298 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13300 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13302 2014-06-05 Marek Polacek <polacek@redhat.com>
13305 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13307 2014-06-04 Tom de Vries <tom@codesourcery.com>
13309 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13312 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13314 PR tree-optimization/61385
13315 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13317 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13319 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13320 changed to use fatal_error.
13321 (main): Ensure lto_wrapper_cleanup is run atexit.
13323 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13325 * lra-constraints.c (valid_address_p): Move earlier in file.
13326 (address_eliminator): New structure.
13327 (satisfies_memory_constraint_p): New function.
13328 (satisfies_address_constraint_p): Likewise.
13329 (process_alt_operands, process_address, curr_insn_transform): Use them.
13331 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13333 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13335 (target_lra_int, default_target_lra_int, this_target_lra_int)
13336 (op_alt_data): Delete.
13337 * lra.h (lra_init): Delete.
13338 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13339 (init_insn_code_data_once): Remove op_alt_data handling.
13340 (finish_insn_code_data_once): Likewise.
13341 (init_op_alt_data): Delete.
13342 (get_static_insn_data): Initialize operand_alternative to null.
13343 (free_insn_recog_data): Cast operand_alternative before freeing it.
13344 (setup_operand_alternative): Take the operand_alternative as
13345 parameter and assume it isn't already cached in the static
13347 (lra_set_insn_recog_data): Update accordingly.
13348 (lra_init): Delete.
13349 * ira.c (ira_init): Don't call lra_init.
13350 * target-globals.h (this_target_lra_int): Declare.
13351 (target_globals): Remove lra_int.
13352 (restore_target_globals): Update accordingly.
13353 * target-globals.c: Don't include lra-int.h.
13354 (default_target_globals, save_target_globals): Remove lra_int.
13356 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13358 * recog.h (operand_alternative): Convert reg_class, reject,
13359 matched and matches into bitfields.
13360 (preprocess_constraints): New overload.
13361 (preprocess_insn_constraints): New function.
13362 (preprocess_constraints): Take the insn as parameter.
13363 (recog_op_alt): Change into a pointer.
13364 (target_recog): Add x_op_alt.
13365 * recog.c (asm_op_alt): New variable.
13366 (recog_op_alt): Change into a pointer.
13367 (preprocess_constraints): New overload, replacing the old function
13368 definition with one that doesn't use global state.
13369 (preprocess_insn_constraints): New function.
13370 (preprocess_constraints): Use them. Take the insn as parameter.
13371 Use asm_op_alt for asms.
13372 (recog_init): Free existing x_op_alt entries.
13373 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13375 (make_early_clobber_and_input_conflicts): Likewise.
13376 (process_bb_node_lives): Pass the insn to process_constraints.
13377 * reg-stack.c (check_asm_stack_operands): Likewise.
13378 (subst_asm_stack_regs): Likewise.
13379 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13380 * regrename.c (build_def_use): Likewise.
13381 * sched-deps.c (sched_analyze_insn): Likewise.
13382 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13383 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13384 (note_invalid_constants): Likewise.
13385 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13386 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13389 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13391 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13392 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13394 (make_early_clobber_and_input_conflicts): Likewise.
13395 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13397 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13399 * recog.h (alternative_class): New function.
13400 (which_op_alt): Return a const recog_op_alt.
13401 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13402 (subst_asm_stack_regs): Likewise.
13403 * config/arm/arm.c (note_invalid_constants): Likewise.
13404 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13405 the operand_alternative; use alternative class instead.
13406 * sel-sched.c (get_reg_class): Likewise.
13407 * regrename.c (build_def_use): Likewise.
13408 (hide_operands, restore_operands, record_out_operands): Update type
13411 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13413 * recog.h (recog_op_alt): Convert to a flat array.
13414 (which_op_alt): New function.
13415 * recog.c (recog_op_alt): Convert to a flat array.
13416 (preprocess_constraints): Update accordingly, grouping all
13417 operands of the same alternative together, rather than the
13419 * ira-lives.c (check_and_make_def_conflict): Likewise.
13420 (make_early_clobber_and_input_conflicts): Likewise.
13421 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13422 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13423 (subst_asm_stack_regs): Likewise.
13424 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13425 * regrename.c (hide_operands, record_out_operands): Likewise.
13426 (build_def_use): Likewise.
13427 * sel-sched.c (get_reg_class): Likewise.
13428 * config/arm/arm.c (note_invalid_constants): Likewise.
13430 2014-06-04 Jason Merrill <jason@redhat.com>
13434 * gimplify.c (gimplify_arg): Non-static.
13435 * gimplify.h: Declare it.
13437 2014-06-04 Richard Biener <rguenther@suse.de>
13439 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13440 TREE_PUBLIC and DECL_EXTERNAL decls.
13442 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13444 * regcprop.c (copyprop_hardreg_forward_1): Account for
13445 HARD_REGNO_CALL_PART_CLOBBERED.
13447 2014-06-04 Richard Biener <rguenther@suse.de>
13449 * configure.ac: Check whether the underlying type of int64_t
13450 is long or long long.
13451 * configure: Regenerate.
13452 * config.in: Likewise.
13453 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13454 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13456 2014-06-04 Richard Biener <rguenther@suse.de>
13458 PR tree-optimization/60098
13459 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13461 (dse_optimize_stmt): Simplify, now that we found a kill
13464 2014-06-04 Richard Biener <rguenther@suse.de>
13466 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13467 of accesses with non-invariant address.
13469 2014-06-04 Martin Liska <mliska@suse.cz>
13471 * cgraph.h (cgraph_make_wrapper): New function introduced.
13472 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13473 * ipa-inline.h (inline_analyze_function): The function is global.
13474 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13476 2014-06-04 Martin Liska <mliska@suse.cz>
13478 * tree.h (private_lookup_attribute_starting): New function.
13479 (lookup_attribute_starting): Likewise.
13480 * tree.c (private_lookup_attribute_starting): Likewise.
13482 2014-06-04 Martin Liska <mliska@suse.cz>
13484 * cgraph.h (expand_thunk): New argument added.
13485 (address_taken_from_non_vtable_p): New global function.
13486 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13487 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13488 * cgraphunit.c (analyze_function): Likewise.
13489 (assemble_thunks_and_aliases): Argument added to call.
13490 (expand_thunk): New argument forces to produce GIMPLE thunk.
13492 2014-06-04 Martin Liska <mliska@suse.cz>
13494 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13495 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13496 * profile.c (branch_prob): Likewise.
13498 2014-06-04 Martin Jambor <mjambor@suse.cz>
13501 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13502 handler for switch on an ipa_ref_use enum.
13503 * ipa-reference.c (analyze_function): Likewise.
13505 2014-06-04 Kai Tietz <ktietz@redhat.com>
13507 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13508 from old call-instruction.
13510 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13512 * config/aarch64/aarch64.c (aarch64_classify_address)
13513 (aarch64_legitimize_reload_address): Support full addressing modes
13515 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13516 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13518 2014-06-03 Andrew Pinski <apinski@cavium.com>
13520 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13523 2014-06-03 Andrew Pinski <apinski@cavium.com>
13525 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13526 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13528 2014-06-03 Kai Tietz <ktietz@redhat.com>
13530 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13533 2014-06-03 Dehao Chen <dehao@google.com>
13535 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13538 2014-06-03 Marek Polacek <polacek@redhat.com>
13541 * doc/invoke.texi: Document -Wswitch-bool.
13542 * function.c (stack_protect_epilogue): Cast controlling expression of
13544 * gengtype.c (walk_type): Generate switch expression with its
13545 controlling expression cast to int.
13547 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13549 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13551 * config/avr/avr-tables.opt: Regenerate.
13552 * config/avr/t-multilib: Regenerate.
13553 * doc/avr-mmcu.texi: Regenerate.
13555 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13556 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13558 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13559 (ata6617c, ata664251): Add new avr35 devices.
13560 (ata6612c): Add new avr4 device.
13561 (ata6613c, ata6614q): Add new avr5 devices.
13562 * config/avr/avr-tables.opt: Regenerate.
13563 * config/avr/t-multilib: Regenerate.
13564 * doc/avr-mmcu.texi: Regenerate.
13566 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13568 * gcc/config/aarch64/aarch64-builtins.c
13569 (aarch64_types_binop_ssu_qualifiers): New static data.
13570 (TYPES_BINOP_SSU): Define.
13571 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13572 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13573 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13574 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13575 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13576 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13577 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13578 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13579 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13580 suffix to builtin function name, remove cast.
13581 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13582 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13583 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13585 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13587 * gcc/config/aarch64/aarch64-builtins.c
13588 (aarch64_types_binop_uus_qualifiers,
13589 aarch64_types_shift_to_unsigned_qualifiers,
13590 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13591 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13592 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13593 sqshlu_n, uqshl_n): Update qualifiers.
13594 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13595 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13596 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13597 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13598 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13599 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13600 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13601 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13602 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13603 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13604 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13605 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13606 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13607 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13608 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13609 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13610 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13611 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13612 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13613 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13614 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13615 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13616 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13617 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13618 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13619 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13620 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13622 2014-06-03 Teresa Johnson <tejohnson@google.com>
13624 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13626 2014-06-02 Jason Merrill <jason@redhat.com>
13629 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13631 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13633 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13636 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13638 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13640 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13641 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13642 * config/aarch64/iterators.md (REVERSE): New iterator.
13643 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13644 (rev_op): New int_attribute.
13645 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13646 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13647 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13648 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13649 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13650 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13651 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13652 Replace temporary __asm__ with __builtin_shuffle.
13654 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13656 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13658 * config/mips/mips-tables.opt: Regenerate.
13659 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13660 to use mips_isa_rev rather than ISA_MIPS32R2.
13661 * config/mips/mips.h (ISA_MIPS32R3): New define.
13662 (ISA_MIPS32R5): New define.
13663 (ISA_MIPS64R3): New define.
13664 (ISA_MIPS64R5): New define.
13665 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13666 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13667 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13669 (MIPS_ISA_SYNCI_SPEC): Likewise.
13670 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13671 (LINK_SPEC): Added mips32r3 and mips32r5.
13672 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13673 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13674 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13675 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13676 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13677 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13678 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13680 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13682 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13684 * config/mips/mips.opt (mxpa): New option.
13685 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13688 2014-06-03 Martin Jambor <mjambor@suse.cz>
13691 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13694 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13696 PR tree-optimization/61328
13697 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13698 initialization from find_bswap_or_nop_1.
13699 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13700 in source_expr2 before using the size value the function sets. Also
13701 make use of init_symbolic_number () in both the old place and
13702 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13703 doing recursion in the GIMPLE_BINARY_RHS case.
13705 2014-06-03 Richard Biener <rguenther@suse.de>
13707 PR tree-optimization/61383
13708 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13711 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13713 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13714 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13715 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13716 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13718 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13719 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13720 * system.h: ...here and make it unconditional.
13721 * target.def (conditional_register_usage): Mention
13722 define_register_constraint instead of old-style constraint macros.
13723 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13724 * doc/tm.texi: Regenerate.
13725 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13726 protected by !USE_MD_CONSTRAINTS.
13727 * config/frv/frv.md: Remove quote from old version of documentation.
13728 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13729 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13730 CONST_DOUBLE_OK_FOR_LETTER.
13731 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13733 2014-06-02 Andrew Pinski <apinski@cavium.com>
13735 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13736 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13737 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13738 file whose name depends on -mabi= and -mbig-endian.
13739 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13740 Handle LP64 better and handle ilp32 too.
13741 (MULTILIB_OPTIONS): Delete.
13742 (MULTILIB_DIRNAMES): Delete.
13744 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13746 * expr.h: Remove prototypes of functions defined in builtins.c.
13747 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13748 Remove prototypes of functions defined in builtins.c.
13749 * builtins.h: Update prototype list to include all exported functions.
13750 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13751 no_c99_libc_has_function): Move to targhooks.c
13752 (build_string_literal, build_call_expr_loc_array,
13753 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13755 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13756 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13757 no_c99_libc_has_function): Relocate from builtins.c.
13758 * tree.c: Include builtins.h.
13759 (build_call_expr_loc_array, build_call_expr_loc_vec,
13760 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13762 * fold-const.h (fold_fma): Move prototype to builtins.h.
13763 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13764 * asan.c: Include builtins.h.
13765 * cfgexpand.c: Likewise.
13766 * convert.c: Likewise.
13767 * emit-rtl.c: Likewise.
13768 * except.c: Likewise.
13769 * expr.c: Likewise.
13770 * fold-const.c: Likewise.
13771 * gimple-fold.c: Likewise.
13772 * gimple-ssa-strength-reduction.c: Likewise.
13773 * gimplify.c: Likewise.
13774 * ipa-inline.c: Likewise.
13775 * ipa-prop.c: Likewise.
13776 * lto-streamer-out.c: Likewise.
13777 * stmt.c: Likewise.
13778 * tree-inline.c: Likewise.
13779 * tree-object-size.c: Likewise.
13780 * tree-sra.c: Likewise.
13781 * tree-ssa-ccp.c: Likewise.
13782 * tree-ssa-forwprop.c: Likewise.
13783 * tree-ssa-loop-ivcanon.c: Likewise.
13784 * tree-ssa-loop-ivopts.c: Likewise.
13785 * tree-ssa-math-opts.c: Likewise.
13786 * tree-ssa-reassoc.c: Likewise.
13787 * tree-ssa-threadedge.c: Likewise.
13788 * tree-streamer-in.c: Likewise.
13789 * tree-vect-data-refs.c: Likewise.
13790 * tree-vect-patterns.c: Likewise.
13791 * tree-vect-stmts.c: Likewise.
13792 * config/aarch64/aarch64.c: Likewise.
13793 * config/alpha/alpha.c: Likewise.
13794 * config/arc/arc.c: Likewise.
13795 * config/arm/arm.c: Likewise.
13796 * config/avr/avr.c: Likewise.
13797 * config/bfin/bfin.c: Likewise.
13798 * config/c6x/c6x.c: Likewise.
13799 * config/cr16/cr16.c: Likewise.
13800 * config/cris/cris.c: Likewise.
13801 * config/epiphany/epiphany.c: Likewise.
13802 * config/fr30/fr30.c: Likewise.
13803 * config/frv/frv.c: Likewise.
13804 * config/h8300/h8300.c: Likewise.
13805 * config/i386/i386.c: Likewise.
13806 * config/i386/winnt.c: Likewise.
13807 * config/ia64/ia64.c: Likewise.
13808 * config/iq2000/iq2000.c: Likewise.
13809 * config/lm32/lm32.c: Likewise.
13810 * config/m32c/m32c.c: Likewise.
13811 * config/m32r/m32r.c: Likewise.
13812 * config/m68k/m68k.c: Likewise.
13813 * config/mcore/mcore.c: Likewise.
13814 * config/mep/mep.c: Likewise.
13815 * config/microblaze/microblaze.c: Likewise.
13816 * config/mips/mips.c: Likewise.
13817 * config/mmix/mmix.c: Likewise.
13818 * config/mn10300/mn10300.c: Likewise.
13819 * config/moxie/moxie.c: Likewise.
13820 * config/msp430/msp430.c: Likewise.
13821 * config/nds32/nds32.c: Likewise.
13822 * config/pa/pa.c: Likewise.
13823 * config/pdp11/pdp11.c: Likewise.
13824 * config/picochip/picochip.c: Likewise.
13825 * config/rl78/rl78.c: Likewise.
13826 * config/rs6000/rs6000.c: Likewise.
13827 * config/rx/rx.c: Likewise.
13828 * config/s390/s390.c: Likewise.
13829 * config/score/score.c: Likewise.
13830 * config/sh/sh.c: Likewise.
13831 * config/sparc/sparc.c: Likewise.
13832 * config/spu/spu.c: Likewise.
13833 * config/stormy16/stormy16.c: Likewise.
13834 * config/tilegx/tilegx.c: Likewise.
13835 * config/tilepro/tilepro.c: Likewise.
13836 * config/v850/v850.c: Likewise.
13837 * config/vax/vax.c: Likewise.
13838 * config/xtensa/xtensa.c: Likewise.
13840 2014-06-02 Jeff Law <law@redhat.com>
13842 PR rtl-optimization/61094
13843 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13844 was marked as do_no_reextend. If a copy is needed to eliminate
13845 an extension, then mark it as do_not_reextend.
13847 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13849 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13851 2014-06-02 Richard Henderson <rth@redhat.com>
13854 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13855 addresses inside asms. Use output_operand_lossage instead of
13858 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13861 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13862 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13864 2014-06-02 Tom de Vries <tom@codesourcery.com>
13866 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13867 case that x has VOIDmode.
13869 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13871 * varasm.c (copy_constant): Delete function.
13872 (build_constant_desc): Don't call it.
13874 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13877 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13878 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13879 with immediate_operand.
13881 2014-06-02 Andreas Schwab <schwab@suse.de>
13883 * config/ia64/ia64.c
13884 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13885 pending_data_specs first.
13887 2014-06-02 Richard Biener <rguenther@suse.de>
13889 PR tree-optimization/61378
13890 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13891 valueized_anything.
13893 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13895 * config/i386/constraints.md (Bw): Rename from 'w'.
13896 (Bz): Rename from 'z'.
13897 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13899 2014-06-01 Kai Tietz <ktietz@redhat.com>
13902 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13903 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13904 instead of m constraint.
13906 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13908 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13909 a separate alternative where the scratch operand 2 is marked as
13912 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13914 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13915 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13916 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13917 and __builtins_arm_get_fpscr.
13918 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13919 __builtins_arm_get_fpscr.
13920 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13921 __builtins_arm_ldfpscr.
13922 (arm_atomic_assign_expand_fenv): New function.
13923 * config/arm/vfp.md (set_fpscr): New pattern.
13924 (get_fpscr) : Likewise.
13925 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13927 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13928 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13930 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13932 * asan.c (report_error_func): Add SLOW_P argument, use
13933 BUILT_IN_ASAN_*_N if set.
13934 (build_check_stmt): Likewise.
13935 (instrument_derefs): If T has insufficient alignment,
13936 force same handling as for odd sizes.
13938 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13939 BUILT_IN_ASAN_REPORT_STORE_N): New.
13940 * asan.c (struct asan_mem_ref): Change access_size type to
13942 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13943 update_mem_ref_hash_table): Likewise.
13944 (asan_mem_ref_hasher::hash): Hash in a HWI.
13945 (report_error_func): Change size_in_bytes argument to HWI.
13946 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13948 (build_shadow_mem_access): New function.
13949 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13950 Handle size_in_bytes not power of two or larger than 16.
13951 (instrument_derefs): Don't give up if size_in_bytes is not
13952 power of two or is larger than 16.
13954 2014-05-30 Kai Tietz <ktietz@redhat.com>
13957 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13958 for sibling-tail-calls.
13959 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13961 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13962 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13964 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13966 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13967 * config/avr/avr-tables.opt: Regenerate.
13968 * config/avr/t-multilib: Regenerate.
13969 * doc/avr-mmcu.texi: Regenerate.
13971 2014-05-30 Ian Lance Taylor <iant@google.com>
13973 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13976 2014-05-30 Tom de Vries <tom@codesourcery.com>
13978 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13981 2014-05-30 Tom de Vries <tom@codesourcery.com>
13983 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13984 * lra.c (initialize_lra_reg_info_element): Add init of
13985 actual_call_used_reg_set field.
13986 (lra): Call lra_create_live_ranges before lra_inheritance for
13988 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13990 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13991 instead of call_used_reg_set for -fuse-caller-save.
13992 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13994 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13996 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13998 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14000 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14002 * ira.c (ira_get_dup_out_num): Check for output operands at
14003 the start of the loop. Handle cases where an included alternative
14004 follows an excluded one.
14006 2014-05-29 Mike Stump <mikestump@comcast.net>
14009 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14010 post ld passes when lto is used.
14012 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14014 PR rtl-optimization/61325
14015 * lra-constraints.c (process_address): Rename to process_address_1.
14016 (process_address): New function.
14018 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14020 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14021 TYPES_BINOPV): New static data.
14022 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14024 * config/aarch64/aarch64-simd.md (aarch64_ext,
14025 aarch64_im_lane_boundsi): New patterns.
14026 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14028 (aarch64_evpc_ext): New function.
14030 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14032 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14033 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14034 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14035 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14036 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14038 2014-05-29 Tom de Vries <tom@codesourcery.com>
14040 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14042 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14043 Richard Sandiford <rdsandiford@googlemail.com>
14045 * arm/iterators.md (shiftable_ops): New code iterator.
14046 (t2_binop0, arith_shift_insn): New code attributes.
14047 * arm/predicates.md (shift_nomul_operator): New predicate.
14048 * arm/arm.md (insn_enabled): Delete.
14049 (enabled): Remove insn_enabled test.
14050 (*arith_shiftsi): Delete. Replace with ...
14051 (*<arith_shift_insn>_multsi): ... new pattern.
14052 (*<arith_shift_insn>_shiftsi): ... new pattern.
14053 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14055 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14056 Tom de Vries <tom@codesourcery.com>
14058 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14059 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14061 (mips_split_call): Use POST_CALL_TMP_REG.
14062 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14064 2014-05-29 Tom de Vries <tom@codesourcery.com>
14066 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14067 with #ifdef STACK_REGS.
14069 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14071 * varasm.c (get_variable_section): Walk aliases.
14072 (place_block_symbol): Walk aliases.
14074 2014-05-28 Tom de Vries <tom@codesourcery.com>
14077 2014-05-28 Tom de Vries <tom@codesourcery.com>
14079 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14080 * lra.c (initialize_lra_reg_info_element): Add init of
14081 actual_call_used_reg_set field.
14082 (lra): Call lra_create_live_ranges before lra_inheritance for
14084 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14086 * lra-constraints.c (need_for_call_save_p): Use
14087 actual_call_used_reg_set instead of call_used_reg_set for
14089 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14091 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14093 * doc/md.texi: Document that the % constraint character must
14094 be at the beginning of the string.
14095 * genoutput.c (validate_insn_alternatives): Check that '=',
14096 '+' and '%' only appear at the beginning of a constraint.
14097 * ira.c (commutative_constraint_p): Delete.
14098 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14099 at the start of the string.
14100 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14102 * config/arm/neon.md (bicdi3_neon): Likewise.
14103 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14104 (slt_si, sltu_si): Likewise.
14105 * config/vax/vax.md (sbcdi3): Likewise.
14106 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14107 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14108 (mul64): Move '%' to beginning of constraint.
14109 * config/arm/arm.md (*xordi3_insn): Likewise.
14110 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14111 (xorsi3): Likewise.
14113 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14115 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14117 2014-05-28 Jason Merrill <jason@redhat.com>
14120 * cgraph.h (symtab_node::get_comdat_group_id): New.
14121 * cgraphunit.c (analyze_functions): Call it.
14122 * symtab.c (dump_symtab_node): Likewise.
14123 * tree.c (decl_comdat_group_id): New.
14124 * tree.h: Declare it.
14125 * lto-streamer-out.c (write_symbol): Use it.
14126 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14128 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14130 PR bootstrap/PR61146
14131 * wide-int.cc: Do not include longlong.h when compiling with clang.
14133 2014-05-28 Richard Biener <rguenther@suse.de>
14135 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14136 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14137 (vrp_visit_assignment_or_call): Print less vertical space.
14138 (vrp_visit_stmt): Likewise.
14139 (vrp_visit_phi_node): Likewise. For a PHI argument with
14140 VR_VARYING range consider recording it as copy.
14142 2014-05-28 Richard Biener <rguenther@suse.de>
14145 2014-05-28 Richard Biener <rguenther@suse.de>
14147 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14149 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14151 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14152 sufficiently aligned and an offset is used at the same time.
14153 (expand_expr_real_1): Likewise.
14155 2014-05-28 Richard Biener <rguenther@suse.de>
14157 PR middle-end/61045
14158 * fold-const.c (fold_comparison): When folding
14159 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14160 the sign of the remaining constant operand stays the same.
14162 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14164 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14165 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14166 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14168 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14169 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14170 (m32bit-doubles) Likewise.
14171 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14172 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14175 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14177 * configure.ac ($gcc_cv_ld_clearcap): New test.
14178 * configure: Regenerate.
14179 * config.in: Regenerate.
14180 * config/sol2.opt (mclear-hwcap): New option.
14181 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14182 * config/sol2-clearcap.map: Moved here from
14183 testsuite/gcc.target/i386/clearcap.map.
14184 * config/sol2-clearcapv2.map: Move here from
14185 gcc.target/i386/clearcapv2.map.
14186 * config/t-sol2 (install): Depend on install-clearcap-map.
14187 (install-clearcap-map): New target.
14188 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14191 2014-05-28 Richard Biener <rguenther@suse.de>
14193 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14194 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14195 ... here and remove the rest.
14196 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14198 2014-05-28 Richard Biener <rguenther@suse.de>
14200 PR tree-optimization/61335
14201 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14202 new range fails, drop to varying.
14204 2014-05-28 Olivier Hainque <hainque@adacore.com>
14206 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14207 (CPP_SPEC): Add entry for -mcpu=8548.
14208 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14209 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14211 2014-05-28 Tom de Vries <tom@codesourcery.com>
14213 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14214 * lra.c (initialize_lra_reg_info_element): Add init of
14215 actual_call_used_reg_set field.
14216 (lra): Call lra_create_live_ranges before lra_inheritance for
14218 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14220 * lra-constraints.c (need_for_call_save_p): Use
14221 actual_call_used_reg_set instead of call_used_reg_set for
14223 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14225 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14226 Tom de Vries <tom@codesourcery.com>
14228 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14230 (@item -fuse-caller-save): New item.
14232 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14233 Tom de Vries <tom@codesourcery.com>
14235 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14236 OPT_fuse_caller_save.
14238 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14239 Tom de Vries <tom@codesourcery.com>
14241 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14242 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14243 get_call_reg_set_usage.
14244 * resource.c (mark_set_resources, mark_target_live_regs): Use
14245 get_call_reg_set_usage.
14246 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14248 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14249 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14250 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14251 * ira-build.c (ira_create_allocno): Init
14252 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14253 (create_cap_allocno, propagate_allocno_info)
14254 (propagate_some_info_from_allocno)
14255 (copy_info_to_removed_store_destinations): Handle
14256 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14257 * ira-costs.c (ira_tune_allocno_costs): Use
14258 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14260 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14261 Tom de Vries <tom@codesourcery.com>
14263 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14264 and function_used_regs_valid fields.
14265 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14266 find_all_hard_reg_sets.
14267 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14268 (get_call_reg_set_usage): New function.
14269 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14270 * regs.h (get_call_reg_set_usage): Declare.
14272 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14275 * config/dbx.h (License): Add Runtime Library Exception.
14276 * config/newlib-stdint.h (License): Same.
14277 * config/rtems.h (License): Same
14278 * config/initfini-array.h (License): Same
14279 * config/v850/v850.h (License): Same.
14280 * config/v850/v850-opts.h (License): Same
14281 * config/v850/rtems.h (License): Same.
14283 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14286 * doc/extend.texi (Local Labels): Note that label differences are
14287 not supported for AVR.
14289 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14290 Olivier Hainque <hainque@adacore.com>
14292 * rtl.h (set_for_reg_notes): Declare.
14293 * emit-rtl.c (set_for_reg_notes): New function.
14294 (set_unique_reg_note): Use it.
14295 * optabs.c (add_equal_note): Likewise
14297 2014-05-27 Andrew Pinski <apinski@cavium.com>
14299 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14300 Use <w> for the register in assembly template.
14301 (stack_protect_test): Use the mode of operands[0] for the result.
14302 (stack_protect_test_<mode>): Use <w> for the register
14303 in assembly template.
14305 2014-05-27 DJ Delorie <dj@redhat.com>
14307 * config/rx/rx.c (add_vector_labels): New.
14308 (rx_output_function_prologue): Call it.
14309 (rx_handle_func_attribute): Don't require empty arguments.
14310 (rx_handle_vector_attribute): New.
14311 (rx_attribute_table): Add "vector" attribute.
14312 * doc/extend.texi (interrupt, vector): Document new/changed
14313 RX-specific attributes.
14315 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14317 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14319 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14320 predicate to detect a negative quotient.
14322 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14324 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14325 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14326 Add X - Y CMP 0 to X CMP Y transformation.
14327 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14329 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14331 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14334 2014-05-27 Steve Ellcey <sellcey@mips.com>
14336 * config/mips/mips.c: Add include of cgraph.h.
14338 2014-05-27 Richard Biener <rguenther@suse.de>
14340 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14342 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14345 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14346 * config/arm/arm-cores.def (License): Same.
14347 * config/arm/arm-opts.h (License): Same.
14348 * config/arm/aout.h (License): Same.
14349 * config/arm/bpabi.h (License): Same.
14350 * config/arm/elf.h (License): Same.
14351 * config/arm/linux-elf.h (License): Same.
14352 * config/arm/linux-gas.h (License): Same.
14353 * config/arm/netbsd-elf.h (License): Same.
14354 * config/arm/uclinux-eabi.h (License): Same.
14355 * config/arm/uclinux-elf.h (License): Same.
14356 * config/arm/vxworks.h (License): Same.
14358 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14360 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14361 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14362 (arm_init_neon_builtins): Handle NEON_BSWAP.
14363 Define required type nodes.
14364 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14365 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14366 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14367 * config/arm/iterators.md (VDQHSD): New mode iterator.
14369 2014-05-27 Richard Biener <rguenther@suse.de>
14371 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14372 Try using literal operands when comparing value-ranges failed.
14374 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14376 * ira.c (commutative_operand): Adjust for change to recog_data.
14377 [Missing from previous commit.]
14379 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14381 * system.h (TEST_BIT): New macro.
14382 * recog.h (alternative_mask): New type.
14383 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14384 (recog_data_d): Replace alternative_enabled_p array with
14385 enabled_alternatives.
14386 (target_recog): New structure.
14387 (default_target_recog, this_target_recog): Declare.
14388 (get_enabled_alternatives, recog_init): Likewise.
14389 * recog.c (default_target_recog, this_target_recog): New variables.
14390 (get_enabled_alternatives): New function.
14391 (extract_insn): Use it.
14392 (recog_init): New function.
14393 (preprocess_constraints, constrain_operands): Adjust for change to
14395 * postreload.c (reload_cse_simplify_operands): Likewise.
14396 * reload.c (find_reloads): Likewise.
14397 * ira-costs.c (record_reg_classes): Likewise.
14398 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14399 all alternatives after a disabled one would be skipped.
14400 (ira_implicitly_set_insn_hard_regs): Likewise.
14401 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14402 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14403 with enabled_alternatives.
14404 * lra.c (free_insn_recog_data): Update accordingly.
14405 (lra_update_insn_recog_data): Likewise.
14406 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14407 * lra-constraints.c (process_alt_operands): Likewise. Handle
14408 only_alternative as part of the enabled mask.
14409 * target-globals.h (this_target_recog): Declare.
14410 (target_globals): Add a recog field.
14411 (restore_target_globals): Restore this_target_recog.
14412 * target-globals.c: Include recog.h.
14413 (default_target_globals): Initialize recog field.
14414 (save_target_globals): Likewise.
14415 * reginfo.c (reinit_regs): Call recog_init.
14416 * toplev.c (backend_init_target): Likewise.
14418 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14420 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14421 rather than any named insn's code.
14423 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14426 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14427 * config/arm/arm-cores.def (License): Same.
14429 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14431 * tree.h (decl_comdat_group): Declare.
14432 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14433 * tree.c (decl_comdat_group): Here.
14435 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14437 PR rtl-optimization/61222
14438 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14439 the shift, truncate the PLUS operand to the result mode.
14441 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14444 * config/i386/i386.c (ix86_rtx_costs)
14445 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14448 2014-05-26 Martin Jambor <mjambor@suse.cz>
14450 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14453 2014-05-26 Richard Biener <rguenther@suse.de>
14455 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14456 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14457 Provide specializations.
14458 (wi::int_traits <HOST_WIDE_INT>,
14459 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14461 2014-05-26 Alan Modra <amodra@gmail.com>
14464 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14465 params and return a bool. Remove dead code. Update comment.
14466 Assert we have a const_int source. Remove bogus code from
14467 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14468 handling of constants > 2G and reg_equal note, from..
14469 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14470 return value. Update comment. If we can, use a new pseudo
14471 for intermediate calculations.
14472 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14474 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14475 call to rs6000_emit_set_const in splitter.
14476 (movdi_internal64+2, +3): Likewise.
14478 2014-05-26 Richard Biener <rguenther@suse.de>
14480 * system.h: Define __STDC_FORMAT_MACROS before
14481 including inttypes.h.
14482 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14483 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14484 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14485 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14486 HOST_WIDEST_INT_C): Remove.
14487 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14488 if C99 inttypes.h is not available.
14489 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14490 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14491 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14492 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14493 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14494 (struct output_info): Likewise.
14495 (print_statistics): Adjust.
14496 (dump_bitmap_statistics): Likewise.
14497 * bt-load.c (migrate_btr_defs): Print with PRId64.
14498 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14499 (MAX_SAFE_MULTIPLIER): Adjust.
14500 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14501 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14502 dump_cgraph_node): Likewise.
14503 * final.c (dump_basic_block_info): Likewise.
14504 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14505 * gcov.c (format_gcov): Likewise.
14506 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14508 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14509 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14510 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14511 Use PRId64 for dumping.
14512 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14513 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14514 (add_allocno_hard_regs): Adjust.
14515 * loop-doloop.c (doloop_modify): Print using PRId64.
14516 * loop-iv.c (inverse): Compute in uint64_t.
14517 (determine_max_iter, iv_number_of_iterations): Likewise.
14518 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14519 Print using PRId64.
14520 * lto-streamer-out.c (write_symbol): Use uint64_t.
14521 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14522 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14523 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14524 * modulo-sched.c (const_iteration_count): Use int64_t.
14525 (sms_schedule): Dump using PRId64.
14526 * predict.c (dump_prediction): Likewise.
14527 * pretty-print.h (pp_widest_integer): Remove.
14528 * profile.c (get_working_sets, is_edge_inconsistent,
14529 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14530 * tree-pretty-print.c (pp_double_int): Remove case handling
14531 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14532 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14534 (pass_optimize_bswap::execute): Remove restriction on hosts.
14535 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14536 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14537 * tree.c (widest_int_cst_value): Remove.
14538 * tree.h (widest_int_cst_value): Likewise.
14539 * value-prof.c (dump_histogram_value): Print using PRId64.
14540 * gengtype.c (main): Also inject int64_t.
14541 * ggc-page.c (struct max_alignment): Use int64_t.
14542 * alloc-pool.c (struct allocation_object_def): Likewise.
14543 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14545 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14546 * doc/tm.texi: Regenerated.
14547 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14548 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14549 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14550 mmix_output_register_setting): Use [u]int64_t in prototypes.
14551 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14552 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14553 mmix_output_octa, mmix_output_shifted_value): Adjust.
14554 (mmix_intval): Adjust. Remove unreachable case.
14555 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14557 2014-05-26 Richard Biener <rguenther@suse.de>
14559 * configure.ac: Drop __int64 type check. Insist that we
14560 found uint64_t and int64_t.
14561 * hwint.h (HOST_BITS_PER___INT64): Remove.
14562 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14563 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14564 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14565 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14566 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14567 for dst_q_src_df_rms_cdt.
14568 * configure: Regenerate.
14569 * config.in: Likewise.
14571 2014-05-26 Michael Tautschnig <mt@debian.org>
14574 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14575 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14577 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14579 PR rtl-optimization/61278
14580 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14582 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14584 PR rtl-optimization/61220
14585 Part of PR rtl-optimization/61225
14586 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14587 insn; skip split_edge for a block with only one successor.
14589 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14591 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14594 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14596 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14597 (update_vtable_references): New function.
14598 (function_and_variable_visibility): Rewrite also vtable initializers.
14599 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14601 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14603 * ggc.h (ggc_grow): New function.
14604 * ggc-none.c (ggc_grow): New function.
14605 * ggc-page.c (ggc_grow): Likewise.
14607 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14609 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14610 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14611 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14612 varpool_externally_visible_p, can_replace_by_local_alias,
14613 update_visibility_by_resolution_info, function_and_variable_visibility,
14614 pass_data_ipa_function_and_variable_visibility,
14615 make_pass_ipa_function_and_variable_visibility,
14616 whole_program_function_and_variable_visibility,
14617 pass_data_ipa_whole_program_visibility,
14618 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14619 * cgraph.h (cgraph_local_node_p): Declare.
14620 * ipa-visibility.c: New file.
14621 * Makefile.in (OBJS): Add ipa-visiblity.o
14623 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14625 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14626 that var decl is available.
14628 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14630 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14631 symtab_node pointer.
14632 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14633 (find_decls_types_r): Do not walk COMDAT_GROUP.
14634 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14635 * varasm.c (make_decl_one_only): Use set_comdat_group;
14636 create node if needed.
14637 * ipa-inline-transform.c (save_inline_function_body): Update
14638 way we decl->symtab mapping.
14639 * symtab.c (symtab_hash, hash_node, eq_node
14640 symtab_insert_node_to_hashtable): Remove.
14641 (symtab_register_node): Update.
14642 (symtab_unregister_node): Update.
14643 (symtab_get_node): Reimplement as inline function.
14644 (symtab_add_to_same_comdat_group): Update.
14645 (symtab_dissolve_same_comdat_group_list): Update.
14646 (dump_symtab_base): Update.
14647 (verify_symtab_base): Update.
14648 (symtab_make_decl_local): Update.
14649 (fixup_same_cpp_alias_visibility): Update.
14650 (symtab_nonoverwritable_alias): Update.
14651 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14652 * ipa.c (update_visibility_by_resolution_info): UPdate.
14653 * bb-reorder.c: Include cgraph.h
14654 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14655 with comdat groups.
14656 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14657 * cgraph.c (cgraph_get_create_node): Update.
14658 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14660 (symtab_get_node): Make inline.
14661 (symtab_insert_node_to_hashtable): Remove.
14662 (symtab_can_be_discarded): Update.
14663 (decl_comdat_group): New function.
14664 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14666 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14668 (read_comdat_group): New function.
14669 (input_node, input_varpool_node): Use it.
14670 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14672 * mips.c (mips_start_unique_function): Likewise.
14673 (ix86_code_end): Likewise.
14674 (rs6000_code_end): Likweise.
14675 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14677 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14679 * gengtype-state.c (fatal_reading_state): Bring offline.
14680 * optabs.c (widening_optab_handler): Bring offline.
14681 * optabs.h (widening_optab_handler): Likewise.
14682 * final.c (get_attr_length_1): Likewise.
14684 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14686 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14688 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14690 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14691 (ppc440-compare): Include shift with dot.
14692 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14693 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14695 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14697 (e6500_sfx2): Include it.
14698 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14699 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14700 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14701 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14702 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14703 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14704 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14705 *lshiftrt_internal1le, *lshiftrt_internal1be,
14706 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14707 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14708 *rotldi3_internal10le, *rotldi3_internal10be,
14709 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14710 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14711 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14712 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14713 define_insns): Use type "shift" in the appropriate alternatives.
14715 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14717 * config/rs6000/rs6000.md (type): Add "logical". Delete
14719 (dot): Adjust comment.
14720 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14721 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14722 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14723 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14724 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14725 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14726 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14727 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14729 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14730 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14731 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14732 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14733 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14734 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14735 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14736 * config/rs6000/8540.md (ppc8540_su): Adjust.
14737 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14738 cell-cmp-microcoded): Adjust.
14739 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14740 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14741 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14742 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14743 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14744 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14745 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14746 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14747 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14749 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14750 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14751 Adjust. Adjust comment.
14752 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14753 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14755 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14757 * config/rs6000/rs6000.md (type): Add "add".
14758 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14759 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14760 define_insns): Use it.
14761 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14763 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14764 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14765 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14766 * config/rs6000/601.md (ppc601-integer): Adjust.
14767 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14768 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14769 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14770 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14771 * config/rs6000/8540.md (ppc8540_su): Adjust.
14772 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14773 cell-cmp-microcoded): Adjust.
14774 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14775 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14776 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14777 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14778 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14779 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14780 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14781 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14782 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14784 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14785 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14786 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14787 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14789 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14791 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14792 "delayed_compare", "var_delayed_compare".
14793 (var_shift): New attribute.
14794 (cell_micro): Adjust.
14795 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14796 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14797 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14798 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14799 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14800 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14801 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14802 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14803 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14804 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14805 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14806 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14807 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14808 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14809 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14810 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14811 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14812 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14813 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14814 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14815 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14816 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14817 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14818 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14819 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14821 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14822 * config/rs6000/440.md (ppc440-integer): Adjust.
14823 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14824 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14825 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14826 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14827 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14828 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14829 * config/rs6000/8540.md (ppc8540_su): Adjust.
14830 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14831 cell-cmp-microcoded): Adjust.
14832 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14833 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14834 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14835 e500mc64_delayed): Adjust.
14836 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14837 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14838 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14839 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14840 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14841 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14842 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14843 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14844 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14846 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14847 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14849 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14851 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14852 (bits): New mode_attr.
14853 (idiv_ldiv): Delete mode_attr.
14854 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14855 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14856 rs6000_adjust_priority, is_nonpipeline_insn,
14857 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14859 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14860 * config/rs6000/440.md (ppc440-idiv): Adjust.
14861 * config/rs6000/476.md (ppc476-idiv): Adjust.
14862 * config/rs6000/601.md (ppc601-idiv): Adjust.
14863 * config/rs6000/603.md (ppc603-idiv): Adjust.
14864 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14865 ppc620-ldiv): Adjust.
14866 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14867 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14868 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14869 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14870 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14871 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14872 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14873 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14874 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14875 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14876 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14877 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14878 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14879 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14880 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14881 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14882 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14883 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14885 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14887 * config/rs6000/rs6000.md (type): Delete "insert_word",
14888 "insert_dword". Add "insert".
14889 (size): Update comment.
14890 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14891 insn_must_be_first_in_group): Adjust.
14892 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14893 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14894 *insvsi_internal6, insvdi_internal): Adjust.
14896 * config/rs6000/40x.md (ppc403-integer): Adjust.
14897 * config/rs6000/440.md (ppc440-integer): Adjust.
14898 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14899 * config/rs6000/601.md (ppc601-integer): Adjust.
14900 * config/rs6000/603.md (ppc603-integer): Adjust.
14901 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14902 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14903 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14904 * config/rs6000/8540.md (ppc8540_su): Adjust.
14905 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14906 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14907 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14908 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14909 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14910 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14911 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14912 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14913 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14914 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14915 * config/rs6000/power7.md (power7-integer): Adjust.
14916 * config/rs6000/power8.md (power8-1cyc): Adjust.
14917 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14918 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14920 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14922 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14923 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14924 (size): New attribute.
14925 (dot): New attribute.
14926 (cell_micro): Adjust.
14927 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14928 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14929 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14930 umuldi3_highpart): Adjust.
14931 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14932 rs6000_adjust_priority, is_nonpipeline_insn,
14933 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14935 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14936 ppc405-imul3): Adjust.
14937 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14938 * config/rs6000/476.md (ppc476-imul): Adjust.
14939 * config/rs6000/601.md (ppc601-imul): Adjust.
14940 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14941 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14942 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14943 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14944 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14946 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14947 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14948 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14949 cell-imul): Adjust.
14950 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14951 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14952 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14953 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14954 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14955 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14956 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14957 power4-lmul, power4-imul, power4-imul3): Adjust.
14958 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14959 power5-lmul, power5-imul, power5-imul3): Adjust.
14960 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14961 power6-lmul, power6-imul, power6-imul3): Adjust.
14962 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14963 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14965 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14966 rs64a-lmul): Adjust.
14967 * config/rs6000/titan.md (titan_imul): Adjust.
14969 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14971 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14972 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14973 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14974 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14975 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14976 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14977 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14978 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14979 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14980 * config/rs6000/titan.md: Delete nonsensical comment.
14981 (titan_imul): Add type imul3.
14982 (titan_mulhw): Remove type imul3; add type halfmul.
14984 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14986 * config/rs6000/rs6000.md (type): Reorder, reformat.
14988 2014-05-23 Martin Jambor <mjambor@suse.cz>
14990 PR tree-optimization/53787
14991 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14992 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14993 analysis_done, update all uses.
14994 * ipa-prop.c: Include domwalk.h
14995 (param_analysis_info): Removed.
14996 (param_aa_status): New type.
14997 (ipa_bb_info): Likewise.
14998 (func_body_info): Likewise.
14999 (ipa_get_bb_info): New function.
15000 (aa_overwalked): Likewise.
15001 (find_dominating_aa_status): Likewise.
15002 (parm_bb_aa_status_for_bb): Likewise.
15003 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15004 (load_from_unmodified_param): Accept func_body_info as a parameter
15005 instead of parms_ainfo.
15006 (parm_ref_data_preserved_p): Changed to use new param AA info.
15007 (parm_ref_data_pass_through_p): Likewise.
15008 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15009 (compute_complex_assign_jump_func): Changed to use new param AA info.
15010 (compute_complex_ancestor_jump_func): Likewise.
15011 (ipa_compute_jump_functions_for_edge): Likewise.
15012 (ipa_compute_jump_functions): Removed.
15013 (ipa_compute_jump_functions_for_bb): New function.
15014 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15016 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15017 and info, moved variable declarations down.
15018 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15020 (ipa_analyze_stmt_uses): Likewise.
15021 (ipa_analyze_params_uses): Removed.
15022 (ipa_analyze_params_uses_in_bb): New function.
15023 (ipa_analyze_controlled_uses): Likewise.
15024 (free_ipa_bb_info): Likewise.
15025 (analysis_dom_walker): New class.
15026 (ipa_analyze_node): Handle node-specific forbidden analysis,
15027 initialize and free func_body_info, use dominator walker.
15028 (ipcp_modif_dom_walker): New class.
15029 (ipcp_transform_function): Create and free func_body_info, use
15030 ipcp_modif_dom_walker, moved a lot of functionality there.
15032 2014-05-23 Marek Polacek <polacek@redhat.com>
15033 Jakub Jelinek <jakub@redhat.com>
15035 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15036 * gcc.c (sanitize_spec_function): Likewise.
15037 * convert.c (convert_to_integer): Include "ubsan.h". Add
15038 floating-point to integer instrumentation.
15039 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15040 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15041 SANITIZE_NONDEFAULT.
15042 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15043 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15044 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15045 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15046 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15047 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15048 float/double/long double.
15049 (ubsan_instrument_float_cast): New function.
15050 * ubsan.h (ubsan_instrument_float_cast): Declare.
15052 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15054 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15056 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15057 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15058 Adjust for tailcalling through registers.
15059 * config/aarch64/aarch64.h (enum reg_class): New caller save
15061 (REG_CLASS_NAMES): Likewise.
15062 (REG_CLASS_CONTENTS): Likewise.
15063 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15064 Allow tailcalling without decls.
15066 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15068 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15069 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15071 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15072 gsi, and variables v_* to v*.
15074 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15076 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15078 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15080 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15081 * omp-low.c: Update accordingly.
15083 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15084 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15085 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15086 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15087 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15088 GF_OMP_TARGET_KIND_UPDATE.
15090 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15091 Explicitly enumerate the expected region types.
15093 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15096 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15097 documentation; the old documentation didn't clearly state the
15098 constraints on the contents of the pointed-to storage.
15100 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15102 Fix bootstrap error on ia64
15103 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15104 Return default value.
15106 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15108 PR tree-optimization/54733
15109 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15111 (find_bswap_or_nop_load): New.
15112 (find_bswap_1): Renamed to ...
15113 (find_bswap_or_nop_1): This. Also add support for memory source.
15114 (find_bswap): Renamed to ...
15115 (find_bswap_or_nop): This. Also add support for memory source and
15116 detection of bitwise operations equivalent to load in target
15118 (execute_optimize_bswap): Likewise. Also move its leading comment back
15119 in place and split statement transformation into ...
15120 (bswap_replace): This.
15122 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15124 PR rtl-optimization/61215
15125 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15126 simplify_gen_subreg until final substitution.
15128 2014-05-23 Alan Modra <amodra@gmail.com>
15131 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15132 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15133 Use "Y" constraint rather than "m".
15135 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15137 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15139 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15140 New function declaration.
15141 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15142 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15143 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15144 (aarch64_init_builtins) : Initialize builtins
15145 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15146 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15147 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15148 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15149 and __builtins_aarch64_set_fpsr.
15150 (aarch64_atomic_assign_expand_fenv): New function.
15151 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15152 (get_fpcr) : Likewise.
15153 (set_fpsr) : Likewise.
15154 (get_fpsr) : Likewise.
15155 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15156 and UNSPECV_SET_FPSR.
15157 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15158 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15159 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15161 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15163 PR rtl-optimization/60969
15164 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15165 constraints. Set up mem cost for NO_REGS case.
15167 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15169 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15171 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15173 * config/darwin.c: Include "lto-section-names.h".
15174 (LTO_SEGMENT_NAME): Don't define.
15175 * config/i386/winnt.c: Include "lto-section-names.h".
15176 * lto-streamer.c: Include "lto-section-names.h".
15177 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15178 * lto-wrapper.c: Include "lto-section-names.h".
15179 (LTO_SECTION_NAME_PREFIX): Don't define.
15180 * lto-section-names.h: New file.
15181 * cgraphunit.c: Include "lto-section-names.h".
15183 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15185 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15187 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15190 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15192 2014-05-22 Nick Clifton <nickc@redhat.com>
15194 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15196 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15198 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15199 -> (T)A transformation to integer types.
15201 2014-05-22 Teresa Johnson <tejohnson@google.com>
15203 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15204 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15205 (gcov_rewrite): Use gcov_nonruntime_assert.
15206 (gcov_open): Ditto.
15207 (gcov_write_words): Ditto.
15208 (gcov_write_length): Ditto.
15209 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15210 gcc_assert from IN_LIBGCOV code.
15211 (gcov_read_summary): Use gcov_error to flag profile corruption.
15212 (gcov_sync): Use gcov_nonruntime_assert.
15213 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15214 (gcov_histo_index): Use gcov_nonruntime_assert.
15215 (static void gcov_histogram_merge): Ditto.
15216 (compute_working_sets): Ditto.
15217 * gcov-io.h (gcov_nonruntime_assert): Define.
15218 (gcov_error): Define for !IN_LIBGCOV
15220 2014-05-22 Richard Biener <rguenther@suse.de>
15222 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15223 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15224 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15225 and deallocation site.
15226 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15227 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15228 passing through the incoming points-to set.
15229 (handle_lhs_call): Use flags argument instead of recomputing it.
15230 (find_func_aliases_for_call): Call handle_lhs_call with proper
15233 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15235 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15236 all padding bits in REAL_VALUE_TYPE are cleared.
15238 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15240 Cleanup and improve multipass_dfa_lookahead_guard
15241 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15242 (core2i7_first_cycle_multipass_begin,)
15243 (core2i7_first_cycle_multipass_issue,)
15244 (core2i7_first_cycle_multipass_backtrack): Update signature.
15245 * config/ia64/ia64.c
15246 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15247 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15248 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15250 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15251 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15253 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15255 * doc/tm.texi: Regenerate.
15257 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15258 * haifa-sched.c (ready_try): Make signed to allow negative values.
15259 (rebug_ready_list_1): Update.
15260 (choose_ready): Simplify.
15261 (sched_extend_ready_list): Update.
15263 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15265 Remove IA64 speculation tweaking flags
15266 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15267 speculation tuning flags.
15268 (msched-prefer-non-data-spec-insns,)
15269 (msched-prefer-non-control-spec-insns): Obsolete options.
15270 * haifa-sched.c (choose_ready): Remove handling of
15271 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15272 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15273 and PREFER_NON_DATA_SPEC.
15274 * sel-sched.c (process_spec_exprs): Remove handling of
15275 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15277 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15279 Improve scheduling debug output
15280 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15281 (advance_one_cycle): Update.
15282 (schedule_insn, queue_to_ready): Add debug printouts.
15283 (debug_ready_list_1): New static function.
15284 (debug_ready_list): Update.
15285 (max_issue): Add debug printouts.
15286 (dump_insn_stream): New static function.
15287 (schedule_block): Use it. Also better indent printouts.
15289 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15291 Fix sched_insn debug counter
15292 * haifa-sched.c (schedule_insn): Update.
15293 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15294 (save_backtrack_point, restore_backtrack_point): Update.
15295 (first_nonscheduled_insn): New static function.
15296 (queue_to_ready, choose_ready): Use it.
15297 (schedule_block): Init nonscheduled_insns_begin.
15298 (sched_emit_insn): Update.
15301 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15303 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15305 (aarch64_secondary_reload) : LikeWise.
15306 (aarch64_class_max_nregs) : Remove CORE_REGS.
15307 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15308 (REG_CLASS_NAMES) : Likewise.
15309 (REG_CLASS_CONTENTS) : LikeWise.
15310 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15312 2014-05-21 Guozhi Wei <carrot@google.com>
15315 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15317 (vqdmulhq_n_s16): Likewise.
15319 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15321 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15323 2014-05-21 Marek Polacek <polacek@redhat.com>
15326 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15328 2014-05-21 Martin Jambor <mjambor@suse.cz>
15330 * doc/invoke.texi (Optimize Options): Document parameters
15331 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15332 ipa-cp-array-index-hint-bonus.
15334 2014-05-21 Mark Wielaard <mjw@redhat.com>
15337 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15338 version >= 3 or not strict DWARF.
15339 * langhooks.h (struct lang_hooks_for_types): Add
15340 enum_underlying_base_type.
15341 * langhooks.c (lhd_enum_underlying_base_type): New function.
15342 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15343 enum_underlying_base_type.
15344 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15345 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15346 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15348 2014-05-21 Richard Biener <rguenther@suse.de>
15350 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15352 2014-05-21 John Marino <gnugcc@marino.st>
15354 * config.gcc (*-*-dragonfly*): New target.
15355 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15356 * configure: Regenerate.
15357 * config/dragonfly-stdint.h: New.
15358 * config/dragonfly.h: New.
15359 * config/dragonfly.opt: New.
15360 * config/i386/dragonfly.h: New.
15361 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15363 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15365 * tree.def (VOID_CST): New.
15366 * tree-core.h (TI_VOID): New.
15367 * tree.h (void_node): New.
15368 * tree.c (tree_node_structure_for_code, tree_code_size)
15369 (iterative_hash_expr): Handle VOID_CST.
15370 (build_common_tree_nodes): Initialize void_node.
15372 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15374 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15376 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15378 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15381 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15382 flag_reorder_blocks_and_partition.
15383 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15385 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15388 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15390 (*addc_r_t): Add new insn_and_split.
15392 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15394 PR middle-end/61252
15395 * omp-low.c (handle_simd_reference): New function.
15396 (lower_rec_input_clauses): Use it. Defer adding reference
15397 initialization even for reduction without placeholder if in simd,
15398 handle it properly later on.
15400 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15402 PR tree-optimization/60899
15403 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15404 assume all static symbols will have definition wile parsing and
15405 check the do have definition later in compilation; check that
15406 variable referring symbol will be output before concluding that
15407 reference is safe; be conservative for referring local statics;
15408 be more precise about when comdat is output in other partition.
15410 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15413 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15415 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15416 (ipa_inline): Loop inline_to_all_callers until no more aliases
15419 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15421 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15422 set writeonly flag only for vars actually written to.
15424 2014-05-20 Dehao Chen <dehao@google.com>
15426 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15427 and callee count to get clone count.
15428 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15429 count in copy_body.
15431 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15433 PR rtl-optimization/61243
15434 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15436 2014-05-20 Xinliang David Li <davidxl@google.com>
15438 * cgraphunit.c (walk_polymorphic_call_targets): Add
15439 dbgcnt and fopt-info support.
15440 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15441 * ipa-devirt.c (ipa_devirt): Ditto.
15442 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15443 * ipa.c (walk_polymorphic_call_targets): Ditto.
15444 * gimple-fold.c (fold_gimple_assign): Ditto.
15445 (gimple_fold_call): Ditto.
15446 * dbgcnt.def: New counter.
15448 2014-05-20 DJ Delorie <dj@redhat.com>
15450 * config/msp430/msp430.md (split): Don't allow subregs when
15451 splitting SImode adds.
15452 (andneghi): Fix subtraction logic.
15453 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15455 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15457 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15459 * except.c (switch_to_exception_section, resolve_unique_section,
15460 get_named_text_section, default_function_rodata_section,
15461 align_variable, get_block_for_decl, default_section_type_flags):
15462 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15463 * symtab.c (symtab_add_to_same_comdat_group,
15464 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15465 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15467 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15468 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15469 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15470 (c6x_function_in_section_p): Likewise.
15471 * config/darwin.c (machopic_select_section): Likewise.
15472 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15473 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15474 * config/mep/mep.c (mep_select_section): LIkewise.
15475 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15477 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15479 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15480 EH region of calls to pure functions that can throw an exception.
15481 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15482 (copy_reference_ops_from_call): Also copy the EH region of the call if
15483 it can throw an exception.
15485 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15487 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15488 nested VEC_SELECTs that are inverses of each other.
15490 2014-05-20 Richard Biener <rguenther@suse.de>
15492 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15493 (extract_and_process_scc_for_name): not here.
15494 (cond_dom_walker::before_dom_children): Only process
15495 stmts that end the BB in interesting ways.
15496 (run_scc_vn): Mark param uses as visited.
15498 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15500 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15503 2014-05-20 Nick Clifton <nickc@redhat.com>
15505 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15506 (msp430_gimplify_va_arg_expr): New function.
15507 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15509 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15510 operand 0 in order to prevent confusion about the number of
15511 registers involved.
15513 2014-05-20 Richard Biener <rguenther@suse.de>
15515 PR tree-optimization/61221
15516 * tree-ssa-pre.c (el_to_update): Remove.
15517 (eliminate_dom_walker::before_dom_children): Handle released
15518 VDEFs by value-numbering them to the associated VUSE. Update
15519 stmt immediately for substituted call address.
15520 (eliminate): Remove delayed stmt updating code.
15521 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15522 possibly late re-numbered vuses.
15523 (vn_reference_lookup_2): Adjust.
15524 (vn_reference_lookup_pieces): Likewise.
15525 (vn_reference_lookup): Likewise.
15527 2014-05-20 Richard Biener <rguenther@suse.de>
15529 * config.gcc: Remove need_64bit_hwint.
15530 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15531 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15533 * config.in: Regenerate.
15534 * configure: Likewise.
15536 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15538 * doc/extend.texi: Create Label Attributes section,
15539 move all label attributes into it and reference it.
15541 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15543 * arm.c (thumb1_reorg): When scanning backwards skip anything
15544 that's not a proper insn.
15546 2014-05-19 Richard Biener <rguenther@suse.de>
15548 PR tree-optimization/61221
15549 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15550 Do nothing for unreachable blocks.
15551 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15552 Improve unreachability detection.
15554 2014-05-19 Richard Biener <rguenther@suse.de>
15556 PR tree-optimization/61209
15557 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15559 2014-05-19 Nick Clifton <nickc@redhat.com>
15561 * except.c (init_eh): Fix computation of builtin setjmp buffer
15562 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15564 2014-05-19 Richard Biener <rguenther@suse.de>
15566 PR tree-optimization/61184
15567 * tree-vrp.c (is_negative_overflow_infinity): Use
15568 TREE_OVERFLOW_P and do that check first.
15569 (is_positive_overflow_infinity): Likewise.
15570 (is_overflow_infinity): Likewise.
15571 (vrp_operand_equal_p): Properly treat operands with
15572 differing overflow as not equal.
15574 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15576 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15577 shift simplification where it was intended.
15579 2014-05-19 Christian Bruel <christian.bruel@st.com>
15582 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15584 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15587 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15590 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15592 * reg-notes.def (CROSSING_JUMP): Likewise.
15593 * rtl.h (rtx_def): Update comment for jump flag.
15594 (CROSSING_JUMP_P): Define.
15595 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15596 of a REG_CROSSING_JUMP note.
15597 * cfghooks.c (tidy_fallthru_edges): Likewise.
15598 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15599 * emit-rtl.c (try_split): Likewise.
15600 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15601 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15602 * jump.c (redirect_jump_2): Likewise.
15603 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15604 (relax_delay_slots): Likewise.
15605 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15606 (bbit_di): Likewise.
15607 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15608 * config/sh/sh.md (jump_compact): Likewise.
15609 * bb-reorder.c (rotate_loop): Likewise.
15610 (pass_duplicate_computed_gotos::execute): Likewise.
15611 (add_reg_crossing_jump_notes): Rename to...
15612 (update_crossing_jump_flags): ...this.
15613 (pass_partition_blocks::execute): Update accordingly.
15615 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15617 * tree.h: Remove extraneous template <>.
15619 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15621 * ipa.c (symtab_remove_unreachable_nodes): Remove
15622 symbol from comdat group if its body was eliminated.
15623 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15624 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15625 (symtab_unregister_node): ... this one.
15626 (verify_symtab_base): More strict checking of comdats.
15627 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15629 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15631 * tree-pass.h (make_pass_ipa_comdats): New pass.
15632 * timevar.def (TV_IPA_COMDATS): New timevar.
15633 * passes.def (pass_ipa_comdats): Add.
15634 * Makefile.in (OBJS): Add ipa-comdats.o
15635 * ipa-comdats.c: New file.
15637 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15639 * ipa.c (update_visibility_by_resolution_info): New function.
15640 (function_and_variable_visibility): Use it.
15642 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15644 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15646 (FOR_EACH_DEFINED_SYMBOL): New macro.
15647 (varpool_first_static_initializer, varpool_next_static_initializer,
15648 varpool_first_defined_variable, varpool_next_defined_variable):
15650 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15652 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15654 * ggc-page.c (ggc_handle_finalizers): Add comment.
15656 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15658 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15659 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15660 (ggc_internal_cleared_alloc): Likewise.
15661 * ggc-page.c (finalizer): New class.
15662 (vec_finalizer): Likewise.
15663 (globals::finalizers): New member.
15664 (globals::vec_finalizers): Likewise.
15665 (ggc_internal_alloc): Record the finalizer if any for the block being
15667 (ggc_handle_finalizers): New function.
15668 (ggc_collect): Call ggc_handle_finalizers.
15669 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15671 (ggc_internal_cleared_alloc): Likewise.
15672 (finalize): New function.
15673 (need_finalization_p): Likewise.
15674 (ggc_alloc): Install the type's destructor as the finalizer if it
15675 might do something.
15676 (ggc_cleared_alloc): Likewise.
15677 (ggc_vec_alloc): Likewise.
15678 (ggc_cleared_vec_alloc): Likewise.
15680 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15682 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15684 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15686 * alias.c (record_alias_subset): Adjust.
15687 * bitmap.c (bitmap_element_allocate): Likewise.
15688 (bitmap_gc_alloc_stat): Likewise.
15689 * cfg.c (init_flow): Likewise.
15690 (alloc_block): Likewise.
15691 (unchecked_make_edge): Likewise.
15692 * cfgloop.c (alloc_loop): Likewise.
15693 (flow_loops_find): Likewise.
15694 (rescan_loop_exit): Likewise.
15695 * cfgrtl.c (init_rtl_bb_info): Likewise.
15696 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15697 (cgraph_allocate_node): Likewise.
15698 (cgraph_create_edge_1): Likewise.
15699 (cgraph_allocate_init_indirect_info): Likewise.
15700 * cgraphclones.c (cgraph_clone_edge): Likewise.
15701 * cgraphunit.c (add_asm_node): Likewise.
15702 (init_lowered_empty_function): Likewise.
15703 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15704 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15705 (alpha_use_linkage): Likewise.
15706 * config/arc/arc.c (arc_init_machine_status): Likewise.
15707 * config/arm/arm.c (arm_init_machine_status): Likewise.
15708 * config/avr/avr.c (avr_init_machine_status): Likewise.
15709 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15710 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15711 * config/cris/cris.c (cris_init_machine_status): Likewise.
15712 * config/darwin.c (machopic_indirection_name): Likewise.
15713 (darwin_build_constant_cfstring): Likewise.
15714 (darwin_enter_string_into_cfstring_table): Likewise.
15715 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15716 * config/frv/frv.c (frv_init_machine_status): Likewise.
15717 * config/i386/i386.c (get_dllimport_decl): Likewise.
15718 (ix86_init_machine_status): Likewise.
15719 (assign_386_stack_local): Likewise.
15720 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15721 (i386_pe_maybe_record_exported_symbol): Likewise.
15722 (i386_pe_record_stub): Likewise.
15723 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15724 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15725 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15726 (m32c_note_pragma_address): Likewise.
15727 * config/mep/mep.c (mep_init_machine_status): Likewise.
15728 (mep_note_pragma_flag): Likewise.
15729 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15730 (mips16_local_alias): Likewise.
15731 (mips_init_machine_status): Likewise.
15732 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15733 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15734 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15735 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15736 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15737 * config/pa/pa.c (pa_init_machine_status): Likewise.
15738 (pa_get_deferred_plabel): Likewise.
15739 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15740 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15741 (rs6000_init_machine_status): Likewise.
15742 (output_toc): Likewise.
15743 * config/s390/s390.c (s390_init_machine_status): Likewise.
15744 * config/score/score.c (score_output_external): Likewise.
15745 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15746 * config/spu/spu.c (spu_init_machine_status): Likewise.
15747 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15748 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15749 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15750 * coverage.c (coverage_end_function): Likewise.
15751 * dbxout.c (dbxout_init): Likewise.
15752 * doc/gty.texi: Don't mention variable_size attribute.
15753 * dwarf2cfi.c (new_cfi): Adjust.
15754 (new_cfi_row): Likewise.
15755 (copy_cfi_row): Likewise.
15756 (create_cie_data): Likewise.
15757 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15758 (new_loc_descr): Likewise.
15759 (find_AT_string_in_table): Likewise.
15760 (add_addr_table_entry): Likewise.
15761 (new_die): Likewise.
15762 (add_var_loc_to_decl): Likewise.
15763 (clone_die): Likewise.
15764 (clone_as_declaration): Likewise.
15765 (break_out_comdat_types): Likewise.
15766 (new_loc_list): Likewise.
15767 (add_loc_descr_to_each): Likewise.
15768 (add_location_or_const_value_attribute): Likewise.
15769 (add_linkage_name): Likewise.
15770 (lookup_filename): Likewise.
15771 (dwarf2out_var_location): Likewise.
15772 (new_line_info_table): Likewise.
15773 (dwarf2out_init): Likewise.
15774 (mem_loc_descriptor): Likewise.
15775 (loc_descriptor): Likewise.
15776 (add_const_value_attribute): Likewise.
15777 (tree_add_const_value_attribute): Likewise.
15778 (comp_dir_string): Likewise.
15779 (dwarf2out_vms_debug_main_pointer): Likewise.
15780 (string_cst_pool_decl): Likewise.
15781 * emit-rtl.c (set_mem_attrs): Likewise.
15782 (get_reg_attrs): Likewise.
15783 (start_sequence): Likewise.
15784 (init_emit): Likewise.
15785 (init_emit_regs): Likewise.
15786 * except.c (init_eh_for_function): Likewise.
15787 (gen_eh_region): Likewise.
15788 (gen_eh_region_catch): Likewise.
15789 (gen_eh_landing_pad): Likewise.
15790 (add_call_site): Likewise.
15791 * function.c (add_frame_space): Likewise.
15792 (insert_temp_slot_address): Likewise.
15793 (assign_stack_temp_for_type): Likewise.
15794 (get_hard_reg_initial_val): Likewise.
15795 (allocate_struct_function): Likewise.
15796 (prepare_function_start): Likewise.
15797 (types_used_by_var_decl_insert): Likewise.
15798 * gengtype.c (variable_size_p): Remove function.
15799 (enum alloc_quantity): Remove enum.
15800 (write_typed_alloc_def): Remove function.
15801 (write_typed_struct_alloc_def): Likewise.
15802 (write_typed_typedef_alloc_def): Likewise.
15803 (write_typed_alloc_defns): Likewise.
15805 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15806 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15807 * ggc.h (ggc_alloc): new function.
15808 (ggc_cleared_alloc): Likewise.
15809 (ggc_vec_alloc): Template on type of vector element, and remove
15810 element size argument.
15811 (ggc_cleared_vec_alloc): Likewise.
15812 * gimple.c (gimple_build_omp_for): Adjust.
15813 (gimple_copy): Likewise.
15814 * ipa-cp.c (get_replacement_map): Likewise.
15815 (find_aggregate_values_for_callers_subset): Likewise.
15816 (known_aggs_to_agg_replacement_list): Likewise.
15817 * ipa-devirt.c (get_odr_type): Likewise.
15818 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15819 (read_agg_replacement_chain): Likewise.
15820 * loop-iv.c (get_simple_loop_desc): Likewise.
15821 * lto-cgraph.c (input_node_opt_summary): Likewise.
15822 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15823 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15824 (input_eh_region): Likewise.
15825 (input_eh_lp): Likewise.
15826 (input_cfg): Likewise.
15827 * optabs.c (set_optab_libfunc): Likewise.
15828 (init_tree_optimization_optabs): Likewise.
15829 (set_conv_libfunc): Likewise.
15830 * passes.c (do_per_function_toporder): Likewise.
15831 * rtl.h: Don't use variable_size gty attribute.
15832 * sese.c (if_region_set_false_region): Adjust.
15833 * stringpool.c (gt_pch_save_stringpool): Likewise.
15834 * target-globals.c (save_target_globals): Likewise.
15835 * toplev.c (general_init): Likewise.
15836 * trans-mem.c (record_tm_replacement): Likewise.
15837 (split_bb_make_tm_edge): Likewise.
15838 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15839 * tree-data-ref.h (lambda_vector_new): Likewise.
15840 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15841 * tree-iterator.c (tsi_link_before): Likewise.
15842 (tsi_link_after): Likewise.
15843 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15844 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15845 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15846 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15847 * tree-ssa.c (init_tree_ssa): Adjust.
15848 * tree-ssanames.c (set_range_info): Likewise.
15849 (get_ptr_info): Likewise.
15850 (duplicate_ssa_name_ptr_info): Likewise.
15851 (duplicate_ssa_name_range_info): Likewise.
15852 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15853 (unpack_ts_fixed_cst_value_fields): Likewise.
15854 * tree.c (build_fixed): Likewise.
15855 (build_real): Likewise.
15856 (build_string): Likewise.
15857 (decl_priority_info): Likewise.
15858 (decl_debug_expr_insert): Likewise.
15859 (decl_value_expr_insert): Likewise.
15860 (decl_debug_args_insert): Likewise.
15861 (type_hash_add): Likewise.
15862 (build_omp_clause): Likewise.
15863 * ubsan.c (decl_for_type_insert): Likewise.
15864 * varasm.c (get_unnamed_section): Likewise.
15865 (get_noswitch_section): Likewise.
15866 (get_section): Likewise.
15867 (get_block_for_section): Likewise.
15868 (create_block_symbol): Likewise.
15869 (build_constant_desc): Likewise.
15870 (create_constant_pool): Likewise.
15871 (force_const_mem): Likewise.
15872 (record_tm_clone_pair): Likewise.
15873 * varpool.c (varpool_create_empty_node): Likewise.
15875 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15877 * dwarf2out.c (tree_add_const_value_attribute): Call
15878 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15879 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15880 instead of ggc_internal_<x>alloc_stat.
15881 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15882 (ggc_realloc): Likewise.
15883 * ggc-none.c (ggc_internal_alloc): Likewise.
15884 (ggc_internal_cleared_alloc): Likewise.
15885 * ggc-page.c: Likewise.
15886 * ggc.h (ggc_internal_alloc_stat): Likewise.
15887 (ggc_internal_alloc): Remove macro.
15888 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15889 (ggc_internal_cleared_alloc): Remove macro.
15890 (GGC_RESIZEVEC): Adjust.
15891 (ggc_resizevar): Remove macro.
15892 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15893 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15894 (ggc_internal_vec_cleared_alloc): Remove macro.
15895 (ggc_alloc_atomic_stat): Drop _stat suffix.
15896 (ggc_alloc_atomic): Remove macro.
15897 (ggc_alloc_cleared_atomic): Remove macro.
15898 (ggc_alloc_string_stat): Drop _stat suffix.
15899 (ggc_alloc_string): Remove macro.
15900 (ggc_alloc_rtx_def_stat): Adjust.
15901 (ggc_alloc_tree_node_stat): Likewise.
15902 (ggc_alloc_cleared_tree_node_stat): Likewise.
15903 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15904 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15905 * gimple.c (gimple_build_omp_for): Likewise.
15906 (gimple_copy): Likewise.
15907 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15908 * toplev.c (realloc_for_line_map): Adjust.
15909 * tree-data-ref.h (lambda_vector_new): Likewise.
15910 * tree-phinodes.c (allocate_phi_node): Likewise.
15911 * tree.c (grow_tree_vec_stat): Likewise.
15912 * vec.h (va_gc::reserve): Adjust.
15914 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15916 * config/microblaze/microblaze.c (break_handler): New Declaration.
15917 (microblaze_break_function_p,microblaze_is_break_handler): New.
15918 (compute_frame_size): Use microblaze_break_function_p.
15919 Add the test of break_handler.
15920 (microblaze_function_prologue) : Add the test of variable
15921 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15922 (microblaze_function_epilogue) : Add the test of break_handler.
15923 (microblaze_globalize_label) : Add the test of break_handler.
15924 Check the name by BREAK_HANDLER_NAME.
15926 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15928 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15929 microblaze_is_break_handler test.
15930 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15931 Use SYMBOL_REF_DECL.
15933 * config/microblaze/microblaze-protos.h
15934 (microblaze_break_function_p,microblaze_is_break_handler):
15937 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15938 new MicroBlaze break_handler functions.
15940 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15942 * doc/extend.texi (Size of an asm): Move node text according
15943 to its @menu entry position.
15945 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15947 PR tree-optimization/61140
15948 PR tree-optimization/61150
15949 PR tree-optimization/61197
15950 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15952 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15954 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15956 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15958 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15959 __SIZEOF_INT128__ is defined.
15961 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15963 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15964 (rs6000_delegitimize_address): Use it.
15966 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15968 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15969 inplace argument. Store the new address in the original MEM when true.
15970 * emit-rtl.c (change_address_1): Likewise.
15971 (adjust_address_1, adjust_automodify_address_1, offset_address):
15972 Update accordingly.
15973 * rtl.h (plus_constant): Add an inplace argument.
15974 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15975 when true. Avoid generating (plus X (const_int 0)).
15976 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15977 in-place. Pass true to plus_constant.
15978 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15980 2014-05-16 Dehao Chen <dehao@google.com>
15982 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15984 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15987 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15989 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15991 2014-05-16 Dehao Chen <dehao@google.com>
15993 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15994 optimize_function_for_size_p.
15995 * regs.h (REG_FREQ_FROM_BB): Likewise.
15997 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16000 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16001 negt_reg_operand cases.
16002 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16004 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16006 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16008 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16011 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16014 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16016 * tree-cfg.c (dump_function_to_file): Dump the return type of
16017 functions, in a line to itself before the function body, mimicking
16018 the layout of a C function.
16020 2014-05-16 Dehao Chen <dehao@google.com>
16022 * cfghooks.c (make_forwarder_block): Use direct computation to
16023 get fall-through edge's count and frequency.
16025 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16027 * config/arc/arc.c (arc_init): Fix typo in error message.
16028 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16029 (split_stack_prologue_scratch_regno): Likewise.
16030 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16031 word from error message.
16033 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16035 * ira-costs.c: Fix typo in comment.
16037 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16039 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16041 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16043 * varpool.c (dump_varpool_node): Dump write-only flag.
16044 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16046 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16047 write-only variables.
16048 * ipa.c (process_references): New function.
16049 (set_readonly_bit): New function.
16050 (set_writeonly_bit): New function.
16051 (clear_addressable_bit): New function.
16052 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16053 fix handling of aliases.
16054 * cgraph.h (struct varpool_node): Add writeonly flag.
16056 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16058 PR rtl-optimization/60969
16059 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16060 Calculate costs for this case.
16062 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16064 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16065 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16067 2014-05-16 Richard Biener <rguenther@suse.de>
16069 PR tree-optimization/61194
16070 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16071 bool patterns ending in a COND_EXPR.
16073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16075 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16077 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16079 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16080 where we were unable to cost an RTX.
16082 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16084 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16087 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16088 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16090 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16092 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16093 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16095 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16096 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16098 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16099 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16104 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16105 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16107 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16110 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16111 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16113 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16114 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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): Improve costs for
16120 rotates and shifts.
16122 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16123 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16125 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16126 ZERO_EXTEND and SIGN_EXTEND better.
16128 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16129 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16131 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16132 logical operations.
16134 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16135 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16137 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16138 costs when costing loads and stores to memory.
16140 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16141 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16146 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16148 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16150 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16151 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16153 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16155 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16157 (aarch64_rtx_mult_cost): New.
16158 (aarch64_rtx_costs): Use it, refactor as appropriate.
16160 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16161 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16163 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16164 emit instructions, return number of instructions which would
16166 (aarch64_add_constant): Update call to aarch64_build_constant.
16167 (aarch64_output_mi_thunk): Likewise.
16168 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16171 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16173 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16174 (TARGET_RTX_COSTS): Call it.
16176 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16178 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16179 (cortexa57_vector_cost): Likewise.
16180 (cortexa57_tunings): Use them.
16182 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16184 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16185 (cpu_addrcost_table): Use it.
16186 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16187 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16190 2014-05-16 Richard Biener <rguenther@suse.de>
16192 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16193 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16194 (visit_phi): Ignore edges marked as not executable.
16195 (class cond_dom_walker): New.
16196 (cond_dom_walker::before_dom_children): Value-number
16197 control statements and mark successor edges as not
16198 executable if possible.
16199 (run_scc_vn): First walk all control statements in
16200 dominator order, marking edges as not executable.
16201 * tree-inline.c (copy_edges_for_bb): Be not confused
16202 about random edge flags.
16204 2014-05-16 Richard Biener <rguenther@suse.de>
16206 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16208 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16211 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16212 (__TM_simple_begin): Use it.
16213 (__TM_begin): Likewise.
16215 2014-05-15 Martin Jambor <mjambor@suse.cz>
16218 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16219 type_preserved flag when the indirect edge is polymorphic.
16221 2014-05-15 Martin Jambor <mjambor@suse.cz>
16223 PR tree-optimization/61090
16224 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16225 build_ref_for_model.
16227 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16229 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16230 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16232 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16234 PR tree-optimization/61158
16235 * fold-const.c (fold_binary_loc): If X is zero-extended and
16236 shiftc >= prec, make sure zerobits is all ones instead of
16237 invoking undefined behavior.
16239 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16241 * regcprop.h: New file.
16242 * regcprop.c (skip_debug_insn_p): New decl.
16243 (replace_oldest_value_reg): Check skip_debug_insn_p.
16244 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16245 * shrink-wrap.c: Include regcprop.h.
16246 (prepare_shrink_wrap): Call
16247 copyprop_hardreg_forward_bb_without_debug_insn.
16249 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16251 * shrink-wrap.h: Update comment.
16252 * shrink-wrap.c: Update comment.
16253 (next_block_for_reg): Rename to live_edge_for_reg.
16254 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16255 (move_insn_for_shrink_wrap): Split live_edge.
16256 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16258 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16260 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16262 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16263 * config/sparc/sparc.md (fptype_ut699): New attribute.
16264 (in_branch_delay): Return false if -mfix-ut699 is specified and
16265 fptype_ut699 is set to single.
16266 (truncdfsf2): Add fptype_ut699 attribute.
16267 (fix_truncdfsi2): Likewise.
16268 (floatsisf2): Change fptype attribute.
16269 (fix_truncsfsi2): Likewise.
16270 (negtf2_notv9): Delete.
16271 (negtf2_v9): Likewise.
16272 (negtf2_hq): New instruction.
16273 (negtf2): New instruction and splitter.
16274 (negdf2_notv9): Rewrite.
16275 (abstf2_notv9): Delete.
16276 (abstf2_hq_v9): Likewise.
16277 (abstf2_v9): Likewise.
16278 (abstf2_hq): New instruction.
16279 (abstf2): New instruction and splitter.
16280 (absdf2_notv9): Rewrite.
16282 2014-05-14 Cary Coutant <ccoutant@google.com>
16285 * opts.c (common_handle_option): Don't special-case "-g".
16286 (set_debug_level): Default to at least level 2 with "-g".
16288 2014-05-14 DJ Delorie <dj@redhat.com>
16290 * config/msp430/msp430.c (msp430_builtin): Add
16291 MSP430_BUILTIN_DELAY_CYCLES.
16292 (msp430_init_builtins): Register void __delay_cycles(long long).
16293 (msp430_builtin_decl): Add it.
16294 (cg_magic_constant): New.
16295 (msp430_expand_delay_cycles): New.
16296 (msp430_expand_builtin): Call it.
16297 (msp430_print_operand_raw): Change integer printing from "int" to
16299 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16300 (delay_cycles_start): New.
16301 (delay_cycles_end): New.
16302 (delay_cycles_32): New.
16303 (delay_cycles_32x): New.
16304 (delay_cycles_16): New.
16305 (delay_cycles_16x): New.
16306 (delay_cycles_2): New.
16307 (delay_cycles_1): New.
16308 * doc/extend.texi: Document __delay_cycles().
16310 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16312 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16313 length attribute computation.
16315 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16318 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16320 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16323 * config/sparc/sparc.md: Fix types of low and high in DI constant
16324 splitter. Use gen_int_mode in some other splitters.
16326 2014-05-14 Martin Jambor <mjambor@suse.cz>
16329 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16331 2014-05-14 James Norris <jnorris@codesourcery.com>
16333 * omp-low.c (expand_parallel_call): Remove shadow variable.
16334 (expand_omp_taskreg): Likewise.
16336 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16338 * common/config/i386/i386-common.c
16339 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16340 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16341 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16342 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16343 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16344 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16345 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16346 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16347 xsavecintrin.h, xsavesintrin.h.
16348 (x86_64-*-*): Ditto.
16349 * config/i386/clflushoptintrin.h: New.
16350 * config/i386/xsavecintrin.h: Ditto.
16351 * config/i386/xsavesintrin.h: Ditto.
16352 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16353 (bit_XSAVES): Ditto.
16354 (bit_XSAVES): Ditto.
16355 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16356 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16358 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16359 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16360 OPTION_MASK_ISA_XSAVES.
16361 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16362 -mxsavec, -mxsaves.
16363 (PTA_CLFLUSHOPT) Define.
16364 (PTA_XSAVEC): Ditto.
16365 (PTA_XSAVES): Ditto.
16366 (ix86_option_override_internal): Handle new options.
16367 (ix86_valid_target_attribute_inner_p): Ditto.
16368 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16369 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16370 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16371 (bdesc_special_args): Add __builtin_ia32_xsaves,
16372 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16373 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16374 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16375 (ix86_expand_builtin): Handle new builtins.
16376 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16377 (TARGET_CLFLUSHOPT_P): Ditto.
16378 (TARGET_XSAVEC): Ditto.
16379 (TARGET_XSAVEC_P): Ditto.
16380 (TARGET_XSAVES): Ditto.
16381 (TARGET_XSAVES_P): Ditto.
16382 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16383 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16384 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16386 (ANY_XRSTOR64): Ditto.
16388 (xrstor): Change into <xrstor>.
16389 (xrstor_rex64): Change into <xrstor>_rex64.
16390 (xrstor64): Change into <xrstor>64
16392 * config/i386/i386.opt (mclflushopt): New.
16395 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16397 * doc/invoke.texi: Document new options.
16399 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16401 PR rtl-optimization/60866
16402 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16403 Default it to -1. Pass it down to init_simplejump_data.
16404 (init_simplejump_data): New parameter old_seqno. Pass it down
16405 to get_seqno_for_a_jump.
16406 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16407 initializing new jump seqno as a last resort. Add comment.
16408 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16409 jump and pass it down to sel_init_new_insn.
16410 (sel_redirect_edge_and_branch_force): Likewise.
16412 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16414 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16415 shifted values to avoid build warning.
16417 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16419 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16420 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16421 (cfg_layout_merge_blocks): Likewise.
16422 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16424 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16426 PR rtl-optimization/60901
16427 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16428 bb predecessor belongs to the same scheduling region. Adjust comment.
16430 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16432 * doc/sourcebuild.texi: (dfp_hw): Document.
16433 (p8vector_hw): Likewise.
16434 (powerpc_eabi_ok): Likewise.
16435 (powerpc_elfv2): Likewise.
16436 (powerpc_htm_ok): Likewise.
16437 (ppc_recip_hw): Likewise.
16438 (vsx_hw): Likewise.
16440 2014-05-13 Cary Coutant <ccoutant@google.com>
16442 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16444 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16446 * gengtype-parse.c (require3): Eliminate in favor of...
16448 (require_template_declaration): Update to support optional single *
16451 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16452 (create_user_defined_type): Handle a single level of explicit
16453 pointerness within template arguments.
16454 (struct write_types_data): Add field "kind".
16455 (filter_type_name): Handle "*" character.
16456 (write_user_func_for_structure_ptr): Require a write_types_data
16457 rather than just a prefix string, so that we can look up the kind
16458 of the wtd and use it as an index into wrote_user_func_for_ptr,
16459 ensuring that such functions are written at most once. Support
16460 subclasses by invoking the marking function of the ultimate base class.
16461 (write_user_func_for_structure_body): Require a write_types_data
16462 rather than just a prefix string, so that we can pass this to
16463 write_user_func_for_structure_ptr.
16464 (write_func_for_structure): Likewise.
16465 (ggc_wtd): Add initializer of new "kind" field.
16466 (pch_wtd): Likewise.
16468 * gengtype.h (enum write_types_kinds): New.
16469 (struct type): Add field wrote_user_func_for_ptr to the "s"
16472 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16474 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16475 instead of const_binop.
16476 (fold_binary_loc): Likewise.
16478 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16480 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16481 calculation to match get_ref_base_and_extent.
16483 2014-05-13 Catherine Moore <clm@codesourcery.com>
16484 Sandra Loosemore <sandra@codesourcery.com>
16486 * configure.ac: Fix assembly for explicit JALR relocation check.
16487 * configure: Regenerate.
16489 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16491 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16492 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16493 Remove associated type declarations and initialisations.
16494 (arm_expand_neon_builtin): Likewise.
16495 (neon_emit_pair_result_insn): Delete.
16496 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16497 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16498 (neon_vzip<mode>): Likewise.
16499 (neon_vuzp<mode>): Likewise.
16501 2014-05-13 Richard Biener <rguenther@suse.de>
16504 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16505 it needs revisiting whether the call still may be tail-called.
16507 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16509 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16510 * rtl.h (block_symbol): Reduce number of fields to 2.
16511 (rtx_def): Add u2.symbol_ref_flags.
16512 (SYMBOL_REF_FLAGS): Use it.
16513 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16514 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16515 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16516 Lower index of SYMBOL_REF_DATA.
16517 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16518 Print SYMBOL_REF_FLAGS at the same time.
16519 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16521 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16523 * rtl.def (VAR_LOCATION): Remove "i" field.
16524 * rtl.h (rtx_def): Add u2.var_location_status.
16525 (PAT_VAR_LOCATION_STATUS): Use it.
16526 (gen_rtx_VAR_LOCATION): Declare.
16527 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16528 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16529 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16531 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16533 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16534 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16536 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16538 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16539 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16540 * rtl.h (rtx_def): Add insn_uid to u2 field.
16541 (RTX_FLAG_CHECK8): Delete in favor of...
16542 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16543 (INSN_DELETED_P): Update accordingly.
16544 (INSN_UID): Use u2.insn_uid.
16545 (INSN_CHAIN_CODE_P): Define.
16546 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16547 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16548 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16549 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16550 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16551 indices accordingly.
16552 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16553 Update indices for insn-chain rtxes.
16554 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16555 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16556 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16557 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16558 * combine.c (try_combine): Likewise.
16559 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16561 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16563 * rtl.def (REG): Remove middle field.
16564 * rtl.h (rtx_def): Add orignal_regno to u2.
16565 (ORIGINAL_REGNO): Use it instead of field 1.
16566 (REG_ATTRS): Lower field index accordingly.
16567 * gengtype.c (adjust_field_rtx_def): Remove handling of
16568 ORIGINAL_REGNO. Move REG_ATTRS index down.
16569 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16570 code that prints the REGNO.
16572 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16574 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16577 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16579 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16581 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16583 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16584 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16586 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16588 * config/aarch64/aarch64-protos.h
16589 (aarch64_hard_regno_caller_save_mode): New prototype.
16590 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16592 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16594 2014-05-13 Christian Bruel <christian.bruel@st.com>
16596 * target.def (mode_switching): New hook vector.
16597 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16598 (mode_exit, modepriority_to_mode): Likewise.
16599 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16600 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16601 * target.h: Include tm.h and hard-reg-set.h.
16602 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16603 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16604 * doc/tm.texi Regenerate.
16605 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16606 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16607 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16608 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16609 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16610 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16611 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16612 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16613 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16614 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16615 (ix86_emit_mode_set): Hookify.
16616 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16618 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16619 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16620 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16621 (epiphany_mode_priority_to_mode): Remove declaration.
16622 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16623 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16624 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16626 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16627 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16628 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16630 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16633 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16634 is const0_rtx, return immediately. Don't test count == 0 when
16637 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16639 * Makefile.in: add shrink-wrap.o.
16640 * config/i386/i386.c: include "shrink-wrap.h"
16641 * function.c: Likewise.
16642 (requires_stack_frame_p, next_block_for_reg,
16643 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16644 dup_block_and_redirect): Move to shrink-wrap.c
16645 (thread_prologue_and_epilogue_insns): Extract three code segments
16646 as functions in shrink-wrap.c
16647 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16649 * shrink-wrap.c: New file.
16650 * shrink-wrap.h: New file.
16652 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16654 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16655 reference to Solaris.
16657 2014-05-12 Mike Stump <mikestump@comcast.net>
16660 * genattrtab.c (filename): Add.
16661 (convert_set_attr_alternative): Improve error message.
16662 (check_defs): Restore read_md_filename for error messages.
16663 (gen_insn): Save filename.
16665 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16667 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16668 -fno-local-ivars and -fivar-visibility.
16669 * c-family/c.opt: Make -Wshadow also implicitly enable
16672 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16674 * doc/tm.texi: Remove reference to deleted macro.
16675 * doc/tm.texi.in: Likewise.
16677 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16680 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16683 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16686 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16687 * config/arm/aout.h (License): Same.
16688 * config/arm/bpabi.h (License): Same.
16689 * config/arm/elf.h (License): Same.
16690 * config/arm/linux-elf.h (License): Same.
16691 * config/arm/linux-gas.h (License): Same.
16692 * config/arm/netbsd-elf.h (License): Same.
16693 * config/arm/uclinux-eabi.h (License): Same.
16694 * config/arm/uclinux-elf.h (License): Same.
16695 * config/arm/vxworks.h (License): Same.
16697 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16699 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16700 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16701 number of operands to 3.
16702 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16703 * tree-nested.c (convert_nonlocal_omp_clauses,
16704 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16705 * gimplify.c (gimplify_scan_omp_clauses): Handle
16706 OMP_CLAUSE_LINEAR_STMT.
16707 * omp-low.c (lower_rec_input_clauses): Fix typo.
16708 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16709 cast between Fortran boolean_type_node and C _Bool if
16712 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16714 PR tree-optimization/61136
16715 * wide-int.h (multiple_of_p): Define a version that doesn't return
16717 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16718 integer_zerop/const_binop pair.
16719 (multiple_of_p): Likewise, converting both operands to widest_int
16722 2014-05-09 Teresa Johnson <tejohnson@google.com>
16724 * cgraphunit.c (analyze_functions): Use correct dump file.
16726 2014-05-09 Florian Weimer <fweimer@redhat.com>
16728 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16730 (stack_protect_return_slot_p): New function.
16731 (expand_used_vars): Call stack_protect_decl_p and
16732 stack_protect_return_slot_p for -fstack-protector-strong.
16734 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16735 Andrew Haley <aph@redhat.com>
16736 Richard Sandiford <rdsandiford@googlemail.com>
16738 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16741 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16743 PR middle-end/61111
16744 * fold-const.c (fold_binary_loc): Changed width of mask.
16746 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16748 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16749 unsigned int initializers for regno_in, regno_out.
16751 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16754 * config/avr/avr.md (cc): Add new attribute set_vzn.
16755 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16756 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16757 with INC, DEC or NEG.
16758 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16759 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16760 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16762 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16765 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16767 * wide-int.cc (UTItype): Define.
16768 (UDWtype): Define for appropriate W_TYPE_SIZE.
16770 2014-05-09 Richard Biener <rguenther@suse.de>
16772 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16773 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16774 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16775 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16776 ssa_propagate): Adjust.
16778 2014-05-08 Jeff Law <law@redhat.com>
16780 PR tree-optimization/61009
16781 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16782 tri-state rather than a boolean. When a block is too big to
16783 thread through, inform caller via negative return value.
16784 (thread_across_edge): If a block was too big for normal threading,
16785 then it's too big for a joiner too, so remove temporary equivalences
16786 and return immediately.
16788 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16789 Matthias Klose <doko@ubuntu.com>
16792 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16794 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16797 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16799 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16802 * config/alpha/alpha.c: Include gimple-iterator.h.
16803 (alpha_gimple_fold_builtin): New function. Move
16804 ALPHA_BUILTIN_UMULH folding from ...
16805 (alpha_fold_builtin): ... here.
16806 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16808 2014-05-08 Wei Mi <wmi@google.com>
16811 * config/i386/i386.c (ix86_compute_frame_layout): Update
16812 preferred_stack_boundary for call, expanded from tls descriptor.
16813 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16814 to depend on SP register.
16815 (*tls_local_dynamic_base_32_gnu): Ditto.
16816 (*tls_local_dynamic_32_once): Ditto.
16817 (tls_global_dynamic_64_<mode>): Set
16818 ix86_tls_descriptor_calls_expanded_in_cfun.
16819 (tls_local_dynamic_base_64_<mode>): Ditto.
16820 (tls_global_dynamic_32): Set
16821 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16822 to depend on SP register.
16823 (tls_local_dynamic_base_32): Ditto.
16825 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16827 * config/arm/arm_neon.h: Update comment.
16828 * config/arm/neon-docgen.ml: Delete.
16829 * config/arm/neon-gen.ml: Delete.
16830 * doc/arm-neon-intrinsics.texi: Update comment.
16832 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16834 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16836 (vand, vorr, veor, vorn, vbic): Remove.
16837 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16839 (neon_vsub_unspec): Likewise.
16840 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16842 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16844 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16845 (vadd_s16): Likewise.
16846 (vadd_s32): Likewise.
16847 (vadd_f32): Likewise.
16848 (vadd_u8): Likewise.
16849 (vadd_u16): Likewise.
16850 (vadd_u32): Likewise.
16851 (vadd_s64): Likewise.
16852 (vadd_u64): Likewise.
16853 (vaddq_s8): Likewise.
16854 (vaddq_s16): Likewise.
16855 (vaddq_s32): Likewise.
16856 (vaddq_s64): Likewise.
16857 (vaddq_f32): Likewise.
16858 (vaddq_u8): Likewise.
16859 (vaddq_u16): Likewise.
16860 (vaddq_u32): Likewise.
16861 (vaddq_u64): Likewise.
16862 (vmul_s8): Likewise.
16863 (vmul_s16): Likewise.
16864 (vmul_s32): Likewise.
16865 (vmul_f32): Likewise.
16866 (vmul_u8): Likewise.
16867 (vmul_u16): Likewise.
16868 (vmul_u32): Likewise.
16869 (vmul_p8): Likewise.
16870 (vmulq_s8): Likewise.
16871 (vmulq_s16): Likewise.
16872 (vmulq_s32): Likewise.
16873 (vmulq_f32): Likewise.
16874 (vmulq_u8): Likewise.
16875 (vmulq_u16): Likewise.
16876 (vmulq_u32): Likewise.
16877 (vsub_s8): Likewise.
16878 (vsub_s16): Likewise.
16879 (vsub_s32): Likewise.
16880 (vsub_f32): Likewise.
16881 (vsub_u8): Likewise.
16882 (vsub_u16): Likewise.
16883 (vsub_u32): Likewise.
16884 (vsub_s64): Likewise.
16885 (vsub_u64): Likewise.
16886 (vsubq_s8): Likewise.
16887 (vsubq_s16): Likewise.
16888 (vsubq_s32): Likewise.
16889 (vsubq_s64): Likewise.
16890 (vsubq_f32): Likewise.
16891 (vsubq_u8): Likewise.
16892 (vsubq_u16): Likewise.
16893 (vsubq_u32): Likewise.
16894 (vsubq_u64): Likewise.
16895 (vand_s8): Likewise.
16896 (vand_s16): Likewise.
16897 (vand_s32): Likewise.
16898 (vand_u8): Likewise.
16899 (vand_u16): Likewise.
16900 (vand_u32): Likewise.
16901 (vand_s64): Likewise.
16902 (vand_u64): Likewise.
16903 (vandq_s8): Likewise.
16904 (vandq_s16): Likewise.
16905 (vandq_s32): Likewise.
16906 (vandq_s64): Likewise.
16907 (vandq_u8): Likewise.
16908 (vandq_u16): Likewise.
16909 (vandq_u32): Likewise.
16910 (vandq_u64): Likewise.
16911 (vorr_s8): Likewise.
16912 (vorr_s16): Likewise.
16913 (vorr_s32): Likewise.
16914 (vorr_u8): Likewise.
16915 (vorr_u16): Likewise.
16916 (vorr_u32): Likewise.
16917 (vorr_s64): Likewise.
16918 (vorr_u64): Likewise.
16919 (vorrq_s8): Likewise.
16920 (vorrq_s16): Likewise.
16921 (vorrq_s32): Likewise.
16922 (vorrq_s64): Likewise.
16923 (vorrq_u8): Likewise.
16924 (vorrq_u16): Likewise.
16925 (vorrq_u32): Likewise.
16926 (vorrq_u64): Likewise.
16927 (veor_s8): Likewise.
16928 (veor_s16): Likewise.
16929 (veor_s32): Likewise.
16930 (veor_u8): Likewise.
16931 (veor_u16): Likewise.
16932 (veor_u32): Likewise.
16933 (veor_s64): Likewise.
16934 (veor_u64): Likewise.
16935 (veorq_s8): Likewise.
16936 (veorq_s16): Likewise.
16937 (veorq_s32): Likewise.
16938 (veorq_s64): Likewise.
16939 (veorq_u8): Likewise.
16940 (veorq_u16): Likewise.
16941 (veorq_u32): Likewise.
16942 (veorq_u64): Likewise.
16943 (vbic_s8): Likewise.
16944 (vbic_s16): Likewise.
16945 (vbic_s32): Likewise.
16946 (vbic_u8): Likewise.
16947 (vbic_u16): Likewise.
16948 (vbic_u32): Likewise.
16949 (vbic_s64): Likewise.
16950 (vbic_u64): Likewise.
16951 (vbicq_s8): Likewise.
16952 (vbicq_s16): Likewise.
16953 (vbicq_s32): Likewise.
16954 (vbicq_s64): Likewise.
16955 (vbicq_u8): Likewise.
16956 (vbicq_u16): Likewise.
16957 (vbicq_u32): Likewise.
16958 (vbicq_u64): Likewise.
16959 (vorn_s8): Likewise.
16960 (vorn_s16): Likewise.
16961 (vorn_s32): Likewise.
16962 (vorn_u8): Likewise.
16963 (vorn_u16): Likewise.
16964 (vorn_u32): Likewise.
16965 (vorn_s64): Likewise.
16966 (vorn_u64): Likewise.
16967 (vornq_s8): Likewise.
16968 (vornq_s16): Likewise.
16969 (vornq_s32): Likewise.
16970 (vornq_s64): Likewise.
16971 (vornq_u8): Likewise.
16972 (vornq_u16): Likewise.
16973 (vornq_u32): Likewise.
16974 (vornq_u64): Likewise.
16976 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16978 * wide-int.cc (UTItype): Define.
16979 (UDWtype): Define for appropriate W_TYPE_SIZE.
16981 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16983 PR tree-optimization/59100
16984 * tree-ssa-phiopt.c: Include tree-inline.h.
16985 (neutral_element_p, absorbing_element_p): New functions.
16986 (value_replacement): Handle conditional binary operations with a
16987 neutral or absorbing element.
16989 2014-05-08 Richard Biener <rguenther@suse.de>
16991 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16992 folding the expression.
16993 (valueize_expr): Remove.
16994 (visit_reference_op_load): Do not valueize the result of
16996 (simplify_binary_expression): Likewise.
16997 (simplify_unary_expression): Likewise.
16999 2014-05-08 Richard Biener <rguenther@suse.de>
17001 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17002 looking at TYPE_ARG_TYPES.
17004 2014-05-08 Richard Biener <rguenther@suse.de>
17006 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17007 pointer propagation special-case.
17009 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17011 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17012 core part of address expressions.
17014 2014-05-08 Alan Modra <amodra@gmail.com>
17017 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17018 loads and stores when -mno-strict-align at any alignment.
17019 (expand_block_clear): Similarly. Also correct calculation of
17022 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17024 PR middle-end/39246
17025 * tree-complex.c (expand_complex_move): Keep line info when expanding
17027 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17028 of complex expression. Use new argument to display correct location
17029 for values coming from phi statement.
17030 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17031 (warn_uninitialized_phi): Pass location of phi argument to
17033 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17034 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17036 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17038 * config/rs6000/predicates.md (indexed_address_mem): New.
17039 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17040 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17041 fpstore_ux, fpstore_u.
17042 (sign_extend, indexed, update): New.
17043 (cell_micro): Adjust.
17044 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17045 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17046 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17047 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17048 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17049 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17050 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17051 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17052 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17053 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17054 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17055 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17056 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17057 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17058 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17060 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17061 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17062 *vsx_extract_<mode>_store): Adjust.
17063 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17064 is_cracked_insn, insn_must_be_first_in_group,
17065 insn_must_be_last_in_group): Adjust.
17067 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17069 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17070 ppc440-fpstore): Adjust.
17071 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17072 ppc476-fpstore): Adjust.
17073 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17074 ppc601-fpstore): Adjust.
17075 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17077 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17079 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17080 ppc7450-fpstore): Adjust.
17081 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17082 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17083 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17085 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17086 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17087 cell-fpstore, cell-fpstore-update): Adjust.
17088 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17089 ppce300c3_store, ppce300c3_fpstore): Adjust.
17090 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17091 e500mc_fpstore): Adjust.
17092 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17093 e500mc64_store, e500mc64_fpstore): Adjust.
17094 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17095 e5500_fpstore): Adjust.
17096 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17097 e6500_fpstore): Adjust.
17098 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17100 * config/rs6000/power4.md (power4-load, power4-load-ext,
17101 power4-load-ext-update, power4-load-ext-update-indexed,
17102 power4-load-update-indexed, power4-load-update, power4-fpload,
17103 power4-fpload-update, power4-store, power4-store-update,
17104 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17106 * config/rs6000/power5.md (power5-load, power5-load-ext,
17107 power5-load-ext-update, power5-load-ext-update-indexed,
17108 power5-load-update-indexed, power5-load-update, power5-fpload,
17109 power5-fpload-update, power5-store, power5-store-update,
17110 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17112 * config/rs6000/power6.md (power6-load, power6-load-ext,
17113 power6-load-update, power6-load-update-indexed,
17114 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17115 power6-fpload-update, power6-store, power6-store-update,
17116 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17118 * config/rs6000/power7.md (power7-load, power7-load-ext,
17119 power7-load-update, power7-load-update-indexed,
17120 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17121 power7-fpload-update, power7-store, power7-store-update,
17122 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17124 * config/rs6000/power8.md (power8-load, power8-load-update,
17125 power8-load-ext, power8-load-ext-update, power8-fpload,
17126 power8-fpload-update, power8-store, power8-store-update-indexed,
17127 power8-fpstore, power8-fpstore-update): Adjust.
17128 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17130 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17131 titan_lsu_store, titan_lsu_fpstore): Adjust.
17132 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17134 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17137 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17138 unrolled byte insns. Emit address increments after move insns.
17140 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17142 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17143 const_gimple, rather than a gimple.
17144 (gimple_call_builtin_p): Likewise, for the three variants.
17146 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17147 (gimple_call_builtin_p): Likewise, for the three variants.
17149 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17151 PR tree-optimization/61095
17152 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17154 2014-05-07 Richard Biener <rguenther@suse.de>
17156 PR tree-optimization/61034
17157 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17158 (maybe_skip_until): Use translate to take into account
17159 lattices when trying to do disambiguations.
17160 (get_continuation_for_phi_1): Likewise.
17161 (get_continuation_for_phi): Adjust for added translate arguments.
17162 (walk_non_aliased_vuses): Likewise.
17163 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17164 (walk_non_aliased_vuses): Likewise.
17165 (call_may_clobber_ref_p_1): Declare.
17166 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17167 calls. Stop early if we are only supposed to disambiguate.
17168 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17170 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17172 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17173 Emit an error when the function has arguments.
17175 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17177 * cfgloop.h (unswitch_loops): Remove.
17178 * doc/passes.texi: Remove references to loop-unswitch.c
17179 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17181 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17183 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17184 check for loads group of length 3.
17185 (vect_permute_load_chain): New permutations for loads group of
17187 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17188 of vec_perm_shuffle for the new permutations.
17190 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17192 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17193 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17194 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17195 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17196 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17197 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17198 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17199 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17201 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17203 * loop-unswitch.c: Delete.
17205 2014-05-07 Richard Biener <rguenther@suse.de>
17207 * config.gcc: Always set need_64bit_hwint to yes.
17209 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17211 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17212 of using optimize_size.
17214 2014-05-06 Mike Stump <mikestump@comcast.net>
17216 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17218 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17220 * config/i386/sse.md (*mov<mode>_internal)
17221 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17222 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17223 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17224 (*<code><mode>3, *andnot<mode>3<mask_name>)
17225 (<mask_codefor><code><mode>3<mask_name>): Only consider
17226 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17228 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17231 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17233 * lra-constraints.c (valid_address_p): Move earlier in file.
17234 Add a constraint argument to the address_info version.
17235 (satisfies_memory_constraint_p): New function.
17236 (satisfies_address_constraint_p): Likewise.
17237 (process_alt_operands, curr_insn_transform): Use them.
17238 (process_address): Pass the constraint to valid_address_p when
17239 checking address operands.
17241 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17243 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17244 to their respective blocks. Fix inadvertent use of "node".
17246 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17248 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17250 (init_emit_once): ...here.
17251 * rtl.h (init_derived_machine_modes): Declare.
17252 * toplev.c (do_compile): Call it even if no_backend.
17254 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17255 Mike Stump <mikestump@comcast.net>
17256 Richard Sandiford <rdsandiford@googlemail.com>
17257 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17259 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17260 (rtx_equal_for_memref_p): Update comment.
17261 (adjust_offset_for_component_ref): Use wide-int interfaces.
17262 * builtins.c (get_object_alignment_2): Likewise.
17263 (c_readstr): Likewise.
17264 (target_char_cast): Add comment.
17265 (determine_block_size): Use wide-int interfaces.
17266 (expand_builtin_signbit): Likewise.
17267 (fold_builtin_int_roundingfn): Likewise.
17268 (fold_builtin_bitop): Likewise.
17269 (fold_builtin_bswap): Likewise.
17270 (fold_builtin_logarithm): Use signop.
17271 (fold_builtin_pow): Likewise.
17272 (fold_builtin_memory_op): Use wide-int interfaces.
17273 (fold_builtin_object_size): Likewise.
17274 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17275 nb_iterations_estimate.
17276 (record_niter_bound): Use wide-int interfaces.
17277 (get_estimated_loop_iterations_int): Likewise.
17278 (get_estimated_loop_iterations): Likewise.
17279 (get_max_loop_iterations): Likewise.
17280 * cfgloop.h: Include wide-int.h.
17281 (struct nb_iter_bound): Change bound to widest_int.
17282 (struct loop): Change nb_iterations_upper_bound and
17283 nb_iterations_estimate to widest_int.
17284 (record_niter_bound): Switch to use widest_int.
17285 (get_estimated_loop_iterations): Likewise.
17286 (get_max_loop_iterations): Likewise.
17287 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17288 update for wide-int.
17289 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17290 * combine.c (try_combine): Likewise.
17291 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17292 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17294 (aarch64_float_const_representable_p): Likewise.
17295 * config/arc/arc.c: Include wide-int.h.
17296 (arc_can_use_doloop_p): Use wide-int interfaces.
17297 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17298 (vfp3_const_double_index): Likewise.
17299 * config/avr/avr.c (avr_out_round): Likewise.
17300 (avr_fold_builtin): Likewise.
17301 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17302 (bfin_can_use_doloop_p): Likewise.
17303 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17304 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17305 * config/i386/i386.c: Include wide-int.h.
17306 (ix86_data_alignment): Use wide-int interfaces.
17307 (ix86_local_alignment): Likewise.
17308 (ix86_emit_swsqrtsf): Update real_from_integer.
17309 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17310 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17311 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17312 (zero_constant): Likewise.
17313 (input_operand): Likewise.
17314 (splat_input_operand): Likewise.
17315 (non_logical_cint_operand): Change const_double to const_wide_int.
17316 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17317 (easy_altivec_constant): Remove comment.
17318 (paired_expand_vector_init): Use CONSTANT_P.
17319 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17320 (rs6000_emit_move): Update checks.
17321 (rs6000_aggregate_candidate): Use wide-int interfaces.
17322 (rs6000_expand_ternop_builtin): Likewise.
17323 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17324 (rs6000_assemble_integer): Likewise.
17325 (rs6000_hash_constant): Likewise.
17326 (output_toc): Likewise.
17327 (rs6000_rtx_costs): Likewise.
17328 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17329 * config/rs6000/rs6000-c.c: Include wide-int.h.
17330 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17331 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17332 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17333 Handle CONST_WIDE_INT.
17334 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17335 Use tree_fits_uhwi_p.
17336 * config/sparc/sparc.c: Include wide-int.h.
17337 (sparc_fold_builtin): Use wide-int interfaces.
17338 * config/vax/vax.c: Include wide-int.h.
17339 (vax_float_literal): Use real_from_integer.
17340 * coretypes.h (struct hwivec_def): New.
17342 (const_hwivec): New.
17343 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17344 (equiv_constant): Handle CONST_WIDE_INT.
17345 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17346 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17347 * dbxout.c (stabstr_U): Use wide-int interfaces.
17348 (dbxout_type): Update to use cst_fits_shwi_p.
17349 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17350 (TARGET_SUPPORTS_WIDE_INT): Add default.
17351 * dfp.c: Include wide-int.h.
17352 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17353 decimal_real_to_integer.
17354 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17355 decimal_real_to_integer.
17356 * doc/generic.texi (Constant expressions): Update for wide_int.
17357 * doc/rtl.texi (const_double): Likewise.
17358 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17359 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17360 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17361 (REAL_VALUE_FROM_INT): Remove.
17362 (TARGET_SUPPORTS_WIDE_INT): New.
17363 * doc/tm.texi: Regenerate.
17364 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17365 * double-int.h: Include wide-int.h.
17366 (struct wi::int_traits): New.
17367 * dwarf2out.c (get_full_len): New.
17368 (dw_val_equal_p): Add case dw_val_class_wide_int.
17369 (size_of_loc_descr): Likewise.
17370 (output_loc_operands): Likewise.
17371 (insert_double): Remove.
17372 (insert_wide_int): New.
17373 (add_AT_wide): New.
17374 (print_die): Add case dw_val_class_wide_int.
17375 (attr_checksum): Likewise.
17376 (attr_checksum_ordered): Likewise.
17377 (same_dw_val_p): Likewise.
17378 (size_of_die): Likewise.
17379 (value_format): Likewise.
17380 (output_die): Likewise.
17381 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17383 (clz_loc_descriptor): Use wide-int interfaces.
17384 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17385 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17386 (round_up_to_align): Use wide-int interfaces.
17387 (field_byte_offset): Likewise.
17388 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17389 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17390 CONST_DOUBLE handling. Use wide-int interfaces.
17391 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17392 (gen_enumeration_type_die): Use add_AT_wide.
17393 (hash_loc_operands): Add case dw_val_class_wide_int.
17394 (compare_loc_operands): Likewise.
17395 * dwarf2out.h: Include wide-int.h.
17396 (wide_int_ptr): New.
17397 (enum dw_val_class): Add dw_val_class_wide_int.
17398 (struct dw_val_struct): Add val_wide.
17399 * emit-rtl.c (const_wide_int_htab): New.
17400 (const_wide_int_htab_hash): New.
17401 (const_wide_int_htab_eq): New.
17402 (lookup_const_wide_int): New.
17403 (const_double_htab_hash): Use wide-int interfaces.
17404 (const_double_htab_eq): Likewise.
17405 (rtx_to_double_int): Conditionally compile for wide-int.
17406 (immed_double_int_const): Rename to immed_wide_int_const and
17407 update for wide-int.
17408 (immed_double_const): Conditionally compile for wide-int.
17409 (init_emit_once): Use wide-int interfaces.
17410 * explow.c (plus_constant): Likewise.
17411 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17412 (lshift_value): Use wide-int interfaces.
17413 (expand_mult): Likewise.
17414 (choose_multiplier): Likewise.
17415 (expand_smod_pow2): Likewise.
17416 (make_tree): Likewise.
17417 * expr.c (convert_modes): Consolidate handling of constants.
17418 Use wide-int interfaces.
17419 (emit_group_load_1): Add note.
17420 (store_expr): Update comment.
17421 (get_inner_reference): Use wide-int interfaces.
17422 (expand_constructor): Update comment.
17423 (expand_expr_real_2): Use wide-int interfaces.
17424 (expand_expr_real_1): Likewise.
17425 (reduce_to_bit_field_precision): Likewise.
17426 (const_vector_from_tree): Likewise.
17427 * final.c: Include wide-int-print.h.
17428 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17429 * fixed-value.c: Include wide-int.h.
17430 (fixed_from_string): Use wide-int interfaces.
17431 (fixed_to_decimal): Likewise.
17432 (fixed_convert_from_real): Likewise.
17433 (real_convert_from_fixed): Likewise.
17434 * fold-const.h (mem_ref_offset): Return an offset_int.
17435 (div_if_zero_remainder): Remove code parameter.
17436 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17437 Use wide-int interfaces.
17438 (may_negate_without_overflow_p): Use wide-int interfaces.
17439 (negate_expr_p): Likewise.
17440 (fold_negate_expr): Likewise.
17441 (int_const_binop_1): Likewise.
17442 (const_binop): Likewise.
17443 (fold_convert_const_int_from_int): Likewise.
17444 (fold_convert_const_int_from_real): Likewise.
17445 (fold_convert_const_int_from_fixed): Likewise.
17446 (fold_convert_const_fixed_from_int): Likewise.
17447 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17448 (sign_bit_p): Use wide-int interfaces.
17449 (make_range_step): Likewise.
17450 (build_range_check): Likewise. Pass an integer of the correct type
17451 instead of using integer_one_node.
17452 (range_predecessor): Pass an integer of the correct type instead
17453 of using integer_one_node.
17454 (range_successor): Likewise.
17455 (merge_ranges): Likewise.
17456 (unextend): Use wide-int interfaces.
17457 (extract_muldiv_1): Likewise.
17458 (fold_div_compare): Likewise.
17459 (fold_single_bit_test): Likewise.
17460 (fold_sign_changed_comparison): Likewise.
17461 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17462 (fold_plusminus_mult_expr): Use wide-int interfaces.
17463 (native_encode_int): Likewise.
17464 (native_interpret_int): Likewise.
17465 (fold_unary_loc): Likewise.
17466 (pointer_may_wrap_p): Likewise.
17467 (size_low_cst): Likewise.
17468 (mask_with_tz): Likewise.
17469 (fold_binary_loc): Likewise.
17470 (fold_ternary_loc): Likewise.
17471 (multiple_of_p): Likewise.
17472 (tree_call_nonnegative_warnv_p): Update calls to
17473 tree_int_cst_min_precision and real_from_integer.
17474 (fold_negate_const): Use wide-int interfaces.
17475 (fold_abs_const): Likewise.
17476 (fold_relational_const): Use tree_int_cst_lt.
17477 (round_up_loc): Use wide-int interfaces.
17478 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17479 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17480 * gengtype.c: Remove include of double-int.h.
17481 (do_typedef): Use wide-int interfaces.
17482 (open_base_files): Add wide-int.h.
17483 (main): Add offset_int and widest_int typedefs.
17484 * gengtype-lex.l: Handle "^".
17485 (CXX_KEYWORD): Add "static".
17486 * gengtype-parse.c (require3): New.
17487 (require_template_declaration): Handle constant template arguments
17488 and nested templates.
17489 * gengtype-state.c: Don't include "double-int.h".
17490 * genpreds.c (write_one_predicate_function): Update comment.
17491 (write_tm_constrs_h): Add check for hval and lval use in
17493 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17494 (add_to_sequence): Likewise.
17495 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17496 and const_double_operand.
17497 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17499 * gimple-fold.c (get_base_constructor): Likewise.
17500 (fold_array_ctor_reference): Likewise.
17501 (fold_nonarray_ctor_reference): Likewise.
17502 (fold_const_aggregate_ref_1): Likewise.
17503 (gimple_val_nonnegative_real_p): Likewise.
17504 (gimple_fold_indirect_ref): Likewise.
17505 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17506 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17507 (struct slsr_cand_d): Change index to be widest_int.
17508 (struct incr_info_d): Change incr to be widest_int.
17509 (alloc_cand_and_find_basis): Use wide-int interfaces.
17510 (slsr_process_phi): Likewise.
17511 (backtrace_base_for_ref): Likewise. Return a widest_int.
17512 (restructure_reference): Take a widest_int instead of a double_int.
17513 (slsr_process_ref): Use wide-int interfaces.
17514 (create_mul_ssa_cand): Likewise.
17515 (create_mul_imm_cand): Likewise.
17516 (create_add_ssa_cand): Likewise.
17517 (create_add_imm_cand): Take a widest_int instead of a double_int.
17518 (slsr_process_add): Use wide-int interfaces.
17519 (slsr_process_cast): Likewise.
17520 (slsr_process_copy): Likewise.
17521 (dump_candidate): Likewise.
17522 (dump_incr_vec): Likewise.
17523 (replace_ref): Likewise.
17524 (cand_increment): Likewise. Return a widest_int.
17525 (cand_abs_increment): Likewise.
17526 (replace_mult_candidate): Take a widest_int instead of a double_int.
17527 (replace_unconditional_candidate): Use wide-int interfaces.
17528 (incr_vec_index): Take a widest_int instead of a double_int.
17529 (create_add_on_incoming_edge): Likewise.
17530 (create_phi_basis): Use wide-int interfaces.
17531 (replace_conditional_candidate): Likewise.
17532 (record_increment): Take a widest_int instead of a double_int.
17533 (record_phi_increments): Use wide-int interfaces.
17534 (phi_incr_cost): Take a widest_int instead of a double_int.
17535 (lowest_cost_path): Likewise.
17536 (total_savings): Likewise.
17537 (analyze_increments): Use wide-int interfaces.
17538 (ncd_with_phi): Take a widest_int instead of a double_int.
17539 (ncd_of_cand_and_phis): Likewise.
17540 (nearest_common_dominator_for_cands): Likewise.
17541 (insert_initializers): Use wide-int interfaces.
17542 (all_phi_incrs_profitable): Likewise.
17543 (replace_one_candidate): Likewise.
17544 (replace_profitable_candidates): Likewise.
17545 * godump.c: Include wide-int-print.h.
17546 (go_output_typedef): Use wide-int interfaces.
17547 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17548 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17549 (build_loop_iteration_domains): Likewise.
17550 * hooks.h: Include wide-int.h rather than double-int.h.
17551 (hook_bool_dint_dint_uint_bool_true): Delete.
17552 (hook_bool_wint_wint_uint_bool_true): Declare.
17553 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17554 (hook_bool_wint_wint_uint_bool_true): New.
17555 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17557 (ubsan_expand_si_overflow_mul_check): Likewise.
17558 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17559 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17560 (get_ancestor_addr_info): Likewise.
17561 (ipa_modify_call_arguments): Likewise.
17562 * loop-doloop.c (doloop_modify): Likewise.
17563 (doloop_optimize): Likewise.
17564 * loop-iv.c (iv_number_of_iterations): Likewise.
17565 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17566 (unroll_loop_constant_iterations): Likewise.
17567 (decide_unroll_runtime_iterations): Likewise.
17568 (unroll_loop_runtime_iterations): Likewise.
17569 (decide_peel_simple): Likewise.
17570 (decide_unroll_stupid): Likewise.
17571 * lto-streamer-in.c (streamer_read_wi): Add.
17572 (input_cfg): Use wide-int interfaces.
17573 (lto_input_tree_1): Likewise.
17574 * lto-streamer-out.c (streamer_write_wi): Add.
17575 (hash_tree): Use wide-int interfaces.
17576 (output_cfg): Likewise.
17577 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17578 (GTFILES): Add wide-int.h and signop.h.
17579 (TAGS): Look for .cc files too.
17580 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17581 * optabs.c (expand_subword_shift): Likewise.
17582 (expand_doubleword_shift): Likewise.
17583 (expand_absneg_bit): Likewise.
17584 (expand_copysign_absneg): Likewise.
17585 (expand_copysign_bit): Likewise.
17586 * postreload.c (reload_cse_simplify_set): Likewise.
17587 * predict.c (predict_iv_comparison): Likewise.
17588 * pretty-print.h: Include wide-int-print.h.
17590 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17591 * print-tree.c: Include wide-int-print.h.
17592 (print_node_brief): Use wide-int interfaces.
17593 (print_node): Likewise.
17594 * read-rtl.c (validate_const_wide_int): New.
17595 (read_rtx_code): Add CONST_WIDE_INT case.
17596 * real.c: Include wide-int.h.
17597 (real_to_integer2): Delete.
17598 (real_to_integer): New function, returning a wide_int.
17599 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17600 (ten_to_ptwo): Update call to real_from_integer.
17601 (real_digit): Likewise.
17602 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17603 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17604 (REAL_VALUE_TO_INT): Delete.
17605 (real_to_integer): Declare a wide-int form.
17606 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17607 * recog.c (const_int_operand): Improve comment.
17608 (const_scalar_int_operand): New.
17609 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17610 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17611 (split_double): Likewise.
17612 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17613 (rtx_size): Likewise.
17614 (rtx_alloc_stat_v): New.
17615 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17616 (cwi_output_hex): New.
17617 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17618 (cwi_check_failed_bounds): New.
17619 * rtl.def (CONST_WIDE_INT): New.
17620 * rtl.h: Include <utility> and wide-int.h.
17621 (struct hwivec_def): New.
17622 (CWI_GET_NUM_ELEM): New.
17623 (CWI_PUT_NUM_ELEM): New.
17624 (struct rtx_def): Add num_elem and hwiv.
17625 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17626 (CASE_CONST_UNIQUE): Likewise.
17627 (CASE_CONST_ANY): Likewise.
17628 (CONST_SCALAR_INT_P): Likewise.
17629 (CONST_WIDE_INT_P): New.
17631 (HWIVEC_CHECK): New.
17632 (cwi_check_failed_bounds): New.
17634 (HWIVEC_CHECK): New.
17635 (CONST_WIDE_INT_VEC) New.
17636 (CONST_WIDE_INT_NUNITS) New.
17637 (CONST_WIDE_INT_ELT) New.
17638 (rtx_mode_t): New type.
17639 (wi::int_traits <rtx_mode_t>): New.
17641 (wi::min_value): New.
17642 (wi::max_value): New.
17644 (const_wide_int_alloc): New.
17645 (immed_wide_int_const): New.
17646 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17647 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17648 * signop.h: New file.
17649 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17650 (simplify_const_unary_operation): Use wide-int interfaces.
17651 (simplify_binary_operation_1): Likewise.
17652 (simplify_const_binary_operation): Likewise.
17653 (simplify_const_relational_operation): Likewise.
17654 (simplify_immed_subreg): Likewise.
17655 * stmt.c (expand_case): Likewise.
17656 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17657 signop rather than a bool.
17658 * stor-layout.c (layout_type): Use wide-int interfaces.
17659 (initialize_sizetypes): Update calls to
17660 set_min_and_max_values_for_integral_type.
17661 (set_min_and_max_values_for_integral_type): Take a signop rather
17662 than a bool. Use wide-int interfaces.
17663 (fixup_signed_type): Update accordingly. Remove
17664 HOST_BITS_PER_DOUBLE_INT limit.
17665 (fixup_unsigned_type): Likewise.
17666 * system.h (STATIC_CONSTANT_P): New.
17667 (STATIC_ASSERT): New.
17668 * target.def (can_use_doloop_p): Take widest_ints rather than
17670 * target.h: Include wide-int.h rather than double-int.h.
17671 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17673 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17674 rather than INT_CST_LT_UNSIGNED.
17675 (can_use_doloop_if_innermost): Take widest_ints rather than
17677 * tree-affine.c: Include wide-int-print.h.
17678 (double_int_ext_for_comb): Delete.
17679 (wide_int_ext_for_comb): New.
17680 (aff_combination_zero): Use wide-int interfaces.
17681 (aff_combination_const): Take a widest_int instead of a double_int.
17682 (aff_combination_elt): Use wide-int interfaces.
17683 (aff_combination_scale): Take a widest_int instead of a double_int.
17684 (aff_combination_add_elt): Likewise.
17685 (aff_combination_add_cst): Likewise.
17686 (aff_combination_add): Use wide-int interfaces.
17687 (aff_combination_convert): Likewise.
17688 (tree_to_aff_combination): Likewise.
17689 (add_elt_to_tree): Take a widest_int instead of a double_int.
17690 (aff_combination_to_tree): Use wide-int interfaces.
17691 (aff_combination_remove_elt): Likewise.
17692 (aff_combination_add_product): Take a widest_int instead of
17694 (aff_combination_mult): Use wide-int interfaces.
17695 (aff_combination_expand): Likewise.
17696 (double_int_constant_multiple_p): Delete.
17697 (wide_int_constant_multiple_p): New.
17698 (aff_combination_constant_multiple_p): Take a widest_int pointer
17699 instead of a double_int pointer.
17700 (print_aff): Use wide-int interfaces.
17701 (get_inner_reference_aff): Take a widest_int pointer
17702 instead of a double_int pointer.
17703 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17704 * tree-affine.h: Include wide-int.h.
17705 (struct aff_comb_elt): Change type of coef to widest_int.
17706 (struct affine_tree_combination): Change type of offset to widest_int.
17707 (double_int_ext_for_comb): Delete.
17708 (wide_int_ext_for_comb): New.
17709 (aff_combination_const): Use widest_int instead of double_int.
17710 (aff_combination_scale): Likewise.
17711 (aff_combination_add_elt): Likewise.
17712 (aff_combination_constant_multiple_p): Likewise.
17713 (get_inner_reference_aff): Likewise.
17714 (aff_comb_cannot_overlap_p): Likewise.
17715 (aff_combination_zero_p): Use wide-int interfaces.
17716 * tree.c: Include tree.h.
17717 (init_ttree): Use make_int_cst.
17718 (tree_code_size): Removed code for INTEGER_CST case.
17719 (tree_size): Add INTEGER_CST case.
17720 (make_node_stat): Update comment.
17721 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17722 (build_int_cst_type): Use wide-int interfaces.
17723 (double_int_to_tree): Likewise.
17724 (double_int_fits_to_tree_p): Delete.
17725 (force_fit_type_double): Delete.
17726 (force_fit_type): New.
17727 (int_cst_hash_hash): Use wide-int interfaces.
17728 (int_cst_hash_eq): Likewise.
17729 (build_int_cst_wide): Delete.
17730 (wide_int_to_tree): New.
17731 (cache_integer_cst): Use wide-int interfaces.
17732 (build_low_bits_mask): Likewise.
17733 (cst_and_fits_in_hwi): Likewise.
17734 (real_value_from_int_cst): Likewise.
17735 (make_int_cst_stat): New.
17736 (integer_zerop): Use wide_int interfaces.
17737 (integer_onep): Likewise.
17738 (integer_all_onesp): Likewise.
17739 (integer_pow2p): Likewise.
17740 (integer_nonzerop): Likewise.
17741 (tree_log2): Likewise.
17742 (tree_floor_log2): Likewise.
17743 (tree_ctz): Likewise.
17744 (int_size_in_bytes): Likewise.
17745 (mem_ref_offset): Return an offset_int rather than a double_int.
17746 (build_type_attribute_qual_variant): Use wide_int interfaces.
17747 (type_hash_eq): Likewise
17748 (tree_int_cst_equal): Likewise.
17749 (tree_int_cst_lt): Delete.
17750 (tree_int_cst_compare): Likewise.
17751 (tree_fits_shwi_p): Use wide_int interfaces.
17752 (tree_fits_uhwi_p): Likewise.
17753 (tree_int_cst_sign_bit): Likewise.
17754 (tree_int_cst_sgn): Likewise.
17755 (tree_int_cst_min_precision): Take a signop rather than a bool.
17756 (simple_cst_equal): Use wide_int interfaces.
17757 (compare_tree_int): Likewise.
17758 (iterative_hash_expr): Likewise.
17759 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17761 (get_type_static_bounds): Use wide_int interfaces.
17762 (tree_int_cst_elt_check_failed): New.
17763 (build_common_tree_nodes): Reordered to set prec before filling in
17765 (int_cst_value): Check cst_and_fits_in_hwi.
17766 (widest_int_cst_value): Use wide_int interfaces.
17767 (upper_bound_in_type): Likewise.
17768 (lower_bound_in_type): Likewise.
17769 (num_ending_zeros): Likewise.
17770 (drop_tree_overflow): Likewise.
17771 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17772 (gen_conditions_for_pow_cst_base): Likewise.
17773 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17774 (group_case_labels_stmt): Use wide-int interfaces.
17775 (verify_gimple_assign_binary): Likewise.
17776 (print_loop): Likewise.
17777 * tree-chrec.c (tree_fold_binomial): Likewise.
17778 * tree-core.h (struct tree_base): Add int_length.
17779 (struct tree_int_cst): Change rep of value.
17780 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17781 (dr_may_alias_p): Likewise.
17782 (max_stmt_executions_tree): Likewise.
17783 * tree.def (INTEGER_CST): Update comment.
17784 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17785 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17786 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17787 (dequeue_and_dump): Use wide-int interfaces.
17788 * tree.h: Include wide-int.h.
17789 (NULL_TREE): Moved to earlier loc in file.
17790 (TREE_INT_CST_ELT_CHECK): New.
17791 (tree_int_cst_elt_check_failed): New.
17793 (TREE_INT_CST): Delete.
17794 (TREE_INT_CST_LOW): Use wide-int interfaces.
17795 (TREE_INT_CST_HIGH): Delete.
17796 (TREE_INT_CST_NUNITS): New.
17797 (TREE_INT_CST_EXT_NUNITS): Likewise.
17798 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17799 (TREE_INT_CST_ELT): Likewise.
17800 (INT_CST_LT): Delete.
17801 (tree_int_cst_elt_check): New (two forms).
17802 (type_code_size): Update comment.
17803 (make_int_cst_stat, make_int_cst): New.
17804 (tree_to_double_int): Delete.
17805 (double_int_fits_to_tree_p): Delete.
17806 (force_fit_type_double): Delete.
17807 (build_int_cstu): Replace with out-of-line function.
17808 (build_int_cst_wide): Delete.
17809 (tree_int_cst_lt): Define inline.
17810 (tree_int_cst_le): New.
17811 (tree_int_cst_compare): Define inline.
17812 (tree_int_cst_min_precision): Take a signop rather than a bool.
17813 (wi::int_traits <const_tree>): New.
17814 (wi::int_traits <tree>): New.
17815 (wi::extended_tree): New.
17816 (wi::int_traits <wi::extended_tree>): New.
17817 (wi::to_widest): New.
17818 (wi::to_offset): New.
17819 (wi::fits_to_tree_p): New.
17820 (wi::min_value): New.
17821 (wi::max_value): New.
17822 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17823 (copy_tree_body_r): Likewise.
17824 * tree-object-size.c (compute_object_offset): Likewise.
17825 (addr_object_size): Likewise.
17826 * tree-predcom.c: Include wide-int-print.h.
17827 (struct dref_d): Change type of offset to widest_int.
17828 (dump_dref): Call wide-int printer.
17829 (aff_combination_dr_offset): Use wide-int interfaces.
17830 (determine_offset): Take a widest_int pointer rather than a
17831 double_int pointer.
17832 (split_data_refs_to_components): Use wide-int interfaces.
17833 (suitable_component_p): Likewise.
17834 (order_drefs): Likewise.
17835 (add_ref_to_chain): Likewise.
17836 (valid_initializer_p): Likewise.
17837 (determine_roots_comp): Likewise.
17838 * tree-pretty-print.c: Include wide-int-print.h.
17839 (dump_generic_node): Use wide-int interfaces.
17840 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17841 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17842 (move_fixed_address_to_symbol): Likewise.
17843 (move_hint_to_base): Likewise.
17844 (move_pointer_to_base): Likewise.
17845 (move_variant_to_index): Likewise.
17846 (most_expensive_mult_to_index): Likewise.
17847 (addr_to_parts): Likewise.
17848 (copy_ref_info): Likewise.
17849 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17850 (indirect_refs_may_alias_p): Likewise.
17851 (stmt_kills_ref_p_1): Likewise.
17852 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17853 * tree-ssa-ccp.c: Update comment at top of file. Include
17855 (struct prop_value_d): Change type of mask to widest_int.
17856 (extend_mask): New function.
17857 (dump_lattice_value): Use wide-int interfaces.
17858 (get_default_value): Likewise.
17859 (set_constant_value): Likewise.
17860 (set_value_varying): Likewise.
17861 (valid_lattice_transition): Likewise.
17862 (set_lattice_value): Likewise.
17863 (value_to_double_int): Delete.
17864 (value_to_wide_int): New.
17865 (get_value_from_alignment): Use wide-int interfaces.
17866 (get_value_for_expr): Likewise.
17867 (do_dbg_cnt): Likewise.
17868 (ccp_finalize): Likewise.
17869 (ccp_lattice_meet): Likewise.
17870 (bit_value_unop_1): Use widest_ints rather than double_ints.
17871 (bit_value_binop_1): Likewise.
17872 (bit_value_unop): Use wide-int interfaces.
17873 (bit_value_binop): Likewise.
17874 (bit_value_assume_aligned): Likewise.
17875 (evaluate_stmt): Likewise.
17876 (ccp_fold_stmt): Likewise.
17877 (visit_cond_stmt): Likewise.
17878 (ccp_visit_stmt): Likewise.
17879 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17880 (constant_pointer_difference): Likewise.
17881 (associate_pointerplus): Likewise.
17882 (combine_conversions): Likewise.
17883 * tree-ssa-loop.h: Include wide-int.h.
17884 (struct tree_niter_desc): Change type of max to widest_int.
17885 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17886 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17887 (remove_redundant_iv_tests): Likewise.
17888 (canonicalize_loop_induction_variables): Likewise.
17889 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17890 (constant_multiple_of): Take a widest_int pointer instead of
17891 a double_int pointer.
17892 (get_computation_aff): Use wide-int interfaces.
17893 (ptr_difference_cost): Likewise.
17894 (difference_cost): Likewise.
17895 (get_loop_invariant_expr_id): Likewise.
17896 (get_computation_cost_at): Likewise.
17897 (iv_elimination_compare_lt): Likewise.
17898 (may_eliminate_iv): Likewise.
17899 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17900 instead of double_int.
17901 (max_loop_iterations): Likewise.
17902 (max_stmt_executions): Likewise.
17903 (estimated_stmt_executions): Likewise.
17904 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17905 (split_to_var_and_offset): Use wide-int interfaces.
17906 (determine_value_range): Likewise.
17907 (bound_difference_of_offsetted_base): Likewise.
17908 (bounds_add): Take a widest_int instead of a double_int.
17909 (number_of_iterations_ne_max): Use wide-int interfaces.
17910 (number_of_iterations_ne): Likewise.
17911 (number_of_iterations_lt_to_ne): Likewise.
17912 (assert_loop_rolls_lt): Likewise.
17913 (number_of_iterations_lt): Likewise.
17914 (number_of_iterations_le): Likewise.
17915 (number_of_iterations_cond): Likewise.
17916 (number_of_iterations_exit): Likewise.
17917 (finite_loop_p): Likewise.
17918 (derive_constant_upper_bound_assign): Likewise.
17919 (derive_constant_upper_bound): Return a widest_int.
17920 (derive_constant_upper_bound_ops): Likewise.
17921 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17922 (record_estimate): Take a widest_int rather than a double_int.
17923 (record_nonwrapping_iv): Use wide-int interfaces.
17924 (double_int_cmp): Delete.
17925 (wide_int_cmp): New.
17926 (bound_index): Take a widest_int rather than a double_int.
17927 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17928 (maybe_lower_iteration_bound): Likewise.
17929 (estimate_numbers_of_iterations_loop): Likewise.
17930 (estimated_loop_iterations): Take a widest_int pointer than than
17931 a double_int pointer.
17932 (estimated_loop_iterations_int): Use wide-int interfaces.
17933 (max_loop_iterations): Take a widest_int pointer than than
17934 a double_int pointer.
17935 (max_loop_iterations_int): Use wide-int interfaces.
17936 (max_stmt_executions): Take a widest_int pointer than than
17937 a double_int pointer.
17938 (estimated_stmt_executions): Likewise.
17939 (n_of_executions_at_most): Use wide-int interfaces.
17940 (scev_probably_wraps_p): Likewise.
17941 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17942 to real_to_integer.
17943 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17945 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17946 double_ints. Adjust for trailing_wide_ints <3> representation.
17947 (set_nonzero_bits): Likewise.
17948 (get_range_info): Return wide_ints rather than double_ints.
17949 Adjust for trailing_wide_ints <3> representation.
17950 (get_nonzero_bits): Likewise.
17951 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17953 * tree-ssanames.h (struct range_info_def): Replace min, max and
17954 nonzero_bits with a trailing_wide_ints <3>.
17955 (set_range_info): Use wide_int_refs rather than double_ints.
17956 (set_nonzero_bits): Likewise.
17957 (get_range_info): Return wide_ints rather than double_ints.
17958 (get_nonzero_bits): Likewise.
17959 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17960 * tree-ssa-pre.c (phi_translate_1): Likewise.
17961 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17962 (acceptable_pow_call): Likewise.
17963 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17965 (vn_reference_fold_indirect): Likewise.
17966 (vn_reference_maybe_forwprop_address): Likewise.
17967 (valueize_refs_1): Likewise.
17968 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17969 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17970 tree_int_cst_lt and tree_int_cst_le.
17971 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17973 (streamer_alloc_tree): Likewise.
17974 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17975 (streamer_write_tree_header): Likewise.
17976 (streamer_write_integer_cst): Likewise.
17977 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17978 (build_constructors): Likewise.
17979 (array_value_type): Likewise.
17980 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17981 (vect_check_gather): Likewise.
17982 * tree-vect-generic.c (build_replicated_const): Likewise.
17983 (expand_vector_divmod): Likewise.
17984 * tree-vect-loop.c (vect_transform_loop): Likewise.
17985 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17986 (vect_do_peeling_for_alignment): Likewise.
17987 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17988 * tree-vrp.c: Include wide-int.h.
17989 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17990 (extract_range_from_assert): Use wide-int interfaces.
17991 (vrp_int_const_binop): Likewise.
17992 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17993 double_int pointers.
17994 (ranges_from_anti_range): Use wide-int interfaces.
17995 (quad_int_cmp): Delete.
17996 (quad_int_pair_sort): Likewise.
17997 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17998 (extract_range_from_unary_expr_1): Likewise.
17999 (adjust_range_with_scev): Likewise.
18000 (masked_increment): Take and return wide_ints rather than double_ints.
18001 (register_edge_assert_for_2): Use wide-int interfaces.
18002 (check_array_ref): Likewise.
18003 (search_for_addr_array): Likewise.
18004 (maybe_set_nonzero_bits): Likewise.
18005 (union_ranges): Pass an integer of the correct type instead of
18006 using integer_one_node.
18007 (intersect_ranges): Likewise.
18008 (simplify_truth_ops_using_ranges): Likewise.
18009 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18010 (range_fits_type_p): Likewise.
18011 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18013 (simplify_conversion_using_ranges): Use wide-int interfaces.
18014 (simplify_float_conversion_using_ranges): Likewise.
18015 (vrp_finalize): Likewise.
18016 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18017 (gimple_stringops_transform): Likewise.
18018 * varasm.c (decode_addr_const): Likewise.
18019 (const_hash_1): Likewise.
18020 (const_rtx_hash_1): Likewise
18021 (output_constant): Likewise.
18022 (array_size_for_constructor): Likewise.
18023 (output_constructor_regular_field): Likewise.
18024 (output_constructor_bitfield): Likewise.
18025 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18026 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18028 * gencheck.c: Define BITS_PER_UNIT.
18029 * wide-int.cc: New.
18031 * wide-int-print.cc: New.
18032 * wide-int-print.h: New.
18034 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18036 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18038 2014-05-06 Richard Biener <rguenther@suse.de>
18040 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18041 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18042 (TODO_verify_all): Adjust.
18043 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18044 TODO_verify_stmts and TODO_verify_rtl_sharing.
18045 * bb-reorder.c: Likewise.
18046 * cfgexpand.c: Likewise.
18047 * cprop.c: Likewise.
18049 * function.c: Likewise.
18050 * fwprop.c: Likewise.
18051 * gcse.c: Likewise.
18052 * gimple-ssa-isolate-paths.c: Likewise.
18053 * gimple-ssa-strength-reduction.c: Likewise.
18054 * ipa-split.c: Likewise.
18055 * loop-init.c: Likewise.
18056 * loop-unroll.c: Likewise.
18057 * lower-subreg.c: Likewise.
18058 * modulo-sched.c: Likewise.
18059 * postreload-gcse.c: Likewise.
18060 * predict.c: Likewise.
18061 * recog.c: Likewise.
18062 * sched-rgn.c: Likewise.
18063 * store-motion.c: Likewise.
18064 * tracer.c: Likewise.
18065 * trans-mem.c: Likewise.
18066 * tree-call-cdce.c: Likewise.
18067 * tree-cfg.c: Likewise.
18068 * tree-cfgcleanup.c: Likewise.
18069 * tree-complex.c: Likewise.
18070 * tree-eh.c: Likewise.
18071 * tree-emutls.c: Likewise.
18072 * tree-if-conv.c: Likewise.
18073 * tree-into-ssa.c: Likewise.
18074 * tree-loop-distribution.c: Likewise.
18075 * tree-object-size.c: Likewise.
18076 * tree-parloops.c: Likewise.
18077 * tree-pass.h: Likewise.
18078 * tree-sra.c: Likewise.
18079 * tree-ssa-ccp.c: Likewise.
18080 * tree-ssa-copy.c: Likewise.
18081 * tree-ssa-copyrename.c: Likewise.
18082 * tree-ssa-dce.c: Likewise.
18083 * tree-ssa-dom.c: Likewise.
18084 * tree-ssa-dse.c: Likewise.
18085 * tree-ssa-forwprop.c: Likewise.
18086 * tree-ssa-ifcombine.c: Likewise.
18087 * tree-ssa-loop-ch.c: Likewise.
18088 * tree-ssa-loop-ivcanon.c: Likewise.
18089 * tree-ssa-loop.c: Likewise.
18090 * tree-ssa-math-opts.c: Likewise.
18091 * tree-ssa-phiopt.c: Likewise.
18092 * tree-ssa-phiprop.c: Likewise.
18093 * tree-ssa-pre.c: Likewise.
18094 * tree-ssa-reassoc.c: Likewise.
18095 * tree-ssa-sink.c: Likewise.
18096 * tree-ssa-strlen.c: Likewise.
18097 * tree-ssa-tail-merge.c: Likewise.
18098 * tree-ssa-uncprop.c: Likewise.
18099 * tree-switch-conversion.c: Likewise.
18100 * tree-tailcall.c: Likewise.
18101 * tree-vect-generic.c: Likewise.
18102 * tree-vectorizer.c: Likewise.
18103 * tree-vrp.c: Likewise.
18104 * tsan.c: Likewise.
18105 * var-tracking.c: Likewise.
18106 * bt-load.c: Likewise.
18107 * cfgcleanup.c: Likewise.
18108 * combine-stack-adj.c: Likewise.
18109 * combine.c: Likewise.
18110 * compare-elim.c: Likewise.
18111 * config/epiphany/resolve-sw-modes.c: Likewise.
18112 * config/i386/i386.c: Likewise.
18113 * config/mips/mips.c: Likewise.
18114 * config/s390/s390.c: Likewise.
18115 * config/sh/sh_treg_combine.cc: Likewise.
18116 * config/sparc/sparc.c: Likewise.
18119 * final.c: Likewise.
18120 * ifcvt.c: Likewise.
18121 * mode-switching.c: Likewise.
18122 * passes.c: Likewise.
18123 * postreload.c: Likewise.
18125 * reg-stack.c: Likewise.
18126 * regcprop.c: Likewise.
18127 * regrename.c: Likewise.
18130 2014-05-06 Richard Biener <rguenther@suse.de>
18132 PR middle-end/61070
18133 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18134 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18136 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18139 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18141 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18142 Tom de Vries <tom@codesourcery.com>
18144 * target.def (call_fusage_contains_non_callee_clobbers): New
18146 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18148 (@node Miscellaneous Register Hooks): New node.
18149 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18150 * doc/tm.texi: Regenerate.
18152 2014-05-05 Marek Polacek <polacek@redhat.com>
18155 * opts.c (common_handle_option): Call error_at instead of warning_at.
18157 2014-05-05 Richard Biener <rguenther@suse.de>
18159 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18160 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18161 under the TODO_verify_il umbrella.
18163 2014-05-05 Richard Biener <rguenther@suse.de>
18165 * passes.c (execute_function_todo): Move TODO_verify_flow under
18166 the TODO_verify_ul umbrella.
18168 2014-05-05 Richard Biener <rguenther@suse.de>
18170 PR middle-end/61010
18171 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18172 X & CST away from a CST that is the mask of a mode.
18174 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18176 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18177 int argument to enum machine_mode.
18178 (picochip_class_max_nregs): Ditto.
18179 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18180 (picochip_class_max_nregs): Ditto.
18182 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18184 * target.def: Add new target hook.
18185 * doc/tm.texi: Regenerate.
18186 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18187 * targhooks.c (default_keep_leaf_when_profiled): New function.
18189 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18190 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18192 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18194 PR tree-optimization/60363
18195 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18196 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18197 (update_destination_phis): New parameter.
18198 (create_edge_and_update_destination_phis): Ditto.
18199 (ssa_fix_duplicate_block_edges): Pass new arguments.
18200 (thread_single_edge): Ditto.
18202 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18204 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18205 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18206 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18207 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18208 Use RS6000_BTM_HARD_FLOAT.
18209 (BU_MISC_2): Likewise.
18210 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18211 RS6000_BTM_HARD_FLOAT.
18212 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18213 is explicitly used.
18214 (rs6000_invalid_builtin): Add hard floating builtin support.
18215 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18216 hard float builtins.
18217 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18219 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18221 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18222 Add missing function* argument.
18224 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18226 * lra-constraints.c (valid_address_p): Move earlier in file.
18227 Add a constraint argument to the address_info version.
18228 (satisfies_memory_constraint_p): New function.
18229 (satisfies_address_constraint_p): Likewise.
18230 (process_alt_operands, curr_insn_transform): Use them.
18231 (process_address): Pass the constraint to valid_address_p when
18232 checking address operands.
18234 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18236 * config/mips/mips.c (mips_isa_rev): New variable.
18237 (mips_set_architecture): Set it.
18238 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18240 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18241 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18242 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18243 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18244 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18245 conditions in terms of mips_isa_rev.
18246 (mips_isa_rev): Declare.
18248 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18250 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18251 (prob_unlikely, prob_likely): Make variables const.
18253 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18255 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18257 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18259 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18261 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18263 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18264 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18265 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18267 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18268 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18270 Replace usage of ROUND_REG with sh_round_reg.
18271 Use CEIL instead of ROUND_ADVANCE.
18273 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18276 * config/sh/sh.c: Include stdlib headers before everything else.
18278 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18280 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18281 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18282 (gimplify_adjust_omp_clauses): Simd region is never
18283 directly nested in combined parallel. Instead, for linear
18284 with copyin/copyout, if in combined for simd loop, make decl
18285 firstprivate/lastprivate on OMP_FOR.
18286 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18287 expand_omp_for_static_chunk): When setting endvar, also set
18288 fd->loop.v to the same value.
18290 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18292 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18294 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18296 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18299 2014-05-02 Marek Polacek <polacek@redhat.com>
18301 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18303 2014-05-02 Kito Cheng <kito@0xlab.org>
18305 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18306 to a C expression marco.
18307 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18308 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18309 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18310 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18311 HONOR_REG_ALLOC_ORDER.
18312 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18314 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18316 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18318 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18320 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18322 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18324 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18325 (convert_scalar_cond_reduction): Likewise.
18326 (predicate_scalar_phi): Add recognition and transformation
18327 of simple conditioanl reduction to be vectorizable.
18329 2014-05-01 Marek Polacek <polacek@redhat.com>
18332 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18334 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18336 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18337 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18338 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18339 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18340 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18341 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18342 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18343 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18345 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18347 * config/arc/arc.opt (mlra): Move comment above option name
18348 to avoid mis-parsing as language options.
18350 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18352 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18353 * config/sol2.h: ... here.
18354 * config/sol2-10.h: Remove.
18356 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18357 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18358 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18359 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18360 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18361 * config/sol2.h: ... here.
18362 (SECTION_NAME_FORMAT): Don't redefine.
18363 (STARTFILE_ARCH32_SPEC): Rename to ...
18364 (STARTFILE_ARCH_SPEC): ... this.
18365 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18366 * config/sparc/sol2.h: ... here.
18367 (SECTION_NAME_FORMAT): Don't undef.
18368 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18369 (SUBTARGET_EXTRA_SPECS): Remove.
18370 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18372 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18373 (MD_STARTFILE_PREFIX): Remove.
18374 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18375 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18376 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18377 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18378 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18379 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18380 * config/i386/sol2.h: ... here.
18381 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18382 * config/i386/sol2-bi.h: Remove.
18383 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18384 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18386 * config/i386/t-sol2-64: Rename to ...
18387 * config/i386/t-sol2: ... this.
18388 * config/sparc/t-sol2-64: Rename to ...
18389 * config/sparc/t-sol2: ... this.
18391 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18392 sol2_tm_file_head, sol2_tm_file_tail.
18393 Include ${cpu_type}/sol2.h before sol2.h.
18395 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18396 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18397 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18398 Reflect i386/t-sol2-64 renaming.
18399 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18400 Reflect sparc/t-sol2-64 renaming.
18402 2014-04-30 Richard Biener <rguenther@suse.de>
18404 * passes.c (execute_function_todo): Move TODO_verify_stmts
18405 and TODO_verify_ssa under the TODO_verify_il umbrella.
18406 * tree-ssa.h (verify_ssa): Adjust prototype.
18407 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18408 we should verify SSA operands.
18409 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18410 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18411 whether we should verify whether not throwing stmts have EH info.
18412 * graphite-scop-detection.c (create_sese_edges): Adjust.
18413 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18414 * tree-eh.c (lower_try_finally_switch): Do not add the
18415 default case label twice.
18417 2014-04-30 Marek Polacek <polacek@redhat.com>
18419 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18420 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18421 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18422 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18424 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18426 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18427 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18428 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18429 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18430 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18431 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18432 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18433 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18435 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18437 * tree-cfg.c (dump_function_to_file): Dump the return type of
18438 functions, in a line to itself before the function body, mimicking
18439 the layout of a C function.
18441 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18443 PR tree-optimization/60971
18444 * tree-tailcall.c (process_assignment): Reject conversions which
18447 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18449 * calls.c (initialize_argument_information): Always treat
18450 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18451 (expand_call): Likewise.
18452 (emit_library_call_calue_1): Likewise.
18453 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18454 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18457 2014-04-29 Nick Clifton <nickc@redhat.com>
18459 * config/msp430/msp430.md (umulsidi): Fix typo.
18460 (mulhisi3): Enable even inside interrupt handlers.
18461 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18462 bigger return address pushed in large mode.
18464 2014-04-29 Nick Clifton <nickc@redhat.com>
18466 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18467 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18469 * config/m32r/m32r.c (init_reg_tables): Likewise.
18470 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18471 enum to hold the modes.
18473 2014-04-29 Richard Biener <rguenther@suse.de>
18475 * dominance.c (free_dominance_info): Add overload with
18476 function parameter.
18477 (dom_info_state): Likewise.
18478 (dom_info_available_p): Likewise.
18479 * basic-block.h (free_dominance_info, dom_info_state,
18480 dom_info_available_p): Declare overloads.
18481 * passes.c (execute_function_todo): Verify that verifiers
18482 don't change dominator info state. Drop dominator info
18483 for IPA pass invocations.
18484 * cgraph.c (release_function_body): Restore asserts that
18485 dominator information is released.
18487 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18489 * doc/invoke.texi: Fix typo.
18490 * tree-vrp.c: Fix typos.
18491 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18493 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18495 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18497 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18499 * config/aarch64/aarch64-builtins.c
18500 (aarch64_types_storestruct_lane_qualifiers): New.
18501 (TYPES_STORESTRUCT_LANE): Likewise.
18502 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18503 (st3_lane): Likewise.
18504 (st4_lane): Likewise.
18505 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18506 (vec_store_lanesci_lane<mode>): Likewise.
18507 (vec_store_lanesxi_lane<mode>): Likewise.
18508 (aarch64_st2_lane<VQ:mode>): Likewise.
18509 (aarch64_st3_lane<VQ:mode>): Likewise.
18510 (aarch64_st4_lane<VQ:mode>): Likewise.
18511 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18512 * config/aarch64/arm_neon.h
18513 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18514 use new macro arguments.
18515 (__ST3_LANE_FUNC): Likewise.
18516 (__ST4_LANE_FUNC): Likewise.
18517 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18518 (V_THREE_ELEM): Likewise.
18519 (V_FOUR_ELEM): Likewise.
18521 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18523 * doc/gimple.texi: Replace the description of the now-defunct
18524 union gimple_statement_d with a diagram showing the
18525 gimple_statement_base class hierarchy and its relationships to
18526 the GSS_ and GIMPLE_ enums.
18528 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18530 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18531 * config/aarch64/aarch64.c
18532 (aarch64_cannot_change_mode_class): Weaken conditions.
18533 (aarch64_modes_tieable_p): New.
18534 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18536 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18538 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18539 (loadsync_<mode>): Change mode.
18540 (load_quadpti, store_quadpti): New.
18541 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18542 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18544 2014-04-28 Martin Jambor <mjambor@suse.cz>
18546 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18547 same alias type as the original statement.
18548 (subreplacement_assignment_data): New type.
18549 (handle_unscalarized_data_in_subtree): New type of parameter,
18550 generate new memory accesses with same alias type as the original
18552 (load_assign_lhs_subreplacements): Likewise.
18553 (sra_modify_constructor_assign): Generate new memory accesses with
18554 same alias type as the original statement.
18556 2014-04-28 Richard Biener <rguenther@suse.de>
18558 * tree-pass.h (TODO_verify_il): Define.
18559 (TODO_verify_all): Complete properly.
18560 * passes.c (execute_function_todo): Move existing loop-closed
18561 SSA verification under TODO_verify_il.
18562 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18563 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18564 Fix tree sharing issue.
18566 2014-04-28 Richard Biener <rguenther@suse.de>
18568 PR middle-end/60092
18569 * builtins.def (DEF_C11_BUILTIN): Add.
18570 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18571 * coretypes.h (enum function_class): Add function_c11_misc.
18572 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18573 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18574 (call_may_clobber_ref_p_1): Likewise.
18575 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18576 (mark_all_reaching_defs_necessary_1): Likewise.
18577 (propagate_necessity): Likewise.
18578 (eliminate_unnecessary_stmts): Likewise.
18579 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18581 2014-04-28 Richard Biener <rguenther@suse.de>
18583 * tree-vrp.c (vrp_var_may_overflow): Remove.
18584 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18585 with overflow immediately bump to one before that value and
18586 let iteration figure out overflow status.
18588 2014-04-28 Richard Biener <rguenther@suse.de>
18590 * configure.ac: Do valgrind header checks unconditionally.
18591 Add --enable-valgrind-annotations.
18592 * system.h: Guard valgrind header inclusion with
18593 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18594 * alloc-pool.c (pool_alloc, pool_free): Use
18595 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18596 to guard possibly dead code.
18597 * config.in: Regenerated.
18598 * configure: Likewise.
18600 2014-04-28 Jeff Law <law@redhat.com>
18602 PR tree-optimization/60902
18603 * tree-ssa-threadedge.c
18604 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18605 over real defs when invalidating outputs from statements that do not
18606 produce useful outputs for threading.
18608 2014-04-28 Richard Biener <rguenther@suse.de>
18610 PR tree-optimization/60979
18611 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18612 SCOPs that end in a block with a successor with abnormal
18615 2014-04-28 Richard Biener <rguenther@suse.de>
18617 * tree-pass.h (execute_pass_list): Adjust prototype.
18618 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18619 (do_per_function): Change callback signature, push all actual
18620 work to the callbals.
18621 (do_per_function_toporder): Likewise.
18622 (execute_function_dump): Adjust.
18623 (execute_function_todo): Likewise.
18624 (clear_last_verified): Likewise.
18625 (verify_curr_properties): Likewise.
18626 (update_properties_after_pass): Likewise.
18627 (execute_pass_list_1): Split out from ...
18628 (execute_pass_list): ... here. Adjust.
18629 (execute_ipa_pass_list): Likewise.
18630 * cgraphunit.c (cgraph_add_new_function): Adjust.
18631 (analyze_function): Likewise.
18632 (expand_function): Likewise.
18633 * cgraph.c (release_function_body): Free dominance info
18634 here instead of asserting it was magically freed elsewhere.
18636 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18638 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18639 * configure: Regenerate.
18640 * config/sparc/sparc.opt (muser-mode): New option.
18641 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18643 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18644 * doc/invoke.texi (SPARC options): Document -muser-mode.
18646 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18648 * cselib.c (find_slot_memmode): Delete.
18649 (cselib_hasher): Change compare_type to a struct.
18650 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18652 (preserve_constants_and_equivs): Adjust for new compare_type.
18653 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18654 (wrap_constant): Delete.
18655 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18657 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18659 * doc/install.texi (Building with profile feedback): Remove
18662 2014-04-26 Tom de Vries <tom@codesourcery.com>
18664 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18667 2014-04-25 Cary Coutant <ccoutant@google.com>
18670 * dwarf2out.c (should_move_die_to_comdat): A type definition
18671 can contain a subprogram definition, but don't move it to a
18673 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18674 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18676 (clone_tree_hash): Rename to...
18677 (clone_tree_partial): ...this; change callers. Copy
18678 DW_TAG_subprogram DIEs as declarations.
18679 (copy_decls_walk): Don't copy children of a declaration into a
18682 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18685 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18688 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18690 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18691 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18693 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18696 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18698 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18700 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18702 PR tree-optimization/60930
18703 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18704 creating a multiply candidate by folding two constant
18705 multiplicands when the result overflows.
18707 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18709 PR tree-optimization/60960
18710 * tree-vect-generic.c (expand_vector_operation): Only call
18711 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18713 2014-04-25 Tom de Vries <tom@codesourcery.com>
18715 * expr.c (clobber_reg_mode): New function.
18716 * expr.h (clobber_reg): New function.
18718 2014-04-25 Tom de Vries <tom@codesourcery.com>
18720 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18723 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18724 Tom de Vries <tom@codesourcery.com>
18726 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18728 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18729 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18730 new argument to find_all_hard_reg_sets call.
18732 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18734 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18735 Use HOST_WIDE_INT_C for mask literal.
18736 (aarch_rev16_shleft_mask_imm_p): Likewise.
18738 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18741 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18743 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18745 PR preprocessor/56540
18746 * config/i386/i386-c.c (ix86_target_macros): Define
18747 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18749 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18751 * configure.ac (tga_func): Remove.
18752 (LIB_TLS_SPEC): Remove.
18753 * configure: Regenerate.
18754 * config.in: Regenerate.
18755 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18757 2014-04-25 Richard Biener <rguenther@suse.de>
18760 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18761 call stmt use/clobber sets during stmt walk instead of
18762 walking the possibly incomplete set of caller edges.
18764 2014-04-25 Richard Biener <rguenther@suse.de>
18767 * passes.c (apply_ipa_transforms): Inline into only caller ...
18768 (execute_one_pass): ... here. Properly bring in function
18769 bodies for nodes we want to apply IPA transforms to.
18771 2014-04-24 Cong Hou <congh@google.com>
18773 PR tree-optimization/60896
18774 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18775 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18776 (vect_mark_pattern_stmts): Set the def type of all statements in
18777 PATTERN_DEF_SEQ as vect_internal_def.
18779 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18781 * doc/extend.texi (PowerPC Built-in Functions): Document new
18782 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18783 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18785 * config/rs6000/predicates.md (const_0_to_3_operand): New
18786 predicate to match 0..3 integer constants.
18788 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18789 to support adding miscellaneous builtin functions.
18790 (BU_DFP_MISC_2): Likewise.
18791 (BU_P7_MISC_1): Likewise.
18792 (BU_P7_MISC_2): Likewise.
18793 (BU_P8V_MISC_3): Likewise.
18794 (BU_MISC_1): Likewise.
18795 (BU_MISC_2): Likewise.
18796 (DIVWE): Add extended divide builtin functions.
18797 (DIVWEO): Likewise.
18798 (DIVWEU): Likewise.
18799 (DIVWEUO): Likewise.
18801 (DIVDEO): Likewise.
18802 (DIVDEU): Likewise.
18803 (DIVDEUO): Likewise.
18804 (DXEX): Add decimal floating-point builtin functions.
18806 (DDEDPD): Likewise.
18807 (DDEDPDQ): Likewise.
18808 (DENBCD): Likewise.
18809 (DENBCDQ): Likewise.
18813 (DSCLIQ): Likewise.
18815 (DSCRIQ): Likewise.
18816 (CDTBCD): Add new BCD builtin functions.
18817 (CBCDTD): Likewise.
18818 (ADDG6S): Likewise.
18819 (BCDADD): Likewise.
18820 (BCDADD_LT): Likewise.
18821 (BCDADD_EQ): Likewise.
18822 (BCDADD_GT): Likewise.
18823 (BCDADD_OV): Likewise.
18824 (BCDSUB): Likewise.
18825 (BCDSUB_LT): Likewise.
18826 (BCDSUB_EQ): Likewise.
18827 (BCDSUB_GT): Likewise.
18828 (BCDSUB_OV): Likewise.
18829 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18830 (UNPACK_TD): Likewise.
18831 (PACK_TF): Likewise.
18832 (UNPACK_TF): Likewise.
18833 (UNPACK_TF_0): Likewise.
18834 (UNPACK_TF_1): Likewise.
18835 (PACK_V1TI): Likewise.
18836 (UNPACK_V1TI): Likewise.
18838 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18839 support for decimal floating point builtin functions.
18840 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18841 functions that take constant arguments.
18842 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18843 (rs6000_init_builtins): Setup long double, _Decimal64, and
18844 _Decimal128 types for new builtin functions.
18845 (builtin_function_type): Set the unsigned flags appropriately for
18846 the new builtin functions.
18847 (rs6000_opt_masks): Add support for decimal floating point builtin
18850 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18851 floating point builtin functions.
18852 (RS6000_BTM_COMMON): Likewise.
18853 (RS6000_BTI_long_double): Likewise.
18854 (RS6000_BTI_dfloat64): Likewise.
18855 (RS6000_BTI_dfloat128): Likewise.
18856 (long_double_type_internal_node): Likewise.
18857 (dfloat64_type_internal_node): Likewise.
18858 (dfloat128_type_internal_node): Likewise.
18860 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18861 2.07 bcd arithmetic instructions.
18862 (UNSPEC_BCDSUB): Likewise.
18863 (UNSPEC_BCD_OVERFLOW): Likewise.
18864 (UNSPEC_BCD_ADD_SUB): Likewise.
18865 (bcd_add_sub): Likewise.
18866 (BCD_TEST): Likewise.
18867 (bcd<bcd_add_sub>): Likewise.
18868 (bcd<bcd_add_sub>_test): Likewise.
18869 (bcd<bcd_add_sub>_test2): Likewise.
18870 (bcd<bcd_add_sub>_<code>): Likewise.
18871 (peephole2 for combined bcd ops): Likewise.
18873 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18874 decimal floating point builtin functions.
18875 (UNSPEC_DENBCD): Likewise.
18876 (UNSPEC_DXEX): Likewise.
18877 (UNSPEC_DIEX): Likewise.
18878 (UNSPEC_DSCLI): Likewise.
18879 (UNSPEC_DSCRI): Likewise.
18880 (D64_D128): Likewise.
18881 (dfp_suffix): Likewise.
18882 (dfp_ddedpd_<mode>): Likewise.
18883 (dfp_denbcd_<mode>): Likewise.
18884 (dfp_dxex_<mode>): Likewise.
18885 (dfp_diex_<mode>): Likewise.
18886 (dfp_dscli_<mode>): Likewise.
18887 (dfp_dscri_<mode>): Likewise.
18889 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18891 (UNSPEC_CDTBCD): Likewise.
18892 (UNSPEC_CBCDTD): Likewise.
18893 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18894 (UNSPEC_DIVEO): Likewise.
18895 (UNSPEC_DIVEU): Likewise.
18896 (UNSPEC_DIVEUO): Likewise.
18897 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18898 pack/unpack 128-bit types.
18899 (UNSPEC_PACK_128BIT): Likewise.
18900 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18901 (udiv<mode>3): Use idiv_ldiv mode attribute.
18902 (div<mode>3): Likewise.
18903 (addg6s): Add new BCD builtin functions.
18904 (cdtbcd): Likewise.
18905 (cbcdtd): Likewise.
18906 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18907 (div_extend): Likewise.
18908 (div<div_extend>_<mode>"): Likewise.
18909 (FP128_64): Add support for new builtin functions to pack/unpack
18911 (unpack<mode>): Likewise.
18912 (unpacktf_0): Likewise.
18913 (unpacktf_1): Likewise.
18914 (unpack<mode>_dm): Likewise.
18915 (unpack<mode>_nodm): Likewise.
18916 (pack<mode>): Likewise.
18917 (unpackv1ti): Likewise.
18918 (packv1ti): Likewise.
18920 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18922 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18925 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18927 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18928 * gimplify.c (omp_is_private): Change last argument's type to int.
18929 Only diagnose lastprivate if the simd argument is 1, only diagnose
18930 linear if the simd argument is 2.
18931 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18932 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18933 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18934 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18935 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18936 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18937 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18938 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18939 * tree-nested.c (convert_nonlocal_omp_clauses,
18940 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18942 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18945 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18948 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18950 * flag-types.h (enum ivar_visibility): Add.
18952 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18954 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18955 function * argument.
18957 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18959 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18961 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18962 Tom de Vries <tom@codesourcery.com>
18964 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18965 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18967 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18968 * emit-rtl.c (try_split): Same.
18970 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18971 Tom de Vries <tom@codesourcery.com>
18973 * common.opt (fuse-caller-save): New option.
18975 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18977 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18978 elements for big-endian.
18980 2014-04-24 Richard Biener <rguenther@suse.de>
18982 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18983 during TER and instead use the sepops interface for expanding
18984 non-GIMPLE_SINGLE_RHS.
18986 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18988 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18989 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18991 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18993 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18994 assembler 64-bit option.
18995 * configure: Regenerate.
18997 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18999 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19000 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19001 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19002 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19003 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19005 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19007 * config/aarch64/aarch64-builtins.c
19008 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19009 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19010 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19011 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19013 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19014 (Vrevsuff): New mode attribute.
19016 2014-04-24 Terry Guo <terry.guo@arm.com>
19018 * config/arm/arm.h (machine_function): Define variable
19019 after_arm_reorg here.
19020 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19021 (arm_split_constant): Update the way to access variable
19023 (arm_reorg): Ditto.
19024 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19026 2014-04-23 Tom de Vries <tom@codesourcery.com>
19028 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19030 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19032 * is-a.h: Update comments to reflect the following changes to the
19033 "pointerness" of the API, making the template parameter match the
19034 return type, allowing use of is-a.h with typedefs of pointers.
19035 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19036 that the return type matches the parameter to the is_a_helper.
19038 (dyn_cast): Likewise.
19040 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19041 pointer from the is-a.h API.
19043 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19044 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19046 (is_a_helper <varpool_node>::test): Likewise, convert to...
19047 (is_a_helper <varpool_node *>::test): ...this.
19049 (varpool_first_variable): Update for removal of implicit pointer
19050 from the is-a.h API.
19051 (varpool_next_variable): Likewise.
19052 (varpool_first_static_initializer): Likewise.
19053 (varpool_next_static_initializer): Likewise.
19054 (varpool_first_defined_variable): Likewise.
19055 (varpool_next_defined_variable): Likewise.
19056 (cgraph_first_defined_function): Likewise.
19057 (cgraph_next_defined_function): Likewise.
19058 (cgraph_first_function): Likewise.
19059 (cgraph_next_function): Likewise.
19060 (cgraph_first_function_with_gimple_body): Likewise.
19061 (cgraph_next_function_with_gimple_body): Likewise.
19062 (cgraph_alias_target): Likewise.
19063 (varpool_alias_target): Likewise.
19064 (cgraph_function_or_thunk_node): Likewise.
19065 (varpool_variable_node): Likewise.
19066 (symtab_real_symbol_p): Likewise.
19067 * cgraphunit.c (referred_to_p): Likewise.
19068 (analyze_functions): Likewise.
19069 (handle_alias_pairs): Likewise.
19070 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19071 * gimple-ssa.h (gimple_vuse_op): Likewise.
19072 (gimple_vdef_op): Likewise.
19073 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19074 * gimple.c (gimple_build_asm_1): Likewise.
19075 (gimple_build_try): Likewise.
19076 (gimple_build_resx): Likewise.
19077 (gimple_build_eh_dispatch): Likewise.
19078 (gimple_build_omp_for): Likewise.
19079 (gimple_omp_for_set_clauses): Likewise.
19081 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19082 (is_a_helper <gimple_statement_asm *>::test): ...this.
19083 (is_a_helper <gimple_statement_bind>::test): Convert to...
19084 (is_a_helper <gimple_statement_bind *>::test): ...this.
19085 (is_a_helper <gimple_statement_call>::test): Convert to...
19086 (is_a_helper <gimple_statement_call *>::test): ...this.
19087 (is_a_helper <gimple_statement_catch>::test): Convert to...
19088 (is_a_helper <gimple_statement_catch *>::test): ...this.
19089 (is_a_helper <gimple_statement_resx>::test): Convert to...
19090 (is_a_helper <gimple_statement_resx *>::test): ...this.
19091 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19092 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19093 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19094 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19095 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19096 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19097 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19098 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19099 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19100 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19101 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19102 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19103 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19104 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19105 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19106 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19107 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19108 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19109 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19110 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19111 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19112 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19113 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19114 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19115 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19116 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19117 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19118 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19119 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19120 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19121 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19122 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19123 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19124 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19125 (is_a_helper <gimple_statement_phi>::test): Convert to...
19126 (is_a_helper <gimple_statement_phi *>::test): ...this.
19127 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19128 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19129 (is_a_helper <gimple_statement_try>::test): Convert to...
19130 (is_a_helper <gimple_statement_try *>::test): ...this.
19131 (is_a_helper <gimple_statement_wce>::test): Convert to...
19132 (is_a_helper <gimple_statement_wce *>::test): ...this.
19133 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19134 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19135 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19136 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19137 (is_a_helper <const gimple_statement_call>::test): Convert to...
19138 (is_a_helper <const gimple_statement_call *>::test): ...this.
19139 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19140 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19141 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19142 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19143 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19144 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19145 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19146 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19147 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19149 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19151 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19153 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19155 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19156 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19157 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19159 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19160 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19162 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19163 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19164 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19165 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19166 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19167 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19169 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19170 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19171 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19172 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19174 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19175 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19176 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19177 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19178 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19179 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19180 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19181 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19182 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19183 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19184 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19185 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19186 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19187 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19188 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19189 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19191 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19193 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19194 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19196 (gimple_use_ops): Update for removal of implicit pointer from the
19198 (gimple_set_use_ops): Likewise.
19199 (gimple_vuse): Likewise.
19200 (gimple_vdef): Likewise.
19201 (gimple_vuse_ptr): Likewise.
19202 (gimple_vdef_ptr): Likewise.
19203 (gimple_set_vuse): Likewise.
19204 (gimple_set_vdef): Likewise.
19205 (gimple_omp_return_set_lhs): Likewise.
19206 (gimple_omp_return_lhs): Likewise.
19207 (gimple_omp_return_lhs_ptr): Likewise.
19208 (gimple_call_fntype): Likewise.
19209 (gimple_call_set_fntype): Likewise.
19210 (gimple_call_set_internal_fn): Likewise.
19211 (gimple_call_use_set): Likewise.
19212 (gimple_call_clobber_set): Likewise.
19213 (gimple_bind_vars): Likewise.
19214 (gimple_bind_set_vars): Likewise.
19215 (gimple_bind_body_ptr): Likewise.
19216 (gimple_bind_set_body): Likewise.
19217 (gimple_bind_add_stmt): Likewise.
19218 (gimple_bind_block): Likewise.
19219 (gimple_bind_set_block): Likewise.
19220 (gimple_asm_ninputs): Likewise.
19221 (gimple_asm_noutputs): Likewise.
19222 (gimple_asm_nclobbers): Likewise.
19223 (gimple_asm_nlabels): Likewise.
19224 (gimple_asm_input_op): Likewise.
19225 (gimple_asm_input_op_ptr): Likewise.
19226 (gimple_asm_output_op): Likewise.
19227 (gimple_asm_output_op_ptr): Likewise.
19228 (gimple_asm_set_output_op): Likewise.
19229 (gimple_asm_clobber_op): Likewise.
19230 (gimple_asm_set_clobber_op): Likewise.
19231 (gimple_asm_label_op): Likewise.
19232 (gimple_asm_set_label_op): Likewise.
19233 (gimple_asm_string): Likewise.
19234 (gimple_catch_types): Likewise.
19235 (gimple_catch_types_ptr): Likewise.
19236 (gimple_catch_handler_ptr): Likewise.
19237 (gimple_catch_set_types): Likewise.
19238 (gimple_catch_set_handler): Likewise.
19239 (gimple_eh_filter_types): Likewise.
19240 (gimple_eh_filter_types_ptr): Likewise.
19241 (gimple_eh_filter_failure_ptr): Likewise.
19242 (gimple_eh_filter_set_types): Likewise.
19243 (gimple_eh_filter_set_failure): Likewise.
19244 (gimple_eh_must_not_throw_fndecl): Likewise.
19245 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19246 (gimple_eh_else_n_body_ptr): Likewise.
19247 (gimple_eh_else_e_body_ptr): Likewise.
19248 (gimple_eh_else_set_n_body): Likewise.
19249 (gimple_eh_else_set_e_body): Likewise.
19250 (gimple_try_eval_ptr): Likewise.
19251 (gimple_try_cleanup_ptr): Likewise.
19252 (gimple_try_set_eval): Likewise.
19253 (gimple_try_set_cleanup): Likewise.
19254 (gimple_wce_cleanup_ptr): Likewise.
19255 (gimple_wce_set_cleanup): Likewise.
19256 (gimple_phi_capacity): Likewise.
19257 (gimple_phi_num_args): Likewise.
19258 (gimple_phi_result): Likewise.
19259 (gimple_phi_result_ptr): Likewise.
19260 (gimple_phi_set_result): Likewise.
19261 (gimple_phi_arg): Likewise.
19262 (gimple_phi_set_arg): Likewise.
19263 (gimple_resx_region): Likewise.
19264 (gimple_resx_set_region): Likewise.
19265 (gimple_eh_dispatch_region): Likewise.
19266 (gimple_eh_dispatch_set_region): Likewise.
19267 (gimple_omp_critical_name): Likewise.
19268 (gimple_omp_critical_name_ptr): Likewise.
19269 (gimple_omp_critical_set_name): Likewise.
19270 (gimple_omp_for_clauses): Likewise.
19271 (gimple_omp_for_clauses_ptr): Likewise.
19272 (gimple_omp_for_set_clauses): Likewise.
19273 (gimple_omp_for_collapse): Likewise.
19274 (gimple_omp_for_index): Likewise.
19275 (gimple_omp_for_index_ptr): Likewise.
19276 (gimple_omp_for_set_index): Likewise.
19277 (gimple_omp_for_initial): Likewise.
19278 (gimple_omp_for_initial_ptr): Likewise.
19279 (gimple_omp_for_set_initial): Likewise.
19280 (gimple_omp_for_final): Likewise.
19281 (gimple_omp_for_final_ptr): Likewise.
19282 (gimple_omp_for_set_final): Likewise.
19283 (gimple_omp_for_incr): Likewise.
19284 (gimple_omp_for_incr_ptr): Likewise.
19285 (gimple_omp_for_set_incr): Likewise.
19286 (gimple_omp_for_pre_body_ptr): Likewise.
19287 (gimple_omp_for_set_pre_body): Likewise.
19288 (gimple_omp_parallel_clauses): Likewise.
19289 (gimple_omp_parallel_clauses_ptr): Likewise.
19290 (gimple_omp_parallel_set_clauses): Likewise.
19291 (gimple_omp_parallel_child_fn): Likewise.
19292 (gimple_omp_parallel_child_fn_ptr): Likewise.
19293 (gimple_omp_parallel_set_child_fn): Likewise.
19294 (gimple_omp_parallel_data_arg): Likewise.
19295 (gimple_omp_parallel_data_arg_ptr): Likewise.
19296 (gimple_omp_parallel_set_data_arg): Likewise.
19297 (gimple_omp_task_clauses): Likewise.
19298 (gimple_omp_task_clauses_ptr): Likewise.
19299 (gimple_omp_task_set_clauses): Likewise.
19300 (gimple_omp_task_child_fn): Likewise.
19301 (gimple_omp_task_child_fn_ptr): Likewise.
19302 (gimple_omp_task_set_child_fn): Likewise.
19303 (gimple_omp_task_data_arg): Likewise.
19304 (gimple_omp_task_data_arg_ptr): Likewise.
19305 (gimple_omp_task_set_data_arg): Likewise.
19306 (gimple_omp_taskreg_clauses): Likewise.
19307 (gimple_omp_taskreg_clauses_ptr): Likewise.
19308 (gimple_omp_taskreg_set_clauses): Likewise.
19309 (gimple_omp_taskreg_child_fn): Likewise.
19310 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19311 (gimple_omp_taskreg_set_child_fn): Likewise.
19312 (gimple_omp_taskreg_data_arg): Likewise.
19313 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19314 (gimple_omp_taskreg_set_data_arg): Likewise.
19315 (gimple_omp_task_copy_fn): Likewise.
19316 (gimple_omp_task_copy_fn_ptr): Likewise.
19317 (gimple_omp_task_set_copy_fn): Likewise.
19318 (gimple_omp_task_arg_size): Likewise.
19319 (gimple_omp_task_arg_size_ptr): Likewise.
19320 (gimple_omp_task_set_arg_size): Likewise.
19321 (gimple_omp_task_arg_align): Likewise.
19322 (gimple_omp_task_arg_align_ptr): Likewise.
19323 (gimple_omp_task_set_arg_align): Likewise.
19324 (gimple_omp_single_clauses): Likewise.
19325 (gimple_omp_single_clauses_ptr): Likewise.
19326 (gimple_omp_single_set_clauses): Likewise.
19327 (gimple_omp_target_clauses): Likewise.
19328 (gimple_omp_target_clauses_ptr): Likewise.
19329 (gimple_omp_target_set_clauses): Likewise.
19330 (gimple_omp_target_child_fn): Likewise.
19331 (gimple_omp_target_child_fn_ptr): Likewise.
19332 (gimple_omp_target_set_child_fn): Likewise.
19333 (gimple_omp_target_data_arg): Likewise.
19334 (gimple_omp_target_data_arg_ptr): Likewise.
19335 (gimple_omp_target_set_data_arg): Likewise.
19336 (gimple_omp_teams_clauses): Likewise.
19337 (gimple_omp_teams_clauses_ptr): Likewise.
19338 (gimple_omp_teams_set_clauses): Likewise.
19339 (gimple_omp_sections_clauses): Likewise.
19340 (gimple_omp_sections_clauses_ptr): Likewise.
19341 (gimple_omp_sections_set_clauses): Likewise.
19342 (gimple_omp_sections_control): Likewise.
19343 (gimple_omp_sections_control_ptr): Likewise.
19344 (gimple_omp_sections_set_control): Likewise.
19345 (gimple_omp_for_set_cond): Likewise.
19346 (gimple_omp_for_cond): Likewise.
19347 (gimple_omp_atomic_store_set_val): Likewise.
19348 (gimple_omp_atomic_store_val): Likewise.
19349 (gimple_omp_atomic_store_val_ptr): Likewise.
19350 (gimple_omp_atomic_load_set_lhs): Likewise.
19351 (gimple_omp_atomic_load_lhs): Likewise.
19352 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19353 (gimple_omp_atomic_load_set_rhs): Likewise.
19354 (gimple_omp_atomic_load_rhs): Likewise.
19355 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19356 (gimple_omp_continue_control_def): Likewise.
19357 (gimple_omp_continue_control_def_ptr): Likewise.
19358 (gimple_omp_continue_set_control_def): Likewise.
19359 (gimple_omp_continue_control_use): Likewise.
19360 (gimple_omp_continue_control_use_ptr): Likewise.
19361 (gimple_omp_continue_set_control_use): Likewise.
19362 (gimple_transaction_body_ptr): Likewise.
19363 (gimple_transaction_label): Likewise.
19364 (gimple_transaction_label_ptr): Likewise.
19365 (gimple_transaction_set_body): Likewise.
19366 (gimple_transaction_set_label): Likewise.
19368 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19369 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19370 * ipa-ref.c (ipa_record_reference): Likewise.
19371 * ipa-reference.c (analyze_function): Likewise.
19372 (ipa_reference_write_optimization_summary): Likewise.
19373 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19374 (address_taken_from_non_vtable_p): Likewise.
19375 (comdat_can_be_unshared_p_1): Likewise.
19376 * lto-cgraph.c (lto_output_ref): Likewise.
19377 (add_references): Likewise.
19378 (compute_ltrans_boundary): Likewise.
19379 (output_symtab): Likewise.
19380 (input_ref): Likewise.
19381 (input_cgraph_1): Likewise.
19382 (output_cgraph_opt_summary): Likewise.
19383 * lto-streamer-out.c (lto_output): Likewise.
19384 (output_symbol_p): Likewise.
19385 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19386 (lsei_start_function_in_partition): Likewise.
19387 (lsei_next_variable_in_partition): Likewise.
19388 (lsei_start_variable_in_partition): Likewise.
19389 * symtab.c (insert_to_assembler_name_hash): Likewise.
19390 (unlink_from_assembler_name_hash): Likewise.
19391 (symtab_unregister_node): Likewise.
19392 (symtab_remove_node): Likewise.
19393 (dump_symtab_node): Likewise.
19394 (verify_symtab_base): Likewise.
19395 (verify_symtab_node): Likewise.
19396 (symtab_make_decl_local): Likewise.
19397 (symtab_alias_ultimate_target): Likewise.
19398 (symtab_resolve_alias): Likewise.
19399 (symtab_get_symbol_partitioning_class): Likewise.
19400 * tree-phinodes.c (allocate_phi_node): Likewise.
19401 (reserve_phi_args_for_new_edge): Likewise.
19402 (remove_phi_args): Likewise.
19403 * varpool.c (varpool_node_for_asm): Likewise.
19404 (varpool_remove_unreferenced_decls): Likewise.
19406 2014-04-23 Jeff Law <law@redhat.com>
19408 PR tree-optimization/60902
19409 * tree-ssa-threadedge.c
19410 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19411 invalidate outputs from statements that do not produce useful
19412 outputs for threading.
19414 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19416 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19417 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19418 machine descriptions for Stack Smashing Protector.
19420 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19422 * aarch64.md (<optab>_rol<mode>3): New pattern.
19423 (<optab>_rolsi3_uxtw): Likewise.
19424 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19426 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19428 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19429 (arm_cortex_a12_tune): Likewise.
19431 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19433 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19435 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19437 * config/arm/arm.md (arm_rev16si2): New pattern.
19438 (arm_rev16si2_alt): Likewise.
19439 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19441 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19443 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19444 (rev16<mode>2_alt): Likewise.
19445 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19446 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19447 (aarch_rev16_shleft_mask_imm_p): Likewise.
19448 (aarch_rev16_p_1): Likewise.
19449 (aarch_rev16_p): Likewise.
19450 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19451 (aarch_rev16_shright_mask_imm_p): Likewise.
19452 (aarch_rev16_shleft_mask_imm_p): Likewise.
19454 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19456 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19457 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19459 (cortex_a53_extra_costs): Likewise.
19460 (cortex_a57_extra_costs): Likewise.
19461 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19462 (cortexa7_extra_costs): Likewise.
19463 (cortexa8_extra_costs): Likewise.
19464 (cortexa12_extra_costs): Likewise.
19465 (cortexa15_extra_costs): Likewise.
19466 (v7m_extra_costs): Likewise.
19467 (arm_new_rtx_costs): Handle BSWAP.
19469 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19471 * config/arm/arm.c (cortexa8_extra_costs): New table.
19472 (arm_cortex_a8_tune): New tuning struct.
19473 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19475 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19477 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19479 2014-04-23 Richard Biener <rguenther@suse.de>
19481 * Makefile.in (OBJS): Remove loop-unswitch.o.
19482 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19483 * passes.def (pass_rtl_unswitch): Likewise.
19484 * loop-init.c (gate_rtl_unswitch): Likewise.
19485 (rtl_unswitch): Likewise.
19486 (pass_data_rtl_unswitch): Likewise.
19487 (pass_rtl_unswitch): Likewise.
19488 (make_pass_rtl_unswitch): Likewise.
19489 * rtl.h (reversed_condition): Likewise.
19490 (compare_and_jump_seq): Likewise.
19491 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19493 * loop-unroll.c (compare_and_jump_seq): Likewise.
19495 2014-04-23 Richard Biener <rguenther@suse.de>
19497 PR tree-optimization/60903
19498 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19499 commented code block.
19500 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19501 loop flags to newly created BBs and edges.
19503 2014-04-23 Nick Clifton <nickc@redhat.com>
19505 * config/msp430/msp430.c (msp430_handle_option): Move function
19507 (msp430_option_override): Simplify mcu and mcpu option handling.
19508 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19509 support for -mhwmult command line option.
19510 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19511 -mhwmult command line option.
19512 (msp430_hwmult_enabled): Delete.
19513 (msp43o_output_labelref): Add support for -mhwmult command line option.
19514 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19515 (umulsidi3): Likewise.
19516 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19517 (mcpu, mlarge, msmall): Likewise.
19518 (mhwmult): New option.
19519 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19521 (msp430_is_f5_mcu): Remove prototype.
19522 (msp430_use_f5_series_hwmult): Add prototype.
19523 * config/msp430/msp430-opts.h: New file.
19524 * common/config/msp430: New directory.
19525 * common/config/msp430/msp430-common.c: New file.
19526 * config.gcc (msp430): Remove target_has_targetm_common.
19527 * doc/invoke.texi: Document -mhwmult command line option.
19529 2014-04-23 Nick Clifton <nickc@redhat.com>
19531 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19532 default-manifest.o if it can be found in the search path.
19533 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19535 2014-04-23 Terry Guo <terry.guo@arm.com>
19537 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19539 2014-04-23 Richard Biener <rguenther@suse.de>
19541 PR middle-end/60895
19542 * tree-inline.c (declare_return_variable): Use mark_addressable.
19544 2014-04-23 Richard Biener <rguenther@suse.de>
19546 PR middle-end/60891
19547 * loop-init.c (loop_optimizer_init): Make sure to apply
19548 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19550 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19553 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19555 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19556 if flag_sanitize_undefined_trap_on_error.
19557 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19558 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19559 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19560 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19561 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19562 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19563 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19564 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19565 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19566 * ubsan.c (ubsan_instrument_unreachable): Return
19567 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19568 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19569 if flag_sanitize_undefined_trap_on_error and
19570 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19571 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19572 instrument_bool_enum_load): Emit __builtin_trap () if
19573 flag_sanitize_undefined_trap_on_error and
19574 __builtin_handle_*_abort () if !flag_sanitize_recover.
19575 * doc/invoke.texi (-fsanitize-recover,
19576 -fsanitize-undefined-trap-on-error): Document.
19578 2014-04-22 Christian Bruel <christian.bruel@st.com>
19580 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19581 Force immediates to SImode.
19583 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19585 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19586 (lroundsfsi2): New.
19587 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19588 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19589 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19590 (nios2_fpu_insn): Add entry for round.
19591 (N2FPU_NO_ERRNO_P): Define.
19592 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19594 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19596 2014-04-22 Richard Henderson <rth@redhat.com>
19598 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19599 (add<GPI>3_compare0): Remove leading * from name.
19600 (add<GPI>3_carryin): Likewise.
19601 (sub<GPI>3_compare0): Likewise.
19602 (sub<GPI>3_carryin): Likewise.
19603 (<su_optab>mulditi3): New expander.
19604 (multi3): New expander.
19605 (madd<GPI>): Remove leading * from name.
19607 2014-04-22 Martin Jambor <mjambor@suse.cz>
19609 * cgraphclones.c (cgraph_function_versioning): Copy
19610 ipa_transforms_to_apply instead of asserting it is empty.
19612 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19615 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19616 on count_exp to get mode.
19618 2014-04-22 Andrew Pinski <apinski@cavium.com>
19620 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19621 Handle TLS for ILP32.
19622 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19623 (tlsie_small_<mode>): this and handle PTR.
19624 (tlsie_small_sidi): New pattern.
19625 (tlsle_small): Change to an expand to handle ILP32.
19626 (tlsle_small_<mode>): New pattern.
19627 (tlsdesc_small): Rename to ...
19628 (tlsdesc_small_<mode>): this and handle PTR.
19630 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19632 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19634 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19636 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19637 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19638 (aarch64_types_signed_poly_qualifiers): Likewise.
19639 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19640 (aarch64_types_poly_signed_qualifiers): Likewise.
19641 (TYPES_REINTERP_SS): Type macro added.
19642 (TYPES_REINTERP_SU): Likewise.
19643 (TYPES_REINTERP_SP): Likewise.
19644 (TYPES_REINTERP_US): Likewise.
19645 (TYPES_REINTERP_PS): Likewise.
19646 (aarch64_fold_builtin): New expression folding added.
19647 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19648 Declarations removed.
19649 (REINTERP_SS): Declarations added.
19650 (REINTERP_US): Likewise.
19651 (REINTERP_PS): Likewise.
19652 (REINTERP_SU): Likewise.
19653 (REINTERP_SP): Likewise.
19654 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19655 (vreinterpretq_p8_f64): Likewise.
19656 (vreinterpret_p16_f64): Likewise.
19657 (vreinterpretq_p16_f64): Likewise.
19658 (vreinterpret_f32_f64): Likewise.
19659 (vreinterpretq_f32_f64): Likewise.
19660 (vreinterpret_f64_f32): Likewise.
19661 (vreinterpret_f64_p8): Likewise.
19662 (vreinterpret_f64_p16): Likewise.
19663 (vreinterpret_f64_s8): Likewise.
19664 (vreinterpret_f64_s16): Likewise.
19665 (vreinterpret_f64_s32): Likewise.
19666 (vreinterpret_f64_s64): Likewise.
19667 (vreinterpret_f64_u8): Likewise.
19668 (vreinterpret_f64_u16): Likewise.
19669 (vreinterpret_f64_u32): Likewise.
19670 (vreinterpret_f64_u64): Likewise.
19671 (vreinterpretq_f64_f32): Likewise.
19672 (vreinterpretq_f64_p8): Likewise.
19673 (vreinterpretq_f64_p16): Likewise.
19674 (vreinterpretq_f64_s8): Likewise.
19675 (vreinterpretq_f64_s16): Likewise.
19676 (vreinterpretq_f64_s32): Likewise.
19677 (vreinterpretq_f64_s64): Likewise.
19678 (vreinterpretq_f64_u8): Likewise.
19679 (vreinterpretq_f64_u16): Likewise.
19680 (vreinterpretq_f64_u32): Likewise.
19681 (vreinterpretq_f64_u64): Likewise.
19682 (vreinterpret_s64_f64): Likewise.
19683 (vreinterpretq_s64_f64): Likewise.
19684 (vreinterpret_u64_f64): Likewise.
19685 (vreinterpretq_u64_f64): Likewise.
19686 (vreinterpret_s8_f64): Likewise.
19687 (vreinterpretq_s8_f64): Likewise.
19688 (vreinterpret_s16_f64): Likewise.
19689 (vreinterpretq_s16_f64): Likewise.
19690 (vreinterpret_s32_f64): Likewise.
19691 (vreinterpretq_s32_f64): Likewise.
19692 (vreinterpret_u8_f64): Likewise.
19693 (vreinterpretq_u8_f64): Likewise.
19694 (vreinterpret_u16_f64): Likewise.
19695 (vreinterpretq_u16_f64): Likewise.
19696 (vreinterpret_u32_f64): Likewise.
19697 (vreinterpretq_u32_f64): Likewise.
19699 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19701 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19702 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19703 (vreinterpret_p8_s8): Likewise.
19704 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19705 (vreinterpret_p8_s16): Likewise.
19706 (vreinterpret_p8_s32): Likewise.
19707 (vreinterpret_p8_s64): Likewise.
19708 (vreinterpret_p8_f32): Likewise.
19709 (vreinterpret_p8_u8): Likewise.
19710 (vreinterpret_p8_u16): Likewise.
19711 (vreinterpret_p8_u32): Likewise.
19712 (vreinterpret_p8_u64): Likewise.
19713 (vreinterpret_p8_p16): Likewise.
19714 (vreinterpretq_p8_s8): Likewise.
19715 (vreinterpretq_p8_s16): Likewise.
19716 (vreinterpretq_p8_s32): Likewise.
19717 (vreinterpretq_p8_s64): Likewise.
19718 (vreinterpretq_p8_f32): Likewise.
19719 (vreinterpretq_p8_u8): Likewise.
19720 (vreinterpretq_p8_u16): Likewise.
19721 (vreinterpretq_p8_u32): Likewise.
19722 (vreinterpretq_p8_u64): Likewise.
19723 (vreinterpretq_p8_p16): Likewise.
19724 (vreinterpret_p16_s8): Likewise.
19725 (vreinterpret_p16_s16): Likewise.
19726 (vreinterpret_p16_s32): Likewise.
19727 (vreinterpret_p16_s64): Likewise.
19728 (vreinterpret_p16_f32): Likewise.
19729 (vreinterpret_p16_u8): Likewise.
19730 (vreinterpret_p16_u16): Likewise.
19731 (vreinterpret_p16_u32): Likewise.
19732 (vreinterpret_p16_u64): Likewise.
19733 (vreinterpret_p16_p8): Likewise.
19734 (vreinterpretq_p16_s8): Likewise.
19735 (vreinterpretq_p16_s16): Likewise.
19736 (vreinterpretq_p16_s32): Likewise.
19737 (vreinterpretq_p16_s64): Likewise.
19738 (vreinterpretq_p16_f32): Likewise.
19739 (vreinterpretq_p16_u8): Likewise.
19740 (vreinterpretq_p16_u16): Likewise.
19741 (vreinterpretq_p16_u32): Likewise.
19742 (vreinterpretq_p16_u64): Likewise.
19743 (vreinterpretq_p16_p8): Likewise.
19744 (vreinterpret_f32_s8): Likewise.
19745 (vreinterpret_f32_s16): Likewise.
19746 (vreinterpret_f32_s32): Likewise.
19747 (vreinterpret_f32_s64): Likewise.
19748 (vreinterpret_f32_u8): Likewise.
19749 (vreinterpret_f32_u16): Likewise.
19750 (vreinterpret_f32_u32): Likewise.
19751 (vreinterpret_f32_u64): Likewise.
19752 (vreinterpret_f32_p8): Likewise.
19753 (vreinterpret_f32_p16): Likewise.
19754 (vreinterpretq_f32_s8): Likewise.
19755 (vreinterpretq_f32_s16): Likewise.
19756 (vreinterpretq_f32_s32): Likewise.
19757 (vreinterpretq_f32_s64): Likewise.
19758 (vreinterpretq_f32_u8): Likewise.
19759 (vreinterpretq_f32_u16): Likewise.
19760 (vreinterpretq_f32_u32): Likewise.
19761 (vreinterpretq_f32_u64): Likewise.
19762 (vreinterpretq_f32_p8): Likewise.
19763 (vreinterpretq_f32_p16): Likewise.
19764 (vreinterpret_s64_s8): Likewise.
19765 (vreinterpret_s64_s16): Likewise.
19766 (vreinterpret_s64_s32): Likewise.
19767 (vreinterpret_s64_f32): Likewise.
19768 (vreinterpret_s64_u8): Likewise.
19769 (vreinterpret_s64_u16): Likewise.
19770 (vreinterpret_s64_u32): Likewise.
19771 (vreinterpret_s64_u64): Likewise.
19772 (vreinterpret_s64_p8): Likewise.
19773 (vreinterpret_s64_p16): Likewise.
19774 (vreinterpretq_s64_s8): Likewise.
19775 (vreinterpretq_s64_s16): Likewise.
19776 (vreinterpretq_s64_s32): Likewise.
19777 (vreinterpretq_s64_f32): Likewise.
19778 (vreinterpretq_s64_u8): Likewise.
19779 (vreinterpretq_s64_u16): Likewise.
19780 (vreinterpretq_s64_u32): Likewise.
19781 (vreinterpretq_s64_u64): Likewise.
19782 (vreinterpretq_s64_p8): Likewise.
19783 (vreinterpretq_s64_p16): Likewise.
19784 (vreinterpret_u64_s8): Likewise.
19785 (vreinterpret_u64_s16): Likewise.
19786 (vreinterpret_u64_s32): Likewise.
19787 (vreinterpret_u64_s64): Likewise.
19788 (vreinterpret_u64_f32): Likewise.
19789 (vreinterpret_u64_u8): Likewise.
19790 (vreinterpret_u64_u16): Likewise.
19791 (vreinterpret_u64_u32): Likewise.
19792 (vreinterpret_u64_p8): Likewise.
19793 (vreinterpret_u64_p16): Likewise.
19794 (vreinterpretq_u64_s8): Likewise.
19795 (vreinterpretq_u64_s16): Likewise.
19796 (vreinterpretq_u64_s32): Likewise.
19797 (vreinterpretq_u64_s64): Likewise.
19798 (vreinterpretq_u64_f32): Likewise.
19799 (vreinterpretq_u64_u8): Likewise.
19800 (vreinterpretq_u64_u16): Likewise.
19801 (vreinterpretq_u64_u32): Likewise.
19802 (vreinterpretq_u64_p8): Likewise.
19803 (vreinterpretq_u64_p16): Likewise.
19804 (vreinterpret_s8_s16): Likewise.
19805 (vreinterpret_s8_s32): Likewise.
19806 (vreinterpret_s8_s64): Likewise.
19807 (vreinterpret_s8_f32): Likewise.
19808 (vreinterpret_s8_u8): Likewise.
19809 (vreinterpret_s8_u16): Likewise.
19810 (vreinterpret_s8_u32): Likewise.
19811 (vreinterpret_s8_u64): Likewise.
19812 (vreinterpret_s8_p8): Likewise.
19813 (vreinterpret_s8_p16): Likewise.
19814 (vreinterpretq_s8_s16): Likewise.
19815 (vreinterpretq_s8_s32): Likewise.
19816 (vreinterpretq_s8_s64): Likewise.
19817 (vreinterpretq_s8_f32): Likewise.
19818 (vreinterpretq_s8_u8): Likewise.
19819 (vreinterpretq_s8_u16): Likewise.
19820 (vreinterpretq_s8_u32): Likewise.
19821 (vreinterpretq_s8_u64): Likewise.
19822 (vreinterpretq_s8_p8): Likewise.
19823 (vreinterpretq_s8_p16): Likewise.
19824 (vreinterpret_s16_s8): Likewise.
19825 (vreinterpret_s16_s32): Likewise.
19826 (vreinterpret_s16_s64): Likewise.
19827 (vreinterpret_s16_f32): Likewise.
19828 (vreinterpret_s16_u8): Likewise.
19829 (vreinterpret_s16_u16): Likewise.
19830 (vreinterpret_s16_u32): Likewise.
19831 (vreinterpret_s16_u64): Likewise.
19832 (vreinterpret_s16_p8): Likewise.
19833 (vreinterpret_s16_p16): Likewise.
19834 (vreinterpretq_s16_s8): Likewise.
19835 (vreinterpretq_s16_s32): Likewise.
19836 (vreinterpretq_s16_s64): Likewise.
19837 (vreinterpretq_s16_f32): Likewise.
19838 (vreinterpretq_s16_u8): Likewise.
19839 (vreinterpretq_s16_u16): Likewise.
19840 (vreinterpretq_s16_u32): Likewise.
19841 (vreinterpretq_s16_u64): Likewise.
19842 (vreinterpretq_s16_p8): Likewise.
19843 (vreinterpretq_s16_p16): Likewise.
19844 (vreinterpret_s32_s8): Likewise.
19845 (vreinterpret_s32_s16): Likewise.
19846 (vreinterpret_s32_s64): Likewise.
19847 (vreinterpret_s32_f32): Likewise.
19848 (vreinterpret_s32_u8): Likewise.
19849 (vreinterpret_s32_u16): Likewise.
19850 (vreinterpret_s32_u32): Likewise.
19851 (vreinterpret_s32_u64): Likewise.
19852 (vreinterpret_s32_p8): Likewise.
19853 (vreinterpret_s32_p16): Likewise.
19854 (vreinterpretq_s32_s8): Likewise.
19855 (vreinterpretq_s32_s16): Likewise.
19856 (vreinterpretq_s32_s64): Likewise.
19857 (vreinterpretq_s32_f32): Likewise.
19858 (vreinterpretq_s32_u8): Likewise.
19859 (vreinterpretq_s32_u16): Likewise.
19860 (vreinterpretq_s32_u32): Likewise.
19861 (vreinterpretq_s32_u64): Likewise.
19862 (vreinterpretq_s32_p8): Likewise.
19863 (vreinterpretq_s32_p16): Likewise.
19864 (vreinterpret_u8_s8): Likewise.
19865 (vreinterpret_u8_s16): Likewise.
19866 (vreinterpret_u8_s32): Likewise.
19867 (vreinterpret_u8_s64): Likewise.
19868 (vreinterpret_u8_f32): Likewise.
19869 (vreinterpret_u8_u16): Likewise.
19870 (vreinterpret_u8_u32): Likewise.
19871 (vreinterpret_u8_u64): Likewise.
19872 (vreinterpret_u8_p8): Likewise.
19873 (vreinterpret_u8_p16): Likewise.
19874 (vreinterpretq_u8_s8): Likewise.
19875 (vreinterpretq_u8_s16): Likewise.
19876 (vreinterpretq_u8_s32): Likewise.
19877 (vreinterpretq_u8_s64): Likewise.
19878 (vreinterpretq_u8_f32): Likewise.
19879 (vreinterpretq_u8_u16): Likewise.
19880 (vreinterpretq_u8_u32): Likewise.
19881 (vreinterpretq_u8_u64): Likewise.
19882 (vreinterpretq_u8_p8): Likewise.
19883 (vreinterpretq_u8_p16): Likewise.
19884 (vreinterpret_u16_s8): Likewise.
19885 (vreinterpret_u16_s16): Likewise.
19886 (vreinterpret_u16_s32): Likewise.
19887 (vreinterpret_u16_s64): Likewise.
19888 (vreinterpret_u16_f32): Likewise.
19889 (vreinterpret_u16_u8): Likewise.
19890 (vreinterpret_u16_u32): Likewise.
19891 (vreinterpret_u16_u64): Likewise.
19892 (vreinterpret_u16_p8): Likewise.
19893 (vreinterpret_u16_p16): Likewise.
19894 (vreinterpretq_u16_s8): Likewise.
19895 (vreinterpretq_u16_s16): Likewise.
19896 (vreinterpretq_u16_s32): Likewise.
19897 (vreinterpretq_u16_s64): Likewise.
19898 (vreinterpretq_u16_f32): Likewise.
19899 (vreinterpretq_u16_u8): Likewise.
19900 (vreinterpretq_u16_u32): Likewise.
19901 (vreinterpretq_u16_u64): Likewise.
19902 (vreinterpretq_u16_p8): Likewise.
19903 (vreinterpretq_u16_p16): Likewise.
19904 (vreinterpret_u32_s8): Likewise.
19905 (vreinterpret_u32_s16): Likewise.
19906 (vreinterpret_u32_s32): Likewise.
19907 (vreinterpret_u32_s64): Likewise.
19908 (vreinterpret_u32_f32): Likewise.
19909 (vreinterpret_u32_u8): Likewise.
19910 (vreinterpret_u32_u16): Likewise.
19911 (vreinterpret_u32_u64): Likewise.
19912 (vreinterpret_u32_p8): Likewise.
19913 (vreinterpret_u32_p16): Likewise.
19914 (vreinterpretq_u32_s8): Likewise.
19915 (vreinterpretq_u32_s16): Likewise.
19916 (vreinterpretq_u32_s32): Likewise.
19917 (vreinterpretq_u32_s64): Likewise.
19918 (vreinterpretq_u32_f32): Likewise.
19919 (vreinterpretq_u32_u8): Likewise.
19920 (vreinterpretq_u32_u16): Likewise.
19921 (vreinterpretq_u32_u64): Likewise.
19922 (vreinterpretq_u32_p8): Likewise.
19923 (vreinterpretq_u32_p16): Likewise.
19925 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19927 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19929 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19931 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19932 (vqnegd_s64): Likewise.
19933 (vqabs_s64): Likewise.
19934 (vqabsd_s64): Likewise.
19936 2014-04-22 Richard Henderson <rth@redhat.com>
19938 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19939 computation to the top of the loop.
19941 2014-04-22 Renlin <renlin.li@arm.com>
19942 Jiong Wang <jiong.wang@arm.com>
19944 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19945 * config/aarch64/aarch64.c (aarch64_layout_frame)
19946 (aarch64_initial_elimination_offset): Likewise.
19948 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19950 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19953 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19955 * machmode.h (bitwise_mode_for_mode): Declare.
19956 * stor-layout.h (bitwise_type_for_mode): Likewise.
19957 * stor-layout.c (bitwise_mode_for_mode): New function.
19958 (bitwise_type_for_mode): Likewise.
19959 * builtins.c (fold_builtin_memory_op): Use it instead of
19960 int_mode_for_mode and build_nonstandard_integer_type.
19962 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19964 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19965 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19966 (*-*-solaris2*): Simplify.
19967 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19968 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19969 *-*-solaris2.9* handling.
19971 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19973 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19974 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19975 handling, simplify.
19976 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19977 * configure: Regenerate.
19979 * config/i386/sol2-9.h: Remove.
19981 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19982 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19983 Remove Solaris 9 references.
19985 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19987 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19988 (floatuns<GPI:mode><GPF:mode>2): Remove.
19989 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19990 and floatuns conversions.
19991 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19992 and floatuns conversions.
19993 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19994 (w1,w2): New mode attributes for inequal width conversions.
19996 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19998 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19999 the output asm format.
20001 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20003 * config/aarch64/aarch64-simd.md
20004 (aarch64_cm<optab>di): Always split.
20005 (*aarch64_cm<optab>di): New.
20006 (aarch64_cmtstdi): Always split.
20007 (*aarch64_cmtstdi): New.
20009 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20011 PR tree-optimization/60823
20012 * omp-low.c (ipa_simd_modify_function_body): Go through
20013 all SSA_NAMEs and for those refering to vector arguments
20014 which are going to be replaced adjust SSA_NAME_VAR and,
20015 if it is a default definition, change it into a non-default
20016 definition assigned at the beginning of function from new_decl.
20017 (ipa_simd_modify_stmt_ops): Rewritten.
20018 * tree-dfa.c (set_ssa_default_def): When removing default def,
20019 check for NULL loc instead of NULL *loc.
20021 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20023 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20024 restrictions on core registers for DImode values in Thumb2.
20026 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20028 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20029 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20031 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20033 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20034 (*iordi_notzesidi_di): Likewise.
20035 (*iordi_notsesidi_di): Likewise.
20037 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20039 * config/arm/arm-protos.h (tune_params): New struct members.
20040 * config/arm/arm.c: Initialise tune_params per processor.
20041 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20042 for speed, based on new tune_params.
20044 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20046 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20047 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20048 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20049 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20050 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20051 (vrnda_f64): Likewise.
20052 (vrndi_f64): Likewise.
20053 (vrndm_f64): Likewise.
20054 (vrndn_f64): Likewise.
20055 (vrndp_f64): Likewise.
20056 (vrndx_f64): Likewise.
20058 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20060 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20061 GET_MODE_SIZE argument is enum machine_mode.
20063 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20066 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20067 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20069 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20071 PR middle-end/60281
20072 * asan.c (asan_emit_stack_protection): Force the base to align to
20073 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20074 appropriate bits if STRICT_ALIGNMENT.
20075 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20077 (expand_used_vars): Leave a space in the stack frame for alignment
20078 if STRICT_ALIGNMENT.
20080 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20082 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20084 (gimple_store_p): Likewise.
20085 (gimple_assign_load_p): Likewise.
20086 (gimple_assign_cast_p): Likewise.
20087 (gimple_clobber_p): Likewise.
20089 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20090 rather than a gimple.
20091 (gimple_assign_cast_p): Likewise.
20093 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20096 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20097 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20099 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20100 more debug information for E500 if -mdebug=reg.
20102 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20105 * config/i386/i386.c (ix86_expand_builtin)
20106 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20107 register for target RTX.
20108 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20110 2014-04-18 Cong Hou <congh@google.com>
20112 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20113 the widen-mult pattern by handling two operands with different sizes,
20114 and operands whose size is smaller than half of the result type.
20116 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20118 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20119 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20120 (do_estimate_edge_time): Compute it.
20121 * ipa-inline.c (want_inline_small_function_p): Bypass
20122 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20124 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20126 * ipa-inline.c (spec_rem): New static variable.
20127 (dump_overall_stats): New function.
20128 (dump_inline_stats): New function.
20130 2014-04-18 Richard Henderson <rth@redhat.com>
20132 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20133 to GET_MODE_SIZE, not a reg_class_t.
20135 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20137 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20138 (vsx_xxmrglw_<mode>): Likewise.
20140 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20143 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20144 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20145 (rs6000_init_hard_regno_mode_ok): Likewise.
20147 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20149 * ipa-inline.c (inline_small_functions): Account only non-cold
20151 * doc/invoke.texi (inline-unit-growth): Update documentation.
20153 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20155 * config/rs6000/rs6000.md (addti3, subti3): New.
20157 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20160 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20161 comment. Check optimize_insn_for_size_p instead of
20162 optimize_insn_for_speed_p.
20164 2014-04-17 Martin Jambor <mjambor@suse.cz>
20166 * gimple-iterator.c (gsi_start_edge): New function.
20167 * gimple-iterator.h (gsi_start_edge): Declare.
20168 * tree-sra.c (single_non_eh_succ): New function.
20169 (disqualify_ops_if_throwing_stmt): Renamed to
20170 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20171 having one non-EH successor BB.
20172 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20173 generate loads into replacements.
20174 (sra_modify_assign): Likewise and and also use the simple path for
20176 (sra_modify_function_body): Commit statements on edges.
20178 2014-04-17 Richard Biener <rguenther@suse.de>
20180 PR middle-end/60849
20181 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20182 comparison results and add clarifying comment.
20184 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20186 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20187 (blank_mode): Initialize it.
20188 (emit_mode_size_inline, emit_mode_nunits_inline,
20189 emit_mode_inner_inline): New functions.
20190 (emit_insn_modes_h): Call them and surround their output with
20191 #if GCC_VERSION >= 4001 ... #endif.
20192 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20193 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20194 mode_* arrays if the argument is __builtin_constant_p.
20195 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20196 is enum machine_mode.
20198 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20200 * passes.c (opt_pass::execute): Adjust.
20201 (pass_manager::execute_pass_mode_switching): Likewise.
20202 (early_local_passes::execute): Likewise.
20203 (execute_one_pass): Pass cfun to the pass's execute method.
20204 * tree-pass.h (opt_pass::execute): Add function * argument.
20205 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20206 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20207 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20208 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20209 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20210 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20211 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20212 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20213 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20214 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20215 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20216 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20217 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20218 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20219 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20220 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20221 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20222 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20223 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20224 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20225 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20226 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20227 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20228 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20229 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20230 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20231 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20232 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20233 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20236 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20238 * passes.c (opt_pass::gate): Take function * argument.
20239 (gate_all_early_local_passes): Merge into
20240 (early_local_passes::gate): this.
20241 (gate_all_early_optimizations): Merge into
20242 (all_early_optimizations::gate): this.
20243 (gate_all_optimizations): Mege into
20244 (all_optimizations::gate): this.
20245 (gate_all_optimizations_g): Merge into
20246 (all_optimizations_g::gate): this.
20247 (gate_rest_of_compilation): Mege into
20248 (rest_of_compilation::gate): this.
20249 (gate_postreload): Merge into
20250 (postreload::gate): this.
20251 (dump_one_pass): Pass cfun to the pass's gate method.
20252 (execute_ipa_summary_passes): Likewise.
20253 (execute_one_pass): Likewise.
20254 (ipa_write_summaries_2): Likewise.
20255 (ipa_write_optimization_summaries_1): Likewise.
20256 (ipa_read_summaries_1): Likewise.
20257 (ipa_read_optimization_summaries_1): Likewise.
20258 (execute_ipa_stmt_fixups): Likewise.
20259 * tree-pass.h (opt_pass::gate): Add function * argument.
20260 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20261 combine-stack-adj.c, combine.c, compare-elim.c,
20262 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20263 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20264 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20265 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20266 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20267 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20268 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20269 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20270 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20271 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20272 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20273 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20274 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20275 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20276 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20277 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20278 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20279 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20280 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20281 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20282 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20283 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20284 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20285 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20286 var-tracking.c, vtable-verify.c, web.c: Adjust.
20288 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20290 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20291 * configure: Regenerate.
20293 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20295 * passes.c (dump_one_pass): don't check pass->has_gate.
20296 (execute_ipa_summary_passes): Likewise.
20297 (execute_one_pass): Likewise.
20298 (ipa_write_summaries_2): Likewise.
20299 (ipa_write_optimization_summaries_1): Likewise.
20300 (ipa_read_optimization_summaries_1): Likewise.
20301 (execute_ipa_stmt_fixups): Likewise.
20302 * tree-pass.h (pass_data::has_gate): Remove.
20303 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20304 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20305 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20306 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20307 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20308 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20309 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20310 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20311 gimple-low.c, gimple-ssa-isolate-paths.c,
20312 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20313 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20314 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20315 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20316 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20317 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20318 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20319 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20320 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20321 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20322 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20323 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20324 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20325 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20326 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20327 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20328 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20329 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20330 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20331 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20332 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20333 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20336 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20338 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20340 * passes.c (pass_manager::register_dump_files_1): Merge into
20341 (pass_manager::register_dump_files): this, and remove its handling of
20342 properties since the pass always has the properties anyway.
20343 (pass_manager::pass_manager): Adjust.
20345 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20347 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20348 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20349 dealing with properties.
20350 (pass_manager::register_dump_files): Adjust.
20352 2014-03-20 Mark Wielaard <mjw@redhat.com>
20354 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20355 then represent the bound as normal constant value.
20357 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20360 Forward port from 4.8 branch
20361 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20363 * config/i386/bmiintrin.h (_blsi_u32): New.
20364 (_blsi_u64): Ditto.
20365 (_blsr_u32): Ditto.
20366 (_blsr_u64): Ditto.
20367 (_blsmsk_u32): Ditto.
20368 (_blsmsk_u64): Ditto.
20369 (_tzcnt_u32): Ditto.
20370 (_tzcnt_u64): Ditto.
20372 2014-04-17 Kito Cheng <kito@0xlab.org>
20374 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20376 2014-04-17 Richard Biener <rguenther@suse.de>
20378 PR middle-end/60849
20379 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20380 boolean results for comparisons.
20382 2014-04-17 Richard Biener <rguenther@suse.de>
20384 PR tree-optimization/60836
20385 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20386 initial PHI args to be gimple values.
20388 2014-04-17 Richard Biener <rguenther@suse.de>
20390 PR tree-optimization/60841
20391 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20392 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20393 of stmts to SLP build.
20394 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20395 (vect_analyze_slp): Likewise.
20396 (vect_analyze_slp_instance): Likewise.
20397 (vect_build_slp_tree): Limit overall SLP tree growth.
20398 * tree-vectorizer.h (vect_analyze_data_refs,
20399 vect_analyze_slp): Adjust prototypes.
20401 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20403 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20406 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20408 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20409 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20410 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20411 for TARGET_SLOW_PSHUFB
20413 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20415 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20416 * config/i386/i386.c (intel_cost): Ditto.
20418 2014-04-17 Joey Ye <joey.ye@arm.com>
20420 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20422 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20424 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20425 with -fuse-profile.
20427 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20429 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20430 (type_all_derivations_known_p): New predicate.
20431 (type_all_ctors_visible_p): New predicate.
20432 (type_possibly_instantiated_p): New predicate.
20433 (get_odr_type): Compute all_derivations_known.
20434 (dump_odr_type): Dump the flag.
20435 (maybe_record_type): Cleanup.
20436 (record_target_from_binfo): Add bases_to_consider array;
20437 record bases for types w/o instances and skip CXX destructor.
20438 (possible_polymorphic_call_targets_1): Add bases_to_consider
20439 and consider_construction parameters; check if type may have instance.
20440 (get_polymorphic_call_info): Set maybe_in_construction to true
20441 when we know nothing.
20442 (record_targets_from_bases): Skip CXX destructors; they are
20443 never called for types in construction.
20444 (possible_polymorphic_call_targets): Do not record target when
20445 type may not have instance.
20447 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20450 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20451 external aliases alive, too.
20453 2014-04-16 Andrew Pinski <apinski@cavium.com>
20455 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20458 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20460 * final.c (compute_alignments): Do not apply loop alignment to a block
20461 falling through to the exit.
20463 2014-04-16 Catherine Moore <clm@codesourcery.com>
20465 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20466 Adjust constraints for microMIPS store patterns.
20468 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20470 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20472 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20474 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20475 (append_use): Run at -O0.
20476 (append_vdef): Likewise.
20477 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20478 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20480 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20482 PR tree-optimization/60844
20483 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20484 (propagate_op_to_single_use, remove_visited_stmt_chain,
20485 linearize_expr, repropagate_negates, reassociate_bb): Use it
20486 instead of gsi_remove.
20488 2014-04-16 Martin Jambor <mjambor@suse.cz>
20490 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20491 ipa_transforms_to_apply.
20492 (cgraph_function_versioning): Assert that old_node has empty
20493 ipa_transforms_to_apply.
20494 * trans-mem.c (ipa_tm_create_version): Likewise.
20495 * tree-inline.c (tree_function_versioning): Do not duplicate
20496 ipa_transforms_to_apply.
20498 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20501 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20503 Pass necessary as flags on 64-bit Solaris/x86.
20504 Use lowercase relocs for x86_64-*-*.
20505 * configure: Regenerate.
20507 2014-04-15 Jan Hubicka <jh@suse.cz>
20509 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20510 (maybe_record_node, likely_target_p): Use it.
20512 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20515 Revert following patch
20517 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20520 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20521 software floating point or no floating point registers, do not
20522 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20523 in GPRs that occurs after we tested for GPRs that would never be
20526 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20527 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20528 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20529 specifically allow DDmode, since that does not use the SPE SIMD
20532 2014-03-21 Mark Wielaard <mjw@redhat.com>
20534 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20535 as unsigned or int depending on type and value used.
20537 2014-04-15 Richard Biener <rguenther@suse.de>
20539 PR rtl-optimization/56965
20540 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20541 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20543 * alias.c (true_dependence_1): Do not call
20544 nonoverlapping_component_refs_p.
20545 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20546 nonoverlapping_component_refs_p.
20547 (indirect_refs_may_alias_p): Likewise.
20549 2014-04-15 Teresa Johnson <tejohnson@google.com>
20551 * cfg.c (dump_bb_info): Fix flags check.
20552 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20554 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20556 PR rtl-optimization/60663
20557 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20560 2014-04-15 Richard Biener <rguenther@suse.de>
20562 * lto-streamer.h (LTO_major_version): Bump to 4.
20564 2014-04-15 Richard Biener <rguenther@suse.de>
20566 * common.opt (lto_partition_model): New enum.
20567 (flto-partition=): Merge separate options with a single with argument,
20568 add -flto-partition=one support.
20569 * flag-types.h (enum lto_partition_model): Declare.
20570 * opts.c (finish_options): Remove duplicate -flto-partition=
20572 * lto-wrapper.c (run_gcc): Adjust.
20574 2014-04-15 Richard Biener <rguenther@suse.de>
20576 * alias.c (ncr_compar): New function.
20577 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20579 2014-04-15 Richard Biener <rguenther@suse.de>
20581 * alias.c (record_component_aliases): Do not walk BINFOs.
20583 2014-04-15 Richard Biener <rguenther@suse.de>
20585 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20586 Add struct function argument and adjust.
20587 (find_func_aliases_for_call): Likewise.
20588 (find_func_aliases): Likewise.
20589 (find_func_clobbers): Likewise.
20590 (intra_create_variable_infos): Likewise.
20591 (compute_points_to_sets): Likewise.
20592 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20594 2014-04-15 Richard Biener <rguenther@suse.de>
20596 * tree.c (iterative_hash_expr): Use enum tree_code_class
20597 to store TREE_CODE_CLASS.
20598 (tree_block): Likewise.
20599 (tree_set_block): Likewise.
20600 * tree.h (fold_build_pointer_plus_loc): Use
20601 convert_to_ptrofftype_loc.
20603 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20606 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20609 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20611 * cfgloop.h (struct loop): Move force_vectorize down.
20612 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20613 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20614 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20615 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20616 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20617 * tree-core.h (enum annot_expr_kind): Add new kind values.
20618 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20619 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20621 * tree.def (ANNOTATE_EXPR): Tweak comment.
20623 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20625 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20628 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20630 * tree.h (TYPE_IDENTIFIER): Declare.
20631 * tree.c (subrange_type_for_debug_p): Use it.
20632 * godump.c (go_format_type): Likewise.
20633 * dwarf2out.c (is_cxx_auto, modified_type_die,
20634 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20635 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20637 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20640 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20642 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20644 * config/i386/i386.c (examine_argument): Return bool. Return true if
20645 parameter should be passed in memory.
20646 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20647 (construct_container): Update calls to examine_argument.
20648 (function_arg_advance_64): Ditto.
20649 (return_in_memory_32): Merge with ix86_return_in_memory.
20650 (return_in_memory_64): Ditto.
20651 (return_in_memory_ms_64): Ditto.
20653 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20655 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20656 * coverage.c (coverage_compute_profile_id): Handle externally visible
20659 2014-04-14 Martin Jambor <mjambor@suse.cz>
20661 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20662 DECL_DISREGARD_INLINE_LIMITS functions.
20664 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20667 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20669 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20672 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20673 optimize_insn_for_speed_p instead of
20674 optimize_function_for_speed_p.
20676 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20678 * doc/invoke.texi (free): Document AArch64.
20680 2014-04-14 Richard Biener <rguenther@suse.de>
20682 PR tree-optimization/60042
20683 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20684 (insert_into_preds_of_block): Do not prevent PHI insertion
20685 for REFERENCE exprs here ...
20686 (eliminate_dom_walker::before_dom_children): ... but prevent
20687 their use here under similar conditions when applied to the
20688 IL after PRE optimizations.
20690 2014-04-14 Richard Biener <rguenther@suse.de>
20692 * passes.def: Move early points-to after early SRA.
20694 2014-04-14 Richard Biener <rguenther@suse.de>
20696 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20697 check for which sign-changes we allow when forwarding
20698 a converted value into a switch.
20700 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20702 * stor-layout.c (place_field): Finalize non-constant offset for the
20705 2014-04-14 Richard Biener <rguenther@suse.de>
20707 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20709 (expand_switch_using_bit_tests_p): Likewise.
20710 (process_switch): Compute and pass on speed_p based on the
20712 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20713 optimize_bb_for_speed_p.
20715 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20717 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20718 * function.h (struct function): Rename has_force_vect_loops into
20719 has_force_vectorize_loops.
20720 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20721 (input_struct_function_base): Likewise.
20722 * lto-streamer-out.c (output_cfg): Likewise.
20723 (output_struct_function_base): Likewise.
20724 * omp-low.c (expand_omp_simd): Likewise.
20725 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20726 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20727 (version_loop_for_if_conversion): Likewise.
20728 (tree_if_conversion): Likewise.
20729 (main_tree_if_conversion): Likewise.
20730 (gate_tree_if_conversion): Likewise.
20731 * tree-inline.c (copy_loops): Likewise.
20732 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20733 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20734 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20735 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20736 * tree-vectorizer.c (vectorize_loops): Likewise.
20737 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20739 2014-04-14 Richard Biener <rguenther@suse.de>
20742 * lto-streamer-out.c (wrap_refs): New function.
20743 (lto_output): Wrap symbol references in global initializes in
20744 type-preserving MEM_REFs.
20746 2014-04-14 Christian Bruel <christian.bruel@st.com>
20748 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20750 2014-04-14 Christian Bruel <christian.bruel@st.com>
20752 * config/sh/sh.md (setmemqi): New expand pattern.
20753 * config/sh/sh.h (CLEAR_RATIO): Define.
20754 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20755 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20757 2014-04-14 Richard Biener <rguenther@suse.de>
20759 PR middle-end/55022
20760 * fold-const.c (negate_expr_p): Don't negate directional rounding
20762 (fold_negate_expr): Likewise.
20764 2014-04-14 Richard Biener <rguenther@suse.de>
20766 PR tree-optimization/59817
20767 PR tree-optimization/60453
20768 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20769 recursion to catch all CHRECs in the scalar evolution and restrict
20770 the predicate for the remains appropriately.
20772 2014-04-12 Catherine Moore <clm@codesourcery.com>
20774 * config/mips/constraints.md: Add new register constraint "kb".
20775 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20776 (*movhi_internal): Likewise.
20777 (*movqi_internal): Likewise.
20778 * config/mips/mips.h (M16_STORE_REGS): New register class.
20779 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20780 (REG_CLASS_CONTENTS): Likewise.
20781 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20783 2014-04-11 Tobias Burnus <burnus@net-b.de>
20786 * doc/invoke.texi (-Wformat-signedness): Document it.
20787 (Wformat=2): Mention that this enables -Wformat-signedness.
20789 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20791 * common/config/epiphany/epiphany-common.c
20792 (epiphany_option_optimization_table): Enable section anchors by
20793 default at -O1 or higher.
20794 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20795 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20796 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20797 carries no extra cost.
20798 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20799 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20800 * config/epiphany/predicates.md (memclob_operand): New predicate.
20801 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20802 Use memclob_operand predicate and X constraint for operand 3.
20804 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20806 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20807 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20810 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20812 PR rtl-optimization/60651
20813 * mode-switching.c (optimize_mode_switching): Make sure to emit
20814 sets of a lower numbered entity before sets of a higher numbered
20815 entity to a mode of the same or lower priority.
20816 When creating a seginfo for a basic block that starts with a code
20817 label, move the insertion point past the code label.
20818 (new_seginfo): Document and enforce requirement that
20819 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20820 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20821 * doc/tm.texi: Regenerate.
20823 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20826 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20828 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20830 * BASE-VER: Set to 4.10.0.
20832 2014-04-11 Tobias Burnus <burnus@net-b.de>
20835 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20836 * doc/gcc.texi (Service): Update description in the @menu
20837 * doc/invoke.texi (Option Summary): Remove misplaced and
20840 2014-04-11 Steve Ellcey <sellcey@mips.com>
20841 Jakub Jelinek <jakub@redhat.com>
20843 PR middle-end/60556
20844 * expr.c (convert_move): Use emit_store_flag_force instead of
20845 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20848 2014-04-11 Richard Biener <rguenther@suse.de>
20850 PR middle-end/60797
20851 * varasm.c (assemble_alias): Avoid endless error reporting
20852 recursion by setting TREE_ASM_WRITTEN.
20854 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20856 * config/s390/s390.md: Add a splitter for NOT rtx.
20858 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20860 PR rtl-optimization/60663
20861 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20863 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20864 Jakub Jelinek <jakub@redhat.com>
20867 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20868 flag from decl_node to node.
20870 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20873 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20874 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20875 ameliorating the cases where it can be.
20877 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20880 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20882 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20883 (loadsync_<mode>): Change mode.
20884 (load_quadpti, store_quadpti): New.
20885 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20886 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20887 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20889 2014-04-09 Cong Hou <congh@google.com>
20892 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20895 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20897 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20898 instead of vnor to exploit possible fusion opportunity in the
20900 (altivec_expand_vec_perm_const_le): Likewise.
20902 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20904 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20905 (loadsync_<mode>): Change mode.
20906 (load_quadpti, store_quadpti): New.
20907 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20908 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20910 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20913 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20914 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20915 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20917 2014-04-08 Richard Biener <rguenther@suse.de>
20919 PR middle-end/60706
20920 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20921 a 64bit widest int print double-int similar to on HWI64 hosts.
20923 2014-04-08 Richard Biener <rguenther@suse.de>
20925 PR tree-optimization/60785
20926 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20927 default defs properly.
20929 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20931 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20932 (Weffc++): Likewise.
20934 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20936 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20937 set completep to false rather than true.
20939 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20942 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20943 ARM_TARGET2_DWARF_FORMAT.
20945 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20948 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20949 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20952 2014-04-07 Richard Biener <rguenther@suse.de>
20954 PR tree-optimization/60766
20955 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20956 (may_eliminate_iv): Convert cand_value_at result to desired type.
20958 2014-04-07 Jason Merrill <jason@redhat.com>
20961 * common.opt (-fno-gnu-unique): Add.
20962 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20964 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20966 * haifa-sched.c: Fix outdated function reference and minor
20967 grammar errors in introductory comment.
20969 2014-04-07 Richard Biener <rguenther@suse.de>
20971 PR middle-end/60750
20972 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20973 for noreturn calls.
20974 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20976 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20979 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20980 size accounting for thunks.
20981 (pa_asm_output_mi_thunk): Use final_start_function() and
20982 final_end_function() to output function start and end directives.
20984 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20986 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20987 device specific ISA/ feature information. Remove short_sp and
20988 errata_skip ds. Add avr_device_specific_features enum to have device
20990 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20991 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20992 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20993 updated device specific info.
20994 * config/avr/avr-mcus.def: Merge device specific details to
20995 dev_attribute field.
20996 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20998 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20999 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21000 assembler if RMW isa supported by current device.
21001 * config/avr/genmultilib.awk: Update as device info structure changed.
21002 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21004 2014-04-04 Cong Hou <congh@google.com>
21006 PR tree-optimization/60656
21007 * tree-vect-stmts.c (supportable_widening_operation):
21008 Fix a bug that elements in a vector with vect_used_by_reduction
21009 property are incorrectly reordered when the operation on it is not
21010 consistant with the one in reduction operation.
21012 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21014 PR rtl-optimization/60155
21015 * gcse.c (record_set_data): New function.
21016 (single_set_gcse): New function.
21017 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21018 (hoist_code): Likewise.
21019 (get_pressure_class_and_nregs): Likewise.
21021 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21023 * explow.c (probe_stack_range): Emit a final optimization blockage.
21025 2014-04-04 Anthony Green <green@moxielogic.com>
21027 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21030 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21033 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21034 flags are set only during streaming.
21035 * ipa.c (process_references, walk_polymorphic_call_targets,
21036 symtab_remove_unreachable_nodes): Drop bodies of always inline
21037 after early inlining.
21038 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21040 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21041 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21044 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21047 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21050 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21052 (cortex_a53_fdivd): Likewise.
21054 2014-04-04 Martin Jambor <mjambor@suse.cz>
21057 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21058 Adjust all callers.
21059 * cgraph.c (clone_of_p): Also return true if thunks match.
21060 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21061 cgraph_function_or_thunk_node and an obsolete comment.
21062 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21064 (build_function_decl_skip_args): Likewise.
21065 (set_new_clone_decl_and_node_flags): New function.
21066 (duplicate_thunk_for_node): Likewise.
21067 (redirect_edge_duplicating_thunks): Likewise.
21068 (cgraph_clone_node): New parameter args_to_skip, pass it to
21069 redirect_edge_duplicating_thunks which is called instead of
21070 cgraph_redirect_edge_callee.
21071 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21072 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21074 2014-04-04 Jeff Law <law@redhat.com>
21077 * config/arm/predicates.md (const_int_I_operand): New predicate.
21078 (const_int_M_operand): Similarly.
21079 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21081 (insv_t2, extv_reg, extzv_t2): Likewise.
21082 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21083 (pop_multiple_with_writeback_and_return): Likewise.
21084 (vfp_pop_multiple_with_writeback): Likewise
21086 2014-04-04 Richard Biener <rguenther@suse.de>
21089 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21090 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21092 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21093 * gimplify.c (gimple_add_tmp_var_fn): New function.
21094 * gimple-expr.h (create_tmp_reg_fn): Declare.
21095 * gimple-expr.c (create_tmp_reg_fn): New function.
21096 * gimple-low.c (record_vars_into): Don't change cfun.
21097 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21098 code generation without cfun.
21100 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21103 * Makefile.in (install-driver): Fix shell scripting.
21105 2014-04-03 Cong Hou <congh@google.com>
21107 PR tree-optimization/60505
21108 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21109 threshold of number of iterations below which no vectorization
21111 * tree-vect-loop.c (new_loop_vec_info):
21112 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21113 * tree-vect-loop.c (vect_analyze_loop_operations):
21114 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21115 * tree-vect-loop.c (vect_transform_loop):
21116 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21117 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21118 of iterations of the loop and see if we should build the epilogue.
21120 2014-04-03 Richard Biener <rguenther@suse.de>
21122 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21123 (streamer_tree_cache_create): Adjust.
21124 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21125 to allow optional nodes array.
21126 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21127 (streamer_tree_cache_append): Likewise.
21128 (streamer_tree_cache_create): Create nodes array optionally
21129 as specified by parameter.
21130 * lto-streamer-out.c (create_output_block): Avoid maintaining
21131 the node array in the writer cache.
21132 (DFS_write_tree): Remove assertion.
21133 (produce_asm_for_decls): Free the out decl state hash table early.
21134 * lto-streamer-in.c (lto_data_in_create): Adjust for
21135 streamer_tree_cache_create prototype change.
21137 2014-04-03 Richard Biener <rguenther@suse.de>
21139 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21140 set TREE_CHAIN to NULL_TREE.
21142 2014-04-03 Richard Biener <rguenther@suse.de>
21144 PR tree-optimization/60740
21145 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21146 over all GIMPLE_COND operands.
21148 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21150 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21151 (Weffc++): Remove Scott's numbering, merge lists and reference
21154 2014-04-03 Nick Clifton <nickc@redhat.com>
21156 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21159 2014-04-03 Martin Jambor <mjambor@suse.cz>
21161 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21162 mention gcc_unreachable before failing.
21163 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21166 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21169 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21170 inconsistent code and instead mark the context inconsistent.
21171 (possible_polymorphic_call_targets): For inconsistent contexts
21172 return empty complete list.
21174 2014-04-02 Anthony Green <green@moxielogic.com>
21176 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21177 (extendqisi2, extendhisi2): Define.
21178 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21179 (WCHAR_TYPE): Change to unsigned int.
21181 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21183 PR tree-optimization/60733
21184 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21185 insertion point for PHI candidates to be the end of the feeding
21186 block for the PHI argument.
21188 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21190 PR rtl-optimization/60650
21191 * lra-constraints.c (process_alt_operands): Decrease reject for
21192 earlyclobber matching.
21194 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21196 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21198 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21200 * config/spu/spu.c (pad_bb): Do not crash when the last
21201 insn is CODE_FOR_blockage.
21203 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21205 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21206 lies outside the target mode.
21208 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21211 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21212 software floating point or no floating point registers, do not
21213 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21214 in GPRs that occurs after we tested for GPRs that would never be
21217 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21218 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21219 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21220 specifically allow DDmode, since that does not use the SPE SIMD
21223 2014-04-02 Richard Biener <rguenther@suse.de>
21225 PR middle-end/60729
21226 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21227 MODE_INTs. Properly use negv_optab.
21228 (expand_abs): Likewise.
21230 2014-04-02 Richard Biener <rguenther@suse.de>
21233 * Makefile.in (install-driver): Guard extra installs with special
21236 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21238 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21239 Document vec_vgbbd.
21241 2014-04-01 Richard Henderson <rth@redhat.com>
21244 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21245 alternative enabled before register allocation.
21247 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21249 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21250 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21252 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21253 (nios2_got_address): Update nios2_large_got_address call site.
21254 (nios2_delegitimize_address): New function.
21255 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21256 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21257 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21259 2014-04-01 Martin Husemann <martin@duskware.de>
21261 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21264 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21266 PR rtl-optimization/60604
21267 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21268 check from register_operand.
21269 (register_operand): Redefine in terms of general_operand.
21270 (nonmemory_operand): Use register_operand for the non-constant cases.
21272 2014-04-01 Richard Biener <rguenther@suse.de>
21274 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21276 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21278 * doc/invoke.texi (mapp-regs): Clarify.
21280 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21282 * config/i386/avx512fintrin.h (__v32hi): Define type.
21283 (__v64qi): Likewise.
21284 (_mm512_set1_epi8): Define.
21285 (_mm512_set1_epi16): Define.
21286 (_mm512_set4_epi32): Define.
21287 (_mm512_set4_epi64): Define.
21288 (_mm512_set4_pd): Define.
21289 (_mm512_set4_ps): Define.
21290 (_mm512_setr4_epi64): Define.
21291 (_mm512_setr4_epi32): Define.
21292 (_mm512_setr4_pd): Define.
21293 (_mm512_setr4_ps): Define.
21294 (_mm512_setzero_epi32): Define.
21296 2014-03-31 Martin Jambor <mjambor@suse.cz>
21298 PR middle-end/60647
21299 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21300 callsite_arguments_match_p. Updated all callers. Also check types of
21301 corresponding formal parameters and actual arguments.
21302 (not_all_callers_have_enough_arguments_p) Renamed to
21303 some_callers_have_mismatched_arguments_p.
21305 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21307 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21309 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21312 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21315 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21317 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21318 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21320 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21321 Use FMAMODE_NOVF512 mode iterator.
21322 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21323 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21324 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21325 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21327 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21328 Use VF_128_256 mode iterator.
21329 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21332 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21334 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21335 static chain if needed.
21337 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21340 * lra-constraints.c (index_part_to_reg): New.
21341 (process_address): Use it.
21343 2014-03-27 Jeff Law <law@redhat.com>
21344 Jakub Jelinek <jakub@redhat.com>
21347 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21348 gen_rtx_{PLUS,MULT} to build up the address expression.
21350 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21351 creating non-canonical RTL.
21353 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21356 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21357 functions; reorganize to make cheap checks first.
21358 (inline_small_functions): Do not estimate growth when dumping;
21360 * ipa-inline.h (inline_summary): Add min_size.
21361 (growth_likely_positive): New function.
21362 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21363 (set_cond_stmt_execution_predicate): Cleanup.
21364 (estimate_edge_size_and_time): Compute min_size.
21365 (estimate_calls_size_and_time): Likewise.
21366 (estimate_node_size_and_time): Likewise.
21367 (inline_update_overall_summary): Update min_size.
21368 (do_estimate_edge_time): Likewise.
21369 (do_estimate_edge_size): Update.
21370 (do_estimate_edge_hints): Update.
21371 (growth_likely_positive): New function.
21373 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21376 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21377 also if addr has VOIDmode.
21379 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21381 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21382 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21384 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21385 instructions as well as AdvancedSIMD loads.
21387 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21389 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21390 Use crypto_aese type.
21391 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21392 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21393 crypto_aese, crypto_aesmc. Move to types.md.
21394 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21396 * config/arm/iterators.md (crypto_type): Likewise.
21398 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21400 * cgraph.c: Include expr.h and tree-dfa.h.
21401 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21404 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21407 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21408 regs from checking multi-reg pseudos.
21410 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21412 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21414 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21416 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21417 if it would clobber the stack pointer, even temporarily.
21419 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21421 * mode-switching.c: Make small adjustments to the top comment.
21423 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21425 * config/rs6000/constraints.md (wD constraint): New constraint to
21426 match the constant integer to get the top DImode/DFmode out of a
21427 vector in a VSX register.
21429 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21430 match the constant integer to get the top DImode/DFmode out of a
21431 vector in a VSX register.
21433 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21436 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21439 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21440 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21442 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21443 Optimize vec_extract of 64-bit values, where the value being
21444 extracted is in the top word, where we can use scalar
21445 instructions. Add direct move and store support. Combine the big
21446 endian/little endian vector select load support into a single insn.
21447 (vsx_extract_<mode>_internal1): Likewise.
21448 (vsx_extract_<mode>_internal2): Likewise.
21449 (vsx_extract_<mode>_load): Likewise.
21450 (vsx_extract_<mode>_store): Likewise.
21451 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21452 combined into vsx_extract_<mode>_load.
21453 (vsx_extract_<mode>_one_le): Likewise.
21455 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21456 define the top 64-bit vector element.
21458 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21461 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21462 Document vec_vbpermq builtin.
21465 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21466 enable use of xxsldwi and xxpermdi builtin functions.
21467 (vec_xxpermdi): Likewise.
21469 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21470 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21472 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21474 PR rtl-optimization/60650
21475 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21477 (find_spills_for): New.
21478 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21479 Spill all pseudos on the second iteration.
21481 2014-03-27 Marek Polacek <polacek@redhat.com>
21484 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21487 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21489 * config/s390/s390.c (s390_can_use_return_insn): Check for
21490 call-saved FPRs on 31 bit.
21492 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21494 PR middle-end/60682
21495 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21496 if they need regimplification, just drop them instead of
21497 calling gimple_regimplify_operands on them.
21499 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21502 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21503 (aarch64_frame_pointer_required): Adjust logic.
21504 (aarch64_can_eliminate): Adjust logic.
21505 (aarch64_override_options_after_change): Adjust logic.
21507 2014-03-27 Dehao Chen <dehao@google.com>
21509 * ipa-inline.c (early_inliner): Update node's inline info.
21511 2014-03-26 Dehao Chen <dehao@google.com>
21513 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21514 compiler inserted conditional jumps for NAN float check.
21516 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21518 * ubsan.h (ubsan_create_data): Change second argument's type
21519 to const location_t *.
21520 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21522 (ubsan_create_data): Change second argument to const location_t *PLOC.
21523 Create Loc field whenever PLOC is non-NULL.
21524 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21525 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21529 * real.c (real_to_integer2): Change type of low to UHWI.
21531 2014-03-26 Tobias Burnus <burnus@net-b.de>
21533 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21534 (CILK_SELF_SPECS): New define.
21535 (driver_self_specs): Use it.
21537 2014-03-26 Richard Biener <rguenther@suse.de>
21539 * tree-pretty-print.c (percent_K_format): Implement special
21540 case for LTO and its stripped down BLOCK tree.
21542 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21545 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21547 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21548 one range is range_int_cst_p, but not both, at least optimize
21549 addition/subtraction of 0 and multiplication by 0 or 1.
21550 * gimple-fold.c (gimple_fold_call): Fold
21551 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21552 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21553 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21555 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21557 PR rtl-optimization/60452
21558 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21559 <case REG>: Return 1 for invalid offsets from the frame pointer.
21561 2014-03-26 Marek Polacek <polacek@redhat.com>
21564 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21567 2014-03-26 Marek Polacek <polacek@redhat.com>
21570 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21573 2014-03-26 Marek Polacek <polacek@redhat.com>
21576 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21577 multiplication in unsigned type.
21579 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21581 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21583 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21585 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21587 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21590 * cif-code.def (UNREACHABLE) New code.
21591 * ipa-inline.c (inline_small_functions): Skip edges to
21592 __builtlin_unreachable.
21593 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21594 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21595 predicate to __bulitin_unreachable.
21596 (set_cond_stmt_execution_predicate): Fix issue when
21597 invert_tree_comparison returns ERROR_MARK.
21598 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21599 propagate to inline clones.
21600 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21602 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21603 * cgraphclones.c (cgraph_clone_node): If call destination is already
21604 ureachable, do not redirect it back.
21605 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21608 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21610 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21611 Do not modify inline clones.
21613 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21615 * config/i386/i386.md (general_sext_operand): New mode attr.
21616 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21617 don't generate (sign_extend (const_int)).
21618 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21619 operands[2]. Use We constraint instead of <i> and
21620 <general_sext_operand> predicate instead of <general_operand>.
21621 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21622 * config/i386/constraints.md (We): New constraint.
21623 * config/i386/predicates.md (x86_64_sext_operand,
21624 sext_operand): New predicates.
21626 2014-03-25 Martin Jambor <mjambor@suse.cz>
21629 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21630 inconsistent devirtualizations to __builtin_unreachable.
21632 2014-03-25 Marek Polacek <polacek@redhat.com>
21635 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21637 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21639 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21640 order of elements for big-endian.
21642 2014-03-25 Richard Biener <rguenther@suse.de>
21644 PR middle-end/60635
21645 * gimplify-me.c (gimple_regimplify_operands): Update the
21648 2014-03-25 Martin Jambor <mjambor@suse.cz>
21651 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21652 (lto_output_varpool_node): Likewise.
21653 (input_overwrite_node): Likewise.
21654 (input_varpool_node): Likewise.
21656 2014-03-25 Richard Biener <rguenther@suse.de>
21658 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21659 (run_gcc): Likewise.
21661 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21663 * combine.c (simplify_compare_const): Add MODE argument.
21664 Handle mode_width 0 as very large mode_width.
21665 (try_combine, simplify_comparison): Adjust callers.
21667 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21668 type to avoid signed integer overflow.
21669 * explow.c (plus_constant): Likewise.
21671 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21673 * doc/generic.texi: Correct typos.
21675 2014-03-24 Tobias Burnus <burnus@net-b.de>
21677 * doc/invoke.texi (-flto): Expand section about
21678 using static libraries with LTO.
21680 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21682 PR rtl-optimization/60501
21683 * optabs.def (addptr3_optab): New optab.
21684 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21685 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21686 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21688 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21690 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21692 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21694 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21697 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21698 (_mm256_undefined_ps): Define.
21699 (_mm256_undefined_pd): Define.
21700 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21701 (_mm_undefined_pd): Define.
21702 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21703 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21704 (_mm512_undefined_ps): Define.
21705 (_mm512_undefined_pd): Define.
21706 Use _mm*_undefined_*.
21707 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21709 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21711 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21712 (lshr_simd): DI mode added.
21713 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21714 (aarch64_ushr_simddi): Likewise.
21715 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21716 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21717 (vshrd_n_u64): Likewise.
21719 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21721 * Makefile.in (s-macro_list): Depend on cc1.
21723 2014-03-23 Teresa Johnson <tejohnson@google.com>
21725 * ipa-utils.c (ipa_print_order): Use specified dump file.
21727 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21729 PR rtl-optimization/60601
21730 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21732 * gcc.c (eval_spec_function): Initialize save_growing_value.
21734 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21737 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21738 code == MINUS_EXPR, never swap op0 with op1.
21740 * toplev.c (init_local_tick): Avoid signed integer multiplication
21742 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21743 shift by first operand's bitsize.
21745 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21748 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21749 redefine to 1 or 0.
21750 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21751 TARGET_ISA_64BIT_P(x).
21753 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21755 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21756 pattern for vector nor instead of subtract from splat(-1).
21757 (altivec_expand_vec_perm_const_le): Likewise.
21759 2014-03-21 Richard Henderson <rth@twiddle.net>
21762 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21763 related insns after epilogue_completed.
21765 2014-03-21 Martin Jambor <mjambor@suse.cz>
21768 * cgraph.h (symtab_node): New flag body_removed.
21769 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21770 when removing bodies.
21771 * symtab.c (dump_symtab_base): Dump body_removed flag.
21772 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21773 had their bodies removed.
21775 2014-03-21 Martin Jambor <mjambor@suse.cz>
21778 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21781 2014-03-21 Richard Biener <rguenther@suse.de>
21783 PR tree-optimization/60577
21784 * tree-core.h (struct tree_base): Document nothrow_flag use
21785 in DECL_NONALIASED.
21786 * tree.h (DECL_NONALIASED): New.
21787 (may_be_aliased): Adjust.
21788 * coverage.c (build_var): Set DECL_NONALIASED.
21790 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21792 * expr.c (expand_expr_real_1): Remove outdated comment.
21794 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21796 PR middle-end/60597
21797 * ira.c (adjust_cleared_regs): Call copy_rtx on
21798 *reg_equiv[REGNO (loc)].src_p before passing it to
21799 simplify_replace_fn_rtx.
21802 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21803 into CONST, put pic register as first operand of PLUS. Use
21804 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21806 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21808 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21810 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21812 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21813 around for store forwarding issue in the FPU on the UT699.
21814 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21815 loads and operations if -mfix-ut699 is specified.
21816 (divtf3_hq): Tweak attribute.
21817 (sqrttf2_hq): Likewise.
21819 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21821 * calls.c (store_one_arg): Remove incorrect const qualification on the
21822 type of the temporary.
21823 * cfgexpand.c (expand_return): Likewise.
21824 * expr.c (expand_constructor): Likewise.
21825 (expand_expr_real_1): Likewise.
21827 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21829 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21832 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21835 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21837 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21839 * config/arm/aarch-common-protos.h
21840 (alu_cost_table): Fix spelling of "extend".
21841 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21843 2014-03-19 Richard Biener <rguenther@suse.de>
21845 PR middle-end/60553
21846 * tree-core.h (tree_type_common): Re-order pointer members
21847 to reduce recursion depth during GC walks.
21849 2014-03-19 Marek Polacek <polacek@redhat.com>
21852 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21853 before accessing it.
21855 2014-03-19 Richard Biener <rguenther@suse.de>
21858 * lto-streamer-in.c (input_function): In WPA stage do not drop
21861 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21863 PR tree-optimization/60559
21864 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21865 with build_zero_cst assignment.
21867 2014-03-18 Kai Tietz <ktietz@redhat.com>
21869 PR rtl-optimization/56356
21870 * sdbout.c (sdbout_parms): Verify that parms'
21871 incoming argument is valid.
21872 (sdbout_reg_parms): Likewise.
21874 2014-03-18 Richard Henderson <rth@redhat.com>
21877 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21878 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21879 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21881 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21883 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21884 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21885 Italicize plugin event names in description. Explain that
21886 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21887 Remind that no GCC functions should be called after PLUGIN_FINISH.
21888 Explain what pragmas with expansion are.
21890 2014-03-18 Martin Liska <mliska@suse.cz>
21892 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21893 gimple call statement is update.
21894 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21895 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21897 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21900 * ubsan.c (ubsan_instrument_unreachable): Call
21901 initialize_sanitizer_builtins.
21902 (ubsan_pass): Likewise.
21905 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21906 varpool_finalize_decl instead of rest_of_decl_compilation.
21908 2014-03-18 Richard Biener <rguenther@suse.de>
21910 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21911 by using bitmap_and_compl instead of bitmap_and_compl_into.
21912 (df_rd_transfer_function): Likewise.
21914 2014-03-18 Richard Biener <rguenther@suse.de>
21916 * doc/lto.texi (fresolution): Fix typo.
21918 2014-03-18 Richard Biener <rguenther@suse.de>
21920 * doc/invoke.texi (flto): Update for changes in 4.9.
21922 2014-03-18 Richard Biener <rguenther@suse.de>
21924 * doc/loop.texi: Remove section on the removed lambda framework.
21925 Update loop docs with recent changes in preserving loop structure.
21927 2014-03-18 Richard Biener <rguenther@suse.de>
21929 * doc/lto.texi (-fresolution): Document.
21931 2014-03-18 Richard Biener <rguenther@suse.de>
21933 * doc/contrib.texi: Adjust my name.
21935 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21938 * internal-fn.c: Include diagnostic-core.h.
21939 (expand_BUILTIN_EXPECT): New function.
21940 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21941 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21942 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21943 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21944 IFN_BUILTIN_EXPECT.
21945 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21946 Revert 3 argument __builtin_expect code.
21947 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21948 * gimple-fold.c (gimple_fold_call): Likewise.
21949 * tree.h (fold_builtin_expect): New prototype.
21950 * builtins.c (build_builtin_expect_predicate): Add predictor
21951 argument, if non-NULL, create 3 argument __builtin_expect.
21952 (fold_builtin_expect): No longer static. Add ARG2 argument,
21953 pass it through to build_builtin_expect_predicate.
21954 (fold_builtin_2): Adjust caller.
21955 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21956 * internal-fn.def (BUILTIN_EXPECT): New.
21958 2014-03-18 Tobias Burnus <burnus@net-b.de>
21961 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21962 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21963 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21965 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21968 * predict.c (combine_predictions_for_bb): Fix up formatting.
21969 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21970 fill what it points to if non-NULL.
21971 (tree_predict_by_opcode): Adjust caller, use the predictor.
21972 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21974 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21976 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21977 proper constant for the store mode.
21979 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21981 * symtab.c (change_decl_assembler_name): Fix transparent alias
21982 chain construction.
21984 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21986 * config/aarch64/aarch64.c: Correct the comments about the
21987 aarch64 stack layout.
21989 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21991 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21992 check for GF_OMP_FOR_KIND_FOR.
21994 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21996 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21997 ymm and zmm register names.
21999 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22002 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22003 note creation for the 2010-08-31 changes.
22005 2014-03-17 Marek Polacek <polacek@redhat.com>
22007 PR middle-end/60534
22008 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22009 as -fno-tree-loop-vectorize.
22010 (expand_omp_simd): Likewise.
22012 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22014 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22015 (eligible_for_call_delay): New prototype.
22016 * config/sparc/sparc.c (tls_call_delay): Rename into...
22017 (eligible_for_call_delay): ...this. Return false if the instruction
22018 cannot be put in the delay slot of a branch.
22019 (eligible_for_restore_insn): Simplify.
22020 (eligible_for_return_delay): Return false if the instruction cannot be
22021 put in the delay slot of a branch and simplify.
22022 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22023 put in the delay slot of a branch.
22024 * config/sparc/sparc.md (fix_ut699): New attribute.
22025 (tls_call_delay): Delete.
22026 (in_call_delay): Reimplement.
22027 (eligible_for_sibcall_delay): Rename into...
22028 (in_sibcall_delay): ...this.
22029 (eligible_for_return_delay): Rename into...
22030 (in_return_delay): ...this.
22031 (in_branch_delay): Reimplement.
22032 (in_uncond_branch_delay): Delete.
22033 (in_annul_branch_delay): Delete.
22035 2014-03-14 Richard Henderson <rth@redhat.com>
22038 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22039 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22040 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22041 (floathi splitters): Remove.
22042 (float<SWI48x>xf2): New pattern.
22043 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22044 code that tried to handle DImode for 32-bit, but which was excluded
22045 by the pattern's condition. Drop allocation of stack temporary.
22046 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22047 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22048 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22049 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22050 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22051 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22052 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22053 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22054 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22055 (*float<SWI48x><X87MODEF>2_i387): Remove.
22056 (all float _with_temp splitters): Remove.
22057 (*float<SWI48x><MODEF>2_i387): New pattern.
22058 (*float<SWI48><MODEF>2_sse): New pattern.
22059 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22060 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22062 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22063 Marek Polacek <polacek@redhat.com>
22065 PR middle-end/60484
22066 * common.opt (dump_base_name_prefixed): New Variable.
22067 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22068 if x_dump_base_name_prefixed is already set, set it at the end.
22070 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22072 PR rtl-optimization/60508
22073 * lra-constraints.c (get_reload_reg): Add new parameter
22075 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22076 Pass the new parameter values.
22078 2014-03-14 Richard Biener <rguenther@suse.de>
22080 * common.opt: Revert unintented changes from r205065.
22081 * opts.c: Likewise.
22083 2014-03-14 Richard Biener <rguenther@suse.de>
22085 PR middle-end/60518
22086 * cfghooks.c (split_block): Properly adjust all loops the
22087 block was a latch of.
22089 2014-03-14 Martin Jambor <mjambor@suse.cz>
22092 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22095 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22098 * config/avr/avr.c (avr_set_current_function): Pass function name
22099 through default_strip_name_encoding before sanity checking instead
22100 of skipping the first char of the assembler name.
22102 2014-03-13 Richard Henderson <rth@redhat.com>
22105 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22106 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22107 * config/i386/i386-protos.h: Likewise.
22108 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22109 in the expander instead of a splitter.
22110 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22111 any possibility of requiring a memory.
22112 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22113 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22114 (fp branch splitters): Update for ix86_split_fp_branch.
22115 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22116 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22117 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22118 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22119 (*fop_<MODEF>_3_i387): Likewise.
22120 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22121 (splitters for the fop_* register patterns): Remove.
22122 (fscalexf4_i387): Rename from *fscalexf4_i387.
22123 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22125 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22127 PR tree-optimization/59779
22128 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22129 type for bitsize and maxsize instead of HOST_WIDE_INT.
22131 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22133 PR rtl-optimization/57320
22134 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22135 the CFG after thread_prologue_and_epilogue_insns.
22137 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22139 PR rtl-optimization/57189
22140 * lra-constraints.c (process_alt_operands): Disfavor spilling
22143 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22145 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22147 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22149 PR tree-optimization/59025
22150 PR middle-end/60418
22151 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22152 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22154 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22157 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22158 calls of avr_out_plus_1.
22160 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22162 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22163 BB's single pred and update the father loop's latch info later.
22165 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22167 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22171 (VEC_base): Likewise.
22172 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22173 registers, we need to swap double words in little endian mode.
22175 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22176 to be a container mode for 128-bit integer operations added in ISA
22177 2.07. Unlike TImode and PTImode, the preferred register set is
22178 the Altivec/VMX registers for the 128-bit operations.
22180 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22182 (rs6000_split_128bit_ok_p): Likewise.
22184 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22185 macros for creating ISA 2.07 normal and overloaded builtin
22186 functions with 3 arguments.
22187 (BU_P8V_OVERLOAD_3): Likewise.
22188 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22189 for use as overloaded functions.
22190 (VPERM_1TI_UNS): Likewise.
22191 (VSEL_1TI): Likewise.
22192 (VSEL_1TI_UNS): Likewise.
22193 (ST_INTERNAL_1ti): Likewise.
22194 (LD_INTERNAL_1ti): Likewise.
22195 (XXSEL_1TI): Likewise.
22196 (XXSEL_1TI_UNS): Likewise.
22197 (VPERM_1TI): Likewise.
22198 (VPERM_1TI_UNS): Likewise.
22199 (XXPERMDI_1TI): Likewise.
22200 (SET_1TI): Likewise.
22201 (LXVD2X_V1TI): Likewise.
22202 (STXVD2X_V1TI): Likewise.
22203 (VEC_INIT_V1TI): Likewise.
22204 (VEC_SET_V1TI): Likewise.
22205 (VEC_EXT_V1TI): Likewise.
22206 (EQV_V1TI): Likewise.
22207 (NAND_V1TI): Likewise.
22208 (ORC_V1TI): Likewise.
22209 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22210 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22211 overloaded builtin.
22212 (VADDUQM): Likewise.
22213 (VSUBCUQ): Likewise.
22214 (VADDEUQM): Likewise.
22215 (VADDECUQ): Likewise.
22216 (VSUBEUQM): Likewise.
22217 (VSUBECUQ): Likewise.
22219 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22220 __int128_t and __uint128_t types.
22221 (__uint128_type): Likewise.
22222 (altivec_categorize_keyword): Add support for vector __int128_t,
22223 vector __uint128_t, vector __int128, and vector unsigned __int128
22224 as a container type for TImode operations that need to be done in
22225 VSX/Altivec registers.
22226 (rs6000_macro_to_expand): Likewise.
22227 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22228 to support 128-bit integer instructions vaddcuq, vadduqm,
22229 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22230 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22232 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22233 for V1TImode, and set up preferences to use VSX/Altivec registers.
22234 Setup VSX reload handlers.
22235 (rs6000_debug_reg_global): Likewise.
22236 (rs6000_init_hard_regno_mode_ok): Likewise.
22237 (rs6000_preferred_simd_mode): Likewise.
22238 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22239 (easy_altivec_constant): Likewise.
22240 (output_vec_const_move): Likewise.
22241 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22243 (rs6000_expand_vector_extract): Likewise.
22244 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22246 (rs6000_const_vec): Add support for V1TImode.
22247 (rs6000_emit_le_vsx_load): Swap double words when loading or
22248 storing TImode/V1TImode.
22249 (rs6000_emit_le_vsx_store): Likewise.
22250 (rs6000_emit_le_vsx_move): Likewise.
22251 (rs6000_emit_move): Add support for V1TImode.
22252 (altivec_expand_ld_builtin): Likewise.
22253 (altivec_expand_st_builtin): Likewise.
22254 (altivec_expand_vec_init_builtin): Likewise.
22255 (altivec_expand_builtin): Likewise.
22256 (rs6000_init_builtins): Add support for V1TImode type. Add
22257 support for ISA 2.07 128-bit integer builtins. Define type names
22258 for the VSX/Altivec vector types.
22259 (altivec_init_builtins): Add support for overloaded vector
22260 functions with V1TImode type.
22261 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22262 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22264 (rs6000_split_128bit_ok_p): Likewise.
22265 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22266 __int128_t and vector __uint128_t.
22268 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22269 and mode attributes.
22271 (VSX_M2): Likewise.
22276 (VS_scalar): Likewise.
22277 (VS_double): Likewise.
22278 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22280 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22281 we support the ISA 2.07 128-bit integer arithmetic instructions.
22282 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22283 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22284 and TImode types for use with the builtin functions.
22285 (V1TI_type_node): Likewise.
22286 (unsigned_V1TI_type_node): Likewise.
22287 (intTI_type_internal_node): Likewise.
22288 (uintTI_type_internal_node): Likewise.
22290 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22291 128-bit builtin functions.
22292 (UNSPEC_VADDEUQM): Likewise.
22293 (UNSPEC_VADDECUQ): Likewise.
22294 (UNSPEC_VSUBCUQ): Likewise.
22295 (UNSPEC_VSUBEUQM): Likewise.
22296 (UNSPEC_VSUBECUQ): Likewise.
22297 (VM): Add V1TImode to vector mode iterators.
22299 (VI_unit): Likewise.
22300 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22301 (altivec_vaddcuq): Likewise.
22302 (altivec_vsubuqm): Likewise.
22303 (altivec_vsubcuq): Likewise.
22304 (altivec_vaddeuqm): Likewise.
22305 (altivec_vaddecuq): Likewise.
22306 (altivec_vsubeuqm): Likewise.
22307 (altivec_vsubecuq): Likewise.
22309 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22311 (BOOL_128): Likewise.
22312 (BOOL_REGS_OUTPUT): Likewise.
22313 (BOOL_REGS_OP1): Likewise.
22314 (BOOL_REGS_OP2): Likewise.
22315 (BOOL_REGS_UNARY): Likewise.
22316 (BOOL_REGS_AND_CR0): Likewise.
22318 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22319 128-bit integer builtin support.
22320 (vec_vadduqm): Likewise.
22321 (vec_vaddecuq): Likewise.
22322 (vec_vaddeuqm): Likewise.
22323 (vec_vsubecuq): Likewise.
22324 (vec_vsubeuqm): Likewise.
22325 (vec_vsubcuq): Likewise.
22326 (vec_vsubuqm): Likewise.
22328 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22329 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22330 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22331 128-bit integer add/subtract to ISA 2.07.
22333 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22335 * config/arc/arc.c (arc_predicate_delay_insns):
22336 Fix third argument passed to conditionalize_nonjump.
22338 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22340 * config/aarch64/aarch64-builtins.c
22341 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22342 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22343 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22344 instead of __builtin_lfloor.
22345 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22347 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22349 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22350 (tree_ssa_ifcombine_bb_1): New function.
22351 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22352 is an empty forwarder block to then_bb or vice versa and then_bb
22353 and else_bb are effectively swapped.
22355 2014-03-12 Christian Bruel <christian.bruel@st.com>
22358 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22359 REG_CFA_DEF_CFA note.
22360 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22361 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22363 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22365 PR tree-optimization/60454
22366 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22368 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22370 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22371 Do not define target_cpu_default2 to generic.
22372 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22373 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22374 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22376 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22377 Marc Glisse <marc.glisse@inria.fr>
22379 PR tree-optimization/60502
22380 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22381 instead of build_low_bits_mask.
22383 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22385 PR middle-end/60482
22386 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22387 if there are multiple uses, but op doesn't live on E edge.
22388 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22389 clobber stmts before __builtin_unreachable.
22391 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22393 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22394 hard_frame_pointer_rtx.
22395 * cse.c (cse_insn): Remove volatile check.
22396 * cselib.c (cselib_process_insn): Likewise.
22397 * dse.c (scan_insn): Likewise.
22399 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22401 * config/arc/arc.c (conditionalize_nonjump): New function,
22403 (arc_ifcvt): ... this.
22404 (arc_predicate_delay_insns): Use it.
22406 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22408 * config/arc/predicates.md (extend_operand): During/after reload,
22409 allow const_int_operand.
22410 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22411 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22412 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22414 (umulsi3_highpart_i): Likewise.
22416 2014-03-11 Richard Biener <rguenther@suse.de>
22418 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22419 Add asserts to guard possible wrong-code bugs.
22421 2014-03-11 Richard Biener <rguenther@suse.de>
22423 PR tree-optimization/60429
22424 PR tree-optimization/60485
22425 * tree-ssa-structalias.c (set_union_with_increment): Properly
22426 take into account all fields that overlap the shifted vars.
22427 (do_sd_constraint): Likewise.
22428 (do_ds_constraint): Likewise.
22429 (get_constraint_for_ptr_offset): Likewise.
22431 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22433 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22434 (nios2_compute_frame_layout):
22435 Add calculation of cfun->machine->fp_save_offset.
22436 (nios2_expand_prologue): Correct setting of frame pointer register
22438 (nios2_expand_epilogue): Update recovery of stack pointer from
22439 frame pointer accordingly.
22440 (nios2_initial_elimination_offset): Update calculation of offset
22441 for eliminating to HARD_FRAME_POINTER_REGNUM.
22443 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22446 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22447 cgraph_get_create_node on VAR_DECLs.
22449 2014-03-10 Richard Biener <rguenther@suse.de>
22451 PR middle-end/60474
22452 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22454 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22456 * config/vms/vms.opt (vms_float_format): New variable.
22458 2014-03-08 Tobias Burnus <burnus@net-b.de>
22460 * doc/invoke.texi (-fcilkplus): Update implementation status.
22462 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22463 Richard Biener <rguenther@suse.de>
22465 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22466 consistently accross all TUs.
22467 (run_gcc): Enable -fshort-double automatically at link at link-time
22468 and disallow override.
22470 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22473 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22474 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22475 if they can't be used.
22477 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22479 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22480 for Solaris 11/x86 ld.
22481 * configure: Regenerate.
22483 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22485 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22486 (LIB_TLS_SPEC): Save as ld_tls_libs.
22487 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22488 (HAVE_AS_IX86_TLSLDM): New test.
22489 * configure, config.in: Regenerate.
22490 * config/i386/i386.c (legitimize_tls_address): Fall back to
22491 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22492 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22493 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22494 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22496 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22498 * common.opt (fira-loop-pressure): Mark as optimization.
22500 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22502 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22503 an OpenMP mappable type.
22505 2014-03-06 Matthias Klose <doko@ubuntu.com>
22507 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22508 MULTILIB_OSDIRNAMES is not defined.
22510 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22511 Meador Inge <meadori@codesourcery.com>
22514 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22515 (arm_legitimize_address): Call legitimize_tls_address for any
22516 arm_tls_referenced_p expression, handle constant addend. Call it
22517 before testing for !TARGET_ARM.
22518 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22520 2014-03-06 Richard Biener <rguenther@suse.de>
22522 PR middle-end/60445
22526 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22528 * tree-streamer.c (record_common_node): Assert we don't record
22529 nodes with type double.
22530 (preload_common_node): Skip type double, complex double and double
22531 pointer since it is now frontend dependent due to fshort-double option.
22533 2014-03-06 Richard Biener <rguenther@suse.de>
22535 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22536 or -fno-lto is specified and the linker has full plugin support.
22537 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22538 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22539 * lto-wrapper.c (merge_and_complain): Merge compile-time
22540 optimization levels.
22541 (run_gcc): And pass it through to the link options.
22543 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22547 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22549 * cselib.c (remove_useless_values): Skip to avoid quadratic
22550 behavior if the condition moved from...
22551 (cselib_process_insn): ... here holds.
22553 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22556 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22557 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22560 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22561 (TM_H): Add x86-tune.def.
22563 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22565 * config/aarch64/aarch64.c (generic_tunings):
22566 Use cortexa57_extra_costs.
22568 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22571 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22572 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22573 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22576 2014-03-04 Heiher <r@hev.cc>
22578 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22579 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22581 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22583 * config/i386/predicates.md (const2356_operand): Change to ...
22584 (const2367_operand): ... this.
22585 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22587 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22588 (*avx512pf_scatterpf<mode>sf): Ditto.
22589 (avx512pf_scatterpf<mode>df): Ditto.
22590 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22591 (*avx512pf_scatterpf<mode>df): Ditto.
22592 * config/i386/i386.c (ix86_expand_builtin): Update
22593 incorrect hint operand error message.
22595 2014-03-04 Richard Biener <rguenther@suse.de>
22597 * lto-section-in.c (lto_get_section_data): Fix const cast.
22599 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22601 * tree-streamer.c (record_common_node): Assert we don't record
22602 nodes with type double.
22603 (preload_common_node): Skip type double, complex double and double
22604 pointer since it is now frontend dependent due to fshort-double option.
22606 2014-03-04 Richard Biener <rguenther@suse.de>
22609 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22610 (lto_input_toplevel_asms): Likewise.
22611 * lto-section-in.c (lto_get_section_data): Instead do it here
22614 2014-03-04 Richard Biener <rguenther@suse.de>
22616 PR tree-optimization/60382
22617 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22618 dead PHIs a reduction.
22620 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22622 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22624 (_mm_prefetch): Move out of GCC target("sse") pragma.
22625 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22626 GCC target("prfchw") pragma.
22627 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22629 * config/i386/i386.c (ix86_option_override_internal): Enable
22630 -mprfchw with -mprefetchwt1.
22632 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22634 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22637 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22639 * opts.h (CL_PCH_IGNORE): Define.
22640 * targhooks.c (option_affects_pch_p):
22641 Return false for options that have CL_PCH_IGNORE set.
22642 * opt-functions.awk: Process PchIgnore.
22643 * doc/options.texi: Document PchIgnore.
22645 * config/arc/arc.opt (misize): Add PchIgnore property.
22647 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22649 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22650 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22651 constraint on constants to permit them being loaded into
22652 GENERAL_REGS or BASE_REGS.
22654 2014-03-03 Nick Clifton <nickc@redhat.com>
22656 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22657 anti-cacnonical alternatives.
22658 (negandhi3_real): New pattern.
22659 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22661 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22663 * config/avr/avr-mcus.def: Remove atxmega16x1.
22664 * config/avr/avr-tables.opt: Regenerate.
22665 * config/avr/t-multilib: Regenerate.
22666 * doc/avr-mmcu.texi: Regenerate.
22668 2014-03-03 Tobias Grosser <tobias@grosser.es>
22669 Mircea Namolaru <mircea.namolaru@inria.fr>
22671 PR tree-optimization/58028
22672 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22675 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22677 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22678 not handled by recognizers.
22680 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22682 PR middle-end/60175
22683 * function.c (expand_function_end): Don't emit
22684 clobber_return_register sequence if clobber_after is a BARRIER.
22685 * cfgexpand.c (construct_exit_block): Append instructions before
22686 return_label to prev_bb.
22688 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22690 * config/rs6000/constraints.md: Document reserved use of "wc".
22692 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22695 * ipa.c (function_and_variable_visibility): When dissolving comdat
22696 group, also set all symbols to local.
22698 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22703 2013-12-14 Jan Hubicka <jh@suse.cz>
22704 PR middle-end/58477
22705 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22707 2014-03-02 Jon Beniston <jon@beniston.com>
22713 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22714 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22715 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22716 (simple_return, *simple_return): New patterns
22717 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22718 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22720 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22722 * dwarf2out.c (gen_subprogram_die): Tidy.
22724 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22727 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22728 (*mov_t_msb_neg_negc): ... this new insn.
22730 2014-02-28 Jason Merrill <jason@redhat.com>
22733 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22736 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22739 * dwarf2out.c (decltype_auto_die): New static.
22740 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22741 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22742 (is_cxx_auto): Likewise.
22744 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22746 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22747 we are not using general regs only.
22749 2014-02-28 Richard Biener <rguenther@suse.de>
22752 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22753 previous fix and only allow to remove trivial pre-headers
22754 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22755 (remove_forwarder_block): Properly update the latch of a loop.
22757 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22760 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22761 (cselib_preserved_hash_table): New.
22762 (preserve_constants_and_equivs): Move preserved vals to it.
22763 (cselib_find_slot): Look it up first.
22764 (cselib_init): Initialize it.
22765 (cselib_finish): Release it.
22766 (dump_cselib_table): Dump it.
22768 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22771 * cselib.c (remove_useless_values): Skip to avoid quadratic
22772 behavior if the condition moved from...
22773 (cselib_process_insn): ... here holds.
22775 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22778 * var-tracking.c (vt_initialize): Apply the same condition to
22779 preserve the CFA base value.
22781 2014-02-28 Joey Ye <joey.ye@arm.com>
22784 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22785 if reload in progress or completed.
22787 2014-02-28 Tobias Burnus <burnus@net-b.de>
22789 PR middle-end/60147
22790 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22793 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22795 * doc/tm.texi.in (Condition Code Status): Update documention for
22796 relative locations of cc0-setter and cc0-user.
22798 2014-02-27 Jeff Law <law@redhat.com>
22800 PR rtl-optimization/52714
22801 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22802 into two independent simple sets, if I3 is a jump, ensure the
22803 pattern we place into I3 is a (set (pc) ...).
22805 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22806 Jeff Law <law@redhat.com>
22808 PR rtl-optimization/49847
22809 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22810 are in different blocks.
22811 * doc/tm.texi (Condition Code Status): Update documention for
22812 relative locations of cc0-setter and cc0-user.
22814 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22817 * lra.c (lra_emit_add): Check SUBREG too.
22819 2014-02-27 Andreas Schwab <schwab@suse.de>
22821 * config/m68k/m68k.c (m68k_option_override): Disable
22822 -flive-range-shrinkage for classic m68k.
22823 (m68k_override_options_after_change): Likewise.
22825 2014-02-27 Marek Polacek <polacek@redhat.com>
22827 PR middle-end/59223
22828 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22829 -Wmaybe-uninitialized.
22831 2014-02-27 Alan Modra <amodra@gmail.com>
22834 * reload1.c (emit_input_reload_insns): When reload_override_in,
22835 set old to rl->in_reg when rl->in_reg is a subreg.
22837 2014-02-26 Richard Biener <rguenther@suse.de>
22840 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22842 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22844 * common/config/i386/predicates.md (const1256_operand): Remove.
22845 (const2356_operand): New.
22846 (const_1_to_2_operand): Remove.
22847 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22848 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22849 (*avx512pf_gatherpf<mode>sf): Ditto.
22850 (avx512pf_gatherpf<mode>df): Ditto.
22851 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22852 (*avx512pf_gatherpf<mode>df): Ditto.
22853 (avx512pf_scatterpf<mode>sf): Ditto.
22854 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22855 (*avx512pf_scatterpf<mode>sf): Ditto.
22856 (avx512pf_scatterpf<mode>df): Ditto.
22857 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22858 (*avx512pf_scatterpf<mode>df): Ditto.
22859 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22861 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22863 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22864 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22865 (_mm512_mask_testn_epi64_mask): Move to ...
22866 * config/i386/avx512cdintrin.h: Here.
22867 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22868 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22869 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22870 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22871 TARGET_AVX512F from TARGET_AVX512CD.
22873 2014-02-26 Richard Biener <rguenther@suse.de>
22876 * ipa.c (walk_polymorphic_call_targets): Properly guard
22877 call to inline_update_overall_summary.
22879 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22882 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22883 and latches only if requested. Fix latch if it is removed.
22884 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22885 LOOPS_HAVE_PREHEADERS.
22887 2014-02-25 Andrew Pinski <apinski@cavium.com>
22889 * builtins.c (expand_builtin_thread_pointer): Create a new target
22890 when the target is NULL.
22892 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22894 PR rtl-optimization/60317
22895 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22896 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22897 * lra-assigns.c: Include params.h.
22898 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22899 other reload pseudos considerations.
22901 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22903 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22904 to use canonical form for nor<mode>3.
22906 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22909 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22912 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22914 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22915 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22916 (ix86_handle_option): Handle OPT_mprefetchwt1.
22917 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22918 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22920 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22921 OPTION_MASK_ISA_PREFETCHWT1.
22922 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22923 (PTA_PREFETCHWT1): New.
22924 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22925 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22926 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22927 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22928 (*prefetch_avx512pf_<mode>_: Change into ...
22929 (*prefetch_prefetchwt1_<mode>: This.
22930 * config/i386/i386.opt (mprefetchwt1): New.
22931 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22932 (_mm_prefetch): Handle intent to write.
22933 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22935 2014-02-25 Richard Biener <rguenther@suse.de>
22937 PR middle-end/60291
22938 * emit-rtl.c (mem_attrs_htab): Remove.
22939 (mem_attrs_htab_hash): Likewise.
22940 (mem_attrs_htab_eq): Likewise.
22941 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22942 (init_emit_once): Do not allocate mem_attrs_htab.
22944 2014-02-25 Richard Biener <rguenther@suse.de>
22947 * lto-opts.c (lto_write_options): Output non-explicit conservative
22948 -fwrapv, -fno-trapv and -fno-strict-overflow.
22949 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22950 (run_gcc): And pass them through.
22952 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22954 * sel-sched.c (calculate_new_fences): New parameter ptime.
22955 Calculate it as a maximum over all fence cycles.
22956 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22957 Print the final schedule timing when sched_verbose.
22959 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22961 PR rtl-optimization/60292
22962 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22963 bit fot the fence instruction.
22965 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22967 * calls.h: Fix typo in comment.
22969 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22971 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22972 adjusting offsetable addresses.
22974 2014-02-24 Guozhi Wei <carrot@google.com>
22976 * sparseset.h (sparseset_pop): Fix the wrong index.
22978 2014-02-24 Walter Lee <walt@tilera.com>
22980 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22981 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22983 * common/config/tilegx/tilegx-common.c
22984 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22985 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22986 (LINK_SPEC): Ditto.
22987 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22988 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22989 (tilegx_gimplify_va_arg_expr): Handle big endian.
22990 (tilegx_expand_unaligned_load): Ditto.
22991 (tilegx_expand_unaligned_store): Ditto.
22992 (TARGET_RETURN_IN_MSB): New.
22993 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22994 (TARGET_ENDIAN_DEFAULT): New.
22995 (TARGET_BIG_ENDIAN): Handle big endian.
22996 (BYTES_BIG_ENDIAN): Ditto.
22997 (WORDS_BIG_ENDIAN): Ditto.
22998 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22999 (ENDIAN_SPEC): New.
23000 (EXTRA_SPECS): New.
23001 * config/tilegx/tilegx.md (extv): Handle big endian.
23003 (insn_st<n>): Ditto.
23004 (insn_st<n>_add<bitsuffix>): Ditto.
23005 (insn_stnt<n>): Ditto.
23006 (insn_stnt<n>_add<bitsuffix>):Ditto.
23007 (vec_interleave_highv8qi): Handle big endian.
23008 (vec_interleave_highv8qi_be): New.
23009 (vec_interleave_highv8qi_le): New.
23010 (insn_v1int_h): Handle big endian.
23011 (vec_interleave_lowv8qi): Handle big endian.
23012 (vec_interleave_lowv8qi_be): New.
23013 (vec_interleave_lowv8qi_le): New.
23014 (insn_v1int_l): Handle big endian.
23015 (vec_interleave_highv4hi): Handle big endian.
23016 (vec_interleave_highv4hi_be): New.
23017 (vec_interleave_highv4hi_le): New.
23018 (insn_v2int_h): Handle big endian.
23019 (vec_interleave_lowv4hi): Handle big endian.
23020 (vec_interleave_lowv4hi_be): New.
23021 (vec_interleave_lowv4hi_le): New.
23022 (insn_v2int_l): Handle big endian.
23023 (vec_interleave_highv2si): Handle big endian.
23024 (vec_interleave_highv2si_be): New.
23025 (vec_interleave_highv2si_le): New.
23026 (insn_v4int_h): Handle big endian.
23027 (vec_interleave_lowv2si): Handle big endian.
23028 (vec_interleave_lowv2si_be): New.
23029 (vec_interleave_lowv2si_le): New.
23030 (insn_v4int_l): Handle big endian.
23031 * config/tilegx/tilegx.opt (mbig-endian): New option.
23032 (mlittle-endian): New option.
23033 * doc/install.texi: Document tilegxbe-linux.
23034 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23036 2014-02-24 Martin Jambor <mjambor@suse.cz>
23039 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23040 there are no parameter descriptors.
23042 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23044 PR rtl-optimization/60268
23045 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23046 initialization to ...
23047 (sched_rgn_init): ... here.
23048 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23050 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23052 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23055 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23057 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23060 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23062 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23063 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23065 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23067 * config/microblaze/predicates.md: Add cmp_op predicate.
23068 * config/microblaze/microblaze.md: Add branch_compare instruction
23069 which uses cmp_op predicate and emits cmp insn before branch.
23070 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23071 to microblaze_expand_conditional_branch and consolidate logic.
23072 (microblaze_expand_conditional_branch): emit branch_compare
23073 insn instead of handling cmp op separate from branch insn.
23075 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23077 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23080 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23082 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23083 define_insn with define_expand and new define_insn
23084 *altivec_lve<VI_char>x_internal.
23085 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23086 and new define_insn *altivec_stve<VI_char>x_internal.
23087 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23089 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23091 (altivec_expand_stvex_be): New function.
23093 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23095 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23096 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23097 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23098 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23100 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23103 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23104 instead of emit_move_insn.
23106 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23108 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23109 vspltw with vsldoi.
23110 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23111 gen_altivec_vsumsws.
23113 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23115 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23116 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23117 (altivec_lvxl_<mode>): New define_expand incorporating
23118 -maltivec=be semantics where needed.
23119 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23120 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23121 semantics where needed.
23122 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23123 (altivec_stvx_<mode>): New define_expand incorporating
23124 -maltivec=be semantics where needed.
23125 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23126 VM2 iterator instead of V4SI.
23127 (altivec_stvxl_<mode>): New define_expand incorporating
23128 -maltivec=be semantics where needed.
23129 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23130 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23131 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23132 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23133 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23134 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23135 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23136 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23137 ALTIVEC_BUILTIN_STVXL.
23138 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23139 (altivec_expand_stvx_be): Likewise.
23140 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23141 (altivec_expand_lvx_be): Likewise.
23142 (altivec_expand_stvx_be): Likewise.
23143 (altivec_expand_builtin): Add cases for
23144 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23145 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23146 (altivec_init_builtins): Add definitions for
23147 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23148 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23150 2014-02-21 Catherine Moore <clm@codesourcery.com>
23152 * doc/invoke.texi (mvirt, mno-virt): Document.
23153 * config/mips/mips.opt (mvirt): New option.
23154 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23156 2014-02-21 Richard Biener <rguenther@suse.de>
23158 PR tree-optimization/60276
23159 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23160 (STMT_VINFO_MIN_NEG_DIST): New macro.
23161 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23162 STMT_VINFO_MIN_NEG_DIST.
23163 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23164 made for negative dependence distances still hold.
23166 2014-02-21 Richard Biener <rguenther@suse.de>
23168 PR middle-end/60291
23169 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23170 DECL_INITIAL for globals not in the current function context.
23172 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23174 PR tree-optimization/56490
23175 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23176 * tree-ssa-uninit.c: Include params.h.
23177 (compute_control_dep_chain): Add num_calls argument, return false
23178 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23179 num_calls to recursive call.
23180 (find_predicates): Change dep_chain into normal array,
23181 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23182 variable and adjust compute_control_dep_chain caller.
23183 (find_def_preds): Likewise.
23185 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23187 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23188 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23190 2014-02-21 Nick Clifton <nickc@redhat.com>
23192 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23193 (pushhi1): Likewise.
23194 (popqi1): Add mode to pre_dec.
23195 (pophi1): Likewise.
23197 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23199 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23200 mode for mask of V8SFmode permutation.
23202 2014-02-20 Richard Henderson <rth@redhat.com>
23205 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23206 a new pseudo for OLDVAL.
23208 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23211 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23212 gen_reg_rtx if d->testing_p.
23213 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23214 if d->testing_p and we will certainly return true.
23215 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23218 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23220 * emit-rtl.c (gen_reg_rtx): Assert that
23221 crtl->emit.regno_pointer_align_length is non-zero.
23223 2014-02-20 Richard Henderson <rth@redhat.com>
23226 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23227 on failure the store back into EXPECT.
23229 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23230 Sandra Loosemore <sandra@codesourcery.com>
23232 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23233 * config/nios2/nios2.c (nios2_function_profiler): Add
23234 -fPIC (flag_pic == 2) support.
23235 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23236 (nios2_large_offset_p): New function.
23237 (nios2_unspec_reloc_p): Move up position, update to use
23238 nios2_large_offset_p.
23239 (nios2_unspec_address): Remove function.
23240 (nios2_unspec_offset): New function.
23241 (nios2_large_got_address): New function.
23242 (nios2_got_address): Add large offset support.
23243 (nios2_legitimize_tls_address): Update usage of removed and new
23245 (nios2_symbol_binds_local_p): New function.
23246 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23247 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23248 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23249 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23250 processing for (const (unspec ...)).
23251 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23253 2014-02-20 Richard Biener <rguenther@suse.de>
23255 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23256 doing the substitution.
23257 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23259 2014-02-20 Martin Jambor <mjambor@suse.cz>
23262 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23263 info when checking whether lattices are bottom.
23265 2014-02-20 Richard Biener <rguenther@suse.de>
23267 PR middle-end/60221
23268 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23271 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23274 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23275 parameter specifying the scaling.
23276 (inline_call): Update.
23277 (want_inline_recursively): Guard division by zero.
23278 (recursive_inlining): Update.
23279 * ipa-inline.h (clone_inlined_nodes): Update.
23281 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23284 * config/i386/i386.c (classify_argument): Pass structures of size
23285 64 bytes or less in register.
23287 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23288 Kirill Yukhin <kirill.yukhin@intel.com>
23290 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23291 (_mm_rcp28_round_ss): Ditto.
23292 (_mm_rsqrt28_round_sd): Ditto.
23293 (_mm_rsqrt28_round_ss): Ditto.
23294 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23295 (_mm_rcp14_round_ss): Ditto.
23296 (_mm_rsqrt14_round_sd): Ditto.
23297 (_mm_rsqrt14_round_ss): Ditto.
23298 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23299 the first input operand, get rid of match_dup.
23300 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23302 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23304 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23305 operand as the first input operand, set type attribute.
23306 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23307 Set type attribute.
23308 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23309 operand as the first input operand, set type attribute.
23311 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23313 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23316 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23319 * config/i386/i386.c (construct_container): Remove TFmode check
23320 for X86_64_INTEGER_CLASS.
23322 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23325 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23326 only when -Wpsabi is enabled.
23328 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23331 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23332 passing arrays in registers are the same as for structs, so remove the
23333 special case for them.
23335 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23337 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23338 destination type, extract only the valid bits if the source type is not
23339 integral and has a different mode.
23341 2014-02-19 Richard Biener <rguenther@suse.de>
23344 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23347 2014-02-19 Richard Biener <rguenther@suse.de>
23350 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23351 (ipa_modify_call_arguments): Emit an argument load explicitely and
23352 preserve virtual SSA form there and for the replacement call.
23353 Do not update SSA form nor free dominance info.
23355 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23357 * ipa.c (function_and_variable_visibility): Also clear WEAK
23358 flag when disolving COMDAT_GROUP.
23360 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23362 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23363 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23364 not devirtualizing.
23365 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23366 do more sanity checks.
23367 (detect_type_change): Return true when giving up early.
23368 (compute_complex_assign_jump_func): Fix type parameter of
23369 ipa_set_ancestor_jf.
23370 (compute_complex_ancestor_jump_func): Likewise.
23371 (update_jump_functions_after_inlining): Fix updating of
23373 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23375 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23377 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23378 inline clones when edge disappears.
23380 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23383 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23384 Split 64-bit moves into 2 patterns. Do not allow the use of
23385 direct move for TDmode in little endian, since the decimal value
23386 has little endian bytes within a word, but the 64-bit pieces are
23387 ordered in a big endian fashion, and normal subreg's of TDmode are
23389 (mov<mode>_64bit_dm): Likewise.
23390 (movtd_64bit_nodm): Likewise.
23392 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23394 PR tree-optimization/60174
23395 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23396 statement of an SSA_NAME that occurs in an abnormal PHI node.
23398 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23401 * final.c (SEEN_BB): Remove.
23402 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23403 (final_scan_insn): Don't force_source_line on second
23404 NOTE_INSN_BASIC_BLOCK.
23406 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23409 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23410 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23411 (type_natural_mode): Warn ABI change when %zmm register is not
23412 available for AVX512F vector value passing.
23414 2014-02-18 Kai Tietz <ktietz@redhat.com>
23417 * config/i386/i386.c (ix86_expand_prologue): Use value in
23418 rax register as displacement when restoring %r10 or %rax.
23419 Fix wrong offset when restoring both registers.
23421 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23423 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23424 assertion with conditional return.
23426 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23427 Uros Bizjak <ubizjak@gmail.com>
23430 * config/i386/driver-i386.c (host_detect_local_cpu): If
23431 YMM state is not saved by the OS, also clear has_f16c. Move
23432 CPUID 0x80000001 handling before YMM state saving checking.
23434 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23436 PR rtl-optimization/58960
23437 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23438 factored out from ...
23439 (sched_init): ... here.
23440 (free_global_sched_pressure_data): New, factored out from ...
23441 (sched_finish): ... here.
23442 * sched-int.h (free_global_sched_pressure_data): Declare.
23443 * sched-rgn.c (nr_regions_initial): New static global.
23444 (haifa_find_rgns): Initialize it.
23445 (schedule_region): Disable sched-pressure for the newly
23448 2014-02-17 Richard Biener <rguenther@suse.de>
23450 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23451 release SSA defs of pattern stmts.
23453 2014-02-17 Richard Biener <rguenther@suse.de>
23455 * tree-inline.c (expand_call_inline): Release the virtual
23456 operand defined by the call we are about to inline.
23458 2014-02-17 Richard Biener <rguenther@suse.de>
23460 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23462 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23463 Ilya Tocar <ilya.tocar@intel.com>
23465 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23466 arguments order in builtin.
23467 (_mm512_permutexvar_epi64): Ditto.
23468 (_mm512_mask_permutexvar_epi64): Ditto
23469 (_mm512_maskz_permutexvar_epi32): Ditto
23470 (_mm512_permutexvar_epi32): Ditto
23471 (_mm512_mask_permutexvar_epi32): Ditto
23473 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23475 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23476 (p8_vmrgow): Likewise.
23478 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23480 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23483 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23486 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23487 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23488 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23489 using direct move instructions on ISA 2.07. Also adjust
23490 instruction length for 64-bit.
23491 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23492 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23494 2014-02-15 Alan Modra <amodra@gmail.com>
23498 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23499 find_replacement on parts of insn rtl that might be reloaded.
23501 2014-02-15 Richard Biener <rguenther@suse.de>
23503 PR tree-optimization/60183
23504 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23505 (tree_ssa_phiprop): Calculate and free post-dominators.
23507 2014-02-14 Jeff Law <law@redhat.com>
23509 PR rtl-optimization/60131
23510 * ree.c (get_extended_src_reg): New function.
23511 (combine_reaching_defs): Use it rather than assuming location of REG.
23512 (find_and_remove_re): Verify first operand of extension is
23513 a REG before adding the insns to the copy list.
23515 2014-02-14 Roland McGrath <mcgrathr@google.com>
23517 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23518 * configure: Regenerated.
23519 * config.in: Regenerated.
23520 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23521 instead of ASM_SHORT.
23523 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23524 Richard Earnshaw <rearnsha@arm.com>
23526 PR rtl-optimization/59535
23527 * lra-constraints.c (process_alt_operands): Encourage alternative
23528 when unassigned pseudo class is superset of the alternative class.
23529 (inherit_reload_reg): Don't inherit when optimizing for code size.
23530 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23531 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23532 modes not less than 4 for Thumb1.
23534 2014-02-14 Kyle McMartin <kyle@redhat.com>
23537 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23539 2014-02-14 Richard Biener <rguenther@suse.de>
23541 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23542 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23543 Do not strip INDIRECT_REFs.
23545 2014-02-14 Richard Biener <rguenther@suse.de>
23548 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23549 DECL_FUNCTION_SPECIFIC_TARGET.
23550 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23551 * tree-streamer-out.c (pack_ts_target_option): Remove.
23552 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23553 (write_ts_function_decl_tree_pointers): Do not stream
23554 DECL_FUNCTION_SPECIFIC_TARGET.
23555 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23556 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23557 (lto_input_ts_function_decl_tree_pointers): Do not stream
23558 DECL_FUNCTION_SPECIFIC_TARGET.
23560 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23562 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23563 (get_initial_def_for_induction, vectorizable_induction): Ignore
23564 debug stmts when looking for exit_phi.
23565 (vectorizable_live_operation): Fix up condition.
23567 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23569 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23570 nreverse() because it changes the content of original tree list.
23572 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23574 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23575 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23577 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23579 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23580 GNU coding standards.
23582 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23585 * dwarf2out.c (gen_subprogram_die): Don't call
23586 add_calling_convention_attribute if subr_die is old_die.
23588 2014-02-13 Sharad Singhai <singhai@google.com>
23590 * doc/optinfo.texi: Fix order of nodes.
23592 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23594 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23595 operands[2], not operands[3].
23597 2014-02-13 Richard Biener <rguenther@suse.de>
23600 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23601 mention the possibility of an in-tree build.
23602 (CLooG): Update recommended version to 0.18.1, mention the
23603 possibility of an in-tree build and clarify that the ISL
23604 bundled with CLooG does not work.
23606 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23609 * expr.c (compress_float_constant): If x is a hard register,
23610 extend into a pseudo and then move to x.
23612 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23614 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23615 caused by bad second argument to warning_at() with -mhotpatch and
23616 nested functions (e.g. with gfortran).
23618 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23620 * opts.c (option_name): Remove "enabled by default" rider.
23622 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23624 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23626 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23627 Uros Bizjak <ubizjak@gmail.com>
23630 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23631 * configure: Regenerated.
23633 2014-02-12 Richard Biener <rguenther@suse.de>
23635 * vec.c (vec_prefix::calculate_allocation): Move as
23636 inline variant to vec.h.
23637 (vec_prefix::calculate_allocation_1): New out-of-line version.
23638 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23639 (vec_prefix::m_has_auto_buf): Rename to ...
23640 (vec_prefix::m_using_auto_storage): ... this.
23641 (vec_prefix::calculate_allocation): Inline the easy cases
23642 and dispatch to calculate_allocation_1 which doesn't need the
23644 (va_heap::reserve): Use gcc_checking_assert.
23645 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23646 m_using_auto_storage.
23647 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23649 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23650 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23651 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23653 2014-02-12 Richard Biener <rguenther@suse.de>
23655 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23656 when we found a dependence.
23658 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23660 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23662 (maybe_fold_stmt): ... into this new function.
23663 * omp-low.c (lower_omp): Update comment.
23665 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23668 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23671 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23673 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23674 identifiers in comments.
23675 (cortexa53_extra_costs): Likewise.
23676 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23677 (cortexa7_extra_costs): Likewise.
23678 (cortexa12_extra_costs): Likewise.
23679 (cortexa15_extra_costs): Likewise.
23680 (v7m_extra_costs): Likewise.
23682 2014-02-12 Richard Biener <rguenther@suse.de>
23684 PR middle-end/60092
23685 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23686 of posix_memalign being successful.
23687 (lower_stmt): Restrict lowering of posix_memalign to when
23688 -ftree-bit-ccp is enabled.
23690 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23692 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23694 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23696 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23698 PR rtl-optimization/60116
23699 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23700 other_insn once the combination has been validated.
23702 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23705 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23707 * ipa-devirt.c: Include demangle.h
23708 (odr_violation_reported): New static variable.
23709 (add_type_duplicate): Update odr_violations.
23710 (maybe_record_node): Add completep parameter; update it.
23711 (record_target_from_binfo): Add COMPLETEP parameter;
23712 update it as needed.
23713 (possible_polymorphic_call_targets_1): Likewise.
23714 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23715 rename FINAL to COMPLETE.
23716 (record_targets_from_bases): Sanity check we found the binfo;
23717 fix COMPLETEP updating.
23718 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23719 parameter, fix computing of COMPLETEP.
23720 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23721 at LTO time do demangling.
23722 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23723 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23725 (gimple_get_virt_method_for_binfo): Likewise.
23726 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23727 gimple_get_virt_method_for_vtable): Update prototypes.
23729 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23732 * genautomata.c (add_presence_absence): Fix typo with
23733 {final_}presence_list.
23735 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23738 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23739 for VSX/Altivec vectors that land in GPR registers.
23741 2014-02-11 Richard Henderson <rth@redhat.com>
23742 Jakub Jelinek <jakub@redhat.com>
23745 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23746 around drhs if type conversion to lacc->type is not useless.
23748 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23750 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23752 (cortex-a57.cortex-a53): Likewise.
23753 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23755 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23757 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23760 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23762 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23763 add_options_for_arm_vfp3.
23765 2014-02-11 Jeff Law <law@redhat.com>
23767 PR middle-end/54041
23768 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23769 object with an undesirable mode.
23771 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23774 * config/i386/sol2-9.h: New file.
23775 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23776 *-*-solaris2.9*): Use it.
23778 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23780 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23781 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23783 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23785 * config/microblaze/microblaze.c: Extend mcpu version format
23787 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23789 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23791 2014-02-10 Richard Henderson <rth@redhat.com>
23794 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23795 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23796 ms-abi vs -mno-accumulate-outgoing-args.
23797 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23798 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23801 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23803 PR middle-end/60080
23804 * cfgexpand.c (expand_asm_operands): Attach source location to
23805 ASM_INPUT rtx objects.
23806 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23808 2014-02-10 Nick Clifton <nickc@redhat.com>
23810 * config/mn10300/mn10300.c (popcount): New function.
23811 (mn10300_expand_prologue): Include saved registers in stack usage
23814 2014-02-10 Jeff Law <law@redhat.com>
23816 PR middle-end/52306
23817 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23818 when changing the SET_DEST of a prior insn to avoid an input reload.
23820 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23822 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23823 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23824 -mcall-openbsd, or -mcall-linux.
23825 (CC1_ENDIAN_BIG_SPEC): Remove.
23826 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23827 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23828 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23829 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23830 and %cc1_endian_default.
23831 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23833 2014-02-10 Richard Biener <rguenther@suse.de>
23835 PR tree-optimization/60115
23836 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23837 MEM_REF handling. Properly verify that the accesses are not
23838 out of the objects bound.
23840 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23842 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23845 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23847 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23848 proper constants and fix formatting.
23849 (possible_polymorphic_call_targets): Fix formatting.
23851 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23852 Ilya Tocar <ilya.tocar@intel.com>
23854 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23855 (_mm512_loadu_epi32): Renamed into...
23856 (_mm512_loadu_si512): This.
23857 (_mm512_storeu_epi32): Renamed into...
23858 (_mm512_storeu_si512): This.
23859 (_mm512_maskz_ceil_ps): Removed.
23860 (_mm512_maskz_ceil_pd): Ditto.
23861 (_mm512_maskz_floor_ps): Ditto.
23862 (_mm512_maskz_floor_pd): Ditto.
23863 (_mm512_floor_round_ps): Ditto.
23864 (_mm512_floor_round_pd): Ditto.
23865 (_mm512_ceil_round_ps): Ditto.
23866 (_mm512_ceil_round_pd): Ditto.
23867 (_mm512_mask_floor_round_ps): Ditto.
23868 (_mm512_mask_floor_round_pd): Ditto.
23869 (_mm512_mask_ceil_round_ps): Ditto.
23870 (_mm512_mask_ceil_round_pd): Ditto.
23871 (_mm512_maskz_floor_round_ps): Ditto.
23872 (_mm512_maskz_floor_round_pd): Ditto.
23873 (_mm512_maskz_ceil_round_ps): Ditto.
23874 (_mm512_maskz_ceil_round_pd): Ditto.
23875 (_mm512_expand_pd): Ditto.
23876 (_mm512_expand_ps): Ditto.
23877 * config/i386/i386.c (ix86_builtins): Remove
23878 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23879 (bdesc_args): Ditto.
23880 * config/i386/predicates.md (const1256_operand): New.
23881 (const_1_to_2_operand): Ditto.
23882 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23883 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23884 (*avx512pf_gatherpf<mode>sf): Ditto.
23885 (avx512pf_gatherpf<mode>df): Ditto.
23886 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23887 (*avx512pf_gatherpf<mode>df): Ditto.
23888 (avx512pf_scatterpf<mode>sf): Ditto.
23889 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23890 (*avx512pf_scatterpf<mode>sf): Ditto.
23891 (avx512pf_scatterpf<mode>df): Ditto.
23892 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23893 (*avx512pf_scatterpf<mode>df): Ditto.
23894 (avx512f_expand<mode>): Removed.
23895 (<shift_insn><mode>3<mask_name>): Change predicate type.
23897 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23899 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23900 not at the end of datarefs vector use ordered_remove to avoid
23901 reordering datarefs vector.
23904 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23905 mark local addressable non-static vars as GOVD_PRIVATE
23906 instead of GOVD_LOCAL.
23907 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23908 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23911 PR middle-end/60092
23912 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23913 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23914 assume_aligned or alloc_align attributes.
23915 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23916 arguments. Handle also assume_aligned and alloc_align attributes.
23917 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23918 calls to functions with assume_aligned or alloc_align attributes.
23919 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23921 2014-02-08 Terry Guo <terry.guo@arm.com>
23923 * doc/invoke.texi: Document ARM -march=armv7e-m.
23925 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23927 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23928 flag on __cilkrts_rethrow builtin.
23931 * ipa-cp.c (determine_versionability): Fail at -O0
23932 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23933 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23936 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23939 * tree-inline.c (copy_forbidden): Fail for
23940 __attribute__((optimize (0))) functions.
23942 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23944 * varpool.c: Include pointer-set.h.
23945 (varpool_remove_unreferenced_decls): Variables in other partitions
23946 will not be output; be however careful to not lose information
23947 about partitioning.
23949 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23951 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23952 lookup in the vtable constructor.
23954 2014-02-07 Jeff Law <law@redhat.com>
23957 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23958 define_insn_and_split.
23960 * ipa-inline.c (inline_small_functions): Fix typos.
23962 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23964 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23965 (s390_can_use_return_insn): Declare.
23966 * config/s390/s390.h (EPILOGUE_USES): Define.
23967 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23969 (s390_chunkify_start): Handle return JUMP_LABELs.
23970 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23971 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23972 (s390_can_use_return_insn): New functions.
23973 (s390_fix_long_loop_prediction): Handle conditional returns.
23974 (TARGET_SET_UP_BY_PROLOGUE): Define.
23975 * config/s390/s390.md (ANY_RETURN): New code iterator.
23976 (*creturn, *csimple_return, return, simple_return): New patterns.
23978 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23980 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23981 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23982 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23983 REG_CFA_RESTORE list when deciding not to restore a register.
23985 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23987 * config/s390/s390.c: Include tree-pass.h and context.h.
23988 (s390_early_mach): New function, split out from...
23989 (s390_emit_prologue): ...here.
23990 (pass_data_s390_early_mach): New pass structure.
23991 (pass_s390_early_mach): New class.
23992 (s390_option_override): Create and register early_mach pass.
23993 Move to end of file.
23995 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23997 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23998 to match for the exit block.
24000 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24002 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24003 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24004 Reject misaligned operands.
24006 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24008 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24010 2014-02-07 Richard Biener <rguenther@suse.de>
24012 PR middle-end/60092
24013 * gimple-low.c (lower_builtin_posix_memalign): New function.
24014 (lower_stmt): Call it to lower posix_memalign in a way
24015 to make alignment info accessible.
24017 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24020 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24021 __builtin_setjmp_receiver.
24023 2014-02-07 Richard Biener <rguenther@suse.de>
24025 PR middle-end/60092
24026 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24027 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24028 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24029 Handle BUILT_IN_POSIX_MEMALIGN.
24030 (find_func_clobbers): Likewise.
24031 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24032 (call_may_clobber_ref_p_1): Likewise.
24034 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24037 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24040 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24043 * lto-cgraph.c (lto_output_node): Use
24044 symtab_get_symbol_partitioning_class.
24045 (lto_output_varpool_node): likewise.
24046 (symtab_get_symbol_partitioning_class): Move here from
24047 lto/lto-partition.c
24048 * cgraph.h (symbol_partitioning_class): Likewise.
24049 (symtab_get_symbol_partitioning_class): Declare.
24051 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24053 * ggc.h (ggc_internal_cleared_alloc): New macro.
24054 * vec.h (vec_safe_copy): Handle memory stats.
24055 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24056 * target-globals.c (save_target_globals): Likewise.
24058 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24061 * expr.c (emit_move_resolve_push): Export; be bit more selective
24062 on when to clear alias set.
24063 * expr.h (emit_move_resolve_push): Declare.
24064 * function.h (struct function): Add tail_call_marked.
24065 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24066 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24067 * config/i386/i386.md (TImode move expander): De not call
24069 (FP push expanders): Preserve memory attributes.
24070 * config/i386/sse.md (push<mode>1): Remove.
24071 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24072 (ix86_expand_push): Remove.
24073 * config/i386/mmx.md (push<mode>1): Remove.
24075 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24077 PR rtl-optimization/60030
24078 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24079 lopart with paradoxical subreg before shifting it up by hprec.
24081 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24083 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24084 Remove extra newline at end of file.
24085 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24086 (arm_issue_rate): Handle cortexa57.
24087 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24088 (cortex-a57.cortex-a53): Likewise.
24090 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24093 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24094 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24096 (arm_expand_prologue): Adjust all callers.
24097 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24098 info, registers also at the lowest numbered registers side. Use
24099 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24103 * var-tracking.c (adjust_mems): Before adding a SET to
24104 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24106 2014-02-06 Alan Modra <amodra@gmail.com>
24109 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24110 change SDmode to DDmode when lra_in_progress.
24112 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24114 PR middle-end/59150
24115 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24116 free_data_ref on the dr first, and before goto again also set dr
24117 to the next dr. For simd_lane_access, free old datarefs[i] before
24118 overwriting it. For get_vectype_for_scalar_type failure, don't
24119 free_data_ref if simd_lane_access.
24121 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24124 * tree.h (opts_for_fn): New inline function.
24125 (opt_for_fn): Define.
24126 * config/i386/i386.c (ix86_function_regparm): Use
24127 opt_for_fn (decl, optimize) instead of optimize.
24129 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24131 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24132 for SYMBOL_REF in large memory model.
24134 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24136 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24137 and crypto support.
24138 (cortex-a57): Likewise.
24139 (cortex-a57.cortex-a53): Likewise.
24141 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24142 Kugan Vivekanandarajah <kuganv@linaro.org>
24144 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24146 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24148 2014-02-06 Richard Biener <rguenther@suse.de>
24150 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24151 set_loop_copy and initialize_original_copy_tables.
24153 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24155 * config/aarch64/aarch64-simd.md
24156 (aarch64_ashr_simddi): Change QI to SI.
24158 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24159 Jakub Jelinek <jakub@redhat.com>
24161 PR middle-end/60013
24162 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24165 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24167 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24168 CODE_FOR_altivec_vpku[hw]um to
24169 CODE_FOR_altivec_vpku[hw]um_direct.
24170 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24171 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24172 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24173 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24175 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24177 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24178 generation for -maltivec=be.
24179 (altivec_vsumsws): Simplify redundant test.
24181 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24183 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24184 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24185 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24186 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24187 gen_altivec_vpkuwum.
24188 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24190 (altivec_vpks<VI_char>ss): Likewise.
24191 (altivec_vpks<VI_char>us): Likewise.
24192 (altivec_vpku<VI_char>us): Likewise.
24193 (altivec_vpku<VI_char>um): Likewise.
24194 (altivec_vpku<VI_char>um_direct): New (copy of
24195 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24197 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24198 target is little endian and -maltivec=be is not specified.
24199 (*altivec_vupkhs<VU_char>_direct): New (copy of
24200 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24201 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24202 target is little endian and -maltivec=be is not specified.
24203 (*altivec_vupkls<VU_char>_direct): New (copy of
24204 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24205 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24206 little endian and -maltivec=be is not specified.
24207 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24208 little endian and -maltivec=be is not specified.
24210 2014-02-05 Richard Henderson <rth@redhat.com>
24213 * combine-stack-adj.c: Revert r206943.
24214 * sched-int.h (struct deps_desc): Add last_args_size.
24215 * sched-deps.c (init_deps): Initialize it.
24216 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24217 contain REG_ARGS_SIZE notes.
24219 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24221 * lto-cgraph.c (asm_nodes_output): Make global.
24222 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24223 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24224 (driver_handle_option): Handle OPT_fwpa.
24226 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24229 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24230 a comment typo and formatting issue. If odr_hash hasn't been
24231 created, return vNULL and set *completep to false.
24233 PR middle-end/57499
24234 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24235 bb with no successors.
24237 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24240 * doc/invoke.texi (-march): Clarify documentation for ARM.
24241 (-mtune): Likewise.
24244 2014-02-05 Richard Biener <rguenther@suse.de>
24246 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24247 when not vectorizing because of too many alias checks.
24248 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24249 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24251 2014-02-05 Nick Clifton <nickc@redhat.com>
24253 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24254 accept extended registers in any mode when compiling for the MN10300.
24256 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24258 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24259 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24260 sanitization attributes.
24261 (can_inline_edge_p): Likewise.
24262 (sanitize_attrs_match_for_inline_p): New function.
24264 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24266 * ipa-prop.c (detect_type_change): Shor circuit testing of
24267 type changes on THIS pointer.
24269 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24272 * config/pa/pa.c (legitimize_tls_address): Return original address
24273 if not passed a SYMBOL_REF rtx.
24274 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24276 (pa_emit_move_sequence): Simplify TLS source operands.
24277 (pa_legitimate_constant_p): Reject all TLS constants.
24278 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24279 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24281 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24283 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24284 groups when we know they are controlled by LTO.
24285 * varasm.c (default_binds_local_p_1): If object is in other partition,
24286 it will be resolved locally.
24288 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24290 * config/host-linux.c (linux_gt_pch_use_address): Don't
24291 use SSIZE_MAX because it is not always defined.
24293 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24296 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24297 threshold for pseudo splitting.
24298 (update_ebb_live_info): Process call argument hard registers and
24299 hard registers from insn definition too.
24300 (max_small_class_regs_num): New constant.
24301 (inherit_in_ebb): Update live hard regs through EBBs. Update
24302 reloads_num only for small register classes. Don't split for
24305 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24308 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24311 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24313 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24314 visibility is safe.
24316 2014-02-04 Marek Polacek <polacek@redhat.com>
24318 * gdbinit.in (pel): Define.
24320 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24322 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24325 2014-02-04 Richard Biener <rguenther@suse.de>
24328 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24329 in function context local.
24330 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24331 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24332 similar to LTO_imported_decl_ref.
24334 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24336 PR tree-optimization/60002
24337 * cgraphclones.c (build_function_decl_skip_args): Clear
24338 DECL_LANG_SPECIFIC.
24340 PR tree-optimization/60023
24341 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24342 false to gsi_replace.
24343 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24344 has been in some EH region and vec_stmt could throw, add
24345 vec_stmt into the same EH region.
24346 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24347 has no lhs, ignore it.
24348 * internal-fn.c (expand_MASK_LOAD): Likewise.
24351 * tree-inline.c (copy_forbidden): Fail for
24352 __attribute__((optimize (0))) functions.
24355 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24356 is set, copy one less argument.
24357 (expand_simd_clones): Don't subtract clone_info->inbranch
24358 from simd_clone_struct_alloc argument.
24360 PR rtl-optimization/57915
24361 * recog.c (simplify_while_replacing): If all unary/binary/relational
24362 operation arguments are constant, attempt to simplify those.
24364 PR middle-end/59261
24365 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24366 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24368 2014-02-04 Richard Biener <rguenther@suse.de>
24370 PR tree-optimization/60012
24371 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24372 TBAA disambiguation to all DDRs.
24374 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24377 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24378 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24380 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24383 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24385 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24387 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24388 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24390 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24393 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24394 to figure out targets of polymorphic calls with known decl.
24395 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24396 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24397 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24398 (get_polymorphic_call_info): ... here.
24399 (get_polymorphic_call_info_from_invariant): New function.
24401 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24403 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24404 lookup via vtable pointer; check for type consistency
24405 and turn inconsitent facts into UNREACHABLE.
24406 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24407 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24408 type inconsistent querries; return UNREACHABLE instead.
24410 2014-02-03 Richard Henderson <rth@twiddle.net>
24413 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24414 already processed this node.
24415 (normalize_one_pred_1): Pass along mark_set.
24416 (normalize_one_pred): Create and destroy a pointer_set_t.
24417 (normalize_one_pred_chain): Likewise.
24419 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24421 PR gcov-profile/58602
24422 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24424 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24427 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24428 -fno-devirtualize; try to devirtualize by the knowledge of
24429 virtual table pointer given by aggregate propagation.
24430 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24431 (ipa_print_node_jump_functions): Dump also offset that
24432 is relevant for polymorphic calls.
24433 (determine_known_aggregate_parts): Add arg_type parameter; use it
24434 instead of determining the type from pointer type.
24435 (ipa_compute_jump_functions_for_edge): Update call of
24436 determine_known_aggregate_parts.
24437 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24438 (gimple_get_virt_method_for_binfo): ... here; simplify using
24439 vtable_pointer_value_to_vtable.
24440 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24441 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24442 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24443 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24445 (vtable_pointer_value_to_binfo): ... here.
24446 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24448 2014-02-03 Teresa Johnson <tejohnson@google.com>
24450 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24451 redef of outer loop index variable.
24453 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24457 * doc/extend.texi (Function Attributes): Typo.
24459 2014-02-03 Cong Hou <congh@google.com>
24461 PR tree-optimization/60000
24462 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24463 if the vectorized statement is a store. A store statement can only
24464 appear at the end of pattern statements.
24466 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24468 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24469 (ix86_option_override_internal): Default long double to 64-bit for
24470 32-bit Bionic and to 128-bit for 64-bit Bionic.
24472 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24473 TARGET_LONG_DOUBLE_128 is true.
24474 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24476 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24477 (mlong-double-64): Negate -mlong-double-128.
24478 (mlong-double-128): New option.
24480 * config/i386/i386-c.c (ix86_target_macros): Define
24481 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24483 * doc/invoke.texi: Document -mlong-double-128.
24485 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24487 PR rtl-optimization/60024
24488 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24490 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24492 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24494 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24496 PR rtl-optimization/57662
24497 * sel-sched.c (code_motion_path_driver): Do not mark already not
24498 existing blocks in the visiting bitmap.
24500 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24502 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24503 on the insn being emitted.
24505 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24506 Will Deacon <will.deacon@arm.com>
24508 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24510 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24512 * config/arm/arm-tables.opt: Regenerate.
24514 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24516 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24517 for vector types other than V16QImode.
24518 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24519 define_expand, and call altivec_expand_vec_perm_le when producing
24520 code with little endian element order.
24521 (*altivec_vperm_<mode>_internal): New insn having previous
24522 behavior of altivec_vperm_<mode>.
24523 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24524 altivec_expand_vec_perm_le when producing code with little endian
24526 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24527 behavior of altivec_vperm_<mode>_uns.
24529 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24531 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24532 (altivec_vsumsws): Add handling for -maltivec=be with a little
24534 (altivec_vsumsws_direct): New.
24535 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24536 gen_altivec_vsumsws.
24538 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24540 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24541 vtable_pointer_value_to_binfo): New functions.
24542 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24543 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24545 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24547 * config/nios2/nios2.md (load_got_register): Initialize GOT
24548 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24549 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24551 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24553 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24554 preserverd by passthrough, do not propagate the type.
24556 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24558 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24559 (mips_atomic_assign_expand_fenv): New function.
24560 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24562 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24564 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24565 (__builtin_mips_set_fcsr): Likewise.
24566 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24567 MIPS_USI_FTYPE_VOID.
24568 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24569 (mips16_expand_set_fcsr): Likewise.
24570 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24571 (mips16_set_fcsr_stub): Likewise.
24572 (mips16_get_fcsr_one_only_stub): New class.
24573 (mips16_set_fcsr_one_only_stub): Likewise.
24574 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24575 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24576 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24577 (hard_float): New availability predicate.
24578 (mips_builtins): Add get_fcsr and set_fcsr.
24579 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24580 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24581 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24582 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24583 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24586 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24588 * config/mips/mips.c (mips_one_only_stub): New class.
24589 (mips_need_mips16_rdhwr_p): Replace with...
24590 (mips16_rdhwr_stub): ...this new variable.
24591 (mips16_stub_call_address): New function.
24592 (mips16_rdhwr_one_only_stub): New class.
24593 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24594 (mips_output_mips16_rdhwr): Delete.
24595 (mips_finish_stub): New function.
24596 (mips_code_end): Use it to handle rdhwr stubs.
24598 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24601 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24602 when calculating size of integer atomic types.
24604 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24606 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24608 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24610 PR tree-optimization/60003
24611 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24612 * profile.c (branch_prob): Use gimple_call_builtin_p
24613 to check for BUILT_IN_SETJMP_RECEIVER.
24614 * tree-inline.c (copy_bb): Call notice_special_calls.
24616 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24619 * lra-constraints.c (process_alt_operands): Update reload_sum only
24622 2014-01-31 Richard Henderson <rth@redhat.com>
24624 PR middle-end/60004
24625 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24626 until after else_eh is processed.
24628 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24630 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24631 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24632 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24633 in smmintrin.h, remove them.
24634 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24635 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24636 * config/i386/i386.md (ROUND_SAE): Fix value.
24637 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24638 (const48_operand): New.
24639 * config/i386/subst.md (round), (round_expand): Use
24640 const_4_or_8_to_11_operand.
24641 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24643 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24645 * config/i386/constraints.md (Yk): Swap meaning with k.
24646 * config/i386/i386.md (movhi_internal): Change Yk to k.
24647 (movqi_internal): Ditto.
24648 (*k<logic><mode>): Ditto.
24651 (kandn<mode>): Ditto.
24652 (*<code>hi_1): Ditto.
24653 (*<code>qi_1): Ditto.
24654 (kxnor<mode>): Ditto.
24655 (kortestzhi): Ditto.
24656 (kortestchi): Ditto.
24658 (*one_cmplhi2_1): Ditto.
24659 (*one_cmplqi2_1): Ditto.
24660 * config/i386/sse.md (): Change k to Yk.
24661 (avx512f_load<mode>_mask): Ditto.
24662 (avx512f_blendm<mode>): Ditto.
24663 (avx512f_store<mode>_mask): Ditto.
24664 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24665 (avx512f_storedqu<mode>_mask): Ditto.
24666 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24668 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24669 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24670 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24671 (avx512f_maskcmp<mode>3): Ditto.
24672 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24673 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24674 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24675 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24676 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24677 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24678 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24679 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24680 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24681 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24682 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24683 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24684 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24685 (vec_extract_lo_<mode>_maskm): Ditto.
24686 (vec_extract_hi_<mode>_maskm): Ditto.
24687 (avx512f_vternlog<mode>_mask): Ditto.
24688 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24689 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24690 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24691 (avx512f_<code>v8div16qi2_mask): Ditto.
24692 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24693 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24694 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24695 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24696 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24697 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24698 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24699 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24700 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24701 (avx512cd_maskb_vec_dupv8di): Ditto.
24702 (avx512cd_maskw_vec_dupv16si): Ditto.
24703 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24704 (avx512f_vpermi2var<mode>3_mask): Ditto.
24705 (avx512f_vpermi2var<mode>3_mask): Ditto.
24706 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24707 (*avx512f_gathersi<mode>): Ditto.
24708 (*avx512f_gathersi<mode>_2): Ditto.
24709 (*avx512f_gatherdi<mode>): Ditto.
24710 (*avx512f_gatherdi<mode>_2): Ditto.
24711 (*avx512f_scattersi<mode>): Ditto.
24712 (*avx512f_scatterdi<mode>): Ditto.
24713 (avx512f_compress<mode>_mask): Ditto.
24714 (avx512f_compressstore<mode>_mask): Ditto.
24715 (avx512f_expand<mode>_mask): Ditto.
24716 * config/i386/subst.md (mask): Change k to Yk.
24717 (mask_scalar_merge): Ditto.
24720 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24722 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24724 2014-01-31 Richard Biener <rguenther@suse.de>
24726 PR middle-end/59990
24727 * builtins.c (fold_builtin_memory_op): Make sure to not
24728 use a floating-point mode or a boolean or enumeral type for
24729 the copy operation.
24731 2014-01-30 DJ Delorie <dj@redhat.com>
24733 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24734 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24735 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24736 whenever main() has an epilogue.
24738 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24740 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24741 unused variable "field".
24742 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24743 (vsx_mergeh_<mode>): Likewise.
24744 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24745 (altivec_vmrghh): Likewise.
24746 (altivec_vmrghw): Likewise.
24747 (altivec_vmrglb): Likewise.
24748 (altivec_vmrglh): Likewise.
24749 (altivec_vmrglw): Likewise.
24750 (altivec_vspltb): Add missing uses.
24751 (altivec_vsplth): Likewise.
24752 (altivec_vspltw): Likewise.
24753 (altivec_vspltsf): Likewise.
24755 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24758 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24759 frame related instructions.
24761 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24763 PR rtl-optimization/59959
24764 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24765 any reload of register whose subreg is invalid.
24767 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24769 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24770 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24771 Add missing return type - void.
24773 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24775 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24776 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24777 remove element index adjustment for endian (now handled in vsx.md
24779 (altivec_expand_vec_perm_const): Use
24780 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24781 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24782 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24783 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24784 define_expand and a new define_insn *altivec_vspltb_internal;
24785 adjust for -maltivec=be on a little endian target.
24786 (altivec_vspltb_direct): New.
24787 (altivec_vsplth): Divide into a define_expand and a new
24788 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24789 little endian target.
24790 (altivec_vsplth_direct): New.
24791 (altivec_vspltw): Divide into a define_expand and a new
24792 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24793 little endian target.
24794 (altivec_vspltw_direct): New.
24795 (altivec_vspltsf): Divide into a define_expand and a new
24796 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24797 a little endian target.
24799 2014-01-30 Richard Biener <rguenther@suse.de>
24801 PR tree-optimization/59993
24802 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24803 can propagate form the earlier stmt and avoid the transform
24804 when the intermediate result is needed.
24806 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24808 * README.Portability: Fix typo.
24810 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24812 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24813 comparison_operator with ordered_comparison_operator.
24815 2014-01-30 Nick Clifton <nickc@redhat.com>
24817 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24818 Rename to mn10300_store_multiple_regs.
24819 * config/mn10300/mn10300.c: Likewise.
24820 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24821 store_multiple_regs.
24822 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24823 Call mn10300_store_multiple_regs.
24825 2014-01-30 Nick Clifton <nickc@redhat.com>
24826 DJ Delorie <dj@redhat.com>
24828 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24829 %fp 2 to keep registers after it properly word-aligned.
24830 (rl78_alloc_physical_registers_umul): Handle the case where both
24831 input operands are the same.
24833 2014-01-30 Richard Biener <rguenther@suse.de>
24835 PR tree-optimization/59903
24836 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24839 2014-01-30 Jason Merrill <jason@redhat.com>
24842 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24845 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24847 2014-01-30 Richard Biener <rguenther@suse.de>
24849 PR tree-optimization/59951
24850 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24852 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24855 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24856 SFmode to DFmode case.
24858 2014-01-29 DJ Delorie <dj@redhat.com>
24860 * config/msp430/msp430.opt (-minrt): New.
24861 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24863 (ENDFILE_SPEC): Likewise.
24865 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24867 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24868 (estimate_function_body_sizes): Use it.
24870 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24873 * dwarf2out.c (is_cxx_auto): New.
24874 (is_base_type): Use it.
24875 (gen_type_die_with_usage): Likewise.
24877 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24879 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24880 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24881 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24882 -maltivec=be with LE targets.
24883 (vsx_mergeh_<mode>): Likewise.
24884 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24885 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24886 (altivec_vmrghb): Replace with define_expand and new
24887 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24888 (altivec_vmrghb_direct): New define_insn.
24889 (altivec_vmrghh): Replace with define_expand and new
24890 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24891 (altivec_vmrghh_direct): New define_insn.
24892 (altivec_vmrghw): Replace with define_expand and new
24893 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24894 (altivec_vmrghw_direct): New define_insn.
24895 (*altivec_vmrghsf): Adjust for endianness.
24896 (altivec_vmrglb): Replace with define_expand and new
24897 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24898 (altivec_vmrglb_direct): New define_insn.
24899 (altivec_vmrglh): Replace with define_expand and new
24900 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24901 (altivec_vmrglh_direct): New define_insn.
24902 (altivec_vmrglw): Replace with define_expand and new
24903 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24904 (altivec_vmrglw_direct): New define_insn.
24905 (*altivec_vmrglsf): Adjust for endianness.
24906 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24907 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24908 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24909 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24910 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24911 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24912 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24913 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24915 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24917 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24918 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24921 2014-01-29 Richard Biener <rguenther@suse.de>
24923 PR tree-optimization/58742
24924 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24925 associate_pointerplus_align.
24926 (associate_pointerplus_diff): New function.
24927 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24928 and associate_pointerplus_diff.
24930 2014-01-29 Richard Biener <rguenther@suse.de>
24932 * lto-streamer.h (LTO_major_version): Bump to 3.
24933 (LTO_minor_version): Reset to 0.
24935 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24937 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24938 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24939 (arm_file_start): Generate correct asm header for armv7ve.
24940 * config/arm/bpabi.h: Add multilib support for armv7ve.
24941 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24942 and cortex-a15 to armv7ve.
24943 * config/arm/t-aprofile: Add multilib support for armv7ve.
24944 * doc/invoke.texi: Document -march=armv7ve.
24946 2014-01-29 Richard Biener <rguenther@suse.de>
24948 PR tree-optimization/58742
24949 * tree-ssa-forwprop.c (associate_plusminus): Return true
24950 if we changed sth, defer EH cleanup to ...
24951 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24952 (simplify_mult): New function.
24954 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24956 PR middle-end/59917
24957 PR tree-optimization/59920
24958 * tree.c (build_common_builtin_nodes): Remove
24959 __builtin_setjmp_dispatcher initialization.
24960 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24961 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24962 instead of gsi_after_labels + manually skipping debug stmts.
24963 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24964 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24965 * tree-inline.c (copy_edges_for_bb): Remove
24966 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24967 argument. Ignore computed_goto_p stmts. Don't call
24968 make_abnormal_goto_edges. If a call might need abnormal edges
24969 for non-local gotos, see if it already has an edge to
24970 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24971 with true argument, don't do anything then, otherwise add
24972 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24973 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24975 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24976 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24977 (lower_stmt): Don't set data->calls_builtin_setjmp.
24978 (lower_builtin_setjmp): Adjust comment.
24979 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24980 * tree-cfg.c (found_computed_goto): Remove.
24981 (factor_computed_gotos): Remove.
24982 (make_goto_expr_edges): Return bool, true for computed gotos.
24983 Don't call make_abnormal_goto_edges.
24984 (build_gimple_cfg): Don't set found_computed_goto, don't call
24985 factor_computed_gotos.
24986 (computed_goto_p): No longer static.
24987 (make_blocks): Don't set found_computed_goto.
24988 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24989 (make_edges): If make_goto_expr_edges returns true, push bb
24990 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24991 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24992 vector. Record mapping between bbs and OpenMP regions if there
24993 are any, adjust make_gimple_omp_edges caller. Call
24994 handle_abnormal_edges.
24995 (make_abnormal_goto_edges): Remove.
24996 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24997 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24998 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24999 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25000 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25001 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25002 filling *region also set *region_idx to (*region)->entry->index.
25005 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25006 For REGs set ORIGINAL_REGNO.
25008 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25010 * doc/md.texi: Mention that a target shouldn't implement
25011 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25014 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25016 PR tree-optimization/59594
25017 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25018 a copy of the datarefs vector rather than the vector itself.
25020 2014-01-28 Jason Merrill <jason@redhat.com>
25023 * dwarf2out.c (auto_die): New static.
25024 (gen_type_die_with_usage): Handle C++1y 'auto'.
25025 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25028 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25031 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25032 (SPEC_X32): Likewise.
25033 (SPEC_64): Likewise.
25034 * config/i386/i386.c (ix86_option_override_internal): Turn off
25035 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25037 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25038 * config/i386/i386.h (TARGET_16BIT): New macro.
25039 (TARGET_16BIT_P): Likewise.
25040 * config/i386/i386.opt: Add m16.
25041 * doc/invoke.texi: Document -m16.
25043 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25045 PR preprocessor/59935
25046 * input.c (location_get_source_line): Bail out on when line number
25047 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25049 2014-01-28 Richard Biener <rguenther@suse.de>
25051 PR tree-optimization/58742
25052 * tree-ssa-forwprop.c (associate_plusminus): Handle
25053 pointer subtraction of the form (T)(P + A) - (T)P.
25055 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25057 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25060 2014-01-28 Richard Biener <rguenther@suse.de>
25063 2014-01-28 Richard Biener <rguenther@suse.de>
25065 PR rtl-optimization/45364
25066 PR rtl-optimization/59890
25067 * var-tracking.c (local_get_addr_clear_given_value): Handle
25068 already cleared slot.
25069 (val_reset): Handle not allocated local_get_addr_cache.
25070 (vt_find_locations): Use post-order on the inverted CFG.
25072 2014-01-28 Richard Biener <rguenther@suse.de>
25074 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25076 2014-01-28 Richard Biener <rguenther@suse.de>
25078 PR rtl-optimization/45364
25079 PR rtl-optimization/59890
25080 * var-tracking.c (local_get_addr_clear_given_value): Handle
25081 already cleared slot.
25082 (val_reset): Handle not allocated local_get_addr_cache.
25083 (vt_find_locations): Use post-order on the inverted CFG.
25085 2014-01-28 Alan Modra <amodra@gmail.com>
25087 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25088 * configure.ac <recursive call for build != host>: Define
25089 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25090 and LD_FOR_BUILD too.
25091 * configure: Regenerate.
25093 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25095 * config/i386/i386.c (get_builtin_code_for_version): Separate
25096 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25097 Broadwell from Haswell.
25099 2014-01-27 Steve Ellcey <sellcey@mips.com>
25101 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25102 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25103 * config/mips/mips.c (mips_option_override): Change setting
25105 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25106 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25107 Change from Mask to Var.
25109 2014-01-27 Jeff Law <law@redhat.com>
25111 * ipa-inline.c (inline_small_functions): Fix typo.
25113 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25115 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25116 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25117 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25118 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25119 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25120 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25121 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25122 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25123 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25124 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25125 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25126 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25127 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25128 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25129 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25130 (_mm512_storeu_epi64): Ditto.
25131 (_mm512_cmpge_epi32_mask): Ditto.
25132 (_mm512_cmpge_epu32_mask): Ditto.
25133 (_mm512_cmpge_epi64_mask): Ditto.
25134 (_mm512_cmpge_epu64_mask): Ditto.
25135 (_mm512_cmple_epi32_mask): Ditto.
25136 (_mm512_cmple_epu32_mask): Ditto.
25137 (_mm512_cmple_epi64_mask): Ditto.
25138 (_mm512_cmple_epu64_mask): Ditto.
25139 (_mm512_cmplt_epi32_mask): Ditto.
25140 (_mm512_cmplt_epu32_mask): Ditto.
25141 (_mm512_cmplt_epi64_mask): Ditto.
25142 (_mm512_cmplt_epu64_mask): Ditto.
25143 (_mm512_cmpneq_epi32_mask): Ditto.
25144 (_mm512_cmpneq_epu32_mask): Ditto.
25145 (_mm512_cmpneq_epi64_mask): Ditto.
25146 (_mm512_cmpneq_epu64_mask): Ditto.
25147 (_mm512_expand_pd): Ditto.
25148 (_mm512_expand_ps): Ditto.
25149 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25150 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25151 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25152 * config/i386/i386.c (ix86_builtins): Add
25153 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25154 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25155 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25156 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25157 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25158 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25159 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25160 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25161 IX86_BUILTIN_PMOVUSQW512_MEM.
25162 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25163 __builtin_ia32_pmovsqd512mem_mask,
25164 __builtin_ia32_pmovqd512mem_mask,
25165 __builtin_ia32_pmovusqw512mem_mask,
25166 __builtin_ia32_pmovsqw512mem_mask,
25167 __builtin_ia32_pmovqw512mem_mask,
25168 __builtin_ia32_pmovusdw512mem_mask,
25169 __builtin_ia32_pmovsdw512mem_mask,
25170 __builtin_ia32_pmovdw512mem_mask,
25171 __builtin_ia32_pmovqb512mem_mask,
25172 __builtin_ia32_pmovusqb512mem_mask,
25173 __builtin_ia32_pmovsqb512mem_mask,
25174 __builtin_ia32_pmovusdb512mem_mask,
25175 __builtin_ia32_pmovsdb512mem_mask,
25176 __builtin_ia32_pmovdb512mem_mask.
25177 (bdesc_args): Add __builtin_ia32_expanddf512,
25178 __builtin_ia32_expandsf512.
25179 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25180 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25181 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25182 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25183 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25184 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25185 (avx512f_<code>v8div16qi2_mask_store): This.
25186 (avx512f_expand<mode>): New.
25188 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25190 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25192 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25193 (_mm512_prefetch_i32scatter_pd): Ditto.
25194 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25195 (_mm512_prefetch_i64scatter_pd): Ditto.
25196 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25197 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25198 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25199 (_mm512_prefetch_i32scatter_ps): Ditto.
25200 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25201 (_mm512_prefetch_i64scatter_ps): Ditto.
25202 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25203 * config/i386/i386-builtin-types.def: Define
25204 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25205 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25206 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25207 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25208 IX86_BUILTIN_SCATTERPFQPD.
25209 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25210 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25211 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25212 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25213 __builtin_ia32_scatterpfqps.
25214 (ix86_expand_builtin): Expand new built-ins.
25215 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25216 fix memory access data type.
25217 (*avx512pf_gatherpf<mode>_mask): Ditto.
25218 (*avx512pf_gatherpf<mode>): Ditto.
25219 (avx512pf_scatterpf<mode>): Ditto.
25220 (*avx512pf_scatterpf<mode>_mask): Ditto.
25221 (*avx512pf_scatterpf<mode>): Ditto.
25222 (GATHER_SCATTER_SF_MEM_MODE): New.
25223 (avx512pf_gatherpf<mode>df): Ditto.
25224 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25225 (*avx512pf_scatterpf<mode>df): Ditto.
25227 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25230 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25231 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25234 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25236 * common/config/arm/arm-common.c
25237 (arm_rewrite_mcpu): Handle multiple names.
25239 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25241 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25243 * gimple-builder.h (create_gimple_tmp): Delete.
25245 2014-01-27 Christian Bruel <christian.bruel@st.com>
25247 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25250 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25252 * config/pa/pa.md (call): Generate indirect long calls to non-local
25253 functions when outputing 32-bit code.
25254 (call_value): Likewise except for special call to buggy powf function.
25256 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25257 portable runtime and PIC indirect calls.
25258 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25259 and PIC call sequences. Use ldo instead of blr to set return register
25260 in PIC call sequence.
25262 2014-01-25 Walter Lee <walt@tilera.com>
25264 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25265 avoid clobbering a live register.
25267 2014-01-25 Walter Lee <walt@tilera.com>
25269 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25270 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25271 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25272 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25274 2014-01-25 Walter Lee <walt@tilera.com>
25276 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25277 arguments on even registers.
25278 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25280 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25281 (BIGGEST_ALIGNMENT): Ditto.
25282 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25284 2014-01-25 Walter Lee <walt@tilera.com>
25286 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25287 insns before bundling.
25288 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25290 2014-01-25 Walter Lee <walt@tilera.com>
25292 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25293 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25294 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25296 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25298 * config/mips/constraints.md (kl): Delete.
25299 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25300 define expands, using...
25301 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25302 instructions for MIPS16.
25303 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25304 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25306 2014-01-25 Walter Lee <walt@tilera.com>
25308 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25312 2014-01-25 Walter Lee <walt@tilera.com>
25314 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25315 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25317 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25319 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25322 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25324 * print-rtl.c (in_call_function_usage): New var.
25325 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25326 EXPR_LIST mode as mode and not as reg note name.
25328 PR middle-end/59561
25329 * cfgloopmanip.c (copy_loop_info): If
25330 loop->warned_aggressive_loop_optimizations, make sure
25331 the flag is set in target loop too.
25333 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25335 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25337 * builtins.def: Likewise.
25338 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25339 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25340 * ira.c (ira_setup_eliminable_regset): Likewise.
25341 * omp-low.c (gate_expand_omp): Likewise.
25342 (execute_lower_omp): Likewise.
25343 (diagnose_sb_0): Likewise.
25344 (gate_diagnose_omp_blocks): Likewise.
25345 (simd_clone_clauses_extract): Likewise.
25348 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25350 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25351 correction for little endian...
25352 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25355 2014-01-24 Jeff Law <law@redhat.com>
25357 PR tree-optimization/59919
25358 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25359 for non-returning calls.
25361 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25363 * common/config/aarch64/aarch64-common.c
25364 (aarch64_rewrite_mcpu): Handle multiple names.
25365 * config/aarch64/aarch64.h
25366 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25368 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25370 * input.c (add_file_to_cache_tab): Handle the case where fopen
25373 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25376 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25377 from push operand if code of push isn't PRE_DEC.
25379 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25382 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25383 -mquad-memory-atomic. Update -mquad-memory documentation to say
25384 it is only used for non-atomic loads/stores.
25386 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25387 -mquad-memory or -mquad-memory-atomic switches.
25389 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25390 -mquad-memory-atomic to ISA 2.07 support.
25392 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25393 to separate support of normal quad word memory operations (ldq, stq)
25394 from the atomic quad word memory operations.
25396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25397 support to separate non-atomic quad word operations from atomic
25398 quad word operations. Disable non-atomic quad word operations in
25399 little endian mode so that we don't have to swap words after the
25400 load and before the store.
25401 (quad_load_store_p): Add comment about atomic quad word support.
25402 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25403 options printed with -mdebug=reg.
25405 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25406 -mquad-memory-atomic as the test for whether we have quad word
25407 atomic instructions.
25408 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25409 or -mp8-vector are used, allow byte/half-word atomic operations.
25411 * config/rs6000/sync.md (load_lockedti): Insure that the address
25412 is a proper indexed or indirect address for the lqarx instruction.
25413 On little endian systems, swap the hi/lo registers after the lqarx
25415 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25416 insure the address is valid for the lqarx instruction.
25417 (store_conditionalti): Insure that the address is a proper indexed
25418 or indirect address for the stqcrx. instruction. On little endian
25419 systems, swap the hi/lo registers before doing the stqcrx.
25421 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25422 insure the address is valid for the stqcrx. instruction.
25424 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25425 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25426 type of quad memory support is available.
25428 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25430 PR regression/59915
25431 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25432 there is a danger of looping.
25434 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25436 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25437 force flag_ira_loop_pressure if set via command line.
25439 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25441 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25442 (ashr_simd): New builtin handling DI mode.
25443 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25444 (aarch64_sshr_simddi): New match pattern.
25445 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25446 (vshrd_n_s64): Likewise.
25447 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25449 2014-01-23 Nick Clifton <nickc@redhat.com>
25451 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25452 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25453 favour of mcu specific scripts.
25454 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25457 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25458 Alex Velenko <Alex.Velenko@arm.com>
25460 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25461 (vaddv_s16): Likewise.
25462 (vaddv_s32): Likewise.
25463 (vaddv_u8): Likewise.
25464 (vaddv_u16): Likewise.
25465 (vaddv_u32): Likewise.
25466 (vaddvq_s8): Likewise.
25467 (vaddvq_s16): Likewise.
25468 (vaddvq_s32): Likewise.
25469 (vaddvq_s64): Likewise.
25470 (vaddvq_u8): Likewise.
25471 (vaddvq_u16): Likewise.
25472 (vaddvq_u32): Likewise.
25473 (vaddvq_u64): Likewise.
25474 (vaddv_f32): Likewise.
25475 (vaddvq_f32): Likewise.
25476 (vaddvq_f64): Likewise.
25477 (vmaxv_f32): Likewise.
25478 (vmaxv_s8): Likewise.
25479 (vmaxv_s16): Likewise.
25480 (vmaxv_s32): Likewise.
25481 (vmaxv_u8): Likewise.
25482 (vmaxv_u16): Likewise.
25483 (vmaxv_u32): Likewise.
25484 (vmaxvq_f32): Likewise.
25485 (vmaxvq_f64): Likewise.
25486 (vmaxvq_s8): Likewise.
25487 (vmaxvq_s16): Likewise.
25488 (vmaxvq_s32): Likewise.
25489 (vmaxvq_u8): Likewise.
25490 (vmaxvq_u16): Likewise.
25491 (vmaxvq_u32): Likewise.
25492 (vmaxnmv_f32): Likewise.
25493 (vmaxnmvq_f32): Likewise.
25494 (vmaxnmvq_f64): Likewise.
25495 (vminv_f32): Likewise.
25496 (vminv_s8): Likewise.
25497 (vminv_s16): Likewise.
25498 (vminv_s32): Likewise.
25499 (vminv_u8): Likewise.
25500 (vminv_u16): Likewise.
25501 (vminv_u32): Likewise.
25502 (vminvq_f32): Likewise.
25503 (vminvq_f64): Likewise.
25504 (vminvq_s8): Likewise.
25505 (vminvq_s16): Likewise.
25506 (vminvq_s32): Likewise.
25507 (vminvq_u8): Likewise.
25508 (vminvq_u16): Likewise.
25509 (vminvq_u32): Likewise.
25510 (vminnmv_f32): Likewise.
25511 (vminnmvq_f32): Likewise.
25512 (vminnmvq_f64): Likewise.
25514 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25516 * config/aarch64/aarch64-simd.md
25517 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25518 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25519 (*aarch64_mul3_elt<mode>): Likewise.
25520 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25521 (*aarch64_mul3_elt_to_64v2df): Likewise.
25522 (*aarch64_mla_elt<mode>): Likewise.
25523 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25524 (*aarch64_mls_elt<mode>): Likewise.
25525 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25526 (*aarch64_fma4_elt<mode>): Likewise.
25527 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25528 (*aarch64_fma4_elt_to_64v2df): Likewise.
25529 (*aarch64_fnma4_elt<mode>): Likewise.
25530 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25531 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25532 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25533 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25534 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25535 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25536 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25537 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25538 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25540 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25542 * config/aarch64/aarch64-simd.md
25543 (aarch64_be_checked_get_lane<mode>): New define_expand.
25544 * config/aarch64/aarch64-simd-builtins.def
25545 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25546 New builtin definition.
25547 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25548 Use new safe be builtin.
25550 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25552 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25554 (aarch64_be_st1<mode>): Likewise.
25555 (aarch_ld1<VALL:mode>): Define_expand modified.
25556 (aarch_st1<VALL:mode>): Likewise.
25557 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25558 (UNSPEC_ST1): Likewise.
25560 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25562 * config/microblaze/microblaze.md: Add trap insn and attribute
25564 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25566 PR preprocessor/58580
25567 * input.h (location_get_source_line): Take an additional line_size
25569 (void diagnostics_file_cache_fini): Declare new function.
25570 * input.c (struct fcache): New type.
25571 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25572 New static constants.
25573 (diagnostic_file_cache_init, total_lines_num)
25574 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25575 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25576 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25577 (get_next_line, read_next_line, goto_next_line, read_line_num):
25578 New static function definitions.
25579 (diagnostic_file_cache_fini): New function.
25580 (location_get_source_line): Take an additional output line_len
25581 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25583 * diagnostic.c (diagnostic_finish): Call
25584 diagnostic_file_cache_fini.
25585 (adjust_line): Take an additional input parameter for the length
25586 of the line, rather than calculating it with strlen.
25587 (diagnostic_show_locus): Adjust the use of
25588 location_get_source_line and adjust_line with respect to their new
25589 signature. While displaying a line now, do not stop at the first
25590 null byte. Rather, display the zero byte as a space and keep
25591 going until we reach the size of the line.
25592 * Makefile.in: Add vec.o to OBJS-libcommon
25594 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25595 Ilya Tocar <ilya.tocar@intel.com>
25597 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25598 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25599 (__builtin_ia32_kmov16): Ditto.
25600 * config/i386/i386.md (UNSPEC_KMOV): New.
25603 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25605 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25606 (_mm512_storeu_si512): Ditto.
25608 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25611 * rtl.h (get_referenced_operands): Declare.
25612 * recog.c (get_referenced_operands): New function.
25613 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25614 operands have been referenced when recording LO_SUM references.
25616 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25618 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25620 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25622 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25623 Enable for generic and recent AMD targets.
25625 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25627 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25628 ARG_SIZE note when adjustment was eliminated.
25630 2014-01-22 Jeff Law <law@redhat.com>
25632 PR tree-optimization/59597
25633 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25634 in file. Accept new argument REGISTERING and use it to modify
25635 dump output appropriately.
25636 (register_jump_thread): Corresponding changes.
25637 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25638 thread paths involving joiner blocks. Add code to dump cancelled
25639 jump threading paths.
25641 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25643 PR rtl-optimization/59477
25644 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25645 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25647 2014-01-22 Tom Tromey <tromey@redhat.com>
25649 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25651 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25653 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25655 PR rtl-optimization/59896
25656 * lra-constraints.c (process_alt_operands): Check unused note for
25657 matched operands of insn with no output reloads.
25659 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25661 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25662 (mips_move_from_gpr_cost): Likewise.
25664 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25666 PR rtl-optimization/59858
25667 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25668 ira_class_hard_regs_num.
25669 (process_alt_operands): Increase reject for dying matched operand.
25671 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25674 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25675 smaller than size, perform several stores or loads and stores
25676 at dst + count - size to store or copy all of size bytes, rather
25677 than just last modesize bytes.
25679 2014-01-20 DJ Delorie <dj@redhat.com>
25681 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25682 that CLOBBERs are REGs before propogating their values.
25684 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25686 PR middle-end/59789
25687 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25688 (cgraph_inline_failed_type): New function.
25689 * cgraph.h (DEFCIFCODE): Add type.
25690 (cgraph_inline_failed_type_t): New enum.
25691 (cgraph_inline_failed_type): New prototype.
25692 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25693 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25694 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25695 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25696 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25697 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25698 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25699 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25700 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25701 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25702 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25703 OPTIMIZATION_MISMATCH.
25704 * tree-inline.c (expand_call_inline): Emit errors during
25705 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25707 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25710 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25711 mode attribute in insn output.
25713 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25715 * output.h (output_constant): Delete.
25716 * varasm.c (output_constant): Make private.
25718 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25720 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25722 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25724 PR middle-end/59860
25725 * tree.h (fold_builtin_strcat): New prototype.
25726 * builtins.c (fold_builtin_strcat): No longer static. Add len
25727 argument, if non-NULL, don't call c_strlen. Optimize
25728 directly into __builtin_memcpy instead of __builtin_strcpy.
25729 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25730 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25732 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25734 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25735 for SImode_address_operand operands, having only a REG argument.
25737 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25739 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25740 loader name using mbig-endian.
25741 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25743 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25745 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25746 (-mtune): Likewise.
25749 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25751 * config/aarch64/aarch64-protos.h
25752 (aarch64_cannot_change_mode_class_ptr): Declare.
25753 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25754 aarch64_cannot_change_mode_class_ptr): New.
25755 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25756 backend hook aarch64_cannot_change_mode_class.
25758 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25760 * common/config/aarch64/aarch64-common.c
25761 (aarch64_handle_option): Don't handle any option order logic here.
25762 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25763 selected_cpu, warn on architecture version mismatch.
25764 (aarch64_override_options): Fix parsing order for option strings.
25766 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25767 Iain Sandoe <iain@codesourcery.com>
25770 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25771 warning. Amend comment to reflect current functionality.
25773 2014-01-20 Richard Biener <rguenther@suse.de>
25775 PR middle-end/59860
25776 * builtins.c (fold_builtin_strcat): Remove case better handled
25777 by tree-ssa-strlen.c.
25779 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25781 * config/aarch64/aarch64.opt
25782 (mcpu, march, mtune): Make case-insensitive.
25784 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25787 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25788 if operands[1] is a REG or ZERO_EXTEND of a REG.
25790 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25792 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25794 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25796 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25797 long non-pic millicode calls.
25799 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25801 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25803 2014-01-19 Kito Cheng <kito@0xlab.org>
25805 * builtins.c (expand_movstr): Check movstr expand done or fail.
25807 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25808 H.J. Lu <hongjiu.lu@intel.com>
25811 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25812 to DImode for zero-extended addresses.
25814 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25816 PR rtl-optimization/57763
25817 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25818 on the new indirect jump_insn and increment LABEL_NUSES (label).
25820 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25824 * config.gcc (x86_archs): New variable.
25825 (x86_64_archs): Likewise.
25826 (x86_cpus): Likewise.
25827 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25828 --with-arch/--with-cpu= options.
25829 Support --with-arch=/--with-cpu={nehalem,westmere,
25830 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25832 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25834 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25835 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25837 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25839 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25841 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25844 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25845 clear cpp_get_options (parse_in)->warn_unused_macros for
25846 ix86_target_macros_internal with cpp_define.
25848 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25850 * jump.c (delete_related_insns): Keep (use (insn))s.
25851 * reorg.c (redundant_insn): Check for barriers too.
25853 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25855 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25857 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25859 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25860 call to $$dyncall when TARGET_LONG_CALLS is true.
25862 2014-01-17 Jeff Law <law@redhat.com>
25864 * ree.c (combine_set_extension): Temporarily disable test for
25865 changing number of hard registers.
25867 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25869 PR middle-end/58125
25870 * ipa-inline-analysis.c (inline_free_summary):
25871 Do not free summary of aliases.
25873 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25875 PR middle-end/59706
25876 * gimplify.c (gimplify_expr): Use create_tmp_var
25877 instead of create_tmp_var_raw. If cond doesn't have
25878 integral type, don't add the IFN_ANNOTATE builtin at all.
25880 2014-01-17 Martin Jambor <mjambor@suse.cz>
25883 * ipa-cp.c (prev_edge_clone): New variable.
25884 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25885 Also resize prev_edge_clone vector.
25886 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25887 (ipcp_edge_removal_hook): New function.
25888 (ipcp_driver): Register ipcp_edge_removal_hook.
25890 2014-01-17 Andrew Pinski <apinski@cavium.com>
25891 Steve Ellcey <sellcey@mips.com>
25894 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25897 2014-01-17 Jeff Law <law@redhat.com>
25899 PR middle-end/57904
25900 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25901 so that pass_ccp runs first.
25903 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25905 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25906 (ix86_adjust_cost): Use !TARGET_XXX.
25907 (do_reorder_for_imul): Likewise.
25908 (swap_top_of_ready_list): Likewise.
25909 (ix86_sched_reorder): Likewise.
25911 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25913 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25914 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25915 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25916 (intel_memset): New. Duplicate slm_memset.
25917 (intel_cost): New. Duplicate slm_cost.
25918 (m_INTEL): New macro.
25919 (processor_target_table): Add "intel".
25920 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25921 with PROCESSOR_INTEL for "intel".
25922 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25923 PROCESSOR_SILVERMONT.
25924 (ix86_issue_rate): Likewise.
25925 (ix86_adjust_cost): Likewise.
25926 (ia32_multipass_dfa_lookahead): Likewise.
25927 (swap_top_of_ready_list): Likewise.
25928 (ix86_sched_reorder): Likewise.
25929 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25930 instead of TARGET_OPT_AGU.
25931 * config/i386/i386.h (TARGET_INTEL): New.
25932 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25933 (processor_type): Add PROCESSOR_INTEL.
25934 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25935 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25937 2014-01-17 Marek Polacek <polacek@redhat.com>
25940 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25943 2014-01-17 Richard Biener <rguenther@suse.de>
25945 PR tree-optimization/46590
25946 * opts.c (default_options_table): Add entries for
25947 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25948 all enabled at -O1 but not for -Og.
25949 * common.opt (fbranch-count-reg): Remove Init(1).
25950 (fmove-loop-invariants): Likewise.
25951 (ftree-pta): Likewise.
25953 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25955 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25956 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25957 decls to at least the GCC 4.8 used alignments.
25960 * tree-nested.c (convert_nonlocal_reference_stmt,
25961 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25962 of GIMPLE_BIND stmts, adjust associated decls.
25964 2014-01-17 Richard Biener <rguenther@suse.de>
25966 PR tree-optimization/46590
25967 * vec.h (vec<>::bseach): New member function implementing
25968 binary search according to C89 bsearch.
25969 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25970 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25971 bitmap pointer again. Make accesses_in_loop a flat array.
25972 (mem_ref_obstack): New global.
25973 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25974 (mark_ref_stored): Likewise.
25975 (ref_indep_loop_p_2): Likewise.
25976 (set_ref_stored_in_loop): New helper function.
25977 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25978 (memref_free): Adjust.
25979 (record_mem_ref_loc): Simplify.
25980 (gather_mem_refs_stmt): Adjust.
25981 (sort_locs_in_loop_postorder_cmp): New function.
25982 (analyze_memory_references): Sort accesses_in_loop after
25983 loop postorder number.
25984 (find_ref_loc_in_loop_cmp): New function.
25985 (for_all_locs_in_loop): Find relevant cluster of locs in
25986 accesses_in_loop and iterate without recursion.
25987 (execute_sm): Avoid uninit warning.
25988 (struct ref_always_accessed): Simplify.
25989 (ref_always_accessed::operator ()): Likewise.
25990 (ref_always_accessed_p): Likewise.
25991 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25992 loop postorder numbers here.
25993 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25996 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25999 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26000 on decls for which assemble_alias has been called.
26002 2014-01-17 Nick Clifton <nickc@redhat.com>
26004 * config/msp430/msp430.opt: (mcpu): New option.
26005 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26006 (msp430_option_override): Parse target_cpu. If the MCU name
26007 matches a generic string, clear target_mcu.
26008 (msp430_attr): Allow numeric interrupt values up to 63.
26009 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26010 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26012 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26014 * config/msp430/msp430.md (popm): Use %J rather than %I.
26015 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26016 (addhi_cy_i): Use immediate_operand for operand 2.
26017 * doc/invoke.texi: Document -mcpu option.
26019 2014-01-17 Richard Biener <rguenther@suse.de>
26021 PR rtl-optimization/38518
26022 * df.h (df_analyze_loop): Declare.
26023 * df-core.c: Include cfgloop.h.
26024 (df_analyze_1): Split out main part of df_analyze.
26025 (df_analyze): Adjust.
26026 (loop_inverted_post_order_compute): New function.
26027 (loop_post_order_compute): Likewise.
26028 (df_analyze_loop): New function avoiding whole-function
26029 postorder computes.
26030 * loop-invariant.c (find_defs): Use df_analyze_loop.
26031 (find_invariants): Adjust.
26032 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26034 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26036 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26037 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26039 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26041 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26042 traversal when removing references.
26044 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26047 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26049 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26051 PR middle-end/56791
26052 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26053 pushing a reload for an autoinc when we had previously reloaded an
26054 inner part of the address.
26056 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26058 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26060 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26061 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26062 when not giving up or versioning for alias only because of
26064 (vect_analyze_data_ref_dependences): Set to true.
26065 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26067 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26068 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26071 PR middle-end/58344
26072 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26075 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26076 operand 0 predicate for gathers, use a new pseudo as subtarget.
26078 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26080 PR middle-end/59609
26081 * lra-constraints.c (process_alt_operands): Add printing debug info.
26082 Check absence of input/output reloads for matched operands too.
26084 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26086 PR rtl-optimization/59835
26087 * ira.c (ira_init_register_move_cost): Increase cost for
26090 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26092 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26094 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26097 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26098 non-register objects. Use gen_(high/low)part more consistently.
26101 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26104 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26105 endian support, remove tests for WORDS_BIG_ENDIAN.
26106 (p8_mfvsrd_3_<mode>): Likewise.
26107 (reload_gpr_from_vsx<mode>): Likewise.
26108 (reload_gpr_from_vsxsf): Likewise.
26109 (p8_mfvsrd_4_disf): Likewise.
26111 2014-01-16 Richard Biener <rguenther@suse.de>
26113 PR rtl-optimization/46590
26114 * lcm.c (compute_antinout_edge): Use postorder iteration.
26115 (compute_laterin): Use inverted postorder iteration.
26117 2014-01-16 Nick Clifton <nickc@redhat.com>
26119 PR middle-end/28865
26120 * varasm.c (output_constant): Return the number of bytes actually
26122 (output_constructor_array_range): Update the field size with the
26123 number of bytes emitted by output_constant.
26124 (output_constructor_regular_field): Likewise. Also do not
26125 complain if the total number of bytes emitted is now greater
26126 than the expected fieldpos.
26127 * output.h (output_constant): Update prototype and descriptive comment.
26129 2014-01-16 Marek Polacek <polacek@redhat.com>
26131 PR middle-end/59827
26132 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26133 it is error_mark_node.
26135 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26137 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26138 VALID_AVX256_REG_OR_OI_MODE.
26140 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26142 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26143 current procedure should be profiled.
26145 2014-01-15 Andrew Pinski <apinski@cavium.com>
26147 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26148 of moving from/to the STACK_REG register class.
26150 2014-01-15 Richard Henderson <rth@redhat.com>
26153 * reginfo.c (global_regs_decl): Globalize.
26154 * rtl.h (global_regs_decl): Declare.
26155 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26156 reserved via global_regs.
26158 2014-01-15 Teresa Johnson <tejohnson@google.com>
26160 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26162 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26164 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26165 and vmulosh rather than call gen_vec_widen_smult_*.
26166 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26167 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26168 (vec_widen_smult_even_v16qi): Likewise.
26169 (vec_widen_umult_even_v8hi): Likewise.
26170 (vec_widen_smult_even_v8hi): Likewise.
26171 (vec_widen_umult_odd_v16qi): Likewise.
26172 (vec_widen_smult_odd_v16qi): Likewise.
26173 (vec_widen_umult_odd_v8hi): Likewise.
26174 (vec_widen_smult_odd_v8hi): Likewise.
26175 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26176 vmuloub rather than call gen_vec_widen_umult_*.
26177 (vec_widen_umult_lo_v16qi): Likewise.
26178 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26179 vmulosb rather than call gen_vec_widen_smult_*.
26180 (vec_widen_smult_lo_v16qi): Likewise.
26181 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26182 rather than call gen_vec_widen_umult_*.
26183 (vec_widen_umult_lo_v8hi): Likewise.
26184 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26185 rather than call gen_vec_widen_smult_*.
26186 (vec_widen_smult_lo_v8hi): Likewise.
26188 2014-01-15 Jeff Law <law@redhat.com>
26190 PR tree-optimization/59747
26191 * ree.c (find_and_remove_re): Properly handle case where a second
26192 eliminated extension requires widening a copy created for elimination
26193 of a prior extension.
26194 (combine_set_extension): Ensure that the number of hard regs needed
26195 for a destination register does not change when we widen it.
26197 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26199 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26200 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26201 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26202 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26203 (avr-*-rtems*): Likewise.
26204 (bfin*-rtems*): Likewise.
26205 (moxie-*-rtems*): Likewise.
26206 (h8300-*-rtems*): Likewise.
26207 (i[34567]86-*-rtems*): Likewise.
26208 (lm32-*-rtems*): Likewise.
26209 (m32r-*-rtems*): Likewise.
26210 (m68k-*-rtems*): Likewise.
26211 (microblaze*-*-rtems*): Likewise.
26212 (mips*-*-rtems*): Likewise.
26213 (powerpc-*-rtems*): Likewise.
26214 (sh-*-rtems*): Likewise.
26215 (sparc-*-rtems*): Likewise.
26216 (sparc64-*-rtems*): Likewise.
26217 (v850-*-rtems*): Likewise.
26218 (m32c-*-rtems*): Likewise.
26220 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26222 PR rtl-optimization/59511
26223 * ira.c (ira_init_register_move_cost): Use memory costs for some
26224 cases of register move cost calculations.
26225 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26226 instead of BB frequency.
26227 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26228 * lra-assigns.c (find_hard_regno_for): Ditto.
26230 2014-01-15 Richard Biener <rguenther@suse.de>
26232 PR tree-optimization/59822
26233 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26234 (vectorizable_load): Use it to hoist defs of uses of invariant
26235 loads out of the loop.
26237 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26238 Kugan Vivekanandarajah <kuganv@linaro.org>
26241 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26244 2014-01-15 Richard Biener <rguenther@suse.de>
26246 PR rtl-optimization/59802
26247 * lcm.c (compute_available): Use inverted postorder to seed
26248 the initial worklist.
26250 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26253 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26254 ADDR_REGS for invalid symrefs in non-PIC code.
26256 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26259 * builtins.c (determine_block_size): Initialize *probable_max_size
26260 even if len_rtx is CONST_INT.
26262 2014-01-14 Andrew Pinski <apinski@cavium.com>
26264 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26265 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26266 (cortexa53_tunings): Likewise.
26267 (aarch64_sched_issue_rate): New function.
26268 (TARGET_SCHED_ISSUE_RATE): Define.
26270 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26272 * ira-costs.c (find_costs_and_classes): Add missed
26273 ira_init_register_move_cost_if_necessary.
26275 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26278 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26280 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26283 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26284 to indicate if type is used for function return value. Warn ABI
26285 change if the vector mode isn't available for function return value.
26286 (ix86_function_arg_advance): Pass false to type_natural_mode.
26287 (ix86_function_arg): Likewise.
26288 (ix86_gimplify_va_arg): Likewise.
26289 (function_arg_32): Don't warn ABI change.
26290 (ix86_function_value): Pass true to type_natural_mode.
26291 (ix86_return_in_memory): Likewise.
26292 (ix86_struct_value_rtx): Removed.
26293 (TARGET_STRUCT_VALUE_RTX): Likewise.
26295 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26297 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26298 converting a conditional jump into a conditional return.
26300 2014-01-14 Richard Biener <rguenther@suse.de>
26302 PR tree-optimization/58921
26303 PR tree-optimization/59006
26304 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26305 hoisting invariant stmts.
26306 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26307 invariant loads on the preheader edge if possible.
26309 2014-01-14 Joey Ye <joey.ye@arm.com>
26311 * doc/plugin.texi (Building GCC plugins): Update to C++.
26313 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26315 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26316 (_mm_rcp28_round_ss): Ditto.
26317 (_mm_rsqrt28_round_sd): Ditto.
26318 (_mm_rsqrt28_round_ss): Ditto.
26319 (_mm_rcp28_sd): Ditto.
26320 (_mm_rcp28_ss): Ditto.
26321 (_mm_rsqrt28_sd): Ditto.
26322 (_mm_rsqrt28_ss): Ditto.
26323 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26324 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26325 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26326 (IX86_BUILTIN_RCP28SD): Ditto.
26327 (IX86_BUILTIN_RCP28SS): Ditto.
26328 (IX86_BUILTIN_RSQRT28SD): Ditto.
26329 (IX86_BUILTIN_RSQRT28SS): Ditto.
26330 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26331 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26332 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26333 (ix86_expand_special_args_builtin): Expand new FTYPE.
26334 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26335 (srcp14<mode>): Make insn unary.
26336 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26337 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26338 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26339 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26340 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26341 Fix rounding: make it SAE only.
26342 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26344 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26346 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26347 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26348 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26349 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26350 (round_saeonly_mask_scalar_operand4): Ditto.
26351 (round_saeonly_mask_scalar_op3): Ditto.
26352 (round_saeonly_mask_scalar_op4): Ditto.
26354 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26356 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26357 Implement -maltivec=be for vec_insert and vec_extract.
26359 2014-01-10 DJ Delorie <dj@redhat.com>
26361 * config/msp430/msp430.md (call_internal): Don't allow memory
26362 references with SP as the base register.
26363 (call_value_internal): Likewise.
26364 * config/msp430/constraints.md (Yc): New. For memory references
26365 that don't use SP as a base register.
26367 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26368 "an integer without a # prefix"
26369 * config/msp430/msp430.md (epilogue_helper): Use it.
26371 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26374 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26375 AVX512F gather builtins.
26376 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26377 on gather decls with INTEGER_TYPE masktype.
26378 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26379 directly into the builtin rather than hoisting it before loop.
26381 PR tree-optimization/59387
26382 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26383 (scev_const_prop): If folded_casts and type has undefined overflow,
26384 use force_gimple_operand instead of force_gimple_operand_gsi and
26385 for each added stmt if it is assign with
26386 arith_code_with_undefined_signed_overflow, call
26387 rewrite_to_defined_overflow.
26388 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26389 gimple-fold.h instead.
26390 (arith_code_with_undefined_signed_overflow,
26391 rewrite_to_defined_overflow): Moved to ...
26392 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26393 rewrite_to_defined_overflow): ... here. No longer static.
26394 Include gimplify-me.h.
26395 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26396 rewrite_to_defined_overflow): New prototypes.
26398 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26400 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26402 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26404 * builtins.c (get_object_alignment_2): Minor tweak.
26405 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26407 2014-01-13 Christian Bruel <christian.bruel@st.com>
26409 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26410 optimized non constant lengths.
26412 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26415 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26416 load as __atomic_load_N if possible.
26418 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26420 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26422 (rs6000_expand_builtin): Adjust call.
26424 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26427 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26428 * config/rs6000/rs6000.c: Include target-globals.h.
26429 (rs6000_set_current_function): Instead of doing target_reinit
26430 unconditionally, use save_target_globals_default_opts and
26431 restore_target_globals.
26433 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26435 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26436 (rs6000_expand_builtin): Handle mffs and mtfsf.
26437 (rs6000_init_builtins): Define mffs and mtfsf.
26438 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26439 (rs6000_mffs): New pattern.
26440 (rs6000_mtfsf): New pattern.
26442 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26444 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26445 Start narrowing with START. Apply candidate-use pair
26446 and check overall cost in narrowing.
26447 (iv_ca_prune): Pass new argument.
26449 2014-01-10 Jeff Law <law@redhat.com>
26451 PR middle-end/59743
26452 * ree.c (combine_reaching_defs): Ensure the defining statement
26453 occurs before the extension when optimizing extensions with
26454 different source and destination hard registers.
26456 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26459 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26460 vtables into the type inheritance graph.
26462 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26464 PR rtl-optimization/59754
26465 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26466 modes in the REGNO != REGNO case.
26468 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26470 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26472 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26474 PR tree-optimization/59745
26475 * tree-predcom.c (tree_predictive_commoning_loop): Call
26476 free_affine_expand_cache if giving up because components is NULL.
26478 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26479 GC in payload of target_globals struct instead of allocating them on
26480 the heap and the larger structs separately using GC.
26481 * target-globals.h (struct target_globals): Make regs, hard_regs,
26482 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26483 of GTY((skip)) and change type to void *.
26484 (reset_target_globals): Cast loads from those fields to corresponding
26487 2014-01-10 Steve Ellcey <sellcey@mips.com>
26490 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26491 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26492 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26494 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26497 * aarch64-modes.def (CC_Zmode): New flags mode.
26498 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26499 represents an equality.
26500 (aarch64_get_condition_code): Handle CC_Zmode.
26501 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26503 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26505 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26506 extraction in good case.
26508 2014-01-10 Richard Biener <rguenther@suse.de>
26510 PR tree-optimization/59374
26511 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26512 checking after SLP discovery. Mark stmts not participating
26513 in any SLP instance properly.
26515 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26517 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26518 when handling a SET rtx.
26520 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26522 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26523 (cortex-a57): Likewise.
26524 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26526 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26528 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26529 non-iwmmxt builtins.
26531 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26535 * ipa-devirt.c record_target_from_binfo): Take as argument
26536 stack of binfos and lookup matching one for virtual inheritance.
26537 (possible_polymorphic_call_targets_1): Update.
26539 2014-01-10 Huacai Chen <chenhc@lemote.com>
26541 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26542 kernel strings for Loongson-2E/2F/3A.
26544 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26546 PR middle-end/59670
26547 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26548 is_gimple_call before calling gimple_call_internal_p.
26550 2014-01-09 Steve Ellcey <sellcey@mips.com>
26552 * Makefile.in (TREE_FLOW_H): Remove.
26553 (TREE_SSA_H): Add file names from tree-flow.h.
26554 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26555 * tree.h: Remove tree-flow.h reference.
26556 * hash-table.h: Remove tree-flow.h reference.
26557 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26558 reference with tree-ssa-loop.h.
26560 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26562 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26563 default element-order behavior for -maltivec.
26564 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26565 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26566 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26567 when targeting big endian, at least for now.
26568 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26570 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26572 PR middle-end/47735
26573 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26574 var satisfies use_register_for_decl, just take into account type
26575 alignment, rather than decl alignment.
26577 PR tree-optimization/59622
26578 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26579 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26580 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26581 Don't devirtualize for inplace at all. For targets.length () == 1,
26582 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26584 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26586 * config/i386/i386.md (cpu): Remove the unused btver1.
26588 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26590 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26592 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26595 * tree-core.h (struct target_globals): New forward declaration.
26596 (struct tree_target_option): Add globals field.
26597 * tree.h (TREE_TARGET_GLOBALS): Define.
26598 (prepare_target_option_nodes_for_pch): New prototype.
26599 * target-globals.h (struct target_globals): Define even if
26600 !SWITCHABLE_TARGET.
26601 * tree.c (prepare_target_option_node_for_pch,
26602 prepare_target_option_nodes_for_pch): New functions.
26603 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26604 * config/i386/i386.c: Include target-globals.h.
26605 (ix86_set_current_function): Instead of doing target_reinit
26606 unconditionally, use save_target_globals_default_opts and
26607 restore_target_globals.
26609 2014-01-09 Richard Biener <rguenther@suse.de>
26611 PR tree-optimization/59715
26612 * tree-cfg.h (split_critical_edges): Declare.
26613 * tree-cfg.c (split_critical_edges): Export.
26614 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26616 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26618 * cfgexpand.c (expand_stack_vars): Optionally disable
26619 asan stack protection.
26620 (expand_used_vars): Likewise.
26621 (partition_stack_vars): Likewise.
26622 * asan.c (asan_emit_stack_protection): Optionally disable
26623 after return stack usage.
26624 (instrument_derefs): Optionally disable memory access instrumentation.
26625 (instrument_builtin_call): Likewise.
26626 (instrument_strlen_call): Likewise.
26627 (asan_protect_global): Optionally disable global variables protection.
26628 * doc/invoke.texi: Added doc for new options.
26629 * params.def: Added new options.
26630 * params.h: Likewise.
26632 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26634 PR rtl-optimization/59724
26635 * ifcvt.c (cond_exec_process_if_block): Don't call
26636 flow_find_head_matching_sequence with 0 longest_match.
26637 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26638 non-active insns if !stop_after.
26639 (try_head_merge_bb): Revert 2014-01-07 changes.
26641 2014-01-08 Jeff Law <law@redhat.com>
26643 * ree.c (get_sub_rtx): New function, extracted from...
26644 (merge_def_and_ext): Here.
26645 (combine_reaching_defs): Use get_sub_rtx.
26647 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26649 * cgraph.h (varpool_variable_node): Do not choke on null node.
26651 2014-01-08 Catherine Moore <clm@codesourcery.com>
26653 * config/mips/mips.md (simple_return): Attempt to use JRC
26655 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26657 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26659 PR rtl-optimization/59137
26660 * reorg.c (steal_delay_list_from_target): Call update_block for
26662 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26664 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26666 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26667 two duplicate entries.
26669 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26672 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26674 * config/mips/mips.c (mips_truncated_op_cost): New function.
26675 (mips_rtx_costs): Adjust test for BADDU.
26676 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26678 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26680 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26681 (*baddu_si): ...this new pattern.
26683 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26686 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26688 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26690 PR middle-end/57748
26691 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26693 (expand_expr, expand_normal): Adjust.
26694 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26695 inner_reference_p. Use inner_reference_p to expand inner references.
26696 (store_expr): Adjust.
26697 * cfgexpand.c (expand_call_stmt): Adjust.
26699 2014-01-08 Rong Xu <xur@google.com>
26701 * gcov-io.c (gcov_var): Move from gcov-io.h.
26702 (gcov_position): Ditto.
26703 (gcov_is_error): Ditto.
26704 (gcov_rewrite): Ditto.
26705 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26706 only part to libgcc/libgcov.h.
26708 2014-01-08 Marek Polacek <polacek@redhat.com>
26710 PR middle-end/59669
26711 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26713 2014-01-08 Marek Polacek <polacek@redhat.com>
26716 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26718 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26720 PR rtl-optimization/59649
26721 * stor-layout.c (get_mode_bounds): For BImode return
26722 0 and STORE_FLAG_VALUE.
26724 2014-01-08 Richard Biener <rguenther@suse.de>
26726 PR middle-end/59630
26727 * gimple.h (is_gimple_builtin_call): Remove.
26728 (gimple_builtin_call_types_compatible_p): New.
26729 (gimple_call_builtin_p): New overload.
26730 * gimple.c (is_gimple_builtin_call): Remove.
26731 (validate_call): Rename to ...
26732 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26733 check return types.
26734 (validate_type): New static function.
26735 (gimple_call_builtin_p): New overload and adjust.
26736 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26737 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26738 (gimple_fold_stmt_to_constant_1): Likewise.
26739 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26741 2014-01-08 Richard Biener <rguenther@suse.de>
26743 PR middle-end/59471
26744 * gimplify.c (gimplify_expr): Gimplify register-register type
26745 VIEW_CONVERT_EXPRs to separate stmts.
26747 2014-01-07 Jeff Law <law@redhat.com>
26749 PR middle-end/53623
26750 * ree.c (combine_set_extension): Handle case where source
26751 and destination registers in an extension insn are different.
26752 (combine_reaching_defs): Allow source and destination registers
26753 in extension to be different under limited circumstances.
26754 (add_removable_extension): Remove restriction that the
26755 source and destination registers in the extension are the same.
26756 (find_and_remove_re): Emit a copy from the extension's
26757 destination to its source after the defining insn if
26758 the source and destination registers are different.
26760 PR middle-end/59285
26761 * ifcvt.c (merge_if_block): If we are merging a block with more than
26762 one successor with a block with no successors, remove any BARRIER
26763 after the second block.
26765 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26767 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26769 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26772 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26773 for 14-bit register offsets when INT14_OK_STRICT is false.
26775 2014-01-07 Roland Stigge <stigge@antcom.de>
26776 Michael Meissner <meissner@linux.vnet.ibm.com>
26779 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26780 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26782 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26784 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26787 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26789 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26790 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26791 rtx is const0_rtx or not.
26793 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26796 * target-globals.c (save_target_globals): Remove this_fn_optab
26798 * toplev.c: Include optabs.h.
26799 (target_reinit): Temporarily restore the global options if another
26800 set of options are in force.
26802 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26804 PR rtl-optimization/58668
26805 * cfgcleanup.c (flow_find_cross_jump): Don't count
26806 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26807 to determine what is counted.
26808 (flow_find_head_matching_sequence): Use active_insn_p to determine
26810 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26812 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26813 determine what is counted.
26815 PR tree-optimization/59643
26816 * tree-predcom.c (split_data_refs_to_components): If one dr is
26817 read and one write, determine_offset fails and the write isn't
26818 in the bad component, just put the read into the bad component.
26820 2014-01-07 Mike Stump <mikestump@comcast.net>
26821 Jakub Jelinek <jakub@redhat.com>
26824 * tree-core.h (struct tree_optimization_option): Change optabs
26825 type from unsigned char * to void *.
26826 * optabs.c (init_tree_optimization_optabs): Adjust
26827 TREE_OPTIMIZATION_OPTABS initialization.
26829 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26832 * config/i386/i386.h (struct machine_function): Add
26833 no_drap_save_restore field.
26834 * config/i386/i386.c (ix86_save_reg): Use
26835 !cfun->machine->no_drap_save_restore instead of
26836 crtl->stack_realign_needed.
26837 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26838 this function clears frame_pointer_needed. Set
26839 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26840 and DRAP reg is needed.
26842 2014-01-06 Marek Polacek <polacek@redhat.com>
26845 * doc/implement-c.texi: Mention that other integer types are
26846 permitted as bit-field types in strictly conforming mode.
26848 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26850 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26851 is newly allocated.
26853 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26855 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26857 2014-01-06 Martin Jambor <mjambor@suse.cz>
26860 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26862 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26864 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26868 * var-tracking.c (add_stores): Preserve the value of the source even if
26869 we don't record the store.
26871 2014-01-06 Terry Guo <terry.guo@arm.com>
26873 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26875 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26878 * config/darwin.c (darwin_function_section): Adjust return values to
26879 correspond to optimisation changes made in r206070.
26881 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26883 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26884 from prefetch_block tune setting.
26885 (nocona_cost): Correct size of prefetch block to 64.
26887 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26889 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26890 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26891 used to save the static chain register in the computation of the offset
26892 from which the FP registers need to be restored.
26894 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26896 PR tree-optimization/59519
26897 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26898 ICE if get_current_def (current_new_name) is already non-NULL, as long
26899 as it is a phi result of some other phi in *new_exit_bb that has
26902 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26903 or vmovdqu* for misaligned_operand.
26904 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26905 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26906 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26907 aligned_mem for AVX512F masked aligned load and store builtins and for
26908 non-temporal moves.
26910 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26912 PR tree-optimization/59651
26913 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26914 Address range for negative step should be added by TYPE_SIZE_UNIT.
26916 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26918 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26919 overlapping registers also for registers other than the stack pointer.
26921 2014-01-03 Marek Polacek <polacek@redhat.com>
26924 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26927 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26930 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26933 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26934 (push splitter): Use <P:MODE_SIZE> instead of
26935 GET_MODE_SIZE (<P:MODE>mode).
26936 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26937 (mov -1, reg peephole2): Likewise.
26938 * config/i386/sse.md (*mov<mode>_internal,
26939 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26940 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26941 *<code><mode>3, *andnot<mode>3<mask_name>,
26942 <mask_codefor><code><mode>3<mask_name>): Likewise.
26943 * config/i386/subst.md (mask_mode512bit_condition,
26944 sd_mask_mode512bit_condition): Likewise.
26946 2014-01-02 Xinliang David Li <davidxl@google.com>
26948 PR tree-optimization/59303
26949 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26950 (dump_predicates): Better output format.
26951 (pred_equal_p): New function.
26952 (is_neq_relop_p): Ditto.
26953 (is_neq_zero_form_p): Ditto.
26954 (pred_expr_equal_p): Ditto.
26955 (pred_neg_p): Ditto.
26956 (simplify_pred): Ditto.
26957 (simplify_preds_2): Ditto.
26958 (simplify_preds_3): Ditto.
26959 (simplify_preds_4): Ditto.
26960 (simplify_preds): Ditto.
26961 (push_pred): Ditto.
26962 (push_to_worklist): Ditto.
26963 (get_pred_info_from_cmp): Ditto.
26964 (is_degenerated_phi): Ditto.
26965 (normalize_one_pred_1): Ditto.
26966 (normalize_one_pred): Ditto.
26967 (normalize_one_pred_chain): Ditto.
26968 (normalize_preds): Ditto.
26969 (normalize_cond_1): Remove function.
26970 (normalize_cond): Ditto.
26971 (is_gcond_subset_of): Ditto.
26972 (is_subset_of_any): Ditto.
26973 (is_or_set_subset_of): Ditto.
26974 (is_and_set_subset_of): Ditto.
26975 (is_norm_cond_subset_of): Ditto.
26976 (pred_chain_length_cmp): Ditto.
26977 (convert_control_dep_chain_into_preds): Type change.
26978 (find_predicates): Ditto.
26979 (find_def_preds): Ditto.
26980 (destroy_predicates_vecs): Ditto.
26981 (find_matching_predicates_in_rest_chains): Ditto.
26982 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26983 (is_pred_expr_subset): Ditto.
26984 (is_pred_chain_subset_of): Ditto.
26985 (is_included_in): Ditto.
26986 (is_superset_of): Ditto.
26988 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26990 Update copyright years.
26992 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26994 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26995 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26996 config/arc/arc.md, config/arc/arc.opt,
26997 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26998 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26999 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27000 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27001 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27002 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27003 vtable-verify.c, vtable-verify.h: Use the standard form for the
27006 2014-01-02 Tobias Burnus <burnus@net-b.de>
27008 * gcc.c (process_command): Update copyright notice dates.
27009 * gcov-dump.c: Ditto.
27011 * doc/cpp.texi: Bump @copying's copyright year.
27012 * doc/cppinternals.texi: Ditto.
27013 * doc/gcc.texi: Ditto.
27014 * doc/gccint.texi: Ditto.
27015 * doc/gcov.texi: Ditto.
27016 * doc/install.texi: Ditto.
27017 * doc/invoke.texi: Ditto.
27019 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27021 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27023 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27025 * config/i386/sse.md (*mov<mode>_internal): Guard
27026 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27028 PR rtl-optimization/59647
27029 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27030 new_rtx into UNSIGNED_FLOAT rtxes.
27032 Copyright (C) 2014 Free Software Foundation, Inc.
27034 Copying and distribution of this file, with or without modification,
27035 are permitted in any medium without royalty provided the copyright
27036 notice and this notice are preserved.